41 lines
165 KiB
JavaScript
41 lines
165 KiB
JavaScript
var he=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Js(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ks(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}),r}var Qs={},go={exports:{}};const Gs={},Xs=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"})),or=Ks(Xs);(function(e,t){var r=function(){var n=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return typeof __filename<"u"&&(n=n||__filename),function(s){s===void 0&&(s={});var i=s,c,d;i.ready=new Promise(function(o,a){c=o,d=a});var g=Object.assign({},i),y="./this.program",v=function(o,a){throw a},p=typeof window=="object",O=typeof importScripts=="function",P=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",E="";function _(o){return i.locateFile?i.locateFile(o,E):E+o}var T,L,M;if(P){var j=or,se=or;O?E=se.dirname(E)+"/":E=__dirname+"/",T=function(o,a){return o=lt(o)?new URL(o):se.normalize(o),j.readFileSync(o,a?void 0:"utf8")},M=function(o){var a=T(o,!0);return a.buffer||(a=new Uint8Array(a)),a},L=function(o,a,u,f){f===void 0&&(f=!0),o=lt(o)?new URL(o):se.normalize(o),j.readFile(o,f?void 0:"utf8",function(h,m){h?u(h):a(f?m.buffer:m)})},!i.thisProgram&&process.argv.length>1&&(y=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),v=function(o,a){throw process.exitCode=o,a},i.inspect=function(){return"[Emscripten Module object]"}}else(p||O)&&(O?E=self.location.href:typeof document<"u"&&document.currentScript&&(E=document.currentScript.src),n&&(E=n),E.indexOf("blob:")!==0?E=E.substr(0,E.replace(/[?#].*/,"").lastIndexOf("/")+1):E="",T=function(o){var a=new XMLHttpRequest;return a.open("GET",o,!1),a.send(null),a.responseText},O&&(M=function(o){var a=new XMLHttpRequest;return a.open("GET",o,!1),a.responseType="arraybuffer",a.send(null),new Uint8Array(a.response)}),L=function(o,a,u){var f=new XMLHttpRequest;f.open("GET",o,!0),f.responseType="arraybuffer",f.onload=function(){if(f.status==200||f.status==0&&f.response){a(f.response);return}u()},f.onerror=u,f.send(null)});var Z=i.print||console.log.bind(console),$=i.printErr||console.error.bind(console);Object.assign(i,g),g=null,i.arguments&&i.arguments,i.thisProgram&&(y=i.thisProgram),i.quit&&(v=i.quit);var Q;i.wasmBinary&&(Q=i.wasmBinary);var z=i.noExitRuntime||!0;typeof WebAssembly!="object"&&Ne("no native wasm support detected");var U,X=!1;function ae(o,a){o||Ne(a)}var oe,Ae,Le,k,W;function rn(){var o=U.buffer;i.HEAP8=oe=new Int8Array(o),i.HEAP16=Le=new Int16Array(o),i.HEAP32=k=new Int32Array(o),i.HEAPU8=Ae=new Uint8Array(o),i.HEAPU16=new Uint16Array(o),i.HEAPU32=W=new Uint32Array(o),i.HEAPF32=new Float32Array(o),i.HEAPF64=new Float64Array(o)}var nn=[],on=[],sn=[],$i=0;function zi(){return z||$i>0}function Hi(){if(i.preRun)for(typeof i.preRun=="function"&&(i.preRun=[i.preRun]);i.preRun.length;)Wi(i.preRun.shift());Gt(nn)}function Vi(){!i.noFSInit&&!l.init.initialized&&l.init(),l.ignorePermissions=!1,Y.root=l.mount(Y,{},null),Gt(on)}function qi(){if(i.postRun)for(typeof i.postRun=="function"&&(i.postRun=[i.postRun]);i.postRun.length;)Ki(i.postRun.shift());Gt(sn)}function Wi(o){nn.unshift(o)}function Ji(o){on.unshift(o)}function Ki(o){sn.unshift(o)}var Pe=0,Ve=null;function Tf(o){return o}function Qt(o){Pe++,i.monitorRunDependencies&&i.monitorRunDependencies(Pe)}function ct(o){if(Pe--,i.monitorRunDependencies&&i.monitorRunDependencies(Pe),Pe==0&&Ve){var a=Ve;Ve=null,a()}}function Ne(o){i.onAbort&&i.onAbort(o),o="Aborted("+o+")",$(o),X=!0,o+=". Build with -sASSERTIONS for more info.";var a=new WebAssembly.RuntimeError(o);throw d(a),a}var Qi="data:application/octet-stream;base64,";function an(o){return o.startsWith(Qi)}function lt(o){return o.startsWith("file://")}var Be;Be="libarchive.wasm",an(Be)||(Be=_(Be));function un(o){if(o==Be&&Q)return new Uint8Array(Q);if(M)return M(o);throw"both async and sync fetching of the wasm failed"}function Gi(o){if(!Q&&(p||O)){if(typeof fetch=="function"&&!lt(o))return fetch(o,{credentials:"same-origin"}).then(function(a){if(!a.ok)throw"failed to load wasm binary file at '"+o+"'";return a.arrayBuffer()}).catch(function(){return un(o)});if(L)return new Promise(function(a,u){L(o,function(f){return a(new Uint8Array(f))},u)})}return Promise.resolve().then(function(){return un(o)})}function cn(o,a,u){return Gi(o).then(function(f){return WebAssembly.instantiate(f,a)}).then(function(f){return f}).then(u,function(f){$("failed to asynchronously prepare wasm: "+f),Ne(f)})}function Xi(o,a,u,f){return!o&&typeof WebAssembly.instantiateStreaming=="function"&&!an(a)&&!lt(a)&&!P&&typeof fetch=="function"?fetch(a,{credentials:"same-origin"}).then(function(h){var m=WebAssembly.instantiateStreaming(h,u);return m.then(f,function(w){return $("wasm streaming compile failed: "+w),$("falling back to ArrayBuffer instantiation"),cn(a,u,f)})}):cn(a,u,f)}function Yi(){var o={a:Ws};function a(f,h){var m=f.exports;return i.asm=m,U=i.asm.x,rn(),i.asm.G,Ji(i.asm.y),ct(),m}Qt();function u(f){a(f.instance)}if(i.instantiateWasm)try{return i.instantiateWasm(o,a)}catch(f){$("Module.instantiateWasm callback failed with error: "+f),d(f)}return Xi(Q,Be,o,u).catch(d),{}}var B,re;function Zi(o){this.name="ExitStatus",this.message="Program terminated with exit(".concat(o,")"),this.status=o}var Gt=function(o){for(;o.length>0;)o.shift()(i)},J={isAbs:function(o){return o.charAt(0)==="/"},splitPath:function(o){var a=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return a.exec(o).slice(1)},normalizeArray:function(o,a){for(var u=0,f=o.length-1;f>=0;f--){var h=o[f];h==="."?o.splice(f,1):h===".."?(o.splice(f,1),u++):u&&(o.splice(f,1),u--)}if(a)for(;u;u--)o.unshift("..");return o},normalize:function(o){var a=J.isAbs(o),u=o.substr(-1)==="/";return o=J.normalizeArray(o.split("/").filter(function(f){return!!f}),!a).join("/"),!o&&!a&&(o="."),o&&u&&(o+="/"),(a?"/":"")+o},dirname:function(o){var a=J.splitPath(o),u=a[0],f=a[1];return!u&&!f?".":(f&&(f=f.substr(0,f.length-1)),u+f)},basename:function(o){if(o==="/")return"/";o=J.normalize(o),o=o.replace(/\/$/,"");var a=o.lastIndexOf("/");return a===-1?o:o.substr(a+1)},join:function(){var o=Array.prototype.slice.call(arguments);return J.normalize(o.join("/"))},join2:function(o,a){return J.normalize(o+"/"+a)}},es=function(){if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return function(f){return crypto.getRandomValues(f)};if(P)try{var o=or,a=o.randomFillSync;if(a)return function(f){return o.randomFillSync(f)};var u=o.randomBytes;return function(f){return f.set(u(f.byteLength)),f}}catch{}Ne("initRandomDevice")},ln=function(o){return(ln=es())(o)},Ee={resolve:function(){for(var o="",a=!1,u=arguments.length-1;u>=-1&&!a;u--){var f=u>=0?arguments[u]:l.cwd();if(typeof f!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!f)return"";o=f+"/"+o,a=J.isAbs(f)}return o=J.normalizeArray(o.split("/").filter(function(h){return!!h}),!a).join("/"),(a?"/":"")+o||"."},relative:function(o,a){o=Ee.resolve(o).substr(1),a=Ee.resolve(a).substr(1);function u(x){for(var F=0;F<x.length&&x[F]==="";F++);for(var H=x.length-1;H>=0&&x[H]==="";H--);return F>H?[]:x.slice(F,H-F+1)}for(var f=u(o.split("/")),h=u(a.split("/")),m=Math.min(f.length,h.length),w=m,b=0;b<m;b++)if(f[b]!==h[b]){w=b;break}for(var A=[],b=w;b<f.length;b++)A.push("..");return A=A.concat(h.slice(w)),A.join("/")}},fn=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,Ie=function(o,a,u){for(var f=a+u,h=a;o[h]&&!(h>=f);)++h;if(h-a>16&&o.buffer&&fn)return fn.decode(o.subarray(a,h));for(var m="";a<h;){var w=o[a++];if(!(w&128)){m+=String.fromCharCode(w);continue}var b=o[a++]&63;if((w&224)==192){m+=String.fromCharCode((w&31)<<6|b);continue}var A=o[a++]&63;if((w&240)==224?w=(w&15)<<12|b<<6|A:w=(w&7)<<18|b<<12|A<<6|o[a++]&63,w<65536)m+=String.fromCharCode(w);else{var x=w-65536;m+=String.fromCharCode(55296|x>>10,56320|x&1023)}}return m},Xt=[],ft=function(o){for(var a=0,u=0;u<o.length;++u){var f=o.charCodeAt(u);f<=127?a++:f<=2047?a+=2:f>=55296&&f<=57343?(a+=4,++u):a+=3}return a},Yt=function(o,a,u,f){if(!(f>0))return 0;for(var h=u,m=u+f-1,w=0;w<o.length;++w){var b=o.charCodeAt(w);if(b>=55296&&b<=57343){var A=o.charCodeAt(++w);b=65536+((b&1023)<<10)|A&1023}if(b<=127){if(u>=m)break;a[u++]=b}else if(b<=2047){if(u+1>=m)break;a[u++]=192|b>>6,a[u++]=128|b&63}else if(b<=65535){if(u+2>=m)break;a[u++]=224|b>>12,a[u++]=128|b>>6&63,a[u++]=128|b&63}else{if(u+3>=m)break;a[u++]=240|b>>18,a[u++]=128|b>>12&63,a[u++]=128|b>>6&63,a[u++]=128|b&63}}return a[u]=0,u-h};function Zt(o,a,u){var f=u>0?u:ft(o)+1,h=new Array(f),m=Yt(o,h,0,h.length);return a&&(h.length=m),h}var ts=function(){if(!Xt.length){var o=null;if(P){var a=256,u=Buffer.alloc(a),f=0,h=process.stdin.fd;try{f=j.readSync(h,u,0,a,-1)}catch(m){if(m.toString().includes("EOF"))f=0;else throw m}f>0?o=u.slice(0,f).toString("utf-8"):o=null}else typeof window<"u"&&typeof window.prompt=="function"?(o=window.prompt("Input: "),o!==null&&(o+=`
|
|
`)):typeof readline=="function"&&(o=readline(),o!==null&&(o+=`
|
|
`));if(!o)return null;Xt=Zt(o,!0)}return Xt.shift()},Fe={ttys:[],init:function(){},shutdown:function(){},register:function(o,a){Fe.ttys[o]={input:[],output:[],ops:a},l.registerDevice(o,Fe.stream_ops)},stream_ops:{open:function(o){var a=Fe.ttys[o.node.rdev];if(!a)throw new l.ErrnoError(43);o.tty=a,o.seekable=!1},close:function(o){o.tty.ops.fsync(o.tty)},fsync:function(o){o.tty.ops.fsync(o.tty)},read:function(o,a,u,f,h){if(!o.tty||!o.tty.ops.get_char)throw new l.ErrnoError(60);for(var m=0,w=0;w<f;w++){var b;try{b=o.tty.ops.get_char(o.tty)}catch{throw new l.ErrnoError(29)}if(b===void 0&&m===0)throw new l.ErrnoError(6);if(b==null)break;m++,a[u+w]=b}return m&&(o.node.timestamp=Date.now()),m},write:function(o,a,u,f,h){if(!o.tty||!o.tty.ops.put_char)throw new l.ErrnoError(60);try{for(var m=0;m<f;m++)o.tty.ops.put_char(o.tty,a[u+m])}catch{throw new l.ErrnoError(29)}return f&&(o.node.timestamp=Date.now()),m}},default_tty_ops:{get_char:function(o){return ts()},put_char:function(o,a){a===null||a===10?(Z(Ie(o.output,0)),o.output=[]):a!=0&&o.output.push(a)},fsync:function(o){o.output&&o.output.length>0&&(Z(Ie(o.output,0)),o.output=[])},ioctl_tcgets:function(o){return{c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}},ioctl_tcsets:function(o,a,u){return 0},ioctl_tiocgwinsz:function(o){return[24,80]}},default_tty1_ops:{put_char:function(o,a){a===null||a===10?($(Ie(o.output,0)),o.output=[]):a!=0&&o.output.push(a)},fsync:function(o){o.output&&o.output.length>0&&($(Ie(o.output,0)),o.output=[])}}},dn=function(o){Ne()},I={ops_table:null,mount:function(o){return I.createNode(null,"/",16895,0)},createNode:function(o,a,u,f){if(l.isBlkdev(u)||l.isFIFO(u))throw new l.ErrnoError(63);I.ops_table||(I.ops_table={dir:{node:{getattr:I.node_ops.getattr,setattr:I.node_ops.setattr,lookup:I.node_ops.lookup,mknod:I.node_ops.mknod,rename:I.node_ops.rename,unlink:I.node_ops.unlink,rmdir:I.node_ops.rmdir,readdir:I.node_ops.readdir,symlink:I.node_ops.symlink},stream:{llseek:I.stream_ops.llseek}},file:{node:{getattr:I.node_ops.getattr,setattr:I.node_ops.setattr},stream:{llseek:I.stream_ops.llseek,read:I.stream_ops.read,write:I.stream_ops.write,allocate:I.stream_ops.allocate,mmap:I.stream_ops.mmap,msync:I.stream_ops.msync}},link:{node:{getattr:I.node_ops.getattr,setattr:I.node_ops.setattr,readlink:I.node_ops.readlink},stream:{}},chrdev:{node:{getattr:I.node_ops.getattr,setattr:I.node_ops.setattr},stream:l.chrdev_stream_ops}});var h=l.createNode(o,a,u,f);return l.isDir(h.mode)?(h.node_ops=I.ops_table.dir.node,h.stream_ops=I.ops_table.dir.stream,h.contents={}):l.isFile(h.mode)?(h.node_ops=I.ops_table.file.node,h.stream_ops=I.ops_table.file.stream,h.usedBytes=0,h.contents=null):l.isLink(h.mode)?(h.node_ops=I.ops_table.link.node,h.stream_ops=I.ops_table.link.stream):l.isChrdev(h.mode)&&(h.node_ops=I.ops_table.chrdev.node,h.stream_ops=I.ops_table.chrdev.stream),h.timestamp=Date.now(),o&&(o.contents[a]=h,o.timestamp=h.timestamp),h},getFileDataAsTypedArray:function(o){return o.contents?o.contents.subarray?o.contents.subarray(0,o.usedBytes):new Uint8Array(o.contents):new Uint8Array(0)},expandFileStorage:function(o,a){var u=o.contents?o.contents.length:0;if(!(u>=a)){var f=1024*1024;a=Math.max(a,u*(u<f?2:1.125)>>>0),u!=0&&(a=Math.max(a,256));var h=o.contents;o.contents=new Uint8Array(a),o.usedBytes>0&&o.contents.set(h.subarray(0,o.usedBytes),0)}},resizeFileStorage:function(o,a){if(o.usedBytes!=a)if(a==0)o.contents=null,o.usedBytes=0;else{var u=o.contents;o.contents=new Uint8Array(a),u&&o.contents.set(u.subarray(0,Math.min(a,o.usedBytes))),o.usedBytes=a}},node_ops:{getattr:function(o){var a={};return a.dev=l.isChrdev(o.mode)?o.id:1,a.ino=o.id,a.mode=o.mode,a.nlink=1,a.uid=0,a.gid=0,a.rdev=o.rdev,l.isDir(o.mode)?a.size=4096:l.isFile(o.mode)?a.size=o.usedBytes:l.isLink(o.mode)?a.size=o.link.length:a.size=0,a.atime=new Date(o.timestamp),a.mtime=new Date(o.timestamp),a.ctime=new Date(o.timestamp),a.blksize=4096,a.blocks=Math.ceil(a.size/a.blksize),a},setattr:function(o,a){a.mode!==void 0&&(o.mode=a.mode),a.timestamp!==void 0&&(o.timestamp=a.timestamp),a.size!==void 0&&I.resizeFileStorage(o,a.size)},lookup:function(o,a){throw l.genericErrors[44]},mknod:function(o,a,u,f){return I.createNode(o,a,u,f)},rename:function(o,a,u){if(l.isDir(o.mode)){var f;try{f=l.lookupNode(a,u)}catch{}if(f)for(var h in f.contents)throw new l.ErrnoError(55)}delete o.parent.contents[o.name],o.parent.timestamp=Date.now(),o.name=u,a.contents[u]=o,a.timestamp=o.parent.timestamp,o.parent=a},unlink:function(o,a){delete o.contents[a],o.timestamp=Date.now()},rmdir:function(o,a){var u=l.lookupNode(o,a);for(var f in u.contents)throw new l.ErrnoError(55);delete o.contents[a],o.timestamp=Date.now()},readdir:function(o){var a=[".",".."];for(var u in o.contents)o.contents.hasOwnProperty(u)&&a.push(u);return a},symlink:function(o,a,u){var f=I.createNode(o,a,41471,0);return f.link=u,f},readlink:function(o){if(!l.isLink(o.mode))throw new l.ErrnoError(28);return o.link}},stream_ops:{read:function(o,a,u,f,h){var m=o.node.contents;if(h>=o.node.usedBytes)return 0;var w=Math.min(o.node.usedBytes-h,f);if(w>8&&m.subarray)a.set(m.subarray(h,h+w),u);else for(var b=0;b<w;b++)a[u+b]=m[h+b];return w},write:function(o,a,u,f,h,m){if(a.buffer===oe.buffer&&(m=!1),!f)return 0;var w=o.node;if(w.timestamp=Date.now(),a.subarray&&(!w.contents||w.contents.subarray)){if(m)return w.contents=a.subarray(u,u+f),w.usedBytes=f,f;if(w.usedBytes===0&&h===0)return w.contents=a.slice(u,u+f),w.usedBytes=f,f;if(h+f<=w.usedBytes)return w.contents.set(a.subarray(u,u+f),h),f}if(I.expandFileStorage(w,h+f),w.contents.subarray&&a.subarray)w.contents.set(a.subarray(u,u+f),h);else for(var b=0;b<f;b++)w.contents[h+b]=a[u+b];return w.usedBytes=Math.max(w.usedBytes,h+f),f},llseek:function(o,a,u){var f=a;if(u===1?f+=o.position:u===2&&l.isFile(o.node.mode)&&(f+=o.node.usedBytes),f<0)throw new l.ErrnoError(28);return f},allocate:function(o,a,u){I.expandFileStorage(o.node,a+u),o.node.usedBytes=Math.max(o.node.usedBytes,a+u)},mmap:function(o,a,u,f,h){if(!l.isFile(o.node.mode))throw new l.ErrnoError(43);var m,w,b=o.node.contents;if(!(h&2)&&b.buffer===oe.buffer)w=!1,m=b.byteOffset;else{if((u>0||u+a<b.length)&&(b.subarray?b=b.subarray(u,u+a):b=Array.prototype.slice.call(b,u,u+a)),w=!0,m=dn(),!m)throw new l.ErrnoError(48);oe.set(b,m)}return{ptr:m,allocated:w}},msync:function(o,a,u,f,h){return I.stream_ops.write(o,a,0,f,u,!1),0}}},rs=function(o,a,u,f){var h=f?"":"al ".concat(o);L(o,function(m){ae(m,'Loading data file "'.concat(o,'" failed (no arrayBuffer).')),a(new Uint8Array(m)),h&&ct()},function(m){if(u)u();else throw'Loading data file "'.concat(o,'" failed.')}),h&&Qt()},ns=i.preloadPlugins||[];function os(o,a,u,f){typeof Browser<"u"&&Browser.init();var h=!1;return ns.forEach(function(m){h||m.canHandle(a)&&(m.handle(o,a,u,f),h=!0)}),h}function is(o,a,u,f,h,m,w,b,A,x){var F=a?Ee.resolve(J.join2(o,a)):o;function H(D){function C(N){x&&x(),b||l.createDataFile(o,a,N,f,h,A),m&&m(),ct()}os(D,F,C,function(){w&&w(),ct()})||C(D)}Qt(),typeof u=="string"?rs(u,function(D){return H(D)},w):H(u)}function ss(o){var a={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},u=a[o];if(typeof u>"u")throw new Error("Unknown file open mode: ".concat(o));return u}function er(o,a){var u=0;return o&&(u|=365),a&&(u|=146),u}var l={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath:function(o,a){if(a===void 0&&(a={}),o=Ee.resolve(o),!o)return{path:"",node:null};var u={follow_mount:!0,recurse_count:0};if(a=Object.assign(u,a),a.recurse_count>8)throw new l.ErrnoError(32);for(var f=o.split("/").filter(function(H){return!!H}),h=l.root,m="/",w=0;w<f.length;w++){var b=w===f.length-1;if(b&&a.parent)break;if(h=l.lookupNode(h,f[w]),m=J.join2(m,f[w]),l.isMountpoint(h)&&(!b||b&&a.follow_mount)&&(h=h.mounted.root),!b||a.follow)for(var A=0;l.isLink(h.mode);){var x=l.readlink(m);m=Ee.resolve(J.dirname(m),x);var F=l.lookupPath(m,{recurse_count:a.recurse_count+1});if(h=F.node,A++>40)throw new l.ErrnoError(32)}}return{path:m,node:h}},getPath:function(o){for(var a;;){if(l.isRoot(o)){var u=o.mount.mountpoint;return a?u[u.length-1]!=="/"?"".concat(u,"/").concat(a):u+a:u}a=a?"".concat(o.name,"/").concat(a):o.name,o=o.parent}},hashName:function(o,a){for(var u=0,f=0;f<a.length;f++)u=(u<<5)-u+a.charCodeAt(f)|0;return(o+u>>>0)%l.nameTable.length},hashAddNode:function(o){var a=l.hashName(o.parent.id,o.name);o.name_next=l.nameTable[a],l.nameTable[a]=o},hashRemoveNode:function(o){var a=l.hashName(o.parent.id,o.name);if(l.nameTable[a]===o)l.nameTable[a]=o.name_next;else for(var u=l.nameTable[a];u;){if(u.name_next===o){u.name_next=o.name_next;break}u=u.name_next}},lookupNode:function(o,a){var u=l.mayLookup(o);if(u)throw new l.ErrnoError(u,o);for(var f=l.hashName(o.id,a),h=l.nameTable[f];h;h=h.name_next){var m=h.name;if(h.parent.id===o.id&&m===a)return h}return l.lookup(o,a)},createNode:function(o,a,u,f){var h=new l.FSNode(o,a,u,f);return l.hashAddNode(h),h},destroyNode:function(o){l.hashRemoveNode(o)},isRoot:function(o){return o===o.parent},isMountpoint:function(o){return!!o.mounted},isFile:function(o){return(o&61440)===32768},isDir:function(o){return(o&61440)===16384},isLink:function(o){return(o&61440)===40960},isChrdev:function(o){return(o&61440)===8192},isBlkdev:function(o){return(o&61440)===24576},isFIFO:function(o){return(o&61440)===4096},isSocket:function(o){return(o&49152)===49152},flagsToPermissionString:function(o){var a=["r","w","rw"][o&3];return o&512&&(a+="w"),a},nodePermissions:function(o,a){return l.ignorePermissions?0:a.includes("r")&&!(o.mode&292)||a.includes("w")&&!(o.mode&146)||a.includes("x")&&!(o.mode&73)?2:0},mayLookup:function(o){var a=l.nodePermissions(o,"x");return a||(o.node_ops.lookup?0:2)},mayCreate:function(o,a){try{var u=l.lookupNode(o,a);return 20}catch{}return l.nodePermissions(o,"wx")},mayDelete:function(o,a,u){var f;try{f=l.lookupNode(o,a)}catch(m){return m.errno}var h=l.nodePermissions(o,"wx");if(h)return h;if(u){if(!l.isDir(f.mode))return 54;if(l.isRoot(f)||l.getPath(f)===l.cwd())return 10}else if(l.isDir(f.mode))return 31;return 0},mayOpen:function(o,a){return o?l.isLink(o.mode)?32:l.isDir(o.mode)&&(l.flagsToPermissionString(a)!=="r"||a&512)?31:l.nodePermissions(o,l.flagsToPermissionString(a)):44},MAX_OPEN_FDS:4096,nextfd:function(){for(var o=0;o<=l.MAX_OPEN_FDS;o++)if(!l.streams[o])return o;throw new l.ErrnoError(33)},getStreamChecked:function(o){var a=l.getStream(o);if(!a)throw new l.ErrnoError(8);return a},getStream:function(o){return l.streams[o]},createStream:function(o,a){return a===void 0&&(a=-1),l.FSStream||(l.FSStream=function(){this.shared={}},l.FSStream.prototype={},Object.defineProperties(l.FSStream.prototype,{object:{get:function(){return this.node},set:function(u){this.node=u}},isRead:{get:function(){return(this.flags&2097155)!==1}},isWrite:{get:function(){return(this.flags&2097155)!==0}},isAppend:{get:function(){return this.flags&1024}},flags:{get:function(){return this.shared.flags},set:function(u){this.shared.flags=u}},position:{get:function(){return this.shared.position},set:function(u){this.shared.position=u}}})),o=Object.assign(new l.FSStream,o),a==-1&&(a=l.nextfd()),o.fd=a,l.streams[a]=o,o},closeStream:function(o){l.streams[o]=null},chrdev_stream_ops:{open:function(o){var a=l.getDevice(o.node.rdev);o.stream_ops=a.stream_ops,o.stream_ops.open&&o.stream_ops.open(o)},llseek:function(){throw new l.ErrnoError(70)}},major:function(o){return o>>8},minor:function(o){return o&255},makedev:function(o,a){return o<<8|a},registerDevice:function(o,a){l.devices[o]={stream_ops:a}},getDevice:function(o){return l.devices[o]},getMounts:function(o){for(var a=[],u=[o];u.length;){var f=u.pop();a.push(f),u.push.apply(u,f.mounts)}return a},syncfs:function(o,a){typeof o=="function"&&(a=o,o=!1),l.syncFSRequests++,l.syncFSRequests>1&&$("warning: ".concat(l.syncFSRequests," FS.syncfs operations in flight at once, probably just doing extra work"));var u=l.getMounts(l.root.mount),f=0;function h(w){return l.syncFSRequests--,a(w)}function m(w){if(w)return m.errored?void 0:(m.errored=!0,h(w));++f>=u.length&&h(null)}u.forEach(function(w){if(!w.type.syncfs)return m(null);w.type.syncfs(w,o,m)})},mount:function(o,a,u){var f=u==="/",h=!u,m;if(f&&l.root)throw new l.ErrnoError(10);if(!f&&!h){var w=l.lookupPath(u,{follow_mount:!1});if(u=w.path,m=w.node,l.isMountpoint(m))throw new l.ErrnoError(10);if(!l.isDir(m.mode))throw new l.ErrnoError(54)}var b={type:o,opts:a,mountpoint:u,mounts:[]},A=o.mount(b);return A.mount=b,b.root=A,f?l.root=A:m&&(m.mounted=b,m.mount&&m.mount.mounts.push(b)),A},unmount:function(o){var a=l.lookupPath(o,{follow_mount:!1});if(!l.isMountpoint(a.node))throw new l.ErrnoError(28);var u=a.node,f=u.mounted,h=l.getMounts(f);Object.keys(l.nameTable).forEach(function(w){for(var b=l.nameTable[w];b;){var A=b.name_next;h.includes(b.mount)&&l.destroyNode(b),b=A}}),u.mounted=null;var m=u.mount.mounts.indexOf(f);u.mount.mounts.splice(m,1)},lookup:function(o,a){return o.node_ops.lookup(o,a)},mknod:function(o,a,u){var f=l.lookupPath(o,{parent:!0}),h=f.node,m=J.basename(o);if(!m||m==="."||m==="..")throw new l.ErrnoError(28);var w=l.mayCreate(h,m);if(w)throw new l.ErrnoError(w);if(!h.node_ops.mknod)throw new l.ErrnoError(63);return h.node_ops.mknod(h,m,a,u)},create:function(o,a){return a=a!==void 0?a:438,a&=4095,a|=32768,l.mknod(o,a,0)},mkdir:function(o,a){return a=a!==void 0?a:511,a&=1023,a|=16384,l.mknod(o,a,0)},mkdirTree:function(o,a){for(var u=o.split("/"),f="",h=0;h<u.length;++h)if(u[h]){f+="/"+u[h];try{l.mkdir(f,a)}catch(m){if(m.errno!=20)throw m}}},mkdev:function(o,a,u){return typeof u>"u"&&(u=a,a=438),a|=8192,l.mknod(o,a,u)},symlink:function(o,a){if(!Ee.resolve(o))throw new l.ErrnoError(44);var u=l.lookupPath(a,{parent:!0}),f=u.node;if(!f)throw new l.ErrnoError(44);var h=J.basename(a),m=l.mayCreate(f,h);if(m)throw new l.ErrnoError(m);if(!f.node_ops.symlink)throw new l.ErrnoError(63);return f.node_ops.symlink(f,h,o)},rename:function(o,a){var u=J.dirname(o),f=J.dirname(a),h=J.basename(o),m=J.basename(a),w,b,A;if(w=l.lookupPath(o,{parent:!0}),b=w.node,w=l.lookupPath(a,{parent:!0}),A=w.node,!b||!A)throw new l.ErrnoError(44);if(b.mount!==A.mount)throw new l.ErrnoError(75);var x=l.lookupNode(b,h),F=Ee.relative(o,f);if(F.charAt(0)!==".")throw new l.ErrnoError(28);if(F=Ee.relative(a,u),F.charAt(0)!==".")throw new l.ErrnoError(55);var H;try{H=l.lookupNode(A,m)}catch{}if(x!==H){var D=l.isDir(x.mode),C=l.mayDelete(b,h,D);if(C)throw new l.ErrnoError(C);if(C=H?l.mayDelete(A,m,D):l.mayCreate(A,m),C)throw new l.ErrnoError(C);if(!b.node_ops.rename)throw new l.ErrnoError(63);if(l.isMountpoint(x)||H&&l.isMountpoint(H))throw new l.ErrnoError(10);if(A!==b&&(C=l.nodePermissions(b,"w"),C))throw new l.ErrnoError(C);l.hashRemoveNode(x);try{b.node_ops.rename(x,A,m)}catch(N){throw N}finally{l.hashAddNode(x)}}},rmdir:function(o){var a=l.lookupPath(o,{parent:!0}),u=a.node,f=J.basename(o),h=l.lookupNode(u,f),m=l.mayDelete(u,f,!0);if(m)throw new l.ErrnoError(m);if(!u.node_ops.rmdir)throw new l.ErrnoError(63);if(l.isMountpoint(h))throw new l.ErrnoError(10);u.node_ops.rmdir(u,f),l.destroyNode(h)},readdir:function(o){var a=l.lookupPath(o,{follow:!0}),u=a.node;if(!u.node_ops.readdir)throw new l.ErrnoError(54);return u.node_ops.readdir(u)},unlink:function(o){var a=l.lookupPath(o,{parent:!0}),u=a.node;if(!u)throw new l.ErrnoError(44);var f=J.basename(o),h=l.lookupNode(u,f),m=l.mayDelete(u,f,!1);if(m)throw new l.ErrnoError(m);if(!u.node_ops.unlink)throw new l.ErrnoError(63);if(l.isMountpoint(h))throw new l.ErrnoError(10);u.node_ops.unlink(u,f),l.destroyNode(h)},readlink:function(o){var a=l.lookupPath(o),u=a.node;if(!u)throw new l.ErrnoError(44);if(!u.node_ops.readlink)throw new l.ErrnoError(28);return Ee.resolve(l.getPath(u.parent),u.node_ops.readlink(u))},stat:function(o,a){var u=l.lookupPath(o,{follow:!a}),f=u.node;if(!f)throw new l.ErrnoError(44);if(!f.node_ops.getattr)throw new l.ErrnoError(63);return f.node_ops.getattr(f)},lstat:function(o){return l.stat(o,!0)},chmod:function(o,a,u){var f;if(typeof o=="string"){var h=l.lookupPath(o,{follow:!u});f=h.node}else f=o;if(!f.node_ops.setattr)throw new l.ErrnoError(63);f.node_ops.setattr(f,{mode:a&4095|f.mode&-4096,timestamp:Date.now()})},lchmod:function(o,a){l.chmod(o,a,!0)},fchmod:function(o,a){var u=l.getStreamChecked(o);l.chmod(u.node,a)},chown:function(o,a,u,f){var h;if(typeof o=="string"){var m=l.lookupPath(o,{follow:!f});h=m.node}else h=o;if(!h.node_ops.setattr)throw new l.ErrnoError(63);h.node_ops.setattr(h,{timestamp:Date.now()})},lchown:function(o,a,u){l.chown(o,a,u,!0)},fchown:function(o,a,u){var f=l.getStreamChecked(o);l.chown(f.node,a,u)},truncate:function(o,a){if(a<0)throw new l.ErrnoError(28);var u;if(typeof o=="string"){var f=l.lookupPath(o,{follow:!0});u=f.node}else u=o;if(!u.node_ops.setattr)throw new l.ErrnoError(63);if(l.isDir(u.mode))throw new l.ErrnoError(31);if(!l.isFile(u.mode))throw new l.ErrnoError(28);var h=l.nodePermissions(u,"w");if(h)throw new l.ErrnoError(h);u.node_ops.setattr(u,{size:a,timestamp:Date.now()})},ftruncate:function(o,a){var u=l.getStreamChecked(o);if(!(u.flags&2097155))throw new l.ErrnoError(28);l.truncate(u.node,a)},utime:function(o,a,u){var f=l.lookupPath(o,{follow:!0}),h=f.node;h.node_ops.setattr(h,{timestamp:Math.max(a,u)})},open:function(o,a,u){if(o==="")throw new l.ErrnoError(44);a=typeof a=="string"?ss(a):a,u=typeof u>"u"?438:u,a&64?u=u&4095|32768:u=0;var f;if(typeof o=="object")f=o;else{o=J.normalize(o);try{var h=l.lookupPath(o,{follow:!(a&131072)});f=h.node}catch{}}var m=!1;if(a&64)if(f){if(a&128)throw new l.ErrnoError(20)}else f=l.mknod(o,u,0),m=!0;if(!f)throw new l.ErrnoError(44);if(l.isChrdev(f.mode)&&(a&=-513),a&65536&&!l.isDir(f.mode))throw new l.ErrnoError(54);if(!m){var w=l.mayOpen(f,a);if(w)throw new l.ErrnoError(w)}a&512&&!m&&l.truncate(f,0),a&=-131713;var b=l.createStream({node:f,path:l.getPath(f),flags:a,seekable:!0,position:0,stream_ops:f.stream_ops,ungotten:[],error:!1});return b.stream_ops.open&&b.stream_ops.open(b),i.logReadFiles&&!(a&1)&&(l.readFiles||(l.readFiles={}),o in l.readFiles||(l.readFiles[o]=1)),b},close:function(o){if(l.isClosed(o))throw new l.ErrnoError(8);o.getdents&&(o.getdents=null);try{o.stream_ops.close&&o.stream_ops.close(o)}catch(a){throw a}finally{l.closeStream(o.fd)}o.fd=null},isClosed:function(o){return o.fd===null},llseek:function(o,a,u){if(l.isClosed(o))throw new l.ErrnoError(8);if(!o.seekable||!o.stream_ops.llseek)throw new l.ErrnoError(70);if(u!=0&&u!=1&&u!=2)throw new l.ErrnoError(28);return o.position=o.stream_ops.llseek(o,a,u),o.ungotten=[],o.position},read:function(o,a,u,f,h){if(f<0||h<0)throw new l.ErrnoError(28);if(l.isClosed(o))throw new l.ErrnoError(8);if((o.flags&2097155)===1)throw new l.ErrnoError(8);if(l.isDir(o.node.mode))throw new l.ErrnoError(31);if(!o.stream_ops.read)throw new l.ErrnoError(28);var m=typeof h<"u";if(!m)h=o.position;else if(!o.seekable)throw new l.ErrnoError(70);var w=o.stream_ops.read(o,a,u,f,h);return m||(o.position+=w),w},write:function(o,a,u,f,h,m){if(f<0||h<0)throw new l.ErrnoError(28);if(l.isClosed(o))throw new l.ErrnoError(8);if(!(o.flags&2097155))throw new l.ErrnoError(8);if(l.isDir(o.node.mode))throw new l.ErrnoError(31);if(!o.stream_ops.write)throw new l.ErrnoError(28);o.seekable&&o.flags&1024&&l.llseek(o,0,2);var w=typeof h<"u";if(!w)h=o.position;else if(!o.seekable)throw new l.ErrnoError(70);var b=o.stream_ops.write(o,a,u,f,h,m);return w||(o.position+=b),b},allocate:function(o,a,u){if(l.isClosed(o))throw new l.ErrnoError(8);if(a<0||u<=0)throw new l.ErrnoError(28);if(!(o.flags&2097155))throw new l.ErrnoError(8);if(!l.isFile(o.node.mode)&&!l.isDir(o.node.mode))throw new l.ErrnoError(43);if(!o.stream_ops.allocate)throw new l.ErrnoError(138);o.stream_ops.allocate(o,a,u)},mmap:function(o,a,u,f,h){if(f&2&&!(h&2)&&(o.flags&2097155)!==2)throw new l.ErrnoError(2);if((o.flags&2097155)===1)throw new l.ErrnoError(2);if(!o.stream_ops.mmap)throw new l.ErrnoError(43);return o.stream_ops.mmap(o,a,u,f,h)},msync:function(o,a,u,f,h){return o.stream_ops.msync?o.stream_ops.msync(o,a,u,f,h):0},munmap:function(o){return 0},ioctl:function(o,a,u){if(!o.stream_ops.ioctl)throw new l.ErrnoError(59);return o.stream_ops.ioctl(o,a,u)},readFile:function(o,a){if(a===void 0&&(a={}),a.flags=a.flags||0,a.encoding=a.encoding||"binary",a.encoding!=="utf8"&&a.encoding!=="binary")throw new Error('Invalid encoding type "'.concat(a.encoding,'"'));var u,f=l.open(o,a.flags),h=l.stat(o),m=h.size,w=new Uint8Array(m);return l.read(f,w,0,m,0),a.encoding==="utf8"?u=Ie(w,0):a.encoding==="binary"&&(u=w),l.close(f),u},writeFile:function(o,a,u){u===void 0&&(u={}),u.flags=u.flags||577;var f=l.open(o,u.flags,u.mode);if(typeof a=="string"){var h=new Uint8Array(ft(a)+1),m=Yt(a,h,0,h.length);l.write(f,h,0,m,void 0,u.canOwn)}else if(ArrayBuffer.isView(a))l.write(f,a,0,a.byteLength,void 0,u.canOwn);else throw new Error("Unsupported data type");l.close(f)},cwd:function(){return l.currentPath},chdir:function(o){var a=l.lookupPath(o,{follow:!0});if(a.node===null)throw new l.ErrnoError(44);if(!l.isDir(a.node.mode))throw new l.ErrnoError(54);var u=l.nodePermissions(a.node,"x");if(u)throw new l.ErrnoError(u);l.currentPath=a.path},createDefaultDirectories:function(){l.mkdir("/tmp"),l.mkdir("/home"),l.mkdir("/home/web_user")},createDefaultDevices:function(){l.mkdir("/dev"),l.registerDevice(l.makedev(1,3),{read:function(){return 0},write:function(f,h,m,w,b){return w}}),l.mkdev("/dev/null",l.makedev(1,3)),Fe.register(l.makedev(5,0),Fe.default_tty_ops),Fe.register(l.makedev(6,0),Fe.default_tty1_ops),l.mkdev("/dev/tty",l.makedev(5,0)),l.mkdev("/dev/tty1",l.makedev(6,0));var o=new Uint8Array(1024),a=0,u=function(){return a===0&&(a=ln(o).byteLength),o[--a]};l.createDevice("/dev","random",u),l.createDevice("/dev","urandom",u),l.mkdir("/dev/shm"),l.mkdir("/dev/shm/tmp")},createSpecialDirectories:function(){l.mkdir("/proc");var o=l.mkdir("/proc/self");l.mkdir("/proc/self/fd"),l.mount({mount:function(){var a=l.createNode(o,"fd",16895,73);return a.node_ops={lookup:function(u,f){var h=+f,m=l.getStreamChecked(h),w={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:function(){return m.path}}};return w.parent=w,w}},a}},{},"/proc/self/fd")},createStandardStreams:function(){i.stdin?l.createDevice("/dev","stdin",i.stdin):l.symlink("/dev/tty","/dev/stdin"),i.stdout?l.createDevice("/dev","stdout",null,i.stdout):l.symlink("/dev/tty","/dev/stdout"),i.stderr?l.createDevice("/dev","stderr",null,i.stderr):l.symlink("/dev/tty1","/dev/stderr"),l.open("/dev/stdin",0),l.open("/dev/stdout",1),l.open("/dev/stderr",1)},ensureErrnoError:function(){l.ErrnoError||(l.ErrnoError=function(a,u){this.name="ErrnoError",this.node=u,this.setErrno=function(f){this.errno=f},this.setErrno(a),this.message="FS error"},l.ErrnoError.prototype=new Error,l.ErrnoError.prototype.constructor=l.ErrnoError,[44].forEach(function(o){l.genericErrors[o]=new l.ErrnoError(o),l.genericErrors[o].stack="<generic error, no stack>"}))},staticInit:function(){l.ensureErrnoError(),l.nameTable=new Array(4096),l.mount(I,{},"/"),l.createDefaultDirectories(),l.createDefaultDevices(),l.createSpecialDirectories(),l.filesystems={MEMFS:I}},init:function(o,a,u){l.init.initialized=!0,l.ensureErrnoError(),i.stdin=o||i.stdin,i.stdout=a||i.stdout,i.stderr=u||i.stderr,l.createStandardStreams()},quit:function(){l.init.initialized=!1;for(var o=0;o<l.streams.length;o++){var a=l.streams[o];a&&l.close(a)}},findObject:function(o,a){var u=l.analyzePath(o,a);return u.exists?u.object:null},analyzePath:function(o,a){try{var u=l.lookupPath(o,{follow:!a});o=u.path}catch{}var f={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var u=l.lookupPath(o,{parent:!0});f.parentExists=!0,f.parentPath=u.path,f.parentObject=u.node,f.name=J.basename(o),u=l.lookupPath(o,{follow:!a}),f.exists=!0,f.path=u.path,f.object=u.node,f.name=u.node.name,f.isRoot=u.path==="/"}catch(h){f.error=h.errno}return f},createPath:function(o,a,u,f){o=typeof o=="string"?o:l.getPath(o);for(var h=a.split("/").reverse();h.length;){var m=h.pop();if(m){var w=J.join2(o,m);try{l.mkdir(w)}catch{}o=w}}return w},createFile:function(o,a,u,f,h){var m=J.join2(typeof o=="string"?o:l.getPath(o),a),w=er(f,h);return l.create(m,w)},createDataFile:function(o,a,u,f,h,m){var w=a;o&&(o=typeof o=="string"?o:l.getPath(o),w=a?J.join2(o,a):o);var b=er(f,h),A=l.create(w,b);if(u){if(typeof u=="string"){for(var x=new Array(u.length),F=0,H=u.length;F<H;++F)x[F]=u.charCodeAt(F);u=x}l.chmod(A,b|146);var D=l.open(A,577);l.write(D,u,0,u.length,0,m),l.close(D),l.chmod(A,b)}return A},createDevice:function(o,a,u,f){var h=J.join2(typeof o=="string"?o:l.getPath(o),a),m=er(!!u,!!f);l.createDevice.major||(l.createDevice.major=64);var w=l.makedev(l.createDevice.major++,0);return l.registerDevice(w,{open:function(b){b.seekable=!1},close:function(b){f&&f.buffer&&f.buffer.length&&f(10)},read:function(b,A,x,F,H){for(var D=0,C=0;C<F;C++){var N;try{N=u()}catch{throw new l.ErrnoError(29)}if(N===void 0&&D===0)throw new l.ErrnoError(6);if(N==null)break;D++,A[x+C]=N}return D&&(b.node.timestamp=Date.now()),D},write:function(b,A,x,F,H){for(var D=0;D<F;D++)try{f(A[x+D])}catch{throw new l.ErrnoError(29)}return F&&(b.node.timestamp=Date.now()),D}}),l.mkdev(h,m,w)},forceLoadFile:function(o){if(o.isDevice||o.isFolder||o.link||o.contents)return!0;if(typeof XMLHttpRequest<"u")throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");if(T)try{o.contents=Zt(T(o.url),!0),o.usedBytes=o.contents.length}catch{throw new l.ErrnoError(29)}else throw new Error("Cannot load without read() or XMLHttpRequest.")},createLazyFile:function(o,a,u,f,h){function m(){this.lengthKnown=!1,this.chunks=[]}if(m.prototype.get=function(C){if(!(C>this.length-1||C<0)){var N=C%this.chunkSize,K=C/this.chunkSize|0;return this.getter(K)[N]}},m.prototype.setDataGetter=function(C){this.getter=C},m.prototype.cacheLength=function(){var C=new XMLHttpRequest;if(C.open("HEAD",u,!1),C.send(null),!(C.status>=200&&C.status<300||C.status===304))throw new Error("Couldn't load "+u+". Status: "+C.status);var N=Number(C.getResponseHeader("Content-length")),K,_e=(K=C.getResponseHeader("Accept-Ranges"))&&K==="bytes",le=(K=C.getResponseHeader("Content-Encoding"))&&K==="gzip",fe=1024*1024;_e||(fe=N);var de=function(pe,Me){if(pe>Me)throw new Error("invalid range ("+pe+", "+Me+") or no bytes requested!");if(Me>N-1)throw new Error("only "+N+" bytes available! programmer error!");var ne=new XMLHttpRequest;if(ne.open("GET",u,!1),N!==fe&&ne.setRequestHeader("Range","bytes="+pe+"-"+Me),ne.responseType="arraybuffer",ne.overrideMimeType&&ne.overrideMimeType("text/plain; charset=x-user-defined"),ne.send(null),!(ne.status>=200&&ne.status<300||ne.status===304))throw new Error("Couldn't load "+u+". Status: "+ne.status);return ne.response!==void 0?new Uint8Array(ne.response||[]):Zt(ne.responseText||"",!0)},We=this;We.setDataGetter(function(pe){var Me=pe*fe,ne=(pe+1)*fe-1;if(ne=Math.min(ne,N-1),typeof We.chunks[pe]>"u"&&(We.chunks[pe]=de(Me,ne)),typeof We.chunks[pe]>"u")throw new Error("doXHR failed!");return We.chunks[pe]}),(le||!N)&&(fe=N=1,N=this.getter(0).length,fe=N,Z("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=N,this._chunkSize=fe,this.lengthKnown=!0},typeof XMLHttpRequest<"u"){if(!O)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var w=new m;Object.defineProperties(w,{length:{get:function(){return this.lengthKnown||this.cacheLength(),this._length}},chunkSize:{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}});var b={isDevice:!1,contents:w}}else var b={isDevice:!1,url:u};var A=l.createFile(o,a,b,f,h);b.contents?A.contents=b.contents:b.url&&(A.contents=null,A.url=b.url),Object.defineProperties(A,{usedBytes:{get:function(){return this.contents.length}}});var x={},F=Object.keys(A.stream_ops);F.forEach(function(D){var C=A.stream_ops[D];x[D]=function(){return l.forceLoadFile(A),C.apply(null,arguments)}});function H(D,C,N,K,_e){var le=D.node.contents;if(_e>=le.length)return 0;var fe=Math.min(le.length-_e,K);if(le.slice)for(var de=0;de<fe;de++)C[N+de]=le[_e+de];else for(var de=0;de<fe;de++)C[N+de]=le.get(_e+de);return fe}return x.read=function(D,C,N,K,_e){return l.forceLoadFile(A),H(D,C,N,K,_e)},x.mmap=function(D,C,N,K,_e){l.forceLoadFile(A);var le=dn();if(!le)throw new l.ErrnoError(48);return H(D,oe,le,C,N),{ptr:le,allocated:!0}},A.stream_ops=x,A}},hn=function(o,a){return o?Ie(Ae,o,a):""},G={DEFAULT_POLLMASK:5,calculateAt:function(o,a,u){if(J.isAbs(a))return a;var f;if(o===-100)f=l.cwd();else{var h=G.getStreamFromFD(o);f=h.path}if(a.length==0){if(!u)throw new l.ErrnoError(44);return f}return J.join2(f,a)},doStat:function(o,a,u){try{var f=o(a)}catch(b){if(b&&b.node&&J.normalize(a)!==J.normalize(l.getPath(b.node)))return-54;throw b}k[u>>2]=f.dev,k[u+4>>2]=f.mode,W[u+8>>2]=f.nlink,k[u+12>>2]=f.uid,k[u+16>>2]=f.gid,k[u+20>>2]=f.rdev,re=[f.size>>>0,(B=f.size,+Math.abs(B)>=1?B>0?+Math.floor(B/4294967296)>>>0:~~+Math.ceil((B-+(~~B>>>0))/4294967296)>>>0:0)],k[u+24>>2]=re[0],k[u+28>>2]=re[1],k[u+32>>2]=4096,k[u+36>>2]=f.blocks;var h=f.atime.getTime(),m=f.mtime.getTime(),w=f.ctime.getTime();return re=[Math.floor(h/1e3)>>>0,(B=Math.floor(h/1e3),+Math.abs(B)>=1?B>0?+Math.floor(B/4294967296)>>>0:~~+Math.ceil((B-+(~~B>>>0))/4294967296)>>>0:0)],k[u+40>>2]=re[0],k[u+44>>2]=re[1],W[u+48>>2]=h%1e3*1e3,re=[Math.floor(m/1e3)>>>0,(B=Math.floor(m/1e3),+Math.abs(B)>=1?B>0?+Math.floor(B/4294967296)>>>0:~~+Math.ceil((B-+(~~B>>>0))/4294967296)>>>0:0)],k[u+56>>2]=re[0],k[u+60>>2]=re[1],W[u+64>>2]=m%1e3*1e3,re=[Math.floor(w/1e3)>>>0,(B=Math.floor(w/1e3),+Math.abs(B)>=1?B>0?+Math.floor(B/4294967296)>>>0:~~+Math.ceil((B-+(~~B>>>0))/4294967296)>>>0:0)],k[u+72>>2]=re[0],k[u+76>>2]=re[1],W[u+80>>2]=w%1e3*1e3,re=[f.ino>>>0,(B=f.ino,+Math.abs(B)>=1?B>0?+Math.floor(B/4294967296)>>>0:~~+Math.ceil((B-+(~~B>>>0))/4294967296)>>>0:0)],k[u+88>>2]=re[0],k[u+92>>2]=re[1],0},doMsync:function(o,a,u,f,h){if(!l.isFile(a.node.mode))throw new l.ErrnoError(43);if(f&2)return 0;var m=Ae.slice(o,o+u);l.msync(a,m,h,u,f)},varargs:void 0,get:function(){G.varargs+=4;var o=k[G.varargs-4>>2];return o},getStr:function(o){var a=hn(o);return a},getStreamFromFD:function(o){var a=l.getStreamChecked(o);return a}};function as(o){try{var a=G.getStreamFromFD(o);return l.createStream(a).fd}catch(u){if(typeof l>"u"||u.name!=="ErrnoError")throw u;return-u.errno}}var us=function(o){return k[bn()>>2]=o,o};function cs(o,a,u){G.varargs=u;try{var f=G.getStreamFromFD(o);switch(a){case 0:{var h=G.get();if(h<0)return-28;var m;return m=l.createStream(f,h),m.fd}case 1:case 2:return 0;case 3:return f.flags;case 4:{var h=G.get();return f.flags|=h,0}case 5:{var h=G.get(),w=0;return Le[h+w>>1]=2,0}case 6:case 7:return 0;case 16:case 8:return-28;case 9:return us(28),-1;default:return-28}}catch(b){if(typeof l>"u"||b.name!=="ErrnoError")throw b;return-b.errno}}function ls(o,a){try{var u=G.getStreamFromFD(o);return G.doStat(l.stat,u.path,a)}catch(f){if(typeof l>"u"||f.name!=="ErrnoError")throw f;return-f.errno}}function fs(o,a){try{return o=G.getStr(o),G.doStat(l.lstat,o,a)}catch(u){if(typeof l>"u"||u.name!=="ErrnoError")throw u;return-u.errno}}function ds(o,a,u,f){try{a=G.getStr(a);var h=f&256,m=f&4096;return f=f&-6401,a=G.calculateAt(o,a,m),G.doStat(h?l.lstat:l.stat,a,u)}catch(w){if(typeof l>"u"||w.name!=="ErrnoError")throw w;return-w.errno}}function hs(o,a,u,f){G.varargs=f;try{a=G.getStr(a),a=G.calculateAt(o,a);var h=f?G.get():0;return l.open(a,u,h).fd}catch(m){if(typeof l>"u"||m.name!=="ErrnoError")throw m;return-m.errno}}var Y={BUCKET_BUFFER_SIZE:8192,mount:function(o){return l.createNode(null,"/",16895,0)},createPipe:function(){var o={buckets:[],refcnt:2};o.buckets.push({buffer:new Uint8Array(Y.BUCKET_BUFFER_SIZE),offset:0,roffset:0});var a=Y.nextname(),u=Y.nextname(),f=l.createNode(Y.root,a,4096,0),h=l.createNode(Y.root,u,4096,0);f.pipe=o,h.pipe=o;var m=l.createStream({path:a,node:f,flags:0,seekable:!1,stream_ops:Y.stream_ops});f.stream=m;var w=l.createStream({path:u,node:h,flags:1,seekable:!1,stream_ops:Y.stream_ops});return h.stream=w,{readable_fd:m.fd,writable_fd:w.fd}},stream_ops:{poll:function(o){var a=o.node.pipe;if((o.flags&2097155)===1)return 260;if(a.buckets.length>0)for(var u=0;u<a.buckets.length;u++){var f=a.buckets[u];if(f.offset-f.roffset>0)return 65}return 0},ioctl:function(o,a,u){return 28},fsync:function(o){return 28},read:function(o,a,u,f,h){for(var m=o.node.pipe,w=0,b=0;b<m.buckets.length;b++){var A=m.buckets[b];w+=A.offset-A.roffset}ae(a instanceof ArrayBuffer||ArrayBuffer.isView(a));var x=a.subarray(u,u+f);if(f<=0)return 0;if(w==0)throw new l.ErrnoError(6);for(var F=Math.min(w,f),H=F,D=0,b=0;b<m.buckets.length;b++){var C=m.buckets[b],N=C.offset-C.roffset;if(F<=N){var K=C.buffer.subarray(C.roffset,C.offset);F<N?(K=K.subarray(0,F),C.roffset+=F):D++,x.set(K);break}else{var K=C.buffer.subarray(C.roffset,C.offset);x.set(K),x=x.subarray(K.byteLength),F-=K.byteLength,D++}}return D&&D==m.buckets.length&&(D--,m.buckets[D].offset=0,m.buckets[D].roffset=0),m.buckets.splice(0,D),H},write:function(o,a,u,f,h){var m=o.node.pipe;ae(a instanceof ArrayBuffer||ArrayBuffer.isView(a));var w=a.subarray(u,u+f),b=w.byteLength;if(b<=0)return 0;var A=null;m.buckets.length==0?(A={buffer:new Uint8Array(Y.BUCKET_BUFFER_SIZE),offset:0,roffset:0},m.buckets.push(A)):A=m.buckets[m.buckets.length-1],ae(A.offset<=Y.BUCKET_BUFFER_SIZE);var x=Y.BUCKET_BUFFER_SIZE-A.offset;if(x>=b)return A.buffer.set(w,A.offset),A.offset+=b,b;x>0&&(A.buffer.set(w.subarray(0,x),A.offset),A.offset+=x,w=w.subarray(x,w.byteLength));for(var F=w.byteLength/Y.BUCKET_BUFFER_SIZE|0,H=w.byteLength%Y.BUCKET_BUFFER_SIZE,D=0;D<F;D++){var C={buffer:new Uint8Array(Y.BUCKET_BUFFER_SIZE),offset:Y.BUCKET_BUFFER_SIZE,roffset:0};m.buckets.push(C),C.buffer.set(w.subarray(0,Y.BUCKET_BUFFER_SIZE)),w=w.subarray(Y.BUCKET_BUFFER_SIZE,w.byteLength)}if(H>0){var C={buffer:new Uint8Array(Y.BUCKET_BUFFER_SIZE),offset:w.byteLength,roffset:0};m.buckets.push(C),C.buffer.set(w)}return b},close:function(o){var a=o.node.pipe;a.refcnt--,a.refcnt===0&&(a.buckets=null)}},nextname:function(){return Y.nextname.current||(Y.nextname.current=0),"pipe["+Y.nextname.current+++"]"}};function ps(o){try{if(o==0)throw new l.ErrnoError(21);var a=Y.createPipe();return k[o>>2]=a.readable_fd,k[o+4>>2]=a.writable_fd,0}catch(u){if(typeof l>"u"||u.name!=="ErrnoError")throw u;return-u.errno}}function ms(o,a,u){try{for(var f=0,h=0;h<a;h++){var m=o+8*h,w=k[m>>2],b=Le[m+4>>1],A=32,x=l.getStream(w);x&&(A=G.DEFAULT_POLLMASK,x.stream_ops.poll&&(A=x.stream_ops.poll(x,-1))),A&=b|8|16,A&&f++,Le[m+6>>1]=A}return f}catch(F){if(typeof l>"u"||F.name!=="ErrnoError")throw F;return-F.errno}}function ys(o,a){try{return o=G.getStr(o),G.doStat(l.stat,o,a)}catch(u){if(typeof l>"u"||u.name!=="ErrnoError")throw u;return-u.errno}}var vs=function(o){return o%4===0&&(o%100!==0||o%400===0)},gs=[0,31,60,91,121,152,182,213,244,274,305,335],ws=[0,31,59,90,120,151,181,212,243,273,304,334],pn=function(o){var a=vs(o.getFullYear()),u=a?gs:ws,f=u[o.getMonth()]+o.getDate()-1;return f};function mn(o,a){return a+2097152>>>0<4194305-!!o?(o>>>0)+a*4294967296:NaN}function bs(o,a,u){var f=mn(o,a),h=new Date(f*1e3);k[u>>2]=h.getSeconds(),k[u+4>>2]=h.getMinutes(),k[u+8>>2]=h.getHours(),k[u+12>>2]=h.getDate(),k[u+16>>2]=h.getMonth(),k[u+20>>2]=h.getFullYear()-1900,k[u+24>>2]=h.getDay();var m=pn(h)|0;k[u+28>>2]=m,k[u+36>>2]=-(h.getTimezoneOffset()*60);var w=new Date(h.getFullYear(),0,1),b=new Date(h.getFullYear(),6,1).getTimezoneOffset(),A=w.getTimezoneOffset(),x=(b!=A&&h.getTimezoneOffset()==Math.min(A,b))|0;k[u+32>>2]=x}var Es=function(o){var a=function(){var u=new Date(k[o+20>>2]+1900,k[o+16>>2],k[o+12>>2],k[o+8>>2],k[o+4>>2],k[o>>2],0),f=k[o+32>>2],h=u.getTimezoneOffset(),m=new Date(u.getFullYear(),0,1),w=new Date(u.getFullYear(),6,1).getTimezoneOffset(),b=m.getTimezoneOffset(),A=Math.min(b,w);if(f<0)k[o+32>>2]=+(w!=b&&A==h);else if(f>0!=(A==h)){var x=Math.max(b,w),F=f>0?A:x;u.setTime(u.getTime()+(F-h)*6e4)}k[o+24>>2]=u.getDay();var H=pn(u)|0;return k[o+28>>2]=H,k[o>>2]=u.getSeconds(),k[o+4>>2]=u.getMinutes(),k[o+8>>2]=u.getHours(),k[o+12>>2]=u.getDate(),k[o+16>>2]=u.getMonth(),k[o+20>>2]=u.getYear(),u.getTime()/1e3}();return rr((B=a,+Math.abs(B)>=1?B>0?+Math.floor(B/4294967296)>>>0:~~+Math.ceil((B-+(~~B>>>0))/4294967296)>>>0:0)),a>>>0},_s=function(o){var a=function(){var u=Date.UTC(k[o+20>>2]+1900,k[o+16>>2],k[o+12>>2],k[o+8>>2],k[o+4>>2],k[o>>2],0),f=new Date(u);k[o+24>>2]=f.getUTCDay();var h=Date.UTC(f.getUTCFullYear(),0,1,0,0,0,0),m=(f.getTime()-h)/(1e3*60*60*24)|0;return k[o+28>>2]=m,f.getTime()/1e3}();return rr((B=a,+Math.abs(B)>=1?B>0?+Math.floor(B/4294967296)>>>0:~~+Math.ceil((B-+(~~B>>>0))/4294967296)>>>0:0)),a>>>0},yn=function(o,a,u){return Yt(o,Ae,a,u)},vn=function(o){var a=ft(o)+1,u=En(a);return u&&yn(o,u,a),u},Ss=function(o,a,u){var f=new Date().getFullYear(),h=new Date(f,0,1),m=new Date(f,6,1),w=h.getTimezoneOffset(),b=m.getTimezoneOffset(),A=Math.max(w,b);W[o>>2]=A*60,k[a>>2]=+(w!=b);function x(N){var K=N.toTimeString().match(/\(([A-Za-z ]+)\)$/);return K?K[1]:"GMT"}var F=x(h),H=x(m),D=vn(F),C=vn(H);b<w?(W[u>>2]=D,W[u+4>>2]=C):(W[u>>2]=C,W[u+4>>2]=D)},Rs=function(){Ne("")},As=function(o,a,u){return Ae.copyWithin(o,a,a+u)},Os=function(){return 2147483648},Ts=function(o){var a=U.buffer,u=o-a.byteLength+65535>>>16;try{return U.grow(u),rn(),1}catch{}},ks=function(o){var a=Ae.length;o>>>=0;var u=Os();if(o>u)return!1;for(var f=function(A,x){return A+(x-A%x)%x},h=1;h<=4;h*=2){var m=a*(1+.2/h);m=Math.min(m,o+100663296);var w=Math.min(u,f(Math.max(o,m),65536)),b=Ts(w);if(b)return!0}return!1},tr={},xs=function(){return y||"./this.program"},qe=function(){if(!qe.strings){var o=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",a={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:o,_:xs()};for(var u in tr)tr[u]===void 0?delete a[u]:a[u]=tr[u];var f=[];for(var u in a)f.push("".concat(u,"=").concat(a[u]));qe.strings=f}return qe.strings},Cs=function(o,a){for(var u=0;u<o.length;++u)oe[a++>>0]=o.charCodeAt(u);oe[a>>0]=0},Ps=function(o,a){var u=0;return qe().forEach(function(f,h){var m=a+u;W[o+h*4>>2]=m,Cs(f,m),u+=f.length+1}),0},Fs=function(o,a){var u=qe();W[o>>2]=u.length;var f=0;return u.forEach(function(h){f+=h.length+1}),W[a>>2]=f,0},Ds=function(o){zi()||(i.onExit&&i.onExit(o),X=!0),v(o,new Zi(o))},Ls=function(o,a){Ds(o)},Ns=Ls;function Bs(o){try{var a=G.getStreamFromFD(o);return l.close(a),0}catch(u){if(typeof l>"u"||u.name!=="ErrnoError")throw u;return u.errno}}var Is=function(o,a,u,f){for(var h=0,m=0;m<u;m++){var w=W[a>>2],b=W[a+4>>2];a+=8;var A=l.read(o,oe,w,b,f);if(A<0)return-1;if(h+=A,A<b)break;typeof f<"u"&&(f+=A)}return h};function Ms(o,a,u,f){try{var h=G.getStreamFromFD(o),m=Is(h,a,u);return W[f>>2]=m,0}catch(w){if(typeof l>"u"||w.name!=="ErrnoError")throw w;return w.errno}}function js(o,a,u,f,h){var m=mn(a,u);try{if(isNaN(m))return 61;var w=G.getStreamFromFD(o);return l.llseek(w,m,f),re=[w.position>>>0,(B=w.position,+Math.abs(B)>=1?B>0?+Math.floor(B/4294967296)>>>0:~~+Math.ceil((B-+(~~B>>>0))/4294967296)>>>0:0)],k[h>>2]=re[0],k[h+4>>2]=re[1],w.getdents&&m===0&&f===0&&(w.getdents=null),0}catch(b){if(typeof l>"u"||b.name!=="ErrnoError")throw b;return b.errno}}var Us=function(o,a,u,f){for(var h=0,m=0;m<u;m++){var w=W[a>>2],b=W[a+4>>2];a+=8;var A=l.write(o,oe,w,b,f);if(A<0)return-1;h+=A,typeof f<"u"&&(f+=A)}return h};function $s(o,a,u,f){try{var h=G.getStreamFromFD(o),m=Us(h,a,u);return W[f>>2]=m,0}catch(w){if(typeof l>"u"||w.name!=="ErrnoError")throw w;return w.errno}}function gn(o){var a=i["_"+o];return a}var zs=function(o,a){oe.set(o,a)},Hs=function(o){var a=ft(o)+1,u=nr(a);return yn(o,u,a),u},Vs=function(o,a,u,f,h){var m={string:function(N){var K=0;return N!=null&&N!==0&&(K=Hs(N)),K},array:function(N){var K=nr(N.length);return zs(N,K),K}};function w(N){return a==="string"?hn(N):a==="boolean"?!!N:N}var b=gn(o),A=[],x=0;if(f)for(var F=0;F<f.length;F++){var H=m[u[F]];H?(x===0&&(x=_n()),A[F]=H(f[F])):A[F]=f[F]}var D=b.apply(null,A);function C(N){return x!==0&&Sn(x),w(N)}return D=C(D),D},qs=function(o,a,u,f){var h=!u||u.every(function(w){return w==="number"||w==="boolean"}),m=a!=="string";return m&&h&&!f?gn(o):function(){return Vs(o,a,u,arguments)}},wn=function(o,a,u,f){o||(o=this),this.parent=o,this.mount=o.mount,this.mounted=null,this.id=l.nextInode++,this.name=a,this.mode=u,this.node_ops={},this.stream_ops={},this.rdev=f},dt=365,ht=146;Object.defineProperties(wn.prototype,{read:{get:function(){return(this.mode&dt)===dt},set:function(o){o?this.mode|=dt:this.mode&=~dt}},write:{get:function(){return(this.mode&ht)===ht},set:function(o){o?this.mode|=ht:this.mode&=~ht}},isFolder:{get:function(){return l.isDir(this.mode)}},isDevice:{get:function(){return l.isChrdev(this.mode)}}}),l.FSNode=wn,l.createPreloadedFile=is,l.staticInit();var Ws={i:as,a:cs,v:ls,s:fs,t:ds,w:hs,r:ps,q:ms,u:ys,k:bs,l:Es,m:_s,p:Ss,d:Rs,h:As,o:ks,f:Ps,g:Fs,e:Ns,c:Bs,j:Ms,n:js,b:$s};Yi(),i._archive_read_new_memory=function(){return(i._archive_read_new_memory=i.asm.z).apply(null,arguments)},i._archive_read_new=function(){return(i._archive_read_new=i.asm.A).apply(null,arguments)},i._archive_read_support_filter_all=function(){return(i._archive_read_support_filter_all=i.asm.B).apply(null,arguments)},i._archive_read_support_format_all=function(){return(i._archive_read_support_format_all=i.asm.C).apply(null,arguments)},i._archive_read_add_passphrase=function(){return(i._archive_read_add_passphrase=i.asm.D).apply(null,arguments)},i._archive_read_open_memory=function(){return(i._archive_read_open_memory=i.asm.E).apply(null,arguments)},i._archive_read_next_entry=function(){return(i._archive_read_next_entry=i.asm.F).apply(null,arguments)},i._archive_entry_filetype=function(){return(i._archive_entry_filetype=i.asm.H).apply(null,arguments)},i._archive_entry_pathname_utf8=function(){return(i._archive_entry_pathname_utf8=i.asm.I).apply(null,arguments)},i._archive_entry_size=function(){return(i._archive_entry_size=i.asm.J).apply(null,arguments)},i._archive_entry_is_encrypted=function(){return(i._archive_entry_is_encrypted=i.asm.K).apply(null,arguments)},i._free=function(){return(i._free=i.asm.L).apply(null,arguments)};var bn=function(){return(bn=i.asm.M).apply(null,arguments)},En=i._malloc=function(){return(En=i._malloc=i.asm.N).apply(null,arguments)};i._archive_read_has_encrypted_entries=function(){return(i._archive_read_has_encrypted_entries=i.asm.O).apply(null,arguments)},i._archive_read_data=function(){return(i._archive_read_data=i.asm.P).apply(null,arguments)},i._archive_read_data_skip=function(){return(i._archive_read_data_skip=i.asm.Q).apply(null,arguments)},i._archive_version_number=function(){return(i._archive_version_number=i.asm.R).apply(null,arguments)},i._archive_version_string=function(){return(i._archive_version_string=i.asm.S).apply(null,arguments)},i._archive_error_string=function(){return(i._archive_error_string=i.asm.T).apply(null,arguments)},i._archive_version_details=function(){return(i._archive_version_details=i.asm.U).apply(null,arguments)},i._archive_read_free=function(){return(i._archive_read_free=i.asm.V).apply(null,arguments)};var rr=function(){return(rr=i.asm.W).apply(null,arguments)},_n=function(){return(_n=i.asm.X).apply(null,arguments)},Sn=function(){return(Sn=i.asm.Y).apply(null,arguments)},nr=function(){return(nr=i.asm.Z).apply(null,arguments)};i.cwrap=qs;var pt;Ve=function o(){pt||Rn(),pt||(Ve=o)};function Rn(){if(Pe>0||(Hi(),Pe>0))return;function o(){pt||(pt=!0,i.calledRun=!0,!X&&(Vi(),c(i),i.onRuntimeInitialized&&i.onRuntimeInitialized(),qi()))}i.setStatus?(i.setStatus("Running..."),setTimeout(function(){setTimeout(function(){i.setStatus("")},1),o()},1)):o()}if(i.preInit)for(typeof i.preInit=="function"&&(i.preInit=[i.preInit]);i.preInit.length>0;)i.preInit.pop()();return Rn(),s.ready}}();e.exports=r})(go);var wo=go.exports,Ft={},ot={};Object.defineProperty(ot,"__esModule",{value:!0});ot.wrapLibarchiveWasm=void 0;function Ys(e){var t=function(n,s){return function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];var g=n.apply(void 0,c);if(s(g))throw new Error(this.error_string(c[0]));return g}},r=function(n){return n!==0};return{module:e,version_number:e.cwrap("archive_version_number","number",[]),version_string:e.cwrap("archive_version_string","string",[]),version_details:e.cwrap("archive_version_details","string",[]),read_new_memory:t(e.cwrap("archive_read_new_memory","number",["number","number","string"]),function(n){return n===0}),read_new:e.cwrap("archive_read_new","number",[]),read_support_filter_all:t(e.cwrap("archive_read_support_filter_all","number",["number"]),r),read_support_format_all:t(e.cwrap("archive_read_support_format_all","number",["number"]),r),read_open_memory:t(e.cwrap("archive_read_open_memory","number",["number","number","number"]),r),read_next_entry:e.cwrap("archive_read_next_entry","number",["number"]),read_has_encrypted_entries:e.cwrap("archive_read_has_encrypted_entries","number",["number"]),read_data:t(e.cwrap("archive_read_data","number",["number","number","number"]),function(n){return n<0}),read_data_skip:t(e.cwrap("archive_read_data_skip","number",["number"]),r),read_add_passphrase:t(e.cwrap("archive_read_add_passphrase","number",["number","string"]),r),read_free:t(e.cwrap("archive_read_free","number",["number"]),r),error_string:e.cwrap("archive_error_string","string",["number"]),entry_filetype:e.cwrap("archive_entry_filetype","number",["number"]),entry_pathname:e.cwrap("archive_entry_pathname_utf8","string",["number"]),entry_size:e.cwrap("archive_entry_size","number",["number"]),entry_is_encrypted:e.cwrap("archive_entry_is_encrypted","number",["number"])}}ot.wrapLibarchiveWasm=Ys;var Zs=he&&he.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ft,"__esModule",{value:!0});Ft.libarchiveWasm=void 0;var ea=Zs(wo),ta=ot;function ra(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new Promise(function(r){ea.default.apply(void 0,e).then(function(n){r((0,ta.wrapLibarchiveWasm)(n))})})}Ft.libarchiveWasm=ra;var Dt={},Lt={};Object.defineProperty(Lt,"__esModule",{value:!0});Lt.ArchiveReaderEntry=void 0;var na=function(){function e(t,r){this.reader=t,this.pointer=r,this.readCalled=!1}return e.prototype.free=function(){this.skipData(),this.reader=null,this.pointer=null},e.prototype.readData=function(){if(this.readCalled)throw new Error("It has already been called.");var t=this.getSize();if(!t){this.skipData();return}return this.readCalled=!0,this.reader.readData(t)},e.prototype.skipData=function(){this.readCalled||(this.readCalled=!0,this.reader.skipData())},e.prototype.getFiletype=function(){return this.reader.getEntryFiletype(this.pointer)},e.prototype.getPathname=function(){return this.reader.getEntryPathname(this.pointer)},e.prototype.getSize=function(){return this.reader.getEntrySize(this.pointer)},e.prototype.isEncrypted=function(){return this.reader.isEntryEncrypted(this.pointer)},e}();Lt.ArchiveReaderEntry=na;var oa=he&&he.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,c;return c={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function d(y){return function(v){return g([y,v])}}function g(y){if(n)throw new TypeError("Generator is already executing.");for(;c&&(c=0,y[0]&&(r=0)),r;)try{if(n=1,s&&(i=y[0]&2?s.return:y[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,y[1])).done)return i;switch(s=0,i&&(y=[y[0]&2,i.value]),y[0]){case 0:case 1:i=y;break;case 4:return r.label++,{value:y[1],done:!1};case 5:r.label++,s=y[1],y=[0];continue;case 7:y=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(y[0]===6||y[0]===2)){r=0;continue}if(y[0]===3&&(!i||y[1]>i[0]&&y[1]<i[3])){r.label=y[1];break}if(y[0]===6&&r.label<i[1]){r.label=i[1],i=y;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(y);break}i[2]&&r.ops.pop(),r.trys.pop();continue}y=t.call(e,r)}catch(v){y=[6,v],s=0}finally{n=i=0}if(y[0]&5)throw y[1];return{value:y[0]?y[1]:void 0,done:!0}}},me;Object.defineProperty(Dt,"__esModule",{value:!0});Dt.ArchiveReader=void 0;var ia=Lt;Dt.ArchiveReader=function(){function e(t,r,n){var s=t.module._malloc(r.length);t.module.HEAP8.set(r,s),this.libarchive=t,this.archive=t.read_new_memory(s,r.length,n),this.pointer=s}return e.prototype.free=function(){this.libarchive.read_free(this.archive),this.libarchive.module._free(this.pointer),this.libarchive=null,this.archive=null,this.pointer=null},e.prototype.hasEncryptedData=function(){var t=this.libarchive.read_has_encrypted_entries(this.archive);return t<0?null:!!t},e.prototype.readData=function(t){var r=this.libarchive.module._malloc(t),n=this.libarchive.read_data(this.archive,r,t),s=this.libarchive.module.HEAP8.slice(r,r+n);return this.libarchive.module._free(r),s},e.prototype.skipData=function(){this.libarchive.read_data_skip(this.archive)},e.prototype.nextEntryPointer=function(){return this.libarchive.read_next_entry(this.archive)},e.prototype.getEntryFiletype=function(t){return e.FileTypes["".concat(this.libarchive.entry_filetype(t))]||"Invalid"},e.prototype.getEntryPathname=function(t){return this.libarchive.entry_pathname(t)},e.prototype.getEntrySize=function(t){return this.libarchive.entry_size(t)},e.prototype.isEntryEncrypted=function(t){return!!this.libarchive.entry_is_encrypted(t)},e.prototype.nextEntry=function(){var t=this.nextEntryPointer();return t===0?null:new ia.ArchiveReaderEntry(this,t)},e.prototype.forEach=function(t){for(;;){var r=this.nextEntry();if(!r)break;t(r),r.free()}},e.prototype.entries=function(){var t;return oa(this,function(r){switch(r.label){case 0:return t=this.nextEntry(),t?[4,t]:[3,3];case 1:r.sent(),t.free(),r.label=2;case 2:return[3,0];case 3:return[2]}})},e.FileTypes=(me={},me["".concat(61440)]="Mount",me["".concat(32768)]="File",me["".concat(40960)]="SymbolicLink",me["".concat(49152)]="Socket",me["".concat(8192)]="CharacterDevice",me["".concat(24576)]="BlockDevice",me["".concat(16384)]="Directory",me["".concat(4096)]="NamedPipe",me),e}();(function(e){var t=he&&he.__createBinding||(Object.create?function(i,c,d,g){g===void 0&&(g=d);var y=Object.getOwnPropertyDescriptor(c,d);(!y||("get"in y?!c.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return c[d]}}),Object.defineProperty(i,g,y)}:function(i,c,d,g){g===void 0&&(g=d),i[g]=c[d]}),r=he&&he.__exportStar||function(i,c){for(var d in i)d!=="default"&&!Object.prototype.hasOwnProperty.call(c,d)&&t(c,i,d)},n=he&&he.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.libarchive=void 0;var s=n(wo);e.libarchive=s.default,r(Ft,e),r(ot,e),r(Dt,e)})(Qs);/*!
|
|
* pinia v2.1.7
|
|
* (c) 2023 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/let bo;const Nt=e=>bo=e,Eo=Symbol();function yr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ye;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ye||(Ye={}));function kf(){const e=VueDemi.effectScope(!0),t=e.run(()=>VueDemi.ref({}));let r=[],n=[];const s=VueDemi.markRaw({install(i){Nt(s),VueDemi.isVue2||(s._a=i,i.provide(Eo,s),i.config.globalProperties.$pinia=s,n.forEach(c=>r.push(c)),n=[])},use(i){return!this._a&&!VueDemi.isVue2?n.push(i):r.push(i),this},_p:r,_a:null,_e:e,_s:new Map,state:t});return s}const _o=()=>{};function An(e,t,r,n=_o){e.push(t);const s=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),n())};return!r&&VueDemi.getCurrentScope()&&VueDemi.onScopeDispose(s),s}function je(e,...t){e.slice().forEach(r=>{r(...t)})}const sa=e=>e();function vr(e,t){e instanceof Map&&t instanceof Map&&t.forEach((r,n)=>e.set(n,r)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const r in t){if(!t.hasOwnProperty(r))continue;const n=t[r],s=e[r];yr(s)&&yr(n)&&e.hasOwnProperty(r)&&!VueDemi.isRef(n)&&!VueDemi.isReactive(n)?e[r]=vr(s,n):e[r]=n}return e}const aa=Symbol(),ua=new WeakMap;function ca(e){return VueDemi.isVue2?!ua.has(e):!yr(e)||!e.hasOwnProperty(aa)}const{assign:ke}=Object;function la(e){return!!(VueDemi.isRef(e)&&e.effect)}function fa(e,t,r,n){const{state:s,actions:i,getters:c}=t,d=r.state.value[e];let g;function y(){d||(VueDemi.isVue2?VueDemi.set(r.state.value,e,s?s():{}):r.state.value[e]=s?s():{});const v=VueDemi.toRefs(r.state.value[e]);return ke(v,i,Object.keys(c||{}).reduce((p,O)=>(p[O]=VueDemi.markRaw(VueDemi.computed(()=>{Nt(r);const P=r._s.get(e);if(!(VueDemi.isVue2&&!P._r))return c[O].call(P,P)})),p),{}))}return g=So(e,y,t,r,n,!0),g}function So(e,t,r={},n,s,i){let c;const d=ke({actions:{}},r),g={deep:!0};let y,v,p=[],O=[],P;const E=n.state.value[e];!i&&!E&&(VueDemi.isVue2?VueDemi.set(n.state.value,e,{}):n.state.value[e]={}),VueDemi.ref({});let _;function T(z){let U;y=v=!1,typeof z=="function"?(z(n.state.value[e]),U={type:Ye.patchFunction,storeId:e,events:P}):(vr(n.state.value[e],z),U={type:Ye.patchObject,payload:z,storeId:e,events:P});const X=_=Symbol();VueDemi.nextTick().then(()=>{_===X&&(y=!0)}),v=!0,je(p,U,n.state.value[e])}const L=i?function(){const{state:U}=r,X=U?U():{};this.$patch(ae=>{ke(ae,X)})}:_o;function M(){c.stop(),p=[],O=[],n._s.delete(e)}function j(z,U){return function(){Nt(n);const X=Array.from(arguments),ae=[],oe=[];function Ae(W){ae.push(W)}function Le(W){oe.push(W)}je(O,{args:X,name:z,store:Z,after:Ae,onError:Le});let k;try{k=U.apply(this&&this.$id===e?this:Z,X)}catch(W){throw je(oe,W),W}return k instanceof Promise?k.then(W=>(je(ae,W),W)).catch(W=>(je(oe,W),Promise.reject(W))):(je(ae,k),k)}}const se={_p:n,$id:e,$onAction:An.bind(null,O),$patch:T,$reset:L,$subscribe(z,U={}){const X=An(p,z,U.detached,()=>ae()),ae=c.run(()=>VueDemi.watch(()=>n.state.value[e],oe=>{(U.flush==="sync"?v:y)&&z({storeId:e,type:Ye.direct,events:P},oe)},ke({},g,U)));return X},$dispose:M};VueDemi.isVue2&&(se._r=!1);const Z=VueDemi.reactive(se);n._s.set(e,Z);const Q=(n._a&&n._a.runWithContext||sa)(()=>n._e.run(()=>(c=VueDemi.effectScope()).run(t)));for(const z in Q){const U=Q[z];if(VueDemi.isRef(U)&&!la(U)||VueDemi.isReactive(U))i||(E&&ca(U)&&(VueDemi.isRef(U)?U.value=E[z]:vr(U,E[z])),VueDemi.isVue2?VueDemi.set(n.state.value[e],z,U):n.state.value[e][z]=U);else if(typeof U=="function"){const X=j(z,U);VueDemi.isVue2?VueDemi.set(Q,z,X):Q[z]=X,d.actions[z]=U}}return VueDemi.isVue2?Object.keys(Q).forEach(z=>{VueDemi.set(Z,z,Q[z])}):(ke(Z,Q),ke(VueDemi.toRaw(Z),Q)),Object.defineProperty(Z,"$state",{get:()=>n.state.value[e],set:z=>{T(U=>{ke(U,z)})}}),VueDemi.isVue2&&(Z._r=!0),n._p.forEach(z=>{ke(Z,c.run(()=>z({store:Z,app:n._a,pinia:n,options:d})))}),E&&i&&r.hydrate&&r.hydrate(Z.$state,E),y=!0,v=!0,Z}function xf(e,t,r){let n,s;const i=typeof t=="function";typeof e=="string"?(n=e,s=i?r:t):(s=e,n=e.id);function c(d,g){const y=VueDemi.hasInjectionContext();return d=d||(y?VueDemi.inject(Eo,null):null),d&&Nt(d),d=bo,d._s.has(n)||(i?So(n,t,s,d):fa(n,s,d)),d._s.get(n)}return c.$id=n,c}function Cf(e,t){return Array.isArray(t)?t.reduce((r,n)=>(r[n]=function(){return e(this.$pinia)[n]},r),{}):Object.keys(t).reduce((r,n)=>(r[n]=function(){const s=e(this.$pinia),i=t[n];return typeof i=="function"?i.call(this,s):s[i]},r),{})}function Ro(e,t){return function(){return e.apply(t,arguments)}}const{toString:da}=Object.prototype,{getPrototypeOf:Ir}=Object,Bt=(e=>t=>{const r=da.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),we=e=>(e=e.toLowerCase(),t=>Bt(t)===e),It=e=>t=>typeof t===e,{isArray:ze}=Array,et=It("undefined");function ha(e){return e!==null&&!et(e)&&e.constructor!==null&&!et(e.constructor)&&ue(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ao=we("ArrayBuffer");function pa(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ao(e.buffer),t}const ma=It("string"),ue=It("function"),Oo=It("number"),Mt=e=>e!==null&&typeof e=="object",ya=e=>e===!0||e===!1,wt=e=>{if(Bt(e)!=="object")return!1;const t=Ir(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},va=we("Date"),ga=we("File"),wa=we("Blob"),ba=we("FileList"),Ea=e=>Mt(e)&&ue(e.pipe),_a=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ue(e.append)&&((t=Bt(e))==="formdata"||t==="object"&&ue(e.toString)&&e.toString()==="[object FormData]"))},Sa=we("URLSearchParams"),Ra=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function it(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),ze(e))for(n=0,s=e.length;n<s;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),c=i.length;let d;for(n=0;n<c;n++)d=i[n],t.call(null,e[d],d,e)}}function To(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,s;for(;n-- >0;)if(s=r[n],t===s.toLowerCase())return s;return null}const ko=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,xo=e=>!et(e)&&e!==ko;function gr(){const{caseless:e}=xo(this)&&this||{},t={},r=(n,s)=>{const i=e&&To(t,s)||s;wt(t[i])&&wt(n)?t[i]=gr(t[i],n):wt(n)?t[i]=gr({},n):ze(n)?t[i]=n.slice():t[i]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&it(arguments[n],r);return t}const Aa=(e,t,r,{allOwnKeys:n}={})=>(it(t,(s,i)=>{r&&ue(s)?e[i]=Ro(s,r):e[i]=s},{allOwnKeys:n}),e),Oa=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ta=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},ka=(e,t,r,n)=>{let s,i,c;const d={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)c=s[i],(!n||n(c,e,t))&&!d[c]&&(t[c]=e[c],d[c]=!0);e=r!==!1&&Ir(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},xa=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Ca=e=>{if(!e)return null;if(ze(e))return e;let t=e.length;if(!Oo(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Pa=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ir(Uint8Array)),Fa=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=n.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},Da=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},La=we("HTMLFormElement"),Na=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,s){return n.toUpperCase()+s}),On=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Ba=we("RegExp"),Co=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};it(r,(s,i)=>{let c;(c=t(s,i,e))!==!1&&(n[i]=c||s)}),Object.defineProperties(e,n)},Ia=e=>{Co(e,(t,r)=>{if(ue(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(ue(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Ma=(e,t)=>{const r={},n=s=>{s.forEach(i=>{r[i]=!0})};return ze(e)?n(e):n(String(e).split(t)),r},ja=()=>{},Ua=(e,t)=>(e=+e,Number.isFinite(e)?e:t),ir="abcdefghijklmnopqrstuvwxyz",Tn="0123456789",Po={DIGIT:Tn,ALPHA:ir,ALPHA_DIGIT:ir+ir.toUpperCase()+Tn},$a=(e=16,t=Po.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function za(e){return!!(e&&ue(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Ha=e=>{const t=new Array(10),r=(n,s)=>{if(Mt(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[s]=n;const i=ze(n)?[]:{};return it(n,(c,d)=>{const g=r(c,s+1);!et(g)&&(i[d]=g)}),t[s]=void 0,i}}return n};return r(e,0)},Va=we("AsyncFunction"),qa=e=>e&&(Mt(e)||ue(e))&&ue(e.then)&&ue(e.catch),S={isArray:ze,isArrayBuffer:Ao,isBuffer:ha,isFormData:_a,isArrayBufferView:pa,isString:ma,isNumber:Oo,isBoolean:ya,isObject:Mt,isPlainObject:wt,isUndefined:et,isDate:va,isFile:ga,isBlob:wa,isRegExp:Ba,isFunction:ue,isStream:Ea,isURLSearchParams:Sa,isTypedArray:Pa,isFileList:ba,forEach:it,merge:gr,extend:Aa,trim:Ra,stripBOM:Oa,inherits:Ta,toFlatObject:ka,kindOf:Bt,kindOfTest:we,endsWith:xa,toArray:Ca,forEachEntry:Fa,matchAll:Da,isHTMLForm:La,hasOwnProperty:On,hasOwnProp:On,reduceDescriptors:Co,freezeMethods:Ia,toObjectSet:Ma,toCamelCase:Na,noop:ja,toFiniteNumber:Ua,findKey:To,global:ko,isContextDefined:xo,ALPHABET:Po,generateString:$a,isSpecCompliantForm:za,toJSONObject:Ha,isAsyncFn:Va,isThenable:qa};function V(e,t,r,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),s&&(this.response=s)}S.inherits(V,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:S.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Fo=V.prototype,Do={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Do[e]={value:e}});Object.defineProperties(V,Do);Object.defineProperty(Fo,"isAxiosError",{value:!0});V.from=(e,t,r,n,s,i)=>{const c=Object.create(Fo);return S.toFlatObject(e,c,function(g){return g!==Error.prototype},d=>d!=="isAxiosError"),V.call(c,e.message,t,r,n,s),c.cause=e,c.name=e.name,i&&Object.assign(c,i),c};const Wa=null;function wr(e){return S.isPlainObject(e)||S.isArray(e)}function Lo(e){return S.endsWith(e,"[]")?e.slice(0,-2):e}function kn(e,t,r){return e?e.concat(t).map(function(s,i){return s=Lo(s),!r&&i?"["+s+"]":s}).join(r?".":""):t}function Ja(e){return S.isArray(e)&&!e.some(wr)}const Ka=S.toFlatObject(S,{},null,function(t){return/^is[A-Z]/.test(t)});function jt(e,t,r){if(!S.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=S.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,T){return!S.isUndefined(T[_])});const n=r.metaTokens,s=r.visitor||v,i=r.dots,c=r.indexes,g=(r.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(t);if(!S.isFunction(s))throw new TypeError("visitor must be a function");function y(E){if(E===null)return"";if(S.isDate(E))return E.toISOString();if(!g&&S.isBlob(E))throw new V("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(E)||S.isTypedArray(E)?g&&typeof Blob=="function"?new Blob([E]):Buffer.from(E):E}function v(E,_,T){let L=E;if(E&&!T&&typeof E=="object"){if(S.endsWith(_,"{}"))_=n?_:_.slice(0,-2),E=JSON.stringify(E);else if(S.isArray(E)&&Ja(E)||(S.isFileList(E)||S.endsWith(_,"[]"))&&(L=S.toArray(E)))return _=Lo(_),L.forEach(function(j,se){!(S.isUndefined(j)||j===null)&&t.append(c===!0?kn([_],se,i):c===null?_:_+"[]",y(j))}),!1}return wr(E)?!0:(t.append(kn(T,_,i),y(E)),!1)}const p=[],O=Object.assign(Ka,{defaultVisitor:v,convertValue:y,isVisitable:wr});function P(E,_){if(!S.isUndefined(E)){if(p.indexOf(E)!==-1)throw Error("Circular reference detected in "+_.join("."));p.push(E),S.forEach(E,function(L,M){(!(S.isUndefined(L)||L===null)&&s.call(t,L,S.isString(M)?M.trim():M,_,O))===!0&&P(L,_?_.concat(M):[M])}),p.pop()}}if(!S.isObject(e))throw new TypeError("data must be an object");return P(e),t}function xn(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Mr(e,t){this._pairs=[],e&&jt(e,this,t)}const No=Mr.prototype;No.append=function(t,r){this._pairs.push([t,r])};No.toString=function(t){const r=t?function(n){return t.call(this,n,xn)}:xn;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function Qa(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Bo(e,t,r){if(!t)return e;const n=r&&r.encode||Qa,s=r&&r.serialize;let i;if(s?i=s(t,r):i=S.isURLSearchParams(t)?t.toString():new Mr(t,r).toString(n),i){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}let Cn=class{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){S.forEach(this.handlers,function(n){n!==null&&t(n)})}};const Io={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ga=typeof URLSearchParams<"u"?URLSearchParams:Mr,Xa=typeof FormData<"u"?FormData:null,Ya=typeof Blob<"u"?Blob:null,Za={isBrowser:!0,classes:{URLSearchParams:Ga,FormData:Xa,Blob:Ya},protocols:["http","https","file","blob","url","data"]},Mo=typeof window<"u"&&typeof document<"u",eu=(e=>Mo&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),tu=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ru=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Mo,hasStandardBrowserEnv:eu,hasStandardBrowserWebWorkerEnv:tu},Symbol.toStringTag,{value:"Module"})),ye={...ru,...Za};function nu(e,t){return jt(e,new ye.classes.URLSearchParams,Object.assign({visitor:function(r,n,s,i){return ye.isNode&&S.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function ou(e){return S.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function iu(e){const t={},r=Object.keys(e);let n;const s=r.length;let i;for(n=0;n<s;n++)i=r[n],t[i]=e[i];return t}function jo(e){function t(r,n,s,i){let c=r[i++];if(c==="__proto__")return!0;const d=Number.isFinite(+c),g=i>=r.length;return c=!c&&S.isArray(s)?s.length:c,g?(S.hasOwnProp(s,c)?s[c]=[s[c],n]:s[c]=n,!d):((!s[c]||!S.isObject(s[c]))&&(s[c]=[]),t(r,n,s[c],i)&&S.isArray(s[c])&&(s[c]=iu(s[c])),!d)}if(S.isFormData(e)&&S.isFunction(e.entries)){const r={};return S.forEachEntry(e,(n,s)=>{t(ou(n),s,r,0)}),r}return null}function su(e,t,r){if(S.isString(e))try{return(t||JSON.parse)(e),S.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const jr={transitional:Io,adapter:["xhr","http"],transformRequest:[function(t,r){const n=r.getContentType()||"",s=n.indexOf("application/json")>-1,i=S.isObject(t);if(i&&S.isHTMLForm(t)&&(t=new FormData(t)),S.isFormData(t))return s?JSON.stringify(jo(t)):t;if(S.isArrayBuffer(t)||S.isBuffer(t)||S.isStream(t)||S.isFile(t)||S.isBlob(t))return t;if(S.isArrayBufferView(t))return t.buffer;if(S.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let d;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return nu(t,this.formSerializer).toString();if((d=S.isFileList(t))||n.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return jt(d?{"files[]":t}:t,g&&new g,this.formSerializer)}}return i||s?(r.setContentType("application/json",!1),su(t)):t}],transformResponse:[function(t){const r=this.transitional||jr.transitional,n=r&&r.forcedJSONParsing,s=this.responseType==="json";if(t&&S.isString(t)&&(n&&!this.responseType||s)){const c=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(d){if(c)throw d.name==="SyntaxError"?V.from(d,V.ERR_BAD_RESPONSE,this,null,this.response):d}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ye.classes.FormData,Blob:ye.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};S.forEach(["delete","get","head","post","put","patch"],e=>{jr.headers[e]={}});const Ur=jr,au=S.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),uu=e=>{const t={};let r,n,s;return e&&e.split(`
|
|
`).forEach(function(c){s=c.indexOf(":"),r=c.substring(0,s).trim().toLowerCase(),n=c.substring(s+1).trim(),!(!r||t[r]&&au[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Pn=Symbol("internals");function Je(e){return e&&String(e).trim().toLowerCase()}function bt(e){return e===!1||e==null?e:S.isArray(e)?e.map(bt):String(e)}function cu(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const lu=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function sr(e,t,r,n,s){if(S.isFunction(n))return n.call(this,t,r);if(s&&(t=r),!!S.isString(t)){if(S.isString(n))return t.indexOf(n)!==-1;if(S.isRegExp(n))return n.test(t)}}function fu(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function du(e,t){const r=S.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(s,i,c){return this[n].call(this,t,s,i,c)},configurable:!0})})}let Ut=class{constructor(t){t&&this.set(t)}set(t,r,n){const s=this;function i(d,g,y){const v=Je(g);if(!v)throw new Error("header name must be a non-empty string");const p=S.findKey(s,v);(!p||s[p]===void 0||y===!0||y===void 0&&s[p]!==!1)&&(s[p||g]=bt(d))}const c=(d,g)=>S.forEach(d,(y,v)=>i(y,v,g));return S.isPlainObject(t)||t instanceof this.constructor?c(t,r):S.isString(t)&&(t=t.trim())&&!lu(t)?c(uu(t),r):t!=null&&i(r,t,n),this}get(t,r){if(t=Je(t),t){const n=S.findKey(this,t);if(n){const s=this[n];if(!r)return s;if(r===!0)return cu(s);if(S.isFunction(r))return r.call(this,s,n);if(S.isRegExp(r))return r.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Je(t),t){const n=S.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||sr(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let s=!1;function i(c){if(c=Je(c),c){const d=S.findKey(n,c);d&&(!r||sr(n,n[d],d,r))&&(delete n[d],s=!0)}}return S.isArray(t)?t.forEach(i):i(t),s}clear(t){const r=Object.keys(this);let n=r.length,s=!1;for(;n--;){const i=r[n];(!t||sr(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const r=this,n={};return S.forEach(this,(s,i)=>{const c=S.findKey(n,i);if(c){r[c]=bt(s),delete r[i];return}const d=t?fu(i):String(i).trim();d!==i&&delete r[i],r[d]=bt(s),n[d]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return S.forEach(this,(n,s)=>{n!=null&&n!==!1&&(r[s]=t&&S.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(s=>n.set(s)),n}static accessor(t){const n=(this[Pn]=this[Pn]={accessors:{}}).accessors,s=this.prototype;function i(c){const d=Je(c);n[d]||(du(s,c),n[d]=!0)}return S.isArray(t)?t.forEach(i):i(t),this}};Ut.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);S.reduceDescriptors(Ut.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});S.freezeMethods(Ut);const Se=Ut;function ar(e,t){const r=this||Ur,n=t||r,s=Se.from(n.headers);let i=n.data;return S.forEach(e,function(d){i=d.call(r,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function Uo(e){return!!(e&&e.__CANCEL__)}function st(e,t,r){V.call(this,e??"canceled",V.ERR_CANCELED,t,r),this.name="CanceledError"}S.inherits(st,V,{__CANCEL__:!0});function hu(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new V("Request failed with status code "+r.status,[V.ERR_BAD_REQUEST,V.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const pu=ye.hasStandardBrowserEnv?{write(e,t,r,n,s,i){const c=[e+"="+encodeURIComponent(t)];S.isNumber(r)&&c.push("expires="+new Date(r).toGMTString()),S.isString(n)&&c.push("path="+n),S.isString(s)&&c.push("domain="+s),i===!0&&c.push("secure"),document.cookie=c.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function mu(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function yu(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function $o(e,t){return e&&!mu(t)?yu(e,t):t}const vu=ye.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function s(i){let c=i;return t&&(r.setAttribute("href",c),c=r.href),r.setAttribute("href",c),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=s(window.location.href),function(c){const d=S.isString(c)?s(c):c;return d.protocol===n.protocol&&d.host===n.host}}():function(){return function(){return!0}}();function gu(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function wu(e,t){e=e||10;const r=new Array(e),n=new Array(e);let s=0,i=0,c;return t=t!==void 0?t:1e3,function(g){const y=Date.now(),v=n[i];c||(c=y),r[s]=g,n[s]=y;let p=i,O=0;for(;p!==s;)O+=r[p++],p=p%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),y-c<t)return;const P=v&&y-v;return P?Math.round(O*1e3/P):void 0}}function Fn(e,t){let r=0;const n=wu(50,250);return s=>{const i=s.loaded,c=s.lengthComputable?s.total:void 0,d=i-r,g=n(d),y=i<=c;r=i;const v={loaded:i,total:c,progress:c?i/c:void 0,bytes:d,rate:g||void 0,estimated:g&&c&&y?(c-i)/g:void 0,event:s};v[t?"download":"upload"]=!0,e(v)}}const bu=typeof XMLHttpRequest<"u",Eu=bu&&function(e){return new Promise(function(r,n){let s=e.data;const i=Se.from(e.headers).normalize();let{responseType:c,withXSRFToken:d}=e,g;function y(){e.cancelToken&&e.cancelToken.unsubscribe(g),e.signal&&e.signal.removeEventListener("abort",g)}let v;if(S.isFormData(s)){if(ye.hasStandardBrowserEnv||ye.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((v=i.getContentType())!==!1){const[_,...T]=v?v.split(";").map(L=>L.trim()).filter(Boolean):[];i.setContentType([_||"multipart/form-data",...T].join("; "))}}let p=new XMLHttpRequest;if(e.auth){const _=e.auth.username||"",T=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(_+":"+T))}const O=$o(e.baseURL,e.url);p.open(e.method.toUpperCase(),Bo(O,e.params,e.paramsSerializer),!0),p.timeout=e.timeout;function P(){if(!p)return;const _=Se.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),L={data:!c||c==="text"||c==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:_,config:e,request:p};hu(function(j){r(j),y()},function(j){n(j),y()},L),p=null}if("onloadend"in p?p.onloadend=P:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(P)},p.onabort=function(){p&&(n(new V("Request aborted",V.ECONNABORTED,e,p)),p=null)},p.onerror=function(){n(new V("Network Error",V.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let T=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const L=e.transitional||Io;e.timeoutErrorMessage&&(T=e.timeoutErrorMessage),n(new V(T,L.clarifyTimeoutError?V.ETIMEDOUT:V.ECONNABORTED,e,p)),p=null},ye.hasStandardBrowserEnv&&(d&&S.isFunction(d)&&(d=d(e)),d||d!==!1&&vu(O))){const _=e.xsrfHeaderName&&e.xsrfCookieName&&pu.read(e.xsrfCookieName);_&&i.set(e.xsrfHeaderName,_)}s===void 0&&i.setContentType(null),"setRequestHeader"in p&&S.forEach(i.toJSON(),function(T,L){p.setRequestHeader(L,T)}),S.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),c&&c!=="json"&&(p.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&p.addEventListener("progress",Fn(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&p.upload&&p.upload.addEventListener("progress",Fn(e.onUploadProgress)),(e.cancelToken||e.signal)&&(g=_=>{p&&(n(!_||_.type?new st(null,e,p):_),p.abort(),p=null)},e.cancelToken&&e.cancelToken.subscribe(g),e.signal&&(e.signal.aborted?g():e.signal.addEventListener("abort",g)));const E=gu(O);if(E&&ye.protocols.indexOf(E)===-1){n(new V("Unsupported protocol "+E+":",V.ERR_BAD_REQUEST,e));return}p.send(s||null)})},br={http:Wa,xhr:Eu};S.forEach(br,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Dn=e=>`- ${e}`,_u=e=>S.isFunction(e)||e===null||e===!1,zo={getAdapter:e=>{e=S.isArray(e)?e:[e];const{length:t}=e;let r,n;const s={};for(let i=0;i<t;i++){r=e[i];let c;if(n=r,!_u(r)&&(n=br[(c=String(r)).toLowerCase()],n===void 0))throw new V(`Unknown adapter '${c}'`);if(n)break;s[c||"#"+i]=n}if(!n){const i=Object.entries(s).map(([d,g])=>`adapter ${d} `+(g===!1?"is not supported by the environment":"is not available in the build"));let c=t?i.length>1?`since :
|
|
`+i.map(Dn).join(`
|
|
`):" "+Dn(i[0]):"as no adapter specified";throw new V("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return n},adapters:br};function ur(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new st(null,e)}function Ln(e){return ur(e),e.headers=Se.from(e.headers),e.data=ar.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),zo.getAdapter(e.adapter||Ur.adapter)(e).then(function(n){return ur(e),n.data=ar.call(e,e.transformResponse,n),n.headers=Se.from(n.headers),n},function(n){return Uo(n)||(ur(e),n&&n.response&&(n.response.data=ar.call(e,e.transformResponse,n.response),n.response.headers=Se.from(n.response.headers))),Promise.reject(n)})}const Nn=e=>e instanceof Se?{...e}:e;function Ue(e,t){t=t||{};const r={};function n(y,v,p){return S.isPlainObject(y)&&S.isPlainObject(v)?S.merge.call({caseless:p},y,v):S.isPlainObject(v)?S.merge({},v):S.isArray(v)?v.slice():v}function s(y,v,p){if(S.isUndefined(v)){if(!S.isUndefined(y))return n(void 0,y,p)}else return n(y,v,p)}function i(y,v){if(!S.isUndefined(v))return n(void 0,v)}function c(y,v){if(S.isUndefined(v)){if(!S.isUndefined(y))return n(void 0,y)}else return n(void 0,v)}function d(y,v,p){if(p in t)return n(y,v);if(p in e)return n(void 0,y)}const g={url:i,method:i,data:i,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:d,headers:(y,v)=>s(Nn(y),Nn(v),!0)};return S.forEach(Object.keys(Object.assign({},e,t)),function(v){const p=g[v]||s,O=p(e[v],t[v],v);S.isUndefined(O)&&p!==d||(r[v]=O)}),r}const Ho="1.6.8",$r={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{$r[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Bn={};$r.transitional=function(t,r,n){function s(i,c){return"[Axios v"+Ho+"] Transitional option '"+i+"'"+c+(n?". "+n:"")}return(i,c,d)=>{if(t===!1)throw new V(s(c," has been removed"+(r?" in "+r:"")),V.ERR_DEPRECATED);return r&&!Bn[c]&&(Bn[c]=!0,console.warn(s(c," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,c,d):!0}};function Su(e,t,r){if(typeof e!="object")throw new V("options must be an object",V.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const i=n[s],c=t[i];if(c){const d=e[i],g=d===void 0||c(d,i,e);if(g!==!0)throw new V("option "+i+" must be "+g,V.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new V("Unknown option "+i,V.ERR_BAD_OPTION)}}const Er={assertOptions:Su,validators:$r},Oe=Er.validators;let kt=class{constructor(t){this.defaults=t,this.interceptors={request:new Cn,response:new Cn}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
`+i):n.stack=i}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ue(this.defaults,r);const{transitional:n,paramsSerializer:s,headers:i}=r;n!==void 0&&Er.assertOptions(n,{silentJSONParsing:Oe.transitional(Oe.boolean),forcedJSONParsing:Oe.transitional(Oe.boolean),clarifyTimeoutError:Oe.transitional(Oe.boolean)},!1),s!=null&&(S.isFunction(s)?r.paramsSerializer={serialize:s}:Er.assertOptions(s,{encode:Oe.function,serialize:Oe.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let c=i&&S.merge(i.common,i[r.method]);i&&S.forEach(["delete","get","head","post","put","patch","common"],E=>{delete i[E]}),r.headers=Se.concat(c,i);const d=[];let g=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(r)===!1||(g=g&&_.synchronous,d.unshift(_.fulfilled,_.rejected))});const y=[];this.interceptors.response.forEach(function(_){y.push(_.fulfilled,_.rejected)});let v,p=0,O;if(!g){const E=[Ln.bind(this),void 0];for(E.unshift.apply(E,d),E.push.apply(E,y),O=E.length,v=Promise.resolve(r);p<O;)v=v.then(E[p++],E[p++]);return v}O=d.length;let P=r;for(p=0;p<O;){const E=d[p++],_=d[p++];try{P=E(P)}catch(T){_.call(this,T);break}}try{v=Ln.call(this,P)}catch(E){return Promise.reject(E)}for(p=0,O=y.length;p<O;)v=v.then(y[p++],y[p++]);return v}getUri(t){t=Ue(this.defaults,t);const r=$o(t.baseURL,t.url);return Bo(r,t.params,t.paramsSerializer)}};S.forEach(["delete","get","head","options"],function(t){kt.prototype[t]=function(r,n){return this.request(Ue(n||{},{method:t,url:r,data:(n||{}).data}))}});S.forEach(["post","put","patch"],function(t){function r(n){return function(i,c,d){return this.request(Ue(d||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:c}))}}kt.prototype[t]=r(),kt.prototype[t+"Form"]=r(!0)});const Et=kt;let Ru=class Vo{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(s=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](s);n._listeners=null}),this.promise.then=s=>{let i;const c=new Promise(d=>{n.subscribe(d),i=d}).then(s);return c.cancel=function(){n.unsubscribe(i)},c},t(function(i,c,d){n.reason||(n.reason=new st(i,c,d),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new Vo(function(s){t=s}),cancel:t}}};const Au=Ru;function Ou(e){return function(r){return e.apply(null,r)}}function Tu(e){return S.isObject(e)&&e.isAxiosError===!0}const _r={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(_r).forEach(([e,t])=>{_r[t]=e});const ku=_r;function qo(e){const t=new Et(e),r=Ro(Et.prototype.request,t);return S.extend(r,Et.prototype,t,{allOwnKeys:!0}),S.extend(r,t,null,{allOwnKeys:!0}),r.create=function(s){return qo(Ue(e,s))},r}const te=qo(Ur);te.Axios=Et;te.CanceledError=st;te.CancelToken=Au;te.isCancel=Uo;te.VERSION=Ho;te.toFormData=jt;te.AxiosError=V;te.Cancel=te.CanceledError;te.all=function(t){return Promise.all(t)};te.spread=Ou;te.isAxiosError=Tu;te.mergeConfig=Ue;te.AxiosHeaders=Se;te.formToJSON=e=>jo(S.isHTMLForm(e)?new FormData(e):e);te.getAdapter=zo.getAdapter;te.HttpStatusCode=ku;te.default=te;const Ze=/^[a-z0-9]+(-[a-z0-9]+)*$/,$t=(e,t,r,n="")=>{const s=e.split(":");if(e.slice(0,1)==="@"){if(s.length<2||s.length>3)return null;n=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){const d=s.pop(),g=s.pop(),y={provider:s.length>0?s[0]:n,prefix:g,name:d};return t&&!_t(y)?null:y}const i=s[0],c=i.split("-");if(c.length>1){const d={provider:n,prefix:c.shift(),name:c.join("-")};return t&&!_t(d)?null:d}if(r&&n===""){const d={provider:n,prefix:"",name:i};return t&&!_t(d,r)?null:d}return null},_t=(e,t)=>e?!!((e.provider===""||e.provider.match(Ze))&&(t&&e.prefix===""||e.prefix.match(Ze))&&e.name.match(Ze)):!1,Wo=Object.freeze({left:0,top:0,width:16,height:16}),xt=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),zt=Object.freeze({...Wo,...xt}),Sr=Object.freeze({...zt,body:"",hidden:!1});function xu(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}function In(e,t){const r=xu(e,t);for(const n in Sr)n in xt?n in e&&!(n in r)&&(r[n]=xt[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function Cu(e,t){const r=e.icons,n=e.aliases||Object.create(null),s=Object.create(null);function i(c){if(r[c])return s[c]=[];if(!(c in s)){s[c]=null;const d=n[c]&&n[c].parent,g=d&&i(d);g&&(s[c]=[d].concat(g))}return s[c]}return(t||Object.keys(r).concat(Object.keys(n))).forEach(i),s}function Pu(e,t,r){const n=e.icons,s=e.aliases||Object.create(null);let i={};function c(d){i=In(n[d]||s[d],i)}return c(t),r.forEach(c),In(e,i)}function Jo(e,t){const r=[];if(typeof e!="object"||typeof e.icons!="object")return r;e.not_found instanceof Array&&e.not_found.forEach(s=>{t(s,null),r.push(s)});const n=Cu(e);for(const s in n){const i=n[s];i&&(t(s,Pu(e,s,i)),r.push(s))}return r}const Fu={provider:"",aliases:{},not_found:{},...Wo};function cr(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function Ko(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!cr(e,Fu))return null;const r=t.icons;for(const s in r){const i=r[s];if(!s.match(Ze)||typeof i.body!="string"||!cr(i,Sr))return null}const n=t.aliases||Object.create(null);for(const s in n){const i=n[s],c=i.parent;if(!s.match(Ze)||typeof c!="string"||!r[c]&&!n[c]||!cr(i,Sr))return null}return t}const Mn=Object.create(null);function Du(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function De(e,t){const r=Mn[e]||(Mn[e]=Object.create(null));return r[t]||(r[t]=Du(e,t))}function zr(e,t){return Ko(t)?Jo(t,(r,n)=>{n?e.icons[r]=n:e.missing.add(r)}):[]}function Lu(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}let tt=!1;function Qo(e){return typeof e=="boolean"&&(tt=e),tt}function Nu(e){const t=typeof e=="string"?$t(e,!0,tt):e;if(t){const r=De(t.provider,t.prefix),n=t.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function Bu(e,t){const r=$t(e,!0,tt);if(!r)return!1;const n=De(r.provider,r.prefix);return Lu(n,r.name,t)}function Iu(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),tt&&!t&&!e.prefix){let s=!1;return Ko(e)&&(e.prefix="",Jo(e,(i,c)=>{c&&Bu(i,c)&&(s=!0)})),s}const r=e.prefix;if(!_t({provider:t,prefix:r,name:"a"}))return!1;const n=De(t,r);return!!zr(n,e)}const Go=Object.freeze({width:null,height:null}),Xo=Object.freeze({...Go,...xt}),Mu=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ju=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function jn(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const n=e.split(Mu);if(n===null||!n.length)return e;const s=[];let i=n.shift(),c=ju.test(i);for(;;){if(c){const d=parseFloat(i);isNaN(d)?s.push(i):s.push(Math.ceil(d*t*r)/r)}else s.push(i);if(i=n.shift(),i===void 0)return s.join("");c=!c}}const Uu=e=>e==="unset"||e==="undefined"||e==="none";function $u(e,t){const r={...zt,...e},n={...Xo,...t},s={left:r.left,top:r.top,width:r.width,height:r.height};let i=r.body;[r,n].forEach(E=>{const _=[],T=E.hFlip,L=E.vFlip;let M=E.rotate;T?L?M+=2:(_.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),_.push("scale(-1 1)"),s.top=s.left=0):L&&(_.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),_.push("scale(1 -1)"),s.top=s.left=0);let j;switch(M<0&&(M-=Math.floor(M/4)*4),M=M%4,M){case 1:j=s.height/2+s.top,_.unshift("rotate(90 "+j.toString()+" "+j.toString()+")");break;case 2:_.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:j=s.width/2+s.left,_.unshift("rotate(-90 "+j.toString()+" "+j.toString()+")");break}M%2===1&&(s.left!==s.top&&(j=s.left,s.left=s.top,s.top=j),s.width!==s.height&&(j=s.width,s.width=s.height,s.height=j)),_.length&&(i='<g transform="'+_.join(" ")+'">'+i+"</g>")});const c=n.width,d=n.height,g=s.width,y=s.height;let v,p;c===null?(p=d===null?"1em":d==="auto"?y:d,v=jn(p,g/y)):(v=c==="auto"?g:c,p=d===null?jn(v,y/g):d==="auto"?y:d);const O={},P=(E,_)=>{Uu(_)||(O[E]=_.toString())};return P("width",v),P("height",p),O.viewBox=s.left.toString()+" "+s.top.toString()+" "+g.toString()+" "+y.toString(),{attributes:O,body:i}}const zu=/\sid="(\S+)"/g,Hu="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Vu=0;function qu(e,t=Hu){const r=[];let n;for(;n=zu.exec(e);)r.push(n[1]);if(!r.length)return e;const s="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(i=>{const c=typeof t=="function"?t(i):t+(Vu++).toString(),d=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+d+')([")]|\\.[a-z])',"g"),"$1"+c+s+"$3")}),e=e.replace(new RegExp(s,"g"),""),e}const Rr=Object.create(null);function Wu(e,t){Rr[e]=t}function Ar(e){return Rr[e]||Rr[""]}function Hr(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Vr=Object.create(null),Ke=["https://api.simplesvg.com","https://api.unisvg.com"],St=[];for(;Ke.length>0;)Ke.length===1||Math.random()>.5?St.push(Ke.shift()):St.push(Ke.pop());Vr[""]=Hr({resources:["https://api.iconify.design"].concat(St)});function Ju(e,t){const r=Hr(t);return r===null?!1:(Vr[e]=r,!0)}function qr(e){return Vr[e]}const Ku=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Un=Ku();function Qu(e,t){const r=qr(e);if(!r)return 0;let n;if(!r.maxURL)n=0;else{let s=0;r.resources.forEach(c=>{s=Math.max(s,c.length)});const i=t+".json?icons=";n=r.maxURL-s-r.path.length-i.length}return n}function Gu(e){return e===404}const Xu=(e,t,r)=>{const n=[],s=Qu(e,t),i="icons";let c={type:i,provider:e,prefix:t,icons:[]},d=0;return r.forEach((g,y)=>{d+=g.length+1,d>=s&&y>0&&(n.push(c),c={type:i,provider:e,prefix:t,icons:[]},d=g.length),c.icons.push(g)}),n.push(c),n};function Yu(e){if(typeof e=="string"){const t=qr(e);if(t)return t.path}return"/"}const Zu=(e,t,r)=>{if(!Un){r("abort",424);return}let n=Yu(t.provider);switch(t.type){case"icons":{const i=t.prefix,d=t.icons.join(","),g=new URLSearchParams({icons:d});n+=i+".json?"+g.toString();break}case"custom":{const i=t.uri;n+=i.slice(0,1)==="/"?i.slice(1):i;break}default:r("abort",400);return}let s=503;Un(e+n).then(i=>{const c=i.status;if(c!==200){setTimeout(()=>{r(Gu(c)?"abort":"next",c)});return}return s=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?r("abort",i):r("next",s)});return}setTimeout(()=>{r("success",i)})}).catch(()=>{r("next",s)})},ec={prepare:Xu,send:Zu};function tc(e){const t={loaded:[],missing:[],pending:[]},r=Object.create(null);e.sort((s,i)=>s.provider!==i.provider?s.provider.localeCompare(i.provider):s.prefix!==i.prefix?s.prefix.localeCompare(i.prefix):s.name.localeCompare(i.name));let n={provider:"",prefix:"",name:""};return e.forEach(s=>{if(n.name===s.name&&n.prefix===s.prefix&&n.provider===s.provider)return;n=s;const i=s.provider,c=s.prefix,d=s.name,g=r[i]||(r[i]=Object.create(null)),y=g[c]||(g[c]=De(i,c));let v;d in y.icons?v=t.loaded:c===""||y.missing.has(d)?v=t.missing:v=t.pending;const p={provider:i,prefix:c,name:d};v.push(p)}),t}function Yo(e,t){e.forEach(r=>{const n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(s=>s.id!==t))})}function rc(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let r=!1;const n=e.provider,s=e.prefix;t.forEach(i=>{const c=i.icons,d=c.pending.length;c.pending=c.pending.filter(g=>{if(g.prefix!==s)return!0;const y=g.name;if(e.icons[y])c.loaded.push({provider:n,prefix:s,name:y});else if(e.missing.has(y))c.missing.push({provider:n,prefix:s,name:y});else return r=!0,!0;return!1}),c.pending.length!==d&&(r||Yo([e],i.id),i.callback(c.loaded.slice(0),c.missing.slice(0),c.pending.slice(0),i.abort))})}))}let nc=0;function oc(e,t,r){const n=nc++,s=Yo.bind(null,r,n);if(!t.pending.length)return s;const i={id:n,icons:t,callback:e,abort:s};return r.forEach(c=>{(c.loaderCallbacks||(c.loaderCallbacks=[])).push(i)}),s}function ic(e,t=!0,r=!1){const n=[];return e.forEach(s=>{const i=typeof s=="string"?$t(s,t,r):s;i&&n.push(i)}),n}var sc={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ac(e,t,r,n){const s=e.resources.length,i=e.random?Math.floor(Math.random()*s):e.index;let c;if(e.random){let $=e.resources.slice(0);for(c=[];$.length>1;){const Q=Math.floor(Math.random()*$.length);c.push($[Q]),$=$.slice(0,Q).concat($.slice(Q+1))}c=c.concat($)}else c=e.resources.slice(i).concat(e.resources.slice(0,i));const d=Date.now();let g="pending",y=0,v,p=null,O=[],P=[];typeof n=="function"&&P.push(n);function E(){p&&(clearTimeout(p),p=null)}function _(){g==="pending"&&(g="aborted"),E(),O.forEach($=>{$.status==="pending"&&($.status="aborted")}),O=[]}function T($,Q){Q&&(P=[]),typeof $=="function"&&P.push($)}function L(){return{startTime:d,payload:t,status:g,queriesSent:y,queriesPending:O.length,subscribe:T,abort:_}}function M(){g="failed",P.forEach($=>{$(void 0,v)})}function j(){O.forEach($=>{$.status==="pending"&&($.status="aborted")}),O=[]}function se($,Q,z){const U=Q!=="success";switch(O=O.filter(X=>X!==$),g){case"pending":break;case"failed":if(U||!e.dataAfterTimeout)return;break;default:return}if(Q==="abort"){v=z,M();return}if(U){v=z,O.length||(c.length?Z():M());return}if(E(),j(),!e.random){const X=e.resources.indexOf($.resource);X!==-1&&X!==e.index&&(e.index=X)}g="completed",P.forEach(X=>{X(z)})}function Z(){if(g!=="pending")return;E();const $=c.shift();if($===void 0){if(O.length){p=setTimeout(()=>{E(),g==="pending"&&(j(),M())},e.timeout);return}M();return}const Q={status:"pending",resource:$,callback:(z,U)=>{se(Q,z,U)}};O.push(Q),y++,p=setTimeout(Z,e.rotate),r($,t,Q.callback)}return setTimeout(Z),L}function Zo(e){const t={...sc,...e};let r=[];function n(){r=r.filter(d=>d().status==="pending")}function s(d,g,y){const v=ac(t,d,g,(p,O)=>{n(),y&&y(p,O)});return r.push(v),v}function i(d){return r.find(g=>d(g))||null}return{query:s,find:i,setIndex:d=>{t.index=d},getIndex:()=>t.index,cleanup:n}}function $n(){}const lr=Object.create(null);function uc(e){if(!lr[e]){const t=qr(e);if(!t)return;const r=Zo(t),n={config:t,redundancy:r};lr[e]=n}return lr[e]}function cc(e,t,r){let n,s;if(typeof e=="string"){const i=Ar(e);if(!i)return r(void 0,424),$n;s=i.send;const c=uc(e);c&&(n=c.redundancy)}else{const i=Hr(e);if(i){n=Zo(i);const c=e.resources?e.resources[0]:"",d=Ar(c);d&&(s=d.send)}}return!n||!s?(r(void 0,424),$n):n.query(t,s,r)().abort}const zn="iconify2",rt="iconify",ei=rt+"-count",Hn=rt+"-version",ti=36e5,lc=168;function Or(e,t){try{return e.getItem(t)}catch{}}function Wr(e,t,r){try{return e.setItem(t,r),!0}catch{}}function Vn(e,t){try{e.removeItem(t)}catch{}}function Tr(e,t){return Wr(e,ei,t.toString())}function kr(e){return parseInt(Or(e,ei))||0}const Ht={local:!0,session:!0},ri={local:new Set,session:new Set};let Jr=!1;function fc(e){Jr=e}let mt=typeof window>"u"?{}:window;function ni(e){const t=e+"Storage";try{if(mt&&mt[t]&&typeof mt[t].length=="number")return mt[t]}catch{}Ht[e]=!1}function oi(e,t){const r=ni(e);if(!r)return;const n=Or(r,Hn);if(n!==zn){if(n){const d=kr(r);for(let g=0;g<d;g++)Vn(r,rt+g.toString())}Wr(r,Hn,zn),Tr(r,0);return}const s=Math.floor(Date.now()/ti)-lc,i=d=>{const g=rt+d.toString(),y=Or(r,g);if(typeof y=="string"){try{const v=JSON.parse(y);if(typeof v=="object"&&typeof v.cached=="number"&&v.cached>s&&typeof v.provider=="string"&&typeof v.data=="object"&&typeof v.data.prefix=="string"&&t(v,d))return!0}catch{}Vn(r,g)}};let c=kr(r);for(let d=c-1;d>=0;d--)i(d)||(d===c-1?(c--,Tr(r,c)):ri[e].add(d))}function ii(){if(!Jr){fc(!0);for(const e in Ht)oi(e,t=>{const r=t.data,n=t.provider,s=r.prefix,i=De(n,s);if(!zr(i,r).length)return!1;const c=r.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,c):c,!0})}}function dc(e,t){const r=e.lastModifiedCached;if(r&&r>=t)return r===t;if(e.lastModifiedCached=t,r)for(const n in Ht)oi(n,s=>{const i=s.data;return s.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===t});return!0}function hc(e,t){Jr||ii();function r(n){let s;if(!Ht[n]||!(s=ni(n)))return;const i=ri[n];let c;if(i.size)i.delete(c=Array.from(i).shift());else if(c=kr(s),!Tr(s,c+1))return;const d={cached:Math.floor(Date.now()/ti),provider:e.provider,data:t};return Wr(s,rt+c.toString(),JSON.stringify(d))}t.lastModified&&!dc(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),r("local")||r("session"))}function qn(){}function pc(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,rc(e)}))}function mc(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:r,prefix:n}=e,s=e.iconsToLoad;delete e.iconsToLoad;let i;if(!s||!(i=Ar(r)))return;i.prepare(r,n,s).forEach(d=>{cc(r,d,g=>{if(typeof g!="object")d.icons.forEach(y=>{e.missing.add(y)});else try{const y=zr(e,g);if(!y.length)return;const v=e.pendingIcons;v&&y.forEach(p=>{v.delete(p)}),hc(e,g)}catch(y){console.error(y)}pc(e)})})}))}const yc=(e,t)=>{const r=ic(e,!0,Qo()),n=tc(r);if(!n.pending.length){let g=!0;return t&&setTimeout(()=>{g&&t(n.loaded,n.missing,n.pending,qn)}),()=>{g=!1}}const s=Object.create(null),i=[];let c,d;return n.pending.forEach(g=>{const{provider:y,prefix:v}=g;if(v===d&&y===c)return;c=y,d=v,i.push(De(y,v));const p=s[y]||(s[y]=Object.create(null));p[v]||(p[v]=[])}),n.pending.forEach(g=>{const{provider:y,prefix:v,name:p}=g,O=De(y,v),P=O.pendingIcons||(O.pendingIcons=new Set);P.has(p)||(P.add(p),s[y][v].push(p))}),i.forEach(g=>{const{provider:y,prefix:v}=g;s[y][v].length&&mc(g,s[y][v])}),t?oc(t,n,i):qn};function vc(e,t){const r={...e};for(const n in t){const s=t[n],i=typeof s;n in Go?(s===null||s&&(i==="string"||i==="number"))&&(r[n]=s):i===typeof r[n]&&(r[n]=n==="rotate"?s%4:s)}return r}const gc=/[\s,]+/;function wc(e,t){t.split(gc).forEach(r=>{switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function bc(e,t=0){const r=e.replace(/^-?[0-9.]*/,"");function n(s){for(;s<0;)s+=4;return s%4}if(r===""){const s=parseInt(e);return isNaN(s)?0:n(s)}else if(r!==e){let s=0;switch(r){case"%":s=25;break;case"deg":s=90}if(s){let i=parseFloat(e.slice(0,e.length-r.length));return isNaN(i)?0:(i=i/s,i%1===0?n(i):0)}}return t}function Ec(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)r+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}function _c(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Sc(e){return"data:image/svg+xml,"+_c(e)}function Rc(e){return'url("'+Sc(e)+'")'}const Wn={...Xo,inline:!1},Ac={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Oc={display:"inline-block"},xr={backgroundColor:"currentColor"},si={backgroundColor:"transparent"},Jn={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Kn={webkitMask:xr,mask:xr,background:si};for(const e in Kn){const t=Kn[e];for(const r in Jn)t[e+r]=Jn[r]}const Rt={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Rt[e+"-flip"]=t,Rt[e.slice(0,1)+"-flip"]=t,Rt[e+"Flip"]=t});function Qn(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Gn=(e,t)=>{const r=vc(Wn,t),n={...Ac},s=t.mode||"svg",i={},c=t.style,d=typeof c=="object"&&!(c instanceof Array)?c:{};for(let _ in t){const T=t[_];if(T!==void 0)switch(_){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":r[_]=T===!0||T==="true"||T===1;break;case"flip":typeof T=="string"&&wc(r,T);break;case"color":i.color=T;break;case"rotate":typeof T=="string"?r[_]=bc(T):typeof T=="number"&&(r[_]=T);break;case"ariaHidden":case"aria-hidden":T!==!0&&T!=="true"&&delete n["aria-hidden"];break;default:{const L=Rt[_];L?(T===!0||T==="true"||T===1)&&(r[L]=!0):Wn[_]===void 0&&(n[_]=T)}}}const g=$u(e,r),y=g.attributes;if(r.inline&&(i.verticalAlign="-0.125em"),s==="svg"){n.style={...i,...d},Object.assign(n,y);let _=0,T=t.id;return typeof T=="string"&&(T=T.replace(/-/g,"_")),n.innerHTML=qu(g.body,T?()=>T+"ID"+_++:"iconifyVue"),Vue.h("svg",n)}const{body:v,width:p,height:O}=e,P=s==="mask"||(s==="bg"?!1:v.indexOf("currentColor")!==-1),E=Ec(v,{...y,width:p+"",height:O+""});return n.style={...i,"--svg":Rc(E),width:Qn(y.width),height:Qn(y.height),...Oc,...P?xr:si,...d},Vue.h("span",n)};Qo(!0);Wu("",ec);if(typeof document<"u"&&typeof window<"u"){ii();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(n=>{try{(typeof n!="object"||n===null||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!Iu(n))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let r in t){const n="IconifyProviders["+r+"] is invalid.";try{const s=t[r];if(typeof s!="object"||!s||s.resources===void 0)continue;Ju(r,s)||console.error(n)}catch{console.error(n)}}}}const Tc={...zt,body:""},Lf=Vue.defineComponent({inheritAttrs:!1,data(){return{iconMounted:!1,counter:0}},mounted(){this._name="",this._loadingIcon=null,this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let r;if(typeof e!="string"||(r=$t(e,!1,!0))===null)return this.abortLoading(),null;const n=Nu(r);if(!n)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",n!==null&&(this._loadingIcon={name:e,abort:yc([r],()=>{this.counter++})})),null;this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e));const s=["iconify"];return r.prefix!==""&&s.push("iconify--"+r.prefix),r.provider!==""&&s.push("iconify--"+r.provider),{data:n,classes:s}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted?this.getIcon(e.icon,e.onLoad):null;if(!t)return Gn(Tc,e);let r=e;return t.classes&&(r={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),Gn({...zt,...t.data},r)}});var Kr={exports:{}};function ai(e,t){return function(){return e.apply(t,arguments)}}const{toString:kc}=Object.prototype,{getPrototypeOf:Qr}=Object,Vt=(e=>t=>{const r=kc.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),be=e=>(e=e.toLowerCase(),t=>Vt(t)===e),qt=e=>t=>typeof t===e,{isArray:He}=Array,nt=qt("undefined");function xc(e){return e!==null&&!nt(e)&&e.constructor!==null&&!nt(e.constructor)&&ce(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ui=be("ArrayBuffer");function Cc(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ui(e.buffer),t}const Pc=qt("string"),ce=qt("function"),ci=qt("number"),Wt=e=>e!==null&&typeof e=="object",Fc=e=>e===!0||e===!1,At=e=>{if(Vt(e)!=="object")return!1;const t=Qr(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Dc=be("Date"),Lc=be("File"),Nc=be("Blob"),Bc=be("FileList"),Ic=e=>Wt(e)&&ce(e.pipe),Mc=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ce(e.append)&&((t=Vt(e))==="formdata"||t==="object"&&ce(e.toString)&&e.toString()==="[object FormData]"))},jc=be("URLSearchParams"),Uc=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function at(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),He(e))for(n=0,s=e.length;n<s;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),c=i.length;let d;for(n=0;n<c;n++)d=i[n],t.call(null,e[d],d,e)}}function li(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,s;for(;n-- >0;)if(s=r[n],t===s.toLowerCase())return s;return null}const fi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:he,di=e=>!nt(e)&&e!==fi;function Cr(){const{caseless:e}=di(this)&&this||{},t={},r=(n,s)=>{const i=e&&li(t,s)||s;At(t[i])&&At(n)?t[i]=Cr(t[i],n):At(n)?t[i]=Cr({},n):He(n)?t[i]=n.slice():t[i]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&at(arguments[n],r);return t}const $c=(e,t,r,{allOwnKeys:n}={})=>(at(t,(s,i)=>{r&&ce(s)?e[i]=ai(s,r):e[i]=s},{allOwnKeys:n}),e),zc=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Hc=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Vc=(e,t,r,n)=>{let s,i,c;const d={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)c=s[i],(!n||n(c,e,t))&&!d[c]&&(t[c]=e[c],d[c]=!0);e=r!==!1&&Qr(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},qc=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Wc=e=>{if(!e)return null;if(He(e))return e;let t=e.length;if(!ci(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Jc=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Qr(Uint8Array)),Kc=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=n.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},Qc=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Gc=be("HTMLFormElement"),Xc=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,s){return n.toUpperCase()+s}),Xn=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Yc=be("RegExp"),hi=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};at(r,(s,i)=>{let c;(c=t(s,i,e))!==!1&&(n[i]=c||s)}),Object.defineProperties(e,n)},Zc=e=>{hi(e,(t,r)=>{if(ce(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(ce(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},el=(e,t)=>{const r={},n=s=>{s.forEach(i=>{r[i]=!0})};return He(e)?n(e):n(String(e).split(t)),r},tl=()=>{},rl=(e,t)=>(e=+e,Number.isFinite(e)?e:t),fr="abcdefghijklmnopqrstuvwxyz",Yn="0123456789",pi={DIGIT:Yn,ALPHA:fr,ALPHA_DIGIT:fr+fr.toUpperCase()+Yn},nl=(e=16,t=pi.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function ol(e){return!!(e&&ce(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const il=e=>{const t=new Array(10),r=(n,s)=>{if(Wt(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[s]=n;const i=He(n)?[]:{};return at(n,(c,d)=>{const g=r(c,s+1);!nt(g)&&(i[d]=g)}),t[s]=void 0,i}}return n};return r(e,0)},sl=be("AsyncFunction"),al=e=>e&&(Wt(e)||ce(e))&&ce(e.then)&&ce(e.catch);var R={isArray:He,isArrayBuffer:ui,isBuffer:xc,isFormData:Mc,isArrayBufferView:Cc,isString:Pc,isNumber:ci,isBoolean:Fc,isObject:Wt,isPlainObject:At,isUndefined:nt,isDate:Dc,isFile:Lc,isBlob:Nc,isRegExp:Yc,isFunction:ce,isStream:Ic,isURLSearchParams:jc,isTypedArray:Jc,isFileList:Bc,forEach:at,merge:Cr,extend:$c,trim:Uc,stripBOM:zc,inherits:Hc,toFlatObject:Vc,kindOf:Vt,kindOfTest:be,endsWith:qc,toArray:Wc,forEachEntry:Kc,matchAll:Qc,isHTMLForm:Gc,hasOwnProperty:Xn,hasOwnProp:Xn,reduceDescriptors:hi,freezeMethods:Zc,toObjectSet:el,toCamelCase:Xc,noop:tl,toFiniteNumber:rl,findKey:li,global:fi,isContextDefined:di,ALPHABET:pi,generateString:nl,isSpecCompliantForm:ol,toJSONObject:il,isAsyncFn:sl,isThenable:al};function q(e,t,r,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),s&&(this.response=s)}R.inherits(q,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:R.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const mi=q.prototype,yi={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{yi[e]={value:e}});Object.defineProperties(q,yi);Object.defineProperty(mi,"isAxiosError",{value:!0});q.from=(e,t,r,n,s,i)=>{const c=Object.create(mi);return R.toFlatObject(e,c,function(g){return g!==Error.prototype},d=>d!=="isAxiosError"),q.call(c,e.message,t,r,n,s),c.cause=e,c.name=e.name,i&&Object.assign(c,i),c};var ul=null;function Pr(e){return R.isPlainObject(e)||R.isArray(e)}function vi(e){return R.endsWith(e,"[]")?e.slice(0,-2):e}function Zn(e,t,r){return e?e.concat(t).map(function(s,i){return s=vi(s),!r&&i?"["+s+"]":s}).join(r?".":""):t}function cl(e){return R.isArray(e)&&!e.some(Pr)}const ll=R.toFlatObject(R,{},null,function(t){return/^is[A-Z]/.test(t)});function Jt(e,t,r){if(!R.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=R.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,T){return!R.isUndefined(T[_])});const n=r.metaTokens,s=r.visitor||v,i=r.dots,c=r.indexes,g=(r.Blob||typeof Blob<"u"&&Blob)&&R.isSpecCompliantForm(t);if(!R.isFunction(s))throw new TypeError("visitor must be a function");function y(E){if(E===null)return"";if(R.isDate(E))return E.toISOString();if(!g&&R.isBlob(E))throw new q("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(E)||R.isTypedArray(E)?g&&typeof Blob=="function"?new Blob([E]):Buffer.from(E):E}function v(E,_,T){let L=E;if(E&&!T&&typeof E=="object"){if(R.endsWith(_,"{}"))_=n?_:_.slice(0,-2),E=JSON.stringify(E);else if(R.isArray(E)&&cl(E)||(R.isFileList(E)||R.endsWith(_,"[]"))&&(L=R.toArray(E)))return _=vi(_),L.forEach(function(j,se){!(R.isUndefined(j)||j===null)&&t.append(c===!0?Zn([_],se,i):c===null?_:_+"[]",y(j))}),!1}return Pr(E)?!0:(t.append(Zn(T,_,i),y(E)),!1)}const p=[],O=Object.assign(ll,{defaultVisitor:v,convertValue:y,isVisitable:Pr});function P(E,_){if(!R.isUndefined(E)){if(p.indexOf(E)!==-1)throw Error("Circular reference detected in "+_.join("."));p.push(E),R.forEach(E,function(L,M){(!(R.isUndefined(L)||L===null)&&s.call(t,L,R.isString(M)?M.trim():M,_,O))===!0&&P(L,_?_.concat(M):[M])}),p.pop()}}if(!R.isObject(e))throw new TypeError("data must be an object");return P(e),t}function eo(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Gr(e,t){this._pairs=[],e&&Jt(e,this,t)}const gi=Gr.prototype;gi.append=function(t,r){this._pairs.push([t,r])};gi.toString=function(t){const r=t?function(n){return t.call(this,n,eo)}:eo;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function fl(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function wi(e,t,r){if(!t)return e;const n=r&&r.encode||fl,s=r&&r.serialize;let i;if(s?i=s(t,r):i=R.isURLSearchParams(t)?t.toString():new Gr(t,r).toString(n),i){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class dl{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){R.forEach(this.handlers,function(n){n!==null&&t(n)})}}var to=dl,bi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},hl=typeof URLSearchParams<"u"?URLSearchParams:Gr,pl=typeof FormData<"u"?FormData:null,ml=typeof Blob<"u"?Blob:null,yl={isBrowser:!0,classes:{URLSearchParams:hl,FormData:pl,Blob:ml},protocols:["http","https","file","blob","url","data"]};const Ei=typeof window<"u"&&typeof document<"u",vl=(e=>Ei&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),gl=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function";var wl=Object.freeze({__proto__:null,hasBrowserEnv:Ei,hasStandardBrowserWebWorkerEnv:gl,hasStandardBrowserEnv:vl}),ve={...wl,...yl};function bl(e,t){return Jt(e,new ve.classes.URLSearchParams,Object.assign({visitor:function(r,n,s,i){return ve.isNode&&R.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function El(e){return R.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function _l(e){const t={},r=Object.keys(e);let n;const s=r.length;let i;for(n=0;n<s;n++)i=r[n],t[i]=e[i];return t}function _i(e){function t(r,n,s,i){let c=r[i++];if(c==="__proto__")return!0;const d=Number.isFinite(+c),g=i>=r.length;return c=!c&&R.isArray(s)?s.length:c,g?(R.hasOwnProp(s,c)?s[c]=[s[c],n]:s[c]=n,!d):((!s[c]||!R.isObject(s[c]))&&(s[c]=[]),t(r,n,s[c],i)&&R.isArray(s[c])&&(s[c]=_l(s[c])),!d)}if(R.isFormData(e)&&R.isFunction(e.entries)){const r={};return R.forEachEntry(e,(n,s)=>{t(El(n),s,r,0)}),r}return null}function Sl(e,t,r){if(R.isString(e))try{return(t||JSON.parse)(e),R.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Xr={transitional:bi,adapter:["xhr","http"],transformRequest:[function(t,r){const n=r.getContentType()||"",s=n.indexOf("application/json")>-1,i=R.isObject(t);if(i&&R.isHTMLForm(t)&&(t=new FormData(t)),R.isFormData(t))return s?JSON.stringify(_i(t)):t;if(R.isArrayBuffer(t)||R.isBuffer(t)||R.isStream(t)||R.isFile(t)||R.isBlob(t))return t;if(R.isArrayBufferView(t))return t.buffer;if(R.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let d;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return bl(t,this.formSerializer).toString();if((d=R.isFileList(t))||n.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return Jt(d?{"files[]":t}:t,g&&new g,this.formSerializer)}}return i||s?(r.setContentType("application/json",!1),Sl(t)):t}],transformResponse:[function(t){const r=this.transitional||Xr.transitional,n=r&&r.forcedJSONParsing,s=this.responseType==="json";if(t&&R.isString(t)&&(n&&!this.responseType||s)){const c=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(d){if(c)throw d.name==="SyntaxError"?q.from(d,q.ERR_BAD_RESPONSE,this,null,this.response):d}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ve.classes.FormData,Blob:ve.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};R.forEach(["delete","get","head","post","put","patch"],e=>{Xr.headers[e]={}});var Yr=Xr;const Rl=R.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var Al=e=>{const t={};let r,n,s;return e&&e.split(`
|
|
`).forEach(function(c){s=c.indexOf(":"),r=c.substring(0,s).trim().toLowerCase(),n=c.substring(s+1).trim(),!(!r||t[r]&&Rl[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t};const ro=Symbol("internals");function Qe(e){return e&&String(e).trim().toLowerCase()}function Ot(e){return e===!1||e==null?e:R.isArray(e)?e.map(Ot):String(e)}function Ol(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Tl=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function dr(e,t,r,n,s){if(R.isFunction(n))return n.call(this,t,r);if(s&&(t=r),!!R.isString(t)){if(R.isString(n))return t.indexOf(n)!==-1;if(R.isRegExp(n))return n.test(t)}}function kl(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function xl(e,t){const r=R.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(s,i,c){return this[n].call(this,t,s,i,c)},configurable:!0})})}class Kt{constructor(t){t&&this.set(t)}set(t,r,n){const s=this;function i(d,g,y){const v=Qe(g);if(!v)throw new Error("header name must be a non-empty string");const p=R.findKey(s,v);(!p||s[p]===void 0||y===!0||y===void 0&&s[p]!==!1)&&(s[p||g]=Ot(d))}const c=(d,g)=>R.forEach(d,(y,v)=>i(y,v,g));return R.isPlainObject(t)||t instanceof this.constructor?c(t,r):R.isString(t)&&(t=t.trim())&&!Tl(t)?c(Al(t),r):t!=null&&i(r,t,n),this}get(t,r){if(t=Qe(t),t){const n=R.findKey(this,t);if(n){const s=this[n];if(!r)return s;if(r===!0)return Ol(s);if(R.isFunction(r))return r.call(this,s,n);if(R.isRegExp(r))return r.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Qe(t),t){const n=R.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||dr(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let s=!1;function i(c){if(c=Qe(c),c){const d=R.findKey(n,c);d&&(!r||dr(n,n[d],d,r))&&(delete n[d],s=!0)}}return R.isArray(t)?t.forEach(i):i(t),s}clear(t){const r=Object.keys(this);let n=r.length,s=!1;for(;n--;){const i=r[n];(!t||dr(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const r=this,n={};return R.forEach(this,(s,i)=>{const c=R.findKey(n,i);if(c){r[c]=Ot(s),delete r[i];return}const d=t?kl(i):String(i).trim();d!==i&&delete r[i],r[d]=Ot(s),n[d]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return R.forEach(this,(n,s)=>{n!=null&&n!==!1&&(r[s]=t&&R.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(s=>n.set(s)),n}static accessor(t){const n=(this[ro]=this[ro]={accessors:{}}).accessors,s=this.prototype;function i(c){const d=Qe(c);n[d]||(xl(s,c),n[d]=!0)}return R.isArray(t)?t.forEach(i):i(t),this}}Kt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);R.reduceDescriptors(Kt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});R.freezeMethods(Kt);var Re=Kt;function hr(e,t){const r=this||Yr,n=t||r,s=Re.from(n.headers);let i=n.data;return R.forEach(e,function(d){i=d.call(r,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function Si(e){return!!(e&&e.__CANCEL__)}function ut(e,t,r){q.call(this,e??"canceled",q.ERR_CANCELED,t,r),this.name="CanceledError"}R.inherits(ut,q,{__CANCEL__:!0});function Cl(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new q("Request failed with status code "+r.status,[q.ERR_BAD_REQUEST,q.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}var Pl=ve.hasStandardBrowserEnv?{write(e,t,r,n,s,i){const c=[e+"="+encodeURIComponent(t)];R.isNumber(r)&&c.push("expires="+new Date(r).toGMTString()),R.isString(n)&&c.push("path="+n),R.isString(s)&&c.push("domain="+s),i===!0&&c.push("secure"),document.cookie=c.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Fl(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Dl(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ri(e,t){return e&&!Fl(t)?Dl(e,t):t}var Ll=ve.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function s(i){let c=i;return t&&(r.setAttribute("href",c),c=r.href),r.setAttribute("href",c),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=s(window.location.href),function(c){const d=R.isString(c)?s(c):c;return d.protocol===n.protocol&&d.host===n.host}}():function(){return function(){return!0}}();function Nl(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Bl(e,t){e=e||10;const r=new Array(e),n=new Array(e);let s=0,i=0,c;return t=t!==void 0?t:1e3,function(g){const y=Date.now(),v=n[i];c||(c=y),r[s]=g,n[s]=y;let p=i,O=0;for(;p!==s;)O+=r[p++],p=p%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),y-c<t)return;const P=v&&y-v;return P?Math.round(O*1e3/P):void 0}}function no(e,t){let r=0;const n=Bl(50,250);return s=>{const i=s.loaded,c=s.lengthComputable?s.total:void 0,d=i-r,g=n(d),y=i<=c;r=i;const v={loaded:i,total:c,progress:c?i/c:void 0,bytes:d,rate:g||void 0,estimated:g&&c&&y?(c-i)/g:void 0,event:s};v[t?"download":"upload"]=!0,e(v)}}const Il=typeof XMLHttpRequest<"u";var Ml=Il&&function(e){return new Promise(function(r,n){let s=e.data;const i=Re.from(e.headers).normalize();let{responseType:c,withXSRFToken:d}=e,g;function y(){e.cancelToken&&e.cancelToken.unsubscribe(g),e.signal&&e.signal.removeEventListener("abort",g)}let v;if(R.isFormData(s)){if(ve.hasStandardBrowserEnv||ve.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((v=i.getContentType())!==!1){const[_,...T]=v?v.split(";").map(L=>L.trim()).filter(Boolean):[];i.setContentType([_||"multipart/form-data",...T].join("; "))}}let p=new XMLHttpRequest;if(e.auth){const _=e.auth.username||"",T=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(_+":"+T))}const O=Ri(e.baseURL,e.url);p.open(e.method.toUpperCase(),wi(O,e.params,e.paramsSerializer),!0),p.timeout=e.timeout;function P(){if(!p)return;const _=Re.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),L={data:!c||c==="text"||c==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:_,config:e,request:p};Cl(function(j){r(j),y()},function(j){n(j),y()},L),p=null}if("onloadend"in p?p.onloadend=P:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(P)},p.onabort=function(){p&&(n(new q("Request aborted",q.ECONNABORTED,e,p)),p=null)},p.onerror=function(){n(new q("Network Error",q.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let T=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const L=e.transitional||bi;e.timeoutErrorMessage&&(T=e.timeoutErrorMessage),n(new q(T,L.clarifyTimeoutError?q.ETIMEDOUT:q.ECONNABORTED,e,p)),p=null},ve.hasStandardBrowserEnv&&(d&&R.isFunction(d)&&(d=d(e)),d||d!==!1&&Ll(O))){const _=e.xsrfHeaderName&&e.xsrfCookieName&&Pl.read(e.xsrfCookieName);_&&i.set(e.xsrfHeaderName,_)}s===void 0&&i.setContentType(null),"setRequestHeader"in p&&R.forEach(i.toJSON(),function(T,L){p.setRequestHeader(L,T)}),R.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),c&&c!=="json"&&(p.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&p.addEventListener("progress",no(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&p.upload&&p.upload.addEventListener("progress",no(e.onUploadProgress)),(e.cancelToken||e.signal)&&(g=_=>{p&&(n(!_||_.type?new ut(null,e,p):_),p.abort(),p=null)},e.cancelToken&&e.cancelToken.subscribe(g),e.signal&&(e.signal.aborted?g():e.signal.addEventListener("abort",g)));const E=Nl(O);if(E&&ve.protocols.indexOf(E)===-1){n(new q("Unsupported protocol "+E+":",q.ERR_BAD_REQUEST,e));return}p.send(s||null)})};const Fr={http:ul,xhr:Ml};R.forEach(Fr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const oo=e=>`- ${e}`,jl=e=>R.isFunction(e)||e===null||e===!1;var Ai={getAdapter:e=>{e=R.isArray(e)?e:[e];const{length:t}=e;let r,n;const s={};for(let i=0;i<t;i++){r=e[i];let c;if(n=r,!jl(r)&&(n=Fr[(c=String(r)).toLowerCase()],n===void 0))throw new q(`Unknown adapter '${c}'`);if(n)break;s[c||"#"+i]=n}if(!n){const i=Object.entries(s).map(([d,g])=>`adapter ${d} `+(g===!1?"is not supported by the environment":"is not available in the build"));let c=t?i.length>1?`since :
|
|
`+i.map(oo).join(`
|
|
`):" "+oo(i[0]):"as no adapter specified";throw new q("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return n},adapters:Fr};function pr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ut(null,e)}function io(e){return pr(e),e.headers=Re.from(e.headers),e.data=hr.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ai.getAdapter(e.adapter||Yr.adapter)(e).then(function(n){return pr(e),n.data=hr.call(e,e.transformResponse,n),n.headers=Re.from(n.headers),n},function(n){return Si(n)||(pr(e),n&&n.response&&(n.response.data=hr.call(e,e.transformResponse,n.response),n.response.headers=Re.from(n.response.headers))),Promise.reject(n)})}const so=e=>e instanceof Re?{...e}:e;function $e(e,t){t=t||{};const r={};function n(y,v,p){return R.isPlainObject(y)&&R.isPlainObject(v)?R.merge.call({caseless:p},y,v):R.isPlainObject(v)?R.merge({},v):R.isArray(v)?v.slice():v}function s(y,v,p){if(R.isUndefined(v)){if(!R.isUndefined(y))return n(void 0,y,p)}else return n(y,v,p)}function i(y,v){if(!R.isUndefined(v))return n(void 0,v)}function c(y,v){if(R.isUndefined(v)){if(!R.isUndefined(y))return n(void 0,y)}else return n(void 0,v)}function d(y,v,p){if(p in t)return n(y,v);if(p in e)return n(void 0,y)}const g={url:i,method:i,data:i,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:d,headers:(y,v)=>s(so(y),so(v),!0)};return R.forEach(Object.keys(Object.assign({},e,t)),function(v){const p=g[v]||s,O=p(e[v],t[v],v);R.isUndefined(O)&&p!==d||(r[v]=O)}),r}const Oi="1.6.8",Zr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Zr[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ao={};Zr.transitional=function(t,r,n){function s(i,c){return"[Axios v"+Oi+"] Transitional option '"+i+"'"+c+(n?". "+n:"")}return(i,c,d)=>{if(t===!1)throw new q(s(c," has been removed"+(r?" in "+r:"")),q.ERR_DEPRECATED);return r&&!ao[c]&&(ao[c]=!0,console.warn(s(c," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,c,d):!0}};function Ul(e,t,r){if(typeof e!="object")throw new q("options must be an object",q.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const i=n[s],c=t[i];if(c){const d=e[i],g=d===void 0||c(d,i,e);if(g!==!0)throw new q("option "+i+" must be "+g,q.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new q("Unknown option "+i,q.ERR_BAD_OPTION)}}var Dr={assertOptions:Ul,validators:Zr};const Te=Dr.validators;class Ct{constructor(t){this.defaults=t,this.interceptors={request:new to,response:new to}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
`+i):n.stack=i}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=$e(this.defaults,r);const{transitional:n,paramsSerializer:s,headers:i}=r;n!==void 0&&Dr.assertOptions(n,{silentJSONParsing:Te.transitional(Te.boolean),forcedJSONParsing:Te.transitional(Te.boolean),clarifyTimeoutError:Te.transitional(Te.boolean)},!1),s!=null&&(R.isFunction(s)?r.paramsSerializer={serialize:s}:Dr.assertOptions(s,{encode:Te.function,serialize:Te.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let c=i&&R.merge(i.common,i[r.method]);i&&R.forEach(["delete","get","head","post","put","patch","common"],E=>{delete i[E]}),r.headers=Re.concat(c,i);const d=[];let g=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(r)===!1||(g=g&&_.synchronous,d.unshift(_.fulfilled,_.rejected))});const y=[];this.interceptors.response.forEach(function(_){y.push(_.fulfilled,_.rejected)});let v,p=0,O;if(!g){const E=[io.bind(this),void 0];for(E.unshift.apply(E,d),E.push.apply(E,y),O=E.length,v=Promise.resolve(r);p<O;)v=v.then(E[p++],E[p++]);return v}O=d.length;let P=r;for(p=0;p<O;){const E=d[p++],_=d[p++];try{P=E(P)}catch(T){_.call(this,T);break}}try{v=io.call(this,P)}catch(E){return Promise.reject(E)}for(p=0,O=y.length;p<O;)v=v.then(y[p++],y[p++]);return v}getUri(t){t=$e(this.defaults,t);const r=Ri(t.baseURL,t.url);return wi(r,t.params,t.paramsSerializer)}}R.forEach(["delete","get","head","options"],function(t){Ct.prototype[t]=function(r,n){return this.request($e(n||{},{method:t,url:r,data:(n||{}).data}))}});R.forEach(["post","put","patch"],function(t){function r(n){return function(i,c,d){return this.request($e(d||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:c}))}}Ct.prototype[t]=r(),Ct.prototype[t+"Form"]=r(!0)});var Tt=Ct;class en{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(s=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](s);n._listeners=null}),this.promise.then=s=>{let i;const c=new Promise(d=>{n.subscribe(d),i=d}).then(s);return c.cancel=function(){n.unsubscribe(i)},c},t(function(i,c,d){n.reason||(n.reason=new ut(i,c,d),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new en(function(s){t=s}),cancel:t}}}var $l=en;function zl(e){return function(r){return e.apply(null,r)}}function Hl(e){return R.isObject(e)&&e.isAxiosError===!0}const Lr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Lr).forEach(([e,t])=>{Lr[t]=e});var Vl=Lr;function Ti(e){const t=new Tt(e),r=ai(Tt.prototype.request,t);return R.extend(r,Tt.prototype,t,{allOwnKeys:!0}),R.extend(r,t,null,{allOwnKeys:!0}),r.create=function(s){return Ti($e(e,s))},r}const ee=Ti(Yr);ee.Axios=Tt;ee.CanceledError=ut;ee.CancelToken=$l;ee.isCancel=Si;ee.VERSION=Oi;ee.toFormData=Jt;ee.AxiosError=q;ee.Cancel=ee.CanceledError;ee.all=function(t){return Promise.all(t)};ee.spread=zl;ee.isAxiosError=Hl;ee.mergeConfig=$e;ee.AxiosHeaders=Re;ee.formToJSON=e=>_i(R.isHTMLForm(e)?new FormData(e):e);ee.getAdapter=Ai.getAdapter;ee.HttpStatusCode=Vl;ee.default=ee;var ql=ee,Wl=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,s,i;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(s=n;s--!==0;)if(!e(t[s],r[s]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(r).length)return!1;for(s=n;s--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[s]))return!1;for(s=n;s--!==0;){var c=i[s];if(!e(t[c],r[c]))return!1}return!0}return t!==t&&r!==r};/*!
|
|
* Determine if an object is a Buffer
|
|
*
|
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
* @license MIT
|
|
*/var Jl=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};/*!
|
|
* MIT License
|
|
*
|
|
* Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
*
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
|
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
|
|
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
* persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
*
|
|
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
|
|
* Software.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
|
* WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
*/function Kl(e){return typeof Blob>"u"?!1:e instanceof Blob||Object.prototype.toString.call(e)==="[object Blob]"}var Ql=Kl,uo=ql,ki=Wl,Gl=Jl,Xl=Ql,xi=Object.prototype.toString;function Ci(e,t){for(var r=e.length,n=0;n<r;n++){var s=e[n];if(t(s))return s}}function Pi(e){return xi.call(e)==="[object Function]"}function Fi(e){return e!==null&&typeof e=="object"}function Yl(e){return Fi(e)&&Pi(e.pipe)}function Zl(e){return xi.call(e)==="[object ArrayBuffer]"}function co(e,t){return e?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):t}function ef(e,t,r,n,s,i,c){return Ci(e[t.toLowerCase()],function(d){if(typeof d[0]=="string")return(lo(r,d[0])||lo(co(c,r),d[0]))&&Nr(t,n,s,d[1])&&Pt(i,d[2]);if(d[0]instanceof RegExp)return(d[0].test(r)||d[0].test(co(c,r)))&&Nr(t,n,s,d[1])&&Pt(i,d[2])})}function lo(e,t){var r=e[0]==="/"?e.substr(1):e,n=t[0]==="/"?t.substr(1):t;return r===n}function Nr(e,t,r,n){var s=["delete","get","head","options"];if(s.indexOf(e.toLowerCase())>=0){var i=n?n.data:void 0,c=n?n.params:void 0;return Pt(r,c)&&fo(t,i)}else return fo(t,n)}function Pt(e,t){return t===void 0?!0:typeof t.asymmetricMatch=="function"?t.asymmetricMatch(e):ki(e,t)}function fo(e,t){if(t===void 0)return!0;var r;try{r=JSON.parse(e)}catch{}return Pt(r||e,t)}function tf(e,t){Object.keys(e.handlers).forEach(function(r){var n=e.handlers[r].indexOf(t);n>-1&&e.handlers[r].splice(n,1)})}function Di(e,t,r,n){if(n>0){setTimeout(Di,n,e,t,r);return}!r.config.validateStatus||r.config.validateStatus(r.status)?e(r):t(Li("Request failed with status code "+r.status,r.config,r))}function Li(e,t,r,n){if(typeof uo.AxiosError=="function")return uo.AxiosError.from(new Error(e),n,t,null,r);var s=new Error(e);return s.isAxiosError=!0,s.config=t,r!==void 0&&(s.response=r),n!==void 0&&(s.code=n),s.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},s}function rf(e){var t=`Could not find mock for:
|
|
`+JSON.stringify(e,["method","url"],2),r=new Error(t);return r.isCouldNotFindMockError=!0,r.url=e.url,r.method=e.method,r}var Ni={find:Ci,findHandler:ef,purgeIfReplyOnce:tf,settle:Di,isStream:Yl,isArrayBuffer:Zl,isFunction:Pi,isObjectOrArray:Fi,isBuffer:Gl,isBlob:Xl,isBodyOrParametersMatching:Nr,isEqual:ki,createAxiosError:Li,createCouldNotFindMockError:rf},ie=Ni;function nf(e){return ie.isArrayBuffer(e)||ie.isBuffer(e)||ie.isStream(e)||ie.isBlob(e)?e:ie.isObjectOrArray(e)?JSON.parse(JSON.stringify(e)):e}function yt(e,t){return{status:e[0],data:nf(e[1]),headers:e[2],config:t,request:{responseURL:t.url}}}function ho(e,t,r,n){var s=n.baseURL;if(n.baseURL&&!/^https?:/.test(n.baseURL)&&(s=void 0),typeof e.originalAdapter=="function")return e.originalAdapter(n).then(t,r);e.axiosInstanceWithoutInterceptors(Object.assign({},n,{baseURL:s,adapter:e.originalAdapter,transformRequest:[],transformResponse:[]})).then(t,r)}function of(e,t,r,n){var s=n.url||"";n.baseURL&&s.substr(0,n.baseURL.length)===n.baseURL&&(s=s.slice(n.baseURL.length)),delete n.adapter,e.history[n.method].push(n);var i=ie.findHandler(e.handlers,n.method,s,n.data,n.params,n.headers&&n.headers.constructor.name==="AxiosHeaders"?Object.assign({},n.headers):n.headers,n.baseURL);if(i)if(i.length===7&&ie.purgeIfReplyOnce(e,i),i.length===2)ho(e,t,r,n);else if(typeof i[3]!="function")ie.settle(t,r,yt(i.slice(3),n),vt(e,i));else{var c=i[3](n);typeof c.then!="function"?ie.settle(t,r,yt(c,n),vt(e,i)):c.then(function(d){d.config&&d.status?ie.settle(t,r,yt([d.status,d.data,d.headers],d.config),0):ie.settle(t,r,yt(d,n),vt(e,i))},function(d){e.delayResponse>0?setTimeout(function(){r(d)},vt(e,i)):r(d)})}else switch(e.onNoMatch){case"passthrough":ho(e,t,r,n);break;case"throwException":throw ie.createCouldNotFindMockError(n);default:ie.settle(t,r,{status:404,config:n},e.delayResponse)}}function vt(e,t){var r;return t.length===8&&(r=t[7]),r||e.delayResponse}var sf=of,af=sf,xe=Ni,tn=["get","post","head","delete","patch","put","options","list","link","unlink"];function uf(){return(function(e){var t=this;return new Promise(function(r,n){af(t,r,n,e)})}).bind(this)}function Bi(){return tn.reduce(function(e,t){return e[t]=[],e},{})}function Ii(){Mi.call(this),ji.call(this)}function Mi(){this.handlers=Bi()}function ji(){this.history=Bi()}function Ce(e,t){if(Ii.call(this),e)this.axiosInstance=e,this.axiosInstanceWithoutInterceptors=e.create?e.create():void 0,this.originalAdapter=e.defaults.adapter,this.delayResponse=t&&t.delayResponse>0?t.delayResponse:null,this.onNoMatch=t&&t.onNoMatch||null,e.defaults.adapter=this.adapter.call(this);else throw new Error("Please provide an instance of axios to mock")}Ce.prototype.adapter=uf;Ce.prototype.restore=function(){this.axiosInstance&&(this.axiosInstance.defaults.adapter=this.originalAdapter,this.axiosInstance=void 0)};Ce.prototype.reset=Ii;Ce.prototype.resetHandlers=Mi;Ce.prototype.resetHistory=ji;tn.concat("any").forEach(function(e){var t="on"+e.charAt(0).toUpperCase()+e.slice(1);Ce.prototype[t]=function(c,n,s){var i=this,c=c===void 0?/.*/:c;function d(p,O,P){var E=[c,n,s,p,O,P];return gt(e,i.handlers,E),i}function g(p,O,P,E){var _=[c,n,s,O,P,E,!1,p];return gt(e,i.handlers,_),i}function y(p){return function(O,P,E){g(p,O,P,E)}}function v(p,O,P){var E=[c,n,s,p,O,P,!0];return gt(e,i.handlers,E),i}return{reply:d,replyOnce:v,withDelayInMs:y,passThrough:function(){var O=[c,n];return gt(e,i.handlers,O),i},abortRequest:function(){return d(function(p){var O=xe.createAxiosError("Request aborted",p,void 0,"ECONNABORTED");return Promise.reject(O)})},abortRequestOnce:function(){return v(function(p){var O=xe.createAxiosError("Request aborted",p,void 0,"ECONNABORTED");return Promise.reject(O)})},networkError:function(){return d(function(p){var O=xe.createAxiosError("Network Error",p);return Promise.reject(O)})},networkErrorOnce:function(){return v(function(p){var O=xe.createAxiosError("Network Error",p);return Promise.reject(O)})},timeout:function(){return d(function(p){var O=xe.createAxiosError(p.timeoutErrorMessage||"timeout of "+p.timeout+"ms exceeded",p,void 0,p.transitional&&p.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED");return Promise.reject(O)})},timeoutOnce:function(){return v(function(p){var O=xe.createAxiosError(p.timeoutErrorMessage||"timeout of "+p.timeout+"ms exceeded",p,void 0,p.transitional&&p.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED");return Promise.reject(O)})}}}});function cf(e,t,r){for(var n=-1,s=0;s<t[e].length;s+=1){var i=t[e][s],c=i.length===7,d=i[0]instanceof RegExp&&r[0]instanceof RegExp?String(i[0])===String(r[0]):i[0]===r[0],g=d&&xe.isEqual(i[1],r[1])&&xe.isEqual(i[2],r[2]);g&&!c&&(n=s)}return n}function gt(e,t,r){if(e==="any")tn.forEach(function(s){t[s].push(r)});else{var n=cf(e,t,r);n>-1&&r.length<7?t[e].splice(n,1,r):t[e].push(r)}}Kr.exports=Ce;Kr.exports.default=Ce;var lf=Kr.exports;const Nf=Js(lf),ge=typeof window<"u"&&window!==null,po=function(){return ge&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype?("isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}}),!0):!1}(),Ge="event",mo="observer",ff=function(){if(ge)return typeof window.CustomEvent=="function"?window.CustomEvent:(e.prototype=window.Event.prototype,e);function e(t,r){r=r||{bubbles:!1,cancelable:!1,detail:void 0};const n=document.createEvent("CustomEvent");return n.initCustomEvent(t,r.bubbles,r.cancelable,r.detail),n}}();function Xe(e,t){if(!e.length)return;const r=e.indexOf(t);return r>-1?e.splice(r,1):void 0}function yo(e,t){if(e.tagName!=="IMG"||!e.getAttribute("data-srcset"))return;let r=e.getAttribute("data-srcset");const n=e.parentNode.offsetWidth*t;let s,i,c;r=r.trim().split(",");const d=r.map(v=>(v=v.trim(),s=v.lastIndexOf(" "),s===-1?(i=v,c=999998):(i=v.substr(0,s),c=parseInt(v.substr(s+1,v.length-s-2),10)),[c,i]));d.sort(function(v,p){if(v[0]<p[0])return 1;if(v[0]>p[0])return-1;if(v[0]===p[0]){if(p[1].indexOf(".webp",p[1].length-5)!==-1)return 1;if(v[1].indexOf(".webp",v[1].length-5)!==-1)return-1}return 0});let g,y="";for(let v=0;v<d.length;v++){g=d[v],y=g[1];const p=d[v+1];if(p&&p[0]<n){y=g[1];break}if(!p){y=g[1];break}}return y}const df=(e=1)=>ge&&window.devicePixelRatio||e;function hf(){if(!ge)return!1;let e=!0;try{const t=document.createElement("canvas");t.getContext&&t.getContext("2d")&&(e=t.toDataURL("image/webp").indexOf("data:image/webp")===0)}catch{e=!1}return e}const pf=function(){if(!ge)return;let e=!1;try{let t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch{}return e}(),mf={on(e,t,r,n=!1){pf?e.addEventListener(t,r,{capture:n,passive:!0}):e.addEventListener(t,r,n)},off(e,t,r,n=!1){e.removeEventListener(t,r,n)}},Br=(e,t,r)=>{let n=new Image;if(!e||!e.src){const s=new Error("image src is required");return r(s)}n.src=e.src,e.cors&&(n.crossOrigin=e.cors),n.onload=function(){t({naturalHeight:n.naturalHeight,naturalWidth:n.naturalWidth,src:n.src})},n.onerror=function(s){r(s)}},mr=(e,t)=>typeof getComputedStyle<"u"?getComputedStyle(e,null).getPropertyValue(t):e.style[t],yf=e=>mr(e,"overflow")+mr(e,"overflow-y")+mr(e,"overflow-x");function Ui(){}class vf{constructor({max:t}){this.options={max:t||100},this._caches=[]}has(t){return this._caches.indexOf(t)>-1}add(t){this.has(t)||(this._caches.push(t),this._caches.length>this.options.max&&this.free())}free(){this._caches.shift()}}class gf{constructor({el:t,src:r,error:n,loading:s,bindType:i,$parent:c,options:d,cors:g,elRenderer:y,imageCache:v}){this.el=t,this.src=r,this.error=n,this.loading=s,this.bindType=i,this.attempt=0,this.cors=g,this.naturalHeight=0,this.naturalWidth=0,this.options=d,this.rect=null,this.$parent=c,this.elRenderer=y,this._imageCache=v,this.performanceData={init:Date.now(),loadStart:0,loadEnd:0},this.filter(),this.initState(),this.render("loading",!1)}initState(){"dataset"in this.el?this.el.dataset.src=this.src:this.el.setAttribute("data-src",this.src),this.state={loading:!1,error:!1,loaded:!1,rendered:!1}}record(t){this.performanceData[t]=Date.now()}update({src:t,loading:r,error:n}){const s=this.src;this.src=t,this.loading=r,this.error=n,this.filter(),s!==this.src&&(this.attempt=0,this.initState())}getRect(){this.rect=this.el.getBoundingClientRect()}checkInView(){return this.getRect(),this.rect.top<window.innerHeight*this.options.preLoad&&this.rect.bottom>this.options.preLoadTop&&this.rect.left<window.innerWidth*this.options.preLoad&&this.rect.right>0}filter(){Object.keys(this.options.filter).map(t=>{this.options.filter[t](this,this.options)})}renderLoading(t){this.state.loading=!0,Br({src:this.loading,cors:this.cors},()=>{this.render("loading",!1),this.state.loading=!1,t()},()=>{t(),this.state.loading=!1,this.options.silent||console.warn(`VueLazyload log: load failed with loading image(${this.loading})`)})}load(t=Ui){return this.attempt>this.options.attempt-1&&this.state.error?(this.options.silent||console.log(`VueLazyload log: ${this.src} tried too more than ${this.options.attempt} times`),void t()):this.state.rendered&&this.state.loaded?void 0:this._imageCache.has(this.src)?(this.state.loaded=!0,this.render("loaded",!0),this.state.rendered=!0,t()):void this.renderLoading(()=>{this.attempt++,this.options.adapter.beforeLoad&&this.options.adapter.beforeLoad(this,this.options),this.record("loadStart"),Br({src:this.src,cors:this.cors},r=>{this.naturalHeight=r.naturalHeight,this.naturalWidth=r.naturalWidth,this.state.loaded=!0,this.state.error=!1,this.record("loadEnd"),this.render("loaded",!1),this.state.rendered=!0,this._imageCache.add(this.src),t()},r=>{!this.options.silent&&console.error(r),this.state.error=!0,this.state.loaded=!1,this.render("error",!1)})})}render(t,r){this.elRenderer(this,t,r)}performance(){let t="loading",r=0;return this.state.loaded&&(t="loaded",r=(this.performanceData.loadEnd-this.performanceData.loadStart)/1e3),this.state.error&&(t="error"),{src:this.src,state:t,time:r}}$destroy(){this.el=null,this.src=null,this.error=null,this.loading=null,this.bindType=null,this.attempt=0}}const vo="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",wf=["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"],bf={rootMargin:"0px",threshold:0};function Ef(){return class{constructor({preLoad:e,error:t,throttleWait:r,preLoadTop:n,dispatchEvent:s,loading:i,attempt:c,silent:d=!0,scale:g,listenEvents:y,filter:v,adapter:p,observer:O,observerOptions:P}){this.mode=Ge,this.ListenerQueue=[],this.TargetIndex=0,this.TargetQueue=[],this.options={silent:d,dispatchEvent:!!s,throttleWait:r||200,preLoad:e||1.3,preLoadTop:n||0,error:t||vo,loading:i||vo,attempt:c||3,scale:g||df(g),ListenEvents:y||wf,hasbind:!1,supportWebp:hf(),filter:v||{},adapter:p||{},observer:!!O,observerOptions:P||bf},this._initEvent(),this._imageCache=new vf({max:200}),this.lazyLoadHandler=function(E,_){let T=null,L=0;return function(...M){if(T)return;let j=function(){L=Date.now(),T=!1,E.apply(this,M)};Date.now()-L>=_?j():T=setTimeout(j,_)}}(this._lazyLoadHandler.bind(this),this.options.throttleWait),this.setMode(this.options.observer?mo:Ge)}config(e={}){Object.assign(this.options,e)}performance(){return this.ListenerQueue.map(e=>e.performance())}addLazyBox(e){this.ListenerQueue.push(e),ge&&(this._addListenerTarget(window),this._observer&&this._observer.observe(e.el),e.$el&&e.$el.parentNode&&this._addListenerTarget(e.$el.parentNode))}add(e,t){if(this.ListenerQueue.some(s=>s.el===e))return this.update(e,t),void Vue.nextTick(()=>this.lazyLoadHandler());const r=this._valueFormatter(t.value);let{src:n}=r;Vue.nextTick(()=>{n=yo(e,this.options.scale)||n,this._observer&&this._observer.observe(e);const s=Object.keys(t.modifiers)[0];let i;s&&(i=t.instance.$refs[s],i=i?i.$el||i:document.getElementById(s)),i||(i=(d=>{if(!ge)return;if(!(d instanceof HTMLElement))return window;let g=d;for(;g&&g!==document.body&&g!==document.documentElement&&g.parentNode;){if(/(scroll|auto)/.test(yf(g)))return g;g=g.parentNode}return window})(e));const c=new gf({el:e,$parent:i,src:n,loading:r.loading,error:r.error,cors:r.cors,bindType:t.arg,elRenderer:this._elRenderer.bind(this),options:this.options,imageCache:this._imageCache});this.ListenerQueue.push(c),ge&&(this._addListenerTarget(window),this._addListenerTarget(i)),this.lazyLoadHandler(),Vue.nextTick(()=>this.lazyLoadHandler())})}update(e,t){const r=this._valueFormatter(t.value);let{src:n}=r;n=yo(e,this.options.scale)||n;const s=this.ListenerQueue.find(i=>i.el===e);s?s.update({src:n,error:r.error,loading:r.loading}):this.add(e,t),this._observer&&(this._observer.unobserve(e),this._observer.observe(e)),this.lazyLoadHandler(),Vue.nextTick(()=>this.lazyLoadHandler())}remove(e){if(!e)return;this._observer&&this._observer.unobserve(e);const t=this.ListenerQueue.find(r=>r.el===e);t&&(this._removeListenerTarget(t.$parent),this._removeListenerTarget(window),Xe(this.ListenerQueue,t),t.$destroy&&t.$destroy())}removeComponent(e){e&&(Xe(this.ListenerQueue,e),this._observer&&this._observer.unobserve(e.el),e.$parent&&e.$el.parentNode&&this._removeListenerTarget(e.$el.parentNode),this._removeListenerTarget(window))}setMode(e){po||e!==mo||(e=Ge),this.mode=e,e===Ge?(this._observer&&(this.ListenerQueue.forEach(t=>{this._observer.unobserve(t.el)}),this._observer=null),this.TargetQueue.forEach(t=>{this._initListen(t.el,!0)})):(this.TargetQueue.forEach(t=>{this._initListen(t.el,!1)}),this._initIntersectionObserver())}_addListenerTarget(e){if(!e)return;let t=this.TargetQueue.find(r=>r.el===e);return t?t.childrenCount++:(t={el:e,id:++this.TargetIndex,childrenCount:1,listened:!0},this.mode===Ge&&this._initListen(t.el,!0),this.TargetQueue.push(t)),this.TargetIndex}_removeListenerTarget(e){this.TargetQueue.forEach((t,r)=>{t.el===e&&(t.childrenCount--,t.childrenCount||(this._initListen(t.el,!1),this.TargetQueue.splice(r,1),t=null))})}_initListen(e,t){this.options.ListenEvents.forEach(r=>mf[t?"on":"off"](e,r,this.lazyLoadHandler))}_initEvent(){this.Event={listeners:{loading:[],loaded:[],error:[]}},this.$on=(e,t)=>{this.Event.listeners[e]||(this.Event.listeners[e]=[]),this.Event.listeners[e].push(t)},this.$once=(e,t)=>{const r=(...n)=>{this.$off(e,r),t.apply(this,n)};this.$on(e,r)},this.$off=(e,t)=>{if(t)Xe(this.Event.listeners[e],t);else{if(!this.Event.listeners[e])return;this.Event.listeners[e].length=0}},this.$emit=(e,t,r)=>{this.Event.listeners[e]&&this.Event.listeners[e].forEach(n=>n(t,r))}}_lazyLoadHandler(){const e=[];this.ListenerQueue.forEach(t=>{t.el&&t.el.parentNode||e.push(t),t.checkInView()&&t.load()}),e.forEach(t=>{Xe(this.ListenerQueue,t),t.$destroy&&t.$destroy()})}_initIntersectionObserver(){po&&(this._observer=new IntersectionObserver(this._observerHandler.bind(this),this.options.observerOptions),this.ListenerQueue.length&&this.ListenerQueue.forEach(e=>{this._observer.observe(e.el)}))}_observerHandler(e){e.forEach(t=>{t.isIntersecting&&this.ListenerQueue.forEach(r=>{if(r.el===t.target){if(r.state.loaded)return this._observer.unobserve(r.el);r.load()}})})}_elRenderer(e,t,r){if(!e.el)return;const{el:n,bindType:s}=e;let i;switch(t){case"loading":i=e.loading;break;case"error":i=e.error;break;default:i=e.src}if(s?n.style[s]='url("'+i+'")':n.getAttribute("src")!==i&&n.setAttribute("src",i),n.setAttribute("lazy",t),this.$emit(t,e,r),this.options.adapter[t]&&this.options.adapter[t](e,this.options),this.options.dispatchEvent){const c=new ff(t,{detail:e});n.dispatchEvent(c)}}_valueFormatter(e){let t=e,{loading:r,error:n}=this.options;var s;return(s=e)!==null&&typeof s=="object"&&(e.src||this.options.silent||console.error("Vue Lazyload warning: miss src with "+e),t=e.src,r=e.loading||this.options.loading,n=e.error||this.options.error),{src:t,loading:r,error:n}}}}var _f=e=>({props:{tag:{type:String,default:"div"}},emits:["show"],render(){return Vue.h(this.tag,null,this.show&&this.$slots.default?this.$slots.default():null)},data:()=>({el:null,state:{loaded:!1},rect:{},show:!1}),mounted(){this.el=this.$el,e.addLazyBox(this),e.lazyLoadHandler()},beforeUnmount(){e.removeComponent(this)},methods:{getRect(){this.rect=this.$el.getBoundingClientRect()},checkInView(){return this.getRect(),ge&&this.rect.top<window.innerHeight*e.options.preLoad&&this.rect.bottom>0&&this.rect.left<window.innerWidth*e.options.preLoad&&this.rect.right>0},load(){this.show=!0,this.state.loaded=!0,this.$emit("show",this)},destroy(){return this.$destroy}}});const Sf={selector:"img"};class Rf{constructor({el:t,binding:r,lazy:n}){this.el=null,this.binding=r,this.options={},this.lazy=n,this.update({el:t,binding:r})}update({el:t,binding:r}){this.el=t,this.options=Object.assign({},Sf,r.value),this.getImgs().forEach(n=>{this.lazy.add(n,Object.assign({},this.binding,{value:{src:"dataset"in n?n.dataset.src:n.getAttribute("data-src"),error:("dataset"in n?n.dataset.error:n.getAttribute("data-error"))||this.options.error,loading:("dataset"in n?n.dataset.loading:n.getAttribute("data-loading"))||this.options.loading}}))})}getImgs(){return Array.from(this.el.querySelectorAll(this.options.selector))}clear(){this.getImgs().forEach(t=>this.lazy.remove(t)),this.binding=null,this.lazy=null}}class Af{constructor({lazy:t}){this.lazy=t,this._queue=[]}bind(t,r){const n=new Rf({el:t,binding:r,lazy:this.lazy});this._queue.push(n)}update(t,r){const n=this._queue.find(s=>s.el===t);n&&n.update({el:t,binding:r})}unbind(t){const r=this._queue.find(n=>n.el===t);r&&(r.clear(),Xe(this._queue,r))}}var Of=e=>({props:{src:[String,Object],tag:{type:String,default:"img"}},render(){return Vue.h(this.tag,{src:this.renderSrc},this.$slots.default?this.$slots.default():null)},data:()=>({el:null,options:{src:"",error:"",loading:"",attempt:e.options.attempt},state:{loaded:!1,error:!1,attempt:0},rect:{},renderSrc:""}),watch:{src(){this.init(),e.addLazyBox(this),e.lazyLoadHandler()}},created(){this.init(),this.renderSrc=this.options.loading},mounted(){this.el=this.$el,e.addLazyBox(this),e.lazyLoadHandler()},beforeUnmount(){e.removeComponent(this)},methods:{init(){const{src:t,loading:r,error:n}=e._valueFormatter(this.src);this.state.loaded=!1,this.options.src=t,this.options.error=n,this.options.loading=r,this.renderSrc=this.options.loading},getRect(){this.rect=this.$el.getBoundingClientRect()},checkInView(){return this.getRect(),ge&&this.rect.top<window.innerHeight*e.options.preLoad&&this.rect.bottom>0&&this.rect.left<window.innerWidth*e.options.preLoad&&this.rect.right>0},load(t=Ui){if(this.state.attempt>this.options.attempt-1&&this.state.error)return e.options.silent||console.log(`VueLazyload log: ${this.options.src} tried too more than ${this.options.attempt} times`),void t();const r=this.options.src;Br({src:r},({src:n})=>{this.renderSrc=n,this.state.loaded=!0},()=>{this.state.attempt++,this.renderSrc=this.options.error,this.state.error=!0})}}}),Bf={install(e,t={}){if(Number(e.version.split(".")[0])<3)return new Error("Vue version at least 3.0");const r=new(Ef())(t),n=new Af({lazy:r});e.provide("Lazyload",r),e.config.globalProperties.$Lazyload=r,t.lazyComponent&&e.component("LazyComponent",_f(r)),t.lazyImage&&e.component("LazyImage",Of(r)),e.directive("lazy",{beforeMount:r.add.bind(r),updated:r.update.bind(r),unmounted:r.remove.bind(r)}),e.directive("lazy-container",{beforeMount:n.bind.bind(n),updated:n.update.bind(n),unmounted:n.unbind.bind(n)})}};export{Lf as I,Nf as M,Bf as T,te as a,xf as b,kf as c,Qs as d,Cf as m};
|