41 lines
175 KiB
JavaScript
41 lines
175 KiB
JavaScript
var ge=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function va(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 ba={},Io={exports:{}};const Ea={},_a=Object.freeze(Object.defineProperty({__proto__:null,default:Ea},Symbol.toStringTag,{value:"Module"})),dr=va(_a);(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 y=Object.assign({},i),h="./this.program",m=function(o,a){throw a},v=typeof window=="object",O=typeof importScripts=="function",x=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",_="";function A(o){return i.locateFile?i.locateFile(o,_):_+o}var E,P,F;if(x){var L=dr,J=dr;O?_=J.dirname(_)+"/":_=__dirname+"/",E=function(o,a){return o=mt(o)?new URL(o):J.normalize(o),L.readFileSync(o,a?void 0:"utf8")},F=function(o){var a=E(o,!0);return a.buffer||(a=new Uint8Array(a)),a},P=function(o,a,u,f){f===void 0&&(f=!0),o=mt(o)?new URL(o):J.normalize(o),L.readFile(o,f?void 0:"utf8",function(p,g){p?u(p):a(f?g.buffer:g)})},!i.thisProgram&&process.argv.length>1&&(h=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),m=function(o,a){throw process.exitCode=o,a},i.inspect=function(){return"[Emscripten Module object]"}}else(v||O)&&(O?_=self.location.href:typeof document<"u"&&document.currentScript&&(_=document.currentScript.src),n&&(_=n),_.indexOf("blob:")!==0?_=_.substr(0,_.replace(/[?#].*/,"").lastIndexOf("/")+1):_="",E=function(o){var a=new XMLHttpRequest;return a.open("GET",o,!1),a.send(null),a.responseText},O&&(F=function(o){var a=new XMLHttpRequest;return a.open("GET",o,!1),a.responseType="arraybuffer",a.send(null),new Uint8Array(a.response)}),P=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 M=i.print||console.log.bind(console),N=i.printErr||console.error.bind(console);Object.assign(i,y),y=null,i.arguments&&i.arguments,i.thisProgram&&(h=i.thisProgram),i.quit&&(m=i.quit);var H;i.wasmBinary&&(H=i.wasmBinary);var U=i.noExitRuntime||!0;typeof WebAssembly!="object"&&je("no native wasm support detected");var z,Z=!1;function he(o,a){o||je(a)}var ie,Ee,Ue,D,Y;function se(){var o=z.buffer;i.HEAP8=ie=new Int8Array(o),i.HEAP16=Ue=new Int16Array(o),i.HEAP32=D=new Int32Array(o),i.HEAPU8=Ee=new Uint8Array(o),i.HEAPU16=new Uint16Array(o),i.HEAPU32=Y=new Uint32Array(o),i.HEAPF32=new Float32Array(o),i.HEAPF64=new Float64Array(o)}var yn=[],gn=[],wn=[],ds=0;function hs(){return U||ds>0}function ps(){if(i.preRun)for(typeof i.preRun=="function"&&(i.preRun=[i.preRun]);i.preRun.length;)gs(i.preRun.shift());or(yn)}function ms(){!i.noFSInit&&!l.init.initialized&&l.init(),l.ignorePermissions=!1,ee.root=l.mount(ee,{},null),or(gn)}function ys(){if(i.postRun)for(typeof i.postRun=="function"&&(i.postRun=[i.postRun]);i.postRun.length;)vs(i.postRun.shift());or(wn)}function gs(o){yn.unshift(o)}function ws(o){gn.unshift(o)}function vs(o){wn.unshift(o)}var Pe=0,Qe=null;function Dd(o){return o}function nr(o){Pe++,i.monitorRunDependencies&&i.monitorRunDependencies(Pe)}function pt(o){if(Pe--,i.monitorRunDependencies&&i.monitorRunDependencies(Pe),Pe==0&&Qe){var a=Qe;Qe=null,a()}}function je(o){i.onAbort&&i.onAbort(o),o="Aborted("+o+")",N(o),Z=!0,o+=". Build with -sASSERTIONS for more info.";var a=new WebAssembly.RuntimeError(o);throw d(a),a}var bs="data:application/octet-stream;base64,";function vn(o){return o.startsWith(bs)}function mt(o){return o.startsWith("file://")}var ze;ze="libarchive.wasm",vn(ze)||(ze=A(ze));function bn(o){if(o==ze&&H)return new Uint8Array(H);if(F)return F(o);throw"both async and sync fetching of the wasm failed"}function Es(o){if(!H&&(v||O)){if(typeof fetch=="function"&&!mt(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 bn(o)});if(P)return new Promise(function(a,u){P(o,function(f){return a(new Uint8Array(f))},u)})}return Promise.resolve().then(function(){return bn(o)})}function En(o,a,u){return Es(o).then(function(f){return WebAssembly.instantiate(f,a)}).then(function(f){return f}).then(u,function(f){N("failed to asynchronously prepare wasm: "+f),je(f)})}function _s(o,a,u,f){return!o&&typeof WebAssembly.instantiateStreaming=="function"&&!vn(a)&&!mt(a)&&!x&&typeof fetch=="function"?fetch(a,{credentials:"same-origin"}).then(function(p){var g=WebAssembly.instantiateStreaming(p,u);return g.then(f,function(w){return N("wasm streaming compile failed: "+w),N("falling back to ArrayBuffer instantiation"),En(a,u,f)})}):En(a,u,f)}function Ss(){var o={a:ga};function a(f,p){var g=f.exports;return i.asm=g,z=i.asm.x,se(),i.asm.G,ws(i.asm.y),pt(),g}nr();function u(f){a(f.instance)}if(i.instantiateWasm)try{return i.instantiateWasm(o,a)}catch(f){N("Module.instantiateWasm callback failed with error: "+f),d(f)}return _s(H,ze,o,u).catch(d),{}}var j,ne;function Rs(o){this.name="ExitStatus",this.message="Program terminated with exit(".concat(o,")"),this.status=o}var or=function(o){for(;o.length>0;)o.shift()(i)},G={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 p=o[f];p==="."?o.splice(f,1):p===".."?(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=G.isAbs(o),u=o.substr(-1)==="/";return o=G.normalizeArray(o.split("/").filter(function(f){return!!f}),!a).join("/"),!o&&!a&&(o="."),o&&u&&(o+="/"),(a?"/":"")+o},dirname:function(o){var a=G.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=G.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 G.normalize(o.join("/"))},join2:function(o,a){return G.normalize(o+"/"+a)}},As=function(){if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return function(f){return crypto.getRandomValues(f)};if(x)try{var o=dr,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{}je("initRandomDevice")},_n=function(o){return(_n=As())(o)},Ae={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=G.isAbs(f)}return o=G.normalizeArray(o.split("/").filter(function(p){return!!p}),!a).join("/"),(a?"/":"")+o||"."},relative:function(o,a){o=Ae.resolve(o).substr(1),a=Ae.resolve(a).substr(1);function u(k){for(var B=0;B<k.length&&k[B]==="";B++);for(var K=k.length-1;K>=0&&k[K]==="";K--);return B>K?[]:k.slice(B,K-B+1)}for(var f=u(o.split("/")),p=u(a.split("/")),g=Math.min(f.length,p.length),w=g,b=0;b<g;b++)if(f[b]!==p[b]){w=b;break}for(var T=[],b=w;b<f.length;b++)T.push("..");return T=T.concat(p.slice(w)),T.join("/")}},Sn=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,He=function(o,a,u){for(var f=a+u,p=a;o[p]&&!(p>=f);)++p;if(p-a>16&&o.buffer&&Sn)return Sn.decode(o.subarray(a,p));for(var g="";a<p;){var w=o[a++];if(!(w&128)){g+=String.fromCharCode(w);continue}var b=o[a++]&63;if((w&224)==192){g+=String.fromCharCode((w&31)<<6|b);continue}var T=o[a++]&63;if((w&240)==224?w=(w&15)<<12|b<<6|T:w=(w&7)<<18|b<<12|T<<6|o[a++]&63,w<65536)g+=String.fromCharCode(w);else{var k=w-65536;g+=String.fromCharCode(55296|k>>10,56320|k&1023)}}return g},ir=[],yt=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},sr=function(o,a,u,f){if(!(f>0))return 0;for(var p=u,g=u+f-1,w=0;w<o.length;++w){var b=o.charCodeAt(w);if(b>=55296&&b<=57343){var T=o.charCodeAt(++w);b=65536+((b&1023)<<10)|T&1023}if(b<=127){if(u>=g)break;a[u++]=b}else if(b<=2047){if(u+1>=g)break;a[u++]=192|b>>6,a[u++]=128|b&63}else if(b<=65535){if(u+2>=g)break;a[u++]=224|b>>12,a[u++]=128|b>>6&63,a[u++]=128|b&63}else{if(u+3>=g)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-p};function ar(o,a,u){var f=yt(o)+1,p=new Array(f),g=sr(o,p,0,p.length);return p.length=g,p}var Os=function(){if(!ir.length){var o=null;if(x){var a=256,u=Buffer.alloc(a),f=0,p=process.stdin.fd;try{f=L.readSync(p,u,0,a,-1)}catch(g){if(g.toString().includes("EOF"))f=0;else throw g}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;ir=ar(o)}return ir.shift()},Le={ttys:[],init:function(){},shutdown:function(){},register:function(o,a){Le.ttys[o]={input:[],output:[],ops:a},l.registerDevice(o,Le.stream_ops)},stream_ops:{open:function(o){var a=Le.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,p){if(!o.tty||!o.tty.ops.get_char)throw new l.ErrnoError(60);for(var g=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&&g===0)throw new l.ErrnoError(6);if(b==null)break;g++,a[u+w]=b}return g&&(o.node.timestamp=Date.now()),g},write:function(o,a,u,f,p){if(!o.tty||!o.tty.ops.put_char)throw new l.ErrnoError(60);try{for(var g=0;g<f;g++)o.tty.ops.put_char(o.tty,a[u+g])}catch{throw new l.ErrnoError(29)}return f&&(o.node.timestamp=Date.now()),g}},default_tty_ops:{get_char:function(o){return Os()},put_char:function(o,a){a===null||a===10?(M(He(o.output,0)),o.output=[]):a!=0&&o.output.push(a)},fsync:function(o){o.output&&o.output.length>0&&(M(He(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?(N(He(o.output,0)),o.output=[]):a!=0&&o.output.push(a)},fsync:function(o){o.output&&o.output.length>0&&(N(He(o.output,0)),o.output=[])}}},Rn=function(o){je()},q={ops_table:null,mount:function(o){return q.createNode(null,"/",16895,0)},createNode:function(o,a,u,f){if(l.isBlkdev(u)||l.isFIFO(u))throw new l.ErrnoError(63);q.ops_table||(q.ops_table={dir:{node:{getattr:q.node_ops.getattr,setattr:q.node_ops.setattr,lookup:q.node_ops.lookup,mknod:q.node_ops.mknod,rename:q.node_ops.rename,unlink:q.node_ops.unlink,rmdir:q.node_ops.rmdir,readdir:q.node_ops.readdir,symlink:q.node_ops.symlink},stream:{llseek:q.stream_ops.llseek}},file:{node:{getattr:q.node_ops.getattr,setattr:q.node_ops.setattr},stream:{llseek:q.stream_ops.llseek,read:q.stream_ops.read,write:q.stream_ops.write,allocate:q.stream_ops.allocate,mmap:q.stream_ops.mmap,msync:q.stream_ops.msync}},link:{node:{getattr:q.node_ops.getattr,setattr:q.node_ops.setattr,readlink:q.node_ops.readlink},stream:{}},chrdev:{node:{getattr:q.node_ops.getattr,setattr:q.node_ops.setattr},stream:l.chrdev_stream_ops}});var p=l.createNode(o,a,u,f);return l.isDir(p.mode)?(p.node_ops=q.ops_table.dir.node,p.stream_ops=q.ops_table.dir.stream,p.contents={}):l.isFile(p.mode)?(p.node_ops=q.ops_table.file.node,p.stream_ops=q.ops_table.file.stream,p.usedBytes=0,p.contents=null):l.isLink(p.mode)?(p.node_ops=q.ops_table.link.node,p.stream_ops=q.ops_table.link.stream):l.isChrdev(p.mode)&&(p.node_ops=q.ops_table.chrdev.node,p.stream_ops=q.ops_table.chrdev.stream),p.timestamp=Date.now(),o&&(o.contents[a]=p,o.timestamp=p.timestamp),p},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 p=o.contents;o.contents=new Uint8Array(a),o.usedBytes>0&&o.contents.set(p.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&&q.resizeFileStorage(o,a.size)},lookup:function(o,a){throw l.genericErrors[44]},mknod:function(o,a,u,f){return q.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 p 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=q.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,p){var g=o.node.contents;if(p>=o.node.usedBytes)return 0;var w=Math.min(o.node.usedBytes-p,f);if(w>8&&g.subarray)a.set(g.subarray(p,p+w),u);else for(var b=0;b<w;b++)a[u+b]=g[p+b];return w},write:function(o,a,u,f,p,g){if(a.buffer===ie.buffer&&(g=!1),!f)return 0;var w=o.node;if(w.timestamp=Date.now(),a.subarray&&(!w.contents||w.contents.subarray)){if(g)return w.contents=a.subarray(u,u+f),w.usedBytes=f,f;if(w.usedBytes===0&&p===0)return w.contents=a.slice(u,u+f),w.usedBytes=f,f;if(p+f<=w.usedBytes)return w.contents.set(a.subarray(u,u+f),p),f}if(q.expandFileStorage(w,p+f),w.contents.subarray&&a.subarray)w.contents.set(a.subarray(u,u+f),p);else for(var b=0;b<f;b++)w.contents[p+b]=a[u+b];return w.usedBytes=Math.max(w.usedBytes,p+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){q.expandFileStorage(o.node,a+u),o.node.usedBytes=Math.max(o.node.usedBytes,a+u)},mmap:function(o,a,u,f,p){if(!l.isFile(o.node.mode))throw new l.ErrnoError(43);var g,w,b=o.node.contents;if(!(p&2)&&b.buffer===ie.buffer)w=!1,g=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,g=Rn(),!g)throw new l.ErrnoError(48);ie.set(b,g)}return{ptr:g,allocated:w}},msync:function(o,a,u,f,p){return q.stream_ops.write(o,a,0,f,u,!1),0}}},Ts=function(o,a,u,f){var p="al ".concat(o);P(o,function(g){he(g,'Loading data file "'.concat(o,'" failed (no arrayBuffer).')),a(new Uint8Array(g)),p&&pt()},function(g){if(u)u();else throw'Loading data file "'.concat(o,'" failed.')}),p&&nr()},xs=i.preloadPlugins||[];function ks(o,a,u,f){typeof Browser<"u"&&Browser.init();var p=!1;return xs.forEach(function(g){p||g.canHandle(a)&&(g.handle(o,a,u,f),p=!0)}),p}function Cs(o,a,u,f,p,g,w,b,T,k){var B=a?Ae.resolve(G.join2(o,a)):o;function K(I){function C($){k&&k(),b||l.createDataFile(o,a,$,f,p,T),g&&g(),pt()}ks(I,B,C,function(){w&&w(),pt()})||C(I)}nr(),typeof u=="string"?Ts(u,function(I){return K(I)},w):K(u)}function Ds(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 cr(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=Ae.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(K){return!!K}),p=l.root,g="/",w=0;w<f.length;w++){var b=w===f.length-1;if(b&&a.parent)break;if(p=l.lookupNode(p,f[w]),g=G.join2(g,f[w]),l.isMountpoint(p)&&(!b||b&&a.follow_mount)&&(p=p.mounted.root),!b||a.follow)for(var T=0;l.isLink(p.mode);){var k=l.readlink(g);g=Ae.resolve(G.dirname(g),k);var B=l.lookupPath(g,{recurse_count:a.recurse_count+1});if(p=B.node,T++>40)throw new l.ErrnoError(32)}}return{path:g,node:p}},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),p=l.nameTable[f];p;p=p.name_next){var g=p.name;if(p.parent.id===o.id&&g===a)return p}return l.lookup(o,a)},createNode:function(o,a,u,f){var p=new l.FSNode(o,a,u,f);return l.hashAddNode(p),p},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(g){return g.errno}var p=l.nodePermissions(o,"wx");if(p)return p;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&&N("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 p(w){return l.syncFSRequests--,a(w)}function g(w){if(w)return g.errored?void 0:(g.errored=!0,p(w));++f>=u.length&&p(null)}u.forEach(function(w){if(!w.type.syncfs)return g(null);w.type.syncfs(w,o,g)})},mount:function(o,a,u){var f=u==="/",p=!u,g;if(f&&l.root)throw new l.ErrnoError(10);if(!f&&!p){var w=l.lookupPath(u,{follow_mount:!1});if(u=w.path,g=w.node,l.isMountpoint(g))throw new l.ErrnoError(10);if(!l.isDir(g.mode))throw new l.ErrnoError(54)}var b={type:o,opts:a,mountpoint:u,mounts:[]},T=o.mount(b);return T.mount=b,b.root=T,f?l.root=T:g&&(g.mounted=b,g.mount&&g.mount.mounts.push(b)),T},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,p=l.getMounts(f);Object.keys(l.nameTable).forEach(function(w){for(var b=l.nameTable[w];b;){var T=b.name_next;p.includes(b.mount)&&l.destroyNode(b),b=T}}),u.mounted=null;var g=u.mount.mounts.indexOf(f);u.mount.mounts.splice(g,1)},lookup:function(o,a){return o.node_ops.lookup(o,a)},mknod:function(o,a,u){var f=l.lookupPath(o,{parent:!0}),p=f.node,g=G.basename(o);if(!g||g==="."||g==="..")throw new l.ErrnoError(28);var w=l.mayCreate(p,g);if(w)throw new l.ErrnoError(w);if(!p.node_ops.mknod)throw new l.ErrnoError(63);return p.node_ops.mknod(p,g,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="",p=0;p<u.length;++p)if(u[p]){f+="/"+u[p];try{l.mkdir(f,a)}catch(g){if(g.errno!=20)throw g}}},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(!Ae.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 p=G.basename(a),g=l.mayCreate(f,p);if(g)throw new l.ErrnoError(g);if(!f.node_ops.symlink)throw new l.ErrnoError(63);return f.node_ops.symlink(f,p,o)},rename:function(o,a){var u=G.dirname(o),f=G.dirname(a),p=G.basename(o),g=G.basename(a),w,b,T;if(w=l.lookupPath(o,{parent:!0}),b=w.node,w=l.lookupPath(a,{parent:!0}),T=w.node,!b||!T)throw new l.ErrnoError(44);if(b.mount!==T.mount)throw new l.ErrnoError(75);var k=l.lookupNode(b,p),B=Ae.relative(o,f);if(B.charAt(0)!==".")throw new l.ErrnoError(28);if(B=Ae.relative(a,u),B.charAt(0)!==".")throw new l.ErrnoError(55);var K;try{K=l.lookupNode(T,g)}catch{}if(k!==K){var I=l.isDir(k.mode),C=l.mayDelete(b,p,I);if(C)throw new l.ErrnoError(C);if(C=K?l.mayDelete(T,g,I):l.mayCreate(T,g),C)throw new l.ErrnoError(C);if(!b.node_ops.rename)throw new l.ErrnoError(63);if(l.isMountpoint(k)||K&&l.isMountpoint(K))throw new l.ErrnoError(10);if(T!==b&&(C=l.nodePermissions(b,"w"),C))throw new l.ErrnoError(C);l.hashRemoveNode(k);try{b.node_ops.rename(k,T,g)}catch($){throw $}finally{l.hashAddNode(k)}}},rmdir:function(o){var a=l.lookupPath(o,{parent:!0}),u=a.node,f=G.basename(o),p=l.lookupNode(u,f),g=l.mayDelete(u,f,!0);if(g)throw new l.ErrnoError(g);if(!u.node_ops.rmdir)throw new l.ErrnoError(63);if(l.isMountpoint(p))throw new l.ErrnoError(10);u.node_ops.rmdir(u,f),l.destroyNode(p)},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=G.basename(o),p=l.lookupNode(u,f),g=l.mayDelete(u,f,!1);if(g)throw new l.ErrnoError(g);if(!u.node_ops.unlink)throw new l.ErrnoError(63);if(l.isMountpoint(p))throw new l.ErrnoError(10);u.node_ops.unlink(u,f),l.destroyNode(p)},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 Ae.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 p=l.lookupPath(o,{follow:!u});f=p.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 p;if(typeof o=="string"){var g=l.lookupPath(o,{follow:!f});p=g.node}else p=o;if(!p.node_ops.setattr)throw new l.ErrnoError(63);p.node_ops.setattr(p,{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 p=l.nodePermissions(u,"w");if(p)throw new l.ErrnoError(p);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}),p=f.node;p.node_ops.setattr(p,{timestamp:Math.max(a,u)})},open:function(o,a,u){if(o==="")throw new l.ErrnoError(44);a=typeof a=="string"?Ds(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=G.normalize(o);try{var p=l.lookupPath(o,{follow:!(a&131072)});f=p.node}catch{}}var g=!1;if(a&64)if(f){if(a&128)throw new l.ErrnoError(20)}else f=l.mknod(o,u,0),g=!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(!g){var w=l.mayOpen(f,a);if(w)throw new l.ErrnoError(w)}a&512&&!g&&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,p){if(f<0||p<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 g=typeof p<"u";if(!g)p=o.position;else if(!o.seekable)throw new l.ErrnoError(70);var w=o.stream_ops.read(o,a,u,f,p);return g||(o.position+=w),w},write:function(o,a,u,f,p,g){if(f<0||p<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 p<"u";if(!w)p=o.position;else if(!o.seekable)throw new l.ErrnoError(70);var b=o.stream_ops.write(o,a,u,f,p,g);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,p){if(f&2&&!(p&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,p)},msync:function(o,a,u,f,p){return o.stream_ops.msync?o.stream_ops.msync(o,a,u,f,p):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),p=l.stat(o),g=p.size,w=new Uint8Array(g);return l.read(f,w,0,g,0),a.encoding==="utf8"?u=He(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 p=new Uint8Array(yt(a)+1),g=sr(a,p,0,p.length);l.write(f,p,0,g,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,p,g,w,b){return w}}),l.mkdev("/dev/null",l.makedev(1,3)),Le.register(l.makedev(5,0),Le.default_tty_ops),Le.register(l.makedev(6,0),Le.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=_n(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 p=+f,g=l.getStreamChecked(p),w={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:function(){return g.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(q,{},"/"),l.createDefaultDirectories(),l.createDefaultDevices(),l.createSpecialDirectories(),l.filesystems={MEMFS:q}},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=G.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(p){f.error=p.errno}return f},createPath:function(o,a,u,f){o=typeof o=="string"?o:l.getPath(o);for(var p=a.split("/").reverse();p.length;){var g=p.pop();if(g){var w=G.join2(o,g);try{l.mkdir(w)}catch{}o=w}}return w},createFile:function(o,a,u,f,p){var g=G.join2(typeof o=="string"?o:l.getPath(o),a),w=cr(f,p);return l.create(g,w)},createDataFile:function(o,a,u,f,p,g){var w=a;o&&(o=typeof o=="string"?o:l.getPath(o),w=a?G.join2(o,a):o);var b=cr(f,p),T=l.create(w,b);if(u){if(typeof u=="string"){for(var k=new Array(u.length),B=0,K=u.length;B<K;++B)k[B]=u.charCodeAt(B);u=k}l.chmod(T,b|146);var I=l.open(T,577);l.write(I,u,0,u.length,0,g),l.close(I),l.chmod(T,b)}return T},createDevice:function(o,a,u,f){var p=G.join2(typeof o=="string"?o:l.getPath(o),a),g=cr(!!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,T,k,B,K){for(var I=0,C=0;C<B;C++){var $;try{$=u()}catch{throw new l.ErrnoError(29)}if($===void 0&&I===0)throw new l.ErrnoError(6);if($==null)break;I++,T[k+C]=$}return I&&(b.node.timestamp=Date.now()),I},write:function(b,T,k,B,K){for(var I=0;I<B;I++)try{f(T[k+I])}catch{throw new l.ErrnoError(29)}return B&&(b.node.timestamp=Date.now()),I}}),l.mkdev(p,g,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(E)try{o.contents=ar(E(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,p){function g(){this.lengthKnown=!1,this.chunks=[]}if(g.prototype.get=function(C){if(!(C>this.length-1||C<0)){var $=C%this.chunkSize,Q=C/this.chunkSize|0;return this.getter(Q)[$]}},g.prototype.setDataGetter=function(C){this.getter=C},g.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 $=Number(C.getResponseHeader("Content-length")),Q,Oe=(Q=C.getResponseHeader("Accept-Ranges"))&&Q==="bytes",pe=(Q=C.getResponseHeader("Content-Encoding"))&&Q==="gzip",me=1024*1024;Oe||(me=$);var ye=function(_e,qe){if(_e>qe)throw new Error("invalid range ("+_e+", "+qe+") or no bytes requested!");if(qe>$-1)throw new Error("only "+$+" bytes available! programmer error!");var oe=new XMLHttpRequest;if(oe.open("GET",u,!1),$!==me&&oe.setRequestHeader("Range","bytes="+_e+"-"+qe),oe.responseType="arraybuffer",oe.overrideMimeType&&oe.overrideMimeType("text/plain; charset=x-user-defined"),oe.send(null),!(oe.status>=200&&oe.status<300||oe.status===304))throw new Error("Couldn't load "+u+". Status: "+oe.status);return oe.response!==void 0?new Uint8Array(oe.response||[]):ar(oe.responseText||"")},Ze=this;Ze.setDataGetter(function(_e){var qe=_e*me,oe=(_e+1)*me-1;if(oe=Math.min(oe,$-1),typeof Ze.chunks[_e]>"u"&&(Ze.chunks[_e]=ye(qe,oe)),typeof Ze.chunks[_e]>"u")throw new Error("doXHR failed!");return Ze.chunks[_e]}),(pe||!$)&&(me=$=1,$=this.getter(0).length,me=$,M("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=$,this._chunkSize=me,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 g;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 T=l.createFile(o,a,b,f,p);b.contents?T.contents=b.contents:b.url&&(T.contents=null,T.url=b.url),Object.defineProperties(T,{usedBytes:{get:function(){return this.contents.length}}});var k={},B=Object.keys(T.stream_ops);B.forEach(function(I){var C=T.stream_ops[I];k[I]=function(){return l.forceLoadFile(T),C.apply(null,arguments)}});function K(I,C,$,Q,Oe){var pe=I.node.contents;if(Oe>=pe.length)return 0;var me=Math.min(pe.length-Oe,Q);if(pe.slice)for(var ye=0;ye<me;ye++)C[$+ye]=pe[Oe+ye];else for(var ye=0;ye<me;ye++)C[$+ye]=pe.get(Oe+ye);return me}return k.read=function(I,C,$,Q,Oe){return l.forceLoadFile(T),K(I,C,$,Q,Oe)},k.mmap=function(I,C,$,Q,Oe){l.forceLoadFile(T);var pe=Rn();if(!pe)throw new l.ErrnoError(48);return K(I,ie,pe,C,$),{ptr:pe,allocated:!0}},T.stream_ops=k,T}},An=function(o,a){return o?He(Ee,o,a):""},X={DEFAULT_POLLMASK:5,calculateAt:function(o,a,u){if(G.isAbs(a))return a;var f;if(o===-100)f=l.cwd();else{var p=X.getStreamFromFD(o);f=p.path}if(a.length==0){if(!u)throw new l.ErrnoError(44);return f}return G.join2(f,a)},doStat:function(o,a,u){try{var f=o(a)}catch(b){if(b&&b.node&&G.normalize(a)!==G.normalize(l.getPath(b.node)))return-54;throw b}D[u>>2]=f.dev,D[u+4>>2]=f.mode,Y[u+8>>2]=f.nlink,D[u+12>>2]=f.uid,D[u+16>>2]=f.gid,D[u+20>>2]=f.rdev,ne=[f.size>>>0,(j=f.size,+Math.abs(j)>=1?j>0?+Math.floor(j/4294967296)>>>0:~~+Math.ceil((j-+(~~j>>>0))/4294967296)>>>0:0)],D[u+24>>2]=ne[0],D[u+28>>2]=ne[1],D[u+32>>2]=4096,D[u+36>>2]=f.blocks;var p=f.atime.getTime(),g=f.mtime.getTime(),w=f.ctime.getTime();return ne=[Math.floor(p/1e3)>>>0,(j=Math.floor(p/1e3),+Math.abs(j)>=1?j>0?+Math.floor(j/4294967296)>>>0:~~+Math.ceil((j-+(~~j>>>0))/4294967296)>>>0:0)],D[u+40>>2]=ne[0],D[u+44>>2]=ne[1],Y[u+48>>2]=p%1e3*1e3,ne=[Math.floor(g/1e3)>>>0,(j=Math.floor(g/1e3),+Math.abs(j)>=1?j>0?+Math.floor(j/4294967296)>>>0:~~+Math.ceil((j-+(~~j>>>0))/4294967296)>>>0:0)],D[u+56>>2]=ne[0],D[u+60>>2]=ne[1],Y[u+64>>2]=g%1e3*1e3,ne=[Math.floor(w/1e3)>>>0,(j=Math.floor(w/1e3),+Math.abs(j)>=1?j>0?+Math.floor(j/4294967296)>>>0:~~+Math.ceil((j-+(~~j>>>0))/4294967296)>>>0:0)],D[u+72>>2]=ne[0],D[u+76>>2]=ne[1],Y[u+80>>2]=w%1e3*1e3,ne=[f.ino>>>0,(j=f.ino,+Math.abs(j)>=1?j>0?+Math.floor(j/4294967296)>>>0:~~+Math.ceil((j-+(~~j>>>0))/4294967296)>>>0:0)],D[u+88>>2]=ne[0],D[u+92>>2]=ne[1],0},doMsync:function(o,a,u,f,p){if(!l.isFile(a.node.mode))throw new l.ErrnoError(43);if(f&2)return 0;var g=Ee.slice(o,o+u);l.msync(a,g,p,u,f)},varargs:void 0,get:function(){X.varargs+=4;var o=D[X.varargs-4>>2];return o},getStr:function(o){var a=An(o);return a},getStreamFromFD:function(o){var a=l.getStreamChecked(o);return a}};function Ps(o){try{var a=X.getStreamFromFD(o);return l.createStream(a).fd}catch(u){if(typeof l>"u"||u.name!=="ErrnoError")throw u;return-u.errno}}var Ls=function(o){return D[Pn()>>2]=o,o};function Fs(o,a,u){X.varargs=u;try{var f=X.getStreamFromFD(o);switch(a){case 0:{var p=X.get();if(p<0)return-28;var g;return g=l.createStream(f,p),g.fd}case 1:case 2:return 0;case 3:return f.flags;case 4:{var p=X.get();return f.flags|=p,0}case 5:{var p=X.get(),w=0;return Ue[p+w>>1]=2,0}case 6:case 7:return 0;case 16:case 8:return-28;case 9:return Ls(28),-1;default:return-28}}catch(b){if(typeof l>"u"||b.name!=="ErrnoError")throw b;return-b.errno}}function Ns(o,a){try{var u=X.getStreamFromFD(o);return X.doStat(l.stat,u.path,a)}catch(f){if(typeof l>"u"||f.name!=="ErrnoError")throw f;return-f.errno}}function Bs(o,a){try{return o=X.getStr(o),X.doStat(l.lstat,o,a)}catch(u){if(typeof l>"u"||u.name!=="ErrnoError")throw u;return-u.errno}}function Is(o,a,u,f){try{a=X.getStr(a);var p=f&256,g=f&4096;return f=f&-6401,a=X.calculateAt(o,a,g),X.doStat(p?l.lstat:l.stat,a,u)}catch(w){if(typeof l>"u"||w.name!=="ErrnoError")throw w;return-w.errno}}function Ms(o,a,u,f){X.varargs=f;try{a=X.getStr(a),a=X.calculateAt(o,a);var p=f?X.get():0;return l.open(a,u,p).fd}catch(g){if(typeof l>"u"||g.name!=="ErrnoError")throw g;return-g.errno}}var ee={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(ee.BUCKET_BUFFER_SIZE),offset:0,roffset:0});var a=ee.nextname(),u=ee.nextname(),f=l.createNode(ee.root,a,4096,0),p=l.createNode(ee.root,u,4096,0);f.pipe=o,p.pipe=o;var g=l.createStream({path:a,node:f,flags:0,seekable:!1,stream_ops:ee.stream_ops});f.stream=g;var w=l.createStream({path:u,node:p,flags:1,seekable:!1,stream_ops:ee.stream_ops});return p.stream=w,{readable_fd:g.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,p){for(var g=o.node.pipe,w=0,b=0;b<g.buckets.length;b++){var T=g.buckets[b];w+=T.offset-T.roffset}he(a instanceof ArrayBuffer||ArrayBuffer.isView(a));var k=a.subarray(u,u+f);if(f<=0)return 0;if(w==0)throw new l.ErrnoError(6);for(var B=Math.min(w,f),K=B,I=0,b=0;b<g.buckets.length;b++){var C=g.buckets[b],$=C.offset-C.roffset;if(B<=$){var Q=C.buffer.subarray(C.roffset,C.offset);B<$?(Q=Q.subarray(0,B),C.roffset+=B):I++,k.set(Q);break}else{var Q=C.buffer.subarray(C.roffset,C.offset);k.set(Q),k=k.subarray(Q.byteLength),B-=Q.byteLength,I++}}return I&&I==g.buckets.length&&(I--,g.buckets[I].offset=0,g.buckets[I].roffset=0),g.buckets.splice(0,I),K},write:function(o,a,u,f,p){var g=o.node.pipe;he(a instanceof ArrayBuffer||ArrayBuffer.isView(a));var w=a.subarray(u,u+f),b=w.byteLength;if(b<=0)return 0;var T=null;g.buckets.length==0?(T={buffer:new Uint8Array(ee.BUCKET_BUFFER_SIZE),offset:0,roffset:0},g.buckets.push(T)):T=g.buckets[g.buckets.length-1],he(T.offset<=ee.BUCKET_BUFFER_SIZE);var k=ee.BUCKET_BUFFER_SIZE-T.offset;if(k>=b)return T.buffer.set(w,T.offset),T.offset+=b,b;k>0&&(T.buffer.set(w.subarray(0,k),T.offset),T.offset+=k,w=w.subarray(k,w.byteLength));for(var B=w.byteLength/ee.BUCKET_BUFFER_SIZE|0,K=w.byteLength%ee.BUCKET_BUFFER_SIZE,I=0;I<B;I++){var C={buffer:new Uint8Array(ee.BUCKET_BUFFER_SIZE),offset:ee.BUCKET_BUFFER_SIZE,roffset:0};g.buckets.push(C),C.buffer.set(w.subarray(0,ee.BUCKET_BUFFER_SIZE)),w=w.subarray(ee.BUCKET_BUFFER_SIZE,w.byteLength)}if(K>0){var C={buffer:new Uint8Array(ee.BUCKET_BUFFER_SIZE),offset:w.byteLength,roffset:0};g.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 ee.nextname.current||(ee.nextname.current=0),"pipe["+ee.nextname.current+++"]"}};function $s(o){try{if(o==0)throw new l.ErrnoError(21);var a=ee.createPipe();return D[o>>2]=a.readable_fd,D[o+4>>2]=a.writable_fd,0}catch(u){if(typeof l>"u"||u.name!=="ErrnoError")throw u;return-u.errno}}function Us(o,a,u){try{for(var f=0,p=0;p<a;p++){var g=o+8*p,w=D[g>>2],b=Ue[g+4>>1],T=32,k=l.getStream(w);k&&(T=X.DEFAULT_POLLMASK,k.stream_ops.poll&&(T=k.stream_ops.poll(k,-1))),T&=b|8|16,T&&f++,Ue[g+6>>1]=T}return f}catch(B){if(typeof l>"u"||B.name!=="ErrnoError")throw B;return-B.errno}}function js(o,a){try{return o=X.getStr(o),X.doStat(l.stat,o,a)}catch(u){if(typeof l>"u"||u.name!=="ErrnoError")throw u;return-u.errno}}var zs=function(o){return o%4===0&&(o%100!==0||o%400===0)},Hs=[0,31,60,91,121,152,182,213,244,274,305,335],qs=[0,31,59,90,120,151,181,212,243,273,304,334],On=function(o){var a=zs(o.getFullYear()),u=a?Hs:qs,f=u[o.getMonth()]+o.getDate()-1;return f};function Tn(o,a){return a+2097152>>>0<4194305-!!o?(o>>>0)+a*4294967296:NaN}function Vs(o,a,u){var f=Tn(o,a),p=new Date(f*1e3);D[u>>2]=p.getSeconds(),D[u+4>>2]=p.getMinutes(),D[u+8>>2]=p.getHours(),D[u+12>>2]=p.getDate(),D[u+16>>2]=p.getMonth(),D[u+20>>2]=p.getFullYear()-1900,D[u+24>>2]=p.getDay();var g=On(p)|0;D[u+28>>2]=g,D[u+36>>2]=-(p.getTimezoneOffset()*60);var w=new Date(p.getFullYear(),0,1),b=new Date(p.getFullYear(),6,1).getTimezoneOffset(),T=w.getTimezoneOffset(),k=(b!=T&&p.getTimezoneOffset()==Math.min(T,b))|0;D[u+32>>2]=k}var Ws=function(o){var a=function(){var u=new Date(D[o+20>>2]+1900,D[o+16>>2],D[o+12>>2],D[o+8>>2],D[o+4>>2],D[o>>2],0),f=D[o+32>>2],p=u.getTimezoneOffset(),g=new Date(u.getFullYear(),0,1),w=new Date(u.getFullYear(),6,1).getTimezoneOffset(),b=g.getTimezoneOffset(),T=Math.min(b,w);if(f<0)D[o+32>>2]=+(w!=b&&T==p);else if(f>0!=(T==p)){var k=Math.max(b,w),B=f>0?T:k;u.setTime(u.getTime()+(B-p)*6e4)}D[o+24>>2]=u.getDay();var K=On(u)|0;return D[o+28>>2]=K,D[o>>2]=u.getSeconds(),D[o+4>>2]=u.getMinutes(),D[o+8>>2]=u.getHours(),D[o+12>>2]=u.getDate(),D[o+16>>2]=u.getMonth(),D[o+20>>2]=u.getYear(),u.getTime()/1e3}();return lr((j=a,+Math.abs(j)>=1?j>0?+Math.floor(j/4294967296)>>>0:~~+Math.ceil((j-+(~~j>>>0))/4294967296)>>>0:0)),a>>>0},Js=function(o){var a=function(){var u=Date.UTC(D[o+20>>2]+1900,D[o+16>>2],D[o+12>>2],D[o+8>>2],D[o+4>>2],D[o>>2],0),f=new Date(u);D[o+24>>2]=f.getUTCDay();var p=Date.UTC(f.getUTCFullYear(),0,1,0,0,0,0),g=(f.getTime()-p)/(1e3*60*60*24)|0;return D[o+28>>2]=g,f.getTime()/1e3}();return lr((j=a,+Math.abs(j)>=1?j>0?+Math.floor(j/4294967296)>>>0:~~+Math.ceil((j-+(~~j>>>0))/4294967296)>>>0:0)),a>>>0},xn=function(o,a,u){return sr(o,Ee,a,u)},kn=function(o){var a=yt(o)+1,u=Ln(a);return u&&xn(o,u,a),u},Ks=function(o,a,u){var f=new Date().getFullYear(),p=new Date(f,0,1),g=new Date(f,6,1),w=p.getTimezoneOffset(),b=g.getTimezoneOffset(),T=Math.max(w,b);Y[o>>2]=T*60,D[a>>2]=+(w!=b);function k($){var Q=$.toTimeString().match(/\(([A-Za-z ]+)\)$/);return Q?Q[1]:"GMT"}var B=k(p),K=k(g),I=kn(B),C=kn(K);b<w?(Y[u>>2]=I,Y[u+4>>2]=C):(Y[u>>2]=C,Y[u+4>>2]=I)},Gs=function(){je("")},Qs=function(o,a,u){return Ee.copyWithin(o,a,a+u)},Xs=function(){return 2147483648},Zs=function(o){var a=z.buffer,u=o-a.byteLength+65535>>>16;try{return z.grow(u),se(),1}catch{}},Ys=function(o){var a=Ee.length;o>>>=0;var u=Xs();if(o>u)return!1;for(var f=function(T,k){return T+(k-T%k)%k},p=1;p<=4;p*=2){var g=a*(1+.2/p);g=Math.min(g,o+100663296);var w=Math.min(u,f(Math.max(o,g),65536)),b=Zs(w);if(b)return!0}return!1},ur={},ea=function(){return h||"./this.program"},Xe=function(){if(!Xe.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,_:ea()};for(var u in ur)ur[u]===void 0?delete a[u]:a[u]=ur[u];var f=[];for(var u in a)f.push("".concat(u,"=").concat(a[u]));Xe.strings=f}return Xe.strings},ta=function(o,a){for(var u=0;u<o.length;++u)ie[a++>>0]=o.charCodeAt(u);ie[a>>0]=0},ra=function(o,a){var u=0;return Xe().forEach(function(f,p){var g=a+u;Y[o+p*4>>2]=g,ta(f,g),u+=f.length+1}),0},na=function(o,a){var u=Xe();Y[o>>2]=u.length;var f=0;return u.forEach(function(p){f+=p.length+1}),Y[a>>2]=f,0},oa=function(o){hs()||(i.onExit&&i.onExit(o),Z=!0),m(o,new Rs(o))},ia=function(o,a){oa(o)},sa=ia;function aa(o){try{var a=X.getStreamFromFD(o);return l.close(a),0}catch(u){if(typeof l>"u"||u.name!=="ErrnoError")throw u;return u.errno}}var ca=function(o,a,u,f){for(var p=0,g=0;g<u;g++){var w=Y[a>>2],b=Y[a+4>>2];a+=8;var T=l.read(o,ie,w,b,f);if(T<0)return-1;if(p+=T,T<b)break}return p};function ua(o,a,u,f){try{var p=X.getStreamFromFD(o),g=ca(p,a,u);return Y[f>>2]=g,0}catch(w){if(typeof l>"u"||w.name!=="ErrnoError")throw w;return w.errno}}function la(o,a,u,f,p){var g=Tn(a,u);try{if(isNaN(g))return 61;var w=X.getStreamFromFD(o);return l.llseek(w,g,f),ne=[w.position>>>0,(j=w.position,+Math.abs(j)>=1?j>0?+Math.floor(j/4294967296)>>>0:~~+Math.ceil((j-+(~~j>>>0))/4294967296)>>>0:0)],D[p>>2]=ne[0],D[p+4>>2]=ne[1],w.getdents&&g===0&&f===0&&(w.getdents=null),0}catch(b){if(typeof l>"u"||b.name!=="ErrnoError")throw b;return b.errno}}var fa=function(o,a,u,f){for(var p=0,g=0;g<u;g++){var w=Y[a>>2],b=Y[a+4>>2];a+=8;var T=l.write(o,ie,w,b,f);if(T<0)return-1;p+=T}return p};function da(o,a,u,f){try{var p=X.getStreamFromFD(o),g=fa(p,a,u);return Y[f>>2]=g,0}catch(w){if(typeof l>"u"||w.name!=="ErrnoError")throw w;return w.errno}}function Cn(o){var a=i["_"+o];return a}var ha=function(o,a){ie.set(o,a)},pa=function(o){var a=yt(o)+1,u=fr(a);return xn(o,u,a),u},ma=function(o,a,u,f,p){var g={string:function($){var Q=0;return $!=null&&$!==0&&(Q=pa($)),Q},array:function($){var Q=fr($.length);return ha($,Q),Q}};function w($){return a==="string"?An($):a==="boolean"?!!$:$}var b=Cn(o),T=[],k=0;if(f)for(var B=0;B<f.length;B++){var K=g[u[B]];K?(k===0&&(k=Fn()),T[B]=K(f[B])):T[B]=f[B]}var I=b.apply(null,T);function C($){return k!==0&&Nn(k),w($)}return I=C(I),I},ya=function(o,a,u,f){var p=!u||u.every(function(w){return w==="number"||w==="boolean"}),g=a!=="string";return g&&p&&!f?Cn(o):function(){return ma(o,a,u,arguments)}},Dn=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},gt=365,wt=146;Object.defineProperties(Dn.prototype,{read:{get:function(){return(this.mode>)===gt},set:function(o){o?this.mode|=gt:this.mode&=~gt}},write:{get:function(){return(this.mode&wt)===wt},set:function(o){o?this.mode|=wt:this.mode&=~wt}},isFolder:{get:function(){return l.isDir(this.mode)}},isDevice:{get:function(){return l.isChrdev(this.mode)}}}),l.FSNode=Dn,l.createPreloadedFile=Cs,l.staticInit();var ga={i:Ps,a:Fs,v:Ns,s:Bs,t:Is,w:Ms,r:$s,q:Us,u:js,k:Vs,l:Ws,m:Js,p:Ks,d:Gs,h:Qs,o:Ys,f:ra,g:na,e:sa,c:aa,j:ua,n:la,b:da};Ss(),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 Pn=function(){return(Pn=i.asm.M).apply(null,arguments)},Ln=i._malloc=function(){return(Ln=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 lr=function(){return(lr=i.asm.W).apply(null,arguments)},Fn=function(){return(Fn=i.asm.X).apply(null,arguments)},Nn=function(){return(Nn=i.asm.Y).apply(null,arguments)},fr=function(){return(fr=i.asm.Z).apply(null,arguments)};i.cwrap=ya;var vt;Qe=function o(){vt||Bn(),vt||(Qe=o)};function Bn(){if(Pe>0||(ps(),Pe>0))return;function o(){vt||(vt=!0,i.calledRun=!0,!Z&&(ms(),c(i),i.onRuntimeInitialized&&i.onRuntimeInitialized(),ys()))}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 Bn(),s.ready}}();e.exports=r})(Io);var Mo=Io.exports,$t={},lt={};Object.defineProperty(lt,"__esModule",{value:!0});lt.wrapLibarchiveWasm=void 0;function Sa(e){var t=function(n,s){return function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];var y=n.apply(void 0,c);if(s(y))throw new Error(this.error_string(c[0]));return y}},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"])}}lt.wrapLibarchiveWasm=Sa;var Ra=ge&&ge.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($t,"__esModule",{value:!0});$t.libarchiveWasm=void 0;var Aa=Ra(Mo),Oa=lt;function Ta(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new Promise(function(r){Aa.default.apply(void 0,e).then(function(n){r((0,Oa.wrapLibarchiveWasm)(n))})})}$t.libarchiveWasm=Ta;var Ut={},jt={};Object.defineProperty(jt,"__esModule",{value:!0});jt.ArchiveReaderEntry=void 0;var xa=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}();jt.ArchiveReaderEntry=xa;var ka=ge&&ge.__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(h){return function(m){return y([h,m])}}function y(h){if(n)throw new TypeError("Generator is already executing.");for(;c&&(c=0,h[0]&&(r=0)),r;)try{if(n=1,s&&(i=h[0]&2?s.return:h[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,h[1])).done)return i;switch(s=0,i&&(h=[h[0]&2,i.value]),h[0]){case 0:case 1:i=h;break;case 4:return r.label++,{value:h[1],done:!1};case 5:r.label++,s=h[1],h=[0];continue;case 7:h=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!i||h[1]>i[0]&&h[1]<i[3])){r.label=h[1];break}if(h[0]===6&&r.label<i[1]){r.label=i[1],i=h;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(h);break}i[2]&&r.ops.pop(),r.trys.pop();continue}h=t.call(e,r)}catch(m){h=[6,m],s=0}finally{n=i=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},Se;Object.defineProperty(Ut,"__esModule",{value:!0});Ut.ArchiveReader=void 0;var Ca=jt;Ut.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 Ca.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 ka(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=(Se={},Se["".concat(61440)]="Mount",Se["".concat(32768)]="File",Se["".concat(40960)]="SymbolicLink",Se["".concat(49152)]="Socket",Se["".concat(8192)]="CharacterDevice",Se["".concat(24576)]="BlockDevice",Se["".concat(16384)]="Directory",Se["".concat(4096)]="NamedPipe",Se),e}();(function(e){var t=ge&&ge.__createBinding||(Object.create?function(i,c,d,y){y===void 0&&(y=d);var h=Object.getOwnPropertyDescriptor(c,d);(!h||("get"in h?!c.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return c[d]}}),Object.defineProperty(i,y,h)}:function(i,c,d,y){y===void 0&&(y=d),i[y]=c[d]}),r=ge&&ge.__exportStar||function(i,c){for(var d in i)d!=="default"&&!Object.prototype.hasOwnProperty.call(c,d)&&t(c,i,d)},n=ge&&ge.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.libarchive=void 0;var s=n(Mo);e.libarchive=s.default,r($t,e),r(lt,e),r(Ut,e)})(ba);const ot=/^[a-z0-9]+(-[a-z0-9]+)*$/,zt=(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(),y=s.pop(),h={provider:s.length>0?s[0]:n,prefix:y,name:d};return t&&!Rt(h)?null:h}const i=s[0],c=i.split("-");if(c.length>1){const d={provider:n,prefix:c.shift(),name:c.join("-")};return t&&!Rt(d)?null:d}if(r&&n===""){const d={provider:n,prefix:"",name:i};return t&&!Rt(d,r)?null:d}return null},Rt=(e,t)=>e?!!((e.provider===""||e.provider.match(ot))&&(t&&e.prefix===""||e.prefix.match(ot))&&e.name.match(ot)):!1,$o=Object.freeze({left:0,top:0,width:16,height:16}),Pt=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Ht=Object.freeze({...$o,...Pt}),Ar=Object.freeze({...Ht,body:"",hidden:!1});function Da(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=Da(e,t);for(const n in Ar)n in Pt?n in e&&!(n in r)&&(r[n]=Pt[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function Pa(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,y=d&&i(d);y&&(s[c]=[d].concat(y))}return s[c]}return Object.keys(r).concat(Object.keys(n)).forEach(i),s}function La(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 Uo(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=Pa(e);for(const s in n){const i=n[s];i&&(t(s,La(e,s,i)),r.push(s))}return r}const Fa={provider:"",aliases:{},not_found:{},...$o};function hr(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function jo(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!hr(e,Fa))return null;const r=t.icons;for(const s in r){const i=r[s];if(!s.match(ot)||typeof i.body!="string"||!hr(i,Ar))return null}const n=t.aliases||Object.create(null);for(const s in n){const i=n[s],c=i.parent;if(!s.match(ot)||typeof c!="string"||!r[c]&&!n[c]||!hr(i,Ar))return null}return t}const Mn=Object.create(null);function Na(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Ie(e,t){const r=Mn[e]||(Mn[e]=Object.create(null));return r[t]||(r[t]=Na(e,t))}function Qr(e,t){return jo(t)?Uo(t,(r,n)=>{n?e.icons[r]=n:e.missing.add(r)}):[]}function Ba(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}let st=!1;function zo(e){return typeof e=="boolean"&&(st=e),st}function Ia(e){const t=typeof e=="string"?zt(e,!0,st):e;if(t){const r=Ie(t.provider,t.prefix),n=t.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function Ma(e,t){const r=zt(e,!0,st);if(!r)return!1;const n=Ie(r.provider,r.prefix);return Ba(n,r.name,t)}function $a(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),st&&!t&&!e.prefix){let s=!1;return jo(e)&&(e.prefix="",Uo(e,(i,c)=>{c&&Ma(i,c)&&(s=!0)})),s}const r=e.prefix;if(!Rt({provider:t,prefix:r,name:"a"}))return!1;const n=Ie(t,r);return!!Qr(n,e)}const Ho=Object.freeze({width:null,height:null}),qo=Object.freeze({...Ho,...Pt}),Ua=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ja=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function $n(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(Ua);if(n===null||!n.length)return e;const s=[];let i=n.shift(),c=ja.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}}function za(e,t="defs"){let r="";const n=e.indexOf("<"+t);for(;n>=0;){const s=e.indexOf(">",n),i=e.indexOf("</"+t);if(s===-1||i===-1)break;const c=e.indexOf(">",i);if(c===-1)break;r+=e.slice(s+1,i).trim(),e=e.slice(0,n).trim()+e.slice(c+1)}return{defs:r,content:e}}function Ha(e,t){return e?"<defs>"+e+"</defs>"+t:t}function qa(e,t,r){const n=za(e);return Ha(n.defs,t+n.content+r)}const Va=e=>e==="unset"||e==="undefined"||e==="none";function Wa(e,t){const r={...Ht,...e},n={...qo,...t},s={left:r.left,top:r.top,width:r.width,height:r.height};let i=r.body;[r,n].forEach(A=>{const E=[],P=A.hFlip,F=A.vFlip;let L=A.rotate;P?F?L+=2:(E.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),E.push("scale(-1 1)"),s.top=s.left=0):F&&(E.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),E.push("scale(1 -1)"),s.top=s.left=0);let J;switch(L<0&&(L-=Math.floor(L/4)*4),L=L%4,L){case 1:J=s.height/2+s.top,E.unshift("rotate(90 "+J.toString()+" "+J.toString()+")");break;case 2:E.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:J=s.width/2+s.left,E.unshift("rotate(-90 "+J.toString()+" "+J.toString()+")");break}L%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)),E.length&&(i=qa(i,'<g transform="'+E.join(" ")+'">',"</g>"))});const c=n.width,d=n.height,y=s.width,h=s.height;let m,v;c===null?(v=d===null?"1em":d==="auto"?h:d,m=$n(v,y/h)):(m=c==="auto"?y:c,v=d===null?$n(m,h/y):d==="auto"?h:d);const O={},x=(A,E)=>{Va(E)||(O[A]=E.toString())};x("width",m),x("height",v);const _=[s.left,s.top,y,h];return O.viewBox=_.join(" "),{attributes:O,viewBox:_,body:i}}const Ja=/\sid="(\S+)"/g,Ka="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Ga=0;function Qa(e,t=Ka){const r=[];let n;for(;n=Ja.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+(Ga++).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 Or=Object.create(null);function Xa(e,t){Or[e]=t}function Tr(e){return Or[e]||Or[""]}function Xr(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 Zr=Object.create(null),Ye=["https://api.simplesvg.com","https://api.unisvg.com"],At=[];for(;Ye.length>0;)Ye.length===1||Math.random()>.5?At.push(Ye.shift()):At.push(Ye.pop());Zr[""]=Xr({resources:["https://api.iconify.design"].concat(At)});function Za(e,t){const r=Xr(t);return r===null?!1:(Zr[e]=r,!0)}function Yr(e){return Zr[e]}const Ya=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Un=Ya();function ec(e,t){const r=Yr(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 tc(e){return e===404}const rc=(e,t,r)=>{const n=[],s=ec(e,t),i="icons";let c={type:i,provider:e,prefix:t,icons:[]},d=0;return r.forEach((y,h)=>{d+=y.length+1,d>=s&&h>0&&(n.push(c),c={type:i,provider:e,prefix:t,icons:[]},d=y.length),c.icons.push(y)}),n.push(c),n};function nc(e){if(typeof e=="string"){const t=Yr(e);if(t)return t.path}return"/"}const oc=(e,t,r)=>{if(!Un){r("abort",424);return}let n=nc(t.provider);switch(t.type){case"icons":{const i=t.prefix,d=t.icons.join(","),y=new URLSearchParams({icons:d});n+=i+".json?"+y.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(tc(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)})},ic={prepare:rc,send:oc};function sc(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,y=r[i]||(r[i]=Object.create(null)),h=y[c]||(y[c]=Ie(i,c));let m;d in h.icons?m=t.loaded:c===""||h.missing.has(d)?m=t.missing:m=t.pending;const v={provider:i,prefix:c,name:d};m.push(v)}),t}function Vo(e,t){e.forEach(r=>{const n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(s=>s.id!==t))})}function ac(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(y=>{if(y.prefix!==s)return!0;const h=y.name;if(e.icons[h])c.loaded.push({provider:n,prefix:s,name:h});else if(e.missing.has(h))c.missing.push({provider:n,prefix:s,name:h});else return r=!0,!0;return!1}),c.pending.length!==d&&(r||Vo([e],i.id),i.callback(c.loaded.slice(0),c.missing.slice(0),c.pending.slice(0),i.abort))})}))}let cc=0;function uc(e,t,r){const n=cc++,s=Vo.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 lc(e,t=!0,r=!1){const n=[];return e.forEach(s=>{const i=typeof s=="string"?zt(s,t,r):s;i&&n.push(i)}),n}var fc={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function dc(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 N=e.resources.slice(0);for(c=[];N.length>1;){const H=Math.floor(Math.random()*N.length);c.push(N[H]),N=N.slice(0,H).concat(N.slice(H+1))}c=c.concat(N)}else c=e.resources.slice(i).concat(e.resources.slice(0,i));const d=Date.now();let y="pending",h=0,m,v=null,O=[],x=[];typeof n=="function"&&x.push(n);function _(){v&&(clearTimeout(v),v=null)}function A(){y==="pending"&&(y="aborted"),_(),O.forEach(N=>{N.status==="pending"&&(N.status="aborted")}),O=[]}function E(N,H){H&&(x=[]),typeof N=="function"&&x.push(N)}function P(){return{startTime:d,payload:t,status:y,queriesSent:h,queriesPending:O.length,subscribe:E,abort:A}}function F(){y="failed",x.forEach(N=>{N(void 0,m)})}function L(){O.forEach(N=>{N.status==="pending"&&(N.status="aborted")}),O=[]}function J(N,H,U){const z=H!=="success";switch(O=O.filter(Z=>Z!==N),y){case"pending":break;case"failed":if(z||!e.dataAfterTimeout)return;break;default:return}if(H==="abort"){m=U,F();return}if(z){m=U,O.length||(c.length?M():F());return}if(_(),L(),!e.random){const Z=e.resources.indexOf(N.resource);Z!==-1&&Z!==e.index&&(e.index=Z)}y="completed",x.forEach(Z=>{Z(U)})}function M(){if(y!=="pending")return;_();const N=c.shift();if(N===void 0){if(O.length){v=setTimeout(()=>{_(),y==="pending"&&(L(),F())},e.timeout);return}F();return}const H={status:"pending",resource:N,callback:(U,z)=>{J(H,U,z)}};O.push(H),h++,v=setTimeout(M,e.rotate),r(N,t,H.callback)}return setTimeout(M),P}function Wo(e){const t={...fc,...e};let r=[];function n(){r=r.filter(d=>d().status==="pending")}function s(d,y,h){const m=dc(t,d,y,(v,O)=>{n(),h&&h(v,O)});return r.push(m),m}function i(d){return r.find(y=>d(y))||null}return{query:s,find:i,setIndex:d=>{t.index=d},getIndex:()=>t.index,cleanup:n}}function jn(){}const pr=Object.create(null);function hc(e){if(!pr[e]){const t=Yr(e);if(!t)return;const r=Wo(t),n={config:t,redundancy:r};pr[e]=n}return pr[e]}function pc(e,t,r){let n,s;if(typeof e=="string"){const i=Tr(e);if(!i)return r(void 0,424),jn;s=i.send;const c=hc(e);c&&(n=c.redundancy)}else{const i=Xr(e);if(i){n=Wo(i);const c=e.resources?e.resources[0]:"",d=Tr(c);d&&(s=d.send)}}return!n||!s?(r(void 0,424),jn):n.query(t,s,r)().abort}const zn="iconify2",at="iconify",Jo=at+"-count",Hn=at+"-version",Ko=36e5,mc=168,yc=50;function xr(e,t){try{return e.getItem(t)}catch{}}function en(e,t,r){try{return e.setItem(t,r),!0}catch{}}function qn(e,t){try{e.removeItem(t)}catch{}}function kr(e,t){return en(e,Jo,t.toString())}function Cr(e){return parseInt(xr(e,Jo))||0}const qt={local:!0,session:!0},Go={local:new Set,session:new Set};let tn=!1;function gc(e){tn=e}let bt=typeof window>"u"?{}:window;function Qo(e){const t=e+"Storage";try{if(bt&&bt[t]&&typeof bt[t].length=="number")return bt[t]}catch{}qt[e]=!1}function Xo(e,t){const r=Qo(e);if(!r)return;const n=xr(r,Hn);if(n!==zn){if(n){const d=Cr(r);for(let y=0;y<d;y++)qn(r,at+y.toString())}en(r,Hn,zn),kr(r,0);return}const s=Math.floor(Date.now()/Ko)-mc,i=d=>{const y=at+d.toString(),h=xr(r,y);if(typeof h=="string"){try{const m=JSON.parse(h);if(typeof m=="object"&&typeof m.cached=="number"&&m.cached>s&&typeof m.provider=="string"&&typeof m.data=="object"&&typeof m.data.prefix=="string"&&t(m,d))return!0}catch{}qn(r,y)}};let c=Cr(r);for(let d=c-1;d>=0;d--)i(d)||(d===c-1?(c--,kr(r,c)):Go[e].add(d))}function Zo(){if(!tn){gc(!0);for(const e in qt)Xo(e,t=>{const r=t.data,n=t.provider,s=r.prefix,i=Ie(n,s);if(!Qr(i,r).length)return!1;const c=r.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,c):c,!0})}}function wc(e,t){const r=e.lastModifiedCached;if(r&&r>=t)return r===t;if(e.lastModifiedCached=t,r)for(const n in qt)Xo(n,s=>{const i=s.data;return s.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===t});return!0}function vc(e,t){tn||Zo();function r(n){let s;if(!qt[n]||!(s=Qo(n)))return;const i=Go[n];let c;if(i.size)i.delete(c=Array.from(i).shift());else if(c=Cr(s),c>=yc||!kr(s,c+1))return;const d={cached:Math.floor(Date.now()/Ko),provider:e.provider,data:t};return en(s,at+c.toString(),JSON.stringify(d))}t.lastModified&&!wc(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),r("local")||r("session"))}function Vn(){}function bc(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,ac(e)}))}function Ec(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=Tr(r)))return;i.prepare(r,n,s).forEach(d=>{pc(r,d,y=>{if(typeof y!="object")d.icons.forEach(h=>{e.missing.add(h)});else try{const h=Qr(e,y);if(!h.length)return;const m=e.pendingIcons;m&&h.forEach(v=>{m.delete(v)}),vc(e,y)}catch(h){console.error(h)}bc(e)})})}))}const _c=(e,t)=>{const r=lc(e,!0,zo()),n=sc(r);if(!n.pending.length){let y=!0;return t&&setTimeout(()=>{y&&t(n.loaded,n.missing,n.pending,Vn)}),()=>{y=!1}}const s=Object.create(null),i=[];let c,d;return n.pending.forEach(y=>{const{provider:h,prefix:m}=y;if(m===d&&h===c)return;c=h,d=m,i.push(Ie(h,m));const v=s[h]||(s[h]=Object.create(null));v[m]||(v[m]=[])}),n.pending.forEach(y=>{const{provider:h,prefix:m,name:v}=y,O=Ie(h,m),x=O.pendingIcons||(O.pendingIcons=new Set);x.has(v)||(x.add(v),s[h][m].push(v))}),i.forEach(y=>{const{provider:h,prefix:m}=y;s[h][m].length&&Ec(y,s[h][m])}),t?uc(t,n,i):Vn};function Sc(e,t){const r={...e};for(const n in t){const s=t[n],i=typeof s;n in Ho?(s===null||s&&(i==="string"||i==="number"))&&(r[n]=s):i===typeof r[n]&&(r[n]=n==="rotate"?s%4:s)}return r}const Rc=/[\s,]+/;function Ac(e,t){t.split(Rc).forEach(r=>{switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Oc(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 Tc(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 xc(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function kc(e){return"data:image/svg+xml,"+xc(e)}function Cc(e){return'url("'+kc(e)+'")'}const Wn={...qo,inline:!1},Dc={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Pc={display:"inline-block"},Dr={backgroundColor:"currentColor"},Yo={backgroundColor:"transparent"},Jn={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Kn={webkitMask:Dr,mask:Dr,background:Yo};for(const e in Kn){const t=Kn[e];for(const r in Jn)t[e+r]=Jn[r]}const Ot={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Ot[e+"-flip"]=t,Ot[e.slice(0,1)+"-flip"]=t,Ot[e+"Flip"]=t});function Gn(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Qn=(e,t)=>{const r=Sc(Wn,t),n={...Dc},s=t.mode||"svg",i={},c=t.style,d=typeof c=="object"&&!(c instanceof Array)?c:{};for(let A in t){const E=t[A];if(E!==void 0)switch(A){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":r[A]=E===!0||E==="true"||E===1;break;case"flip":typeof E=="string"&&Ac(r,E);break;case"color":i.color=E;break;case"rotate":typeof E=="string"?r[A]=Oc(E):typeof E=="number"&&(r[A]=E);break;case"ariaHidden":case"aria-hidden":E!==!0&&E!=="true"&&delete n["aria-hidden"];break;default:{const P=Ot[A];P?(E===!0||E==="true"||E===1)&&(r[P]=!0):Wn[A]===void 0&&(n[A]=E)}}}const y=Wa(e,r),h=y.attributes;if(r.inline&&(i.verticalAlign="-0.125em"),s==="svg"){n.style={...i,...d},Object.assign(n,h);let A=0,E=t.id;return typeof E=="string"&&(E=E.replace(/-/g,"_")),n.innerHTML=Qa(y.body,E?()=>E+"ID"+A++:"iconifyVue"),Vue.h("svg",n)}const{body:m,width:v,height:O}=e,x=s==="mask"||(s==="bg"?!1:m.indexOf("currentColor")!==-1),_=Tc(m,{...h,width:v+"",height:O+""});return n.style={...i,"--svg":Cc(_),width:Gn(h.width),height:Gn(h.height),...Pc,...x?Dr:Yo,...d},Vue.h("span",n)};zo(!0);Xa("",ic);if(typeof document<"u"&&typeof window<"u"){Zo();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"||!$a(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;Za(r,s)||console.error(n)}catch{console.error(n)}}}}const Lc={...Ht,body:""},Pd=Vue.defineComponent({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){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=zt(e,!1,!0))===null)return this.abortLoading(),null;const n=Ia(r);if(!n)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",n!==null&&(this._loadingIcon={name:e,abort:_c([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||e.ssr?this.getIcon(e.icon,e.onLoad):null;if(!t)return Qn(Lc,e);let r=e;return t.classes&&(r={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),Qn({...Ht,...t.data},r)}});/*!
|
|
* pinia v2.2.2
|
|
* (c) 2024 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/let ei;const Vt=e=>ei=e,ti=Symbol();function Pr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var it;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(it||(it={}));function Ld(){const e=VueDemi.effectScope(!0),t=e.run(()=>VueDemi.ref({}));let r=[],n=[];const s=VueDemi.markRaw({install(i){Vt(s),VueDemi.isVue2||(s._a=i,i.provide(ti,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 ri=()=>{};function Xn(e,t,r,n=ri){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 Ve(e,...t){e.slice().forEach(r=>{r(...t)})}const Fc=e=>e(),Zn=Symbol(),mr=Symbol();function Lr(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];Pr(s)&&Pr(n)&&e.hasOwnProperty(r)&&!VueDemi.isRef(n)&&!VueDemi.isReactive(n)?e[r]=Lr(s,n):e[r]=n}return e}const Nc=Symbol(),Bc=new WeakMap;function Ic(e){return VueDemi.isVue2?!Bc.has(e):!Pr(e)||!e.hasOwnProperty(Nc)}const{assign:ke}=Object;function Mc(e){return!!(VueDemi.isRef(e)&&e.effect)}function $c(e,t,r,n){const{state:s,actions:i,getters:c}=t,d=r.state.value[e];let y;function h(){d||(VueDemi.isVue2?VueDemi.set(r.state.value,e,s?s():{}):r.state.value[e]=s?s():{});const m=VueDemi.toRefs(r.state.value[e]);return ke(m,i,Object.keys(c||{}).reduce((v,O)=>(v[O]=VueDemi.markRaw(VueDemi.computed(()=>{Vt(r);const x=r._s.get(e);if(!(VueDemi.isVue2&&!x._r))return c[O].call(x,x)})),v),{}))}return y=ni(e,h,t,r,n,!0),y}function ni(e,t,r={},n,s,i){let c;const d=ke({actions:{}},r),y={deep:!0};let h,m,v=[],O=[],x;const _=n.state.value[e];!i&&!_&&(VueDemi.isVue2?VueDemi.set(n.state.value,e,{}):n.state.value[e]={}),VueDemi.ref({});let A;function E(U){let z;h=m=!1,typeof U=="function"?(U(n.state.value[e]),z={type:it.patchFunction,storeId:e,events:x}):(Lr(n.state.value[e],U),z={type:it.patchObject,payload:U,storeId:e,events:x});const Z=A=Symbol();VueDemi.nextTick().then(()=>{A===Z&&(h=!0)}),m=!0,Ve(v,z,n.state.value[e])}const P=i?function(){const{state:z}=r,Z=z?z():{};this.$patch(he=>{ke(he,Z)})}:ri;function F(){c.stop(),v=[],O=[],n._s.delete(e)}const L=(U,z="")=>{if(Zn in U)return U[mr]=z,U;const Z=function(){Vt(n);const he=Array.from(arguments),ie=[],Ee=[];function Ue(se){ie.push(se)}function D(se){Ee.push(se)}Ve(O,{args:he,name:Z[mr],store:M,after:Ue,onError:D});let Y;try{Y=U.apply(this&&this.$id===e?this:M,he)}catch(se){throw Ve(Ee,se),se}return Y instanceof Promise?Y.then(se=>(Ve(ie,se),se)).catch(se=>(Ve(Ee,se),Promise.reject(se))):(Ve(ie,Y),Y)};return Z[Zn]=!0,Z[mr]=z,Z},J={_p:n,$id:e,$onAction:Xn.bind(null,O),$patch:E,$reset:P,$subscribe(U,z={}){const Z=Xn(v,U,z.detached,()=>he()),he=c.run(()=>VueDemi.watch(()=>n.state.value[e],ie=>{(z.flush==="sync"?m:h)&&U({storeId:e,type:it.direct,events:x},ie)},ke({},y,z)));return Z},$dispose:F};VueDemi.isVue2&&(J._r=!1);const M=VueDemi.reactive(J);n._s.set(e,M);const H=(n._a&&n._a.runWithContext||Fc)(()=>n._e.run(()=>(c=VueDemi.effectScope()).run(()=>t({action:L}))));for(const U in H){const z=H[U];if(VueDemi.isRef(z)&&!Mc(z)||VueDemi.isReactive(z))i||(_&&Ic(z)&&(VueDemi.isRef(z)?z.value=_[U]:Lr(z,_[U])),VueDemi.isVue2?VueDemi.set(n.state.value[e],U,z):n.state.value[e][U]=z);else if(typeof z=="function"){const Z=L(z,U);VueDemi.isVue2?VueDemi.set(H,U,Z):H[U]=Z,d.actions[U]=z}}return VueDemi.isVue2?Object.keys(H).forEach(U=>{VueDemi.set(M,U,H[U])}):(ke(M,H),ke(VueDemi.toRaw(M),H)),Object.defineProperty(M,"$state",{get:()=>n.state.value[e],set:U=>{E(z=>{ke(z,U)})}}),VueDemi.isVue2&&(M._r=!0),n._p.forEach(U=>{ke(M,c.run(()=>U({store:M,app:n._a,pinia:n,options:d})))}),_&&i&&r.hydrate&&r.hydrate(M.$state,_),h=!0,m=!0,M}function Fd(e,t,r){let n,s;const i=typeof t=="function";n=e,s=i?r:t;function c(d,y){const h=VueDemi.hasInjectionContext();return d=d||(h?VueDemi.inject(ti,null):null),d&&Vt(d),d=ei,d._s.has(n)||(i?ni(n,t,s,d):$c(n,s,d)),d._s.get(n)}return c.$id=n,c}function Nd(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 oi(e,t){return function(){return e.apply(t,arguments)}}const{toString:Uc}=Object.prototype,{getPrototypeOf:rn}=Object,Wt=(e=>t=>{const r=Uc.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ve=e=>(e=e.toLowerCase(),t=>Wt(t)===e),Jt=e=>t=>typeof t===e,{isArray:We}=Array,ct=Jt("undefined");function jc(e){return e!==null&&!ct(e)&&e.constructor!==null&&!ct(e.constructor)&&fe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ii=ve("ArrayBuffer");function zc(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ii(e.buffer),t}const Hc=Jt("string"),fe=Jt("function"),si=Jt("number"),Kt=e=>e!==null&&typeof e=="object",qc=e=>e===!0||e===!1,Tt=e=>{if(Wt(e)!=="object")return!1;const t=rn(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Vc=ve("Date"),Wc=ve("File"),Jc=ve("Blob"),Kc=ve("FileList"),Gc=e=>Kt(e)&&fe(e.pipe),Qc=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||fe(e.append)&&((t=Wt(e))==="formdata"||t==="object"&&fe(e.toString)&&e.toString()==="[object FormData]"))},Xc=ve("URLSearchParams"),[Zc,Yc,eu,tu]=["ReadableStream","Request","Response","Headers"].map(ve),ru=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ft(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),We(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 ai(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 Fe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ci=e=>!ct(e)&&e!==Fe;function Fr(){const{caseless:e}=ci(this)&&this||{},t={},r=(n,s)=>{const i=e&&ai(t,s)||s;Tt(t[i])&&Tt(n)?t[i]=Fr(t[i],n):Tt(n)?t[i]=Fr({},n):We(n)?t[i]=n.slice():t[i]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&ft(arguments[n],r);return t}const nu=(e,t,r,{allOwnKeys:n}={})=>(ft(t,(s,i)=>{r&&fe(s)?e[i]=oi(s,r):e[i]=s},{allOwnKeys:n}),e),ou=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),iu=(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)},su=(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&&rn(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},au=(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},cu=e=>{if(!e)return null;if(We(e))return e;let t=e.length;if(!si(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},uu=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&rn(Uint8Array)),lu=(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])}},fu=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},du=ve("HTMLFormElement"),hu=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,s){return n.toUpperCase()+s}),Yn=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),pu=ve("RegExp"),ui=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ft(r,(s,i)=>{let c;(c=t(s,i,e))!==!1&&(n[i]=c||s)}),Object.defineProperties(e,n)},mu=e=>{ui(e,(t,r)=>{if(fe(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(fe(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+"'")})}})},yu=(e,t)=>{const r={},n=s=>{s.forEach(i=>{r[i]=!0})};return We(e)?n(e):n(String(e).split(t)),r},gu=()=>{},wu=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,yr="abcdefghijklmnopqrstuvwxyz",eo="0123456789",li={DIGIT:eo,ALPHA:yr,ALPHA_DIGIT:yr+yr.toUpperCase()+eo},vu=(e=16,t=li.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function bu(e){return!!(e&&fe(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Eu=e=>{const t=new Array(10),r=(n,s)=>{if(Kt(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[s]=n;const i=We(n)?[]:{};return ft(n,(c,d)=>{const y=r(c,s+1);!ct(y)&&(i[d]=y)}),t[s]=void 0,i}}return n};return r(e,0)},_u=ve("AsyncFunction"),Su=e=>e&&(Kt(e)||fe(e))&&fe(e.then)&&fe(e.catch),fi=((e,t)=>e?setImmediate:t?((r,n)=>(Fe.addEventListener("message",({source:s,data:i})=>{s===Fe&&i===r&&n.length&&n.shift()()},!1),s=>{n.push(s),Fe.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",fe(Fe.postMessage)),Ru=typeof queueMicrotask<"u"?queueMicrotask.bind(Fe):typeof process<"u"&&process.nextTick||fi,S={isArray:We,isArrayBuffer:ii,isBuffer:jc,isFormData:Qc,isArrayBufferView:zc,isString:Hc,isNumber:si,isBoolean:qc,isObject:Kt,isPlainObject:Tt,isReadableStream:Zc,isRequest:Yc,isResponse:eu,isHeaders:tu,isUndefined:ct,isDate:Vc,isFile:Wc,isBlob:Jc,isRegExp:pu,isFunction:fe,isStream:Gc,isURLSearchParams:Xc,isTypedArray:uu,isFileList:Kc,forEach:ft,merge:Fr,extend:nu,trim:ru,stripBOM:ou,inherits:iu,toFlatObject:su,kindOf:Wt,kindOfTest:ve,endsWith:au,toArray:cu,forEachEntry:lu,matchAll:fu,isHTMLForm:du,hasOwnProperty:Yn,hasOwnProp:Yn,reduceDescriptors:ui,freezeMethods:mu,toObjectSet:yu,toCamelCase:hu,noop:gu,toFiniteNumber:wu,findKey:ai,global:Fe,isContextDefined:ci,ALPHABET:li,generateString:vu,isSpecCompliantForm:bu,toJSONObject:Eu,isAsyncFn:_u,isThenable:Su,setImmediate:fi,asap:Ru};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,this.status=s.status?s.status:null)}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.status}}});const di=V.prototype,hi={};["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=>{hi[e]={value:e}});Object.defineProperties(V,hi);Object.defineProperty(di,"isAxiosError",{value:!0});V.from=(e,t,r,n,s,i)=>{const c=Object.create(di);return S.toFlatObject(e,c,function(y){return y!==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 Au=null;function Nr(e){return S.isPlainObject(e)||S.isArray(e)}function pi(e){return S.endsWith(e,"[]")?e.slice(0,-2):e}function to(e,t,r){return e?e.concat(t).map(function(s,i){return s=pi(s),!r&&i?"["+s+"]":s}).join(r?".":""):t}function Ou(e){return S.isArray(e)&&!e.some(Nr)}const Tu=S.toFlatObject(S,{},null,function(t){return/^is[A-Z]/.test(t)});function Gt(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(A,E){return!S.isUndefined(E[A])});const n=r.metaTokens,s=r.visitor||m,i=r.dots,c=r.indexes,y=(r.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(t);if(!S.isFunction(s))throw new TypeError("visitor must be a function");function h(_){if(_===null)return"";if(S.isDate(_))return _.toISOString();if(!y&&S.isBlob(_))throw new V("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(_)||S.isTypedArray(_)?y&&typeof Blob=="function"?new Blob([_]):Buffer.from(_):_}function m(_,A,E){let P=_;if(_&&!E&&typeof _=="object"){if(S.endsWith(A,"{}"))A=n?A:A.slice(0,-2),_=JSON.stringify(_);else if(S.isArray(_)&&Ou(_)||(S.isFileList(_)||S.endsWith(A,"[]"))&&(P=S.toArray(_)))return A=pi(A),P.forEach(function(L,J){!(S.isUndefined(L)||L===null)&&t.append(c===!0?to([A],J,i):c===null?A:A+"[]",h(L))}),!1}return Nr(_)?!0:(t.append(to(E,A,i),h(_)),!1)}const v=[],O=Object.assign(Tu,{defaultVisitor:m,convertValue:h,isVisitable:Nr});function x(_,A){if(!S.isUndefined(_)){if(v.indexOf(_)!==-1)throw Error("Circular reference detected in "+A.join("."));v.push(_),S.forEach(_,function(P,F){(!(S.isUndefined(P)||P===null)&&s.call(t,P,S.isString(F)?F.trim():F,A,O))===!0&&x(P,A?A.concat(F):[F])}),v.pop()}}if(!S.isObject(e))throw new TypeError("data must be an object");return x(e),t}function ro(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function nn(e,t){this._pairs=[],e&&Gt(e,this,t)}const mi=nn.prototype;mi.append=function(t,r){this._pairs.push([t,r])};mi.toString=function(t){const r=t?function(n){return t.call(this,n,ro)}:ro;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function xu(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function yi(e,t,r){if(!t)return e;const n=r&&r.encode||xu,s=r&&r.serialize;let i;if(s?i=s(t,r):i=S.isURLSearchParams(t)?t.toString():new nn(t,r).toString(n),i){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}let no=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 gi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ku=typeof URLSearchParams<"u"?URLSearchParams:nn,Cu=typeof FormData<"u"?FormData:null,Du=typeof Blob<"u"?Blob:null,Pu={isBrowser:!0,classes:{URLSearchParams:ku,FormData:Cu,Blob:Du},protocols:["http","https","file","blob","url","data"]},on=typeof window<"u"&&typeof document<"u",Br=typeof navigator=="object"&&navigator||void 0,Lu=on&&(!Br||["ReactNative","NativeScript","NS"].indexOf(Br.product)<0),Fu=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Nu=on&&window.location.href||"http://localhost",Bu=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:on,hasStandardBrowserEnv:Lu,hasStandardBrowserWebWorkerEnv:Fu,navigator:Br,origin:Nu},Symbol.toStringTag,{value:"Module"})),ae={...Bu,...Pu};function Iu(e,t){return Gt(e,new ae.classes.URLSearchParams,Object.assign({visitor:function(r,n,s,i){return ae.isNode&&S.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Mu(e){return S.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function $u(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 wi(e){function t(r,n,s,i){let c=r[i++];if(c==="__proto__")return!0;const d=Number.isFinite(+c),y=i>=r.length;return c=!c&&S.isArray(s)?s.length:c,y?(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]=$u(s[c])),!d)}if(S.isFormData(e)&&S.isFunction(e.entries)){const r={};return S.forEachEntry(e,(n,s)=>{t(Mu(n),s,r,0)}),r}return null}function Uu(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 dt={transitional:gi,adapter:["xhr","http","fetch"],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(wi(t)):t;if(S.isArrayBuffer(t)||S.isBuffer(t)||S.isStream(t)||S.isFile(t)||S.isBlob(t)||S.isReadableStream(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 Iu(t,this.formSerializer).toString();if((d=S.isFileList(t))||n.indexOf("multipart/form-data")>-1){const y=this.env&&this.env.FormData;return Gt(d?{"files[]":t}:t,y&&new y,this.formSerializer)}}return i||s?(r.setContentType("application/json",!1),Uu(t)):t}],transformResponse:[function(t){const r=this.transitional||dt.transitional,n=r&&r.forcedJSONParsing,s=this.responseType==="json";if(S.isResponse(t)||S.isReadableStream(t))return t;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:ae.classes.FormData,Blob:ae.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=>{dt.headers[e]={}});const ju=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"]),zu=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]&&ju[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},oo=Symbol("internals");function et(e){return e&&String(e).trim().toLowerCase()}function xt(e){return e===!1||e==null?e:S.isArray(e)?e.map(xt):String(e)}function Hu(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 qu=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function gr(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 Vu(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Wu(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 ce=class{constructor(t){t&&this.set(t)}set(t,r,n){const s=this;function i(d,y,h){const m=et(y);if(!m)throw new Error("header name must be a non-empty string");const v=S.findKey(s,m);(!v||s[v]===void 0||h===!0||h===void 0&&s[v]!==!1)&&(s[v||y]=xt(d))}const c=(d,y)=>S.forEach(d,(h,m)=>i(h,m,y));if(S.isPlainObject(t)||t instanceof this.constructor)c(t,r);else if(S.isString(t)&&(t=t.trim())&&!qu(t))c(zu(t),r);else if(S.isHeaders(t))for(const[d,y]of t.entries())i(y,d,n);else t!=null&&i(r,t,n);return this}get(t,r){if(t=et(t),t){const n=S.findKey(this,t);if(n){const s=this[n];if(!r)return s;if(r===!0)return Hu(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=et(t),t){const n=S.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||gr(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let s=!1;function i(c){if(c=et(c),c){const d=S.findKey(n,c);d&&(!r||gr(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||gr(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]=xt(s),delete r[i];return}const d=t?Vu(i):String(i).trim();d!==i&&delete r[i],r[d]=xt(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[oo]=this[oo]={accessors:{}}).accessors,s=this.prototype;function i(c){const d=et(c);n[d]||(Wu(s,c),n[d]=!0)}return S.isArray(t)?t.forEach(i):i(t),this}};ce.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);S.reduceDescriptors(ce.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});S.freezeMethods(ce);function wr(e,t){const r=this||dt,n=t||r,s=ce.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 vi(e){return!!(e&&e.__CANCEL__)}function Je(e,t,r){V.call(this,e??"canceled",V.ERR_CANCELED,t,r),this.name="CanceledError"}S.inherits(Je,V,{__CANCEL__:!0});function bi(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))}function Ju(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ku(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(y){const h=Date.now(),m=n[i];c||(c=h),r[s]=y,n[s]=h;let v=i,O=0;for(;v!==s;)O+=r[v++],v=v%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),h-c<t)return;const x=m&&h-m;return x?Math.round(O*1e3/x):void 0}}function Gu(e,t){let r=0,n=1e3/t,s,i;const c=(h,m=Date.now())=>{r=m,s=null,i&&(clearTimeout(i),i=null),e.apply(null,h)};return[(...h)=>{const m=Date.now(),v=m-r;v>=n?c(h,m):(s=h,i||(i=setTimeout(()=>{i=null,c(s)},n-v)))},()=>s&&c(s)]}const Lt=(e,t,r=3)=>{let n=0;const s=Ku(50,250);return Gu(i=>{const c=i.loaded,d=i.lengthComputable?i.total:void 0,y=c-n,h=s(y),m=c<=d;n=c;const v={loaded:c,total:d,progress:d?c/d:void 0,bytes:y,rate:h||void 0,estimated:h&&d&&m?(d-c)/h:void 0,event:i,lengthComputable:d!=null,[t?"download":"upload"]:!0};e(v)},r)},io=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},so=e=>(...t)=>S.asap(()=>e(...t)),Qu=ae.hasStandardBrowserEnv?function(){const t=ae.navigator&&/(msie|trident)/i.test(ae.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}}(),Xu=ae.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 Zu(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Yu(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ei(e,t){return e&&!Zu(t)?Yu(e,t):t}const ao=e=>e instanceof ce?{...e}:e;function Me(e,t){t=t||{};const r={};function n(h,m,v){return S.isPlainObject(h)&&S.isPlainObject(m)?S.merge.call({caseless:v},h,m):S.isPlainObject(m)?S.merge({},m):S.isArray(m)?m.slice():m}function s(h,m,v){if(S.isUndefined(m)){if(!S.isUndefined(h))return n(void 0,h,v)}else return n(h,m,v)}function i(h,m){if(!S.isUndefined(m))return n(void 0,m)}function c(h,m){if(S.isUndefined(m)){if(!S.isUndefined(h))return n(void 0,h)}else return n(void 0,m)}function d(h,m,v){if(v in t)return n(h,m);if(v in e)return n(void 0,h)}const y={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:(h,m)=>s(ao(h),ao(m),!0)};return S.forEach(Object.keys(Object.assign({},e,t)),function(m){const v=y[m]||s,O=v(e[m],t[m],m);S.isUndefined(O)&&v!==d||(r[m]=O)}),r}const _i=e=>{const t=Me({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:s,xsrfCookieName:i,headers:c,auth:d}=t;t.headers=c=ce.from(c),t.url=yi(Ei(t.baseURL,t.url),e.params,e.paramsSerializer),d&&c.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):"")));let y;if(S.isFormData(r)){if(ae.hasStandardBrowserEnv||ae.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if((y=c.getContentType())!==!1){const[h,...m]=y?y.split(";").map(v=>v.trim()).filter(Boolean):[];c.setContentType([h||"multipart/form-data",...m].join("; "))}}if(ae.hasStandardBrowserEnv&&(n&&S.isFunction(n)&&(n=n(t)),n||n!==!1&&Qu(t.url))){const h=s&&i&&Xu.read(i);h&&c.set(s,h)}return t},el=typeof XMLHttpRequest<"u",tl=el&&function(e){return new Promise(function(r,n){const s=_i(e);let i=s.data;const c=ce.from(s.headers).normalize();let{responseType:d,onUploadProgress:y,onDownloadProgress:h}=s,m,v,O,x,_;function A(){x&&x(),_&&_(),s.cancelToken&&s.cancelToken.unsubscribe(m),s.signal&&s.signal.removeEventListener("abort",m)}let E=new XMLHttpRequest;E.open(s.method.toUpperCase(),s.url,!0),E.timeout=s.timeout;function P(){if(!E)return;const L=ce.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),M={data:!d||d==="text"||d==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:L,config:e,request:E};bi(function(H){r(H),A()},function(H){n(H),A()},M),E=null}"onloadend"in E?E.onloadend=P:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(P)},E.onabort=function(){E&&(n(new V("Request aborted",V.ECONNABORTED,e,E)),E=null)},E.onerror=function(){n(new V("Network Error",V.ERR_NETWORK,e,E)),E=null},E.ontimeout=function(){let J=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const M=s.transitional||gi;s.timeoutErrorMessage&&(J=s.timeoutErrorMessage),n(new V(J,M.clarifyTimeoutError?V.ETIMEDOUT:V.ECONNABORTED,e,E)),E=null},i===void 0&&c.setContentType(null),"setRequestHeader"in E&&S.forEach(c.toJSON(),function(J,M){E.setRequestHeader(M,J)}),S.isUndefined(s.withCredentials)||(E.withCredentials=!!s.withCredentials),d&&d!=="json"&&(E.responseType=s.responseType),h&&([O,_]=Lt(h,!0),E.addEventListener("progress",O)),y&&E.upload&&([v,x]=Lt(y),E.upload.addEventListener("progress",v),E.upload.addEventListener("loadend",x)),(s.cancelToken||s.signal)&&(m=L=>{E&&(n(!L||L.type?new Je(null,e,E):L),E.abort(),E=null)},s.cancelToken&&s.cancelToken.subscribe(m),s.signal&&(s.signal.aborted?m():s.signal.addEventListener("abort",m)));const F=Ju(s.url);if(F&&ae.protocols.indexOf(F)===-1){n(new V("Unsupported protocol "+F+":",V.ERR_BAD_REQUEST,e));return}E.send(i||null)})},rl=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,s;const i=function(h){if(!s){s=!0,d();const m=h instanceof Error?h:this.reason;n.abort(m instanceof V?m:new Je(m instanceof Error?m.message:m))}};let c=t&&setTimeout(()=>{c=null,i(new V(`timeout ${t} of ms exceeded`,V.ETIMEDOUT))},t);const d=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(i):h.removeEventListener("abort",i)}),e=null)};e.forEach(h=>h.addEventListener("abort",i));const{signal:y}=n;return y.unsubscribe=()=>S.asap(d),y}},nl=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let n=0,s;for(;n<r;)s=n+t,yield e.slice(n,s),n=s},ol=async function*(e,t){for await(const r of il(e))yield*nl(r,t)},il=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},co=(e,t,r,n)=>{const s=ol(e,t);let i=0,c,d=y=>{c||(c=!0,n&&n(y))};return new ReadableStream({async pull(y){try{const{done:h,value:m}=await s.next();if(h){d(),y.close();return}let v=m.byteLength;if(r){let O=i+=v;r(O)}y.enqueue(new Uint8Array(m))}catch(h){throw d(h),h}},cancel(y){return d(y),s.return()}},{highWaterMark:2})},Qt=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Si=Qt&&typeof ReadableStream=="function",sl=Qt&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ri=(e,...t)=>{try{return!!e(...t)}catch{return!1}},al=Si&&Ri(()=>{let e=!1;const t=new Request(ae.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),uo=64*1024,Ir=Si&&Ri(()=>S.isReadableStream(new Response("").body)),Ft={stream:Ir&&(e=>e.body)};Qt&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Ft[t]&&(Ft[t]=S.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new V(`Response type '${t}' is not supported`,V.ERR_NOT_SUPPORT,n)})})})(new Response);const cl=async e=>{if(e==null)return 0;if(S.isBlob(e))return e.size;if(S.isSpecCompliantForm(e))return(await new Request(ae.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(S.isArrayBufferView(e)||S.isArrayBuffer(e))return e.byteLength;if(S.isURLSearchParams(e)&&(e=e+""),S.isString(e))return(await sl(e)).byteLength},ul=async(e,t)=>{const r=S.toFiniteNumber(e.getContentLength());return r??cl(t)},ll=Qt&&(async e=>{let{url:t,method:r,data:n,signal:s,cancelToken:i,timeout:c,onDownloadProgress:d,onUploadProgress:y,responseType:h,headers:m,withCredentials:v="same-origin",fetchOptions:O}=_i(e);h=h?(h+"").toLowerCase():"text";let x=rl([s,i&&i.toAbortSignal()],c),_;const A=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let E;try{if(y&&al&&r!=="get"&&r!=="head"&&(E=await ul(m,n))!==0){let M=new Request(t,{method:"POST",body:n,duplex:"half"}),N;if(S.isFormData(n)&&(N=M.headers.get("content-type"))&&m.setContentType(N),M.body){const[H,U]=io(E,Lt(so(y)));n=co(M.body,uo,H,U)}}S.isString(v)||(v=v?"include":"omit");const P="credentials"in Request.prototype;_=new Request(t,{...O,signal:x,method:r.toUpperCase(),headers:m.normalize().toJSON(),body:n,duplex:"half",credentials:P?v:void 0});let F=await fetch(_);const L=Ir&&(h==="stream"||h==="response");if(Ir&&(d||L&&A)){const M={};["status","statusText","headers"].forEach(z=>{M[z]=F[z]});const N=S.toFiniteNumber(F.headers.get("content-length")),[H,U]=d&&io(N,Lt(so(d),!0))||[];F=new Response(co(F.body,uo,H,()=>{U&&U(),A&&A()}),M)}h=h||"text";let J=await Ft[S.findKey(Ft,h)||"text"](F,e);return!L&&A&&A(),await new Promise((M,N)=>{bi(M,N,{data:J,headers:ce.from(F.headers),status:F.status,statusText:F.statusText,config:e,request:_})})}catch(P){throw A&&A(),P&&P.name==="TypeError"&&/fetch/i.test(P.message)?Object.assign(new V("Network Error",V.ERR_NETWORK,e,_),{cause:P.cause||P}):V.from(P,P&&P.code,e,_)}}),Mr={http:Au,xhr:tl,fetch:ll};S.forEach(Mr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const lo=e=>`- ${e}`,fl=e=>S.isFunction(e)||e===null||e===!1,Ai={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,!fl(r)&&(n=Mr[(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,y])=>`adapter ${d} `+(y===!1?"is not supported by the environment":"is not available in the build"));let c=t?i.length>1?`since :
|
|
`+i.map(lo).join(`
|
|
`):" "+lo(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:Mr};function vr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Je(null,e)}function fo(e){return vr(e),e.headers=ce.from(e.headers),e.data=wr.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ai.getAdapter(e.adapter||dt.adapter)(e).then(function(n){return vr(e),n.data=wr.call(e,e.transformResponse,n),n.headers=ce.from(n.headers),n},function(n){return vi(n)||(vr(e),n&&n.response&&(n.response.data=wr.call(e,e.transformResponse,n.response),n.response.headers=ce.from(n.response.headers))),Promise.reject(n)})}const Oi="1.7.7",sn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{sn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ho={};sn.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 V(s(c," has been removed"+(r?" in "+r:"")),V.ERR_DEPRECATED);return r&&!ho[c]&&(ho[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 dl(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],y=d===void 0||c(d,i,e);if(y!==!0)throw new V("option "+i+" must be "+y,V.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new V("Unknown option "+i,V.ERR_BAD_OPTION)}}const $r={assertOptions:dl,validators:sn},Te=$r.validators;let Be=class{constructor(t){this.defaults=t,this.interceptors={request:new no,response:new no}}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/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
`+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Me(this.defaults,r);const{transitional:n,paramsSerializer:s,headers:i}=r;n!==void 0&&$r.assertOptions(n,{silentJSONParsing:Te.transitional(Te.boolean),forcedJSONParsing:Te.transitional(Te.boolean),clarifyTimeoutError:Te.transitional(Te.boolean)},!1),s!=null&&(S.isFunction(s)?r.paramsSerializer={serialize:s}:$r.assertOptions(s,{encode:Te.function,serialize:Te.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"],_=>{delete i[_]}),r.headers=ce.concat(c,i);const d=[];let y=!0;this.interceptors.request.forEach(function(A){typeof A.runWhen=="function"&&A.runWhen(r)===!1||(y=y&&A.synchronous,d.unshift(A.fulfilled,A.rejected))});const h=[];this.interceptors.response.forEach(function(A){h.push(A.fulfilled,A.rejected)});let m,v=0,O;if(!y){const _=[fo.bind(this),void 0];for(_.unshift.apply(_,d),_.push.apply(_,h),O=_.length,m=Promise.resolve(r);v<O;)m=m.then(_[v++],_[v++]);return m}O=d.length;let x=r;for(v=0;v<O;){const _=d[v++],A=d[v++];try{x=_(x)}catch(E){A.call(this,E);break}}try{m=fo.call(this,x)}catch(_){return Promise.reject(_)}for(v=0,O=h.length;v<O;)m=m.then(h[v++],h[v++]);return m}getUri(t){t=Me(this.defaults,t);const r=Ei(t.baseURL,t.url);return yi(r,t.params,t.paramsSerializer)}};S.forEach(["delete","get","head","options"],function(t){Be.prototype[t]=function(r,n){return this.request(Me(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(Me(d||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:c}))}}Be.prototype[t]=r(),Be.prototype[t+"Form"]=r(!0)});let hl=class Ti{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 Je(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)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Ti(function(s){t=s}),cancel:t}}};function pl(e){return function(r){return e.apply(null,r)}}function ml(e){return S.isObject(e)&&e.isAxiosError===!0}const Ur={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(Ur).forEach(([e,t])=>{Ur[t]=e});function xi(e){const t=new Be(e),r=oi(Be.prototype.request,t);return S.extend(r,Be.prototype,t,{allOwnKeys:!0}),S.extend(r,t,null,{allOwnKeys:!0}),r.create=function(s){return xi(Me(e,s))},r}const re=xi(dt);re.Axios=Be;re.CanceledError=Je;re.CancelToken=hl;re.isCancel=vi;re.VERSION=Oi;re.toFormData=Gt;re.AxiosError=V;re.Cancel=re.CanceledError;re.all=function(t){return Promise.all(t)};re.spread=pl;re.isAxiosError=ml;re.mergeConfig=Me;re.AxiosHeaders=ce;re.formToJSON=e=>wi(S.isHTMLForm(e)?new FormData(e):e);re.getAdapter=Ai.getAdapter;re.HttpStatusCode=Ur;re.default=re;var an={exports:{}};function ki(e,t){return function(){return e.apply(t,arguments)}}const{toString:yl}=Object.prototype,{getPrototypeOf:cn}=Object,Xt=(e=>t=>{const r=yl.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),be=e=>(e=e.toLowerCase(),t=>Xt(t)===e),Zt=e=>t=>typeof t===e,{isArray:Ke}=Array,ut=Zt("undefined");function gl(e){return e!==null&&!ut(e)&&e.constructor!==null&&!ut(e.constructor)&&de(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ci=be("ArrayBuffer");function wl(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ci(e.buffer),t}const vl=Zt("string"),de=Zt("function"),Di=Zt("number"),Yt=e=>e!==null&&typeof e=="object",bl=e=>e===!0||e===!1,kt=e=>{if(Xt(e)!=="object")return!1;const t=cn(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},El=be("Date"),_l=be("File"),Sl=be("Blob"),Rl=be("FileList"),Al=e=>Yt(e)&&de(e.pipe),Ol=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||de(e.append)&&((t=Xt(e))==="formdata"||t==="object"&&de(e.toString)&&e.toString()==="[object FormData]"))},Tl=be("URLSearchParams"),[xl,kl,Cl,Dl]=["ReadableStream","Request","Response","Headers"].map(be),Pl=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ht(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),Ke(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 Pi(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 Ne=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:ge,Li=e=>!ut(e)&&e!==Ne;function jr(){const{caseless:e}=Li(this)&&this||{},t={},r=(n,s)=>{const i=e&&Pi(t,s)||s;kt(t[i])&&kt(n)?t[i]=jr(t[i],n):kt(n)?t[i]=jr({},n):Ke(n)?t[i]=n.slice():t[i]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&ht(arguments[n],r);return t}const Ll=(e,t,r,{allOwnKeys:n}={})=>(ht(t,(s,i)=>{r&&de(s)?e[i]=ki(s,r):e[i]=s},{allOwnKeys:n}),e),Fl=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Nl=(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)},Bl=(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&&cn(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Il=(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},Ml=e=>{if(!e)return null;if(Ke(e))return e;let t=e.length;if(!Di(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},$l=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&cn(Uint8Array)),Ul=(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])}},jl=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},zl=be("HTMLFormElement"),Hl=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,s){return n.toUpperCase()+s}),po=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),ql=be("RegExp"),Fi=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ht(r,(s,i)=>{let c;(c=t(s,i,e))!==!1&&(n[i]=c||s)}),Object.defineProperties(e,n)},Vl=e=>{Fi(e,(t,r)=>{if(de(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(de(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+"'")})}})},Wl=(e,t)=>{const r={},n=s=>{s.forEach(i=>{r[i]=!0})};return Ke(e)?n(e):n(String(e).split(t)),r},Jl=()=>{},Kl=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,br="abcdefghijklmnopqrstuvwxyz",mo="0123456789",Ni={DIGIT:mo,ALPHA:br,ALPHA_DIGIT:br+br.toUpperCase()+mo},Gl=(e=16,t=Ni.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function Ql(e){return!!(e&&de(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Xl=e=>{const t=new Array(10),r=(n,s)=>{if(Yt(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[s]=n;const i=Ke(n)?[]:{};return ht(n,(c,d)=>{const y=r(c,s+1);!ut(y)&&(i[d]=y)}),t[s]=void 0,i}}return n};return r(e,0)},Zl=be("AsyncFunction"),Yl=e=>e&&(Yt(e)||de(e))&&de(e.then)&&de(e.catch),Bi=((e,t)=>e?setImmediate:t?((r,n)=>(Ne.addEventListener("message",({source:s,data:i})=>{s===Ne&&i===r&&n.length&&n.shift()()},!1),s=>{n.push(s),Ne.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",de(Ne.postMessage)),ef=typeof queueMicrotask<"u"?queueMicrotask.bind(Ne):typeof process<"u"&&process.nextTick||Bi;var R={isArray:Ke,isArrayBuffer:Ci,isBuffer:gl,isFormData:Ol,isArrayBufferView:wl,isString:vl,isNumber:Di,isBoolean:bl,isObject:Yt,isPlainObject:kt,isReadableStream:xl,isRequest:kl,isResponse:Cl,isHeaders:Dl,isUndefined:ut,isDate:El,isFile:_l,isBlob:Sl,isRegExp:ql,isFunction:de,isStream:Al,isURLSearchParams:Tl,isTypedArray:$l,isFileList:Rl,forEach:ht,merge:jr,extend:Ll,trim:Pl,stripBOM:Fl,inherits:Nl,toFlatObject:Bl,kindOf:Xt,kindOfTest:be,endsWith:Il,toArray:Ml,forEachEntry:Ul,matchAll:jl,isHTMLForm:zl,hasOwnProperty:po,hasOwnProp:po,reduceDescriptors:Fi,freezeMethods:Vl,toObjectSet:Wl,toCamelCase:Hl,noop:Jl,toFiniteNumber:Kl,findKey:Pi,global:Ne,isContextDefined:Li,ALPHABET:Ni,generateString:Gl,isSpecCompliantForm:Ql,toJSONObject:Xl,isAsyncFn:Zl,isThenable:Yl,setImmediate:Bi,asap:ef};function W(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,this.status=s.status?s.status:null)}R.inherits(W,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.status}}});const Ii=W.prototype,Mi={};["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=>{Mi[e]={value:e}});Object.defineProperties(W,Mi);Object.defineProperty(Ii,"isAxiosError",{value:!0});W.from=(e,t,r,n,s,i)=>{const c=Object.create(Ii);return R.toFlatObject(e,c,function(y){return y!==Error.prototype},d=>d!=="isAxiosError"),W.call(c,e.message,t,r,n,s),c.cause=e,c.name=e.name,i&&Object.assign(c,i),c};var tf=null;function zr(e){return R.isPlainObject(e)||R.isArray(e)}function $i(e){return R.endsWith(e,"[]")?e.slice(0,-2):e}function yo(e,t,r){return e?e.concat(t).map(function(s,i){return s=$i(s),!r&&i?"["+s+"]":s}).join(r?".":""):t}function rf(e){return R.isArray(e)&&!e.some(zr)}const nf=R.toFlatObject(R,{},null,function(t){return/^is[A-Z]/.test(t)});function er(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(A,E){return!R.isUndefined(E[A])});const n=r.metaTokens,s=r.visitor||m,i=r.dots,c=r.indexes,y=(r.Blob||typeof Blob<"u"&&Blob)&&R.isSpecCompliantForm(t);if(!R.isFunction(s))throw new TypeError("visitor must be a function");function h(_){if(_===null)return"";if(R.isDate(_))return _.toISOString();if(!y&&R.isBlob(_))throw new W("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(_)||R.isTypedArray(_)?y&&typeof Blob=="function"?new Blob([_]):Buffer.from(_):_}function m(_,A,E){let P=_;if(_&&!E&&typeof _=="object"){if(R.endsWith(A,"{}"))A=n?A:A.slice(0,-2),_=JSON.stringify(_);else if(R.isArray(_)&&rf(_)||(R.isFileList(_)||R.endsWith(A,"[]"))&&(P=R.toArray(_)))return A=$i(A),P.forEach(function(L,J){!(R.isUndefined(L)||L===null)&&t.append(c===!0?yo([A],J,i):c===null?A:A+"[]",h(L))}),!1}return zr(_)?!0:(t.append(yo(E,A,i),h(_)),!1)}const v=[],O=Object.assign(nf,{defaultVisitor:m,convertValue:h,isVisitable:zr});function x(_,A){if(!R.isUndefined(_)){if(v.indexOf(_)!==-1)throw Error("Circular reference detected in "+A.join("."));v.push(_),R.forEach(_,function(P,F){(!(R.isUndefined(P)||P===null)&&s.call(t,P,R.isString(F)?F.trim():F,A,O))===!0&&x(P,A?A.concat(F):[F])}),v.pop()}}if(!R.isObject(e))throw new TypeError("data must be an object");return x(e),t}function go(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function un(e,t){this._pairs=[],e&&er(e,this,t)}const Ui=un.prototype;Ui.append=function(t,r){this._pairs.push([t,r])};Ui.toString=function(t){const r=t?function(n){return t.call(this,n,go)}:go;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function of(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ji(e,t,r){if(!t)return e;const n=r&&r.encode||of,s=r&&r.serialize;let i;if(s?i=s(t,r):i=R.isURLSearchParams(t)?t.toString():new un(t,r).toString(n),i){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class sf{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 wo=sf,zi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},af=typeof URLSearchParams<"u"?URLSearchParams:un,cf=typeof FormData<"u"?FormData:null,uf=typeof Blob<"u"?Blob:null,lf={isBrowser:!0,classes:{URLSearchParams:af,FormData:cf,Blob:uf},protocols:["http","https","file","blob","url","data"]};const ln=typeof window<"u"&&typeof document<"u",Hr=typeof navigator=="object"&&navigator||void 0,ff=ln&&(!Hr||["ReactNative","NativeScript","NS"].indexOf(Hr.product)<0),df=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",hf=ln&&window.location.href||"http://localhost";var pf=Object.freeze({__proto__:null,hasBrowserEnv:ln,hasStandardBrowserWebWorkerEnv:df,hasStandardBrowserEnv:ff,navigator:Hr,origin:hf}),ue={...pf,...lf};function mf(e,t){return er(e,new ue.classes.URLSearchParams,Object.assign({visitor:function(r,n,s,i){return ue.isNode&&R.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function yf(e){return R.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function gf(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 Hi(e){function t(r,n,s,i){let c=r[i++];if(c==="__proto__")return!0;const d=Number.isFinite(+c),y=i>=r.length;return c=!c&&R.isArray(s)?s.length:c,y?(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]=gf(s[c])),!d)}if(R.isFormData(e)&&R.isFunction(e.entries)){const r={};return R.forEachEntry(e,(n,s)=>{t(yf(n),s,r,0)}),r}return null}function wf(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(0,JSON.stringify)(e)}const fn={transitional:zi,adapter:["xhr","http","fetch"],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(Hi(t)):t;if(R.isArrayBuffer(t)||R.isBuffer(t)||R.isStream(t)||R.isFile(t)||R.isBlob(t)||R.isReadableStream(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 mf(t,this.formSerializer).toString();if((d=R.isFileList(t))||n.indexOf("multipart/form-data")>-1){const y=this.env&&this.env.FormData;return er(d?{"files[]":t}:t,y&&new y,this.formSerializer)}}return i||s?(r.setContentType("application/json",!1),wf(t)):t}],transformResponse:[function(t){const r=this.transitional||fn.transitional,n=r&&r.forcedJSONParsing,s=this.responseType==="json";if(R.isResponse(t)||R.isReadableStream(t))return t;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"?W.from(d,W.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:ue.classes.FormData,Blob:ue.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=>{fn.headers[e]={}});var dn=fn;const vf=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 bf=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]&&vf[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t};const vo=Symbol("internals");function tt(e){return e&&String(e).trim().toLowerCase()}function Ct(e){return e===!1||e==null?e:R.isArray(e)?e.map(Ct):String(e)}function Ef(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 _f=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Er(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 Sf(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Rf(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 tr{constructor(t){t&&this.set(t)}set(t,r,n){const s=this;function i(d,y,h){const m=tt(y);if(!m)throw new Error("header name must be a non-empty string");const v=R.findKey(s,m);(!v||s[v]===void 0||h===!0||h===void 0&&s[v]!==!1)&&(s[v||y]=Ct(d))}const c=(d,y)=>R.forEach(d,(h,m)=>i(h,m,y));if(R.isPlainObject(t)||t instanceof this.constructor)c(t,r);else if(R.isString(t)&&(t=t.trim())&&!_f(t))c(bf(t),r);else if(R.isHeaders(t))for(const[d,y]of t.entries())i(y,d,n);else t!=null&&i(r,t,n);return this}get(t,r){if(t=tt(t),t){const n=R.findKey(this,t);if(n){const s=this[n];if(!r)return s;if(r===!0)return Ef(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=tt(t),t){const n=R.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Er(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let s=!1;function i(c){if(c=tt(c),c){const d=R.findKey(n,c);d&&(!r||Er(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||Er(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]=Ct(s),delete r[i];return}const d=t?Sf(i):String(i).trim();d!==i&&delete r[i],r[d]=Ct(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[vo]=this[vo]={accessors:{}}).accessors,s=this.prototype;function i(c){const d=tt(c);n[d]||(Rf(s,c),n[d]=!0)}return R.isArray(t)?t.forEach(i):i(t),this}}tr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);R.reduceDescriptors(tr.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});R.freezeMethods(tr);var we=tr;function _r(e,t){const r=this||dn,n=t||r,s=we.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 qi(e){return!!(e&&e.__CANCEL__)}function Ge(e,t,r){W.call(this,e??"canceled",W.ERR_CANCELED,t,r),this.name="CanceledError"}R.inherits(Ge,W,{__CANCEL__:!0});function Vi(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new W("Request failed with status code "+r.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Af(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Of(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(y){const h=Date.now(),m=n[i];c||(c=h),r[s]=y,n[s]=h;let v=i,O=0;for(;v!==s;)O+=r[v++],v=v%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),h-c<t)return;const x=m&&h-m;return x?Math.round(O*1e3/x):void 0}}function Tf(e,t){let r=0,n=1e3/t,s,i;const c=(h,m=Date.now())=>{r=m,s=null,i&&(clearTimeout(i),i=null),e.apply(null,h)};return[(...h)=>{const m=Date.now(),v=m-r;v>=n?c(h,m):(s=h,i||(i=setTimeout(()=>{i=null,c(s)},n-v)))},()=>s&&c(s)]}const Nt=(e,t,r=3)=>{let n=0;const s=Of(50,250);return Tf(i=>{const c=i.loaded,d=i.lengthComputable?i.total:void 0,y=c-n,h=s(y),m=c<=d;n=c;const v={loaded:c,total:d,progress:d?c/d:void 0,bytes:y,rate:h||void 0,estimated:h&&d&&m?(d-c)/h:void 0,event:i,lengthComputable:d!=null,[t?"download":"upload"]:!0};e(v)},r)},bo=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Eo=e=>(...t)=>R.asap(()=>e(...t));var xf=ue.hasStandardBrowserEnv?function(){const t=ue.navigator&&/(msie|trident)/i.test(ue.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}}(),kf=ue.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 Cf(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Df(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Wi(e,t){return e&&!Cf(t)?Df(e,t):t}const _o=e=>e instanceof we?{...e}:e;function $e(e,t){t=t||{};const r={};function n(h,m,v){return R.isPlainObject(h)&&R.isPlainObject(m)?R.merge.call({caseless:v},h,m):R.isPlainObject(m)?R.merge({},m):R.isArray(m)?m.slice():m}function s(h,m,v){if(R.isUndefined(m)){if(!R.isUndefined(h))return n(void 0,h,v)}else return n(h,m,v)}function i(h,m){if(!R.isUndefined(m))return n(void 0,m)}function c(h,m){if(R.isUndefined(m)){if(!R.isUndefined(h))return n(void 0,h)}else return n(void 0,m)}function d(h,m,v){if(v in t)return n(h,m);if(v in e)return n(void 0,h)}const y={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:(h,m)=>s(_o(h),_o(m),!0)};return R.forEach(Object.keys(Object.assign({},e,t)),function(m){const v=y[m]||s,O=v(e[m],t[m],m);R.isUndefined(O)&&v!==d||(r[m]=O)}),r}var Ji=e=>{const t=$e({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:s,xsrfCookieName:i,headers:c,auth:d}=t;t.headers=c=we.from(c),t.url=ji(Wi(t.baseURL,t.url),e.params,e.paramsSerializer),d&&c.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):"")));let y;if(R.isFormData(r)){if(ue.hasStandardBrowserEnv||ue.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if((y=c.getContentType())!==!1){const[h,...m]=y?y.split(";").map(v=>v.trim()).filter(Boolean):[];c.setContentType([h||"multipart/form-data",...m].join("; "))}}if(ue.hasStandardBrowserEnv&&(n&&R.isFunction(n)&&(n=n(t)),n||n!==!1&&xf(t.url))){const h=s&&i&&kf.read(i);h&&c.set(s,h)}return t};const Pf=typeof XMLHttpRequest<"u";var Lf=Pf&&function(e){return new Promise(function(r,n){const s=Ji(e);let i=s.data;const c=we.from(s.headers).normalize();let{responseType:d,onUploadProgress:y,onDownloadProgress:h}=s,m,v,O,x,_;function A(){x&&x(),_&&_(),s.cancelToken&&s.cancelToken.unsubscribe(m),s.signal&&s.signal.removeEventListener("abort",m)}let E=new XMLHttpRequest;E.open(s.method.toUpperCase(),s.url,!0),E.timeout=s.timeout;function P(){if(!E)return;const L=we.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),M={data:!d||d==="text"||d==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:L,config:e,request:E};Vi(function(H){r(H),A()},function(H){n(H),A()},M),E=null}"onloadend"in E?E.onloadend=P:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(P)},E.onabort=function(){E&&(n(new W("Request aborted",W.ECONNABORTED,e,E)),E=null)},E.onerror=function(){n(new W("Network Error",W.ERR_NETWORK,e,E)),E=null},E.ontimeout=function(){let J=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const M=s.transitional||zi;s.timeoutErrorMessage&&(J=s.timeoutErrorMessage),n(new W(J,M.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,E)),E=null},i===void 0&&c.setContentType(null),"setRequestHeader"in E&&R.forEach(c.toJSON(),function(J,M){E.setRequestHeader(M,J)}),R.isUndefined(s.withCredentials)||(E.withCredentials=!!s.withCredentials),d&&d!=="json"&&(E.responseType=s.responseType),h&&([O,_]=Nt(h,!0),E.addEventListener("progress",O)),y&&E.upload&&([v,x]=Nt(y),E.upload.addEventListener("progress",v),E.upload.addEventListener("loadend",x)),(s.cancelToken||s.signal)&&(m=L=>{E&&(n(!L||L.type?new Ge(null,e,E):L),E.abort(),E=null)},s.cancelToken&&s.cancelToken.subscribe(m),s.signal&&(s.signal.aborted?m():s.signal.addEventListener("abort",m)));const F=Af(s.url);if(F&&ue.protocols.indexOf(F)===-1){n(new W("Unsupported protocol "+F+":",W.ERR_BAD_REQUEST,e));return}E.send(i||null)})};const Ff=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,s;const i=function(h){if(!s){s=!0,d();const m=h instanceof Error?h:this.reason;n.abort(m instanceof W?m:new Ge(m instanceof Error?m.message:m))}};let c=t&&setTimeout(()=>{c=null,i(new W(`timeout ${t} of ms exceeded`,W.ETIMEDOUT))},t);const d=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(i):h.removeEventListener("abort",i)}),e=null)};e.forEach(h=>h.addEventListener("abort",i));const{signal:y}=n;return y.unsubscribe=()=>R.asap(d),y}};var Nf=Ff;const Bf=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,s;for(;n<r;)s=n+t,yield e.slice(n,s),n=s},If=async function*(e,t){for await(const r of Mf(e))yield*Bf(r,t)},Mf=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},So=(e,t,r,n)=>{const s=If(e,t);let i=0,c,d=y=>{c||(c=!0,n&&n(y))};return new ReadableStream({async pull(y){try{const{done:h,value:m}=await s.next();if(h){d(),y.close();return}let v=m.byteLength;if(r){let O=i+=v;r(O)}y.enqueue(new Uint8Array(m))}catch(h){throw d(h),h}},cancel(y){return d(y),s.return()}},{highWaterMark:2})},rr=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ki=rr&&typeof ReadableStream=="function",$f=rr&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Gi=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Uf=Ki&&Gi(()=>{let e=!1;const t=new Request(ue.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ro=64*1024,qr=Ki&&Gi(()=>R.isReadableStream(new Response("").body)),Bt={stream:qr&&(e=>e.body)};rr&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Bt[t]&&(Bt[t]=R.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new W(`Response type '${t}' is not supported`,W.ERR_NOT_SUPPORT,n)})})})(new Response);const jf=async e=>{if(e==null)return 0;if(R.isBlob(e))return e.size;if(R.isSpecCompliantForm(e))return(await new Request(ue.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(R.isArrayBufferView(e)||R.isArrayBuffer(e))return e.byteLength;if(R.isURLSearchParams(e)&&(e=e+""),R.isString(e))return(await $f(e)).byteLength},zf=async(e,t)=>{const r=R.toFiniteNumber(e.getContentLength());return r??jf(t)};var Hf=rr&&(async e=>{let{url:t,method:r,data:n,signal:s,cancelToken:i,timeout:c,onDownloadProgress:d,onUploadProgress:y,responseType:h,headers:m,withCredentials:v="same-origin",fetchOptions:O}=Ji(e);h=h?(h+"").toLowerCase():"text";let x=Nf([s,i&&i.toAbortSignal()],c),_;const A=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let E;try{if(y&&Uf&&r!=="get"&&r!=="head"&&(E=await zf(m,n))!==0){let M=new Request(t,{method:"POST",body:n,duplex:"half"}),N;if(R.isFormData(n)&&(N=M.headers.get("content-type"))&&m.setContentType(N),M.body){const[H,U]=bo(E,Nt(Eo(y)));n=So(M.body,Ro,H,U)}}R.isString(v)||(v=v?"include":"omit");const P="credentials"in Request.prototype;_=new Request(t,{...O,signal:x,method:r.toUpperCase(),headers:m.normalize().toJSON(),body:n,duplex:"half",credentials:P?v:void 0});let F=await fetch(_);const L=qr&&(h==="stream"||h==="response");if(qr&&(d||L&&A)){const M={};["status","statusText","headers"].forEach(z=>{M[z]=F[z]});const N=R.toFiniteNumber(F.headers.get("content-length")),[H,U]=d&&bo(N,Nt(Eo(d),!0))||[];F=new Response(So(F.body,Ro,H,()=>{U&&U(),A&&A()}),M)}h=h||"text";let J=await Bt[R.findKey(Bt,h)||"text"](F,e);return!L&&A&&A(),await new Promise((M,N)=>{Vi(M,N,{data:J,headers:we.from(F.headers),status:F.status,statusText:F.statusText,config:e,request:_})})}catch(P){throw A&&A(),P&&P.name==="TypeError"&&/fetch/i.test(P.message)?Object.assign(new W("Network Error",W.ERR_NETWORK,e,_),{cause:P.cause||P}):W.from(P,P&&P.code,e,_)}});const Vr={http:tf,xhr:Lf,fetch:Hf};R.forEach(Vr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ao=e=>`- ${e}`,qf=e=>R.isFunction(e)||e===null||e===!1;var Qi={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,!qf(r)&&(n=Vr[(c=String(r)).toLowerCase()],n===void 0))throw new W(`Unknown adapter '${c}'`);if(n)break;s[c||"#"+i]=n}if(!n){const i=Object.entries(s).map(([d,y])=>`adapter ${d} `+(y===!1?"is not supported by the environment":"is not available in the build"));let c=t?i.length>1?`since :
|
|
`+i.map(Ao).join(`
|
|
`):" "+Ao(i[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return n},adapters:Vr};function Sr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ge(null,e)}function Oo(e){return Sr(e),e.headers=we.from(e.headers),e.data=_r.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Qi.getAdapter(e.adapter||dn.adapter)(e).then(function(n){return Sr(e),n.data=_r.call(e,e.transformResponse,n),n.headers=we.from(n.headers),n},function(n){return qi(n)||(Sr(e),n&&n.response&&(n.response.data=_r.call(e,e.transformResponse,n.response),n.response.headers=we.from(n.response.headers))),Promise.reject(n)})}const Xi="1.7.7",hn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{hn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const To={};hn.transitional=function(t,r,n){function s(i,c){return"[Axios v"+Xi+"] Transitional option '"+i+"'"+c+(n?". "+n:"")}return(i,c,d)=>{if(t===!1)throw new W(s(c," has been removed"+(r?" in "+r:"")),W.ERR_DEPRECATED);return r&&!To[c]&&(To[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 Vf(e,t,r){if(typeof e!="object")throw new W("options must be an object",W.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],y=d===void 0||c(d,i,e);if(y!==!0)throw new W("option "+i+" must be "+y,W.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new W("Unknown option "+i,W.ERR_BAD_OPTION)}}var Wr={assertOptions:Vf,validators:hn};const xe=Wr.validators;class It{constructor(t){this.defaults=t,this.interceptors={request:new wo,response:new wo}}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/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
`+i):n.stack=i}catch{}}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&&Wr.assertOptions(n,{silentJSONParsing:xe.transitional(xe.boolean),forcedJSONParsing:xe.transitional(xe.boolean),clarifyTimeoutError:xe.transitional(xe.boolean)},!1),s!=null&&(R.isFunction(s)?r.paramsSerializer={serialize:s}:Wr.assertOptions(s,{encode:xe.function,serialize:xe.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"],_=>{delete i[_]}),r.headers=we.concat(c,i);const d=[];let y=!0;this.interceptors.request.forEach(function(A){typeof A.runWhen=="function"&&A.runWhen(r)===!1||(y=y&&A.synchronous,d.unshift(A.fulfilled,A.rejected))});const h=[];this.interceptors.response.forEach(function(A){h.push(A.fulfilled,A.rejected)});let m,v=0,O;if(!y){const _=[Oo.bind(this),void 0];for(_.unshift.apply(_,d),_.push.apply(_,h),O=_.length,m=Promise.resolve(r);v<O;)m=m.then(_[v++],_[v++]);return m}O=d.length;let x=r;for(v=0;v<O;){const _=d[v++],A=d[v++];try{x=_(x)}catch(E){A.call(this,E);break}}try{m=Oo.call(this,x)}catch(_){return Promise.reject(_)}for(v=0,O=h.length;v<O;)m=m.then(h[v++],h[v++]);return m}getUri(t){t=$e(this.defaults,t);const r=Wi(t.baseURL,t.url);return ji(r,t.params,t.paramsSerializer)}}R.forEach(["delete","get","head","options"],function(t){It.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}))}}It.prototype[t]=r(),It.prototype[t+"Form"]=r(!0)});var Dt=It;class pn{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 Ge(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)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new pn(function(s){t=s}),cancel:t}}}var Wf=pn;function Jf(e){return function(r){return e.apply(null,r)}}function Kf(e){return R.isObject(e)&&e.isAxiosError===!0}const Jr={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(Jr).forEach(([e,t])=>{Jr[t]=e});var Gf=Jr;function Zi(e){const t=new Dt(e),r=ki(Dt.prototype.request,t);return R.extend(r,Dt.prototype,t,{allOwnKeys:!0}),R.extend(r,t,null,{allOwnKeys:!0}),r.create=function(s){return Zi($e(e,s))},r}const te=Zi(dn);te.Axios=Dt;te.CanceledError=Ge;te.CancelToken=Wf;te.isCancel=qi;te.VERSION=Xi;te.toFormData=er;te.AxiosError=W;te.Cancel=te.CanceledError;te.all=function(t){return Promise.all(t)};te.spread=Jf;te.isAxiosError=Kf;te.mergeConfig=$e;te.AxiosHeaders=we;te.formToJSON=e=>Hi(R.isHTMLForm(e)?new FormData(e):e);te.getAdapter=Qi.getAdapter;te.HttpStatusCode=Gf;te.default=te;var Qf=te,Xf=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 Zf=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 Yf(e){return typeof Blob>"u"?!1:e instanceof Blob||Object.prototype.toString.call(e)==="[object Blob]"}var ed=Yf,xo=Qf,Yi=Xf,td=Zf,rd=ed,es=Object.prototype.toString;function ts(e,t){for(var r=e.length,n=0;n<r;n++){var s=e[n];if(t(s))return s}}function rs(e){return es.call(e)==="[object Function]"}function ns(e){return e!==null&&typeof e=="object"}function nd(e){return ns(e)&&rs(e.pipe)}function od(e){return es.call(e)==="[object ArrayBuffer]"}function ko(e,t){return e?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):t}function id(e,t,r,n,s,i,c){return ts(e[t.toLowerCase()],function(d){if(typeof d[0]=="string")return(Co(r,d[0])||Co(ko(c,r),d[0]))&&Kr(t,n,s,d[1])&&Mt(i,d[2]);if(d[0]instanceof RegExp)return(d[0].test(r)||d[0].test(ko(c,r)))&&Kr(t,n,s,d[1])&&Mt(i,d[2])})}function Co(e,t){var r=e[0]==="/"?e.substr(1):e,n=t[0]==="/"?t.substr(1):t;return r===n}function Kr(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 Mt(r,c)&&Do(t,i)}else return Do(t,n)}function Mt(e,t){return t===void 0?!0:typeof t.asymmetricMatch=="function"?t.asymmetricMatch(e):Yi(e,t)}function Do(e,t){if(t===void 0)return!0;var r;try{r=JSON.parse(e)}catch{}return Mt(r||e,t)}function sd(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 os(e,t,r,n){if(n>0){setTimeout(os,n,e,t,r);return}!r.config.validateStatus||r.config.validateStatus(r.status)?e(r):t(is("Request failed with status code "+r.status,r.config,r))}function is(e,t,r,n){if(typeof xo.AxiosError=="function")return xo.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 ad(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 ss={find:ts,findHandler:id,purgeIfReplyOnce:sd,settle:os,isStream:nd,isArrayBuffer:od,isFunction:rs,isObjectOrArray:ns,isBuffer:td,isBlob:rd,isBodyOrParametersMatching:Kr,isEqual:Yi,createAxiosError:is,createCouldNotFindMockError:ad},le=ss;function cd(e){return le.isArrayBuffer(e)||le.isBuffer(e)||le.isStream(e)||le.isBlob(e)?e:le.isObjectOrArray(e)?JSON.parse(JSON.stringify(e)):e}function Et(e,t){return{status:e[0],data:cd(e[1]),headers:e[2],config:t,request:{responseURL:t.url}}}function Po(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 ud(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=le.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&&le.purgeIfReplyOnce(e,i),i.length===2)Po(e,t,r,n);else if(typeof i[3]!="function")le.settle(t,r,Et(i.slice(3),n),_t(e,i));else{var c=i[3](n);typeof c.then!="function"?le.settle(t,r,Et(c,n),_t(e,i)):c.then(function(d){d.config&&d.status?le.settle(t,r,Et([d.status,d.data,d.headers],d.config),0):le.settle(t,r,Et(d,n),_t(e,i))},function(d){e.delayResponse>0?setTimeout(function(){r(d)},_t(e,i)):r(d)})}else switch(e.onNoMatch){case"passthrough":Po(e,t,r,n);break;case"throwException":throw le.createCouldNotFindMockError(n);default:le.settle(t,r,{status:404,config:n},e.delayResponse)}}function _t(e,t){var r;return t.length===8&&(r=t[7]),r||e.delayResponse}var ld=ud,fd=ld,Ce=ss,mn=["get","post","head","delete","patch","put","options","list","link","unlink"];function dd(){return(function(e){var t=this;return new Promise(function(r,n){fd(t,r,n,e)})}).bind(this)}function as(){return mn.reduce(function(e,t){return e[t]=[],e},{})}function cs(){us.call(this),ls.call(this)}function us(){this.handlers=as()}function ls(){this.history=as()}function De(e,t){if(cs.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")}De.prototype.adapter=dd;De.prototype.restore=function(){this.axiosInstance&&(this.axiosInstance.defaults.adapter=this.originalAdapter,this.axiosInstance=void 0)};De.prototype.reset=cs;De.prototype.resetHandlers=us;De.prototype.resetHistory=ls;mn.concat("any").forEach(function(e){var t="on"+e.charAt(0).toUpperCase()+e.slice(1);De.prototype[t]=function(c,n,s){var i=this,c=c===void 0?/.*/:c;function d(v,O,x){var _=[c,n,s,v,O,x];return St(e,i.handlers,_),i}function y(v,O,x,_){var A=[c,n,s,O,x,_,!1,v];return St(e,i.handlers,A),i}function h(v){return function(O,x,_){y(v,O,x,_)}}function m(v,O,x){var _=[c,n,s,v,O,x,!0];return St(e,i.handlers,_),i}return{reply:d,replyOnce:m,withDelayInMs:h,passThrough:function(){var O=[c,n];return St(e,i.handlers,O),i},abortRequest:function(){return d(function(v){var O=Ce.createAxiosError("Request aborted",v,void 0,"ECONNABORTED");return Promise.reject(O)})},abortRequestOnce:function(){return m(function(v){var O=Ce.createAxiosError("Request aborted",v,void 0,"ECONNABORTED");return Promise.reject(O)})},networkError:function(){return d(function(v){var O=Ce.createAxiosError("Network Error",v);return Promise.reject(O)})},networkErrorOnce:function(){return m(function(v){var O=Ce.createAxiosError("Network Error",v);return Promise.reject(O)})},timeout:function(){return d(function(v){var O=Ce.createAxiosError(v.timeoutErrorMessage||"timeout of "+v.timeout+"ms exceeded",v,void 0,v.transitional&&v.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED");return Promise.reject(O)})},timeoutOnce:function(){return m(function(v){var O=Ce.createAxiosError(v.timeoutErrorMessage||"timeout of "+v.timeout+"ms exceeded",v,void 0,v.transitional&&v.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED");return Promise.reject(O)})}}}});function hd(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],y=d&&Ce.isEqual(i[1],r[1])&&Ce.isEqual(i[2],r[2]);y&&!c&&(n=s)}return n}function St(e,t,r){if(e==="any")mn.forEach(function(s){t[s].push(r)});else{var n=hd(e,t,r);n>-1&&r.length<7?t[e].splice(n,1,r):t[e].push(r)}}an.exports=De;an.exports.default=De;var pd=an.exports;const $d=wa(pd),Re=typeof window<"u"&&window!==null,Lo=function(){return Re&&"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}(),rt="event",Fo="observer",md=function(){if(Re)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 nt(e,t){if(!e.length)return;const r=e.indexOf(t);return r>-1?e.splice(r,1):void 0}function No(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(m=>(m=m.trim(),s=m.lastIndexOf(" "),s===-1?(i=m,c=999998):(i=m.substr(0,s),c=parseInt(m.substr(s+1,m.length-s-2),10)),[c,i]));d.sort(function(m,v){if(m[0]<v[0])return 1;if(m[0]>v[0])return-1;if(m[0]===v[0]){if(v[1].indexOf(".webp",v[1].length-5)!==-1)return 1;if(m[1].indexOf(".webp",m[1].length-5)!==-1)return-1}return 0});let y,h="";for(let m=0;m<d.length;m++){y=d[m],h=y[1];const v=d[m+1];if(v&&v[0]<n){h=y[1];break}if(!v){h=y[1];break}}return h}const yd=(e=1)=>Re&&window.devicePixelRatio||e;function gd(){if(!Re)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 wd=function(){if(!Re)return;let e=!1;try{let t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch{}return e}(),vd={on(e,t,r,n=!1){wd?e.addEventListener(t,r,{capture:n,passive:!0}):e.addEventListener(t,r,n)},off(e,t,r,n=!1){e.removeEventListener(t,r,n)}},Gr=(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)}},Rr=(e,t)=>typeof getComputedStyle<"u"?getComputedStyle(e,null).getPropertyValue(t):e.style[t],bd=e=>Rr(e,"overflow")+Rr(e,"overflow-y")+Rr(e,"overflow-x");function fs(){}class Ed{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 _d{constructor({el:t,src:r,error:n,loading:s,bindType:i,$parent:c,options:d,cors:y,elRenderer:h,imageCache:m}){this.el=t,this.src=r,this.error=n,this.loading=s,this.bindType=i,this.attempt=0,this.cors=y,this.naturalHeight=0,this.naturalWidth=0,this.options=d,this.rect=null,this.$parent=c,this.elRenderer=h,this._imageCache=m,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,Gr({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=fs){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"),Gr({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 Bo="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Sd=["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"],Rd={rootMargin:"0px",threshold:0};function Ad(){return class{constructor({preLoad:e,error:t,throttleWait:r,preLoadTop:n,dispatchEvent:s,loading:i,attempt:c,silent:d=!0,scale:y,listenEvents:h,filter:m,adapter:v,observer:O,observerOptions:x}){this.mode=rt,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||Bo,loading:i||Bo,attempt:c||3,scale:y||yd(y),ListenEvents:h||Sd,hasbind:!1,supportWebp:gd(),filter:m||{},adapter:v||{},observer:!!O,observerOptions:x||Rd},this._initEvent(),this._imageCache=new Ed({max:200}),this.lazyLoadHandler=function(_,A){let E=null,P=0;return function(...F){if(E)return;let L=function(){P=Date.now(),E=!1,_.apply(this,F)};Date.now()-P>=A?L():E=setTimeout(L,A)}}(this._lazyLoadHandler.bind(this),this.options.throttleWait),this.setMode(this.options.observer?Fo:rt)}config(e={}){Object.assign(this.options,e)}performance(){return this.ListenerQueue.map(e=>e.performance())}addLazyBox(e){this.ListenerQueue.push(e),Re&&(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=No(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(!Re)return;if(!(d instanceof HTMLElement))return window;let y=d;for(;y&&y!==document.body&&y!==document.documentElement&&y.parentNode;){if(/(scroll|auto)/.test(bd(y)))return y;y=y.parentNode}return window})(e));const c=new _d({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),Re&&(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=No(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),nt(this.ListenerQueue,t),t.$destroy&&t.$destroy())}removeComponent(e){e&&(nt(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){Lo||e!==Fo||(e=rt),this.mode=e,e===rt?(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===rt&&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=>vd[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)nt(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=>{nt(this.ListenerQueue,t),t.$destroy&&t.$destroy()})}_initIntersectionObserver(){Lo&&(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 md(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 Od=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(),Re&&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 Td={selector:"img"};class xd{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({},Td,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 kd{constructor({lazy:t}){this.lazy=t,this._queue=[]}bind(t,r){const n=new xd({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(),nt(this._queue,r))}}var Cd=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(),Re&&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=fs){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;Gr({src:r},({src:n})=>{this.renderSrc=n,this.state.loaded=!0},()=>{this.state.attempt++,this.renderSrc=this.options.error,this.state.error=!0})}}}),Ud={install(e,t={}){if(Number(e.version.split(".")[0])<3)return new Error("Vue version at least 3.0");const r=new(Ad())(t),n=new kd({lazy:r});e.provide("Lazyload",r),e.config.globalProperties.$Lazyload=r,t.lazyComponent&&e.component("LazyComponent",Od(r)),t.lazyImage&&e.component("LazyImage",Cd(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{Pd as I,$d as M,Ud as T,re as a,Fd as b,Ld as c,ba as d,Nd as m};
|