@opencloud-eu/web-pkg 3.2.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,50 +0,0 @@
1
- var c1=Object.defineProperty;var Mf=Te=>{throw TypeError(Te)};var f1=(Te,Ie,qe)=>Ie in Te?c1(Te,Ie,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Te[Ie]=qe;var ye=(Te,Ie,qe)=>f1(Te,typeof Ie!="symbol"?Ie+"":Ie,qe),Js=(Te,Ie,qe)=>Ie.has(Te)||Mf("Cannot "+qe);var Z=(Te,Ie,qe)=>(Js(Te,Ie,"read from private field"),qe?qe.call(Te):Ie.get(Te)),Oe=(Te,Ie,qe)=>Ie.has(Te)?Mf("Cannot add the same private member more than once"):Ie instanceof WeakSet?Ie.add(Te):Ie.set(Te,qe),ve=(Te,Ie,qe,Qt)=>(Js(Te,Ie,"write to private field"),Qt?Qt.call(Te,qe):Ie.set(Te,qe),qe),$e=(Te,Ie,qe)=>(Js(Te,Ie,"access private method"),qe);var sn=(Te,Ie,qe,Qt)=>({set _(ti){ve(Te,Ie,ti,qe)},get _(){return Z(Te,Ie,Qt)}});(function(){"use strict";var At,Rr,Ir,Kt,en,Pr,tn,Tt,Fr,pt,rn,St,Cr,Ht,nn,Xn,_e,Df,$f,qf,Hf,Vf,Jn,Zs,Qs,Zn,Wf,Qn,tt,nt,Vt,ke,Ye,zt,cr,Xt,Ct,fr,on,hr,Kf,Yt,ei,ea,zf;var Te=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ie(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qe={exports:{}},Qt;function ti(){return Qt||(Qt=1,function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function o(c,l,s){this.fn=c,this.context=l,this.once=s||!1}function i(c,l,s,f,h){if(typeof s!="function")throw new TypeError("The listener must be a function");var b=new o(s,f||c,h),m=r?r+l:l;return c._events[m]?c._events[m].fn?c._events[m]=[c._events[m],b]:c._events[m].push(b):(c._events[m]=b,c._eventsCount++),c}function a(c,l){--c._eventsCount===0?c._events=new n:delete c._events[l]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var l=[],s,f;if(this._eventsCount===0)return l;for(f in s=this._events)t.call(s,f)&&l.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(s)):l},u.prototype.listeners=function(l){var s=r?r+l:l,f=this._events[s];if(!f)return[];if(f.fn)return[f.fn];for(var h=0,b=f.length,m=new Array(b);h<b;h++)m[h]=f[h].fn;return m},u.prototype.listenerCount=function(l){var s=r?r+l:l,f=this._events[s];return f?f.fn?1:f.length:0},u.prototype.emit=function(l,s,f,h,b,m){var x=r?r+l:l;if(!this._events[x])return!1;var A=this._events[x],g=arguments.length,d,p;if(A.fn){switch(A.once&&this.removeListener(l,A.fn,void 0,!0),g){case 1:return A.fn.call(A.context),!0;case 2:return A.fn.call(A.context,s),!0;case 3:return A.fn.call(A.context,s,f),!0;case 4:return A.fn.call(A.context,s,f,h),!0;case 5:return A.fn.call(A.context,s,f,h,b),!0;case 6:return A.fn.call(A.context,s,f,h,b,m),!0}for(p=1,d=new Array(g-1);p<g;p++)d[p-1]=arguments[p];A.fn.apply(A.context,d)}else{var y=A.length,v;for(p=0;p<y;p++)switch(A[p].once&&this.removeListener(l,A[p].fn,void 0,!0),g){case 1:A[p].fn.call(A[p].context);break;case 2:A[p].fn.call(A[p].context,s);break;case 3:A[p].fn.call(A[p].context,s,f);break;case 4:A[p].fn.call(A[p].context,s,f,h);break;default:if(!d)for(v=1,d=new Array(g-1);v<g;v++)d[v-1]=arguments[v];A[p].fn.apply(A[p].context,d)}}return!0},u.prototype.on=function(l,s,f){return i(this,l,s,f,!1)},u.prototype.once=function(l,s,f){return i(this,l,s,f,!0)},u.prototype.removeListener=function(l,s,f,h){var b=r?r+l:l;if(!this._events[b])return this;if(!s)return a(this,b),this;var m=this._events[b];if(m.fn)m.fn===s&&(!h||m.once)&&(!f||m.context===f)&&a(this,b);else{for(var x=0,A=[],g=m.length;x<g;x++)(m[x].fn!==s||h&&!m[x].once||f&&m[x].context!==f)&&A.push(m[x]);A.length?this._events[b]=A.length===1?A[0]:A:a(this,b)}return this},u.prototype.removeAllListeners=function(l){var s;return l?(s=r?r+l:l,this._events[s]&&a(this,s)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u}(qe)),qe.exports}var Xf=ti(),Yf=Ie(Xf);class ta extends Error{constructor(t){super(t),this.name="TimeoutError"}}class Jf extends Error{constructor(t){super(),this.name="AbortError",this.message=t}}const ra=e=>globalThis.DOMException===void 0?new Jf(e):new DOMException(e),na=e=>{const t=e.reason===void 0?ra("This operation was aborted."):e.reason;return t instanceof Error?t:ra(t)};function Zf(e,t){const{milliseconds:r,fallback:n,message:o,customTimers:i={setTimeout,clearTimeout}}=t;let a,u;const l=new Promise((s,f)=>{if(typeof r!="number"||Math.sign(r)!==1)throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${r}\``);if(t.signal){const{signal:b}=t;b.aborted&&f(na(b)),u=()=>{f(na(b))},b.addEventListener("abort",u,{once:!0})}if(r===Number.POSITIVE_INFINITY){e.then(s,f);return}const h=new ta;a=i.setTimeout.call(void 0,()=>{if(n){try{s(n())}catch(b){f(b)}return}typeof e.cancel=="function"&&e.cancel(),o===!1?s():o instanceof Error?f(o):(h.message=o??`Promise timed out after ${r} milliseconds`,f(h))},r),(async()=>{try{s(await e)}catch(b){f(b)}})()}).finally(()=>{l.clear(),u&&t.signal&&t.signal.removeEventListener("abort",u)});return l.clear=()=>{i.clearTimeout.call(void 0,a),a=void 0},l}function Qf(e,t,r){let n=0,o=e.length;for(;o>0;){const i=Math.trunc(o/2);let a=n+i;r(e[a],t)<=0?(n=++a,o-=i+1):o=i}return n}class eh{constructor(){Oe(this,At,[])}enqueue(t,r){r={priority:0,...r};const n={priority:r.priority,id:r.id,run:t};if(this.size===0||Z(this,At)[this.size-1].priority>=r.priority){Z(this,At).push(n);return}const o=Qf(Z(this,At),n,(i,a)=>a.priority-i.priority);Z(this,At).splice(o,0,n)}setPriority(t,r){const n=Z(this,At).findIndex(i=>i.id===t);if(n===-1)throw new ReferenceError(`No promise function with the id "${t}" exists in the queue.`);const[o]=Z(this,At).splice(n,1);this.enqueue(o.run,{priority:r,id:t})}dequeue(){const t=Z(this,At).shift();return t==null?void 0:t.run}filter(t){return Z(this,At).filter(r=>r.priority===t.priority).map(r=>r.run)}get size(){return Z(this,At).length}}At=new WeakMap;class th extends Yf{constructor(r){var n,o;super();Oe(this,_e);Oe(this,Rr);Oe(this,Ir);Oe(this,Kt,0);Oe(this,en);Oe(this,Pr);Oe(this,tn,0);Oe(this,Tt);Oe(this,Fr);Oe(this,pt);Oe(this,rn);Oe(this,St,0);Oe(this,Cr);Oe(this,Ht);Oe(this,nn);Oe(this,Xn,1n);ye(this,"timeout");if(r={carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:eh,...r},!(typeof r.intervalCap=="number"&&r.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${((n=r.intervalCap)==null?void 0:n.toString())??""}\` (${typeof r.intervalCap})`);if(r.interval===void 0||!(Number.isFinite(r.interval)&&r.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${((o=r.interval)==null?void 0:o.toString())??""}\` (${typeof r.interval})`);ve(this,Rr,r.carryoverConcurrencyCount),ve(this,Ir,r.intervalCap===Number.POSITIVE_INFINITY||r.interval===0),ve(this,en,r.intervalCap),ve(this,Pr,r.interval),ve(this,pt,new r.queueClass),ve(this,rn,r.queueClass),this.concurrency=r.concurrency,this.timeout=r.timeout,ve(this,nn,r.throwOnTimeout===!0),ve(this,Ht,r.autoStart===!1)}get concurrency(){return Z(this,Cr)}set concurrency(r){if(!(typeof r=="number"&&r>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${r}\` (${typeof r})`);ve(this,Cr,r),$e(this,_e,Zn).call(this)}setPriority(r,n){Z(this,pt).setPriority(r,n)}async add(r,n={}){return n.id??(n.id=(sn(this,Xn)._++).toString()),n={timeout:this.timeout,throwOnTimeout:Z(this,nn),...n},new Promise((o,i)=>{Z(this,pt).enqueue(async()=>{var a;sn(this,St)._++,sn(this,Kt)._++;try{(a=n.signal)==null||a.throwIfAborted();let u=r({signal:n.signal});n.timeout&&(u=Zf(Promise.resolve(u),{milliseconds:n.timeout})),n.signal&&(u=Promise.race([u,$e(this,_e,Wf).call(this,n.signal)]));const c=await u;o(c),this.emit("completed",c)}catch(u){if(u instanceof ta&&!n.throwOnTimeout){o();return}i(u),this.emit("error",u)}finally{$e(this,_e,qf).call(this)}},n),this.emit("add"),$e(this,_e,Jn).call(this)})}async addAll(r,n){return Promise.all(r.map(async o=>this.add(o,n)))}start(){return Z(this,Ht)?(ve(this,Ht,!1),$e(this,_e,Zn).call(this),this):this}pause(){ve(this,Ht,!0)}clear(){ve(this,pt,new(Z(this,rn)))}async onEmpty(){Z(this,pt).size!==0&&await $e(this,_e,Qn).call(this,"empty")}async onSizeLessThan(r){Z(this,pt).size<r||await $e(this,_e,Qn).call(this,"next",()=>Z(this,pt).size<r)}async onIdle(){Z(this,St)===0&&Z(this,pt).size===0||await $e(this,_e,Qn).call(this,"idle")}get size(){return Z(this,pt).size}sizeBy(r){return Z(this,pt).filter(r).length}get pending(){return Z(this,St)}get isPaused(){return Z(this,Ht)}}Rr=new WeakMap,Ir=new WeakMap,Kt=new WeakMap,en=new WeakMap,Pr=new WeakMap,tn=new WeakMap,Tt=new WeakMap,Fr=new WeakMap,pt=new WeakMap,rn=new WeakMap,St=new WeakMap,Cr=new WeakMap,Ht=new WeakMap,nn=new WeakMap,Xn=new WeakMap,_e=new WeakSet,Df=function(){return Z(this,Ir)||Z(this,Kt)<Z(this,en)},$f=function(){return Z(this,St)<Z(this,Cr)},qf=function(){sn(this,St)._--,$e(this,_e,Jn).call(this),this.emit("next")},Hf=function(){$e(this,_e,Qs).call(this),$e(this,_e,Zs).call(this),ve(this,Fr,void 0)},Vf=function(){const r=Date.now();if(Z(this,Tt)===void 0){const n=Z(this,tn)-r;if(n<0)ve(this,Kt,Z(this,Rr)?Z(this,St):0);else return Z(this,Fr)===void 0&&ve(this,Fr,setTimeout(()=>{$e(this,_e,Hf).call(this)},n)),!0}return!1},Jn=function(){if(Z(this,pt).size===0)return Z(this,Tt)&&clearInterval(Z(this,Tt)),ve(this,Tt,void 0),this.emit("empty"),Z(this,St)===0&&this.emit("idle"),!1;if(!Z(this,Ht)){const r=!Z(this,_e,Vf);if(Z(this,_e,Df)&&Z(this,_e,$f)){const n=Z(this,pt).dequeue();return n?(this.emit("active"),n(),r&&$e(this,_e,Zs).call(this),!0):!1}}return!1},Zs=function(){Z(this,Ir)||Z(this,Tt)!==void 0||(ve(this,Tt,setInterval(()=>{$e(this,_e,Qs).call(this)},Z(this,Pr))),ve(this,tn,Date.now()+Z(this,Pr)))},Qs=function(){Z(this,Kt)===0&&Z(this,St)===0&&Z(this,Tt)&&(clearInterval(Z(this,Tt)),ve(this,Tt,void 0)),ve(this,Kt,Z(this,Rr)?Z(this,St):0),$e(this,_e,Zn).call(this)},Zn=function(){for(;$e(this,_e,Jn).call(this););},Wf=async function(r){return new Promise((n,o)=>{r.addEventListener("abort",()=>{o(r.reason)},{once:!0})})},Qn=async function(r,n){return new Promise(o=>{const i=()=>{n&&!n()||(this.off(r,i),o())};this.on(r,i)})};function rh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ia={exports:{}},ze=ia.exports={},Rt,It;function ri(){throw new Error("setTimeout has not been defined")}function ni(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Rt=setTimeout:Rt=ri}catch{Rt=ri}try{typeof clearTimeout=="function"?It=clearTimeout:It=ni}catch{It=ni}})();function oa(e){if(Rt===setTimeout)return setTimeout(e,0);if((Rt===ri||!Rt)&&setTimeout)return Rt=setTimeout,setTimeout(e,0);try{return Rt(e,0)}catch{try{return Rt.call(null,e,0)}catch{return Rt.call(this,e,0)}}}function nh(e){if(It===clearTimeout)return clearTimeout(e);if((It===ni||!It)&&clearTimeout)return It=clearTimeout,clearTimeout(e);try{return It(e)}catch{try{return It.call(null,e)}catch{return It.call(this,e)}}}var Lt=[],dr=!1,er,an=-1;function ih(){!dr||!er||(dr=!1,er.length?Lt=er.concat(Lt):an=-1,Lt.length&&sa())}function sa(){if(!dr){var e=oa(ih);dr=!0;for(var t=Lt.length;t;){for(er=Lt,Lt=[];++an<t;)er&&er[an].run();an=-1,t=Lt.length}er=null,dr=!1,nh(e)}}ze.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Lt.push(new aa(e,t)),Lt.length===1&&!dr&&oa(sa)};function aa(e,t){this.fun=e,this.array=t}aa.prototype.run=function(){this.fun.apply(null,this.array)},ze.title="browser",ze.browser=!0,ze.env={},ze.argv=[],ze.version="",ze.versions={};function Ut(){}ze.on=Ut,ze.addListener=Ut,ze.once=Ut,ze.off=Ut,ze.removeListener=Ut,ze.removeAllListeners=Ut,ze.emit=Ut,ze.prependListener=Ut,ze.prependOnceListener=Ut,ze.listeners=function(e){return[]},ze.binding=function(e){throw new Error("process.binding is not supported")},ze.cwd=function(){return"/"},ze.chdir=function(e){throw new Error("process.chdir is not supported")},ze.umask=function(){return 0};var oh=ia.exports;const me=rh(oh);var ii,ua;function sh(){if(ua)return ii;ua=1;function e(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function t(o,i){for(var a="",u=0,c=-1,l=0,s,f=0;f<=o.length;++f){if(f<o.length)s=o.charCodeAt(f);else{if(s===47)break;s=47}if(s===47){if(!(c===f-1||l===1))if(c!==f-1&&l===2){if(a.length<2||u!==2||a.charCodeAt(a.length-1)!==46||a.charCodeAt(a.length-2)!==46){if(a.length>2){var h=a.lastIndexOf("/");if(h!==a.length-1){h===-1?(a="",u=0):(a=a.slice(0,h),u=a.length-1-a.lastIndexOf("/")),c=f,l=0;continue}}else if(a.length===2||a.length===1){a="",u=0,c=f,l=0;continue}}i&&(a.length>0?a+="/..":a="..",u=2)}else a.length>0?a+="/"+o.slice(c+1,f):a=o.slice(c+1,f),u=f-c-1;c=f,l=0}else s===46&&l!==-1?++l:l=-1}return a}function r(o,i){var a=i.dir||i.root,u=i.base||(i.name||"")+(i.ext||"");return a?a===i.root?a+u:a+o+u:u}var n={resolve:function(){for(var i="",a=!1,u,c=arguments.length-1;c>=-1&&!a;c--){var l;c>=0?l=arguments[c]:(u===void 0&&(u=me.cwd()),l=u),e(l),l.length!==0&&(i=l+"/"+i,a=l.charCodeAt(0)===47)}return i=t(i,!a),a?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(i){if(e(i),i.length===0)return".";var a=i.charCodeAt(0)===47,u=i.charCodeAt(i.length-1)===47;return i=t(i,!a),i.length===0&&!a&&(i="."),i.length>0&&u&&(i+="/"),a?"/"+i:i},isAbsolute:function(i){return e(i),i.length>0&&i.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var i,a=0;a<arguments.length;++a){var u=arguments[a];e(u),u.length>0&&(i===void 0?i=u:i+="/"+u)}return i===void 0?".":n.normalize(i)},relative:function(i,a){if(e(i),e(a),i===a||(i=n.resolve(i),a=n.resolve(a),i===a))return"";for(var u=1;u<i.length&&i.charCodeAt(u)===47;++u);for(var c=i.length,l=c-u,s=1;s<a.length&&a.charCodeAt(s)===47;++s);for(var f=a.length,h=f-s,b=l<h?l:h,m=-1,x=0;x<=b;++x){if(x===b){if(h>b){if(a.charCodeAt(s+x)===47)return a.slice(s+x+1);if(x===0)return a.slice(s+x)}else l>b&&(i.charCodeAt(u+x)===47?m=x:x===0&&(m=0));break}var A=i.charCodeAt(u+x),g=a.charCodeAt(s+x);if(A!==g)break;A===47&&(m=x)}var d="";for(x=u+m+1;x<=c;++x)(x===c||i.charCodeAt(x)===47)&&(d.length===0?d+="..":d+="/..");return d.length>0?d+a.slice(s+m):(s+=m,a.charCodeAt(s)===47&&++s,a.slice(s))},_makeLong:function(i){return i},dirname:function(i){if(e(i),i.length===0)return".";for(var a=i.charCodeAt(0),u=a===47,c=-1,l=!0,s=i.length-1;s>=1;--s)if(a=i.charCodeAt(s),a===47){if(!l){c=s;break}}else l=!1;return c===-1?u?"/":".":u&&c===1?"//":i.slice(0,c)},basename:function(i,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');e(i);var u=0,c=-1,l=!0,s;if(a!==void 0&&a.length>0&&a.length<=i.length){if(a.length===i.length&&a===i)return"";var f=a.length-1,h=-1;for(s=i.length-1;s>=0;--s){var b=i.charCodeAt(s);if(b===47){if(!l){u=s+1;break}}else h===-1&&(l=!1,h=s+1),f>=0&&(b===a.charCodeAt(f)?--f===-1&&(c=s):(f=-1,c=h))}return u===c?c=h:c===-1&&(c=i.length),i.slice(u,c)}else{for(s=i.length-1;s>=0;--s)if(i.charCodeAt(s)===47){if(!l){u=s+1;break}}else c===-1&&(l=!1,c=s+1);return c===-1?"":i.slice(u,c)}},extname:function(i){e(i);for(var a=-1,u=0,c=-1,l=!0,s=0,f=i.length-1;f>=0;--f){var h=i.charCodeAt(f);if(h===47){if(!l){u=f+1;break}continue}c===-1&&(l=!1,c=f+1),h===46?a===-1?a=f:s!==1&&(s=1):a!==-1&&(s=-1)}return a===-1||c===-1||s===0||s===1&&a===c-1&&a===u+1?"":i.slice(a,c)},format:function(i){if(i===null||typeof i!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof i);return r("/",i)},parse:function(i){e(i);var a={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return a;var u=i.charCodeAt(0),c=u===47,l;c?(a.root="/",l=1):l=0;for(var s=-1,f=0,h=-1,b=!0,m=i.length-1,x=0;m>=l;--m){if(u=i.charCodeAt(m),u===47){if(!b){f=m+1;break}continue}h===-1&&(b=!1,h=m+1),u===46?s===-1?s=m:x!==1&&(x=1):s!==-1&&(x=-1)}return s===-1||h===-1||x===0||x===1&&s===h-1&&s===f+1?h!==-1&&(f===0&&c?a.base=a.name=i.slice(1,h):a.base=a.name=i.slice(f,h)):(f===0&&c?(a.name=i.slice(1,s),a.base=i.slice(1,h)):(a.name=i.slice(f,s),a.base=i.slice(f,h)),a.ext=i.slice(s,h)),f>0?a.dir=i.slice(0,f-1):c&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return n.posix=n,ii=n,ii}var un=sh(),la=Ie(un);const jt=globalThis||void 0||self;function ca(e,t){return function(){return e.apply(t,arguments)}}const{toString:ah}=Object.prototype,{getPrototypeOf:oi}=Object,{iterator:ln,toStringTag:fa}=Symbol,cn=(e=>t=>{const r=ah.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Nt=e=>(e=e.toLowerCase(),t=>cn(t)===e),fn=e=>t=>typeof t===e,{isArray:pr}=Array,Br=fn("undefined");function uh(e){return e!==null&&!Br(e)&&e.constructor!==null&&!Br(e.constructor)&&yt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ha=Nt("ArrayBuffer");function lh(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ha(e.buffer),t}const ch=fn("string"),yt=fn("function"),da=fn("number"),hn=e=>e!==null&&typeof e=="object",fh=e=>e===!0||e===!1,dn=e=>{if(cn(e)!=="object")return!1;const t=oi(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(fa in e)&&!(ln in e)},hh=Nt("Date"),dh=Nt("File"),ph=Nt("Blob"),gh=Nt("FileList"),yh=e=>hn(e)&&yt(e.pipe),mh=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||yt(e.append)&&((t=cn(e))==="formdata"||t==="object"&&yt(e.toString)&&e.toString()==="[object FormData]"))},bh=Nt("URLSearchParams"),[wh,vh,Eh,xh]=["ReadableStream","Request","Response","Headers"].map(Nt),Ah=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Lr(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),pr(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let u;for(n=0;n<a;n++)u=i[n],t.call(null,e[u],u,e)}}function pa(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const tr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:jt,ga=e=>!Br(e)&&e!==tr;function si(){const{caseless:e}=ga(this)&&this||{},t={},r=(n,o)=>{const i=e&&pa(t,o)||o;dn(t[i])&&dn(n)?t[i]=si(t[i],n):dn(n)?t[i]=si({},n):pr(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&Lr(arguments[n],r);return t}const Th=(e,t,r,{allOwnKeys:n}={})=>(Lr(t,(o,i)=>{r&&yt(o)?e[i]=ca(o,r):e[i]=o},{allOwnKeys:n}),e),Sh=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),_h=(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)},Nh=(e,t,r,n)=>{let o,i,a;const u={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!n||n(a,e,t))&&!u[a]&&(t[a]=e[a],u[a]=!0);e=r!==!1&&oi(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Oh=(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},Rh=e=>{if(!e)return null;if(pr(e))return e;let t=e.length;if(!da(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Ih=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&oi(Uint8Array)),Ph=(e,t)=>{const n=(e&&e[ln]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Fh=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Ch=Nt("HTMLFormElement"),Bh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),ya=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Lh=Nt("RegExp"),ma=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Lr(r,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(n[i]=a||o)}),Object.defineProperties(e,n)},Uh=e=>{ma(e,(t,r)=>{if(yt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(yt(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+"'")})}})},jh=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return pr(e)?n(e):n(String(e).split(t)),r},kh=()=>{},Mh=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Dh(e){return!!(e&&yt(e.append)&&e[fa]==="FormData"&&e[ln])}const $h=e=>{const t=new Array(10),r=(n,o)=>{if(hn(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const i=pr(n)?[]:{};return Lr(n,(a,u)=>{const c=r(a,o+1);!Br(c)&&(i[u]=c)}),t[o]=void 0,i}}return n};return r(e,0)},qh=Nt("AsyncFunction"),Hh=e=>e&&(hn(e)||yt(e))&&yt(e.then)&&yt(e.catch),ba=((e,t)=>e?setImmediate:t?((r,n)=>(tr.addEventListener("message",({source:o,data:i})=>{o===tr&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),tr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",yt(tr.postMessage)),Vh=typeof queueMicrotask<"u"?queueMicrotask.bind(tr):typeof me<"u"&&me.nextTick||ba;var J={isArray:pr,isArrayBuffer:ha,isBuffer:uh,isFormData:mh,isArrayBufferView:lh,isString:ch,isNumber:da,isBoolean:fh,isObject:hn,isPlainObject:dn,isReadableStream:wh,isRequest:vh,isResponse:Eh,isHeaders:xh,isUndefined:Br,isDate:hh,isFile:dh,isBlob:ph,isRegExp:Lh,isFunction:yt,isStream:yh,isURLSearchParams:bh,isTypedArray:Ih,isFileList:gh,forEach:Lr,merge:si,extend:Th,trim:Ah,stripBOM:Sh,inherits:_h,toFlatObject:Nh,kindOf:cn,kindOfTest:Nt,endsWith:Oh,toArray:Rh,forEachEntry:Ph,matchAll:Fh,isHTMLForm:Ch,hasOwnProperty:ya,hasOwnProp:ya,reduceDescriptors:ma,freezeMethods:Uh,toObjectSet:jh,toCamelCase:Bh,noop:kh,toFiniteNumber:Mh,findKey:pa,global:tr,isContextDefined:ga,isSpecCompliantForm:Dh,toJSONObject:$h,isAsyncFn:qh,isThenable:Hh,setImmediate:ba,asap:Vh,isIterable:e=>e!=null&&yt(e[ln])},wa={},pn={};pn.byteLength=Kh,pn.toByteArray=Xh,pn.fromByteArray=Zh;for(var Pt=[],wt=[],Wh=typeof Uint8Array<"u"?Uint8Array:Array,ai="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",gr=0,Gh=ai.length;gr<Gh;++gr)Pt[gr]=ai[gr],wt[ai.charCodeAt(gr)]=gr;wt[45]=62,wt[95]=63;function va(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function Kh(e){var t=va(e),r=t[0],n=t[1];return(r+n)*3/4-n}function zh(e,t,r){return(t+r)*3/4-r}function Xh(e){var t,r=va(e),n=r[0],o=r[1],i=new Wh(zh(e,n,o)),a=0,u=o>0?n-4:n,c;for(c=0;c<u;c+=4)t=wt[e.charCodeAt(c)]<<18|wt[e.charCodeAt(c+1)]<<12|wt[e.charCodeAt(c+2)]<<6|wt[e.charCodeAt(c+3)],i[a++]=t>>16&255,i[a++]=t>>8&255,i[a++]=t&255;return o===2&&(t=wt[e.charCodeAt(c)]<<2|wt[e.charCodeAt(c+1)]>>4,i[a++]=t&255),o===1&&(t=wt[e.charCodeAt(c)]<<10|wt[e.charCodeAt(c+1)]<<4|wt[e.charCodeAt(c+2)]>>2,i[a++]=t>>8&255,i[a++]=t&255),i}function Yh(e){return Pt[e>>18&63]+Pt[e>>12&63]+Pt[e>>6&63]+Pt[e&63]}function Jh(e,t,r){for(var n,o=[],i=t;i<r;i+=3)n=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(e[i+2]&255),o.push(Yh(n));return o.join("")}function Zh(e){for(var t,r=e.length,n=r%3,o=[],i=16383,a=0,u=r-n;a<u;a+=i)o.push(Jh(e,a,a+i>u?u:a+i));return n===1?(t=e[r-1],o.push(Pt[t>>2]+Pt[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],o.push(Pt[t>>10]+Pt[t>>4&63]+Pt[t<<2&63]+"=")),o.join("")}var ui={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ui.read=function(e,t,r,n,o){var i,a,u=o*8-n-1,c=(1<<u)-1,l=c>>1,s=-7,f=r?o-1:0,h=r?-1:1,b=e[t+f];for(f+=h,i=b&(1<<-s)-1,b>>=-s,s+=u;s>0;i=i*256+e[t+f],f+=h,s-=8);for(a=i&(1<<-s)-1,i>>=-s,s+=n;s>0;a=a*256+e[t+f],f+=h,s-=8);if(i===0)i=1-l;else{if(i===c)return a?NaN:(b?-1:1)*(1/0);a=a+Math.pow(2,n),i=i-l}return(b?-1:1)*a*Math.pow(2,i-n)},ui.write=function(e,t,r,n,o,i){var a,u,c,l=i*8-o-1,s=(1<<l)-1,f=s>>1,h=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:i-1,m=n?1:-1,x=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=s):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),a+f>=1?t+=h/c:t+=h*Math.pow(2,1-f),t*c>=2&&(a++,c/=2),a+f>=s?(u=0,a=s):a+f>=1?(u=(t*c-1)*Math.pow(2,o),a=a+f):(u=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[r+b]=u&255,b+=m,u/=256,o-=8);for(a=a<<o|u,l+=o;l>0;e[r+b]=a&255,b+=m,a/=256,l-=8);e[r+b-m]|=x*128};/*!
2
- * The buffer module from node.js, for the browser.
3
- *
4
- * @author Feross Aboukhadijeh <https://feross.org>
5
- * @license MIT
6
- */(function(e){const t=pn,r=ui,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o;const{Uint8Array:i,ArrayBuffer:a,SharedArrayBuffer:u}=globalThis;s.TYPED_ARRAY_SUPPORT=c(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function c(){try{const F=new i(1),w={foo:function(){return 42}};return Object.setPrototypeOf(w,i.prototype),Object.setPrototypeOf(F,w),F.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function l(F){if(F>o)throw new RangeError('The value "'+F+'" is invalid for option "size"');const w=new i(F);return Object.setPrototypeOf(w,s.prototype),w}function s(F,w,S){if(typeof F=="number"){if(typeof w=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(F)}return f(F,w,S)}s.poolSize=8192;function f(F,w,S){if(typeof F=="string")return x(F,w);if(a.isView(F))return g(F);if(F==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F);if(st(F,a)||F&&st(F.buffer,a)||typeof u<"u"&&(st(F,u)||F&&st(F.buffer,u)))return d(F,w,S);if(typeof F=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const k=F.valueOf&&F.valueOf();if(k!=null&&k!==F)return s.from(k,w,S);const H=p(F);if(H)return H;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof F[Symbol.toPrimitive]=="function")return s.from(F[Symbol.toPrimitive]("string"),w,S);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F)}s.from=function(F,w,S){return f(F,w,S)},Object.setPrototypeOf(s.prototype,i.prototype),Object.setPrototypeOf(s,i);function h(F){if(typeof F!="number")throw new TypeError('"size" argument must be of type number');if(F<0)throw new RangeError('The value "'+F+'" is invalid for option "size"')}function b(F,w,S){return h(F),F<=0?l(F):w!==void 0?typeof S=="string"?l(F).fill(w,S):l(F).fill(w):l(F)}s.alloc=function(F,w,S){return b(F,w,S)};function m(F){return h(F),l(F<0?0:y(F)|0)}s.allocUnsafe=function(F){return m(F)},s.allocUnsafeSlow=function(F){return m(F)};function x(F,w){if((typeof w!="string"||w==="")&&(w="utf8"),!s.isEncoding(w))throw new TypeError("Unknown encoding: "+w);const S=T(F,w)|0;let k=l(S);const H=k.write(F,w);return H!==S&&(k=k.slice(0,H)),k}function A(F){const w=F.length<0?0:y(F.length)|0,S=l(w);for(let k=0;k<w;k+=1)S[k]=F[k]&255;return S}function g(F){if(st(F,i)){const w=new i(F);return d(w.buffer,w.byteOffset,w.byteLength)}return A(F)}function d(F,w,S){if(w<0||F.byteLength<w)throw new RangeError('"offset" is outside of buffer bounds');if(F.byteLength<w+(S||0))throw new RangeError('"length" is outside of buffer bounds');let k;return w===void 0&&S===void 0?k=new i(F):S===void 0?k=new i(F,w):k=new i(F,w,S),Object.setPrototypeOf(k,s.prototype),k}function p(F){if(s.isBuffer(F)){const w=y(F.length)|0,S=l(w);return S.length===0||F.copy(S,0,0,w),S}if(F.length!==void 0)return typeof F.length!="number"||_t(F.length)?l(0):A(F);if(F.type==="Buffer"&&Array.isArray(F.data))return A(F.data)}function y(F){if(F>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return F|0}function v(F){return+F!=F&&(F=0),s.alloc(+F)}s.isBuffer=function(w){return w!=null&&w._isBuffer===!0&&w!==s.prototype},s.compare=function(w,S){if(st(w,i)&&(w=s.from(w,w.offset,w.byteLength)),st(S,i)&&(S=s.from(S,S.offset,S.byteLength)),!s.isBuffer(w)||!s.isBuffer(S))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(w===S)return 0;let k=w.length,H=S.length;for(let z=0,ne=Math.min(k,H);z<ne;++z)if(w[z]!==S[z]){k=w[z],H=S[z];break}return k<H?-1:H<k?1:0},s.isEncoding=function(w){switch(String(w).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(w,S){if(!Array.isArray(w))throw new TypeError('"list" argument must be an Array of Buffers');if(w.length===0)return s.alloc(0);let k;if(S===void 0)for(S=0,k=0;k<w.length;++k)S+=w[k].length;const H=s.allocUnsafe(S);let z=0;for(k=0;k<w.length;++k){let ne=w[k];if(st(ne,i))z+ne.length>H.length?(s.isBuffer(ne)||(ne=s.from(ne)),ne.copy(H,z)):i.prototype.set.call(H,ne,z);else if(s.isBuffer(ne))ne.copy(H,z);else throw new TypeError('"list" argument must be an Array of Buffers');z+=ne.length}return H};function T(F,w){if(s.isBuffer(F))return F.length;if(a.isView(F)||st(F,a))return F.byteLength;if(typeof F!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof F);const S=F.length,k=arguments.length>2&&arguments[2]===!0;if(!k&&S===0)return 0;let H=!1;for(;;)switch(w){case"ascii":case"latin1":case"binary":return S;case"utf8":case"utf-8":return rt(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S*2;case"hex":return S>>>1;case"base64":return Le(F).length;default:if(H)return k?-1:rt(F).length;w=(""+w).toLowerCase(),H=!0}}s.byteLength=T;function P(F,w,S){let k=!1;if((w===void 0||w<0)&&(w=0),w>this.length||((S===void 0||S>this.length)&&(S=this.length),S<=0)||(S>>>=0,w>>>=0,S<=w))return"";for(F||(F="utf8");;)switch(F){case"hex":return K(this,w,S);case"utf8":case"utf-8":return ce(this,w,S);case"ascii":return Ee(this,w,S);case"latin1":case"binary":return be(this,w,S);case"base64":return he(this,w,S);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(this,w,S);default:if(k)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),k=!0}}s.prototype._isBuffer=!0;function I(F,w,S){const k=F[w];F[w]=F[S],F[S]=k}s.prototype.swap16=function(){const w=this.length;if(w%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let S=0;S<w;S+=2)I(this,S,S+1);return this},s.prototype.swap32=function(){const w=this.length;if(w%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let S=0;S<w;S+=4)I(this,S,S+3),I(this,S+1,S+2);return this},s.prototype.swap64=function(){const w=this.length;if(w%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let S=0;S<w;S+=8)I(this,S,S+7),I(this,S+1,S+6),I(this,S+2,S+5),I(this,S+3,S+4);return this},s.prototype.toString=function(){const w=this.length;return w===0?"":arguments.length===0?ce(this,0,w):P.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(w){if(!s.isBuffer(w))throw new TypeError("Argument must be a Buffer");return this===w?!0:s.compare(this,w)===0},s.prototype.inspect=function(){let w="";const S=e.INSPECT_MAX_BYTES;return w=this.toString("hex",0,S).replace(/(.{2})/g,"$1 ").trim(),this.length>S&&(w+=" ... "),"<Buffer "+w+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(w,S,k,H,z){if(st(w,i)&&(w=s.from(w,w.offset,w.byteLength)),!s.isBuffer(w))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof w);if(S===void 0&&(S=0),k===void 0&&(k=w?w.length:0),H===void 0&&(H=0),z===void 0&&(z=this.length),S<0||k>w.length||H<0||z>this.length)throw new RangeError("out of range index");if(H>=z&&S>=k)return 0;if(H>=z)return-1;if(S>=k)return 1;if(S>>>=0,k>>>=0,H>>>=0,z>>>=0,this===w)return 0;let ne=z-H,xe=k-S;const Ue=Math.min(ne,xe),je=this.slice(H,z),Me=w.slice(S,k);for(let Re=0;Re<Ue;++Re)if(je[Re]!==Me[Re]){ne=je[Re],xe=Me[Re];break}return ne<xe?-1:xe<ne?1:0};function N(F,w,S,k,H){if(F.length===0)return-1;if(typeof S=="string"?(k=S,S=0):S>2147483647?S=2147483647:S<-2147483648&&(S=-2147483648),S=+S,_t(S)&&(S=H?0:F.length-1),S<0&&(S=F.length+S),S>=F.length){if(H)return-1;S=F.length-1}else if(S<0)if(H)S=0;else return-1;if(typeof w=="string"&&(w=s.from(w,k)),s.isBuffer(w))return w.length===0?-1:j(F,w,S,k,H);if(typeof w=="number")return w=w&255,typeof i.prototype.indexOf=="function"?H?i.prototype.indexOf.call(F,w,S):i.prototype.lastIndexOf.call(F,w,S):j(F,[w],S,k,H);throw new TypeError("val must be string, number or Buffer")}function j(F,w,S,k,H){let z=1,ne=F.length,xe=w.length;if(k!==void 0&&(k=String(k).toLowerCase(),k==="ucs2"||k==="ucs-2"||k==="utf16le"||k==="utf-16le")){if(F.length<2||w.length<2)return-1;z=2,ne/=2,xe/=2,S/=2}function Ue(Me,Re){return z===1?Me[Re]:Me.readUInt16BE(Re*z)}let je;if(H){let Me=-1;for(je=S;je<ne;je++)if(Ue(F,je)===Ue(w,Me===-1?0:je-Me)){if(Me===-1&&(Me=je),je-Me+1===xe)return Me*z}else Me!==-1&&(je-=je-Me),Me=-1}else for(S+xe>ne&&(S=ne-xe),je=S;je>=0;je--){let Me=!0;for(let Re=0;Re<xe;Re++)if(Ue(F,je+Re)!==Ue(w,Re)){Me=!1;break}if(Me)return je}return-1}s.prototype.includes=function(w,S,k){return this.indexOf(w,S,k)!==-1},s.prototype.indexOf=function(w,S,k){return N(this,w,S,k,!0)},s.prototype.lastIndexOf=function(w,S,k){return N(this,w,S,k,!1)};function G(F,w,S,k){S=Number(S)||0;const H=F.length-S;k?(k=Number(k),k>H&&(k=H)):k=H;const z=w.length;k>z/2&&(k=z/2);let ne;for(ne=0;ne<k;++ne){const xe=parseInt(w.substr(ne*2,2),16);if(_t(xe))return ne;F[S+ne]=xe}return ne}function L(F,w,S,k){return ct(rt(w,F.length-S),F,S,k)}function D(F,w,S,k){return ct(Je(w),F,S,k)}function oe(F,w,S,k){return ct(Le(w),F,S,k)}function re(F,w,S,k){return ct(Ne(w,F.length-S),F,S,k)}s.prototype.write=function(w,S,k,H){if(S===void 0)H="utf8",k=this.length,S=0;else if(k===void 0&&typeof S=="string")H=S,k=this.length,S=0;else if(isFinite(S))S=S>>>0,isFinite(k)?(k=k>>>0,H===void 0&&(H="utf8")):(H=k,k=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const z=this.length-S;if((k===void 0||k>z)&&(k=z),w.length>0&&(k<0||S<0)||S>this.length)throw new RangeError("Attempt to write outside buffer bounds");H||(H="utf8");let ne=!1;for(;;)switch(H){case"hex":return G(this,w,S,k);case"utf8":case"utf-8":return L(this,w,S,k);case"ascii":case"latin1":case"binary":return D(this,w,S,k);case"base64":return oe(this,w,S,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return re(this,w,S,k);default:if(ne)throw new TypeError("Unknown encoding: "+H);H=(""+H).toLowerCase(),ne=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function he(F,w,S){return w===0&&S===F.length?t.fromByteArray(F):t.fromByteArray(F.slice(w,S))}function ce(F,w,S){S=Math.min(F.length,S);const k=[];let H=w;for(;H<S;){const z=F[H];let ne=null,xe=z>239?4:z>223?3:z>191?2:1;if(H+xe<=S){let Ue,je,Me,Re;switch(xe){case 1:z<128&&(ne=z);break;case 2:Ue=F[H+1],(Ue&192)===128&&(Re=(z&31)<<6|Ue&63,Re>127&&(ne=Re));break;case 3:Ue=F[H+1],je=F[H+2],(Ue&192)===128&&(je&192)===128&&(Re=(z&15)<<12|(Ue&63)<<6|je&63,Re>2047&&(Re<55296||Re>57343)&&(ne=Re));break;case 4:Ue=F[H+1],je=F[H+2],Me=F[H+3],(Ue&192)===128&&(je&192)===128&&(Me&192)===128&&(Re=(z&15)<<18|(Ue&63)<<12|(je&63)<<6|Me&63,Re>65535&&Re<1114112&&(ne=Re))}}ne===null?(ne=65533,xe=1):ne>65535&&(ne-=65536,k.push(ne>>>10&1023|55296),ne=56320|ne&1023),k.push(ne),H+=xe}return fe(k)}const ge=4096;function fe(F){const w=F.length;if(w<=ge)return String.fromCharCode.apply(String,F);let S="",k=0;for(;k<w;)S+=String.fromCharCode.apply(String,F.slice(k,k+=ge));return S}function Ee(F,w,S){let k="";S=Math.min(F.length,S);for(let H=w;H<S;++H)k+=String.fromCharCode(F[H]&127);return k}function be(F,w,S){let k="";S=Math.min(F.length,S);for(let H=w;H<S;++H)k+=String.fromCharCode(F[H]);return k}function K(F,w,S){const k=F.length;(!w||w<0)&&(w=0),(!S||S<0||S>k)&&(S=k);let H="";for(let z=w;z<S;++z)H+=Ot[F[z]];return H}function Q(F,w,S){const k=F.slice(w,S);let H="";for(let z=0;z<k.length-1;z+=2)H+=String.fromCharCode(k[z]+k[z+1]*256);return H}s.prototype.slice=function(w,S){const k=this.length;w=~~w,S=S===void 0?k:~~S,w<0?(w+=k,w<0&&(w=0)):w>k&&(w=k),S<0?(S+=k,S<0&&(S=0)):S>k&&(S=k),S<w&&(S=w);const H=this.subarray(w,S);return Object.setPrototypeOf(H,s.prototype),H};function ee(F,w,S){if(F%1!==0||F<0)throw new RangeError("offset is not uint");if(F+w>S)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(w,S,k){w=w>>>0,S=S>>>0,k||ee(w,S,this.length);let H=this[w],z=1,ne=0;for(;++ne<S&&(z*=256);)H+=this[w+ne]*z;return H},s.prototype.readUintBE=s.prototype.readUIntBE=function(w,S,k){w=w>>>0,S=S>>>0,k||ee(w,S,this.length);let H=this[w+--S],z=1;for(;S>0&&(z*=256);)H+=this[w+--S]*z;return H},s.prototype.readUint8=s.prototype.readUInt8=function(w,S){return w=w>>>0,S||ee(w,1,this.length),this[w]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(w,S){return w=w>>>0,S||ee(w,2,this.length),this[w]|this[w+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(w,S){return w=w>>>0,S||ee(w,2,this.length),this[w]<<8|this[w+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(w,S){return w=w>>>0,S||ee(w,4,this.length),(this[w]|this[w+1]<<8|this[w+2]<<16)+this[w+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(w,S){return w=w>>>0,S||ee(w,4,this.length),this[w]*16777216+(this[w+1]<<16|this[w+2]<<8|this[w+3])},s.prototype.readBigUInt64LE=it(function(w){w=w>>>0,le(w,"offset");const S=this[w],k=this[w+7];(S===void 0||k===void 0)&&de(w,this.length-8);const H=S+this[++w]*2**8+this[++w]*2**16+this[++w]*2**24,z=this[++w]+this[++w]*2**8+this[++w]*2**16+k*2**24;return BigInt(H)+(BigInt(z)<<BigInt(32))}),s.prototype.readBigUInt64BE=it(function(w){w=w>>>0,le(w,"offset");const S=this[w],k=this[w+7];(S===void 0||k===void 0)&&de(w,this.length-8);const H=S*2**24+this[++w]*2**16+this[++w]*2**8+this[++w],z=this[++w]*2**24+this[++w]*2**16+this[++w]*2**8+k;return(BigInt(H)<<BigInt(32))+BigInt(z)}),s.prototype.readIntLE=function(w,S,k){w=w>>>0,S=S>>>0,k||ee(w,S,this.length);let H=this[w],z=1,ne=0;for(;++ne<S&&(z*=256);)H+=this[w+ne]*z;return z*=128,H>=z&&(H-=Math.pow(2,8*S)),H},s.prototype.readIntBE=function(w,S,k){w=w>>>0,S=S>>>0,k||ee(w,S,this.length);let H=S,z=1,ne=this[w+--H];for(;H>0&&(z*=256);)ne+=this[w+--H]*z;return z*=128,ne>=z&&(ne-=Math.pow(2,8*S)),ne},s.prototype.readInt8=function(w,S){return w=w>>>0,S||ee(w,1,this.length),this[w]&128?(255-this[w]+1)*-1:this[w]},s.prototype.readInt16LE=function(w,S){w=w>>>0,S||ee(w,2,this.length);const k=this[w]|this[w+1]<<8;return k&32768?k|4294901760:k},s.prototype.readInt16BE=function(w,S){w=w>>>0,S||ee(w,2,this.length);const k=this[w+1]|this[w]<<8;return k&32768?k|4294901760:k},s.prototype.readInt32LE=function(w,S){return w=w>>>0,S||ee(w,4,this.length),this[w]|this[w+1]<<8|this[w+2]<<16|this[w+3]<<24},s.prototype.readInt32BE=function(w,S){return w=w>>>0,S||ee(w,4,this.length),this[w]<<24|this[w+1]<<16|this[w+2]<<8|this[w+3]},s.prototype.readBigInt64LE=it(function(w){w=w>>>0,le(w,"offset");const S=this[w],k=this[w+7];(S===void 0||k===void 0)&&de(w,this.length-8);const H=this[w+4]+this[w+5]*2**8+this[w+6]*2**16+(k<<24);return(BigInt(H)<<BigInt(32))+BigInt(S+this[++w]*2**8+this[++w]*2**16+this[++w]*2**24)}),s.prototype.readBigInt64BE=it(function(w){w=w>>>0,le(w,"offset");const S=this[w],k=this[w+7];(S===void 0||k===void 0)&&de(w,this.length-8);const H=(S<<24)+this[++w]*2**16+this[++w]*2**8+this[++w];return(BigInt(H)<<BigInt(32))+BigInt(this[++w]*2**24+this[++w]*2**16+this[++w]*2**8+k)}),s.prototype.readFloatLE=function(w,S){return w=w>>>0,S||ee(w,4,this.length),r.read(this,w,!0,23,4)},s.prototype.readFloatBE=function(w,S){return w=w>>>0,S||ee(w,4,this.length),r.read(this,w,!1,23,4)},s.prototype.readDoubleLE=function(w,S){return w=w>>>0,S||ee(w,8,this.length),r.read(this,w,!0,52,8)},s.prototype.readDoubleBE=function(w,S){return w=w>>>0,S||ee(w,8,this.length),r.read(this,w,!1,52,8)};function ue(F,w,S,k,H,z){if(!s.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(w>H||w<z)throw new RangeError('"value" argument is out of bounds');if(S+k>F.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(w,S,k,H){if(w=+w,S=S>>>0,k=k>>>0,!H){const xe=Math.pow(2,8*k)-1;ue(this,w,S,k,xe,0)}let z=1,ne=0;for(this[S]=w&255;++ne<k&&(z*=256);)this[S+ne]=w/z&255;return S+k},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(w,S,k,H){if(w=+w,S=S>>>0,k=k>>>0,!H){const xe=Math.pow(2,8*k)-1;ue(this,w,S,k,xe,0)}let z=k-1,ne=1;for(this[S+z]=w&255;--z>=0&&(ne*=256);)this[S+z]=w/ne&255;return S+k},s.prototype.writeUint8=s.prototype.writeUInt8=function(w,S,k){return w=+w,S=S>>>0,k||ue(this,w,S,1,255,0),this[S]=w&255,S+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(w,S,k){return w=+w,S=S>>>0,k||ue(this,w,S,2,65535,0),this[S]=w&255,this[S+1]=w>>>8,S+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(w,S,k){return w=+w,S=S>>>0,k||ue(this,w,S,2,65535,0),this[S]=w>>>8,this[S+1]=w&255,S+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(w,S,k){return w=+w,S=S>>>0,k||ue(this,w,S,4,4294967295,0),this[S+3]=w>>>24,this[S+2]=w>>>16,this[S+1]=w>>>8,this[S]=w&255,S+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(w,S,k){return w=+w,S=S>>>0,k||ue(this,w,S,4,4294967295,0),this[S]=w>>>24,this[S+1]=w>>>16,this[S+2]=w>>>8,this[S+3]=w&255,S+4};function V(F,w,S,k,H){pe(w,k,H,F,S,7);let z=Number(w&BigInt(4294967295));F[S++]=z,z=z>>8,F[S++]=z,z=z>>8,F[S++]=z,z=z>>8,F[S++]=z;let ne=Number(w>>BigInt(32)&BigInt(4294967295));return F[S++]=ne,ne=ne>>8,F[S++]=ne,ne=ne>>8,F[S++]=ne,ne=ne>>8,F[S++]=ne,S}function R(F,w,S,k,H){pe(w,k,H,F,S,7);let z=Number(w&BigInt(4294967295));F[S+7]=z,z=z>>8,F[S+6]=z,z=z>>8,F[S+5]=z,z=z>>8,F[S+4]=z;let ne=Number(w>>BigInt(32)&BigInt(4294967295));return F[S+3]=ne,ne=ne>>8,F[S+2]=ne,ne=ne>>8,F[S+1]=ne,ne=ne>>8,F[S]=ne,S+8}s.prototype.writeBigUInt64LE=it(function(w,S=0){return V(this,w,S,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=it(function(w,S=0){return R(this,w,S,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(w,S,k,H){if(w=+w,S=S>>>0,!H){const Ue=Math.pow(2,8*k-1);ue(this,w,S,k,Ue-1,-Ue)}let z=0,ne=1,xe=0;for(this[S]=w&255;++z<k&&(ne*=256);)w<0&&xe===0&&this[S+z-1]!==0&&(xe=1),this[S+z]=(w/ne>>0)-xe&255;return S+k},s.prototype.writeIntBE=function(w,S,k,H){if(w=+w,S=S>>>0,!H){const Ue=Math.pow(2,8*k-1);ue(this,w,S,k,Ue-1,-Ue)}let z=k-1,ne=1,xe=0;for(this[S+z]=w&255;--z>=0&&(ne*=256);)w<0&&xe===0&&this[S+z+1]!==0&&(xe=1),this[S+z]=(w/ne>>0)-xe&255;return S+k},s.prototype.writeInt8=function(w,S,k){return w=+w,S=S>>>0,k||ue(this,w,S,1,127,-128),w<0&&(w=255+w+1),this[S]=w&255,S+1},s.prototype.writeInt16LE=function(w,S,k){return w=+w,S=S>>>0,k||ue(this,w,S,2,32767,-32768),this[S]=w&255,this[S+1]=w>>>8,S+2},s.prototype.writeInt16BE=function(w,S,k){return w=+w,S=S>>>0,k||ue(this,w,S,2,32767,-32768),this[S]=w>>>8,this[S+1]=w&255,S+2},s.prototype.writeInt32LE=function(w,S,k){return w=+w,S=S>>>0,k||ue(this,w,S,4,2147483647,-2147483648),this[S]=w&255,this[S+1]=w>>>8,this[S+2]=w>>>16,this[S+3]=w>>>24,S+4},s.prototype.writeInt32BE=function(w,S,k){return w=+w,S=S>>>0,k||ue(this,w,S,4,2147483647,-2147483648),w<0&&(w=4294967295+w+1),this[S]=w>>>24,this[S+1]=w>>>16,this[S+2]=w>>>8,this[S+3]=w&255,S+4},s.prototype.writeBigInt64LE=it(function(w,S=0){return V(this,w,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=it(function(w,S=0){return R(this,w,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function O(F,w,S,k,H,z){if(S+k>F.length)throw new RangeError("Index out of range");if(S<0)throw new RangeError("Index out of range")}function q(F,w,S,k,H){return w=+w,S=S>>>0,H||O(F,w,S,4),r.write(F,w,S,k,23,4),S+4}s.prototype.writeFloatLE=function(w,S,k){return q(this,w,S,!0,k)},s.prototype.writeFloatBE=function(w,S,k){return q(this,w,S,!1,k)};function $(F,w,S,k,H){return w=+w,S=S>>>0,H||O(F,w,S,8),r.write(F,w,S,k,52,8),S+8}s.prototype.writeDoubleLE=function(w,S,k){return $(this,w,S,!0,k)},s.prototype.writeDoubleBE=function(w,S,k){return $(this,w,S,!1,k)},s.prototype.copy=function(w,S,k,H){if(!s.isBuffer(w))throw new TypeError("argument should be a Buffer");if(k||(k=0),!H&&H!==0&&(H=this.length),S>=w.length&&(S=w.length),S||(S=0),H>0&&H<k&&(H=k),H===k||w.length===0||this.length===0)return 0;if(S<0)throw new RangeError("targetStart out of bounds");if(k<0||k>=this.length)throw new RangeError("Index out of range");if(H<0)throw new RangeError("sourceEnd out of bounds");H>this.length&&(H=this.length),w.length-S<H-k&&(H=w.length-S+k);const z=H-k;return this===w&&typeof i.prototype.copyWithin=="function"?this.copyWithin(S,k,H):i.prototype.set.call(w,this.subarray(k,H),S),z},s.prototype.fill=function(w,S,k,H){if(typeof w=="string"){if(typeof S=="string"?(H=S,S=0,k=this.length):typeof k=="string"&&(H=k,k=this.length),H!==void 0&&typeof H!="string")throw new TypeError("encoding must be a string");if(typeof H=="string"&&!s.isEncoding(H))throw new TypeError("Unknown encoding: "+H);if(w.length===1){const ne=w.charCodeAt(0);(H==="utf8"&&ne<128||H==="latin1")&&(w=ne)}}else typeof w=="number"?w=w&255:typeof w=="boolean"&&(w=Number(w));if(S<0||this.length<S||this.length<k)throw new RangeError("Out of range index");if(k<=S)return this;S=S>>>0,k=k===void 0?this.length:k>>>0,w||(w=0);let z;if(typeof w=="number")for(z=S;z<k;++z)this[z]=w;else{const ne=s.isBuffer(w)?w:s.from(w,H),xe=ne.length;if(xe===0)throw new TypeError('The value "'+w+'" is invalid for argument "value"');for(z=0;z<k-S;++z)this[z+S]=ne[z%xe]}return this};const B={};function U(F,w,S){B[F]=class extends S{constructor(){super(),Object.defineProperty(this,"message",{value:w.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${F}]`,this.stack,delete this.name}get code(){return F}set code(H){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:H,writable:!0})}toString(){return`${this.name} [${F}]: ${this.message}`}}}U("ERR_BUFFER_OUT_OF_BOUNDS",function(F){return F?`${F} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),U("ERR_INVALID_ARG_TYPE",function(F,w){return`The "${F}" argument must be of type number. Received type ${typeof w}`},TypeError),U("ERR_OUT_OF_RANGE",function(F,w,S){let k=`The value of "${F}" is out of range.`,H=S;return Number.isInteger(S)&&Math.abs(S)>2**32?H=Y(String(S)):typeof S=="bigint"&&(H=String(S),(S>BigInt(2)**BigInt(32)||S<-(BigInt(2)**BigInt(32)))&&(H=Y(H)),H+="n"),k+=` It must be ${w}. Received ${H}`,k},RangeError);function Y(F){let w="",S=F.length;const k=F[0]==="-"?1:0;for(;S>=k+4;S-=3)w=`_${F.slice(S-3,S)}${w}`;return`${F.slice(0,S)}${w}`}function se(F,w,S){le(w,"offset"),(F[w]===void 0||F[w+S]===void 0)&&de(w,F.length-(S+1))}function pe(F,w,S,k,H,z){if(F>S||F<w){const ne=typeof w=="bigint"?"n":"";let xe;throw w===0||w===BigInt(0)?xe=`>= 0${ne} and < 2${ne} ** ${(z+1)*8}${ne}`:xe=`>= -(2${ne} ** ${(z+1)*8-1}${ne}) and < 2 ** ${(z+1)*8-1}${ne}`,new B.ERR_OUT_OF_RANGE("value",xe,F)}se(k,H,z)}function le(F,w){if(typeof F!="number")throw new B.ERR_INVALID_ARG_TYPE(w,"number",F)}function de(F,w,S){throw Math.floor(F)!==F?(le(F,S),new B.ERR_OUT_OF_RANGE("offset","an integer",F)):w<0?new B.ERR_BUFFER_OUT_OF_BOUNDS:new B.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${w}`,F)}const Be=/[^+/0-9A-Za-z-_]/g;function te(F){if(F=F.split("=")[0],F=F.trim().replace(Be,""),F.length<2)return"";for(;F.length%4!==0;)F=F+"=";return F}function rt(F,w){w=w||1/0;let S;const k=F.length;let H=null;const z=[];for(let ne=0;ne<k;++ne){if(S=F.charCodeAt(ne),S>55295&&S<57344){if(!H){if(S>56319){(w-=3)>-1&&z.push(239,191,189);continue}else if(ne+1===k){(w-=3)>-1&&z.push(239,191,189);continue}H=S;continue}if(S<56320){(w-=3)>-1&&z.push(239,191,189),H=S;continue}S=(H-55296<<10|S-56320)+65536}else H&&(w-=3)>-1&&z.push(239,191,189);if(H=null,S<128){if((w-=1)<0)break;z.push(S)}else if(S<2048){if((w-=2)<0)break;z.push(S>>6|192,S&63|128)}else if(S<65536){if((w-=3)<0)break;z.push(S>>12|224,S>>6&63|128,S&63|128)}else if(S<1114112){if((w-=4)<0)break;z.push(S>>18|240,S>>12&63|128,S>>6&63|128,S&63|128)}else throw new Error("Invalid code point")}return z}function Je(F){const w=[];for(let S=0;S<F.length;++S)w.push(F.charCodeAt(S)&255);return w}function Ne(F,w){let S,k,H;const z=[];for(let ne=0;ne<F.length&&!((w-=2)<0);++ne)S=F.charCodeAt(ne),k=S>>8,H=S%256,z.push(H),z.push(k);return z}function Le(F){return t.toByteArray(te(F))}function ct(F,w,S,k){let H;for(H=0;H<k&&!(H+S>=w.length||H>=F.length);++H)w[H+S]=F[H];return H}function st(F,w){return F instanceof w||F!=null&&F.constructor!=null&&F.constructor.name!=null&&F.constructor.name===w.name}function _t(F){return F!==F}const Ot=function(){const F="0123456789abcdef",w=new Array(256);for(let S=0;S<16;++S){const k=S*16;for(let H=0;H<16;++H)w[k+H]=F[S]+F[H]}return w}();function it(F){return typeof BigInt>"u"?Jt:F}function Jt(){throw new Error("BigInt not supported")}})(wa);const yr=wa.Buffer;function we(e,t,r,n,o){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),o&&(this.response=o,this.status=o.status?o.status:null)}J.inherits(we,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:J.toJSONObject(this.config),code:this.code,status:this.status}}});const Ea=we.prototype,xa={};["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=>{xa[e]={value:e}}),Object.defineProperties(we,xa),Object.defineProperty(Ea,"isAxiosError",{value:!0}),we.from=(e,t,r,n,o,i)=>{const a=Object.create(Ea);return J.toFlatObject(e,a,function(c){return c!==Error.prototype},u=>u!=="isAxiosError"),we.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var Qh=null;function li(e){return J.isPlainObject(e)||J.isArray(e)}function Aa(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function Ta(e,t,r){return e?e.concat(t).map(function(o,i){return o=Aa(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function ed(e){return J.isArray(e)&&!e.some(li)}const td=J.toFlatObject(J,{},null,function(t){return/^is[A-Z]/.test(t)});function gn(e,t,r){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=J.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,A){return!J.isUndefined(A[x])});const n=r.metaTokens,o=r.visitor||s,i=r.dots,a=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(o))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(J.isDate(m))return m.toISOString();if(J.isBoolean(m))return m.toString();if(!c&&J.isBlob(m))throw new we("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(m)||J.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):yr.from(m):m}function s(m,x,A){let g=m;if(m&&!A&&typeof m=="object"){if(J.endsWith(x,"{}"))x=n?x:x.slice(0,-2),m=JSON.stringify(m);else if(J.isArray(m)&&ed(m)||(J.isFileList(m)||J.endsWith(x,"[]"))&&(g=J.toArray(m)))return x=Aa(x),g.forEach(function(p,y){!(J.isUndefined(p)||p===null)&&t.append(a===!0?Ta([x],y,i):a===null?x:x+"[]",l(p))}),!1}return li(m)?!0:(t.append(Ta(A,x,i),l(m)),!1)}const f=[],h=Object.assign(td,{defaultVisitor:s,convertValue:l,isVisitable:li});function b(m,x){if(!J.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+x.join("."));f.push(m),J.forEach(m,function(g,d){(!(J.isUndefined(g)||g===null)&&o.call(t,g,J.isString(d)?d.trim():d,x,h))===!0&&b(g,x?x.concat(d):[d])}),f.pop()}}if(!J.isObject(e))throw new TypeError("data must be an object");return b(e),t}function Sa(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function ci(e,t){this._pairs=[],e&&gn(e,this,t)}const _a=ci.prototype;_a.append=function(t,r){this._pairs.push([t,r])},_a.toString=function(t){const r=t?function(n){return t.call(this,n,Sa)}:Sa;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function rd(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Na(e,t,r){if(!t)return e;const n=r&&r.encode||rd;J.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(o?i=o(t,r):i=J.isURLSearchParams(t)?t.toString():new ci(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Oa{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){J.forEach(this.handlers,function(n){n!==null&&t(n)})}}var Ra={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},nd=typeof URLSearchParams<"u"?URLSearchParams:ci,id=typeof FormData<"u"?FormData:null,od=typeof Blob<"u"?Blob:null,sd={isBrowser:!0,classes:{URLSearchParams:nd,FormData:id,Blob:od},protocols:["http","https","file","blob","url","data"]};const fi=typeof window<"u"&&typeof document<"u",hi=typeof navigator=="object"&&navigator||void 0,ad=fi&&(!hi||["ReactNative","NativeScript","NS"].indexOf(hi.product)<0),ud=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ld=fi&&window.location.href||"http://localhost";var cd=Object.freeze({__proto__:null,hasBrowserEnv:fi,hasStandardBrowserEnv:ad,hasStandardBrowserWebWorkerEnv:ud,navigator:hi,origin:ld}),at={...cd,...sd};function fd(e,t){return gn(e,new at.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return at.isNode&&J.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function hd(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function dd(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function Ia(e){function t(r,n,o,i){let a=r[i++];if(a==="__proto__")return!0;const u=Number.isFinite(+a),c=i>=r.length;return a=!a&&J.isArray(o)?o.length:a,c?(J.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!u):((!o[a]||!J.isObject(o[a]))&&(o[a]=[]),t(r,n,o[a],i)&&J.isArray(o[a])&&(o[a]=dd(o[a])),!u)}if(J.isFormData(e)&&J.isFunction(e.entries)){const r={};return J.forEachEntry(e,(n,o)=>{t(hd(n),o,r,0)}),r}return null}function pd(e,t,r){if(J.isString(e))try{return(t||JSON.parse)(e),J.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Ur={transitional:Ra,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=J.isObject(t);if(i&&J.isHTMLForm(t)&&(t=new FormData(t)),J.isFormData(t))return o?JSON.stringify(Ia(t)):t;if(J.isArrayBuffer(t)||J.isBuffer(t)||J.isStream(t)||J.isFile(t)||J.isBlob(t)||J.isReadableStream(t))return t;if(J.isArrayBufferView(t))return t.buffer;if(J.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return fd(t,this.formSerializer).toString();if((u=J.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return gn(u?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),pd(t)):t}],transformResponse:[function(t){const r=this.transitional||Ur.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(J.isResponse(t)||J.isReadableStream(t))return t;if(t&&J.isString(t)&&(n&&!this.responseType||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(u){if(a)throw u.name==="SyntaxError"?we.from(u,we.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:at.classes.FormData,Blob:at.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch"],e=>{Ur.headers[e]={}});const gd=J.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 yd=e=>{const t={};let r,n,o;return e&&e.split(`
7
- `).forEach(function(a){o=a.indexOf(":"),r=a.substring(0,o).trim().toLowerCase(),n=a.substring(o+1).trim(),!(!r||t[r]&&gd[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t};const Pa=Symbol("internals");function jr(e){return e&&String(e).trim().toLowerCase()}function yn(e){return e===!1||e==null?e:J.isArray(e)?e.map(yn):String(e)}function md(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 bd=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function di(e,t,r,n,o){if(J.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!J.isString(t)){if(J.isString(n))return t.indexOf(n)!==-1;if(J.isRegExp(n))return n.test(t)}}function wd(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function vd(e,t){const r=J.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,a){return this[n].call(this,t,o,i,a)},configurable:!0})})}let mt=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(u,c,l){const s=jr(c);if(!s)throw new Error("header name must be a non-empty string");const f=J.findKey(o,s);(!f||o[f]===void 0||l===!0||l===void 0&&o[f]!==!1)&&(o[f||c]=yn(u))}const a=(u,c)=>J.forEach(u,(l,s)=>i(l,s,c));if(J.isPlainObject(t)||t instanceof this.constructor)a(t,r);else if(J.isString(t)&&(t=t.trim())&&!bd(t))a(yd(t),r);else if(J.isObject(t)&&J.isIterable(t)){let u={},c,l;for(const s of t){if(!J.isArray(s))throw TypeError("Object iterator must return a key-value pair");u[l=s[0]]=(c=u[l])?J.isArray(c)?[...c,s[1]]:[c,s[1]]:s[1]}a(u,r)}else t!=null&&i(r,t,n);return this}get(t,r){if(t=jr(t),t){const n=J.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return md(o);if(J.isFunction(r))return r.call(this,o,n);if(J.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=jr(t),t){const n=J.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||di(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(a){if(a=jr(a),a){const u=J.findKey(n,a);u&&(!r||di(n,n[u],u,r))&&(delete n[u],o=!0)}}return J.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||di(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return J.forEach(this,(o,i)=>{const a=J.findKey(n,i);if(a){r[a]=yn(o),delete r[i];return}const u=t?wd(i):String(i).trim();u!==i&&delete r[i],r[u]=yn(o),n[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return J.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&J.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(`
8
- `)}getSetCookie(){return this.get("set-cookie")||[]}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(o=>n.set(o)),n}static accessor(t){const n=(this[Pa]=this[Pa]={accessors:{}}).accessors,o=this.prototype;function i(a){const u=jr(a);n[u]||(vd(o,a),n[u]=!0)}return J.isArray(t)?t.forEach(i):i(t),this}};mt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),J.reduceDescriptors(mt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),J.freezeMethods(mt);function pi(e,t){const r=this||Ur,n=t||r,o=mt.from(n.headers);let i=n.data;return J.forEach(e,function(u){i=u.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Fa(e){return!!(e&&e.__CANCEL__)}function mr(e,t,r){we.call(this,e??"canceled",we.ERR_CANCELED,t,r),this.name="CanceledError"}J.inherits(mr,we,{__CANCEL__:!0});function Ca(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new we("Request failed with status code "+r.status,[we.ERR_BAD_REQUEST,we.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Ed(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function xd(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),s=n[i];a||(a=l),r[o]=c,n[o]=l;let f=i,h=0;for(;f!==o;)h+=r[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),l-a<t)return;const b=s&&l-s;return b?Math.round(h*1e3/b):void 0}}function Ad(e,t){let r=0,n=1e3/t,o,i;const a=(l,s=Date.now())=>{r=s,o=null,i&&(clearTimeout(i),i=null),e.apply(null,l)};return[(...l)=>{const s=Date.now(),f=s-r;f>=n?a(l,s):(o=l,i||(i=setTimeout(()=>{i=null,a(o)},n-f)))},()=>o&&a(o)]}const mn=(e,t,r=3)=>{let n=0;const o=xd(50,250);return Ad(i=>{const a=i.loaded,u=i.lengthComputable?i.total:void 0,c=a-n,l=o(c),s=a<=u;n=a;const f={loaded:a,total:u,progress:u?a/u:void 0,bytes:c,rate:l||void 0,estimated:l&&u&&s?(u-a)/l:void 0,event:i,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(f)},r)},Ba=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},La=e=>(...t)=>J.asap(()=>e(...t));var Td=at.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,at.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(at.origin),at.navigator&&/(msie|trident)/i.test(at.navigator.userAgent)):()=>!0,Sd=at.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const a=[e+"="+encodeURIComponent(t)];J.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),J.isString(n)&&a.push("path="+n),J.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.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 _d(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Nd(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ua(e,t,r){let n=!_d(t);return e&&(n||r==!1)?Nd(e,t):t}const ja=e=>e instanceof mt?{...e}:e;function rr(e,t){t=t||{};const r={};function n(l,s,f,h){return J.isPlainObject(l)&&J.isPlainObject(s)?J.merge.call({caseless:h},l,s):J.isPlainObject(s)?J.merge({},s):J.isArray(s)?s.slice():s}function o(l,s,f,h){if(J.isUndefined(s)){if(!J.isUndefined(l))return n(void 0,l,f,h)}else return n(l,s,f,h)}function i(l,s){if(!J.isUndefined(s))return n(void 0,s)}function a(l,s){if(J.isUndefined(s)){if(!J.isUndefined(l))return n(void 0,l)}else return n(void 0,s)}function u(l,s,f){if(f in t)return n(l,s);if(f in e)return n(void 0,l)}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u,headers:(l,s,f)=>o(ja(l),ja(s),f,!0)};return J.forEach(Object.keys(Object.assign({},e,t)),function(s){const f=c[s]||o,h=f(e[s],t[s],s);J.isUndefined(h)&&f!==u||(r[s]=h)}),r}var ka=e=>{const t=rr({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:u}=t;t.headers=a=mt.from(a),t.url=Na(Ua(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let c;if(J.isFormData(r)){if(at.hasStandardBrowserEnv||at.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((c=a.getContentType())!==!1){const[l,...s]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([l||"multipart/form-data",...s].join("; "))}}if(at.hasStandardBrowserEnv&&(n&&J.isFunction(n)&&(n=n(t)),n||n!==!1&&Td(t.url))){const l=o&&i&&Sd.read(i);l&&a.set(o,l)}return t},Od=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=ka(e);let i=o.data;const a=mt.from(o.headers).normalize();let{responseType:u,onUploadProgress:c,onDownloadProgress:l}=o,s,f,h,b,m;function x(){b&&b(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(s),o.signal&&o.signal.removeEventListener("abort",s)}let A=new XMLHttpRequest;A.open(o.method.toUpperCase(),o.url,!0),A.timeout=o.timeout;function g(){if(!A)return;const p=mt.from("getAllResponseHeaders"in A&&A.getAllResponseHeaders()),v={data:!u||u==="text"||u==="json"?A.responseText:A.response,status:A.status,statusText:A.statusText,headers:p,config:e,request:A};Ca(function(P){r(P),x()},function(P){n(P),x()},v),A=null}"onloadend"in A?A.onloadend=g:A.onreadystatechange=function(){!A||A.readyState!==4||A.status===0&&!(A.responseURL&&A.responseURL.indexOf("file:")===0)||setTimeout(g)},A.onabort=function(){A&&(n(new we("Request aborted",we.ECONNABORTED,e,A)),A=null)},A.onerror=function(){n(new we("Network Error",we.ERR_NETWORK,e,A)),A=null},A.ontimeout=function(){let y=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const v=o.transitional||Ra;o.timeoutErrorMessage&&(y=o.timeoutErrorMessage),n(new we(y,v.clarifyTimeoutError?we.ETIMEDOUT:we.ECONNABORTED,e,A)),A=null},i===void 0&&a.setContentType(null),"setRequestHeader"in A&&J.forEach(a.toJSON(),function(y,v){A.setRequestHeader(v,y)}),J.isUndefined(o.withCredentials)||(A.withCredentials=!!o.withCredentials),u&&u!=="json"&&(A.responseType=o.responseType),l&&([h,m]=mn(l,!0),A.addEventListener("progress",h)),c&&A.upload&&([f,b]=mn(c),A.upload.addEventListener("progress",f),A.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(s=p=>{A&&(n(!p||p.type?new mr(null,e,A):p),A.abort(),A=null)},o.cancelToken&&o.cancelToken.subscribe(s),o.signal&&(o.signal.aborted?s():o.signal.addEventListener("abort",s)));const d=Ed(o.url);if(d&&at.protocols.indexOf(d)===-1){n(new we("Unsupported protocol "+d+":",we.ERR_BAD_REQUEST,e));return}A.send(i||null)})};const Rd=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const i=function(l){if(!o){o=!0,u();const s=l instanceof Error?l:this.reason;n.abort(s instanceof we?s:new mr(s instanceof Error?s.message:s))}};let a=t&&setTimeout(()=>{a=null,i(new we(`timeout ${t} of ms exceeded`,we.ETIMEDOUT))},t);const u=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>l.addEventListener("abort",i));const{signal:c}=n;return c.unsubscribe=()=>J.asap(u),c}},Id=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},Pd=async function*(e,t){for await(const r of Fd(e))yield*Id(r,t)},Fd=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()}},Ma=(e,t,r,n)=>{const o=Pd(e,t);let i=0,a,u=c=>{a||(a=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:l,value:s}=await o.next();if(l){u(),c.close();return}let f=s.byteLength;if(r){let h=i+=f;r(h)}c.enqueue(new Uint8Array(s))}catch(l){throw u(l),l}},cancel(c){return u(c),o.return()}},{highWaterMark:2})},bn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Da=bn&&typeof ReadableStream=="function",Cd=bn&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),$a=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Bd=Da&&$a(()=>{let e=!1;const t=new Request(at.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),qa=64*1024,gi=Da&&$a(()=>J.isReadableStream(new Response("").body)),wn={stream:gi&&(e=>e.body)};bn&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!wn[t]&&(wn[t]=J.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new we(`Response type '${t}' is not supported`,we.ERR_NOT_SUPPORT,n)})})})(new Response);const Ld=async e=>{if(e==null)return 0;if(J.isBlob(e))return e.size;if(J.isSpecCompliantForm(e))return(await new Request(at.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(J.isArrayBufferView(e)||J.isArrayBuffer(e))return e.byteLength;if(J.isURLSearchParams(e)&&(e=e+""),J.isString(e))return(await Cd(e)).byteLength},Ud=async(e,t)=>{const r=J.toFiniteNumber(e.getContentLength());return r??Ld(t)};var jd=bn&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:a,onDownloadProgress:u,onUploadProgress:c,responseType:l,headers:s,withCredentials:f="same-origin",fetchOptions:h}=ka(e);l=l?(l+"").toLowerCase():"text";let b=Rd([o,i&&i.toAbortSignal()],a),m;const x=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let A;try{if(c&&Bd&&r!=="get"&&r!=="head"&&(A=await Ud(s,n))!==0){let v=new Request(t,{method:"POST",body:n,duplex:"half"}),T;if(J.isFormData(n)&&(T=v.headers.get("content-type"))&&s.setContentType(T),v.body){const[P,I]=Ba(A,mn(La(c)));n=Ma(v.body,qa,P,I)}}J.isString(f)||(f=f?"include":"omit");const g="credentials"in Request.prototype;m=new Request(t,{...h,signal:b,method:r.toUpperCase(),headers:s.normalize().toJSON(),body:n,duplex:"half",credentials:g?f:void 0});let d=await fetch(m,h);const p=gi&&(l==="stream"||l==="response");if(gi&&(u||p&&x)){const v={};["status","statusText","headers"].forEach(N=>{v[N]=d[N]});const T=J.toFiniteNumber(d.headers.get("content-length")),[P,I]=u&&Ba(T,mn(La(u),!0))||[];d=new Response(Ma(d.body,qa,P,()=>{I&&I(),x&&x()}),v)}l=l||"text";let y=await wn[J.findKey(wn,l)||"text"](d,e);return!p&&x&&x(),await new Promise((v,T)=>{Ca(v,T,{data:y,headers:mt.from(d.headers),status:d.status,statusText:d.statusText,config:e,request:m})})}catch(g){throw x&&x(),g&&g.name==="TypeError"&&/Load failed|fetch/i.test(g.message)?Object.assign(new we("Network Error",we.ERR_NETWORK,e,m),{cause:g.cause||g}):we.from(g,g&&g.code,e,m)}});const yi={http:Qh,xhr:Od,fetch:jd};J.forEach(yi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ha=e=>`- ${e}`,kd=e=>J.isFunction(e)||e===null||e===!1;var Va={getAdapter:e=>{e=J.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){r=e[i];let a;if(n=r,!kd(r)&&(n=yi[(a=String(r)).toLowerCase()],n===void 0))throw new we(`Unknown adapter '${a}'`);if(n)break;o[a||"#"+i]=n}if(!n){const i=Object.entries(o).map(([u,c])=>`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
9
- `+i.map(Ha).join(`
10
- `):" "+Ha(i[0]):"as no adapter specified";throw new we("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:yi};function mi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new mr(null,e)}function Wa(e){return mi(e),e.headers=mt.from(e.headers),e.data=pi.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Va.getAdapter(e.adapter||Ur.adapter)(e).then(function(n){return mi(e),n.data=pi.call(e,e.transformResponse,n),n.headers=mt.from(n.headers),n},function(n){return Fa(n)||(mi(e),n&&n.response&&(n.response.data=pi.call(e,e.transformResponse,n.response),n.response.headers=mt.from(n.response.headers))),Promise.reject(n)})}const Ga="1.10.0",vn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{vn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Ka={};vn.transitional=function(t,r,n){function o(i,a){return"[Axios v"+Ga+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,u)=>{if(t===!1)throw new we(o(a," has been removed"+(r?" in "+r:"")),we.ERR_DEPRECATED);return r&&!Ka[a]&&(Ka[a]=!0,console.warn(o(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,a,u):!0}},vn.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function Md(e,t,r){if(typeof e!="object")throw new we("options must be an object",we.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=t[i];if(a){const u=e[i],c=u===void 0||a(u,i,e);if(c!==!0)throw new we("option "+i+" must be "+c,we.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new we("Unknown option "+i,we.ERR_BAD_OPTION)}}var En={assertOptions:Md,validators:vn};const Ft=En.validators;let nr=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Oa,response:new Oa}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
11
- `+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=rr(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&En.assertOptions(n,{silentJSONParsing:Ft.transitional(Ft.boolean),forcedJSONParsing:Ft.transitional(Ft.boolean),clarifyTimeoutError:Ft.transitional(Ft.boolean)},!1),o!=null&&(J.isFunction(o)?r.paramsSerializer={serialize:o}:En.assertOptions(o,{encode:Ft.function,serialize:Ft.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),En.assertOptions(r,{baseUrl:Ft.spelling("baseURL"),withXsrfToken:Ft.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=i&&J.merge(i.common,i[r.method]);i&&J.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),r.headers=mt.concat(a,i);const u=[];let c=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(r)===!1||(c=c&&x.synchronous,u.unshift(x.fulfilled,x.rejected))});const l=[];this.interceptors.response.forEach(function(x){l.push(x.fulfilled,x.rejected)});let s,f=0,h;if(!c){const m=[Wa.bind(this),void 0];for(m.unshift.apply(m,u),m.push.apply(m,l),h=m.length,s=Promise.resolve(r);f<h;)s=s.then(m[f++],m[f++]);return s}h=u.length;let b=r;for(f=0;f<h;){const m=u[f++],x=u[f++];try{b=m(b)}catch(A){x.call(this,A);break}}try{s=Wa.call(this,b)}catch(m){return Promise.reject(m)}for(f=0,h=l.length;f<h;)s=s.then(l[f++],l[f++]);return s}getUri(t){t=rr(this.defaults,t);const r=Ua(t.baseURL,t.url,t.allowAbsoluteUrls);return Na(r,t.params,t.paramsSerializer)}};J.forEach(["delete","get","head","options"],function(t){nr.prototype[t]=function(r,n){return this.request(rr(n||{},{method:t,url:r,data:(n||{}).data}))}}),J.forEach(["post","put","patch"],function(t){function r(n){return function(i,a,u){return this.request(rr(u||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}nr.prototype[t]=r(),nr.prototype[t+"Form"]=r(!0)});let Dd=class Gf{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(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(u=>{n.subscribe(u),i=u}).then(o);return a.cancel=function(){n.unsubscribe(i)},a},t(function(i,a,u){n.reason||(n.reason=new mr(i,a,u),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 Gf(function(o){t=o}),cancel:t}}};function $d(e){return function(r){return e.apply(null,r)}}function qd(e){return J.isObject(e)&&e.isAxiosError===!0}const bi={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(bi).forEach(([e,t])=>{bi[t]=e});function za(e){const t=new nr(e),r=ca(nr.prototype.request,t);return J.extend(r,nr.prototype,t,{allOwnKeys:!0}),J.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return za(rr(e,o))},r}const Xe=za(Ur);Xe.Axios=nr,Xe.CanceledError=mr,Xe.CancelToken=Dd,Xe.isCancel=Fa,Xe.VERSION=Ga,Xe.toFormData=gn,Xe.AxiosError=we,Xe.Cancel=Xe.CanceledError,Xe.all=function(t){return Promise.all(t)},Xe.spread=$d,Xe.isAxiosError=qd,Xe.mergeConfig=rr,Xe.AxiosHeaders=mt,Xe.formToJSON=e=>Ia(J.isHTMLForm(e)?new FormData(e):e),Xe.getAdapter=Va.getAdapter,Xe.HttpStatusCode=bi,Xe.default=Xe;const{Axios:p1,AxiosError:g1,CanceledError:y1,isCancel:m1,CancelToken:b1,VERSION:w1,all:v1,Cancel:E1,isAxiosError:x1,spread:A1,toFormData:T1,AxiosHeaders:S1,HttpStatusCode:_1,formToJSON:N1,getAdapter:O1,mergeConfig:R1}=Xe,xn=e=>encodeURIComponent(e).split("%2F").join("/"),Hd=/^(\w+:\/\/[^/?]+)?(.*?)$/,Vd=e=>e.filter(t=>typeof t=="string"||typeof t=="number").map(t=>`${t}`).filter(t=>t),Wd=e=>{const t=e.join("/"),[,r="",n=""]=t.match(Hd)||[];return{prefix:r,pathname:{parts:n.split("/").filter(o=>o!==""),hasLeading:/^\/+/.test(n),hasTrailing:/\/+$/.test(n)}}},Gd=(e,t)=>{const{prefix:r,pathname:n}=e,{parts:o,hasLeading:i,hasTrailing:a}=n,{leadingSlash:u,trailingSlash:c}=t,l=u===!0||u==="keep"&&i,s=c===!0||c==="keep"&&a;let f=r;return o.length>0&&((f||l)&&(f+="/"),f+=o.join("/")),s&&(f+="/"),!f&&l&&(f+="/"),f},Se=(...e)=>{const t=e[e.length-1];let r;t&&typeof t=="object"&&(r=t,e=e.slice(0,-1)),r={leadingSlash:!0,trailingSlash:!1,...r},e=Vd(e);const n=Wd(e);return Gd(n,r)};class Xa extends Error{constructor(r,n,o=null){super(r);ye(this,"response");ye(this,"statusCode");this.response=n,this.statusCode=o}}class Kd extends Xa{constructor(r,n,o,i=null){super(r,o,i);ye(this,"errorCode");this.errorCode=n}}function zd(e,t=""){return`/public-files/${e}/${t}`.split("/").filter(Boolean).join("/")}function Xd(e,t=""){return`/ocm/${e}/${t}`.split("/").filter(Boolean).join("/")}class We{}ye(We,"Shared","S"),ye(We,"Shareable","R"),ye(We,"Mounted","M"),ye(We,"Deletable","D"),ye(We,"Renameable","N"),ye(We,"Moveable","V"),ye(We,"Updateable","NV"),ye(We,"FileUpdateable","W"),ye(We,"FolderCreateable","CK"),ye(We,"Deny","Z"),ye(We,"SecureView","X");var kt=(e=>(e.copy="COPY",e.delete="DELETE",e.lock="LOCK",e.mkcol="MKCOL",e.move="MOVE",e.propfind="PROPFIND",e.proppatch="PROPPATCH",e.put="PUT",e.report="REPORT",e.unlock="UNLOCK",e))(kt||{});const An=e=>({value:e,type:null}),Yd=e=>An(e),Pe=e=>An(e),wi=e=>An(e),Jd=e=>An(e),Zd={Permissions:Pe("permissions"),IsFavorite:wi("favorite"),FileId:Pe("fileid"),FileParent:Pe("file-parent"),Name:Pe("name"),OwnerId:Pe("owner-id"),OwnerDisplayName:Pe("owner-display-name"),PrivateLink:Pe("privatelink"),ContentLength:wi("getcontentlength"),ContentSize:wi("size"),LastModifiedDate:Pe("getlastmodified"),Tags:Yd("tags"),Audio:{value:"audio",type:null},Location:{value:"location",type:null},Image:{value:"image",type:null},Photo:{value:"photo",type:null},ETag:Pe("getetag"),MimeType:Pe("getcontenttype"),ResourceType:Jd("resourcetype"),LockDiscovery:{value:"lockdiscovery",type:null},LockOwner:Pe("owner"),LockTime:Pe("locktime"),ActiveLock:{value:"activelock",type:null},DownloadURL:Pe("downloadURL"),Highlights:Pe("highlights"),MetaPathForUser:Pe("meta-path-for-user"),RemoteItemId:Pe("remote-item-id"),ShareId:Pe("shareid"),ShareRoot:Pe("shareroot"),ShareTypes:{value:"share-types",type:null},SharePermissions:Pe("share-permissions"),TrashbinOriginalFilename:Pe("trashbin-original-filename"),TrashbinOriginalLocation:Pe("trashbin-original-location"),TrashbinDeletedDate:Pe("trashbin-delete-datetime"),PublicLinkItemType:Pe("public-link-item-type"),PublicLinkPermission:Pe("public-link-permission"),PublicLinkExpiration:Pe("public-link-expiration"),PublicLinkShareDate:Pe("public-link-share-datetime"),PublicLinkShareOwner:Pe("public-link-share-owner")},ae=Object.fromEntries(Object.entries(Zd).map(([e,t])=>[e,t.value])),lr=class lr{};ye(lr,"Default",[ae.Permissions,ae.IsFavorite,ae.FileId,ae.FileParent,ae.Name,ae.LockDiscovery,ae.ActiveLock,ae.OwnerId,ae.OwnerDisplayName,ae.RemoteItemId,ae.ShareRoot,ae.ShareTypes,ae.PrivateLink,ae.ContentLength,ae.ContentSize,ae.LastModifiedDate,ae.ETag,ae.MimeType,ae.ResourceType,ae.DownloadURL,ae.Tags,ae.Audio,ae.Location,ae.Image,ae.Photo]),ye(lr,"PublicLink",lr.Default.concat([ae.PublicLinkItemType,ae.PublicLinkPermission,ae.PublicLinkExpiration,ae.PublicLinkShareDate,ae.PublicLinkShareOwner])),ye(lr,"Trashbin",[ae.ContentLength,ae.ResourceType,ae.TrashbinOriginalLocation,ae.TrashbinOriginalFilename,ae.TrashbinDeletedDate,ae.Permissions,ae.FileParent]),ye(lr,"DavNamespace",[ae.ContentLength,ae.LastModifiedDate,ae.ETag,ae.MimeType,ae.ResourceType,ae.LockDiscovery,ae.ActiveLock]);let ir=lr;var Qd=typeof jt=="object"&&jt&&jt.Object===Object&&jt,ep=typeof self=="object"&&self&&self.Object===Object&&self,vi=Qd||ep||Function("return this")(),br=vi.Symbol,Ya=Object.prototype,tp=Ya.hasOwnProperty,rp=Ya.toString,kr=br?br.toStringTag:void 0;function np(e){var t=tp.call(e,kr),r=e[kr];try{e[kr]=void 0;var n=!0}catch{}var o=rp.call(e);return n&&(t?e[kr]=r:delete e[kr]),o}var ip=Object.prototype,op=ip.toString;function sp(e){return op.call(e)}var ap="[object Null]",up="[object Undefined]",Ja=br?br.toStringTag:void 0;function Za(e){return e==null?e===void 0?up:ap:Ja&&Ja in Object(e)?np(e):sp(e)}function lp(e){return e!=null&&typeof e=="object"}var cp="[object Symbol]";function Ei(e){return typeof e=="symbol"||lp(e)&&Za(e)==cp}function fp(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var xi=Array.isArray,Qa=br?br.prototype:void 0,eu=Qa?Qa.toString:void 0;function tu(e){if(typeof e=="string")return e;if(xi(e))return fp(e,tu)+"";if(Ei(e))return eu?eu.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ru(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var hp="[object AsyncFunction]",dp="[object Function]",pp="[object GeneratorFunction]",gp="[object Proxy]";function yp(e){if(!ru(e))return!1;var t=Za(e);return t==dp||t==pp||t==hp||t==gp}var Ai=vi["__core-js_shared__"],nu=function(){var e=/[^.]+$/.exec(Ai&&Ai.keys&&Ai.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function mp(e){return!!nu&&nu in e}var bp=Function.prototype,wp=bp.toString;function vp(e){if(e!=null){try{return wp.call(e)}catch{}try{return e+""}catch{}}return""}var Ep=/[\\^$.*+?()[\]{}|]/g,xp=/^\[object .+?Constructor\]$/,Ap=Function.prototype,Tp=Object.prototype,Sp=Ap.toString,_p=Tp.hasOwnProperty,Np=RegExp("^"+Sp.call(_p).replace(Ep,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Op(e){if(!ru(e)||mp(e))return!1;var t=yp(e)?Np:xp;return t.test(vp(e))}function Rp(e,t){return e==null?void 0:e[t]}function iu(e,t){var r=Rp(e,t);return Op(r)?r:void 0}function Ip(e,t){return e===t||e!==e&&t!==t}var Pp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fp=/^\w*$/;function Cp(e,t){if(xi(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ei(e)?!0:Fp.test(e)||!Pp.test(e)||t!=null&&e in Object(t)}var Mr=iu(Object,"create");function Bp(){this.__data__=Mr?Mr(null):{},this.size=0}function Lp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Up="__lodash_hash_undefined__",jp=Object.prototype,kp=jp.hasOwnProperty;function Mp(e){var t=this.__data__;if(Mr){var r=t[e];return r===Up?void 0:r}return kp.call(t,e)?t[e]:void 0}var Dp=Object.prototype,$p=Dp.hasOwnProperty;function qp(e){var t=this.__data__;return Mr?t[e]!==void 0:$p.call(t,e)}var Hp="__lodash_hash_undefined__";function Vp(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Mr&&t===void 0?Hp:t,this}function or(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}or.prototype.clear=Bp,or.prototype.delete=Lp,or.prototype.get=Mp,or.prototype.has=qp,or.prototype.set=Vp;function Wp(){this.__data__=[],this.size=0}function Tn(e,t){for(var r=e.length;r--;)if(Ip(e[r][0],t))return r;return-1}var Gp=Array.prototype,Kp=Gp.splice;function zp(e){var t=this.__data__,r=Tn(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Kp.call(t,r,1),--this.size,!0}function Xp(e){var t=this.__data__,r=Tn(t,e);return r<0?void 0:t[r][1]}function Yp(e){return Tn(this.__data__,e)>-1}function Jp(e,t){var r=this.__data__,n=Tn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function wr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}wr.prototype.clear=Wp,wr.prototype.delete=zp,wr.prototype.get=Xp,wr.prototype.has=Yp,wr.prototype.set=Jp;var Zp=iu(vi,"Map");function Qp(){this.size=0,this.__data__={hash:new or,map:new(Zp||wr),string:new or}}function eg(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Sn(e,t){var r=e.__data__;return eg(t)?r[typeof t=="string"?"string":"hash"]:r.map}function tg(e){var t=Sn(this,e).delete(e);return this.size-=t?1:0,t}function rg(e){return Sn(this,e).get(e)}function ng(e){return Sn(this,e).has(e)}function ig(e,t){var r=Sn(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function sr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}sr.prototype.clear=Qp,sr.prototype.delete=tg,sr.prototype.get=rg,sr.prototype.has=ng,sr.prototype.set=ig;var og="Expected a function";function Ti(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(og);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(Ti.Cache||sr),r}Ti.Cache=sr;var sg=500;function ag(e){var t=Ti(e,function(n){return r.size===sg&&r.clear(),n}),r=t.cache;return t}var ug=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,lg=/\\(\\)?/g,cg=ag(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ug,function(r,n,o,i){t.push(o?i.replace(lg,"$1"):n||r)}),t});function Dr(e){return e==null?"":tu(e)}function fg(e,t){return xi(e)?e:Cp(e,t)?[e]:cg(Dr(e))}function hg(e){if(typeof e=="string"||Ei(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function dg(e,t){t=fg(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[hg(t[r++])];return r&&r==n?e:void 0}function pg(e,t,r){var n=e==null?void 0:dg(e,t);return n===void 0?r:n}function gg(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i}function yg(e,t,r){var n=e.length;return r=r===void 0?n:r,gg(e,t,r)}var mg="\\ud800-\\udfff",bg="\\u0300-\\u036f",wg="\\ufe20-\\ufe2f",vg="\\u20d0-\\u20ff",Eg=bg+wg+vg,xg="\\ufe0e\\ufe0f",Ag="\\u200d",Tg=RegExp("["+Ag+mg+Eg+xg+"]");function ou(e){return Tg.test(e)}function Sg(e){return e.split("")}var su="\\ud800-\\udfff",_g="\\u0300-\\u036f",Ng="\\ufe20-\\ufe2f",Og="\\u20d0-\\u20ff",Rg=_g+Ng+Og,Ig="\\ufe0e\\ufe0f",Pg="["+su+"]",Si="["+Rg+"]",_i="\\ud83c[\\udffb-\\udfff]",Fg="(?:"+Si+"|"+_i+")",au="[^"+su+"]",uu="(?:\\ud83c[\\udde6-\\uddff]){2}",lu="[\\ud800-\\udbff][\\udc00-\\udfff]",Cg="\\u200d",cu=Fg+"?",fu="["+Ig+"]?",Bg="(?:"+Cg+"(?:"+[au,uu,lu].join("|")+")"+fu+cu+")*",Lg=fu+cu+Bg,Ug="(?:"+[au+Si+"?",Si,uu,lu,Pg].join("|")+")",jg=RegExp(_i+"(?="+_i+")|"+Ug+Lg,"g");function kg(e){return e.match(jg)||[]}function Mg(e){return ou(e)?kg(e):Sg(e)}function Dg(e){return function(t){t=Dr(t);var r=ou(t)?Mg(t):void 0,n=r?r[0]:t.charAt(0),o=r?yg(r,1).join(""):t.slice(1);return n[e]()+o}}var $g=Dg("toUpperCase");function qg(e){return $g(Dr(e).toLowerCase())}function Hg(e,t,r,n){for(var o=-1,i=e==null?0:e.length;++o<i;)r=t(r,e[o],o,e);return r}function Vg(e){return function(t){return e==null?void 0:e[t]}}var Wg={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Gg=Vg(Wg),Kg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zg="\\u0300-\\u036f",Xg="\\ufe20-\\ufe2f",Yg="\\u20d0-\\u20ff",Jg=zg+Xg+Yg,Zg="["+Jg+"]",Qg=RegExp(Zg,"g");function e0(e){return e=Dr(e),e&&e.replace(Kg,Gg).replace(Qg,"")}var t0=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function r0(e){return e.match(t0)||[]}var n0=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function i0(e){return n0.test(e)}var hu="\\ud800-\\udfff",o0="\\u0300-\\u036f",s0="\\ufe20-\\ufe2f",a0="\\u20d0-\\u20ff",u0=o0+s0+a0,du="\\u2700-\\u27bf",pu="a-z\\xdf-\\xf6\\xf8-\\xff",l0="\\xac\\xb1\\xd7\\xf7",c0="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",f0="\\u2000-\\u206f",h0=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",gu="A-Z\\xc0-\\xd6\\xd8-\\xde",d0="\\ufe0e\\ufe0f",yu=l0+c0+f0+h0,mu="['’]",bu="["+yu+"]",p0="["+u0+"]",wu="\\d+",g0="["+du+"]",vu="["+pu+"]",Eu="[^"+hu+yu+wu+du+pu+gu+"]",y0="\\ud83c[\\udffb-\\udfff]",m0="(?:"+p0+"|"+y0+")",b0="[^"+hu+"]",xu="(?:\\ud83c[\\udde6-\\uddff]){2}",Au="[\\ud800-\\udbff][\\udc00-\\udfff]",vr="["+gu+"]",w0="\\u200d",Tu="(?:"+vu+"|"+Eu+")",v0="(?:"+vr+"|"+Eu+")",Su="(?:"+mu+"(?:d|ll|m|re|s|t|ve))?",_u="(?:"+mu+"(?:D|LL|M|RE|S|T|VE))?",Nu=m0+"?",Ou="["+d0+"]?",E0="(?:"+w0+"(?:"+[b0,xu,Au].join("|")+")"+Ou+Nu+")*",x0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",A0="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",T0=Ou+Nu+E0,S0="(?:"+[g0,xu,Au].join("|")+")"+T0,_0=RegExp([vr+"?"+vu+"+"+Su+"(?="+[bu,vr,"$"].join("|")+")",v0+"+"+_u+"(?="+[bu,vr+Tu,"$"].join("|")+")",vr+"?"+Tu+"+"+Su,vr+"+"+_u,A0,x0,wu,S0].join("|"),"g");function N0(e){return e.match(_0)||[]}function O0(e,t,r){return e=Dr(e),t=t,t===void 0?i0(e)?N0(e):r0(e):e.match(t)||[]}var R0="['’]",I0=RegExp(R0,"g");function P0(e){return function(t){return Hg(O0(e0(t).replace(I0,"")),e,"")}}var F0=P0(function(e,t,r){return t=t.toLowerCase(),e+(r?qg(t):t)});const C0={complex:["tar.bz2","tar.gz","tar.xz"]},Ni=e=>e.replace(/[^A-Za-z0-9\-_]/g,""),Ru=(e,t)=>!e||typeof e!="string"?"":e.indexOf("!")>=0?e.split("!")[t]:"",B0=e=>Ru(e,0),Iu=e=>Ru(e,1),Pu=e=>{const t=e.name;if(e.type==="directory"||e.isFolder)return"";const r=t.split(".");if(r.length>2)for(let n=0;n<r.length;n++){const o=r.slice(n,r.length).join(".");if(C0.complex.includes(o))return o}return r.length<2?"":r[r.length-1]},_n=e=>{if(!e)return e;const t={};return Object.keys(e).forEach(r=>{t[F0(r)]=e[r]}),t};function Er(e,t=[]){var m,x,A;const r=((m=e.props[ae.Name])==null?void 0:m.toString())||un.basename(e.filename),n=e.props[ae.FileId],o=e.type==="directory";let i;e.filename.startsWith("/files")||e.filename.startsWith("/space")?i=e.filename.split("/").slice(3).join("/"):i=e.filename,i.startsWith("/")||(i=`/${i}`);const a=Pu({...e,name:r}),u=e.props[ae.LockDiscovery];let c,l,s;u&&(c=u[ae.ActiveLock],l=c[ae.LockOwner],s=c[ae.LockTime]);let f=[];e.props[ae.ShareTypes]&&(f=e.props[ae.ShareTypes]["share-type"],Array.isArray(f)||(f=[f]));const h={};for(const g of t||[]){const d=g.split(":").pop();e.props[d]&&(h[g]=e.props[d])}const b={id:n,fileId:n,storageId:B0(n),parentFolderId:e.props[ae.FileParent],mimeType:e.props[ae.MimeType],name:r,extension:o?"":a,path:i,webDavPath:e.filename,type:o?"folder":e.type,isFolder:o,locked:!!c,lockOwner:l,lockTime:s,processing:e.processing||!1,mdate:e.props[ae.LastModifiedDate],size:o?((x=e.props[ae.ContentSize])==null?void 0:x.toString())||"0":((A=e.props[ae.ContentLength])==null?void 0:A.toString())||"0",permissions:e.props[ae.Permissions]||"",starred:e.props[ae.IsFavorite]!==0,etag:e.props[ae.ETag],shareTypes:f,privateLink:e.props[ae.PrivateLink],downloadURL:e.props[ae.DownloadURL],remoteItemId:e.props[ae.RemoteItemId],remoteItemPath:e.props[ae.ShareRoot],owner:{id:e.props[ae.OwnerId],displayName:e.props[ae.OwnerDisplayName]},tags:(e.props[ae.Tags]||"").toString().split(",").filter(Boolean),audio:_n(e.props[ae.Audio]),location:_n(e.props[ae.Location]),image:_n(e.props[ae.Image]),photo:_n(e.props[ae.Photo]),extraProps:h,canUpload:function(){return this.permissions.indexOf(We.FolderCreateable)>=0},canDownload:function(){return this.permissions.indexOf(We.SecureView)===-1},canBeDeleted:function(){return this.permissions.indexOf(We.Deletable)>=0},canRename:function(){return this.permissions.indexOf(We.Renameable)>=0},canShare:function({ability:g}){return g.can("create-all","Share")&&this.permissions.indexOf(We.Shareable)>=0},canCreate:function(){return this.permissions.indexOf(We.FolderCreateable)>=0},canEditTags:function(){return this.permissions.indexOf(We.Updateable)>=0||this.permissions.indexOf(We.FileUpdateable)>=0},isMounted:function(){return this.permissions.indexOf(We.Mounted)>=0},isReceivedShare:function(){return this.permissions.indexOf(We.Shared)>=0},isShareRoot(){return e.props[ae.ShareRoot]?e.filename.split("/").length===3:!1},canDeny:function(){return this.permissions.indexOf(We.Deny)>=0},getDomSelector:()=>Ni(n)};return Object.defineProperty(b,"nodeId",{get(){return Iu(this.id)}}),b}function L0(e){var i;const t=e.type==="directory",r=(i=e.props[ae.TrashbinOriginalFilename])==null?void 0:i.toString(),n=Pu({name:r,type:e.type}),o=la.basename(e.filename);return{type:t?"folder":e.type,isFolder:t,ddate:e.props[ae.TrashbinDeletedDate],name:la.basename(r),extension:n,path:Se(e.props[ae.TrashbinOriginalLocation],{leadingSlash:!0}),id:o,parentFolderId:e.props[ae.FileParent],webDavPath:"",canUpload:()=>!1,canDownload:()=>!1,canBeDeleted:()=>!0,canBeRestored:function(){return!0},canRename:()=>!1,canShare:()=>!1,canCreate:()=>!1,isMounted:()=>!1,isReceivedShare:()=>!1,getDomSelector:()=>Ni(o)}}var bt=(e=>(e.createUpload="libre.graph/driveItem/upload/create",e.createPermissions="libre.graph/driveItem/permissions/create",e.createChildren="libre.graph/driveItem/children/create",e.readBasic="libre.graph/driveItem/basic/read",e.readPath="libre.graph/driveItem/path/read",e.readQuota="libre.graph/driveItem/quota/read",e.readContent="libre.graph/driveItem/content/read",e.readChildren="libre.graph/driveItem/children/read",e.readDeleted="libre.graph/driveItem/deleted/read",e.readPermissions="libre.graph/driveItem/permissions/read",e.readVersions="libre.graph/driveItem/versions/read",e.updatePath="libre.graph/driveItem/path/update",e.updateDeleted="libre.graph/driveItem/deleted/update",e.updatePermissions="libre.graph/driveItem/permissions/update",e.updateVersions="libre.graph/driveItem/versions/update",e.deleteStandard="libre.graph/driveItem/standard/delete",e.deleteDeleted="libre.graph/driveItem/deleted/delete",e.deletePermissions="libre.graph/driveItem/permissions/delete",e))(bt||{});const Oi=e=>(e==null?void 0:e.driveType)==="personal",Ri=e=>(e==null?void 0:e.driveType)==="public";function U0(e,t){return Se("spaces",e,t,{leadingSlash:!0})}function Ii(e,t=""){return Se("spaces","trash-bin",e,t,{leadingSlash:!0})}function j0(e){var f,h,b,m,x,A;const t=e.publicLinkPassword,r=(f=e.props)==null?void 0:f[ae.FileId],n=(h=e.props)==null?void 0:h[ae.PublicLinkItemType],o=(b=e.props)==null?void 0:b[ae.PublicLinkPermission],i=(m=e.props)==null?void 0:m[ae.PublicLinkExpiration],a=(x=e.props)==null?void 0:x[ae.PublicLinkShareDate],u=(A=e.props)==null?void 0:A[ae.PublicLinkShareOwner],c=e.publicLinkType;let l,s;return c==="ocm"?(l=`ocm/${e.id}`,s=Xd(e.id)):(l=`public/${e.id}`,s=zd(e.id)),Object.assign(k0({...e,driveType:"public",driveAlias:l,webDavPath:s}),{...r&&{fileId:r},...t&&{publicLinkPassword:t},...n&&{publicLinkItemType:n},...o&&{publicLinkPermission:parseInt(o)},...i&&{publicLinkExpiration:i},...a&&{publicLinkShareDate:a},...u&&{publicLinkShareOwner:u},publicLinkType:c})}function k0(e){var l,s,f,h;let t,r;e.special&&(t=e.special.find(b=>b.specialFolder.name==="image"),r=e.special.find(b=>b.specialFolder.name==="readme"),t&&(t.webDavUrl=decodeURI(t.webDavUrl)),r&&(r.webDavUrl=decodeURI(r.webDavUrl)));const n=((s=(l=e.root)==null?void 0:l.deleted)==null?void 0:s.state)==="trashed",o=Se(e.webDavPath||U0(e.id),{leadingSlash:!0}),i=Se(e.serverUrl,"remote.php/dav",o),a=Se(e.webDavTrashPath||Ii(e.id),{leadingSlash:!0}),u=Se(e.serverUrl,"remote.php/dav",a),c={id:e.id,fileId:e.id,storageId:e.id,mimeType:"",name:e.name,description:e.description,extension:"",path:"/",webDavPath:o,webDavTrashPath:a,driveAlias:e.driveAlias,driveType:e.driveType,type:"space",isFolder:!0,mdate:e.lastModifiedDateTime,size:((f=e.quota)==null?void 0:f.used)||0,tags:[],permissions:"",starred:!1,etag:"",shareTypes:[],privateLink:e.webUrl,downloadURL:"",owner:(h=e.owner)==null?void 0:h.user,disabled:n,root:e.root,spaceQuota:e.quota,spaceImageData:t,spaceReadmeData:r,hasTrashedItems:e["@libre.graph.hasTrashedItems"]||!1,graphPermissions:void 0,canUpload:function({user:b}={}){var m;return Oi(this)&&this.isOwner(b)?!0:(m=this.graphPermissions)==null?void 0:m.includes(bt.createUpload)},canDownload:function(){return!0},canBeDeleted:function({ability:b}={}){var m;return this.disabled?b!=null&&b.can("delete-all","Drive")?!0:(m=this.graphPermissions)==null?void 0:m.includes(bt.deletePermissions):!1},canRename:function({ability:b}={}){var m;return b!=null&&b.can("update-all","Drive")?!0:(m=this.graphPermissions)==null?void 0:m.includes(bt.deletePermissions)},canEditDescription:function({ability:b}={}){var m;return b!=null&&b.can("update-all","Drive")?!0:(m=this.graphPermissions)==null?void 0:m.includes(bt.deletePermissions)},canRestore:function({ability:b}={}){var m;return this.disabled?b!=null&&b.can("update-all","Drive")?!0:(m=this.graphPermissions)==null?void 0:m.includes(bt.deletePermissions):!1},canDisable:function({ability:b}={}){var m;return this.disabled?!1:b!=null&&b.can("delete-all","Drive")?!0:(m=this.graphPermissions)==null?void 0:m.includes(bt.deletePermissions)},canShare:function(){var b;return(b=this.graphPermissions)==null?void 0:b.includes(bt.createPermissions)},canEditImage:function(){var b;return this.disabled?!1:(b=this.graphPermissions)==null?void 0:b.includes(bt.deletePermissions)},canEditReadme:function(){var b;return this.disabled?!1:(b=this.graphPermissions)==null?void 0:b.includes(bt.deletePermissions)},canRestoreFromTrashbin:function(){var b;return(b=this.graphPermissions)==null?void 0:b.includes(bt.updateDeleted)},canDeleteFromTrashBin:function({user:b}={}){var m;return Oi(this)&&this.isOwner(b)?!0:(m=this.graphPermissions)==null?void 0:m.includes(bt.deletePermissions)},canListVersions:function({user:b}={}){var m;return Oi(this)&&this.isOwner(b)?!0:(m=this.graphPermissions)==null?void 0:m.includes(bt.readVersions)},canCreate:function(){return!0},canEditTags:function(){return!1},isMounted:function(){return!0},isReceivedShare:function(){return!1},isShareRoot:function(){return["share","mountpoint","public"].includes(e.driveType)},canDeny:()=>!1,getDomSelector:()=>Ni(e.id),getDriveAliasAndItem({path:b}){return Se(this.driveAlias,b,{leadingSlash:!1})},getWebDavUrl({path:b}){return Se(i,b)},getWebDavTrashUrl({path:b}){return Se(u,b)},isOwner(b){var m;return(b==null?void 0:b.id)===((m=this.owner)==null?void 0:m.id)}};return Object.defineProperty(c,"nodeId",{get(){return Iu(this.id)}}),c}const M0=(e,t)=>{const r=new URL(e);r.pathname=[...r.pathname.split("/"),"cloud","capabilities"].filter(Boolean).join("/"),r.searchParams.append("format","json");const n=r.href;return{async getCapabilities(){const o=await t.get(n);return pg(o,"data.ocs.data",{capabilities:null,version:null})}}};var Pi={},Nn={exports:{}},Fu;function Fi(){if(Fu)return Nn.exports;Fu=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(v,T,P){return Function.prototype.apply.call(v,T,P)},r;e&&typeof e.ownKeys=="function"?r=e.ownKeys:Object.getOwnPropertySymbols?r=function(v){return Object.getOwnPropertyNames(v).concat(Object.getOwnPropertySymbols(v))}:r=function(v){return Object.getOwnPropertyNames(v)};function n(y){console&&console.warn&&console.warn(y)}var o=Number.isNaN||function(v){return v!==v};function i(){i.init.call(this)}Nn.exports=i,Nn.exports.once=g,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function u(y){if(typeof y!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof y)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(y){if(typeof y!="number"||y<0||o(y))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+y+".");a=y}}),i.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(v){if(typeof v!="number"||v<0||o(v))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+v+".");return this._maxListeners=v,this};function c(y){return y._maxListeners===void 0?i.defaultMaxListeners:y._maxListeners}i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(v){for(var T=[],P=1;P<arguments.length;P++)T.push(arguments[P]);var I=v==="error",N=this._events;if(N!==void 0)I=I&&N.error===void 0;else if(!I)return!1;if(I){var j;if(T.length>0&&(j=T[0]),j instanceof Error)throw j;var G=new Error("Unhandled error."+(j?" ("+j.message+")":""));throw G.context=j,G}var L=N[v];if(L===void 0)return!1;if(typeof L=="function")t(L,this,T);else for(var D=L.length,oe=m(L,D),P=0;P<D;++P)t(oe[P],this,T);return!0};function l(y,v,T,P){var I,N,j;if(u(T),N=y._events,N===void 0?(N=y._events=Object.create(null),y._eventsCount=0):(N.newListener!==void 0&&(y.emit("newListener",v,T.listener?T.listener:T),N=y._events),j=N[v]),j===void 0)j=N[v]=T,++y._eventsCount;else if(typeof j=="function"?j=N[v]=P?[T,j]:[j,T]:P?j.unshift(T):j.push(T),I=c(y),I>0&&j.length>I&&!j.warned){j.warned=!0;var G=new Error("Possible EventEmitter memory leak detected. "+j.length+" "+String(v)+" listeners added. Use emitter.setMaxListeners() to increase limit");G.name="MaxListenersExceededWarning",G.emitter=y,G.type=v,G.count=j.length,n(G)}return y}i.prototype.addListener=function(v,T){return l(this,v,T,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(v,T){return l(this,v,T,!0)};function s(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(y,v,T){var P={fired:!1,wrapFn:void 0,target:y,type:v,listener:T},I=s.bind(P);return I.listener=T,P.wrapFn=I,I}i.prototype.once=function(v,T){return u(T),this.on(v,f(this,v,T)),this},i.prototype.prependOnceListener=function(v,T){return u(T),this.prependListener(v,f(this,v,T)),this},i.prototype.removeListener=function(v,T){var P,I,N,j,G;if(u(T),I=this._events,I===void 0)return this;if(P=I[v],P===void 0)return this;if(P===T||P.listener===T)--this._eventsCount===0?this._events=Object.create(null):(delete I[v],I.removeListener&&this.emit("removeListener",v,P.listener||T));else if(typeof P!="function"){for(N=-1,j=P.length-1;j>=0;j--)if(P[j]===T||P[j].listener===T){G=P[j].listener,N=j;break}if(N<0)return this;N===0?P.shift():x(P,N),P.length===1&&(I[v]=P[0]),I.removeListener!==void 0&&this.emit("removeListener",v,G||T)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(v){var T,P,I;if(P=this._events,P===void 0)return this;if(P.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):P[v]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete P[v]),this;if(arguments.length===0){var N=Object.keys(P),j;for(I=0;I<N.length;++I)j=N[I],j!=="removeListener"&&this.removeAllListeners(j);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(T=P[v],typeof T=="function")this.removeListener(v,T);else if(T!==void 0)for(I=T.length-1;I>=0;I--)this.removeListener(v,T[I]);return this};function h(y,v,T){var P=y._events;if(P===void 0)return[];var I=P[v];return I===void 0?[]:typeof I=="function"?T?[I.listener||I]:[I]:T?A(I):m(I,I.length)}i.prototype.listeners=function(v){return h(this,v,!0)},i.prototype.rawListeners=function(v){return h(this,v,!1)},i.listenerCount=function(y,v){return typeof y.listenerCount=="function"?y.listenerCount(v):b.call(y,v)},i.prototype.listenerCount=b;function b(y){var v=this._events;if(v!==void 0){var T=v[y];if(typeof T=="function")return 1;if(T!==void 0)return T.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]};function m(y,v){for(var T=new Array(v),P=0;P<v;++P)T[P]=y[P];return T}function x(y,v){for(;v+1<y.length;v++)y[v]=y[v+1];y.pop()}function A(y){for(var v=new Array(y.length),T=0;T<v.length;++T)v[T]=y[T].listener||y[T];return v}function g(y,v){return new Promise(function(T,P){function I(j){y.removeListener(v,N),P(j)}function N(){typeof y.removeListener=="function"&&y.removeListener("error",I),T([].slice.call(arguments))}p(y,v,N,{once:!0}),v!=="error"&&d(y,I,{once:!0})})}function d(y,v,T){typeof y.on=="function"&&p(y,"error",v,T)}function p(y,v,T,P){if(typeof y.on=="function")P.once?y.once(v,T):y.on(v,T);else if(typeof y.addEventListener=="function")y.addEventListener(v,function I(N){P.once&&y.removeEventListener(v,I),T(N)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof y)}return Nn.exports}var On={exports:{}},Cu;function ar(){return Cu||(Cu=1,typeof Object.create=="function"?On.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:On.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),On.exports}var Ci,Bu;function Lu(){return Bu||(Bu=1,Ci=Fi().EventEmitter),Ci}var Bi={},Uu;function Rn(){return Uu||(Uu=1,function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var t={},r={};r.byteLength=s,r.toByteArray=h,r.fromByteArray=x;for(var n=[],o=[],i=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,c=a.length;u<c;++u)n[u]=a[u],o[a.charCodeAt(u)]=u;o[45]=62,o[95]=63;function l(d){var p=d.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=d.indexOf("=");y===-1&&(y=p);var v=y===p?0:4-y%4;return[y,v]}function s(d){var p=l(d),y=p[0],v=p[1];return(y+v)*3/4-v}function f(d,p,y){return(p+y)*3/4-y}function h(d){var p,y=l(d),v=y[0],T=y[1],P=new i(f(d,v,T)),I=0,N=T>0?v-4:v,j;for(j=0;j<N;j+=4)p=o[d.charCodeAt(j)]<<18|o[d.charCodeAt(j+1)]<<12|o[d.charCodeAt(j+2)]<<6|o[d.charCodeAt(j+3)],P[I++]=p>>16&255,P[I++]=p>>8&255,P[I++]=p&255;return T===2&&(p=o[d.charCodeAt(j)]<<2|o[d.charCodeAt(j+1)]>>4,P[I++]=p&255),T===1&&(p=o[d.charCodeAt(j)]<<10|o[d.charCodeAt(j+1)]<<4|o[d.charCodeAt(j+2)]>>2,P[I++]=p>>8&255,P[I++]=p&255),P}function b(d){return n[d>>18&63]+n[d>>12&63]+n[d>>6&63]+n[d&63]}function m(d,p,y){for(var v,T=[],P=p;P<y;P+=3)v=(d[P]<<16&16711680)+(d[P+1]<<8&65280)+(d[P+2]&255),T.push(b(v));return T.join("")}function x(d){for(var p,y=d.length,v=y%3,T=[],P=16383,I=0,N=y-v;I<N;I+=P)T.push(m(d,I,I+P>N?N:I+P));return v===1?(p=d[y-1],T.push(n[p>>2]+n[p<<4&63]+"==")):v===2&&(p=(d[y-2]<<8)+d[y-1],T.push(n[p>>10]+n[p>>4&63]+n[p<<2&63]+"=")),T.join("")}var A={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */A.read=function(d,p,y,v,T){var P,I,N=T*8-v-1,j=(1<<N)-1,G=j>>1,L=-7,D=y?T-1:0,oe=y?-1:1,re=d[p+D];for(D+=oe,P=re&(1<<-L)-1,re>>=-L,L+=N;L>0;P=P*256+d[p+D],D+=oe,L-=8);for(I=P&(1<<-L)-1,P>>=-L,L+=v;L>0;I=I*256+d[p+D],D+=oe,L-=8);if(P===0)P=1-G;else{if(P===j)return I?NaN:(re?-1:1)*(1/0);I=I+Math.pow(2,v),P=P-G}return(re?-1:1)*I*Math.pow(2,P-v)},A.write=function(d,p,y,v,T,P){var I,N,j,G=P*8-T-1,L=(1<<G)-1,D=L>>1,oe=T===23?Math.pow(2,-24)-Math.pow(2,-77):0,re=v?0:P-1,he=v?1:-1,ce=p<0||p===0&&1/p<0?1:0;for(p=Math.abs(p),isNaN(p)||p===1/0?(N=isNaN(p)?1:0,I=L):(I=Math.floor(Math.log(p)/Math.LN2),p*(j=Math.pow(2,-I))<1&&(I--,j*=2),I+D>=1?p+=oe/j:p+=oe*Math.pow(2,1-D),p*j>=2&&(I++,j/=2),I+D>=L?(N=0,I=L):I+D>=1?(N=(p*j-1)*Math.pow(2,T),I=I+D):(N=p*Math.pow(2,D-1)*Math.pow(2,T),I=0));T>=8;d[y+re]=N&255,re+=he,N/=256,T-=8);for(I=I<<T|N,G+=T;G>0;d[y+re]=I&255,re+=he,I/=256,G-=8);d[y+re-he]|=ce*128};/*!
12
- * The buffer module from node.js, for the browser.
13
- *
14
- * @author Feross Aboukhadijeh <https://feross.org>
15
- * @license MIT
16
- */(function(d){const p=r,y=A,v=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;d.Buffer=L,d.SlowBuffer=Q,d.INSPECT_MAX_BYTES=50;const T=2147483647;d.kMaxLength=T;const{Uint8Array:P,ArrayBuffer:I,SharedArrayBuffer:N}=globalThis;L.TYPED_ARRAY_SUPPORT=j(),!L.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function j(){try{const C=new P(1),E={foo:function(){return 42}};return Object.setPrototypeOf(E,P.prototype),Object.setPrototypeOf(C,E),C.foo()===42}catch{return!1}}Object.defineProperty(L.prototype,"parent",{enumerable:!0,get:function(){if(L.isBuffer(this))return this.buffer}}),Object.defineProperty(L.prototype,"offset",{enumerable:!0,get:function(){if(L.isBuffer(this))return this.byteOffset}});function G(C){if(C>T)throw new RangeError('The value "'+C+'" is invalid for option "size"');const E=new P(C);return Object.setPrototypeOf(E,L.prototype),E}function L(C,E,_){if(typeof C=="number"){if(typeof E=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return he(C)}return D(C,E,_)}L.poolSize=8192;function D(C,E,_){if(typeof C=="string")return ce(C,E);if(I.isView(C))return fe(C);if(C==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof C);if(Bt(C,I)||C&&Bt(C.buffer,I)||typeof N<"u"&&(Bt(C,N)||C&&Bt(C.buffer,N)))return Ee(C,E,_);if(typeof C=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const M=C.valueOf&&C.valueOf();if(M!=null&&M!==C)return L.from(M,E,_);const W=be(C);if(W)return W;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof C[Symbol.toPrimitive]=="function")return L.from(C[Symbol.toPrimitive]("string"),E,_);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof C)}L.from=function(C,E,_){return D(C,E,_)},Object.setPrototypeOf(L.prototype,P.prototype),Object.setPrototypeOf(L,P);function oe(C){if(typeof C!="number")throw new TypeError('"size" argument must be of type number');if(C<0)throw new RangeError('The value "'+C+'" is invalid for option "size"')}function re(C,E,_){return oe(C),C<=0?G(C):E!==void 0?typeof _=="string"?G(C).fill(E,_):G(C).fill(E):G(C)}L.alloc=function(C,E,_){return re(C,E,_)};function he(C){return oe(C),G(C<0?0:K(C)|0)}L.allocUnsafe=function(C){return he(C)},L.allocUnsafeSlow=function(C){return he(C)};function ce(C,E){if((typeof E!="string"||E==="")&&(E="utf8"),!L.isEncoding(E))throw new TypeError("Unknown encoding: "+E);const _=ee(C,E)|0;let M=G(_);const W=M.write(C,E);return W!==_&&(M=M.slice(0,W)),M}function ge(C){const E=C.length<0?0:K(C.length)|0,_=G(E);for(let M=0;M<E;M+=1)_[M]=C[M]&255;return _}function fe(C){if(Bt(C,P)){const E=new P(C);return Ee(E.buffer,E.byteOffset,E.byteLength)}return ge(C)}function Ee(C,E,_){if(E<0||C.byteLength<E)throw new RangeError('"offset" is outside of buffer bounds');if(C.byteLength<E+(_||0))throw new RangeError('"length" is outside of buffer bounds');let M;return E===void 0&&_===void 0?M=new P(C):_===void 0?M=new P(C,E):M=new P(C,E,_),Object.setPrototypeOf(M,L.prototype),M}function be(C){if(L.isBuffer(C)){const E=K(C.length)|0,_=G(E);return _.length===0||C.copy(_,0,0,E),_}if(C.length!==void 0)return typeof C.length!="number"||Ys(C.length)?G(0):ge(C);if(C.type==="Buffer"&&Array.isArray(C.data))return ge(C.data)}function K(C){if(C>=T)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+T.toString(16)+" bytes");return C|0}function Q(C){return+C!=C&&(C=0),L.alloc(+C)}L.isBuffer=function(E){return E!=null&&E._isBuffer===!0&&E!==L.prototype},L.compare=function(E,_){if(Bt(E,P)&&(E=L.from(E,E.offset,E.byteLength)),Bt(_,P)&&(_=L.from(_,_.offset,_.byteLength)),!L.isBuffer(E)||!L.isBuffer(_))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(E===_)return 0;let M=E.length,W=_.length;for(let X=0,ie=Math.min(M,W);X<ie;++X)if(E[X]!==_[X]){M=E[X],W=_[X];break}return M<W?-1:W<M?1:0},L.isEncoding=function(E){switch(String(E).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},L.concat=function(E,_){if(!Array.isArray(E))throw new TypeError('"list" argument must be an Array of Buffers');if(E.length===0)return L.alloc(0);let M;if(_===void 0)for(_=0,M=0;M<E.length;++M)_+=E[M].length;const W=L.allocUnsafe(_);let X=0;for(M=0;M<E.length;++M){let ie=E[M];if(Bt(ie,P))X+ie.length>W.length?(L.isBuffer(ie)||(ie=L.from(ie)),ie.copy(W,X)):P.prototype.set.call(W,ie,X);else if(L.isBuffer(ie))ie.copy(W,X);else throw new TypeError('"list" argument must be an Array of Buffers');X+=ie.length}return W};function ee(C,E){if(L.isBuffer(C))return C.length;if(I.isView(C)||Bt(C,I))return C.byteLength;if(typeof C!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof C);const _=C.length,M=arguments.length>2&&arguments[2]===!0;if(!M&&_===0)return 0;let W=!1;for(;;)switch(E){case"ascii":case"latin1":case"binary":return _;case"utf8":case"utf-8":return Ue(C).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _*2;case"hex":return _>>>1;case"base64":return Re(C).length;default:if(W)return M?-1:Ue(C).length;E=(""+E).toLowerCase(),W=!0}}L.byteLength=ee;function ue(C,E,_){let M=!1;if((E===void 0||E<0)&&(E=0),E>this.length||((_===void 0||_>this.length)&&(_=this.length),_<=0)||(_>>>=0,E>>>=0,_<=E))return"";for(C||(C="utf8");;)switch(C){case"hex":return rt(this,E,_);case"utf8":case"utf-8":return pe(this,E,_);case"ascii":return Be(this,E,_);case"latin1":case"binary":return te(this,E,_);case"base64":return se(this,E,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Je(this,E,_);default:if(M)throw new TypeError("Unknown encoding: "+C);C=(C+"").toLowerCase(),M=!0}}L.prototype._isBuffer=!0;function V(C,E,_){const M=C[E];C[E]=C[_],C[_]=M}L.prototype.swap16=function(){const E=this.length;if(E%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let _=0;_<E;_+=2)V(this,_,_+1);return this},L.prototype.swap32=function(){const E=this.length;if(E%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let _=0;_<E;_+=4)V(this,_,_+3),V(this,_+1,_+2);return this},L.prototype.swap64=function(){const E=this.length;if(E%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let _=0;_<E;_+=8)V(this,_,_+7),V(this,_+1,_+6),V(this,_+2,_+5),V(this,_+3,_+4);return this},L.prototype.toString=function(){const E=this.length;return E===0?"":arguments.length===0?pe(this,0,E):ue.apply(this,arguments)},L.prototype.toLocaleString=L.prototype.toString,L.prototype.equals=function(E){if(!L.isBuffer(E))throw new TypeError("Argument must be a Buffer");return this===E?!0:L.compare(this,E)===0},L.prototype.inspect=function(){let E="";const _=d.INSPECT_MAX_BYTES;return E=this.toString("hex",0,_).replace(/(.{2})/g,"$1 ").trim(),this.length>_&&(E+=" ... "),"<Buffer "+E+">"},v&&(L.prototype[v]=L.prototype.inspect),L.prototype.compare=function(E,_,M,W,X){if(Bt(E,P)&&(E=L.from(E,E.offset,E.byteLength)),!L.isBuffer(E))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof E);if(_===void 0&&(_=0),M===void 0&&(M=E?E.length:0),W===void 0&&(W=0),X===void 0&&(X=this.length),_<0||M>E.length||W<0||X>this.length)throw new RangeError("out of range index");if(W>=X&&_>=M)return 0;if(W>=X)return-1;if(_>=M)return 1;if(_>>>=0,M>>>=0,W>>>=0,X>>>=0,this===E)return 0;let ie=X-W,Ae=M-_;const Ge=Math.min(ie,Ae),De=this.slice(W,X),Ke=E.slice(_,M);for(let Ce=0;Ce<Ge;++Ce)if(De[Ce]!==Ke[Ce]){ie=De[Ce],Ae=Ke[Ce];break}return ie<Ae?-1:Ae<ie?1:0};function R(C,E,_,M,W){if(C.length===0)return-1;if(typeof _=="string"?(M=_,_=0):_>2147483647?_=2147483647:_<-2147483648&&(_=-2147483648),_=+_,Ys(_)&&(_=W?0:C.length-1),_<0&&(_=C.length+_),_>=C.length){if(W)return-1;_=C.length-1}else if(_<0)if(W)_=0;else return-1;if(typeof E=="string"&&(E=L.from(E,M)),L.isBuffer(E))return E.length===0?-1:O(C,E,_,M,W);if(typeof E=="number")return E=E&255,typeof P.prototype.indexOf=="function"?W?P.prototype.indexOf.call(C,E,_):P.prototype.lastIndexOf.call(C,E,_):O(C,[E],_,M,W);throw new TypeError("val must be string, number or Buffer")}function O(C,E,_,M,W){let X=1,ie=C.length,Ae=E.length;if(M!==void 0&&(M=String(M).toLowerCase(),M==="ucs2"||M==="ucs-2"||M==="utf16le"||M==="utf-16le")){if(C.length<2||E.length<2)return-1;X=2,ie/=2,Ae/=2,_/=2}function Ge(Ke,Ce){return X===1?Ke[Ce]:Ke.readUInt16BE(Ce*X)}let De;if(W){let Ke=-1;for(De=_;De<ie;De++)if(Ge(C,De)===Ge(E,Ke===-1?0:De-Ke)){if(Ke===-1&&(Ke=De),De-Ke+1===Ae)return Ke*X}else Ke!==-1&&(De-=De-Ke),Ke=-1}else for(_+Ae>ie&&(_=ie-Ae),De=_;De>=0;De--){let Ke=!0;for(let Ce=0;Ce<Ae;Ce++)if(Ge(C,De+Ce)!==Ge(E,Ce)){Ke=!1;break}if(Ke)return De}return-1}L.prototype.includes=function(E,_,M){return this.indexOf(E,_,M)!==-1},L.prototype.indexOf=function(E,_,M){return R(this,E,_,M,!0)},L.prototype.lastIndexOf=function(E,_,M){return R(this,E,_,M,!1)};function q(C,E,_,M){_=Number(_)||0;const W=C.length-_;M?(M=Number(M),M>W&&(M=W)):M=W;const X=E.length;M>X/2&&(M=X/2);let ie;for(ie=0;ie<M;++ie){const Ae=parseInt(E.substr(ie*2,2),16);if(Ys(Ae))return ie;C[_+ie]=Ae}return ie}function $(C,E,_,M){return Yn(Ue(E,C.length-_),C,_,M)}function B(C,E,_,M){return Yn(je(E),C,_,M)}function U(C,E,_,M){return Yn(Re(E),C,_,M)}function Y(C,E,_,M){return Yn(Me(E,C.length-_),C,_,M)}L.prototype.write=function(E,_,M,W){if(_===void 0)W="utf8",M=this.length,_=0;else if(M===void 0&&typeof _=="string")W=_,M=this.length,_=0;else if(isFinite(_))_=_>>>0,isFinite(M)?(M=M>>>0,W===void 0&&(W="utf8")):(W=M,M=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const X=this.length-_;if((M===void 0||M>X)&&(M=X),E.length>0&&(M<0||_<0)||_>this.length)throw new RangeError("Attempt to write outside buffer bounds");W||(W="utf8");let ie=!1;for(;;)switch(W){case"hex":return q(this,E,_,M);case"utf8":case"utf-8":return $(this,E,_,M);case"ascii":case"latin1":case"binary":return B(this,E,_,M);case"base64":return U(this,E,_,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,E,_,M);default:if(ie)throw new TypeError("Unknown encoding: "+W);W=(""+W).toLowerCase(),ie=!0}},L.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function se(C,E,_){return E===0&&_===C.length?p.fromByteArray(C):p.fromByteArray(C.slice(E,_))}function pe(C,E,_){_=Math.min(C.length,_);const M=[];let W=E;for(;W<_;){const X=C[W];let ie=null,Ae=X>239?4:X>223?3:X>191?2:1;if(W+Ae<=_){let Ge,De,Ke,Ce;switch(Ae){case 1:X<128&&(ie=X);break;case 2:Ge=C[W+1],(Ge&192)===128&&(Ce=(X&31)<<6|Ge&63,Ce>127&&(ie=Ce));break;case 3:Ge=C[W+1],De=C[W+2],(Ge&192)===128&&(De&192)===128&&(Ce=(X&15)<<12|(Ge&63)<<6|De&63,Ce>2047&&(Ce<55296||Ce>57343)&&(ie=Ce));break;case 4:Ge=C[W+1],De=C[W+2],Ke=C[W+3],(Ge&192)===128&&(De&192)===128&&(Ke&192)===128&&(Ce=(X&15)<<18|(Ge&63)<<12|(De&63)<<6|Ke&63,Ce>65535&&Ce<1114112&&(ie=Ce))}}ie===null?(ie=65533,Ae=1):ie>65535&&(ie-=65536,M.push(ie>>>10&1023|55296),ie=56320|ie&1023),M.push(ie),W+=Ae}return de(M)}const le=4096;function de(C){const E=C.length;if(E<=le)return String.fromCharCode.apply(String,C);let _="",M=0;for(;M<E;)_+=String.fromCharCode.apply(String,C.slice(M,M+=le));return _}function Be(C,E,_){let M="";_=Math.min(C.length,_);for(let W=E;W<_;++W)M+=String.fromCharCode(C[W]&127);return M}function te(C,E,_){let M="";_=Math.min(C.length,_);for(let W=E;W<_;++W)M+=String.fromCharCode(C[W]);return M}function rt(C,E,_){const M=C.length;(!E||E<0)&&(E=0),(!_||_<0||_>M)&&(_=M);let W="";for(let X=E;X<_;++X)W+=u1[C[X]];return W}function Je(C,E,_){const M=C.slice(E,_);let W="";for(let X=0;X<M.length-1;X+=2)W+=String.fromCharCode(M[X]+M[X+1]*256);return W}L.prototype.slice=function(E,_){const M=this.length;E=~~E,_=_===void 0?M:~~_,E<0?(E+=M,E<0&&(E=0)):E>M&&(E=M),_<0?(_+=M,_<0&&(_=0)):_>M&&(_=M),_<E&&(_=E);const W=this.subarray(E,_);return Object.setPrototypeOf(W,L.prototype),W};function Ne(C,E,_){if(C%1!==0||C<0)throw new RangeError("offset is not uint");if(C+E>_)throw new RangeError("Trying to access beyond buffer length")}L.prototype.readUintLE=L.prototype.readUIntLE=function(E,_,M){E=E>>>0,_=_>>>0,M||Ne(E,_,this.length);let W=this[E],X=1,ie=0;for(;++ie<_&&(X*=256);)W+=this[E+ie]*X;return W},L.prototype.readUintBE=L.prototype.readUIntBE=function(E,_,M){E=E>>>0,_=_>>>0,M||Ne(E,_,this.length);let W=this[E+--_],X=1;for(;_>0&&(X*=256);)W+=this[E+--_]*X;return W},L.prototype.readUint8=L.prototype.readUInt8=function(E,_){return E=E>>>0,_||Ne(E,1,this.length),this[E]},L.prototype.readUint16LE=L.prototype.readUInt16LE=function(E,_){return E=E>>>0,_||Ne(E,2,this.length),this[E]|this[E+1]<<8},L.prototype.readUint16BE=L.prototype.readUInt16BE=function(E,_){return E=E>>>0,_||Ne(E,2,this.length),this[E]<<8|this[E+1]},L.prototype.readUint32LE=L.prototype.readUInt32LE=function(E,_){return E=E>>>0,_||Ne(E,4,this.length),(this[E]|this[E+1]<<8|this[E+2]<<16)+this[E+3]*16777216},L.prototype.readUint32BE=L.prototype.readUInt32BE=function(E,_){return E=E>>>0,_||Ne(E,4,this.length),this[E]*16777216+(this[E+1]<<16|this[E+2]<<8|this[E+3])},L.prototype.readBigUInt64LE=Zt(function(E){E=E>>>0,H(E,"offset");const _=this[E],M=this[E+7];(_===void 0||M===void 0)&&z(E,this.length-8);const W=_+this[++E]*2**8+this[++E]*2**16+this[++E]*2**24,X=this[++E]+this[++E]*2**8+this[++E]*2**16+M*2**24;return BigInt(W)+(BigInt(X)<<BigInt(32))}),L.prototype.readBigUInt64BE=Zt(function(E){E=E>>>0,H(E,"offset");const _=this[E],M=this[E+7];(_===void 0||M===void 0)&&z(E,this.length-8);const W=_*2**24+this[++E]*2**16+this[++E]*2**8+this[++E],X=this[++E]*2**24+this[++E]*2**16+this[++E]*2**8+M;return(BigInt(W)<<BigInt(32))+BigInt(X)}),L.prototype.readIntLE=function(E,_,M){E=E>>>0,_=_>>>0,M||Ne(E,_,this.length);let W=this[E],X=1,ie=0;for(;++ie<_&&(X*=256);)W+=this[E+ie]*X;return X*=128,W>=X&&(W-=Math.pow(2,8*_)),W},L.prototype.readIntBE=function(E,_,M){E=E>>>0,_=_>>>0,M||Ne(E,_,this.length);let W=_,X=1,ie=this[E+--W];for(;W>0&&(X*=256);)ie+=this[E+--W]*X;return X*=128,ie>=X&&(ie-=Math.pow(2,8*_)),ie},L.prototype.readInt8=function(E,_){return E=E>>>0,_||Ne(E,1,this.length),this[E]&128?(255-this[E]+1)*-1:this[E]},L.prototype.readInt16LE=function(E,_){E=E>>>0,_||Ne(E,2,this.length);const M=this[E]|this[E+1]<<8;return M&32768?M|4294901760:M},L.prototype.readInt16BE=function(E,_){E=E>>>0,_||Ne(E,2,this.length);const M=this[E+1]|this[E]<<8;return M&32768?M|4294901760:M},L.prototype.readInt32LE=function(E,_){return E=E>>>0,_||Ne(E,4,this.length),this[E]|this[E+1]<<8|this[E+2]<<16|this[E+3]<<24},L.prototype.readInt32BE=function(E,_){return E=E>>>0,_||Ne(E,4,this.length),this[E]<<24|this[E+1]<<16|this[E+2]<<8|this[E+3]},L.prototype.readBigInt64LE=Zt(function(E){E=E>>>0,H(E,"offset");const _=this[E],M=this[E+7];(_===void 0||M===void 0)&&z(E,this.length-8);const W=this[E+4]+this[E+5]*2**8+this[E+6]*2**16+(M<<24);return(BigInt(W)<<BigInt(32))+BigInt(_+this[++E]*2**8+this[++E]*2**16+this[++E]*2**24)}),L.prototype.readBigInt64BE=Zt(function(E){E=E>>>0,H(E,"offset");const _=this[E],M=this[E+7];(_===void 0||M===void 0)&&z(E,this.length-8);const W=(_<<24)+this[++E]*2**16+this[++E]*2**8+this[++E];return(BigInt(W)<<BigInt(32))+BigInt(this[++E]*2**24+this[++E]*2**16+this[++E]*2**8+M)}),L.prototype.readFloatLE=function(E,_){return E=E>>>0,_||Ne(E,4,this.length),y.read(this,E,!0,23,4)},L.prototype.readFloatBE=function(E,_){return E=E>>>0,_||Ne(E,4,this.length),y.read(this,E,!1,23,4)},L.prototype.readDoubleLE=function(E,_){return E=E>>>0,_||Ne(E,8,this.length),y.read(this,E,!0,52,8)},L.prototype.readDoubleBE=function(E,_){return E=E>>>0,_||Ne(E,8,this.length),y.read(this,E,!1,52,8)};function Le(C,E,_,M,W,X){if(!L.isBuffer(C))throw new TypeError('"buffer" argument must be a Buffer instance');if(E>W||E<X)throw new RangeError('"value" argument is out of bounds');if(_+M>C.length)throw new RangeError("Index out of range")}L.prototype.writeUintLE=L.prototype.writeUIntLE=function(E,_,M,W){if(E=+E,_=_>>>0,M=M>>>0,!W){const Ae=Math.pow(2,8*M)-1;Le(this,E,_,M,Ae,0)}let X=1,ie=0;for(this[_]=E&255;++ie<M&&(X*=256);)this[_+ie]=E/X&255;return _+M},L.prototype.writeUintBE=L.prototype.writeUIntBE=function(E,_,M,W){if(E=+E,_=_>>>0,M=M>>>0,!W){const Ae=Math.pow(2,8*M)-1;Le(this,E,_,M,Ae,0)}let X=M-1,ie=1;for(this[_+X]=E&255;--X>=0&&(ie*=256);)this[_+X]=E/ie&255;return _+M},L.prototype.writeUint8=L.prototype.writeUInt8=function(E,_,M){return E=+E,_=_>>>0,M||Le(this,E,_,1,255,0),this[_]=E&255,_+1},L.prototype.writeUint16LE=L.prototype.writeUInt16LE=function(E,_,M){return E=+E,_=_>>>0,M||Le(this,E,_,2,65535,0),this[_]=E&255,this[_+1]=E>>>8,_+2},L.prototype.writeUint16BE=L.prototype.writeUInt16BE=function(E,_,M){return E=+E,_=_>>>0,M||Le(this,E,_,2,65535,0),this[_]=E>>>8,this[_+1]=E&255,_+2},L.prototype.writeUint32LE=L.prototype.writeUInt32LE=function(E,_,M){return E=+E,_=_>>>0,M||Le(this,E,_,4,4294967295,0),this[_+3]=E>>>24,this[_+2]=E>>>16,this[_+1]=E>>>8,this[_]=E&255,_+4},L.prototype.writeUint32BE=L.prototype.writeUInt32BE=function(E,_,M){return E=+E,_=_>>>0,M||Le(this,E,_,4,4294967295,0),this[_]=E>>>24,this[_+1]=E>>>16,this[_+2]=E>>>8,this[_+3]=E&255,_+4};function ct(C,E,_,M,W){k(E,M,W,C,_,7);let X=Number(E&BigInt(4294967295));C[_++]=X,X=X>>8,C[_++]=X,X=X>>8,C[_++]=X,X=X>>8,C[_++]=X;let ie=Number(E>>BigInt(32)&BigInt(4294967295));return C[_++]=ie,ie=ie>>8,C[_++]=ie,ie=ie>>8,C[_++]=ie,ie=ie>>8,C[_++]=ie,_}function st(C,E,_,M,W){k(E,M,W,C,_,7);let X=Number(E&BigInt(4294967295));C[_+7]=X,X=X>>8,C[_+6]=X,X=X>>8,C[_+5]=X,X=X>>8,C[_+4]=X;let ie=Number(E>>BigInt(32)&BigInt(4294967295));return C[_+3]=ie,ie=ie>>8,C[_+2]=ie,ie=ie>>8,C[_+1]=ie,ie=ie>>8,C[_]=ie,_+8}L.prototype.writeBigUInt64LE=Zt(function(E,_=0){return ct(this,E,_,BigInt(0),BigInt("0xffffffffffffffff"))}),L.prototype.writeBigUInt64BE=Zt(function(E,_=0){return st(this,E,_,BigInt(0),BigInt("0xffffffffffffffff"))}),L.prototype.writeIntLE=function(E,_,M,W){if(E=+E,_=_>>>0,!W){const Ge=Math.pow(2,8*M-1);Le(this,E,_,M,Ge-1,-Ge)}let X=0,ie=1,Ae=0;for(this[_]=E&255;++X<M&&(ie*=256);)E<0&&Ae===0&&this[_+X-1]!==0&&(Ae=1),this[_+X]=(E/ie>>0)-Ae&255;return _+M},L.prototype.writeIntBE=function(E,_,M,W){if(E=+E,_=_>>>0,!W){const Ge=Math.pow(2,8*M-1);Le(this,E,_,M,Ge-1,-Ge)}let X=M-1,ie=1,Ae=0;for(this[_+X]=E&255;--X>=0&&(ie*=256);)E<0&&Ae===0&&this[_+X+1]!==0&&(Ae=1),this[_+X]=(E/ie>>0)-Ae&255;return _+M},L.prototype.writeInt8=function(E,_,M){return E=+E,_=_>>>0,M||Le(this,E,_,1,127,-128),E<0&&(E=255+E+1),this[_]=E&255,_+1},L.prototype.writeInt16LE=function(E,_,M){return E=+E,_=_>>>0,M||Le(this,E,_,2,32767,-32768),this[_]=E&255,this[_+1]=E>>>8,_+2},L.prototype.writeInt16BE=function(E,_,M){return E=+E,_=_>>>0,M||Le(this,E,_,2,32767,-32768),this[_]=E>>>8,this[_+1]=E&255,_+2},L.prototype.writeInt32LE=function(E,_,M){return E=+E,_=_>>>0,M||Le(this,E,_,4,2147483647,-2147483648),this[_]=E&255,this[_+1]=E>>>8,this[_+2]=E>>>16,this[_+3]=E>>>24,_+4},L.prototype.writeInt32BE=function(E,_,M){return E=+E,_=_>>>0,M||Le(this,E,_,4,2147483647,-2147483648),E<0&&(E=4294967295+E+1),this[_]=E>>>24,this[_+1]=E>>>16,this[_+2]=E>>>8,this[_+3]=E&255,_+4},L.prototype.writeBigInt64LE=Zt(function(E,_=0){return ct(this,E,_,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),L.prototype.writeBigInt64BE=Zt(function(E,_=0){return st(this,E,_,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function _t(C,E,_,M,W,X){if(_+M>C.length)throw new RangeError("Index out of range");if(_<0)throw new RangeError("Index out of range")}function Ot(C,E,_,M,W){return E=+E,_=_>>>0,W||_t(C,E,_,4),y.write(C,E,_,M,23,4),_+4}L.prototype.writeFloatLE=function(E,_,M){return Ot(this,E,_,!0,M)},L.prototype.writeFloatBE=function(E,_,M){return Ot(this,E,_,!1,M)};function it(C,E,_,M,W){return E=+E,_=_>>>0,W||_t(C,E,_,8),y.write(C,E,_,M,52,8),_+8}L.prototype.writeDoubleLE=function(E,_,M){return it(this,E,_,!0,M)},L.prototype.writeDoubleBE=function(E,_,M){return it(this,E,_,!1,M)},L.prototype.copy=function(E,_,M,W){if(!L.isBuffer(E))throw new TypeError("argument should be a Buffer");if(M||(M=0),!W&&W!==0&&(W=this.length),_>=E.length&&(_=E.length),_||(_=0),W>0&&W<M&&(W=M),W===M||E.length===0||this.length===0)return 0;if(_<0)throw new RangeError("targetStart out of bounds");if(M<0||M>=this.length)throw new RangeError("Index out of range");if(W<0)throw new RangeError("sourceEnd out of bounds");W>this.length&&(W=this.length),E.length-_<W-M&&(W=E.length-_+M);const X=W-M;return this===E&&typeof P.prototype.copyWithin=="function"?this.copyWithin(_,M,W):P.prototype.set.call(E,this.subarray(M,W),_),X},L.prototype.fill=function(E,_,M,W){if(typeof E=="string"){if(typeof _=="string"?(W=_,_=0,M=this.length):typeof M=="string"&&(W=M,M=this.length),W!==void 0&&typeof W!="string")throw new TypeError("encoding must be a string");if(typeof W=="string"&&!L.isEncoding(W))throw new TypeError("Unknown encoding: "+W);if(E.length===1){const ie=E.charCodeAt(0);(W==="utf8"&&ie<128||W==="latin1")&&(E=ie)}}else typeof E=="number"?E=E&255:typeof E=="boolean"&&(E=Number(E));if(_<0||this.length<_||this.length<M)throw new RangeError("Out of range index");if(M<=_)return this;_=_>>>0,M=M===void 0?this.length:M>>>0,E||(E=0);let X;if(typeof E=="number")for(X=_;X<M;++X)this[X]=E;else{const ie=L.isBuffer(E)?E:L.from(E,W),Ae=ie.length;if(Ae===0)throw new TypeError('The value "'+E+'" is invalid for argument "value"');for(X=0;X<M-_;++X)this[X+_]=ie[X%Ae]}return this};const Jt={};function F(C,E,_){Jt[C]=class extends _{constructor(){super(),Object.defineProperty(this,"message",{value:E.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${C}]`,this.stack,delete this.name}get code(){return C}set code(W){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:W,writable:!0})}toString(){return`${this.name} [${C}]: ${this.message}`}}}F("ERR_BUFFER_OUT_OF_BOUNDS",function(C){return C?`${C} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),F("ERR_INVALID_ARG_TYPE",function(C,E){return`The "${C}" argument must be of type number. Received type ${typeof E}`},TypeError),F("ERR_OUT_OF_RANGE",function(C,E,_){let M=`The value of "${C}" is out of range.`,W=_;return Number.isInteger(_)&&Math.abs(_)>2**32?W=w(String(_)):typeof _=="bigint"&&(W=String(_),(_>BigInt(2)**BigInt(32)||_<-(BigInt(2)**BigInt(32)))&&(W=w(W)),W+="n"),M+=` It must be ${E}. Received ${W}`,M},RangeError);function w(C){let E="",_=C.length;const M=C[0]==="-"?1:0;for(;_>=M+4;_-=3)E=`_${C.slice(_-3,_)}${E}`;return`${C.slice(0,_)}${E}`}function S(C,E,_){H(E,"offset"),(C[E]===void 0||C[E+_]===void 0)&&z(E,C.length-(_+1))}function k(C,E,_,M,W,X){if(C>_||C<E){const ie=typeof E=="bigint"?"n":"";let Ae;throw E===0||E===BigInt(0)?Ae=`>= 0${ie} and < 2${ie} ** ${(X+1)*8}${ie}`:Ae=`>= -(2${ie} ** ${(X+1)*8-1}${ie}) and < 2 ** ${(X+1)*8-1}${ie}`,new Jt.ERR_OUT_OF_RANGE("value",Ae,C)}S(M,W,X)}function H(C,E){if(typeof C!="number")throw new Jt.ERR_INVALID_ARG_TYPE(E,"number",C)}function z(C,E,_){throw Math.floor(C)!==C?(H(C,_),new Jt.ERR_OUT_OF_RANGE("offset","an integer",C)):E<0?new Jt.ERR_BUFFER_OUT_OF_BOUNDS:new Jt.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${E}`,C)}const ne=/[^+/0-9A-Za-z-_]/g;function xe(C){if(C=C.split("=")[0],C=C.trim().replace(ne,""),C.length<2)return"";for(;C.length%4!==0;)C=C+"=";return C}function Ue(C,E){E=E||1/0;let _;const M=C.length;let W=null;const X=[];for(let ie=0;ie<M;++ie){if(_=C.charCodeAt(ie),_>55295&&_<57344){if(!W){if(_>56319){(E-=3)>-1&&X.push(239,191,189);continue}else if(ie+1===M){(E-=3)>-1&&X.push(239,191,189);continue}W=_;continue}if(_<56320){(E-=3)>-1&&X.push(239,191,189),W=_;continue}_=(W-55296<<10|_-56320)+65536}else W&&(E-=3)>-1&&X.push(239,191,189);if(W=null,_<128){if((E-=1)<0)break;X.push(_)}else if(_<2048){if((E-=2)<0)break;X.push(_>>6|192,_&63|128)}else if(_<65536){if((E-=3)<0)break;X.push(_>>12|224,_>>6&63|128,_&63|128)}else if(_<1114112){if((E-=4)<0)break;X.push(_>>18|240,_>>12&63|128,_>>6&63|128,_&63|128)}else throw new Error("Invalid code point")}return X}function je(C){const E=[];for(let _=0;_<C.length;++_)E.push(C.charCodeAt(_)&255);return E}function Me(C,E){let _,M,W;const X=[];for(let ie=0;ie<C.length&&!((E-=2)<0);++ie)_=C.charCodeAt(ie),M=_>>8,W=_%256,X.push(W),X.push(M);return X}function Re(C){return p.toByteArray(xe(C))}function Yn(C,E,_,M){let W;for(W=0;W<M&&!(W+_>=E.length||W>=C.length);++W)E[W+_]=C[W];return W}function Bt(C,E){return C instanceof E||C!=null&&C.constructor!=null&&C.constructor.name!=null&&C.constructor.name===E.name}function Ys(C){return C!==C}const u1=function(){const C="0123456789abcdef",E=new Array(256);for(let _=0;_<16;++_){const M=_*16;for(let W=0;W<16;++W)E[M+W]=C[_]+C[W]}return E}();function Zt(C){return typeof BigInt>"u"?l1:C}function l1(){throw new Error("BigInt not supported")}})(t);const g=t.Buffer;e.Blob=t.Blob,e.BlobOptions=t.BlobOptions,e.Buffer=t.Buffer,e.File=t.File,e.FileOptions=t.FileOptions,e.INSPECT_MAX_BYTES=t.INSPECT_MAX_BYTES,e.SlowBuffer=t.SlowBuffer,e.TranscodeEncoding=t.TranscodeEncoding,e.atob=t.atob,e.btoa=t.btoa,e.constants=t.constants,e.default=g,e.isAscii=t.isAscii,e.isUtf8=t.isUtf8,e.kMaxLength=t.kMaxLength,e.kStringMaxLength=t.kStringMaxLength,e.resolveObjectURL=t.resolveObjectURL,e.transcode=t.transcode}(Bi)),Bi}var Li={},Ui={},ji,ju;function ku(){return ju||(ju=1,ji=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(var i in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(t,r);if(u.value!==o||u.enumerable!==!0)return!1}return!0}),ji}var ki,Mu;function In(){if(Mu)return ki;Mu=1;var e=ku();return ki=function(){return e()&&!!Symbol.toStringTag},ki}var Mi,Du;function $u(){return Du||(Du=1,Mi=Object),Mi}var Di,qu;function D0(){return qu||(qu=1,Di=Error),Di}var $i,Hu;function $0(){return Hu||(Hu=1,$i=EvalError),$i}var qi,Vu;function q0(){return Vu||(Vu=1,qi=RangeError),qi}var Hi,Wu;function H0(){return Wu||(Wu=1,Hi=ReferenceError),Hi}var Vi,Gu;function Ku(){return Gu||(Gu=1,Vi=SyntaxError),Vi}var Wi,zu;function $r(){return zu||(zu=1,Wi=TypeError),Wi}var Gi,Xu;function V0(){return Xu||(Xu=1,Gi=URIError),Gi}var Ki,Yu;function W0(){return Yu||(Yu=1,Ki=Math.abs),Ki}var zi,Ju;function G0(){return Ju||(Ju=1,zi=Math.floor),zi}var Xi,Zu;function K0(){return Zu||(Zu=1,Xi=Math.max),Xi}var Yi,Qu;function z0(){return Qu||(Qu=1,Yi=Math.min),Yi}var Ji,el;function X0(){return el||(el=1,Ji=Math.pow),Ji}var Zi,tl;function Y0(){return tl||(tl=1,Zi=Math.round),Zi}var Qi,rl;function J0(){return rl||(rl=1,Qi=Number.isNaN||function(t){return t!==t}),Qi}var eo,nl;function Z0(){if(nl)return eo;nl=1;var e=J0();return eo=function(r){return e(r)||r===0?r:r<0?-1:1},eo}var to,il;function Q0(){return il||(il=1,to=Object.getOwnPropertyDescriptor),to}var ro,ol;function xr(){if(ol)return ro;ol=1;var e=Q0();if(e)try{e([],"length")}catch{e=null}return ro=e,ro}var no,sl;function Pn(){if(sl)return no;sl=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return no=e,no}var io,al;function ey(){if(al)return io;al=1;var e=typeof Symbol<"u"&&Symbol,t=ku();return io=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},io}var oo,ul;function ll(){return ul||(ul=1,oo=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),oo}var so,cl;function fl(){if(cl)return so;cl=1;var e=$u();return so=e.getPrototypeOf||null,so}var ao,hl;function ty(){if(hl)return ao;hl=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(c,l){for(var s=[],f=0;f<c.length;f+=1)s[f]=c[f];for(var h=0;h<l.length;h+=1)s[h+c.length]=l[h];return s},i=function(c,l){for(var s=[],f=l,h=0;f<c.length;f+=1,h+=1)s[h]=c[f];return s},a=function(u,c){for(var l="",s=0;s<u.length;s+=1)l+=u[s],s+1<u.length&&(l+=c);return l};return ao=function(c){var l=this;if(typeof l!="function"||t.apply(l)!==n)throw new TypeError(e+l);for(var s=i(arguments,1),f,h=function(){if(this instanceof f){var g=l.apply(this,o(s,arguments));return Object(g)===g?g:this}return l.apply(c,o(s,arguments))},b=r(0,l.length-s.length),m=[],x=0;x<b;x++)m[x]="$"+x;if(f=Function("binder","return function ("+a(m,",")+"){ return binder.apply(this,arguments); }")(h),l.prototype){var A=function(){};A.prototype=l.prototype,f.prototype=new A,A.prototype=null}return f},ao}var uo,dl;function qr(){if(dl)return uo;dl=1;var e=ty();return uo=Function.prototype.bind||e,uo}var lo,pl;function co(){return pl||(pl=1,lo=Function.prototype.call),lo}var fo,gl;function ho(){return gl||(gl=1,fo=Function.prototype.apply),fo}var po,yl;function ry(){return yl||(yl=1,po=typeof Reflect<"u"&&Reflect&&Reflect.apply),po}var go,ml;function bl(){if(ml)return go;ml=1;var e=qr(),t=ho(),r=co(),n=ry();return go=n||e.call(r,t),go}var yo,wl;function mo(){if(wl)return yo;wl=1;var e=qr(),t=$r(),r=co(),n=bl();return yo=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return n(e,r,i)},yo}var bo,vl;function ny(){if(vl)return bo;vl=1;var e=mo(),t=xr(),r;try{r=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var n=!!r&&t&&t(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return bo=n&&typeof n.get=="function"?e([n.get]):typeof i=="function"?function(u){return i(u==null?u:o(u))}:!1,bo}var wo,El;function vo(){if(El)return wo;El=1;var e=ll(),t=fl(),r=ny();return wo=e?function(o){return e(o)}:t?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return t(o)}:r?function(o){return r(o)}:null,wo}var Eo,xl;function Al(){if(xl)return Eo;xl=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=qr();return Eo=r.call(e,t),Eo}var xo,Tl;function Sl(){if(Tl)return xo;Tl=1;var e,t=$u(),r=D0(),n=$0(),o=q0(),i=H0(),a=Ku(),u=$r(),c=V0(),l=W0(),s=G0(),f=K0(),h=z0(),b=X0(),m=Y0(),x=Z0(),A=Function,g=function(q){try{return A('"use strict"; return ('+q+").constructor;")()}catch{}},d=xr(),p=Pn(),y=function(){throw new u},v=d?function(){try{return arguments.callee,y}catch{try{return d(arguments,"callee").get}catch{return y}}}():y,T=ey()(),P=vo(),I=fl(),N=ll(),j=ho(),G=co(),L={},D=typeof Uint8Array>"u"||!P?e:P(Uint8Array),oe={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":T&&P?P([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":L,"%AsyncGenerator%":L,"%AsyncGeneratorFunction%":L,"%AsyncIteratorPrototype%":L,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":A,"%GeneratorFunction%":L,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":T&&P?P(P([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!T||!P?e:P(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":d,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":o,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!T||!P?e:P(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":T&&P?P(""[Symbol.iterator]()):e,"%Symbol%":T?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":v,"%TypedArray%":D,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":G,"%Function.prototype.apply%":j,"%Object.defineProperty%":p,"%Object.getPrototypeOf%":I,"%Math.abs%":l,"%Math.floor%":s,"%Math.max%":f,"%Math.min%":h,"%Math.pow%":b,"%Math.round%":m,"%Math.sign%":x,"%Reflect.getPrototypeOf%":N};if(P)try{null.error}catch(q){var re=P(P(q));oe["%Error.prototype%"]=re}var he=function q($){var B;if($==="%AsyncFunction%")B=g("async function () {}");else if($==="%GeneratorFunction%")B=g("function* () {}");else if($==="%AsyncGeneratorFunction%")B=g("async function* () {}");else if($==="%AsyncGenerator%"){var U=q("%AsyncGeneratorFunction%");U&&(B=U.prototype)}else if($==="%AsyncIteratorPrototype%"){var Y=q("%AsyncGenerator%");Y&&P&&(B=P(Y.prototype))}return oe[$]=B,B},ce={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ge=qr(),fe=Al(),Ee=ge.call(G,Array.prototype.concat),be=ge.call(j,Array.prototype.splice),K=ge.call(G,String.prototype.replace),Q=ge.call(G,String.prototype.slice),ee=ge.call(G,RegExp.prototype.exec),ue=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,R=function($){var B=Q($,0,1),U=Q($,-1);if(B==="%"&&U!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(U==="%"&&B!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var Y=[];return K($,ue,function(se,pe,le,de){Y[Y.length]=le?K(de,V,"$1"):pe||se}),Y},O=function($,B){var U=$,Y;if(fe(ce,U)&&(Y=ce[U],U="%"+Y[0]+"%"),fe(oe,U)){var se=oe[U];if(se===L&&(se=he(U)),typeof se>"u"&&!B)throw new u("intrinsic "+$+" exists, but is not available. Please file an issue!");return{alias:Y,name:U,value:se}}throw new a("intrinsic "+$+" does not exist!")};return xo=function($,B){if(typeof $!="string"||$.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof B!="boolean")throw new u('"allowMissing" argument must be a boolean');if(ee(/^%?[^%]*%?$/,$)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var U=R($),Y=U.length>0?U[0]:"",se=O("%"+Y+"%",B),pe=se.name,le=se.value,de=!1,Be=se.alias;Be&&(Y=Be[0],be(U,Ee([0,1],Be)));for(var te=1,rt=!0;te<U.length;te+=1){var Je=U[te],Ne=Q(Je,0,1),Le=Q(Je,-1);if((Ne==='"'||Ne==="'"||Ne==="`"||Le==='"'||Le==="'"||Le==="`")&&Ne!==Le)throw new a("property names with quotes must have matching quotes");if((Je==="constructor"||!rt)&&(de=!0),Y+="."+Je,pe="%"+Y+"%",fe(oe,pe))le=oe[pe];else if(le!=null){if(!(Je in le)){if(!B)throw new u("base intrinsic for "+$+" exists, but the property is not available.");return}if(d&&te+1>=U.length){var ct=d(le,Je);rt=!!ct,rt&&"get"in ct&&!("originalValue"in ct.get)?le=ct.get:le=le[Je]}else rt=fe(le,Je),le=le[Je];rt&&!de&&(oe[pe]=le)}}return le},xo}var Ao,_l;function Hr(){if(_l)return Ao;_l=1;var e=Sl(),t=mo(),r=t([e("%String.prototype.indexOf%")]);return Ao=function(o,i){var a=e(o,!!i);return typeof a=="function"&&r(o,".prototype.")>-1?t([a]):a},Ao}var To,Nl;function iy(){if(Nl)return To;Nl=1;var e=In()(),t=Hr(),r=t("Object.prototype.toString"),n=function(u){return e&&u&&typeof u=="object"&&Symbol.toStringTag in u?!1:r(u)==="[object Arguments]"},o=function(u){return n(u)?!0:u!==null&&typeof u=="object"&&"length"in u&&typeof u.length=="number"&&u.length>=0&&r(u)!=="[object Array]"&&"callee"in u&&r(u.callee)==="[object Function]"},i=function(){return n(arguments)}();return n.isLegacyArguments=o,To=i?n:o,To}var So,Ol;function oy(){if(Ol)return So;Ol=1;var e=Hr(),t=In()(),r=Al(),n=xr(),o;if(t){var i=e("RegExp.prototype.exec"),a={},u=function(){throw a},c={toString:u,valueOf:u};typeof Symbol.toPrimitive=="symbol"&&(c[Symbol.toPrimitive]=u),o=function(h){if(!h||typeof h!="object")return!1;var b=n(h,"lastIndex"),m=b&&r(b,"value");if(!m)return!1;try{i(h,c)}catch(x){return x===a}}}else{var l=e("Object.prototype.toString"),s="[object RegExp]";o=function(h){return!h||typeof h!="object"&&typeof h!="function"?!1:l(h)===s}}return So=o,So}var _o,Rl;function sy(){if(Rl)return _o;Rl=1;var e=Hr(),t=oy(),r=e("RegExp.prototype.exec"),n=$r();return _o=function(i){if(!t(i))throw new n("`regex` must be a RegExp");return function(u){return r(i,u)!==null}},_o}var No,Il;function ay(){if(Il)return No;Il=1;var e=Hr(),t=sy(),r=t(/^\s*(?:function)?\*/),n=In()(),o=vo(),i=e("Object.prototype.toString"),a=e("Function.prototype.toString"),u=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},c;return No=function(s){if(typeof s!="function")return!1;if(r(a(s)))return!0;if(!n){var f=i(s);return f==="[object GeneratorFunction]"}if(!o)return!1;if(typeof c>"u"){var h=u();c=h?o(h):!1}return o(s)===c},No}var Oo,Pl;function uy(){if(Pl)return Oo;Pl=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,n;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw n}}),n={},t(function(){throw 42},null,r)}catch(d){d!==n&&(t=null)}else t=null;var o=/^\s*class\b/,i=function(p){try{var y=e.call(p);return o.test(y)}catch{return!1}},a=function(p){try{return i(p)?!1:(e.call(p),!0)}catch{return!1}},u=Object.prototype.toString,c="[object Object]",l="[object Function]",s="[object GeneratorFunction]",f="[object HTMLAllCollection]",h="[object HTML document.all class]",b="[object HTMLCollection]",m=typeof Symbol=="function"&&!!Symbol.toStringTag,x=!(0 in[,]),A=function(){return!1};if(typeof document=="object"){var g=document.all;u.call(g)===u.call(document.all)&&(A=function(p){if((x||!p)&&(typeof p>"u"||typeof p=="object"))try{var y=u.call(p);return(y===f||y===h||y===b||y===c)&&p("")==null}catch{}return!1})}return Oo=t?function(p){if(A(p))return!0;if(!p||typeof p!="function"&&typeof p!="object")return!1;try{t(p,null,r)}catch(y){if(y!==n)return!1}return!i(p)&&a(p)}:function(p){if(A(p))return!0;if(!p||typeof p!="function"&&typeof p!="object")return!1;if(m)return a(p);if(i(p))return!1;var y=u.call(p);return y!==l&&y!==s&&!/^\[object HTML/.test(y)?!1:a(p)},Oo}var Ro,Fl;function ly(){if(Fl)return Ro;Fl=1;var e=uy(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(c,l,s){for(var f=0,h=c.length;f<h;f++)r.call(c,f)&&(s==null?l(c[f],f,c):l.call(s,c[f],f,c))},o=function(c,l,s){for(var f=0,h=c.length;f<h;f++)s==null?l(c.charAt(f),f,c):l.call(s,c.charAt(f),f,c)},i=function(c,l,s){for(var f in c)r.call(c,f)&&(s==null?l(c[f],f,c):l.call(s,c[f],f,c))};function a(u){return t.call(u)==="[object Array]"}return Ro=function(c,l,s){if(!e(l))throw new TypeError("iterator must be a function");var f;arguments.length>=3&&(f=s),a(c)?n(c,l,f):typeof c=="string"?o(c,l,f):i(c,l,f)},Ro}var Io,Cl;function cy(){return Cl||(Cl=1,Io=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Io}var Po,Bl;function fy(){if(Bl)return Po;Bl=1;var e=cy(),t=typeof globalThis>"u"?Te:globalThis;return Po=function(){for(var n=[],o=0;o<e.length;o++)typeof t[e[o]]=="function"&&(n[n.length]=e[o]);return n},Po}var Fo={exports:{}},Co,Ll;function hy(){if(Ll)return Co;Ll=1;var e=Pn(),t=Ku(),r=$r(),n=xr();return Co=function(i,a,u){if(!i||typeof i!="object"&&typeof i!="function")throw new r("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var c=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,f=arguments.length>6?arguments[6]:!1,h=!!n&&n(i,a);if(e)e(i,a,{configurable:s===null&&h?h.configurable:!s,enumerable:c===null&&h?h.enumerable:!c,value:u,writable:l===null&&h?h.writable:!l});else if(f||!c&&!l&&!s)i[a]=u;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Co}var Bo,Ul;function dy(){if(Ul)return Bo;Ul=1;var e=Pn(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Bo=t,Bo}var Lo,jl;function py(){if(jl)return Lo;jl=1;var e=Sl(),t=hy(),r=dy()(),n=xr(),o=$r(),i=e("%Math.floor%");return Lo=function(u,c){if(typeof u!="function")throw new o("`fn` is not a function");if(typeof c!="number"||c<0||c>4294967295||i(c)!==c)throw new o("`length` must be a positive 32-bit integer");var l=arguments.length>2&&!!arguments[2],s=!0,f=!0;if("length"in u&&n){var h=n(u,"length");h&&!h.configurable&&(s=!1),h&&!h.writable&&(f=!1)}return(s||f||!l)&&(r?t(u,"length",c,!0,!0):t(u,"length",c)),u},Lo}var Uo,kl;function gy(){if(kl)return Uo;kl=1;var e=qr(),t=ho(),r=bl();return Uo=function(){return r(e,t,arguments)},Uo}var Ml;function yy(){return Ml||(Ml=1,function(e){var t=py(),r=Pn(),n=mo(),o=gy();e.exports=function(a){var u=n(arguments),c=a.length-(arguments.length-1);return t(u,1+(c>0?c:0),!0)},r?r(e.exports,"apply",{value:o}):e.exports.apply=o}(Fo)),Fo.exports}var jo,Dl;function $l(){if(Dl)return jo;Dl=1;var e=ly(),t=fy(),r=yy(),n=Hr(),o=xr(),i=vo(),a=n("Object.prototype.toString"),u=In()(),c=typeof globalThis>"u"?Te:globalThis,l=t(),s=n("String.prototype.slice"),f=n("Array.prototype.indexOf",!0)||function(A,g){for(var d=0;d<A.length;d+=1)if(A[d]===g)return d;return-1},h={__proto__:null};u&&o&&i?e(l,function(x){var A=new c[x];if(Symbol.toStringTag in A&&i){var g=i(A),d=o(g,Symbol.toStringTag);if(!d&&g){var p=i(g);d=o(p,Symbol.toStringTag)}h["$"+x]=r(d.get)}}):e(l,function(x){var A=new c[x],g=A.slice||A.set;g&&(h["$"+x]=r(g))});var b=function(A){var g=!1;return e(h,function(d,p){if(!g)try{"$"+d(A)===p&&(g=s(p,1))}catch{}}),g},m=function(A){var g=!1;return e(h,function(d,p){if(!g)try{d(A),g=s(p,1)}catch{}}),g};return jo=function(A){if(!A||typeof A!="object")return!1;if(!u){var g=s(a(A),8,-1);return f(l,g)>-1?g:g!=="Object"?!1:m(A)}return o?b(A):null},jo}var ko,ql;function my(){if(ql)return ko;ql=1;var e=$l();return ko=function(r){return!!e(r)},ko}var Hl;function by(){return Hl||(Hl=1,function(e){var t=iy(),r=ay(),n=$l(),o=my();function i(te){return te.call.bind(te)}var a=typeof BigInt<"u",u=typeof Symbol<"u",c=i(Object.prototype.toString),l=i(Number.prototype.valueOf),s=i(String.prototype.valueOf),f=i(Boolean.prototype.valueOf);if(a)var h=i(BigInt.prototype.valueOf);if(u)var b=i(Symbol.prototype.valueOf);function m(te,rt){if(typeof te!="object")return!1;try{return rt(te),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=o;function x(te){return typeof Promise<"u"&&te instanceof Promise||te!==null&&typeof te=="object"&&typeof te.then=="function"&&typeof te.catch=="function"}e.isPromise=x;function A(te){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(te):o(te)||Q(te)}e.isArrayBufferView=A;function g(te){return n(te)==="Uint8Array"}e.isUint8Array=g;function d(te){return n(te)==="Uint8ClampedArray"}e.isUint8ClampedArray=d;function p(te){return n(te)==="Uint16Array"}e.isUint16Array=p;function y(te){return n(te)==="Uint32Array"}e.isUint32Array=y;function v(te){return n(te)==="Int8Array"}e.isInt8Array=v;function T(te){return n(te)==="Int16Array"}e.isInt16Array=T;function P(te){return n(te)==="Int32Array"}e.isInt32Array=P;function I(te){return n(te)==="Float32Array"}e.isFloat32Array=I;function N(te){return n(te)==="Float64Array"}e.isFloat64Array=N;function j(te){return n(te)==="BigInt64Array"}e.isBigInt64Array=j;function G(te){return n(te)==="BigUint64Array"}e.isBigUint64Array=G;function L(te){return c(te)==="[object Map]"}L.working=typeof Map<"u"&&L(new Map);function D(te){return typeof Map>"u"?!1:L.working?L(te):te instanceof Map}e.isMap=D;function oe(te){return c(te)==="[object Set]"}oe.working=typeof Set<"u"&&oe(new Set);function re(te){return typeof Set>"u"?!1:oe.working?oe(te):te instanceof Set}e.isSet=re;function he(te){return c(te)==="[object WeakMap]"}he.working=typeof WeakMap<"u"&&he(new WeakMap);function ce(te){return typeof WeakMap>"u"?!1:he.working?he(te):te instanceof WeakMap}e.isWeakMap=ce;function ge(te){return c(te)==="[object WeakSet]"}ge.working=typeof WeakSet<"u"&&ge(new WeakSet);function fe(te){return ge(te)}e.isWeakSet=fe;function Ee(te){return c(te)==="[object ArrayBuffer]"}Ee.working=typeof ArrayBuffer<"u"&&Ee(new ArrayBuffer);function be(te){return typeof ArrayBuffer>"u"?!1:Ee.working?Ee(te):te instanceof ArrayBuffer}e.isArrayBuffer=be;function K(te){return c(te)==="[object DataView]"}K.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&K(new DataView(new ArrayBuffer(1),0,1));function Q(te){return typeof DataView>"u"?!1:K.working?K(te):te instanceof DataView}e.isDataView=Q;var ee=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function ue(te){return c(te)==="[object SharedArrayBuffer]"}function V(te){return typeof ee>"u"?!1:(typeof ue.working>"u"&&(ue.working=ue(new ee)),ue.working?ue(te):te instanceof ee)}e.isSharedArrayBuffer=V;function R(te){return c(te)==="[object AsyncFunction]"}e.isAsyncFunction=R;function O(te){return c(te)==="[object Map Iterator]"}e.isMapIterator=O;function q(te){return c(te)==="[object Set Iterator]"}e.isSetIterator=q;function $(te){return c(te)==="[object Generator]"}e.isGeneratorObject=$;function B(te){return c(te)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=B;function U(te){return m(te,l)}e.isNumberObject=U;function Y(te){return m(te,s)}e.isStringObject=Y;function se(te){return m(te,f)}e.isBooleanObject=se;function pe(te){return a&&m(te,h)}e.isBigIntObject=pe;function le(te){return u&&m(te,b)}e.isSymbolObject=le;function de(te){return U(te)||Y(te)||se(te)||pe(te)||le(te)}e.isBoxedPrimitive=de;function Be(te){return typeof Uint8Array<"u"&&(be(te)||V(te))}e.isAnyArrayBuffer=Be,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(te){Object.defineProperty(e,te,{enumerable:!1,value:function(){throw new Error(te+" is not supported in userland")}})})}(Ui)),Ui}var Mo,Vl;function wy(){return Vl||(Vl=1,Mo=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),Mo}var Wl;function Gl(){return Wl||(Wl=1,function(e){var t=Object.getOwnPropertyDescriptors||function(Q){for(var ee=Object.keys(Q),ue={},V=0;V<ee.length;V++)ue[ee[V]]=Object.getOwnPropertyDescriptor(Q,ee[V]);return ue},r=/%[sdj%]/g;e.format=function(K){if(!v(K)){for(var Q=[],ee=0;ee<arguments.length;ee++)Q.push(a(arguments[ee]));return Q.join(" ")}for(var ee=1,ue=arguments,V=ue.length,R=String(K).replace(r,function(q){if(q==="%%")return"%";if(ee>=V)return q;switch(q){case"%s":return String(ue[ee++]);case"%d":return Number(ue[ee++]);case"%j":try{return JSON.stringify(ue[ee++])}catch{return"[Circular]"}default:return q}}),O=ue[ee];ee<V;O=ue[++ee])d(O)||!N(O)?R+=" "+O:R+=" "+a(O);return R},e.deprecate=function(K,Q){if(typeof me<"u"&&me.noDeprecation===!0)return K;if(typeof me>"u")return function(){return e.deprecate(K,Q).apply(this,arguments)};var ee=!1;function ue(){if(!ee){if(me.throwDeprecation)throw new Error(Q);me.traceDeprecation?console.trace(Q):console.error(Q),ee=!0}return K.apply(this,arguments)}return ue};var n={},o=/^$/;if(me.env.NODE_DEBUG){var i=me.env.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+i+"$","i")}e.debuglog=function(K){if(K=K.toUpperCase(),!n[K])if(o.test(K)){var Q=me.pid;n[K]=function(){var ee=e.format.apply(e,arguments);console.error("%s %d: %s",K,Q,ee)}}else n[K]=function(){};return n[K]};function a(K,Q){var ee={seen:[],stylize:c};return arguments.length>=3&&(ee.depth=arguments[2]),arguments.length>=4&&(ee.colors=arguments[3]),g(Q)?ee.showHidden=Q:Q&&e._extend(ee,Q),P(ee.showHidden)&&(ee.showHidden=!1),P(ee.depth)&&(ee.depth=2),P(ee.colors)&&(ee.colors=!1),P(ee.customInspect)&&(ee.customInspect=!0),ee.colors&&(ee.stylize=u),s(ee,K,ee.depth)}e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function u(K,Q){var ee=a.styles[Q];return ee?"\x1B["+a.colors[ee][0]+"m"+K+"\x1B["+a.colors[ee][1]+"m":K}function c(K,Q){return K}function l(K){var Q={};return K.forEach(function(ee,ue){Q[ee]=!0}),Q}function s(K,Q,ee){if(K.customInspect&&Q&&L(Q.inspect)&&Q.inspect!==e.inspect&&!(Q.constructor&&Q.constructor.prototype===Q)){var ue=Q.inspect(ee,K);return v(ue)||(ue=s(K,ue,ee)),ue}var V=f(K,Q);if(V)return V;var R=Object.keys(Q),O=l(R);if(K.showHidden&&(R=Object.getOwnPropertyNames(Q)),G(Q)&&(R.indexOf("message")>=0||R.indexOf("description")>=0))return h(Q);if(R.length===0){if(L(Q)){var q=Q.name?": "+Q.name:"";return K.stylize("[Function"+q+"]","special")}if(I(Q))return K.stylize(RegExp.prototype.toString.call(Q),"regexp");if(j(Q))return K.stylize(Date.prototype.toString.call(Q),"date");if(G(Q))return h(Q)}var $="",B=!1,U=["{","}"];if(A(Q)&&(B=!0,U=["[","]"]),L(Q)){var Y=Q.name?": "+Q.name:"";$=" [Function"+Y+"]"}if(I(Q)&&($=" "+RegExp.prototype.toString.call(Q)),j(Q)&&($=" "+Date.prototype.toUTCString.call(Q)),G(Q)&&($=" "+h(Q)),R.length===0&&(!B||Q.length==0))return U[0]+$+U[1];if(ee<0)return I(Q)?K.stylize(RegExp.prototype.toString.call(Q),"regexp"):K.stylize("[Object]","special");K.seen.push(Q);var se;return B?se=b(K,Q,ee,O,R):se=R.map(function(pe){return m(K,Q,ee,O,pe,B)}),K.seen.pop(),x(se,$,U)}function f(K,Q){if(P(Q))return K.stylize("undefined","undefined");if(v(Q)){var ee="'"+JSON.stringify(Q).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return K.stylize(ee,"string")}if(y(Q))return K.stylize(""+Q,"number");if(g(Q))return K.stylize(""+Q,"boolean");if(d(Q))return K.stylize("null","null")}function h(K){return"["+Error.prototype.toString.call(K)+"]"}function b(K,Q,ee,ue,V){for(var R=[],O=0,q=Q.length;O<q;++O)ge(Q,String(O))?R.push(m(K,Q,ee,ue,String(O),!0)):R.push("");return V.forEach(function($){$.match(/^\d+$/)||R.push(m(K,Q,ee,ue,$,!0))}),R}function m(K,Q,ee,ue,V,R){var O,q,$;if($=Object.getOwnPropertyDescriptor(Q,V)||{value:Q[V]},$.get?$.set?q=K.stylize("[Getter/Setter]","special"):q=K.stylize("[Getter]","special"):$.set&&(q=K.stylize("[Setter]","special")),ge(ue,V)||(O="["+V+"]"),q||(K.seen.indexOf($.value)<0?(d(ee)?q=s(K,$.value,null):q=s(K,$.value,ee-1),q.indexOf(`
17
- `)>-1&&(R?q=q.split(`
18
- `).map(function(B){return" "+B}).join(`
19
- `).slice(2):q=`
20
- `+q.split(`
21
- `).map(function(B){return" "+B}).join(`
22
- `))):q=K.stylize("[Circular]","special")),P(O)){if(R&&V.match(/^\d+$/))return q;O=JSON.stringify(""+V),O.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(O=O.slice(1,-1),O=K.stylize(O,"name")):(O=O.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),O=K.stylize(O,"string"))}return O+": "+q}function x(K,Q,ee){var ue=K.reduce(function(V,R){return R.indexOf(`
23
- `)>=0,V+R.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ue>60?ee[0]+(Q===""?"":Q+`
24
- `)+" "+K.join(`,
25
- `)+" "+ee[1]:ee[0]+Q+" "+K.join(", ")+" "+ee[1]}e.types=by();function A(K){return Array.isArray(K)}e.isArray=A;function g(K){return typeof K=="boolean"}e.isBoolean=g;function d(K){return K===null}e.isNull=d;function p(K){return K==null}e.isNullOrUndefined=p;function y(K){return typeof K=="number"}e.isNumber=y;function v(K){return typeof K=="string"}e.isString=v;function T(K){return typeof K=="symbol"}e.isSymbol=T;function P(K){return K===void 0}e.isUndefined=P;function I(K){return N(K)&&oe(K)==="[object RegExp]"}e.isRegExp=I,e.types.isRegExp=I;function N(K){return typeof K=="object"&&K!==null}e.isObject=N;function j(K){return N(K)&&oe(K)==="[object Date]"}e.isDate=j,e.types.isDate=j;function G(K){return N(K)&&(oe(K)==="[object Error]"||K instanceof Error)}e.isError=G,e.types.isNativeError=G;function L(K){return typeof K=="function"}e.isFunction=L;function D(K){return K===null||typeof K=="boolean"||typeof K=="number"||typeof K=="string"||typeof K=="symbol"||typeof K>"u"}e.isPrimitive=D,e.isBuffer=wy();function oe(K){return Object.prototype.toString.call(K)}function re(K){return K<10?"0"+K.toString(10):K.toString(10)}var he=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ce(){var K=new Date,Q=[re(K.getHours()),re(K.getMinutes()),re(K.getSeconds())].join(":");return[K.getDate(),he[K.getMonth()],Q].join(" ")}e.log=function(){console.log("%s - %s",ce(),e.format.apply(e,arguments))},e.inherits=ar(),e._extend=function(K,Q){if(!Q||!N(Q))return K;for(var ee=Object.keys(Q),ue=ee.length;ue--;)K[ee[ue]]=Q[ee[ue]];return K};function ge(K,Q){return Object.prototype.hasOwnProperty.call(K,Q)}var fe=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(Q){if(typeof Q!="function")throw new TypeError('The "original" argument must be of type Function');if(fe&&Q[fe]){var ee=Q[fe];if(typeof ee!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(ee,fe,{value:ee,enumerable:!1,writable:!1,configurable:!0}),ee}function ee(){for(var ue,V,R=new Promise(function($,B){ue=$,V=B}),O=[],q=0;q<arguments.length;q++)O.push(arguments[q]);O.push(function($,B){$?V($):ue(B)});try{Q.apply(this,O)}catch($){V($)}return R}return Object.setPrototypeOf(ee,Object.getPrototypeOf(Q)),fe&&Object.defineProperty(ee,fe,{value:ee,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(ee,t(Q))},e.promisify.custom=fe;function Ee(K,Q){if(!K){var ee=new Error("Promise was rejected with a falsy value");ee.reason=K,K=ee}return Q(K)}function be(K){if(typeof K!="function")throw new TypeError('The "original" argument must be of type Function');function Q(){for(var ee=[],ue=0;ue<arguments.length;ue++)ee.push(arguments[ue]);var V=ee.pop();if(typeof V!="function")throw new TypeError("The last argument must be of type Function");var R=this,O=function(){return V.apply(R,arguments)};K.apply(this,ee).then(function(q){me.nextTick(O.bind(null,null,q))},function(q){me.nextTick(Ee.bind(null,q,O))})}return Object.setPrototypeOf(Q,Object.getPrototypeOf(K)),Object.defineProperties(Q,t(K)),Q}e.callbackify=be}(Li)),Li}var Do,Kl;function vy(){if(Kl)return Do;Kl=1;function e(m,x){var A=Object.keys(m);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(m);x&&(g=g.filter(function(d){return Object.getOwnPropertyDescriptor(m,d).enumerable})),A.push.apply(A,g)}return A}function t(m){for(var x=1;x<arguments.length;x++){var A=arguments[x]!=null?arguments[x]:{};x%2?e(Object(A),!0).forEach(function(g){r(m,g,A[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(A)):e(Object(A)).forEach(function(g){Object.defineProperty(m,g,Object.getOwnPropertyDescriptor(A,g))})}return m}function r(m,x,A){return x=a(x),x in m?Object.defineProperty(m,x,{value:A,enumerable:!0,configurable:!0,writable:!0}):m[x]=A,m}function n(m,x){if(!(m instanceof x))throw new TypeError("Cannot call a class as a function")}function o(m,x){for(var A=0;A<x.length;A++){var g=x[A];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(m,a(g.key),g)}}function i(m,x,A){return x&&o(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),m}function a(m){var x=u(m,"string");return typeof x=="symbol"?x:String(x)}function u(m,x){if(typeof m!="object"||m===null)return m;var A=m[Symbol.toPrimitive];if(A!==void 0){var g=A.call(m,x);if(typeof g!="object")return g;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(m)}var c=Rn(),l=c.Buffer,s=Gl(),f=s.inspect,h=f&&f.custom||"inspect";function b(m,x,A){l.prototype.copy.call(m,x,A)}return Do=function(){function m(){n(this,m),this.head=null,this.tail=null,this.length=0}return i(m,[{key:"push",value:function(A){var g={data:A,next:null};this.length>0?this.tail.next=g:this.head=g,this.tail=g,++this.length}},{key:"unshift",value:function(A){var g={data:A,next:this.head};this.length===0&&(this.tail=g),this.head=g,++this.length}},{key:"shift",value:function(){if(this.length!==0){var A=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,A}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(A){if(this.length===0)return"";for(var g=this.head,d=""+g.data;g=g.next;)d+=A+g.data;return d}},{key:"concat",value:function(A){if(this.length===0)return l.alloc(0);for(var g=l.allocUnsafe(A>>>0),d=this.head,p=0;d;)b(d.data,g,p),p+=d.data.length,d=d.next;return g}},{key:"consume",value:function(A,g){var d;return A<this.head.data.length?(d=this.head.data.slice(0,A),this.head.data=this.head.data.slice(A)):A===this.head.data.length?d=this.shift():d=g?this._getString(A):this._getBuffer(A),d}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(A){var g=this.head,d=1,p=g.data;for(A-=p.length;g=g.next;){var y=g.data,v=A>y.length?y.length:A;if(v===y.length?p+=y:p+=y.slice(0,A),A-=v,A===0){v===y.length?(++d,g.next?this.head=g.next:this.head=this.tail=null):(this.head=g,g.data=y.slice(v));break}++d}return this.length-=d,p}},{key:"_getBuffer",value:function(A){var g=l.allocUnsafe(A),d=this.head,p=1;for(d.data.copy(g),A-=d.data.length;d=d.next;){var y=d.data,v=A>y.length?y.length:A;if(y.copy(g,g.length-A,0,v),A-=v,A===0){v===y.length?(++p,d.next?this.head=d.next:this.head=this.tail=null):(this.head=d,d.data=y.slice(v));break}++p}return this.length-=p,g}},{key:h,value:function(A,g){return f(this,t(t({},g),{},{depth:0,customInspect:!1}))}}]),m}(),Do}var $o,zl;function Xl(){if(zl)return $o;zl=1;function e(a,u){var c=this,l=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return l||s?(u?u(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,me.nextTick(o,this,a)):me.nextTick(o,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(f){!u&&f?c._writableState?c._writableState.errorEmitted?me.nextTick(r,c):(c._writableState.errorEmitted=!0,me.nextTick(t,c,f)):me.nextTick(t,c,f):u?(me.nextTick(r,c),u(f)):me.nextTick(r,c)}),this)}function t(a,u){o(a,u),r(a)}function r(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function n(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(a,u){a.emit("error",u)}function i(a,u){var c=a._readableState,l=a._writableState;c&&c.autoDestroy||l&&l.autoDestroy?a.destroy(u):a.emit("error",u)}return $o={destroy:e,undestroy:n,errorOrDestroy:i},$o}var qo={},Yl;function Ar(){if(Yl)return qo;Yl=1;function e(u,c){u.prototype=Object.create(c.prototype),u.prototype.constructor=u,u.__proto__=c}var t={};function r(u,c,l){l||(l=Error);function s(h,b,m){return typeof c=="string"?c:c(h,b,m)}var f=function(h){e(b,h);function b(m,x,A){return h.call(this,s(m,x,A))||this}return b}(l);f.prototype.name=l.name,f.prototype.code=u,t[u]=f}function n(u,c){if(Array.isArray(u)){var l=u.length;return u=u.map(function(s){return String(s)}),l>2?"one of ".concat(c," ").concat(u.slice(0,l-1).join(", "),", or ")+u[l-1]:l===2?"one of ".concat(c," ").concat(u[0]," or ").concat(u[1]):"of ".concat(c," ").concat(u[0])}else return"of ".concat(c," ").concat(String(u))}function o(u,c,l){return u.substr(0,c.length)===c}function i(u,c,l){return(l===void 0||l>u.length)&&(l=u.length),u.substring(l-c.length,l)===c}function a(u,c,l){return typeof l!="number"&&(l=0),l+c.length>u.length?!1:u.indexOf(c,l)!==-1}return r("ERR_INVALID_OPT_VALUE",function(u,c){return'The value "'+c+'" is invalid for option "'+u+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(u,c,l){var s;typeof c=="string"&&o(c,"not ")?(s="must not be",c=c.replace(/^not /,"")):s="must be";var f;if(i(u," argument"))f="The ".concat(u," ").concat(s," ").concat(n(c,"type"));else{var h=a(u,".")?"property":"argument";f='The "'.concat(u,'" ').concat(h," ").concat(s," ").concat(n(c,"type"))}return f+=". Received type ".concat(typeof l),f},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(u){return"The "+u+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(u){return"Cannot call "+u+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(u){return"Unknown encoding: "+u},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),qo.codes=t,qo}var Ho,Jl;function Zl(){if(Jl)return Ho;Jl=1;var e=Ar().codes.ERR_INVALID_OPT_VALUE;function t(n,o,i){return n.highWaterMark!=null?n.highWaterMark:o?n[i]:null}function r(n,o,i,a){var u=t(o,a,i);if(u!=null){if(!(isFinite(u)&&Math.floor(u)===u)||u<0){var c=a?i:"highWaterMark";throw new e(c,u)}return Math.floor(u)}return n.objectMode?16:16*1024}return Ho={getHighWaterMark:r},Ho}var Vo,Ql;function Ey(){if(Ql)return Vo;Ql=1,Vo=e;function e(r,n){if(t("noDeprecation"))return r;var o=!1;function i(){if(!o){if(t("throwDeprecation"))throw new Error(n);t("traceDeprecation")?console.trace(n):console.warn(n),o=!0}return r.apply(this,arguments)}return i}function t(r){try{if(!Te.localStorage)return!1}catch{return!1}var n=Te.localStorage[r];return n==null?!1:String(n).toLowerCase()==="true"}return Vo}var Wo,ec;function tc(){if(ec)return Wo;ec=1,Wo=I;function e(V){var R=this;this.next=null,this.entry=null,this.finish=function(){ue(R,V)}}var t;I.WritableState=T;var r={deprecate:Ey()},n=Lu(),o=Rn().Buffer,i=(typeof Te<"u"?Te:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(V){return o.from(V)}function u(V){return o.isBuffer(V)||V instanceof i}var c=Xl(),l=Zl(),s=l.getHighWaterMark,f=Ar().codes,h=f.ERR_INVALID_ARG_TYPE,b=f.ERR_METHOD_NOT_IMPLEMENTED,m=f.ERR_MULTIPLE_CALLBACK,x=f.ERR_STREAM_CANNOT_PIPE,A=f.ERR_STREAM_DESTROYED,g=f.ERR_STREAM_NULL_VALUES,d=f.ERR_STREAM_WRITE_AFTER_END,p=f.ERR_UNKNOWN_ENCODING,y=c.errorOrDestroy;ar()(I,n);function v(){}function T(V,R,O){t=t||Tr(),V=V||{},typeof O!="boolean"&&(O=R instanceof t),this.objectMode=!!V.objectMode,O&&(this.objectMode=this.objectMode||!!V.writableObjectMode),this.highWaterMark=s(this,V,"writableHighWaterMark",O),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var q=V.decodeStrings===!1;this.decodeStrings=!q,this.defaultEncoding=V.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function($){he(R,$)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=V.emitClose!==!1,this.autoDestroy=!!V.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}T.prototype.getBuffer=function(){for(var R=this.bufferedRequest,O=[];R;)O.push(R),R=R.next;return O},function(){try{Object.defineProperty(T.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var P;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(P=Function.prototype[Symbol.hasInstance],Object.defineProperty(I,Symbol.hasInstance,{value:function(R){return P.call(this,R)?!0:this!==I?!1:R&&R._writableState instanceof T}})):P=function(R){return R instanceof this};function I(V){t=t||Tr();var R=this instanceof t;if(!R&&!P.call(I,this))return new I(V);this._writableState=new T(V,this,R),this.writable=!0,V&&(typeof V.write=="function"&&(this._write=V.write),typeof V.writev=="function"&&(this._writev=V.writev),typeof V.destroy=="function"&&(this._destroy=V.destroy),typeof V.final=="function"&&(this._final=V.final)),n.call(this)}I.prototype.pipe=function(){y(this,new x)};function N(V,R){var O=new d;y(V,O),me.nextTick(R,O)}function j(V,R,O,q){var $;return O===null?$=new g:typeof O!="string"&&!R.objectMode&&($=new h("chunk",["string","Buffer"],O)),$?(y(V,$),me.nextTick(q,$),!1):!0}I.prototype.write=function(V,R,O){var q=this._writableState,$=!1,B=!q.objectMode&&u(V);return B&&!o.isBuffer(V)&&(V=a(V)),typeof R=="function"&&(O=R,R=null),B?R="buffer":R||(R=q.defaultEncoding),typeof O!="function"&&(O=v),q.ending?N(this,O):(B||j(this,q,V,O))&&(q.pendingcb++,$=L(this,q,B,V,R,O)),$},I.prototype.cork=function(){this._writableState.corked++},I.prototype.uncork=function(){var V=this._writableState;V.corked&&(V.corked--,!V.writing&&!V.corked&&!V.bufferProcessing&&V.bufferedRequest&&fe(this,V))},I.prototype.setDefaultEncoding=function(R){if(typeof R=="string"&&(R=R.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((R+"").toLowerCase())>-1))throw new p(R);return this._writableState.defaultEncoding=R,this},Object.defineProperty(I.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function G(V,R,O){return!V.objectMode&&V.decodeStrings!==!1&&typeof R=="string"&&(R=o.from(R,O)),R}Object.defineProperty(I.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function L(V,R,O,q,$,B){if(!O){var U=G(R,q,$);q!==U&&(O=!0,$="buffer",q=U)}var Y=R.objectMode?1:q.length;R.length+=Y;var se=R.length<R.highWaterMark;if(se||(R.needDrain=!0),R.writing||R.corked){var pe=R.lastBufferedRequest;R.lastBufferedRequest={chunk:q,encoding:$,isBuf:O,callback:B,next:null},pe?pe.next=R.lastBufferedRequest:R.bufferedRequest=R.lastBufferedRequest,R.bufferedRequestCount+=1}else D(V,R,!1,Y,q,$,B);return se}function D(V,R,O,q,$,B,U){R.writelen=q,R.writecb=U,R.writing=!0,R.sync=!0,R.destroyed?R.onwrite(new A("write")):O?V._writev($,R.onwrite):V._write($,B,R.onwrite),R.sync=!1}function oe(V,R,O,q,$){--R.pendingcb,O?(me.nextTick($,q),me.nextTick(Q,V,R),V._writableState.errorEmitted=!0,y(V,q)):($(q),V._writableState.errorEmitted=!0,y(V,q),Q(V,R))}function re(V){V.writing=!1,V.writecb=null,V.length-=V.writelen,V.writelen=0}function he(V,R){var O=V._writableState,q=O.sync,$=O.writecb;if(typeof $!="function")throw new m;if(re(O),R)oe(V,O,q,R,$);else{var B=Ee(O)||V.destroyed;!B&&!O.corked&&!O.bufferProcessing&&O.bufferedRequest&&fe(V,O),q?me.nextTick(ce,V,O,B,$):ce(V,O,B,$)}}function ce(V,R,O,q){O||ge(V,R),R.pendingcb--,q(),Q(V,R)}function ge(V,R){R.length===0&&R.needDrain&&(R.needDrain=!1,V.emit("drain"))}function fe(V,R){R.bufferProcessing=!0;var O=R.bufferedRequest;if(V._writev&&O&&O.next){var q=R.bufferedRequestCount,$=new Array(q),B=R.corkedRequestsFree;B.entry=O;for(var U=0,Y=!0;O;)$[U]=O,O.isBuf||(Y=!1),O=O.next,U+=1;$.allBuffers=Y,D(V,R,!0,R.length,$,"",B.finish),R.pendingcb++,R.lastBufferedRequest=null,B.next?(R.corkedRequestsFree=B.next,B.next=null):R.corkedRequestsFree=new e(R),R.bufferedRequestCount=0}else{for(;O;){var se=O.chunk,pe=O.encoding,le=O.callback,de=R.objectMode?1:se.length;if(D(V,R,!1,de,se,pe,le),O=O.next,R.bufferedRequestCount--,R.writing)break}O===null&&(R.lastBufferedRequest=null)}R.bufferedRequest=O,R.bufferProcessing=!1}I.prototype._write=function(V,R,O){O(new b("_write()"))},I.prototype._writev=null,I.prototype.end=function(V,R,O){var q=this._writableState;return typeof V=="function"?(O=V,V=null,R=null):typeof R=="function"&&(O=R,R=null),V!=null&&this.write(V,R),q.corked&&(q.corked=1,this.uncork()),q.ending||ee(this,q,O),this},Object.defineProperty(I.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Ee(V){return V.ending&&V.length===0&&V.bufferedRequest===null&&!V.finished&&!V.writing}function be(V,R){V._final(function(O){R.pendingcb--,O&&y(V,O),R.prefinished=!0,V.emit("prefinish"),Q(V,R)})}function K(V,R){!R.prefinished&&!R.finalCalled&&(typeof V._final=="function"&&!R.destroyed?(R.pendingcb++,R.finalCalled=!0,me.nextTick(be,V,R)):(R.prefinished=!0,V.emit("prefinish")))}function Q(V,R){var O=Ee(R);if(O&&(K(V,R),R.pendingcb===0&&(R.finished=!0,V.emit("finish"),R.autoDestroy))){var q=V._readableState;(!q||q.autoDestroy&&q.endEmitted)&&V.destroy()}return O}function ee(V,R,O){R.ending=!0,Q(V,R),O&&(R.finished?me.nextTick(O):V.once("finish",O)),R.ended=!0,V.writable=!1}function ue(V,R,O){var q=V.entry;for(V.entry=null;q;){var $=q.callback;R.pendingcb--,$(O),q=q.next}R.corkedRequestsFree.next=V}return Object.defineProperty(I.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(R){this._writableState&&(this._writableState.destroyed=R)}}),I.prototype.destroy=c.destroy,I.prototype._undestroy=c.undestroy,I.prototype._destroy=function(V,R){R(V)},Wo}var Go,rc;function Tr(){if(rc)return Go;rc=1;var e=Object.keys||function(l){var s=[];for(var f in l)s.push(f);return s};Go=a;var t=lc(),r=tc();ar()(a,t);for(var n=e(r.prototype),o=0;o<n.length;o++){var i=n[o];a.prototype[i]||(a.prototype[i]=r.prototype[i])}function a(l){if(!(this instanceof a))return new a(l);t.call(this,l),r.call(this,l),this.allowHalfOpen=!0,l&&(l.readable===!1&&(this.readable=!1),l.writable===!1&&(this.writable=!1),l.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",u)))}Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(a.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(a.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function u(){this._writableState.ended||me.nextTick(c,this)}function c(l){l.end()}return Object.defineProperty(a.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(s){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=s,this._writableState.destroyed=s)}}),Go}var Ko={},Fn={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var nc;function xy(){return nc||(nc=1,function(e,t){var r=Rn(),n=r.Buffer;function o(a,u){for(var c in a)u[c]=a[c]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=i);function i(a,u,c){return n(a,u,c)}i.prototype=Object.create(n.prototype),o(n,i),i.from=function(a,u,c){if(typeof a=="number")throw new TypeError("Argument must not be a number");return n(a,u,c)},i.alloc=function(a,u,c){if(typeof a!="number")throw new TypeError("Argument must be a number");var l=n(a);return u!==void 0?typeof c=="string"?l.fill(u,c):l.fill(u):l.fill(0),l},i.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n(a)},i.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(a)}}(Fn,Fn.exports)),Fn.exports}var ic;function zo(){if(ic)return Ko;ic=1;var e=xy().Buffer,t=e.isEncoding||function(g){switch(g=""+g,g&&g.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(g){if(!g)return"utf8";for(var d;;)switch(g){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return g;default:if(d)return;g=(""+g).toLowerCase(),d=!0}}function n(g){var d=r(g);if(typeof d!="string"&&(e.isEncoding===t||!t(g)))throw new Error("Unknown encoding: "+g);return d||g}Ko.StringDecoder=o;function o(g){this.encoding=n(g);var d;switch(this.encoding){case"utf16le":this.text=f,this.end=h,d=4;break;case"utf8":this.fillLast=c,d=4;break;case"base64":this.text=b,this.end=m,d=3;break;default:this.write=x,this.end=A;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(d)}o.prototype.write=function(g){if(g.length===0)return"";var d,p;if(this.lastNeed){if(d=this.fillLast(g),d===void 0)return"";p=this.lastNeed,this.lastNeed=0}else p=0;return p<g.length?d?d+this.text(g,p):this.text(g,p):d||""},o.prototype.end=s,o.prototype.text=l,o.prototype.fillLast=function(g){if(this.lastNeed<=g.length)return g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,g.length),this.lastNeed-=g.length};function i(g){return g<=127?0:g>>5===6?2:g>>4===14?3:g>>3===30?4:g>>6===2?-1:-2}function a(g,d,p){var y=d.length-1;if(y<p)return 0;var v=i(d[y]);return v>=0?(v>0&&(g.lastNeed=v-1),v):--y<p||v===-2?0:(v=i(d[y]),v>=0?(v>0&&(g.lastNeed=v-2),v):--y<p||v===-2?0:(v=i(d[y]),v>=0?(v>0&&(v===2?v=0:g.lastNeed=v-3),v):0))}function u(g,d,p){if((d[0]&192)!==128)return g.lastNeed=0,"�";if(g.lastNeed>1&&d.length>1){if((d[1]&192)!==128)return g.lastNeed=1,"�";if(g.lastNeed>2&&d.length>2&&(d[2]&192)!==128)return g.lastNeed=2,"�"}}function c(g){var d=this.lastTotal-this.lastNeed,p=u(this,g);if(p!==void 0)return p;if(this.lastNeed<=g.length)return g.copy(this.lastChar,d,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,d,0,g.length),this.lastNeed-=g.length}function l(g,d){var p=a(this,g,d);if(!this.lastNeed)return g.toString("utf8",d);this.lastTotal=p;var y=g.length-(p-this.lastNeed);return g.copy(this.lastChar,0,y),g.toString("utf8",d,y)}function s(g){var d=g&&g.length?this.write(g):"";return this.lastNeed?d+"�":d}function f(g,d){if((g.length-d)%2===0){var p=g.toString("utf16le",d);if(p){var y=p.charCodeAt(p.length-1);if(y>=55296&&y<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1],p.slice(0,-1)}return p}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString("utf16le",d,g.length-1)}function h(g){var d=g&&g.length?this.write(g):"";if(this.lastNeed){var p=this.lastTotal-this.lastNeed;return d+this.lastChar.toString("utf16le",0,p)}return d}function b(g,d){var p=(g.length-d)%3;return p===0?g.toString("base64",d):(this.lastNeed=3-p,this.lastTotal=3,p===1?this.lastChar[0]=g[g.length-1]:(this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1]),g.toString("base64",d,g.length-p))}function m(g){var d=g&&g.length?this.write(g):"";return this.lastNeed?d+this.lastChar.toString("base64",0,3-this.lastNeed):d}function x(g){return g.toString(this.encoding)}function A(g){return g&&g.length?this.write(g):""}return Ko}var Xo,oc;function Yo(){if(oc)return Xo;oc=1;var e=Ar().codes.ERR_STREAM_PREMATURE_CLOSE;function t(i){var a=!1;return function(){if(!a){a=!0;for(var u=arguments.length,c=new Array(u),l=0;l<u;l++)c[l]=arguments[l];i.apply(this,c)}}}function r(){}function n(i){return i.setHeader&&typeof i.abort=="function"}function o(i,a,u){if(typeof a=="function")return o(i,null,a);a||(a={}),u=t(u||r);var c=a.readable||a.readable!==!1&&i.readable,l=a.writable||a.writable!==!1&&i.writable,s=function(){i.writable||h()},f=i._writableState&&i._writableState.finished,h=function(){l=!1,f=!0,c||u.call(i)},b=i._readableState&&i._readableState.endEmitted,m=function(){c=!1,b=!0,l||u.call(i)},x=function(p){u.call(i,p)},A=function(){var p;if(c&&!b)return(!i._readableState||!i._readableState.ended)&&(p=new e),u.call(i,p);if(l&&!f)return(!i._writableState||!i._writableState.ended)&&(p=new e),u.call(i,p)},g=function(){i.req.on("finish",h)};return n(i)?(i.on("complete",h),i.on("abort",A),i.req?g():i.on("request",g)):l&&!i._writableState&&(i.on("end",s),i.on("close",s)),i.on("end",m),i.on("finish",h),a.error!==!1&&i.on("error",x),i.on("close",A),function(){i.removeListener("complete",h),i.removeListener("abort",A),i.removeListener("request",g),i.req&&i.req.removeListener("finish",h),i.removeListener("end",s),i.removeListener("close",s),i.removeListener("finish",h),i.removeListener("end",m),i.removeListener("error",x),i.removeListener("close",A)}}return Xo=o,Xo}var Jo,sc;function Ay(){if(sc)return Jo;sc=1;var e;function t(p,y,v){return y=r(y),y in p?Object.defineProperty(p,y,{value:v,enumerable:!0,configurable:!0,writable:!0}):p[y]=v,p}function r(p){var y=n(p,"string");return typeof y=="symbol"?y:String(y)}function n(p,y){if(typeof p!="object"||p===null)return p;var v=p[Symbol.toPrimitive];if(v!==void 0){var T=v.call(p,y);if(typeof T!="object")return T;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(p)}var o=Yo(),i=Symbol("lastResolve"),a=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),l=Symbol("lastPromise"),s=Symbol("handlePromise"),f=Symbol("stream");function h(p,y){return{value:p,done:y}}function b(p){var y=p[i];if(y!==null){var v=p[f].read();v!==null&&(p[l]=null,p[i]=null,p[a]=null,y(h(v,!1)))}}function m(p){me.nextTick(b,p)}function x(p,y){return function(v,T){p.then(function(){if(y[c]){v(h(void 0,!0));return}y[s](v,T)},T)}}var A=Object.getPrototypeOf(function(){}),g=Object.setPrototypeOf((e={get stream(){return this[f]},next:function(){var y=this,v=this[u];if(v!==null)return Promise.reject(v);if(this[c])return Promise.resolve(h(void 0,!0));if(this[f].destroyed)return new Promise(function(N,j){me.nextTick(function(){y[u]?j(y[u]):N(h(void 0,!0))})});var T=this[l],P;if(T)P=new Promise(x(T,this));else{var I=this[f].read();if(I!==null)return Promise.resolve(h(I,!1));P=new Promise(this[s])}return this[l]=P,P}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var y=this;return new Promise(function(v,T){y[f].destroy(null,function(P){if(P){T(P);return}v(h(void 0,!0))})})}),e),A),d=function(y){var v,T=Object.create(g,(v={},t(v,f,{value:y,writable:!0}),t(v,i,{value:null,writable:!0}),t(v,a,{value:null,writable:!0}),t(v,u,{value:null,writable:!0}),t(v,c,{value:y._readableState.endEmitted,writable:!0}),t(v,s,{value:function(I,N){var j=T[f].read();j?(T[l]=null,T[i]=null,T[a]=null,I(h(j,!1))):(T[i]=I,T[a]=N)},writable:!0}),v));return T[l]=null,o(y,function(P){if(P&&P.code!=="ERR_STREAM_PREMATURE_CLOSE"){var I=T[a];I!==null&&(T[l]=null,T[i]=null,T[a]=null,I(P)),T[u]=P;return}var N=T[i];N!==null&&(T[l]=null,T[i]=null,T[a]=null,N(h(void 0,!0))),T[c]=!0}),y.on("readable",m.bind(null,T)),T};return Jo=d,Jo}var Zo,ac;function Ty(){return ac||(ac=1,Zo=function(){throw new Error("Readable.from is not available in the browser")}),Zo}var Qo,uc;function lc(){if(uc)return Qo;uc=1,Qo=N;var e;N.ReadableState=I,Fi().EventEmitter;var t=function(U,Y){return U.listeners(Y).length},r=Lu(),n=Rn().Buffer,o=(typeof Te<"u"?Te:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(B){return n.from(B)}function a(B){return n.isBuffer(B)||B instanceof o}var u=Gl(),c;u&&u.debuglog?c=u.debuglog("stream"):c=function(){};var l=vy(),s=Xl(),f=Zl(),h=f.getHighWaterMark,b=Ar().codes,m=b.ERR_INVALID_ARG_TYPE,x=b.ERR_STREAM_PUSH_AFTER_EOF,A=b.ERR_METHOD_NOT_IMPLEMENTED,g=b.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,d,p,y;ar()(N,r);var v=s.errorOrDestroy,T=["error","close","destroy","pause","resume"];function P(B,U,Y){if(typeof B.prependListener=="function")return B.prependListener(U,Y);!B._events||!B._events[U]?B.on(U,Y):Array.isArray(B._events[U])?B._events[U].unshift(Y):B._events[U]=[Y,B._events[U]]}function I(B,U,Y){e=e||Tr(),B=B||{},typeof Y!="boolean"&&(Y=U instanceof e),this.objectMode=!!B.objectMode,Y&&(this.objectMode=this.objectMode||!!B.readableObjectMode),this.highWaterMark=h(this,B,"readableHighWaterMark",Y),this.buffer=new l,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=B.emitClose!==!1,this.autoDestroy=!!B.autoDestroy,this.destroyed=!1,this.defaultEncoding=B.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,B.encoding&&(d||(d=zo().StringDecoder),this.decoder=new d(B.encoding),this.encoding=B.encoding)}function N(B){if(e=e||Tr(),!(this instanceof N))return new N(B);var U=this instanceof e;this._readableState=new I(B,this,U),this.readable=!0,B&&(typeof B.read=="function"&&(this._read=B.read),typeof B.destroy=="function"&&(this._destroy=B.destroy)),r.call(this)}Object.defineProperty(N.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(U){this._readableState&&(this._readableState.destroyed=U)}}),N.prototype.destroy=s.destroy,N.prototype._undestroy=s.undestroy,N.prototype._destroy=function(B,U){U(B)},N.prototype.push=function(B,U){var Y=this._readableState,se;return Y.objectMode?se=!0:typeof B=="string"&&(U=U||Y.defaultEncoding,U!==Y.encoding&&(B=n.from(B,U),U=""),se=!0),j(this,B,U,!1,se)},N.prototype.unshift=function(B){return j(this,B,null,!0,!1)};function j(B,U,Y,se,pe){c("readableAddChunk",U);var le=B._readableState;if(U===null)le.reading=!1,he(B,le);else{var de;if(pe||(de=L(le,U)),de)v(B,de);else if(le.objectMode||U&&U.length>0)if(typeof U!="string"&&!le.objectMode&&Object.getPrototypeOf(U)!==n.prototype&&(U=i(U)),se)le.endEmitted?v(B,new g):G(B,le,U,!0);else if(le.ended)v(B,new x);else{if(le.destroyed)return!1;le.reading=!1,le.decoder&&!Y?(U=le.decoder.write(U),le.objectMode||U.length!==0?G(B,le,U,!1):fe(B,le)):G(B,le,U,!1)}else se||(le.reading=!1,fe(B,le))}return!le.ended&&(le.length<le.highWaterMark||le.length===0)}function G(B,U,Y,se){U.flowing&&U.length===0&&!U.sync?(U.awaitDrain=0,B.emit("data",Y)):(U.length+=U.objectMode?1:Y.length,se?U.buffer.unshift(Y):U.buffer.push(Y),U.needReadable&&ce(B)),fe(B,U)}function L(B,U){var Y;return!a(U)&&typeof U!="string"&&U!==void 0&&!B.objectMode&&(Y=new m("chunk",["string","Buffer","Uint8Array"],U)),Y}N.prototype.isPaused=function(){return this._readableState.flowing===!1},N.prototype.setEncoding=function(B){d||(d=zo().StringDecoder);var U=new d(B);this._readableState.decoder=U,this._readableState.encoding=this._readableState.decoder.encoding;for(var Y=this._readableState.buffer.head,se="";Y!==null;)se+=U.write(Y.data),Y=Y.next;return this._readableState.buffer.clear(),se!==""&&this._readableState.buffer.push(se),this._readableState.length=se.length,this};var D=1073741824;function oe(B){return B>=D?B=D:(B--,B|=B>>>1,B|=B>>>2,B|=B>>>4,B|=B>>>8,B|=B>>>16,B++),B}function re(B,U){return B<=0||U.length===0&&U.ended?0:U.objectMode?1:B!==B?U.flowing&&U.length?U.buffer.head.data.length:U.length:(B>U.highWaterMark&&(U.highWaterMark=oe(B)),B<=U.length?B:U.ended?U.length:(U.needReadable=!0,0))}N.prototype.read=function(B){c("read",B),B=parseInt(B,10);var U=this._readableState,Y=B;if(B!==0&&(U.emittedReadable=!1),B===0&&U.needReadable&&((U.highWaterMark!==0?U.length>=U.highWaterMark:U.length>0)||U.ended))return c("read: emitReadable",U.length,U.ended),U.length===0&&U.ended?O(this):ce(this),null;if(B=re(B,U),B===0&&U.ended)return U.length===0&&O(this),null;var se=U.needReadable;c("need readable",se),(U.length===0||U.length-B<U.highWaterMark)&&(se=!0,c("length less than watermark",se)),U.ended||U.reading?(se=!1,c("reading or ended",se)):se&&(c("do read"),U.reading=!0,U.sync=!0,U.length===0&&(U.needReadable=!0),this._read(U.highWaterMark),U.sync=!1,U.reading||(B=re(Y,U)));var pe;return B>0?pe=R(B,U):pe=null,pe===null?(U.needReadable=U.length<=U.highWaterMark,B=0):(U.length-=B,U.awaitDrain=0),U.length===0&&(U.ended||(U.needReadable=!0),Y!==B&&U.ended&&O(this)),pe!==null&&this.emit("data",pe),pe};function he(B,U){if(c("onEofChunk"),!U.ended){if(U.decoder){var Y=U.decoder.end();Y&&Y.length&&(U.buffer.push(Y),U.length+=U.objectMode?1:Y.length)}U.ended=!0,U.sync?ce(B):(U.needReadable=!1,U.emittedReadable||(U.emittedReadable=!0,ge(B)))}}function ce(B){var U=B._readableState;c("emitReadable",U.needReadable,U.emittedReadable),U.needReadable=!1,U.emittedReadable||(c("emitReadable",U.flowing),U.emittedReadable=!0,me.nextTick(ge,B))}function ge(B){var U=B._readableState;c("emitReadable_",U.destroyed,U.length,U.ended),!U.destroyed&&(U.length||U.ended)&&(B.emit("readable"),U.emittedReadable=!1),U.needReadable=!U.flowing&&!U.ended&&U.length<=U.highWaterMark,V(B)}function fe(B,U){U.readingMore||(U.readingMore=!0,me.nextTick(Ee,B,U))}function Ee(B,U){for(;!U.reading&&!U.ended&&(U.length<U.highWaterMark||U.flowing&&U.length===0);){var Y=U.length;if(c("maybeReadMore read 0"),B.read(0),Y===U.length)break}U.readingMore=!1}N.prototype._read=function(B){v(this,new A("_read()"))},N.prototype.pipe=function(B,U){var Y=this,se=this._readableState;switch(se.pipesCount){case 0:se.pipes=B;break;case 1:se.pipes=[se.pipes,B];break;default:se.pipes.push(B);break}se.pipesCount+=1,c("pipe count=%d opts=%j",se.pipesCount,U);var pe=(!U||U.end!==!1)&&B!==me.stdout&&B!==me.stderr,le=pe?Be:_t;se.endEmitted?me.nextTick(le):Y.once("end",le),B.on("unpipe",de);function de(Ot,it){c("onunpipe"),Ot===Y&&it&&it.hasUnpiped===!1&&(it.hasUnpiped=!0,Je())}function Be(){c("onend"),B.end()}var te=be(Y);B.on("drain",te);var rt=!1;function Je(){c("cleanup"),B.removeListener("close",ct),B.removeListener("finish",st),B.removeListener("drain",te),B.removeListener("error",Le),B.removeListener("unpipe",de),Y.removeListener("end",Be),Y.removeListener("end",_t),Y.removeListener("data",Ne),rt=!0,se.awaitDrain&&(!B._writableState||B._writableState.needDrain)&&te()}Y.on("data",Ne);function Ne(Ot){c("ondata");var it=B.write(Ot);c("dest.write",it),it===!1&&((se.pipesCount===1&&se.pipes===B||se.pipesCount>1&&$(se.pipes,B)!==-1)&&!rt&&(c("false write response, pause",se.awaitDrain),se.awaitDrain++),Y.pause())}function Le(Ot){c("onerror",Ot),_t(),B.removeListener("error",Le),t(B,"error")===0&&v(B,Ot)}P(B,"error",Le);function ct(){B.removeListener("finish",st),_t()}B.once("close",ct);function st(){c("onfinish"),B.removeListener("close",ct),_t()}B.once("finish",st);function _t(){c("unpipe"),Y.unpipe(B)}return B.emit("pipe",Y),se.flowing||(c("pipe resume"),Y.resume()),B};function be(B){return function(){var Y=B._readableState;c("pipeOnDrain",Y.awaitDrain),Y.awaitDrain&&Y.awaitDrain--,Y.awaitDrain===0&&t(B,"data")&&(Y.flowing=!0,V(B))}}N.prototype.unpipe=function(B){var U=this._readableState,Y={hasUnpiped:!1};if(U.pipesCount===0)return this;if(U.pipesCount===1)return B&&B!==U.pipes?this:(B||(B=U.pipes),U.pipes=null,U.pipesCount=0,U.flowing=!1,B&&B.emit("unpipe",this,Y),this);if(!B){var se=U.pipes,pe=U.pipesCount;U.pipes=null,U.pipesCount=0,U.flowing=!1;for(var le=0;le<pe;le++)se[le].emit("unpipe",this,{hasUnpiped:!1});return this}var de=$(U.pipes,B);return de===-1?this:(U.pipes.splice(de,1),U.pipesCount-=1,U.pipesCount===1&&(U.pipes=U.pipes[0]),B.emit("unpipe",this,Y),this)},N.prototype.on=function(B,U){var Y=r.prototype.on.call(this,B,U),se=this._readableState;return B==="data"?(se.readableListening=this.listenerCount("readable")>0,se.flowing!==!1&&this.resume()):B==="readable"&&!se.endEmitted&&!se.readableListening&&(se.readableListening=se.needReadable=!0,se.flowing=!1,se.emittedReadable=!1,c("on readable",se.length,se.reading),se.length?ce(this):se.reading||me.nextTick(Q,this)),Y},N.prototype.addListener=N.prototype.on,N.prototype.removeListener=function(B,U){var Y=r.prototype.removeListener.call(this,B,U);return B==="readable"&&me.nextTick(K,this),Y},N.prototype.removeAllListeners=function(B){var U=r.prototype.removeAllListeners.apply(this,arguments);return(B==="readable"||B===void 0)&&me.nextTick(K,this),U};function K(B){var U=B._readableState;U.readableListening=B.listenerCount("readable")>0,U.resumeScheduled&&!U.paused?U.flowing=!0:B.listenerCount("data")>0&&B.resume()}function Q(B){c("readable nexttick read 0"),B.read(0)}N.prototype.resume=function(){var B=this._readableState;return B.flowing||(c("resume"),B.flowing=!B.readableListening,ee(this,B)),B.paused=!1,this};function ee(B,U){U.resumeScheduled||(U.resumeScheduled=!0,me.nextTick(ue,B,U))}function ue(B,U){c("resume",U.reading),U.reading||B.read(0),U.resumeScheduled=!1,B.emit("resume"),V(B),U.flowing&&!U.reading&&B.read(0)}N.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function V(B){var U=B._readableState;for(c("flow",U.flowing);U.flowing&&B.read()!==null;);}N.prototype.wrap=function(B){var U=this,Y=this._readableState,se=!1;B.on("end",function(){if(c("wrapped end"),Y.decoder&&!Y.ended){var de=Y.decoder.end();de&&de.length&&U.push(de)}U.push(null)}),B.on("data",function(de){if(c("wrapped data"),Y.decoder&&(de=Y.decoder.write(de)),!(Y.objectMode&&de==null)&&!(!Y.objectMode&&(!de||!de.length))){var Be=U.push(de);Be||(se=!0,B.pause())}});for(var pe in B)this[pe]===void 0&&typeof B[pe]=="function"&&(this[pe]=function(Be){return function(){return B[Be].apply(B,arguments)}}(pe));for(var le=0;le<T.length;le++)B.on(T[le],this.emit.bind(this,T[le]));return this._read=function(de){c("wrapped _read",de),se&&(se=!1,B.resume())},this},typeof Symbol=="function"&&(N.prototype[Symbol.asyncIterator]=function(){return p===void 0&&(p=Ay()),p(this)}),Object.defineProperty(N.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(N.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(N.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(U){this._readableState&&(this._readableState.flowing=U)}}),N._fromList=R,Object.defineProperty(N.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function R(B,U){if(U.length===0)return null;var Y;return U.objectMode?Y=U.buffer.shift():!B||B>=U.length?(U.decoder?Y=U.buffer.join(""):U.buffer.length===1?Y=U.buffer.first():Y=U.buffer.concat(U.length),U.buffer.clear()):Y=U.buffer.consume(B,U.decoder),Y}function O(B){var U=B._readableState;c("endReadable",U.endEmitted),U.endEmitted||(U.ended=!0,me.nextTick(q,U,B))}function q(B,U){if(c("endReadableNT",B.endEmitted,B.length),!B.endEmitted&&B.length===0&&(B.endEmitted=!0,U.readable=!1,U.emit("end"),B.autoDestroy)){var Y=U._writableState;(!Y||Y.autoDestroy&&Y.finished)&&U.destroy()}}typeof Symbol=="function"&&(N.from=function(B,U){return y===void 0&&(y=Ty()),y(N,B,U)});function $(B,U){for(var Y=0,se=B.length;Y<se;Y++)if(B[Y]===U)return Y;return-1}return Qo}var es,cc;function fc(){if(cc)return es;cc=1,es=u;var e=Ar().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,r=e.ERR_MULTIPLE_CALLBACK,n=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=e.ERR_TRANSFORM_WITH_LENGTH_0,i=Tr();ar()(u,i);function a(s,f){var h=this._transformState;h.transforming=!1;var b=h.writecb;if(b===null)return this.emit("error",new r);h.writechunk=null,h.writecb=null,f!=null&&this.push(f),b(s);var m=this._readableState;m.reading=!1,(m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}function u(s){if(!(this instanceof u))return new u(s);i.call(this,s),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,s&&(typeof s.transform=="function"&&(this._transform=s.transform),typeof s.flush=="function"&&(this._flush=s.flush)),this.on("prefinish",c)}function c(){var s=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(f,h){l(s,f,h)}):l(this,null,null)}u.prototype.push=function(s,f){return this._transformState.needTransform=!1,i.prototype.push.call(this,s,f)},u.prototype._transform=function(s,f,h){h(new t("_transform()"))},u.prototype._write=function(s,f,h){var b=this._transformState;if(b.writecb=h,b.writechunk=s,b.writeencoding=f,!b.transforming){var m=this._readableState;(b.needTransform||m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}},u.prototype._read=function(s){var f=this._transformState;f.writechunk!==null&&!f.transforming?(f.transforming=!0,this._transform(f.writechunk,f.writeencoding,f.afterTransform)):f.needTransform=!0},u.prototype._destroy=function(s,f){i.prototype._destroy.call(this,s,function(h){f(h)})};function l(s,f,h){if(f)return s.emit("error",f);if(h!=null&&s.push(h),s._writableState.length)throw new o;if(s._transformState.transforming)throw new n;return s.push(null)}return es}var ts,hc;function Sy(){if(hc)return ts;hc=1,ts=t;var e=fc();ar()(t,e);function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}return t.prototype._transform=function(r,n,o){o(null,r)},ts}var rs,dc;function _y(){if(dc)return rs;dc=1;var e;function t(h){var b=!1;return function(){b||(b=!0,h.apply(void 0,arguments))}}var r=Ar().codes,n=r.ERR_MISSING_ARGS,o=r.ERR_STREAM_DESTROYED;function i(h){if(h)throw h}function a(h){return h.setHeader&&typeof h.abort=="function"}function u(h,b,m,x){x=t(x);var A=!1;h.on("close",function(){A=!0}),e===void 0&&(e=Yo()),e(h,{readable:b,writable:m},function(d){if(d)return x(d);A=!0,x()});var g=!1;return function(d){if(!A&&!g){if(g=!0,a(h))return h.abort();if(typeof h.destroy=="function")return h.destroy();x(d||new o("pipe"))}}}function c(h){h()}function l(h,b){return h.pipe(b)}function s(h){return!h.length||typeof h[h.length-1]!="function"?i:h.pop()}function f(){for(var h=arguments.length,b=new Array(h),m=0;m<h;m++)b[m]=arguments[m];var x=s(b);if(Array.isArray(b[0])&&(b=b[0]),b.length<2)throw new n("streams");var A,g=b.map(function(d,p){var y=p<b.length-1,v=p>0;return u(d,y,v,function(T){A||(A=T),T&&g.forEach(c),!y&&(g.forEach(c),x(A))})});return b.reduce(l)}return rs=f,rs}var ns,pc;function Ny(){if(pc)return ns;pc=1,ns=r;var e=Fi().EventEmitter,t=ar();t(r,e),r.Readable=lc(),r.Writable=tc(),r.Duplex=Tr(),r.Transform=fc(),r.PassThrough=Sy(),r.finished=Yo(),r.pipeline=_y(),r.Stream=r;function r(){e.call(this)}return r.prototype.pipe=function(n,o){var i=this;function a(b){n.writable&&n.write(b)===!1&&i.pause&&i.pause()}i.on("data",a);function u(){i.readable&&i.resume&&i.resume()}n.on("drain",u),!n._isStdio&&(!o||o.end!==!1)&&(i.on("end",l),i.on("close",s));var c=!1;function l(){c||(c=!0,n.end())}function s(){c||(c=!0,typeof n.destroy=="function"&&n.destroy())}function f(b){if(h(),e.listenerCount(this,"error")===0)throw b}i.on("error",f),n.on("error",f);function h(){i.removeListener("data",a),n.removeListener("drain",u),i.removeListener("end",l),i.removeListener("close",s),i.removeListener("error",f),n.removeListener("error",f),i.removeListener("end",h),i.removeListener("close",h),n.removeListener("close",h)}return i.on("end",h),i.on("close",h),n.on("close",h),n.emit("pipe",i),n},ns}var gc;function Oy(){return gc||(gc=1,function(e){(function(t){t.parser=function(R,O){return new n(R,O)},t.SAXParser=n,t.SAXStream=s,t.createStream=l,t.MAX_BUFFER_LENGTH=64*1024;var r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function n(R,O){if(!(this instanceof n))return new n(R,O);var q=this;i(q),q.q=q.c="",q.bufferCheckPosition=t.MAX_BUFFER_LENGTH,q.opt=O||{},q.opt.lowercase=q.opt.lowercase||q.opt.lowercasetags,q.looseCase=q.opt.lowercase?"toLowerCase":"toUpperCase",q.tags=[],q.closed=q.closedRoot=q.sawRoot=!1,q.tag=q.error=null,q.strict=!!R,q.noscript=!!(R||q.opt.noscript),q.state=N.BEGIN,q.strictEntities=q.opt.strictEntities,q.ENTITIES=q.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),q.attribList=[],q.opt.xmlns&&(q.ns=Object.create(x)),q.opt.unquotedAttributeValues===void 0&&(q.opt.unquotedAttributeValues=!R),q.trackPosition=q.opt.position!==!1,q.trackPosition&&(q.position=q.line=q.column=0),G(q,"onready")}Object.create||(Object.create=function(R){function O(){}O.prototype=R;var q=new O;return q}),Object.keys||(Object.keys=function(R){var O=[];for(var q in R)R.hasOwnProperty(q)&&O.push(q);return O});function o(R){for(var O=Math.max(t.MAX_BUFFER_LENGTH,10),q=0,$=0,B=r.length;$<B;$++){var U=R[r[$]].length;if(U>O)switch(r[$]){case"textNode":D(R);break;case"cdata":L(R,"oncdata",R.cdata),R.cdata="";break;case"script":L(R,"onscript",R.script),R.script="";break;default:re(R,"Max buffer length exceeded: "+r[$])}q=Math.max(q,U)}var Y=t.MAX_BUFFER_LENGTH-q;R.bufferCheckPosition=Y+R.position}function i(R){for(var O=0,q=r.length;O<q;O++)R[r[O]]=""}function a(R){D(R),R.cdata!==""&&(L(R,"oncdata",R.cdata),R.cdata=""),R.script!==""&&(L(R,"onscript",R.script),R.script="")}n.prototype={end:function(){he(this)},write:V,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a(this)}};var u;try{u=Ny().Stream}catch{u=function(){}}u||(u=function(){});var c=t.EVENTS.filter(function(R){return R!=="error"&&R!=="end"});function l(R,O){return new s(R,O)}function s(R,O){if(!(this instanceof s))return new s(R,O);u.apply(this),this._parser=new n(R,O),this.writable=!0,this.readable=!0;var q=this;this._parser.onend=function(){q.emit("end")},this._parser.onerror=function($){q.emit("error",$),q._parser.error=null},this._decoder=null,c.forEach(function($){Object.defineProperty(q,"on"+$,{get:function(){return q._parser["on"+$]},set:function(B){if(!B)return q.removeAllListeners($),q._parser["on"+$]=B,B;q.on($,B)},enumerable:!0,configurable:!1})})}s.prototype=Object.create(u.prototype,{constructor:{value:s}}),s.prototype.write=function(R){if(typeof yr=="function"&&typeof yr.isBuffer=="function"&&yr.isBuffer(R)){if(!this._decoder){var O=zo().StringDecoder;this._decoder=new O("utf8")}R=this._decoder.write(R)}return this._parser.write(R.toString()),this.emit("data",R),!0},s.prototype.end=function(R){return R&&R.length&&this.write(R),this._parser.end(),!0},s.prototype.on=function(R,O){var q=this;return!q._parser["on"+R]&&c.indexOf(R)!==-1&&(q._parser["on"+R]=function(){var $=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);$.splice(0,0,R),q.emit.apply(q,$)}),u.prototype.on.call(q,R,O)};var f="[CDATA[",h="DOCTYPE",b="http://www.w3.org/XML/1998/namespace",m="http://www.w3.org/2000/xmlns/",x={xml:b,xmlns:m},A=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,g=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,d=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,p=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function y(R){return R===" "||R===`
26
- `||R==="\r"||R===" "}function v(R){return R==='"'||R==="'"}function T(R){return R===">"||y(R)}function P(R,O){return R.test(O)}function I(R,O){return!P(R,O)}var N=0;t.STATE={BEGIN:N++,BEGIN_WHITESPACE:N++,TEXT:N++,TEXT_ENTITY:N++,OPEN_WAKA:N++,SGML_DECL:N++,SGML_DECL_QUOTED:N++,DOCTYPE:N++,DOCTYPE_QUOTED:N++,DOCTYPE_DTD:N++,DOCTYPE_DTD_QUOTED:N++,COMMENT_STARTING:N++,COMMENT:N++,COMMENT_ENDING:N++,COMMENT_ENDED:N++,CDATA:N++,CDATA_ENDING:N++,CDATA_ENDING_2:N++,PROC_INST:N++,PROC_INST_BODY:N++,PROC_INST_ENDING:N++,OPEN_TAG:N++,OPEN_TAG_SLASH:N++,ATTRIB:N++,ATTRIB_NAME:N++,ATTRIB_NAME_SAW_WHITE:N++,ATTRIB_VALUE:N++,ATTRIB_VALUE_QUOTED:N++,ATTRIB_VALUE_CLOSED:N++,ATTRIB_VALUE_UNQUOTED:N++,ATTRIB_VALUE_ENTITY_Q:N++,ATTRIB_VALUE_ENTITY_U:N++,CLOSE_TAG:N++,CLOSE_TAG_SAW_WHITE:N++,SCRIPT:N++,SCRIPT_ENDING:N++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(R){var O=t.ENTITIES[R],q=typeof O=="number"?String.fromCharCode(O):O;t.ENTITIES[R]=q});for(var j in t.STATE)t.STATE[t.STATE[j]]=j;N=t.STATE;function G(R,O,q){R[O]&&R[O](q)}function L(R,O,q){R.textNode&&D(R),G(R,O,q)}function D(R){R.textNode=oe(R.opt,R.textNode),R.textNode&&G(R,"ontext",R.textNode),R.textNode=""}function oe(R,O){return R.trim&&(O=O.trim()),R.normalize&&(O=O.replace(/\s+/g," ")),O}function re(R,O){return D(R),R.trackPosition&&(O+=`
27
- Line: `+R.line+`
28
- Column: `+R.column+`
29
- Char: `+R.c),O=new Error(O),R.error=O,G(R,"onerror",O),R}function he(R){return R.sawRoot&&!R.closedRoot&&ce(R,"Unclosed root tag"),R.state!==N.BEGIN&&R.state!==N.BEGIN_WHITESPACE&&R.state!==N.TEXT&&re(R,"Unexpected end"),D(R),R.c="",R.closed=!0,G(R,"onend"),n.call(R,R.strict,R.opt),R}function ce(R,O){if(typeof R!="object"||!(R instanceof n))throw new Error("bad call to strictFail");R.strict&&re(R,O)}function ge(R){R.strict||(R.tagName=R.tagName[R.looseCase]());var O=R.tags[R.tags.length-1]||R,q=R.tag={name:R.tagName,attributes:{}};R.opt.xmlns&&(q.ns=O.ns),R.attribList.length=0,L(R,"onopentagstart",q)}function fe(R,O){var q=R.indexOf(":"),$=q<0?["",R]:R.split(":"),B=$[0],U=$[1];return O&&R==="xmlns"&&(B="xmlns",U=""),{prefix:B,local:U}}function Ee(R){if(R.strict||(R.attribName=R.attribName[R.looseCase]()),R.attribList.indexOf(R.attribName)!==-1||R.tag.attributes.hasOwnProperty(R.attribName)){R.attribName=R.attribValue="";return}if(R.opt.xmlns){var O=fe(R.attribName,!0),q=O.prefix,$=O.local;if(q==="xmlns")if($==="xml"&&R.attribValue!==b)ce(R,"xml: prefix must be bound to "+b+`
30
- Actual: `+R.attribValue);else if($==="xmlns"&&R.attribValue!==m)ce(R,"xmlns: prefix must be bound to "+m+`
31
- Actual: `+R.attribValue);else{var B=R.tag,U=R.tags[R.tags.length-1]||R;B.ns===U.ns&&(B.ns=Object.create(U.ns)),B.ns[$]=R.attribValue}R.attribList.push([R.attribName,R.attribValue])}else R.tag.attributes[R.attribName]=R.attribValue,L(R,"onattribute",{name:R.attribName,value:R.attribValue});R.attribName=R.attribValue=""}function be(R,O){if(R.opt.xmlns){var q=R.tag,$=fe(R.tagName);q.prefix=$.prefix,q.local=$.local,q.uri=q.ns[$.prefix]||"",q.prefix&&!q.uri&&(ce(R,"Unbound namespace prefix: "+JSON.stringify(R.tagName)),q.uri=$.prefix);var B=R.tags[R.tags.length-1]||R;q.ns&&B.ns!==q.ns&&Object.keys(q.ns).forEach(function(Ne){L(R,"onopennamespace",{prefix:Ne,uri:q.ns[Ne]})});for(var U=0,Y=R.attribList.length;U<Y;U++){var se=R.attribList[U],pe=se[0],le=se[1],de=fe(pe,!0),Be=de.prefix,te=de.local,rt=Be===""?"":q.ns[Be]||"",Je={name:pe,value:le,prefix:Be,local:te,uri:rt};Be&&Be!=="xmlns"&&!rt&&(ce(R,"Unbound namespace prefix: "+JSON.stringify(Be)),Je.uri=Be),R.tag.attributes[pe]=Je,L(R,"onattribute",Je)}R.attribList.length=0}R.tag.isSelfClosing=!!O,R.sawRoot=!0,R.tags.push(R.tag),L(R,"onopentag",R.tag),O||(!R.noscript&&R.tagName.toLowerCase()==="script"?R.state=N.SCRIPT:R.state=N.TEXT,R.tag=null,R.tagName=""),R.attribName=R.attribValue="",R.attribList.length=0}function K(R){if(!R.tagName){ce(R,"Weird empty close tag."),R.textNode+="</>",R.state=N.TEXT;return}if(R.script){if(R.tagName!=="script"){R.script+="</"+R.tagName+">",R.tagName="",R.state=N.SCRIPT;return}L(R,"onscript",R.script),R.script=""}var O=R.tags.length,q=R.tagName;R.strict||(q=q[R.looseCase]());for(var $=q;O--;){var B=R.tags[O];if(B.name!==$)ce(R,"Unexpected close tag");else break}if(O<0){ce(R,"Unmatched closing tag: "+R.tagName),R.textNode+="</"+R.tagName+">",R.state=N.TEXT;return}R.tagName=q;for(var U=R.tags.length;U-- >O;){var Y=R.tag=R.tags.pop();R.tagName=R.tag.name,L(R,"onclosetag",R.tagName);var se={};for(var pe in Y.ns)se[pe]=Y.ns[pe];var le=R.tags[R.tags.length-1]||R;R.opt.xmlns&&Y.ns!==le.ns&&Object.keys(Y.ns).forEach(function(de){var Be=Y.ns[de];L(R,"onclosenamespace",{prefix:de,uri:Be})})}O===0&&(R.closedRoot=!0),R.tagName=R.attribValue=R.attribName="",R.attribList.length=0,R.state=N.TEXT}function Q(R){var O=R.entity,q=O.toLowerCase(),$,B="";return R.ENTITIES[O]?R.ENTITIES[O]:R.ENTITIES[q]?R.ENTITIES[q]:(O=q,O.charAt(0)==="#"&&(O.charAt(1)==="x"?(O=O.slice(2),$=parseInt(O,16),B=$.toString(16)):(O=O.slice(1),$=parseInt(O,10),B=$.toString(10))),O=O.replace(/^0+/,""),isNaN($)||B.toLowerCase()!==O?(ce(R,"Invalid character entity"),"&"+R.entity+";"):String.fromCodePoint($))}function ee(R,O){O==="<"?(R.state=N.OPEN_WAKA,R.startTagPosition=R.position):y(O)||(ce(R,"Non-whitespace before first tag."),R.textNode=O,R.state=N.TEXT)}function ue(R,O){var q="";return O<R.length&&(q=R.charAt(O)),q}function V(R){var O=this;if(this.error)throw this.error;if(O.closed)return re(O,"Cannot write after close. Assign an onready handler.");if(R===null)return he(O);typeof R=="object"&&(R=R.toString());for(var q=0,$="";$=ue(R,q++),O.c=$,!!$;)switch(O.trackPosition&&(O.position++,$===`
32
- `?(O.line++,O.column=0):O.column++),O.state){case N.BEGIN:if(O.state=N.BEGIN_WHITESPACE,$==="\uFEFF")continue;ee(O,$);continue;case N.BEGIN_WHITESPACE:ee(O,$);continue;case N.TEXT:if(O.sawRoot&&!O.closedRoot){for(var B=q-1;$&&$!=="<"&&$!=="&";)$=ue(R,q++),$&&O.trackPosition&&(O.position++,$===`
33
- `?(O.line++,O.column=0):O.column++);O.textNode+=R.substring(B,q-1)}$==="<"&&!(O.sawRoot&&O.closedRoot&&!O.strict)?(O.state=N.OPEN_WAKA,O.startTagPosition=O.position):(!y($)&&(!O.sawRoot||O.closedRoot)&&ce(O,"Text data outside of root node."),$==="&"?O.state=N.TEXT_ENTITY:O.textNode+=$);continue;case N.SCRIPT:$==="<"?O.state=N.SCRIPT_ENDING:O.script+=$;continue;case N.SCRIPT_ENDING:$==="/"?O.state=N.CLOSE_TAG:(O.script+="<"+$,O.state=N.SCRIPT);continue;case N.OPEN_WAKA:if($==="!")O.state=N.SGML_DECL,O.sgmlDecl="";else if(!y($))if(P(A,$))O.state=N.OPEN_TAG,O.tagName=$;else if($==="/")O.state=N.CLOSE_TAG,O.tagName="";else if($==="?")O.state=N.PROC_INST,O.procInstName=O.procInstBody="";else{if(ce(O,"Unencoded <"),O.startTagPosition+1<O.position){var U=O.position-O.startTagPosition;$=new Array(U).join(" ")+$}O.textNode+="<"+$,O.state=N.TEXT}continue;case N.SGML_DECL:if(O.sgmlDecl+$==="--"){O.state=N.COMMENT,O.comment="",O.sgmlDecl="";continue}O.doctype&&O.doctype!==!0&&O.sgmlDecl?(O.state=N.DOCTYPE_DTD,O.doctype+="<!"+O.sgmlDecl+$,O.sgmlDecl=""):(O.sgmlDecl+$).toUpperCase()===f?(L(O,"onopencdata"),O.state=N.CDATA,O.sgmlDecl="",O.cdata=""):(O.sgmlDecl+$).toUpperCase()===h?(O.state=N.DOCTYPE,(O.doctype||O.sawRoot)&&ce(O,"Inappropriately located doctype declaration"),O.doctype="",O.sgmlDecl=""):$===">"?(L(O,"onsgmldeclaration",O.sgmlDecl),O.sgmlDecl="",O.state=N.TEXT):(v($)&&(O.state=N.SGML_DECL_QUOTED),O.sgmlDecl+=$);continue;case N.SGML_DECL_QUOTED:$===O.q&&(O.state=N.SGML_DECL,O.q=""),O.sgmlDecl+=$;continue;case N.DOCTYPE:$===">"?(O.state=N.TEXT,L(O,"ondoctype",O.doctype),O.doctype=!0):(O.doctype+=$,$==="["?O.state=N.DOCTYPE_DTD:v($)&&(O.state=N.DOCTYPE_QUOTED,O.q=$));continue;case N.DOCTYPE_QUOTED:O.doctype+=$,$===O.q&&(O.q="",O.state=N.DOCTYPE);continue;case N.DOCTYPE_DTD:$==="]"?(O.doctype+=$,O.state=N.DOCTYPE):$==="<"?(O.state=N.OPEN_WAKA,O.startTagPosition=O.position):v($)?(O.doctype+=$,O.state=N.DOCTYPE_DTD_QUOTED,O.q=$):O.doctype+=$;continue;case N.DOCTYPE_DTD_QUOTED:O.doctype+=$,$===O.q&&(O.state=N.DOCTYPE_DTD,O.q="");continue;case N.COMMENT:$==="-"?O.state=N.COMMENT_ENDING:O.comment+=$;continue;case N.COMMENT_ENDING:$==="-"?(O.state=N.COMMENT_ENDED,O.comment=oe(O.opt,O.comment),O.comment&&L(O,"oncomment",O.comment),O.comment=""):(O.comment+="-"+$,O.state=N.COMMENT);continue;case N.COMMENT_ENDED:$!==">"?(ce(O,"Malformed comment"),O.comment+="--"+$,O.state=N.COMMENT):O.doctype&&O.doctype!==!0?O.state=N.DOCTYPE_DTD:O.state=N.TEXT;continue;case N.CDATA:$==="]"?O.state=N.CDATA_ENDING:O.cdata+=$;continue;case N.CDATA_ENDING:$==="]"?O.state=N.CDATA_ENDING_2:(O.cdata+="]"+$,O.state=N.CDATA);continue;case N.CDATA_ENDING_2:$===">"?(O.cdata&&L(O,"oncdata",O.cdata),L(O,"onclosecdata"),O.cdata="",O.state=N.TEXT):$==="]"?O.cdata+="]":(O.cdata+="]]"+$,O.state=N.CDATA);continue;case N.PROC_INST:$==="?"?O.state=N.PROC_INST_ENDING:y($)?O.state=N.PROC_INST_BODY:O.procInstName+=$;continue;case N.PROC_INST_BODY:if(!O.procInstBody&&y($))continue;$==="?"?O.state=N.PROC_INST_ENDING:O.procInstBody+=$;continue;case N.PROC_INST_ENDING:$===">"?(L(O,"onprocessinginstruction",{name:O.procInstName,body:O.procInstBody}),O.procInstName=O.procInstBody="",O.state=N.TEXT):(O.procInstBody+="?"+$,O.state=N.PROC_INST_BODY);continue;case N.OPEN_TAG:P(g,$)?O.tagName+=$:(ge(O),$===">"?be(O):$==="/"?O.state=N.OPEN_TAG_SLASH:(y($)||ce(O,"Invalid character in tag name"),O.state=N.ATTRIB));continue;case N.OPEN_TAG_SLASH:$===">"?(be(O,!0),K(O)):(ce(O,"Forward-slash in opening tag not followed by >"),O.state=N.ATTRIB);continue;case N.ATTRIB:if(y($))continue;$===">"?be(O):$==="/"?O.state=N.OPEN_TAG_SLASH:P(A,$)?(O.attribName=$,O.attribValue="",O.state=N.ATTRIB_NAME):ce(O,"Invalid attribute name");continue;case N.ATTRIB_NAME:$==="="?O.state=N.ATTRIB_VALUE:$===">"?(ce(O,"Attribute without value"),O.attribValue=O.attribName,Ee(O),be(O)):y($)?O.state=N.ATTRIB_NAME_SAW_WHITE:P(g,$)?O.attribName+=$:ce(O,"Invalid attribute name");continue;case N.ATTRIB_NAME_SAW_WHITE:if($==="=")O.state=N.ATTRIB_VALUE;else{if(y($))continue;ce(O,"Attribute without value"),O.tag.attributes[O.attribName]="",O.attribValue="",L(O,"onattribute",{name:O.attribName,value:""}),O.attribName="",$===">"?be(O):P(A,$)?(O.attribName=$,O.state=N.ATTRIB_NAME):(ce(O,"Invalid attribute name"),O.state=N.ATTRIB)}continue;case N.ATTRIB_VALUE:if(y($))continue;v($)?(O.q=$,O.state=N.ATTRIB_VALUE_QUOTED):(O.opt.unquotedAttributeValues||re(O,"Unquoted attribute value"),O.state=N.ATTRIB_VALUE_UNQUOTED,O.attribValue=$);continue;case N.ATTRIB_VALUE_QUOTED:if($!==O.q){$==="&"?O.state=N.ATTRIB_VALUE_ENTITY_Q:O.attribValue+=$;continue}Ee(O),O.q="",O.state=N.ATTRIB_VALUE_CLOSED;continue;case N.ATTRIB_VALUE_CLOSED:y($)?O.state=N.ATTRIB:$===">"?be(O):$==="/"?O.state=N.OPEN_TAG_SLASH:P(A,$)?(ce(O,"No whitespace between attributes"),O.attribName=$,O.attribValue="",O.state=N.ATTRIB_NAME):ce(O,"Invalid attribute name");continue;case N.ATTRIB_VALUE_UNQUOTED:if(!T($)){$==="&"?O.state=N.ATTRIB_VALUE_ENTITY_U:O.attribValue+=$;continue}Ee(O),$===">"?be(O):O.state=N.ATTRIB;continue;case N.CLOSE_TAG:if(O.tagName)$===">"?K(O):P(g,$)?O.tagName+=$:O.script?(O.script+="</"+O.tagName,O.tagName="",O.state=N.SCRIPT):(y($)||ce(O,"Invalid tagname in closing tag"),O.state=N.CLOSE_TAG_SAW_WHITE);else{if(y($))continue;I(A,$)?O.script?(O.script+="</"+$,O.state=N.SCRIPT):ce(O,"Invalid tagname in closing tag."):O.tagName=$}continue;case N.CLOSE_TAG_SAW_WHITE:if(y($))continue;$===">"?K(O):ce(O,"Invalid characters in closing tag");continue;case N.TEXT_ENTITY:case N.ATTRIB_VALUE_ENTITY_Q:case N.ATTRIB_VALUE_ENTITY_U:var Y,se;switch(O.state){case N.TEXT_ENTITY:Y=N.TEXT,se="textNode";break;case N.ATTRIB_VALUE_ENTITY_Q:Y=N.ATTRIB_VALUE_QUOTED,se="attribValue";break;case N.ATTRIB_VALUE_ENTITY_U:Y=N.ATTRIB_VALUE_UNQUOTED,se="attribValue";break}if($===";"){var pe=Q(O);O.opt.unparsedEntities&&!Object.values(t.XML_ENTITIES).includes(pe)?(O.entity="",O.state=Y,O.write(pe)):(O[se]+=pe,O.entity="",O.state=Y)}else P(O.entity.length?p:d,$)?O.entity+=$:(ce(O,"Invalid character in entity name"),O[se]+="&"+O.entity+$,O.entity="",O.state=Y);continue;default:throw new Error(O,"Unknown state: "+O.state)}return O.position>=O.bufferCheckPosition&&o(O),O}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var R=String.fromCharCode,O=Math.floor,q=function(){var $=16384,B=[],U,Y,se=-1,pe=arguments.length;if(!pe)return"";for(var le="";++se<pe;){var de=Number(arguments[se]);if(!isFinite(de)||de<0||de>1114111||O(de)!==de)throw RangeError("Invalid code point: "+de);de<=65535?B.push(de):(de-=65536,U=(de>>10)+55296,Y=de%1024+56320,B.push(U,Y)),(se+1===pe||B.length>$)&&(le+=R.apply(null,B),B.length=0)}return le};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:q,configurable:!0,writable:!0}):String.fromCodePoint=q}()})(e)}(Pi)),Pi}var is,yc;function os(){return yc||(yc=1,is={isArray:function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"}}),is}var ss,mc;function as(){if(mc)return ss;mc=1;var e=os().isArray;return ss={copyOptions:function(t){var r,n={};for(r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return n},ensureFlagExists:function(t,r){(!(t in r)||typeof r[t]!="boolean")&&(r[t]=!1)},ensureSpacesExists:function(t){(!("spaces"in t)||typeof t.spaces!="number"&&typeof t.spaces!="string")&&(t.spaces=0)},ensureAlwaysArrayExists:function(t){(!("alwaysArray"in t)||typeof t.alwaysArray!="boolean"&&!e(t.alwaysArray))&&(t.alwaysArray=!1)},ensureKeyExists:function(t,r){(!(t+"Key"in r)||typeof r[t+"Key"]!="string")&&(r[t+"Key"]=r.compact?"_"+t:t)},checkFnExists:function(t,r){return t+"Fn"in r}},ss}var us,bc;function wc(){if(bc)return us;bc=1;var e=Oy(),t=as(),r=os().isArray,n,o;function i(g){return n=t.copyOptions(g),t.ensureFlagExists("ignoreDeclaration",n),t.ensureFlagExists("ignoreInstruction",n),t.ensureFlagExists("ignoreAttributes",n),t.ensureFlagExists("ignoreText",n),t.ensureFlagExists("ignoreComment",n),t.ensureFlagExists("ignoreCdata",n),t.ensureFlagExists("ignoreDoctype",n),t.ensureFlagExists("compact",n),t.ensureFlagExists("alwaysChildren",n),t.ensureFlagExists("addParent",n),t.ensureFlagExists("trim",n),t.ensureFlagExists("nativeType",n),t.ensureFlagExists("nativeTypeAttributes",n),t.ensureFlagExists("sanitize",n),t.ensureFlagExists("instructionHasAttributes",n),t.ensureFlagExists("captureSpacesBetweenElements",n),t.ensureAlwaysArrayExists(n),t.ensureKeyExists("declaration",n),t.ensureKeyExists("instruction",n),t.ensureKeyExists("attributes",n),t.ensureKeyExists("text",n),t.ensureKeyExists("comment",n),t.ensureKeyExists("cdata",n),t.ensureKeyExists("doctype",n),t.ensureKeyExists("type",n),t.ensureKeyExists("name",n),t.ensureKeyExists("elements",n),t.ensureKeyExists("parent",n),t.checkFnExists("doctype",n),t.checkFnExists("instruction",n),t.checkFnExists("cdata",n),t.checkFnExists("comment",n),t.checkFnExists("text",n),t.checkFnExists("instructionName",n),t.checkFnExists("elementName",n),t.checkFnExists("attributeName",n),t.checkFnExists("attributeValue",n),t.checkFnExists("attributes",n),n}function a(g){var d=Number(g);if(!isNaN(d))return d;var p=g.toLowerCase();return p==="true"?!0:p==="false"?!1:g}function u(g,d){var p;if(n.compact){if(!o[n[g+"Key"]]&&(r(n.alwaysArray)?n.alwaysArray.indexOf(n[g+"Key"])!==-1:n.alwaysArray)&&(o[n[g+"Key"]]=[]),o[n[g+"Key"]]&&!r(o[n[g+"Key"]])&&(o[n[g+"Key"]]=[o[n[g+"Key"]]]),g+"Fn"in n&&typeof d=="string"&&(d=n[g+"Fn"](d,o)),g==="instruction"&&("instructionFn"in n||"instructionNameFn"in n)){for(p in d)if(d.hasOwnProperty(p))if("instructionFn"in n)d[p]=n.instructionFn(d[p],p,o);else{var y=d[p];delete d[p],d[n.instructionNameFn(p,y,o)]=y}}r(o[n[g+"Key"]])?o[n[g+"Key"]].push(d):o[n[g+"Key"]]=d}else{o[n.elementsKey]||(o[n.elementsKey]=[]);var v={};if(v[n.typeKey]=g,g==="instruction"){for(p in d)if(d.hasOwnProperty(p))break;v[n.nameKey]="instructionNameFn"in n?n.instructionNameFn(p,d,o):p,n.instructionHasAttributes?(v[n.attributesKey]=d[p][n.attributesKey],"instructionFn"in n&&(v[n.attributesKey]=n.instructionFn(v[n.attributesKey],p,o))):("instructionFn"in n&&(d[p]=n.instructionFn(d[p],p,o)),v[n.instructionKey]=d[p])}else g+"Fn"in n&&(d=n[g+"Fn"](d,o)),v[n[g+"Key"]]=d;n.addParent&&(v[n.parentKey]=o),o[n.elementsKey].push(v)}}function c(g){if("attributesFn"in n&&g&&(g=n.attributesFn(g,o)),(n.trim||"attributeValueFn"in n||"attributeNameFn"in n||n.nativeTypeAttributes)&&g){var d;for(d in g)if(g.hasOwnProperty(d)&&(n.trim&&(g[d]=g[d].trim()),n.nativeTypeAttributes&&(g[d]=a(g[d])),"attributeValueFn"in n&&(g[d]=n.attributeValueFn(g[d],d,o)),"attributeNameFn"in n)){var p=g[d];delete g[d],g[n.attributeNameFn(d,g[d],o)]=p}}return g}function l(g){var d={};if(g.body&&(g.name.toLowerCase()==="xml"||n.instructionHasAttributes)){for(var p=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,y;(y=p.exec(g.body))!==null;)d[y[1]]=y[2]||y[3]||y[4];d=c(d)}if(g.name.toLowerCase()==="xml"){if(n.ignoreDeclaration)return;o[n.declarationKey]={},Object.keys(d).length&&(o[n.declarationKey][n.attributesKey]=d),n.addParent&&(o[n.declarationKey][n.parentKey]=o)}else{if(n.ignoreInstruction)return;n.trim&&(g.body=g.body.trim());var v={};n.instructionHasAttributes&&Object.keys(d).length?(v[g.name]={},v[g.name][n.attributesKey]=d):v[g.name]=g.body,u("instruction",v)}}function s(g,d){var p;if(typeof g=="object"&&(d=g.attributes,g=g.name),d=c(d),"elementNameFn"in n&&(g=n.elementNameFn(g,o)),n.compact){if(p={},!n.ignoreAttributes&&d&&Object.keys(d).length){p[n.attributesKey]={};var y;for(y in d)d.hasOwnProperty(y)&&(p[n.attributesKey][y]=d[y])}!(g in o)&&(r(n.alwaysArray)?n.alwaysArray.indexOf(g)!==-1:n.alwaysArray)&&(o[g]=[]),o[g]&&!r(o[g])&&(o[g]=[o[g]]),r(o[g])?o[g].push(p):o[g]=p}else o[n.elementsKey]||(o[n.elementsKey]=[]),p={},p[n.typeKey]="element",p[n.nameKey]=g,!n.ignoreAttributes&&d&&Object.keys(d).length&&(p[n.attributesKey]=d),n.alwaysChildren&&(p[n.elementsKey]=[]),o[n.elementsKey].push(p);p[n.parentKey]=o,o=p}function f(g){n.ignoreText||!g.trim()&&!n.captureSpacesBetweenElements||(n.trim&&(g=g.trim()),n.nativeType&&(g=a(g)),n.sanitize&&(g=g.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),u("text",g))}function h(g){n.ignoreComment||(n.trim&&(g=g.trim()),u("comment",g))}function b(g){var d=o[n.parentKey];n.addParent||delete o[n.parentKey],o=d}function m(g){n.ignoreCdata||(n.trim&&(g=g.trim()),u("cdata",g))}function x(g){n.ignoreDoctype||(g=g.replace(/^ /,""),n.trim&&(g=g.trim()),u("doctype",g))}function A(g){g.note=g}return us=function(g,d){var p=e.parser(!0,{}),y={};if(o=y,n=i(d),p.opt={strictEntities:!0},p.onopentag=s,p.ontext=f,p.oncomment=h,p.onclosetag=b,p.onerror=A,p.oncdata=m,p.ondoctype=x,p.onprocessinginstruction=l,p.write(g).close(),y[n.elementsKey]){var v=y[n.elementsKey];delete y[n.elementsKey],y[n.elementsKey]=v,delete y.text}return y},us}var ls,vc;function Ry(){if(vc)return ls;vc=1;var e=as(),t=wc();function r(n){var o=e.copyOptions(n);return e.ensureSpacesExists(o),o}return ls=function(n,o){var i,a,u,c;return i=r(o),a=t(n,i),c="compact"in i&&i.compact?"_parent":"parent","addParent"in i&&i.addParent?u=JSON.stringify(a,function(l,s){return l===c?"_":s},i.spaces):u=JSON.stringify(a,null,i.spaces),u.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},ls}var cs,Ec;function xc(){if(Ec)return cs;Ec=1;var e=as(),t=os().isArray,r,n;function o(p){var y=e.copyOptions(p);return e.ensureFlagExists("ignoreDeclaration",y),e.ensureFlagExists("ignoreInstruction",y),e.ensureFlagExists("ignoreAttributes",y),e.ensureFlagExists("ignoreText",y),e.ensureFlagExists("ignoreComment",y),e.ensureFlagExists("ignoreCdata",y),e.ensureFlagExists("ignoreDoctype",y),e.ensureFlagExists("compact",y),e.ensureFlagExists("indentText",y),e.ensureFlagExists("indentCdata",y),e.ensureFlagExists("indentAttributes",y),e.ensureFlagExists("indentInstruction",y),e.ensureFlagExists("fullTagEmptyElement",y),e.ensureFlagExists("noQuotesForNativeAttributes",y),e.ensureSpacesExists(y),typeof y.spaces=="number"&&(y.spaces=Array(y.spaces+1).join(" ")),e.ensureKeyExists("declaration",y),e.ensureKeyExists("instruction",y),e.ensureKeyExists("attributes",y),e.ensureKeyExists("text",y),e.ensureKeyExists("comment",y),e.ensureKeyExists("cdata",y),e.ensureKeyExists("doctype",y),e.ensureKeyExists("type",y),e.ensureKeyExists("name",y),e.ensureKeyExists("elements",y),e.checkFnExists("doctype",y),e.checkFnExists("instruction",y),e.checkFnExists("cdata",y),e.checkFnExists("comment",y),e.checkFnExists("text",y),e.checkFnExists("instructionName",y),e.checkFnExists("elementName",y),e.checkFnExists("attributeName",y),e.checkFnExists("attributeValue",y),e.checkFnExists("attributes",y),e.checkFnExists("fullTagEmptyElement",y),y}function i(p,y,v){return(!v&&p.spaces?`
34
- `:"")+Array(y+1).join(p.spaces)}function a(p,y,v){if(y.ignoreAttributes)return"";"attributesFn"in y&&(p=y.attributesFn(p,n,r));var T,P,I,N,j=[];for(T in p)p.hasOwnProperty(T)&&p[T]!==null&&p[T]!==void 0&&(N=y.noQuotesForNativeAttributes&&typeof p[T]!="string"?"":'"',P=""+p[T],P=P.replace(/"/g,"&quot;"),I="attributeNameFn"in y?y.attributeNameFn(T,P,n,r):T,j.push(y.spaces&&y.indentAttributes?i(y,v+1,!1):" "),j.push(I+"="+N+("attributeValueFn"in y?y.attributeValueFn(P,T,n,r):P)+N));return p&&Object.keys(p).length&&y.spaces&&y.indentAttributes&&j.push(i(y,v,!1)),j.join("")}function u(p,y,v){return r=p,n="xml",y.ignoreDeclaration?"":"<?xml"+a(p[y.attributesKey],y,v)+"?>"}function c(p,y,v){if(y.ignoreInstruction)return"";var T;for(T in p)if(p.hasOwnProperty(T))break;var P="instructionNameFn"in y?y.instructionNameFn(T,p[T],n,r):T;if(typeof p[T]=="object")return r=p,n=P,"<?"+P+a(p[T][y.attributesKey],y,v)+"?>";var I=p[T]?p[T]:"";return"instructionFn"in y&&(I=y.instructionFn(I,T,n,r)),"<?"+P+(I?" "+I:"")+"?>"}function l(p,y){return y.ignoreComment?"":"<!--"+("commentFn"in y?y.commentFn(p,n,r):p)+"-->"}function s(p,y){return y.ignoreCdata?"":"<![CDATA["+("cdataFn"in y?y.cdataFn(p,n,r):p.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function f(p,y){return y.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in y?y.doctypeFn(p,n,r):p)+">"}function h(p,y){return y.ignoreText?"":(p=""+p,p=p.replace(/&amp;/g,"&"),p=p.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in y?y.textFn(p,n,r):p)}function b(p,y){var v;if(p.elements&&p.elements.length)for(v=0;v<p.elements.length;++v)switch(p.elements[v][y.typeKey]){case"text":if(y.indentText)return!0;break;case"cdata":if(y.indentCdata)return!0;break;case"instruction":if(y.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function m(p,y,v){r=p,n=p.name;var T=[],P="elementNameFn"in y?y.elementNameFn(p.name,p):p.name;T.push("<"+P),p[y.attributesKey]&&T.push(a(p[y.attributesKey],y,v));var I=p[y.elementsKey]&&p[y.elementsKey].length||p[y.attributesKey]&&p[y.attributesKey]["xml:space"]==="preserve";return I||("fullTagEmptyElementFn"in y?I=y.fullTagEmptyElementFn(p.name,p):I=y.fullTagEmptyElement),I?(T.push(">"),p[y.elementsKey]&&p[y.elementsKey].length&&(T.push(x(p[y.elementsKey],y,v+1)),r=p,n=p.name),T.push(y.spaces&&b(p,y)?`
35
- `+Array(v+1).join(y.spaces):""),T.push("</"+P+">")):T.push("/>"),T.join("")}function x(p,y,v,T){return p.reduce(function(P,I){var N=i(y,v,T&&!P);switch(I.type){case"element":return P+N+m(I,y,v);case"comment":return P+N+l(I[y.commentKey],y);case"doctype":return P+N+f(I[y.doctypeKey],y);case"cdata":return P+(y.indentCdata?N:"")+s(I[y.cdataKey],y);case"text":return P+(y.indentText?N:"")+h(I[y.textKey],y);case"instruction":var j={};return j[I[y.nameKey]]=I[y.attributesKey]?I:I[y.instructionKey],P+(y.indentInstruction?N:"")+c(j,y,v)}},"")}function A(p,y,v){var T;for(T in p)if(p.hasOwnProperty(T))switch(T){case y.parentKey:case y.attributesKey:break;case y.textKey:if(y.indentText||v)return!0;break;case y.cdataKey:if(y.indentCdata||v)return!0;break;case y.instructionKey:if(y.indentInstruction||v)return!0;break;case y.doctypeKey:case y.commentKey:return!0;default:return!0}return!1}function g(p,y,v,T,P){r=p,n=y;var I="elementNameFn"in v?v.elementNameFn(y,p):y;if(typeof p>"u"||p===null||p==="")return"fullTagEmptyElementFn"in v&&v.fullTagEmptyElementFn(y,p)||v.fullTagEmptyElement?"<"+I+"></"+I+">":"<"+I+"/>";var N=[];if(y){if(N.push("<"+I),typeof p!="object")return N.push(">"+h(p,v)+"</"+I+">"),N.join("");p[v.attributesKey]&&N.push(a(p[v.attributesKey],v,T));var j=A(p,v,!0)||p[v.attributesKey]&&p[v.attributesKey]["xml:space"]==="preserve";if(j||("fullTagEmptyElementFn"in v?j=v.fullTagEmptyElementFn(y,p):j=v.fullTagEmptyElement),j)N.push(">");else return N.push("/>"),N.join("")}return N.push(d(p,v,T+1,!1)),r=p,n=y,y&&N.push((P?i(v,T,!1):"")+"</"+I+">"),N.join("")}function d(p,y,v,T){var P,I,N,j=[];for(I in p)if(p.hasOwnProperty(I))for(N=t(p[I])?p[I]:[p[I]],P=0;P<N.length;++P){switch(I){case y.declarationKey:j.push(u(N[P],y,v));break;case y.instructionKey:j.push((y.indentInstruction?i(y,v,T):"")+c(N[P],y,v));break;case y.attributesKey:case y.parentKey:break;case y.textKey:j.push((y.indentText?i(y,v,T):"")+h(N[P],y));break;case y.cdataKey:j.push((y.indentCdata?i(y,v,T):"")+s(N[P],y));break;case y.doctypeKey:j.push(i(y,v,T)+f(N[P],y));break;case y.commentKey:j.push(i(y,v,T)+l(N[P],y));break;default:j.push(i(y,v,T)+g(N[P],I,y,v,A(N[P],y)))}T=T&&!j.length}return j.join("")}return cs=function(p,y){y=o(y);var v=[];return r=p,n="_root_",y.compact?v.push(d(p,y,0,!0)):(p[y.declarationKey]&&v.push(u(p[y.declarationKey],y,0)),p[y.elementsKey]&&p[y.elementsKey].length&&v.push(x(p[y.elementsKey],y,0,!v.length))),v.join("")},cs}var fs,Ac;function Iy(){if(Ac)return fs;Ac=1;var e=xc();return fs=function(t,r){t instanceof yr&&(t=t.toString());var n=null;if(typeof t=="string")try{n=JSON.parse(t)}catch{throw new Error("The JSON structure is invalid")}else n=t;return e(n,r)},fs}var hs,Tc;function Py(){if(Tc)return hs;Tc=1;var e=wc(),t=Ry(),r=xc(),n=Iy();return hs={xml2js:e,xml2json:t,js2xml:r,json2xml:n},hs}var Fy=Py(),Cy=Ie(Fy);/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function By(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Vr(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function Wr(e,...t){if(!By(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function Sc(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");Vr(e.outputLen),Vr(e.blockLen)}function Cn(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Ly(e,t){Wr(e);const r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}function Gr(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Bn(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function _c(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function ds(e){return typeof e=="string"&&(e=_c(e)),Wr(e),e}function Nc(e){return typeof e=="string"&&(e=_c(e)),Wr(e),e}function Uy(e,t){if(t!==void 0&&{}.toString.call(t)!=="[object Object]")throw new Error("options should be object or undefined");return Object.assign(e,t)}class Oc{}function jy(e){const t=n=>e().update(ds(n)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}class Rc extends Oc{constructor(t,r){super(),this.finished=!1,this.destroyed=!1,Sc(t);const n=ds(r);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,i=new Uint8Array(o);i.set(n.length>o?t.create().update(n).digest():n);for(let a=0;a<i.length;a++)i[a]^=54;this.iHash.update(i),this.oHash=t.create();for(let a=0;a<i.length;a++)i[a]^=106;this.oHash.update(i),Gr(i)}update(t){return Cn(this),this.iHash.update(t),this}digestInto(t){Cn(this),Wr(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:r,iHash:n,finished:o,destroyed:i,blockLen:a,outputLen:u}=this;return t=t,t.finished=o,t.destroyed=i,t.blockLen=a,t.outputLen=u,t.oHash=r._cloneInto(t.oHash),t.iHash=n._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const Ic=(e,t,r)=>new Rc(e,t).update(r).digest();Ic.create=(e,t)=>new Rc(e,t);function ky(e,t,r,n){Sc(e);const o=Uy({dkLen:32,asyncTick:10},n),{c:i,dkLen:a,asyncTick:u}=o;if(Vr(i),Vr(a),Vr(u),i<1)throw new Error("iterations (c) should be >= 1");const c=Nc(t),l=Nc(r),s=new Uint8Array(a),f=Ic.create(e,c),h=f._cloneInto().update(l);return{c:i,dkLen:a,asyncTick:u,DK:s,PRF:f,PRFSalt:h}}function My(e,t,r,n,o){return e.destroy(),t.destroy(),n&&n.destroy(),Gr(o),r}function Dy(e,t,r,n){const{c:o,dkLen:i,DK:a,PRF:u,PRFSalt:c}=ky(e,t,r,n);let l;const s=new Uint8Array(4),f=Bn(s),h=new Uint8Array(u.outputLen);for(let b=1,m=0;m<i;b++,m+=u.outputLen){const x=a.subarray(m,m+u.outputLen);f.setInt32(0,b,!1),(l=c._cloneInto(l)).update(s).digestInto(h),x.set(h.subarray(0,x.length));for(let A=1;A<o;A++){u._cloneInto(l).update(h).digestInto(h);for(let g=0;g<x.length;g++)x[g]^=h[g]}}return My(u,c,a,l,h)}function $y(e,t,r,n){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,r,n);const o=BigInt(32),i=BigInt(4294967295),a=Number(r>>o&i),u=Number(r&i),c=n?4:0,l=n?0:4;e.setUint32(t+c,a,n),e.setUint32(t+l,u,n)}class qy extends Oc{constructor(t,r,n,o){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=o,this.buffer=new Uint8Array(t),this.view=Bn(this.buffer)}update(t){Cn(this),t=ds(t),Wr(t);const{view:r,buffer:n,blockLen:o}=this,i=t.length;for(let a=0;a<i;){const u=Math.min(o-this.pos,i-a);if(u===o){const c=Bn(t);for(;o<=i-a;a+=o)this.process(c,a);continue}n.set(t.subarray(a,a+u),this.pos),this.pos+=u,a+=u,this.pos===o&&(this.process(r,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){Cn(this),Ly(t,this),this.finished=!0;const{buffer:r,view:n,blockLen:o,isLE:i}=this;let{pos:a}=this;r[a++]=128,Gr(this.buffer.subarray(a)),this.padOffset>o-a&&(this.process(n,0),a=0);for(let f=a;f<o;f++)r[f]=0;$y(n,o-8,BigInt(this.length*8),i),this.process(n,0);const u=Bn(t),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=c/4,s=this.get();if(l>s.length)throw new Error("_sha2: outputLen bigger than state");for(let f=0;f<l;f++)u.setUint32(4*f,s[f],i)}digest(){const{buffer:t,outputLen:r}=this;this.digestInto(t);const n=t.slice(0,r);return this.destroy(),n}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:r,buffer:n,length:o,finished:i,destroyed:a,pos:u}=this;return t.destroyed=a,t.finished=i,t.length=o,t.pos=u,o%r&&t.buffer.set(n),t}clone(){return this._cloneInto()}}const ut=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),Ln=BigInt(2**32-1),Pc=BigInt(32);function Hy(e,t=!1){return t?{h:Number(e&Ln),l:Number(e>>Pc&Ln)}:{h:Number(e>>Pc&Ln)|0,l:Number(e&Ln)|0}}function Vy(e,t=!1){const r=e.length;let n=new Uint32Array(r),o=new Uint32Array(r);for(let i=0;i<r;i++){const{h:a,l:u}=Hy(e[i],t);[n[i],o[i]]=[a,u]}return[n,o]}const Fc=(e,t,r)=>e>>>r,Cc=(e,t,r)=>e<<32-r|t>>>r,Sr=(e,t,r)=>e>>>r|t<<32-r,_r=(e,t,r)=>e<<32-r|t>>>r,Un=(e,t,r)=>e<<64-r|t>>>r-32,jn=(e,t,r)=>e>>>r-32|t<<64-r;function Mt(e,t,r,n){const o=(t>>>0)+(n>>>0);return{h:e+r+(o/2**32|0)|0,l:o|0}}const Wy=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),Gy=(e,t,r,n)=>t+r+n+(e/2**32|0)|0,Ky=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),zy=(e,t,r,n,o)=>t+r+n+o+(e/2**32|0)|0,Xy=(e,t,r,n,o)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(o>>>0),Yy=(e,t,r,n,o,i)=>t+r+n+o+i+(e/2**32|0)|0,Bc=Vy(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),Jy=Bc[0],Zy=Bc[1],Wt=new Uint32Array(80),Gt=new Uint32Array(80);class Qy extends qy{constructor(t=64){super(128,t,16,!1),this.Ah=ut[0]|0,this.Al=ut[1]|0,this.Bh=ut[2]|0,this.Bl=ut[3]|0,this.Ch=ut[4]|0,this.Cl=ut[5]|0,this.Dh=ut[6]|0,this.Dl=ut[7]|0,this.Eh=ut[8]|0,this.El=ut[9]|0,this.Fh=ut[10]|0,this.Fl=ut[11]|0,this.Gh=ut[12]|0,this.Gl=ut[13]|0,this.Hh=ut[14]|0,this.Hl=ut[15]|0}get(){const{Ah:t,Al:r,Bh:n,Bl:o,Ch:i,Cl:a,Dh:u,Dl:c,Eh:l,El:s,Fh:f,Fl:h,Gh:b,Gl:m,Hh:x,Hl:A}=this;return[t,r,n,o,i,a,u,c,l,s,f,h,b,m,x,A]}set(t,r,n,o,i,a,u,c,l,s,f,h,b,m,x,A){this.Ah=t|0,this.Al=r|0,this.Bh=n|0,this.Bl=o|0,this.Ch=i|0,this.Cl=a|0,this.Dh=u|0,this.Dl=c|0,this.Eh=l|0,this.El=s|0,this.Fh=f|0,this.Fl=h|0,this.Gh=b|0,this.Gl=m|0,this.Hh=x|0,this.Hl=A|0}process(t,r){for(let p=0;p<16;p++,r+=4)Wt[p]=t.getUint32(r),Gt[p]=t.getUint32(r+=4);for(let p=16;p<80;p++){const y=Wt[p-15]|0,v=Gt[p-15]|0,T=Sr(y,v,1)^Sr(y,v,8)^Fc(y,v,7),P=_r(y,v,1)^_r(y,v,8)^Cc(y,v,7),I=Wt[p-2]|0,N=Gt[p-2]|0,j=Sr(I,N,19)^Un(I,N,61)^Fc(I,N,6),G=_r(I,N,19)^jn(I,N,61)^Cc(I,N,6),L=Ky(P,G,Gt[p-7],Gt[p-16]),D=zy(L,T,j,Wt[p-7],Wt[p-16]);Wt[p]=D|0,Gt[p]=L|0}let{Ah:n,Al:o,Bh:i,Bl:a,Ch:u,Cl:c,Dh:l,Dl:s,Eh:f,El:h,Fh:b,Fl:m,Gh:x,Gl:A,Hh:g,Hl:d}=this;for(let p=0;p<80;p++){const y=Sr(f,h,14)^Sr(f,h,18)^Un(f,h,41),v=_r(f,h,14)^_r(f,h,18)^jn(f,h,41),T=f&b^~f&x,P=h&m^~h&A,I=Xy(d,v,P,Zy[p],Gt[p]),N=Yy(I,g,y,T,Jy[p],Wt[p]),j=I|0,G=Sr(n,o,28)^Un(n,o,34)^Un(n,o,39),L=_r(n,o,28)^jn(n,o,34)^jn(n,o,39),D=n&i^n&u^i&u,oe=o&a^o&c^a&c;g=x|0,d=A|0,x=b|0,A=m|0,b=f|0,m=h|0,{h:f,l:h}=Mt(l|0,s|0,N|0,j|0),l=u|0,s=c|0,u=i|0,c=a|0,i=n|0,a=o|0;const re=Wy(j,L,oe);n=Gy(re,N,G,D),o=re|0}({h:n,l:o}=Mt(this.Ah|0,this.Al|0,n|0,o|0)),{h:i,l:a}=Mt(this.Bh|0,this.Bl|0,i|0,a|0),{h:u,l:c}=Mt(this.Ch|0,this.Cl|0,u|0,c|0),{h:l,l:s}=Mt(this.Dh|0,this.Dl|0,l|0,s|0),{h:f,l:h}=Mt(this.Eh|0,this.El|0,f|0,h|0),{h:b,l:m}=Mt(this.Fh|0,this.Fl|0,b|0,m|0),{h:x,l:A}=Mt(this.Gh|0,this.Gl|0,x|0,A|0),{h:g,l:d}=Mt(this.Hh|0,this.Hl|0,g|0,d|0),this.set(n,o,i,a,u,c,l,s,f,h,b,m,x,A,g,d)}roundClean(){Gr(Wt,Gt)}destroy(){Gr(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const em=jy(()=>new Qy),tm=(e,t,r,n)=>yr.from(Dy(em,e,t,{c:r,dkLen:n}));class rm{constructor({axiosClient:t,baseURI:r}){ye(this,"axiosClient");ye(this,"baseURI");ye(this,"signingKey");ye(this,"ALGORITHM","sha512");ye(this,"TTL",1200);ye(this,"HASH_LENGTH",32);ye(this,"ITERATION_COUNT",1e4);this.axiosClient=t,this.baseURI=r}async signUrl(t,r){const n=new URL(t);n.searchParams.set("OC-Credential",r),n.searchParams.set("OC-Date",new Date().toISOString()),n.searchParams.set("OC-Expires",this.TTL.toString()),n.searchParams.set("OC-Verb","GET");const o=await this.createHashedKey(n.toString());return n.searchParams.set("OC-Algo",`PBKDF2/${this.ITERATION_COUNT}-SHA512`),n.searchParams.set("OC-Signature",o),n.toString()}async getSignKey(){if(this.signingKey)return this.signingKey;const t=await this.axiosClient.get(Se(this.baseURI,"ocs/v1.php/cloud/user/signing-key"),{headers:{"Content-Type":"application/x-www-form-urlencoded"}}),r=Cy.xml2js(t.data,{compact:!0});return this.signingKey=r.ocs.data["signing-key"]._text,this.signingKey}async createHashedKey(t){const r=await this.getSignKey();return tm(t,r,this.ITERATION_COUNT,this.HASH_LENGTH,this.ALGORITHM).toString("hex")}}const nm=(e,t)=>{const r=new URL(e);r.pathname=[...r.pathname.split("/"),"ocs","v1.php"].filter(Boolean).join("/");const n=r.href,o=M0(n,t),i=new rm({baseURI:e,axiosClient:t});return{getCapabilities:()=>o.getCapabilities(),signUrl:(a,u)=>i.signUrl(a,u)}},Dt=(e,{fileId:t,path:r,name:n})=>{if(r!==void 0)return Se(e.webDavPath,r);if(t!==void 0){if(Ri(e))throw new Error("public spaces need a path provided");return Se("spaces",t,n||"")}return e.webDavPath},im=(e,t)=>({copyFiles(r,{path:n,fileId:o},i,{path:a,parentFolderId:u,name:c},{overwrite:l,...s}={}){const f=Dt(r,{fileId:o,path:n}),h=Dt(i,{fileId:u,path:a,name:c});return e.copy(f,h,{overwrite:l||!1,...s})}}),om=(e,t,r)=>({async createFolder(n,{path:o,parentFolderId:i,folderName:a,fetchFolder:u=!0,...c}){const l=Dt(n,{fileId:i,path:o,name:a});if(await e.mkcol(l),u)return t.getFileInfo(n,{path:o},c)}}),sm=(e,{axiosClient:t})=>({async getFileContents(r,{fileId:n,path:o},{responseType:i="text",noCache:a=!0,headers:u,...c}={}){try{const l=Dt(r,{fileId:n,path:o}),s=await t.get(e.getFileUrl(l),{responseType:i,headers:{...a&&{"Cache-Control":"no-cache"},...u||{}},...c});return{response:s,body:s.data,headers:{ETag:s.headers.etag,"OC-ETag":s.headers["oc-etag"],"OC-FileId":s.headers["oc-fileid"]}}}catch(l){const{message:s,response:f}=l;throw new Xa(s,f,f.status)}}}),am=(e,t)=>({async getFileInfo(r,n,o){return(await e.listFiles(r,n,{depth:0,...o})).resource}}),um=(e,t,{axiosClient:r,baseUrl:n})=>({async getFileUrl(o,i,{disposition:a="attachment",isUrlSigningEnabled:u=!1,signUrlTimeout:c=86400,version:l=null,doHeadRequest:s=!1,username:f="",...h}){const b=a==="inline";let{downloadURL:m}=i,x=!0;if(!m&&!b&&(m=l?e.getFileUrl(Se("meta",i.fileId,"v",l)):e.getFileUrl(i.webDavPath),f&&s&&await r.head(m),u&&f?m=await nm(n,r).signUrl(m,f):x=!1),!x||b){const A=await t.getFileContents(o,i,{responseType:"blob",...h});m=URL.createObjectURL(A.body)}return m},revokeUrl:o=>{o&&o.startsWith("blob:")&&URL.revokeObjectURL(o)}}),lm=(e,t)=>({getPublicFileUrl(r,n){return e.getFileUrl(Se("public-files",n))}}),cm=(e,t,r)=>({async listFiles(n,{path:o,fileId:i}={},{depth:a=1,davProperties:u,isTrash:c=!1,...l}={}){let s;if(Ri(n)){s=await e.propfind(Se(n.webDavPath,o),{depth:a,properties:u||ir.PublicLink,...l}),s.forEach(m=>{m.filename=m.filename.split("/").slice(1).join("/")}),s.length===1&&(s[0].filename=Se(n.id,o,{leadingSlash:!0})),s.forEach(m=>{m.filename=m.filename.split("/").slice(2).join("/")});const h=n.driveAlias.startsWith("ocm/")?"ocm":"public-link";if((!o||o==="/")&&a>0&&h==="ocm"&&s[0].props[ae.PublicLinkItemType]==="file"&&(s=[{basename:n.fileId,type:"directory",filename:"",props:{}},...s]),!o){const[m,...x]=s;return{resource:j0({...m,id:n.id,driveAlias:n.driveAlias,webDavPath:n.webDavPath,publicLinkType:h}),children:x.map(A=>Er(A,e.extraProps))}}const b=s.map(m=>Er(m,e.extraProps));return{resource:b[0],children:b.slice(1)}}const f=async()=>{const h=await t.getPathForFileId(i);return this.listFiles(n,{path:h},{depth:a,davProperties:u})};try{let h="";if(c?h=Ii(n.id):h=Dt(n,{fileId:i,path:o}),s=await e.propfind(h,{depth:a,properties:u||ir.Default,...l}),c)return{resource:Er(s[0],e.extraProps),children:s.slice(1).map(L0)};const b=s.map(x=>Er(x,e.extraProps)),m=i===n.id;return i&&!m&&i!==b[0].fileId?f():{resource:b[0],children:b.slice(1)}}catch(h){if(h.statusCode===404&&i)return f();throw h}}}),fm=(e,t)=>({moveFiles(r,{path:n,fileId:o},i,{path:a,parentFolderId:u,name:c},{overwrite:l,...s}={}){const f=Dt(r,{fileId:o,path:n}),h=Dt(i,{fileId:u,path:a,name:c});return e.move(f,h,{overwrite:l||!1,...s})}}),hm=(e,t,r)=>({async putFileContents(n,{fileName:o,path:i,parentFolderId:a,content:u="",previousEntityTag:c="",overwrite:l,onUploadProgress:s=null,...f}){const h=Dt(n,{fileId:a,name:o,path:i}),{result:b}=await e.put(h,u,{previousEntityTag:c,overwrite:l,onUploadProgress:s,...f});return t.getFileInfo(n,{fileId:b.headers.get("Oc-Fileid"),path:i})}}),dm=(e,t)=>({deleteFile(r,{path:n,...o}){return e.delete(Se(r.webDavPath,n),o)}}),pm=(e,t)=>({restoreFile(r,{id:n},{path:o},{overwrite:i,...a}={}){if(Ri(r))return;const u=Se(r.webDavPath,o);return e.move(Se(r.webDavTrashPath,n),u,{overwrite:i,...a})}}),gm=(e,t)=>({restoreFileVersion(r,{parentFolderId:n,name:o,path:i},a,u={}){const c=Dt(r,{path:i,fileId:n,name:o}),l=Se("meta",n,"v",a,{leadingSlash:!0}),s=Se("files",c,{leadingSlash:!0});return e.copy(l,s,u)}}),ym=(e,t)=>({clearTrashBin(r,{id:n,...o}={}){let i=Ii(r.id);return n&&(i=Se(i,n)),e.delete(i,o)}}),mm=(e,t)=>({async search(r,{davProperties:n=ir.Default,searchLimit:o,...i}){const a="/spaces/",{range:u,results:c}=await e.report(a,{pattern:r,limit:o,properties:n,...i});return{resources:c.map(l=>({...Er(l,e.extraProps),highlights:l.props[ae.Highlights]||""})),totalResults:u?parseInt(u==null?void 0:u.split("/")[1]):null}}}),bm=(e,t)=>({async getPathForFileId(r,n={}){return(await e.propfind(Se("meta",r,{leadingSlash:!0}),{properties:[ae.MetaPathForUser],...n}))[0].props[ae.MetaPathForUser]}});/*! For license information please see index.js.LICENSE.txt */var wm={2:e=>{function t(o,i,a){o instanceof RegExp&&(o=r(o,a)),i instanceof RegExp&&(i=r(i,a));var u=n(o,i,a);return u&&{start:u[0],end:u[1],pre:a.slice(0,u[0]),body:a.slice(u[0]+o.length,u[1]),post:a.slice(u[1]+i.length)}}function r(o,i){var a=i.match(o);return a?a[0]:null}function n(o,i,a){var u,c,l,s,f,h=a.indexOf(o),b=a.indexOf(i,h+1),m=h;if(h>=0&&b>0){for(u=[],l=a.length;m>=0&&!f;)m==h?(u.push(m),h=a.indexOf(o,m+1)):u.length==1?f=[u.pop(),b]:((c=u.pop())<l&&(l=c,s=b),b=a.indexOf(i,m+1)),m=h<b&&h>=0?h:b;u.length&&(f=[l,s])}return f}e.exports=t,t.range=n},101:function(e,t,r){var n;e=r.nmd(e),function(o){var i=(e&&e.exports,typeof jt=="object"&&jt);i.global!==i&&i.window;var a=function(f){this.message=f};(a.prototype=new Error).name="InvalidCharacterError";var u=function(f){throw new a(f)},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=/[\t\n\f\r ]/g,s={encode:function(f){f=String(f),/[^\0-\xFF]/.test(f)&&u("The string to be encoded contains characters outside of the Latin1 range.");for(var h,b,m,x,A=f.length%3,g="",d=-1,p=f.length-A;++d<p;)h=f.charCodeAt(d)<<16,b=f.charCodeAt(++d)<<8,m=f.charCodeAt(++d),g+=c.charAt((x=h+b+m)>>18&63)+c.charAt(x>>12&63)+c.charAt(x>>6&63)+c.charAt(63&x);return A==2?(h=f.charCodeAt(d)<<8,b=f.charCodeAt(++d),g+=c.charAt((x=h+b)>>10)+c.charAt(x>>4&63)+c.charAt(x<<2&63)+"="):A==1&&(x=f.charCodeAt(d),g+=c.charAt(x>>2)+c.charAt(x<<4&63)+"=="),g},decode:function(f){var h=(f=String(f).replace(l,"")).length;h%4==0&&(h=(f=f.replace(/==?$/,"")).length),(h%4==1||/[^+a-zA-Z0-9/]/.test(f))&&u("Invalid character: the string to be decoded is not correctly encoded.");for(var b,m,x=0,A="",g=-1;++g<h;)m=c.indexOf(f.charAt(g)),b=x%4?64*b+m:m,x++%4&&(A+=String.fromCharCode(255&b>>(-2*x&6)));return A},version:"1.0.0"};(n=(function(){return s}).call(t,r,t,e))===void 0||(e.exports=n)}()},172:(e,t)=>{t.d=function(r){if(!r)return 0;for(var n=(r=r.toString()).length,o=r.length;o--;){var i=r.charCodeAt(o);56320<=i&&i<=57343&&o--,127<i&&i<=2047?n++:2047<i&&i<=65535&&(n+=2)}return n}},526:e=>{var t={utf8:{stringToBytes:function(r){return t.bin.stringToBytes(unescape(encodeURIComponent(r)))},bytesToString:function(r){return decodeURIComponent(escape(t.bin.bytesToString(r)))}},bin:{stringToBytes:function(r){for(var n=[],o=0;o<r.length;o++)n.push(255&r.charCodeAt(o));return n},bytesToString:function(r){for(var n=[],o=0;o<r.length;o++)n.push(String.fromCharCode(r[o]));return n.join("")}}};e.exports=t},298:e=>{var t,r;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(n,o){return n<<o|n>>>32-o},rotr:function(n,o){return n<<32-o|n>>>o},endian:function(n){if(n.constructor==Number)return 16711935&r.rotl(n,8)|4278255360&r.rotl(n,24);for(var o=0;o<n.length;o++)n[o]=r.endian(n[o]);return n},randomBytes:function(n){for(var o=[];n>0;n--)o.push(Math.floor(256*Math.random()));return o},bytesToWords:function(n){for(var o=[],i=0,a=0;i<n.length;i++,a+=8)o[a>>>5]|=n[i]<<24-a%32;return o},wordsToBytes:function(n){for(var o=[],i=0;i<32*n.length;i+=8)o.push(n[i>>>5]>>>24-i%32&255);return o},bytesToHex:function(n){for(var o=[],i=0;i<n.length;i++)o.push((n[i]>>>4).toString(16)),o.push((15&n[i]).toString(16));return o.join("")},hexToBytes:function(n){for(var o=[],i=0;i<n.length;i+=2)o.push(parseInt(n.substr(i,2),16));return o},bytesToBase64:function(n){for(var o=[],i=0;i<n.length;i+=3)for(var a=n[i]<<16|n[i+1]<<8|n[i+2],u=0;u<4;u++)8*i+6*u<=8*n.length?o.push(t.charAt(a>>>6*(3-u)&63)):o.push("=");return o.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/gi,"");for(var o=[],i=0,a=0;i<n.length;a=++i%4)a!=0&&o.push((t.indexOf(n.charAt(i-1))&Math.pow(2,-2*a+8)-1)<<2*a|t.indexOf(n.charAt(i))>>>6-2*a);return o}},e.exports=r},635:(e,t,r)=>{const n=r(31),o=r(338),i=r(221);e.exports={XMLParser:o,XMLValidator:n,XMLBuilder:i}},118:e=>{e.exports=function(t){return typeof t=="function"?t:Array.isArray(t)?r=>{for(const n of t)if(typeof n=="string"&&r===n||n instanceof RegExp&&n.test(r))return!0}:()=>!1}},705:(e,t)=>{const r=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",n="["+r+"]["+r+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",o=new RegExp("^"+n+"$");t.isExist=function(i){return i!==void 0},t.isEmptyObject=function(i){return Object.keys(i).length===0},t.merge=function(i,a,u){if(a){const c=Object.keys(a),l=c.length;for(let s=0;s<l;s++)i[c[s]]=u==="strict"?[a[c[s]]]:a[c[s]]}},t.getValue=function(i){return t.isExist(i)?i:""},t.isName=function(i){return o.exec(i)!=null},t.getAllMatches=function(i,a){const u=[];let c=a.exec(i);for(;c;){const l=[];l.startIndex=a.lastIndex-c[0].length;const s=c.length;for(let f=0;f<s;f++)l.push(c[f]);u.push(l),c=a.exec(i)}return u},t.nameRegexp=n},31:(e,t,r)=>{const n=r(705),o={allowBooleanAttributes:!1,unpairedTags:[]};function i(d){return d===" "||d===" "||d===`
36
- `||d==="\r"}function a(d,p){const y=p;for(;p<d.length;p++)if(!(d[p]!="?"&&d[p]!=" ")){const v=d.substr(y,p-y);if(p>5&&v==="xml")return m("InvalidXml","XML declaration allowed only at the start of the document.",A(d,p));if(d[p]=="?"&&d[p+1]==">"){p++;break}}return p}function u(d,p){if(d.length>p+5&&d[p+1]==="-"&&d[p+2]==="-"){for(p+=3;p<d.length;p++)if(d[p]==="-"&&d[p+1]==="-"&&d[p+2]===">"){p+=2;break}}else if(d.length>p+8&&d[p+1]==="D"&&d[p+2]==="O"&&d[p+3]==="C"&&d[p+4]==="T"&&d[p+5]==="Y"&&d[p+6]==="P"&&d[p+7]==="E"){let y=1;for(p+=8;p<d.length;p++)if(d[p]==="<")y++;else if(d[p]===">"&&(y--,y===0))break}else if(d.length>p+9&&d[p+1]==="["&&d[p+2]==="C"&&d[p+3]==="D"&&d[p+4]==="A"&&d[p+5]==="T"&&d[p+6]==="A"&&d[p+7]==="["){for(p+=8;p<d.length;p++)if(d[p]==="]"&&d[p+1]==="]"&&d[p+2]===">"){p+=2;break}}return p}t.validate=function(d,p){p=Object.assign({},o,p);const y=[];let v=!1,T=!1;d[0]==="\uFEFF"&&(d=d.substr(1));for(let I=0;I<d.length;I++)if(d[I]==="<"&&d[I+1]==="?"){if(I+=2,I=a(d,I),I.err)return I}else{if(d[I]!=="<"){if(i(d[I]))continue;return m("InvalidChar","char '"+d[I]+"' is not expected.",A(d,I))}{let N=I;if(I++,d[I]==="!"){I=u(d,I);continue}{let j=!1;d[I]==="/"&&(j=!0,I++);let G="";for(;I<d.length&&d[I]!==">"&&d[I]!==" "&&d[I]!==" "&&d[I]!==`
37
- `&&d[I]!=="\r";I++)G+=d[I];if(G=G.trim(),G[G.length-1]==="/"&&(G=G.substring(0,G.length-1),I--),P=G,!n.isName(P)){let oe;return oe=G.trim().length===0?"Invalid space after '<'.":"Tag '"+G+"' is an invalid name.",m("InvalidTag",oe,A(d,I))}const L=s(d,I);if(L===!1)return m("InvalidAttr","Attributes for '"+G+"' have open quote.",A(d,I));let D=L.value;if(I=L.index,D[D.length-1]==="/"){const oe=I-D.length;D=D.substring(0,D.length-1);const re=h(D,p);if(re!==!0)return m(re.err.code,re.err.msg,A(d,oe+re.err.line));v=!0}else if(j){if(!L.tagClosed)return m("InvalidTag","Closing tag '"+G+"' doesn't have proper closing.",A(d,I));if(D.trim().length>0)return m("InvalidTag","Closing tag '"+G+"' can't have attributes or invalid starting.",A(d,N));if(y.length===0)return m("InvalidTag","Closing tag '"+G+"' has not been opened.",A(d,N));{const oe=y.pop();if(G!==oe.tagName){let re=A(d,oe.tagStartPos);return m("InvalidTag","Expected closing tag '"+oe.tagName+"' (opened in line "+re.line+", col "+re.col+") instead of closing tag '"+G+"'.",A(d,N))}y.length==0&&(T=!0)}}else{const oe=h(D,p);if(oe!==!0)return m(oe.err.code,oe.err.msg,A(d,I-D.length+oe.err.line));if(T===!0)return m("InvalidXml","Multiple possible root nodes found.",A(d,I));p.unpairedTags.indexOf(G)!==-1||y.push({tagName:G,tagStartPos:N}),v=!0}for(I++;I<d.length;I++)if(d[I]==="<"){if(d[I+1]==="!"){I++,I=u(d,I);continue}if(d[I+1]!=="?")break;if(I=a(d,++I),I.err)return I}else if(d[I]==="&"){const oe=b(d,I);if(oe==-1)return m("InvalidChar","char '&' is not expected.",A(d,I));I=oe}else if(T===!0&&!i(d[I]))return m("InvalidXml","Extra text at the end",A(d,I));d[I]==="<"&&I--}}}var P;return v?y.length==1?m("InvalidTag","Unclosed tag '"+y[0].tagName+"'.",A(d,y[0].tagStartPos)):!(y.length>0)||m("InvalidXml","Invalid '"+JSON.stringify(y.map(I=>I.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):m("InvalidXml","Start tag expected.",1)};const c='"',l="'";function s(d,p){let y="",v="",T=!1;for(;p<d.length;p++){if(d[p]===c||d[p]===l)v===""?v=d[p]:v!==d[p]||(v="");else if(d[p]===">"&&v===""){T=!0;break}y+=d[p]}return v===""&&{value:y,index:p,tagClosed:T}}const f=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function h(d,p){const y=n.getAllMatches(d,f),v={};for(let T=0;T<y.length;T++){if(y[T][1].length===0)return m("InvalidAttr","Attribute '"+y[T][2]+"' has no space in starting.",g(y[T]));if(y[T][3]!==void 0&&y[T][4]===void 0)return m("InvalidAttr","Attribute '"+y[T][2]+"' is without value.",g(y[T]));if(y[T][3]===void 0&&!p.allowBooleanAttributes)return m("InvalidAttr","boolean attribute '"+y[T][2]+"' is not allowed.",g(y[T]));const P=y[T][2];if(!x(P))return m("InvalidAttr","Attribute '"+P+"' is an invalid name.",g(y[T]));if(v.hasOwnProperty(P))return m("InvalidAttr","Attribute '"+P+"' is repeated.",g(y[T]));v[P]=1}return!0}function b(d,p){if(d[++p]===";")return-1;if(d[p]==="#")return function(v,T){let P=/\d/;for(v[T]==="x"&&(T++,P=/[\da-fA-F]/);T<v.length;T++){if(v[T]===";")return T;if(!v[T].match(P))break}return-1}(d,++p);let y=0;for(;p<d.length;p++,y++)if(!(d[p].match(/\w/)&&y<20)){if(d[p]===";")break;return-1}return p}function m(d,p,y){return{err:{code:d,msg:p,line:y.line||y,col:y.col}}}function x(d){return n.isName(d)}function A(d,p){const y=d.substring(0,p).split(/\r?\n/);return{line:y.length,col:y[y.length-1].length+1}}function g(d){return d.startIndex+d[1].length}},221:(e,t,r)=>{const n=r(87),o=r(118),i={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(s,f){return f},attributeValueProcessor:function(s,f){return f},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function a(s){this.options=Object.assign({},i,s),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=o(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=l),this.processTextOrObjNode=u,this.options.format?(this.indentate=c,this.tagEndChar=`>
38
- `,this.newLine=`
39
- `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function u(s,f,h,b){const m=this.j2x(s,h+1,b.concat(f));return s[this.options.textNodeName]!==void 0&&Object.keys(s).length===1?this.buildTextValNode(s[this.options.textNodeName],f,m.attrStr,h):this.buildObjectNode(m.val,f,m.attrStr,h)}function c(s){return this.options.indentBy.repeat(s)}function l(s){return!(!s.startsWith(this.options.attributeNamePrefix)||s===this.options.textNodeName)&&s.substr(this.attrPrefixLen)}a.prototype.build=function(s){return this.options.preserveOrder?n(s,this.options):(Array.isArray(s)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(s={[this.options.arrayNodeName]:s}),this.j2x(s,0,[]).val)},a.prototype.j2x=function(s,f,h){let b="",m="";const x=h.join(".");for(let A in s)if(Object.prototype.hasOwnProperty.call(s,A))if(s[A]===void 0)this.isAttribute(A)&&(m+="");else if(s[A]===null)this.isAttribute(A)?m+="":A[0]==="?"?m+=this.indentate(f)+"<"+A+"?"+this.tagEndChar:m+=this.indentate(f)+"<"+A+"/"+this.tagEndChar;else if(s[A]instanceof Date)m+=this.buildTextValNode(s[A],A,"",f);else if(typeof s[A]!="object"){const g=this.isAttribute(A);if(g&&!this.ignoreAttributesFn(g,x))b+=this.buildAttrPairStr(g,""+s[A]);else if(!g)if(A===this.options.textNodeName){let d=this.options.tagValueProcessor(A,""+s[A]);m+=this.replaceEntitiesValue(d)}else m+=this.buildTextValNode(s[A],A,"",f)}else if(Array.isArray(s[A])){const g=s[A].length;let d="",p="";for(let y=0;y<g;y++){const v=s[A][y];if(v!==void 0)if(v===null)A[0]==="?"?m+=this.indentate(f)+"<"+A+"?"+this.tagEndChar:m+=this.indentate(f)+"<"+A+"/"+this.tagEndChar;else if(typeof v=="object")if(this.options.oneListGroup){const T=this.j2x(v,f+1,h.concat(A));d+=T.val,this.options.attributesGroupName&&v.hasOwnProperty(this.options.attributesGroupName)&&(p+=T.attrStr)}else d+=this.processTextOrObjNode(v,A,f,h);else if(this.options.oneListGroup){let T=this.options.tagValueProcessor(A,v);T=this.replaceEntitiesValue(T),d+=T}else d+=this.buildTextValNode(v,A,"",f)}this.options.oneListGroup&&(d=this.buildObjectNode(d,A,p,f)),m+=d}else if(this.options.attributesGroupName&&A===this.options.attributesGroupName){const g=Object.keys(s[A]),d=g.length;for(let p=0;p<d;p++)b+=this.buildAttrPairStr(g[p],""+s[A][g[p]])}else m+=this.processTextOrObjNode(s[A],A,f,h);return{attrStr:b,val:m}},a.prototype.buildAttrPairStr=function(s,f){return f=this.options.attributeValueProcessor(s,""+f),f=this.replaceEntitiesValue(f),this.options.suppressBooleanAttributes&&f==="true"?" "+s:" "+s+'="'+f+'"'},a.prototype.buildObjectNode=function(s,f,h,b){if(s==="")return f[0]==="?"?this.indentate(b)+"<"+f+h+"?"+this.tagEndChar:this.indentate(b)+"<"+f+h+this.closeTag(f)+this.tagEndChar;{let m="</"+f+this.tagEndChar,x="";return f[0]==="?"&&(x="?",m=""),!h&&h!==""||s.indexOf("<")!==-1?this.options.commentPropName!==!1&&f===this.options.commentPropName&&x.length===0?this.indentate(b)+`<!--${s}-->`+this.newLine:this.indentate(b)+"<"+f+h+x+this.tagEndChar+s+this.indentate(b)+m:this.indentate(b)+"<"+f+h+x+">"+s+m}},a.prototype.closeTag=function(s){let f="";return this.options.unpairedTags.indexOf(s)!==-1?this.options.suppressUnpairedNode||(f="/"):f=this.options.suppressEmptyNode?"/":`></${s}`,f},a.prototype.buildTextValNode=function(s,f,h,b){if(this.options.cdataPropName!==!1&&f===this.options.cdataPropName)return this.indentate(b)+`<![CDATA[${s}]]>`+this.newLine;if(this.options.commentPropName!==!1&&f===this.options.commentPropName)return this.indentate(b)+`<!--${s}-->`+this.newLine;if(f[0]==="?")return this.indentate(b)+"<"+f+h+"?"+this.tagEndChar;{let m=this.options.tagValueProcessor(f,s);return m=this.replaceEntitiesValue(m),m===""?this.indentate(b)+"<"+f+h+this.closeTag(f)+this.tagEndChar:this.indentate(b)+"<"+f+h+">"+m+"</"+f+this.tagEndChar}},a.prototype.replaceEntitiesValue=function(s){if(s&&s.length>0&&this.options.processEntities)for(let f=0;f<this.options.entities.length;f++){const h=this.options.entities[f];s=s.replace(h.regex,h.val)}return s},e.exports=a},87:e=>{function t(a,u,c,l){let s="",f=!1;for(let h=0;h<a.length;h++){const b=a[h],m=r(b);if(m===void 0)continue;let x="";if(x=c.length===0?m:`${c}.${m}`,m===u.textNodeName){let p=b[m];o(x,u)||(p=u.tagValueProcessor(m,p),p=i(p,u)),f&&(s+=l),s+=p,f=!1;continue}if(m===u.cdataPropName){f&&(s+=l),s+=`<![CDATA[${b[m][0][u.textNodeName]}]]>`,f=!1;continue}if(m===u.commentPropName){s+=l+`<!--${b[m][0][u.textNodeName]}-->`,f=!0;continue}if(m[0]==="?"){const p=n(b[":@"],u),y=m==="?xml"?"":l;let v=b[m][0][u.textNodeName];v=v.length!==0?" "+v:"",s+=y+`<${m}${v}${p}?>`,f=!0;continue}let A=l;A!==""&&(A+=u.indentBy);const g=l+`<${m}${n(b[":@"],u)}`,d=t(b[m],u,x,A);u.unpairedTags.indexOf(m)!==-1?u.suppressUnpairedNode?s+=g+">":s+=g+"/>":d&&d.length!==0||!u.suppressEmptyNode?d&&d.endsWith(">")?s+=g+`>${d}${l}</${m}>`:(s+=g+">",d&&l!==""&&(d.includes("/>")||d.includes("</"))?s+=l+u.indentBy+d+l:s+=d,s+=`</${m}>`):s+=g+"/>",f=!0}return s}function r(a){const u=Object.keys(a);for(let c=0;c<u.length;c++){const l=u[c];if(a.hasOwnProperty(l)&&l!==":@")return l}}function n(a,u){let c="";if(a&&!u.ignoreAttributes)for(let l in a){if(!a.hasOwnProperty(l))continue;let s=u.attributeValueProcessor(l,a[l]);s=i(s,u),s===!0&&u.suppressBooleanAttributes?c+=` ${l.substr(u.attributeNamePrefix.length)}`:c+=` ${l.substr(u.attributeNamePrefix.length)}="${s}"`}return c}function o(a,u){let c=(a=a.substr(0,a.length-u.textNodeName.length-1)).substr(a.lastIndexOf(".")+1);for(let l in u.stopNodes)if(u.stopNodes[l]===a||u.stopNodes[l]==="*."+c)return!0;return!1}function i(a,u){if(a&&a.length>0&&u.processEntities)for(let c=0;c<u.entities.length;c++){const l=u.entities[c];a=a.replace(l.regex,l.val)}return a}e.exports=function(a,u){let c="";return u.format&&u.indentBy.length>0&&(c=`
40
- `),t(a,u,"",c)}},193:(e,t,r)=>{const n=r(705);function o(f,h){let b="";for(;h<f.length&&f[h]!=="'"&&f[h]!=='"';h++)b+=f[h];if(b=b.trim(),b.indexOf(" ")!==-1)throw new Error("External entites are not supported");const m=f[h++];let x="";for(;h<f.length&&f[h]!==m;h++)x+=f[h];return[b,x,h]}function i(f,h){return f[h+1]==="!"&&f[h+2]==="-"&&f[h+3]==="-"}function a(f,h){return f[h+1]==="!"&&f[h+2]==="E"&&f[h+3]==="N"&&f[h+4]==="T"&&f[h+5]==="I"&&f[h+6]==="T"&&f[h+7]==="Y"}function u(f,h){return f[h+1]==="!"&&f[h+2]==="E"&&f[h+3]==="L"&&f[h+4]==="E"&&f[h+5]==="M"&&f[h+6]==="E"&&f[h+7]==="N"&&f[h+8]==="T"}function c(f,h){return f[h+1]==="!"&&f[h+2]==="A"&&f[h+3]==="T"&&f[h+4]==="T"&&f[h+5]==="L"&&f[h+6]==="I"&&f[h+7]==="S"&&f[h+8]==="T"}function l(f,h){return f[h+1]==="!"&&f[h+2]==="N"&&f[h+3]==="O"&&f[h+4]==="T"&&f[h+5]==="A"&&f[h+6]==="T"&&f[h+7]==="I"&&f[h+8]==="O"&&f[h+9]==="N"}function s(f){if(n.isName(f))return f;throw new Error(`Invalid entity name ${f}`)}e.exports=function(f,h){const b={};if(f[h+3]!=="O"||f[h+4]!=="C"||f[h+5]!=="T"||f[h+6]!=="Y"||f[h+7]!=="P"||f[h+8]!=="E")throw new Error("Invalid Tag instead of DOCTYPE");{h+=9;let m=1,x=!1,A=!1,g="";for(;h<f.length;h++)if(f[h]!=="<"||A)if(f[h]===">"){if(A?f[h-1]==="-"&&f[h-2]==="-"&&(A=!1,m--):m--,m===0)break}else f[h]==="["?x=!0:g+=f[h];else{if(x&&a(f,h)){let d,p;h+=7,[d,p,h]=o(f,h+1),p.indexOf("&")===-1&&(b[s(d)]={regx:RegExp(`&${d};`,"g"),val:p})}else if(x&&u(f,h))h+=8;else if(x&&c(f,h))h+=8;else if(x&&l(f,h))h+=9;else{if(!i)throw new Error("Invalid DOCTYPE");A=!0}m++,g=""}if(m!==0)throw new Error("Unclosed DOCTYPE")}return{entities:b,i:h}}},63:(e,t)=>{const r={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(n,o){return o},attributeValueProcessor:function(n,o){return o},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(n,o,i){return n}};t.buildOptions=function(n){return Object.assign({},r,n)},t.defaultOptions=r},299:(e,t,r)=>{const n=r(705),o=r(365),i=r(193),a=r(494),u=r(118);function c(T){const P=Object.keys(T);for(let I=0;I<P.length;I++){const N=P[I];this.lastEntities[N]={regex:new RegExp("&"+N+";","g"),val:T[N]}}}function l(T,P,I,N,j,G,L){if(T!==void 0&&(this.options.trimValues&&!N&&(T=T.trim()),T.length>0)){L||(T=this.replaceEntitiesValue(T));const D=this.options.tagValueProcessor(P,T,I,j,G);return D==null?T:typeof D!=typeof T||D!==T?D:this.options.trimValues||T.trim()===T?v(T,this.options.parseTagValue,this.options.numberParseOptions):T}}function s(T){if(this.options.removeNSPrefix){const P=T.split(":"),I=T.charAt(0)==="/"?"/":"";if(P[0]==="xmlns")return"";P.length===2&&(T=I+P[1])}return T}const f=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function h(T,P,I){if(this.options.ignoreAttributes!==!0&&typeof T=="string"){const N=n.getAllMatches(T,f),j=N.length,G={};for(let L=0;L<j;L++){const D=this.resolveNameSpace(N[L][1]);if(this.ignoreAttributesFn(D,P))continue;let oe=N[L][4],re=this.options.attributeNamePrefix+D;if(D.length)if(this.options.transformAttributeName&&(re=this.options.transformAttributeName(re)),re==="__proto__"&&(re="#__proto__"),oe!==void 0){this.options.trimValues&&(oe=oe.trim()),oe=this.replaceEntitiesValue(oe);const he=this.options.attributeValueProcessor(D,oe,P);G[re]=he==null?oe:typeof he!=typeof oe||he!==oe?he:v(oe,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(G[re]=!0)}if(!Object.keys(G).length)return;if(this.options.attributesGroupName){const L={};return L[this.options.attributesGroupName]=G,L}return G}}const b=function(T){T=T.replace(/\r\n?/g,`
41
- `);const P=new o("!xml");let I=P,N="",j="";for(let G=0;G<T.length;G++)if(T[G]==="<")if(T[G+1]==="/"){const L=d(T,">",G,"Closing Tag is not closed.");let D=T.substring(G+2,L).trim();if(this.options.removeNSPrefix){const he=D.indexOf(":");he!==-1&&(D=D.substr(he+1))}this.options.transformTagName&&(D=this.options.transformTagName(D)),I&&(N=this.saveTextToParentTag(N,I,j));const oe=j.substring(j.lastIndexOf(".")+1);if(D&&this.options.unpairedTags.indexOf(D)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${D}>`);let re=0;oe&&this.options.unpairedTags.indexOf(oe)!==-1?(re=j.lastIndexOf(".",j.lastIndexOf(".")-1),this.tagsNodeStack.pop()):re=j.lastIndexOf("."),j=j.substring(0,re),I=this.tagsNodeStack.pop(),N="",G=L}else if(T[G+1]==="?"){let L=p(T,G,!1,"?>");if(!L)throw new Error("Pi Tag is not closed.");if(N=this.saveTextToParentTag(N,I,j),!(this.options.ignoreDeclaration&&L.tagName==="?xml"||this.options.ignorePiTags)){const D=new o(L.tagName);D.add(this.options.textNodeName,""),L.tagName!==L.tagExp&&L.attrExpPresent&&(D[":@"]=this.buildAttributesMap(L.tagExp,j,L.tagName)),this.addChild(I,D,j)}G=L.closeIndex+1}else if(T.substr(G+1,3)==="!--"){const L=d(T,"-->",G+4,"Comment is not closed.");if(this.options.commentPropName){const D=T.substring(G+4,L-2);N=this.saveTextToParentTag(N,I,j),I.add(this.options.commentPropName,[{[this.options.textNodeName]:D}])}G=L}else if(T.substr(G+1,2)==="!D"){const L=i(T,G);this.docTypeEntities=L.entities,G=L.i}else if(T.substr(G+1,2)==="!["){const L=d(T,"]]>",G,"CDATA is not closed.")-2,D=T.substring(G+9,L);N=this.saveTextToParentTag(N,I,j);let oe=this.parseTextData(D,I.tagname,j,!0,!1,!0,!0);oe==null&&(oe=""),this.options.cdataPropName?I.add(this.options.cdataPropName,[{[this.options.textNodeName]:D}]):I.add(this.options.textNodeName,oe),G=L+2}else{let L=p(T,G,this.options.removeNSPrefix),D=L.tagName;const oe=L.rawTagName;let re=L.tagExp,he=L.attrExpPresent,ce=L.closeIndex;this.options.transformTagName&&(D=this.options.transformTagName(D)),I&&N&&I.tagname!=="!xml"&&(N=this.saveTextToParentTag(N,I,j,!1));const ge=I;if(ge&&this.options.unpairedTags.indexOf(ge.tagname)!==-1&&(I=this.tagsNodeStack.pop(),j=j.substring(0,j.lastIndexOf("."))),D!==P.tagname&&(j+=j?"."+D:D),this.isItStopNode(this.options.stopNodes,j,D)){let fe="";if(re.length>0&&re.lastIndexOf("/")===re.length-1)D[D.length-1]==="/"?(D=D.substr(0,D.length-1),j=j.substr(0,j.length-1),re=D):re=re.substr(0,re.length-1),G=L.closeIndex;else if(this.options.unpairedTags.indexOf(D)!==-1)G=L.closeIndex;else{const be=this.readStopNodeData(T,oe,ce+1);if(!be)throw new Error(`Unexpected end of ${oe}`);G=be.i,fe=be.tagContent}const Ee=new o(D);D!==re&&he&&(Ee[":@"]=this.buildAttributesMap(re,j,D)),fe&&(fe=this.parseTextData(fe,D,j,!0,he,!0,!0)),j=j.substr(0,j.lastIndexOf(".")),Ee.add(this.options.textNodeName,fe),this.addChild(I,Ee,j)}else{if(re.length>0&&re.lastIndexOf("/")===re.length-1){D[D.length-1]==="/"?(D=D.substr(0,D.length-1),j=j.substr(0,j.length-1),re=D):re=re.substr(0,re.length-1),this.options.transformTagName&&(D=this.options.transformTagName(D));const fe=new o(D);D!==re&&he&&(fe[":@"]=this.buildAttributesMap(re,j,D)),this.addChild(I,fe,j),j=j.substr(0,j.lastIndexOf("."))}else{const fe=new o(D);this.tagsNodeStack.push(I),D!==re&&he&&(fe[":@"]=this.buildAttributesMap(re,j,D)),this.addChild(I,fe,j),I=fe}N="",G=ce}}else N+=T[G];return P.child};function m(T,P,I){const N=this.options.updateTag(P.tagname,I,P[":@"]);N===!1||(typeof N=="string"&&(P.tagname=N),T.addChild(P))}const x=function(T){if(this.options.processEntities){for(let P in this.docTypeEntities){const I=this.docTypeEntities[P];T=T.replace(I.regx,I.val)}for(let P in this.lastEntities){const I=this.lastEntities[P];T=T.replace(I.regex,I.val)}if(this.options.htmlEntities)for(let P in this.htmlEntities){const I=this.htmlEntities[P];T=T.replace(I.regex,I.val)}T=T.replace(this.ampEntity.regex,this.ampEntity.val)}return T};function A(T,P,I,N){return T&&(N===void 0&&(N=Object.keys(P.child).length===0),(T=this.parseTextData(T,P.tagname,I,!1,!!P[":@"]&&Object.keys(P[":@"]).length!==0,N))!==void 0&&T!==""&&P.add(this.options.textNodeName,T),T=""),T}function g(T,P,I){const N="*."+I;for(const j in T){const G=T[j];if(N===G||P===G)return!0}return!1}function d(T,P,I,N){const j=T.indexOf(P,I);if(j===-1)throw new Error(N);return j+P.length-1}function p(T,P,I){const N=function(he,ce){let ge,fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:">",Ee="";for(let be=ce;be<he.length;be++){let K=he[be];if(ge)K===ge&&(ge="");else if(K==='"'||K==="'")ge=K;else if(K===fe[0]){if(!fe[1])return{data:Ee,index:be};if(he[be+1]===fe[1])return{data:Ee,index:be}}else K===" "&&(K=" ");Ee+=K}}(T,P+1,arguments.length>3&&arguments[3]!==void 0?arguments[3]:">");if(!N)return;let j=N.data;const G=N.index,L=j.search(/\s/);let D=j,oe=!0;L!==-1&&(D=j.substring(0,L),j=j.substring(L+1).trimStart());const re=D;if(I){const he=D.indexOf(":");he!==-1&&(D=D.substr(he+1),oe=D!==N.data.substr(he+1))}return{tagName:D,tagExp:j,closeIndex:G,attrExpPresent:oe,rawTagName:re}}function y(T,P,I){const N=I;let j=1;for(;I<T.length;I++)if(T[I]==="<")if(T[I+1]==="/"){const G=d(T,">",I,`${P} is not closed`);if(T.substring(I+2,G).trim()===P&&(j--,j===0))return{tagContent:T.substring(N,I),i:G};I=G}else if(T[I+1]==="?")I=d(T,"?>",I+1,"StopNode is not closed.");else if(T.substr(I+1,3)==="!--")I=d(T,"-->",I+3,"StopNode is not closed.");else if(T.substr(I+1,2)==="![")I=d(T,"]]>",I,"StopNode is not closed.")-2;else{const G=p(T,I,">");G&&((G&&G.tagName)===P&&G.tagExp[G.tagExp.length-1]!=="/"&&j++,I=G.closeIndex)}}function v(T,P,I){if(P&&typeof T=="string"){const N=T.trim();return N==="true"||N!=="false"&&a(T,I)}return n.isExist(T)?T:""}e.exports=class{constructor(T){this.options=T,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(P,I)=>String.fromCharCode(Number.parseInt(I,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(P,I)=>String.fromCharCode(Number.parseInt(I,16))}},this.addExternalEntities=c,this.parseXml=b,this.parseTextData=l,this.resolveNameSpace=s,this.buildAttributesMap=h,this.isItStopNode=g,this.replaceEntitiesValue=x,this.readStopNodeData=y,this.saveTextToParentTag=A,this.addChild=m,this.ignoreAttributesFn=u(this.options.ignoreAttributes)}}},338:(e,t,r)=>{const{buildOptions:n}=r(63),o=r(299),{prettify:i}=r(728),a=r(31);e.exports=class{constructor(u){this.externalEntities={},this.options=n(u)}parse(u,c){if(typeof u!="string"){if(!u.toString)throw new Error("XML data is accepted in String or Bytes[] form.");u=u.toString()}if(c){c===!0&&(c={});const f=a.validate(u,c);if(f!==!0)throw Error(`${f.err.msg}:${f.err.line}:${f.err.col}`)}const l=new o(this.options);l.addExternalEntities(this.externalEntities);const s=l.parseXml(u);return this.options.preserveOrder||s===void 0?s:i(s,this.options)}addEntity(u,c){if(c.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(u.indexOf("&")!==-1||u.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(c==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[u]=c}}},728:(e,t)=>{function r(a,u,c){let l;const s={};for(let f=0;f<a.length;f++){const h=a[f],b=n(h);let m="";if(m=c===void 0?b:c+"."+b,b===u.textNodeName)l===void 0?l=h[b]:l+=""+h[b];else{if(b===void 0)continue;if(h[b]){let x=r(h[b],u,m);const A=i(x,u);h[":@"]?o(x,h[":@"],m,u):Object.keys(x).length!==1||x[u.textNodeName]===void 0||u.alwaysCreateTextNode?Object.keys(x).length===0&&(u.alwaysCreateTextNode?x[u.textNodeName]="":x=""):x=x[u.textNodeName],s[b]!==void 0&&s.hasOwnProperty(b)?(Array.isArray(s[b])||(s[b]=[s[b]]),s[b].push(x)):u.isArray(b,m,A)?s[b]=[x]:s[b]=x}}}return typeof l=="string"?l.length>0&&(s[u.textNodeName]=l):l!==void 0&&(s[u.textNodeName]=l),s}function n(a){const u=Object.keys(a);for(let c=0;c<u.length;c++){const l=u[c];if(l!==":@")return l}}function o(a,u,c,l){if(u){const s=Object.keys(u),f=s.length;for(let h=0;h<f;h++){const b=s[h];l.isArray(b,c+"."+b,!0,!0)?a[b]=[u[b]]:a[b]=u[b]}}}function i(a,u){const{textNodeName:c}=u,l=Object.keys(a).length;return l===0||!(l!==1||!a[c]&&typeof a[c]!="boolean"&&a[c]!==0)}t.prettify=function(a,u){return r(a,u)}},365:e=>{e.exports=class{constructor(t){this.tagname=t,this.child=[],this[":@"]={}}add(t,r){t==="__proto__"&&(t="#__proto__"),this.child.push({[t]:r})}addChild(t){t.tagname==="__proto__"&&(t.tagname="#__proto__"),t[":@"]&&Object.keys(t[":@"]).length>0?this.child.push({[t.tagname]:t.child,":@":t[":@"]}):this.child.push({[t.tagname]:t.child})}}},135:e=>{function t(r){return!!r.constructor&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}e.exports=function(r){return r!=null&&(t(r)||function(n){return typeof n.readFloatLE=="function"&&typeof n.slice=="function"&&t(n.slice(0,0))}(r)||!!r._isBuffer)}},542:(e,t,r)=>{(function(){var n=r(298),o=r(526).utf8,i=r(135),a=r(526).bin,u=function(c,l){c.constructor==String?c=l&&l.encoding==="binary"?a.stringToBytes(c):o.stringToBytes(c):i(c)?c=Array.prototype.slice.call(c,0):Array.isArray(c)||c.constructor===Uint8Array||(c=c.toString());for(var s=n.bytesToWords(c),f=8*c.length,h=1732584193,b=-271733879,m=-1732584194,x=271733878,A=0;A<s.length;A++)s[A]=16711935&(s[A]<<8|s[A]>>>24)|4278255360&(s[A]<<24|s[A]>>>8);s[f>>>5]|=128<<f%32,s[14+(f+64>>>9<<4)]=f;var g=u._ff,d=u._gg,p=u._hh,y=u._ii;for(A=0;A<s.length;A+=16){var v=h,T=b,P=m,I=x;h=g(h,b,m,x,s[A+0],7,-680876936),x=g(x,h,b,m,s[A+1],12,-389564586),m=g(m,x,h,b,s[A+2],17,606105819),b=g(b,m,x,h,s[A+3],22,-1044525330),h=g(h,b,m,x,s[A+4],7,-176418897),x=g(x,h,b,m,s[A+5],12,1200080426),m=g(m,x,h,b,s[A+6],17,-1473231341),b=g(b,m,x,h,s[A+7],22,-45705983),h=g(h,b,m,x,s[A+8],7,1770035416),x=g(x,h,b,m,s[A+9],12,-1958414417),m=g(m,x,h,b,s[A+10],17,-42063),b=g(b,m,x,h,s[A+11],22,-1990404162),h=g(h,b,m,x,s[A+12],7,1804603682),x=g(x,h,b,m,s[A+13],12,-40341101),m=g(m,x,h,b,s[A+14],17,-1502002290),h=d(h,b=g(b,m,x,h,s[A+15],22,1236535329),m,x,s[A+1],5,-165796510),x=d(x,h,b,m,s[A+6],9,-1069501632),m=d(m,x,h,b,s[A+11],14,643717713),b=d(b,m,x,h,s[A+0],20,-373897302),h=d(h,b,m,x,s[A+5],5,-701558691),x=d(x,h,b,m,s[A+10],9,38016083),m=d(m,x,h,b,s[A+15],14,-660478335),b=d(b,m,x,h,s[A+4],20,-405537848),h=d(h,b,m,x,s[A+9],5,568446438),x=d(x,h,b,m,s[A+14],9,-1019803690),m=d(m,x,h,b,s[A+3],14,-187363961),b=d(b,m,x,h,s[A+8],20,1163531501),h=d(h,b,m,x,s[A+13],5,-1444681467),x=d(x,h,b,m,s[A+2],9,-51403784),m=d(m,x,h,b,s[A+7],14,1735328473),h=p(h,b=d(b,m,x,h,s[A+12],20,-1926607734),m,x,s[A+5],4,-378558),x=p(x,h,b,m,s[A+8],11,-2022574463),m=p(m,x,h,b,s[A+11],16,1839030562),b=p(b,m,x,h,s[A+14],23,-35309556),h=p(h,b,m,x,s[A+1],4,-1530992060),x=p(x,h,b,m,s[A+4],11,1272893353),m=p(m,x,h,b,s[A+7],16,-155497632),b=p(b,m,x,h,s[A+10],23,-1094730640),h=p(h,b,m,x,s[A+13],4,681279174),x=p(x,h,b,m,s[A+0],11,-358537222),m=p(m,x,h,b,s[A+3],16,-722521979),b=p(b,m,x,h,s[A+6],23,76029189),h=p(h,b,m,x,s[A+9],4,-640364487),x=p(x,h,b,m,s[A+12],11,-421815835),m=p(m,x,h,b,s[A+15],16,530742520),h=y(h,b=p(b,m,x,h,s[A+2],23,-995338651),m,x,s[A+0],6,-198630844),x=y(x,h,b,m,s[A+7],10,1126891415),m=y(m,x,h,b,s[A+14],15,-1416354905),b=y(b,m,x,h,s[A+5],21,-57434055),h=y(h,b,m,x,s[A+12],6,1700485571),x=y(x,h,b,m,s[A+3],10,-1894986606),m=y(m,x,h,b,s[A+10],15,-1051523),b=y(b,m,x,h,s[A+1],21,-2054922799),h=y(h,b,m,x,s[A+8],6,1873313359),x=y(x,h,b,m,s[A+15],10,-30611744),m=y(m,x,h,b,s[A+6],15,-1560198380),b=y(b,m,x,h,s[A+13],21,1309151649),h=y(h,b,m,x,s[A+4],6,-145523070),x=y(x,h,b,m,s[A+11],10,-1120210379),m=y(m,x,h,b,s[A+2],15,718787259),b=y(b,m,x,h,s[A+9],21,-343485551),h=h+v>>>0,b=b+T>>>0,m=m+P>>>0,x=x+I>>>0}return n.endian([h,b,m,x])};u._ff=function(c,l,s,f,h,b,m){var x=c+(l&s|~l&f)+(h>>>0)+m;return(x<<b|x>>>32-b)+l},u._gg=function(c,l,s,f,h,b,m){var x=c+(l&f|s&~f)+(h>>>0)+m;return(x<<b|x>>>32-b)+l},u._hh=function(c,l,s,f,h,b,m){var x=c+(l^s^f)+(h>>>0)+m;return(x<<b|x>>>32-b)+l},u._ii=function(c,l,s,f,h,b,m){var x=c+(s^(l|~f))+(h>>>0)+m;return(x<<b|x>>>32-b)+l},u._blocksize=16,u._digestsize=16,e.exports=function(c,l){if(c==null)throw new Error("Illegal argument "+c);var s=n.wordsToBytes(u(c,l));return l&&l.asBytes?s:l&&l.asString?a.bytesToString(s):n.bytesToHex(s)}})()},285:(e,t,r)=>{var n=r(2);e.exports=function(g){return g?(g.substr(0,2)==="{}"&&(g="\\{\\}"+g.substr(2)),A(function(d){return d.split("\\\\").join(o).split("\\{").join(i).split("\\}").join(a).split("\\,").join(u).split("\\.").join(c)}(g),!0).map(s)):[]};var o="\0SLASH"+Math.random()+"\0",i="\0OPEN"+Math.random()+"\0",a="\0CLOSE"+Math.random()+"\0",u="\0COMMA"+Math.random()+"\0",c="\0PERIOD"+Math.random()+"\0";function l(g){return parseInt(g,10)==g?parseInt(g,10):g.charCodeAt(0)}function s(g){return g.split(o).join("\\").split(i).join("{").split(a).join("}").split(u).join(",").split(c).join(".")}function f(g){if(!g)return[""];var d=[],p=n("{","}",g);if(!p)return g.split(",");var y=p.pre,v=p.body,T=p.post,P=y.split(",");P[P.length-1]+="{"+v+"}";var I=f(T);return T.length&&(P[P.length-1]+=I.shift(),P.push.apply(P,I)),d.push.apply(d,P),d}function h(g){return"{"+g+"}"}function b(g){return/^-?0\d/.test(g)}function m(g,d){return g<=d}function x(g,d){return g>=d}function A(g,d){var p=[],y=n("{","}",g);if(!y)return[g];var v=y.pre,T=y.post.length?A(y.post,!1):[""];if(/\$$/.test(y.pre))for(var P=0;P<T.length;P++){var I=v+"{"+y.body+"}"+T[P];p.push(I)}else{var N,j,G=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(y.body),L=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(y.body),D=G||L,oe=y.body.indexOf(",")>=0;if(!D&&!oe)return y.post.match(/,.*\}/)?A(g=y.pre+"{"+y.body+a+y.post):[g];if(D)N=y.body.split(/\.\./);else if((N=f(y.body)).length===1&&(N=A(N[0],!1).map(h)).length===1)return T.map(function(V){return y.pre+N[0]+V});if(D){var re=l(N[0]),he=l(N[1]),ce=Math.max(N[0].length,N[1].length),ge=N.length==3?Math.abs(l(N[2])):1,fe=m;he<re&&(ge*=-1,fe=x);var Ee=N.some(b);j=[];for(var be=re;fe(be,he);be+=ge){var K;if(L)(K=String.fromCharCode(be))==="\\"&&(K="");else if(K=String(be),Ee){var Q=ce-K.length;if(Q>0){var ee=new Array(Q+1).join("0");K=be<0?"-"+ee+K.slice(1):ee+K}}j.push(K)}}else{j=[];for(var ue=0;ue<N.length;ue++)j.push.apply(j,A(N[ue],!1))}for(ue=0;ue<j.length;ue++)for(P=0;P<T.length;P++)I=v+j[ue]+T[P],(!d||D||I)&&p.push(I)}return p}},829:e=>{function t(l){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},t(l)}function r(l){var s=typeof Map=="function"?new Map:void 0;return r=function(f){if(f===null||(h=f,Function.toString.call(h).indexOf("[native code]")===-1))return f;var h;if(typeof f!="function")throw new TypeError("Super expression must either be null or a function");if(s!==void 0){if(s.has(f))return s.get(f);s.set(f,b)}function b(){return n(f,arguments,i(this).constructor)}return b.prototype=Object.create(f.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),o(b,f)},r(l)}function n(l,s,f){return n=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}()?Reflect.construct:function(h,b,m){var x=[null];x.push.apply(x,b);var A=new(Function.bind.apply(h,x));return m&&o(A,m.prototype),A},n.apply(null,arguments)}function o(l,s){return o=Object.setPrototypeOf||function(f,h){return f.__proto__=h,f},o(l,s)}function i(l){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},i(l)}var a=function(l){function s(f){var h;return function(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}(this,s),(h=function(b,m){return!m||t(m)!=="object"&&typeof m!="function"?function(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}(b):m}(this,i(s).call(this,f))).name="ObjectPrototypeMutationError",h}return function(f,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(h&&h.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),h&&o(f,h)}(s,l),s}(r(Error));function u(l,s){for(var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},h=s.split("."),b=h.length,m=function(g){var d=h[g];if(!l)return{v:void 0};if(d==="+"){if(Array.isArray(l))return{v:l.map(function(y,v){var T=h.slice(g+1);return T.length>0?u(y,T.join("."),f):f(l,v,h,g)})};var p=h.slice(0,g).join(".");throw new Error("Object at wildcard (".concat(p,") is not an array"))}l=f(l,d,h,g)},x=0;x<b;x++){var A=m(x);if(t(A)==="object")return A.v}return l}function c(l,s){return l.length===s+1}e.exports={set:function(l,s,f){if(t(l)!="object"||l===null||s===void 0)return l;if(typeof s=="number")return l[s]=f,l[s];try{return u(l,s,function(h,b,m,x){if(h===Reflect.getPrototypeOf({}))throw new a("Attempting to mutate Object.prototype");if(!h[b]){var A=Number.isInteger(Number(m[x+1])),g=m[x+1]==="+";h[b]=A||g?[]:{}}return c(m,x)&&(h[b]=f),h[b]})}catch(h){if(h instanceof a)throw h;return l}},get:function(l,s){if(t(l)!="object"||l===null||s===void 0)return l;if(typeof s=="number")return l[s];try{return u(l,s,function(f,h){return f[h]})}catch{return l}},has:function(l,s){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(t(l)!="object"||l===null||s===void 0)return!1;if(typeof s=="number")return s in l;try{var h=!1;return u(l,s,function(b,m,x,A){if(!c(x,A))return b&&b[m];h=f.own?b.hasOwnProperty(m):m in b}),h}catch{return!1}},hasOwn:function(l,s,f){return this.has(l,s,f||{own:!0})},isIn:function(l,s,f){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(t(l)!="object"||l===null||s===void 0)return!1;try{var b=!1,m=!1;return u(l,s,function(x,A,g,d){return b=b||x===f||!!x&&x[A]===f,m=c(g,d)&&t(x)==="object"&&A in x,x&&x[A]}),h.validPath?b&&m:b}catch{return!1}},ObjectPrototypeMutationError:a}},47:(e,t,r)=>{var n=r(410),o=function(l){return typeof l=="string"};function i(l,s){for(var f=[],h=0;h<l.length;h++){var b=l[h];b&&b!=="."&&(b===".."?f.length&&f[f.length-1]!==".."?f.pop():s&&f.push(".."):f.push(b))}return f}var a=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,u={};function c(l){return a.exec(l).slice(1)}u.resolve=function(){for(var l="",s=!1,f=arguments.length-1;f>=-1&&!s;f--){var h=f>=0?arguments[f]:me.cwd();if(!o(h))throw new TypeError("Arguments to path.resolve must be strings");h&&(l=h+"/"+l,s=h.charAt(0)==="/")}return(s?"/":"")+(l=i(l.split("/"),!s).join("/"))||"."},u.normalize=function(l){var s=u.isAbsolute(l),f=l.substr(-1)==="/";return(l=i(l.split("/"),!s).join("/"))||s||(l="."),l&&f&&(l+="/"),(s?"/":"")+l},u.isAbsolute=function(l){return l.charAt(0)==="/"},u.join=function(){for(var l="",s=0;s<arguments.length;s++){var f=arguments[s];if(!o(f))throw new TypeError("Arguments to path.join must be strings");f&&(l+=l?"/"+f:f)}return u.normalize(l)},u.relative=function(l,s){function f(d){for(var p=0;p<d.length&&d[p]==="";p++);for(var y=d.length-1;y>=0&&d[y]==="";y--);return p>y?[]:d.slice(p,y+1)}l=u.resolve(l).substr(1),s=u.resolve(s).substr(1);for(var h=f(l.split("/")),b=f(s.split("/")),m=Math.min(h.length,b.length),x=m,A=0;A<m;A++)if(h[A]!==b[A]){x=A;break}var g=[];for(A=x;A<h.length;A++)g.push("..");return(g=g.concat(b.slice(x))).join("/")},u._makeLong=function(l){return l},u.dirname=function(l){var s=c(l),f=s[0],h=s[1];return f||h?(h&&(h=h.substr(0,h.length-1)),f+h):"."},u.basename=function(l,s){var f=c(l)[2];return s&&f.substr(-1*s.length)===s&&(f=f.substr(0,f.length-s.length)),f},u.extname=function(l){return c(l)[3]},u.format=function(l){if(!n.isObject(l))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof l);var s=l.root||"";if(!o(s))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof l.root);return(l.dir?l.dir+u.sep:"")+(l.base||"")},u.parse=function(l){if(!o(l))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof l);var s=c(l);if(!s||s.length!==4)throw new TypeError("Invalid path '"+l+"'");return s[1]=s[1]||"",s[2]=s[2]||"",s[3]=s[3]||"",{root:s[0],dir:s[0]+s[1].slice(0,s[1].length-1),base:s[2],ext:s[3],name:s[2].slice(0,s[2].length-s[3].length)}},u.sep="/",u.delimiter=":",e.exports=u},647:(e,t)=>{var r=Object.prototype.hasOwnProperty;function n(i){try{return decodeURIComponent(i.replace(/\+/g," "))}catch{return null}}function o(i){try{return encodeURIComponent(i)}catch{return null}}t.stringify=function(i,a){a=a||"";var u,c,l=[];for(c in typeof a!="string"&&(a="?"),i)if(r.call(i,c)){if((u=i[c])||u!=null&&!isNaN(u)||(u=""),c=o(c),u=o(u),c===null||u===null)continue;l.push(c+"="+u)}return l.length?a+l.join("&"):""},t.parse=function(i){for(var a,u=/([^=?#&]+)=?([^&]*)/g,c={};a=u.exec(i);){var l=n(a[1]),s=n(a[2]);l===null||s===null||l in c||(c[l]=s)}return c}},670:e=>{e.exports=function(t,r){if(r=r.split(":")[0],!(t=+t))return!1;switch(r){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0}},494:e=>{const t=/^[-+]?0x[a-fA-F0-9]+$/,r=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const n={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};e.exports=function(o){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(i=Object.assign({},n,i),!o||typeof o!="string")return o;let a=o.trim();if(i.skipLike!==void 0&&i.skipLike.test(a))return o;if(i.hex&&t.test(a))return Number.parseInt(a,16);{const c=r.exec(a);if(c){const l=c[1],s=c[2];let f=((u=c[3])&&u.indexOf(".")!==-1&&((u=u.replace(/0+$/,""))==="."?u="0":u[0]==="."?u="0"+u:u[u.length-1]==="."&&(u=u.substr(0,u.length-1))),u);const h=c[4]||c[6];if(!i.leadingZeros&&s.length>0&&l&&a[2]!=="."||!i.leadingZeros&&s.length>0&&!l&&a[1]!==".")return o;{const b=Number(a),m=""+b;return m.search(/[eE]/)!==-1||h?i.eNotation?b:o:a.indexOf(".")!==-1?m==="0"&&f===""||m===f||l&&m==="-"+f?b:o:s?f===m||l+f===m?b:o:a===m||a===l+m?b:o}}return o}var u}},737:(e,t,r)=>{var n=r(670),o=r(647),i=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,a=/[\n\r\t]/g,u=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,c=/:\d+$/,l=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,s=/^[a-zA-Z]:/;function f(d){return(d||"").toString().replace(i,"")}var h=[["#","hash"],["?","query"],function(d,p){return x(p.protocol)?d.replace(/\\/g,"/"):d},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],b={hash:1,query:1};function m(d){var p,y=(typeof window<"u"?window:typeof jt<"u"?jt:typeof self<"u"?self:{}).location||{},v={},T=typeof(d=d||y);if(d.protocol==="blob:")v=new g(unescape(d.pathname),{});else if(T==="string")for(p in v=new g(d,{}),b)delete v[p];else if(T==="object"){for(p in d)p in b||(v[p]=d[p]);v.slashes===void 0&&(v.slashes=u.test(d.href))}return v}function x(d){return d==="file:"||d==="ftp:"||d==="http:"||d==="https:"||d==="ws:"||d==="wss:"}function A(d,p){d=(d=f(d)).replace(a,""),p=p||{};var y,v=l.exec(d),T=v[1]?v[1].toLowerCase():"",P=!!v[2],I=!!v[3],N=0;return P?I?(y=v[2]+v[3]+v[4],N=v[2].length+v[3].length):(y=v[2]+v[4],N=v[2].length):I?(y=v[3]+v[4],N=v[3].length):y=v[4],T==="file:"?N>=2&&(y=y.slice(2)):x(T)?y=v[4]:T?P&&(y=y.slice(2)):N>=2&&x(p.protocol)&&(y=v[4]),{protocol:T,slashes:P||x(T),slashesCount:N,rest:y}}function g(d,p,y){if(d=(d=f(d)).replace(a,""),!(this instanceof g))return new g(d,p,y);var v,T,P,I,N,j,G=h.slice(),L=typeof p,D=this,oe=0;for(L!=="object"&&L!=="string"&&(y=p,p=null),y&&typeof y!="function"&&(y=o.parse),v=!(T=A(d||"",p=m(p))).protocol&&!T.slashes,D.slashes=T.slashes||v&&p.slashes,D.protocol=T.protocol||p.protocol||"",d=T.rest,(T.protocol==="file:"&&(T.slashesCount!==2||s.test(d))||!T.slashes&&(T.protocol||T.slashesCount<2||!x(D.protocol)))&&(G[3]=[/(.*)/,"pathname"]);oe<G.length;oe++)typeof(I=G[oe])!="function"?(P=I[0],j=I[1],P!=P?D[j]=d:typeof P=="string"?~(N=P==="@"?d.lastIndexOf(P):d.indexOf(P))&&(typeof I[2]=="number"?(D[j]=d.slice(0,N),d=d.slice(N+I[2])):(D[j]=d.slice(N),d=d.slice(0,N))):(N=P.exec(d))&&(D[j]=N[1],d=d.slice(0,N.index)),D[j]=D[j]||v&&I[3]&&p[j]||"",I[4]&&(D[j]=D[j].toLowerCase())):d=I(d,D);y&&(D.query=y(D.query)),v&&p.slashes&&D.pathname.charAt(0)!=="/"&&(D.pathname!==""||p.pathname!=="")&&(D.pathname=function(re,he){if(re==="")return he;for(var ce=(he||"/").split("/").slice(0,-1).concat(re.split("/")),ge=ce.length,fe=ce[ge-1],Ee=!1,be=0;ge--;)ce[ge]==="."?ce.splice(ge,1):ce[ge]===".."?(ce.splice(ge,1),be++):be&&(ge===0&&(Ee=!0),ce.splice(ge,1),be--);return Ee&&ce.unshift(""),fe!=="."&&fe!==".."||ce.push(""),ce.join("/")}(D.pathname,p.pathname)),D.pathname.charAt(0)!=="/"&&x(D.protocol)&&(D.pathname="/"+D.pathname),n(D.port,D.protocol)||(D.host=D.hostname,D.port=""),D.username=D.password="",D.auth&&(~(N=D.auth.indexOf(":"))?(D.username=D.auth.slice(0,N),D.username=encodeURIComponent(decodeURIComponent(D.username)),D.password=D.auth.slice(N+1),D.password=encodeURIComponent(decodeURIComponent(D.password))):D.username=encodeURIComponent(decodeURIComponent(D.auth)),D.auth=D.password?D.username+":"+D.password:D.username),D.origin=D.protocol!=="file:"&&x(D.protocol)&&D.host?D.protocol+"//"+D.host:"null",D.href=D.toString()}g.prototype={set:function(d,p,y){var v=this;switch(d){case"query":typeof p=="string"&&p.length&&(p=(y||o.parse)(p)),v[d]=p;break;case"port":v[d]=p,n(p,v.protocol)?p&&(v.host=v.hostname+":"+p):(v.host=v.hostname,v[d]="");break;case"hostname":v[d]=p,v.port&&(p+=":"+v.port),v.host=p;break;case"host":v[d]=p,c.test(p)?(p=p.split(":"),v.port=p.pop(),v.hostname=p.join(":")):(v.hostname=p,v.port="");break;case"protocol":v.protocol=p.toLowerCase(),v.slashes=!y;break;case"pathname":case"hash":if(p){var T=d==="pathname"?"/":"#";v[d]=p.charAt(0)!==T?T+p:p}else v[d]=p;break;case"username":case"password":v[d]=encodeURIComponent(p);break;case"auth":var P=p.indexOf(":");~P?(v.username=p.slice(0,P),v.username=encodeURIComponent(decodeURIComponent(v.username)),v.password=p.slice(P+1),v.password=encodeURIComponent(decodeURIComponent(v.password))):v.username=encodeURIComponent(decodeURIComponent(p))}for(var I=0;I<h.length;I++){var N=h[I];N[4]&&(v[N[1]]=v[N[1]].toLowerCase())}return v.auth=v.password?v.username+":"+v.password:v.username,v.origin=v.protocol!=="file:"&&x(v.protocol)&&v.host?v.protocol+"//"+v.host:"null",v.href=v.toString(),v},toString:function(d){d&&typeof d=="function"||(d=o.stringify);var p,y=this,v=y.host,T=y.protocol;T&&T.charAt(T.length-1)!==":"&&(T+=":");var P=T+(y.protocol&&y.slashes||x(y.protocol)?"//":"");return y.username?(P+=y.username,y.password&&(P+=":"+y.password),P+="@"):y.password?(P+=":"+y.password,P+="@"):y.protocol!=="file:"&&x(y.protocol)&&!v&&y.pathname!=="/"&&(P+="@"),(v[v.length-1]===":"||c.test(y.hostname)&&!y.port)&&(v+=":"),P+=v+y.pathname,(p=typeof y.query=="object"?d(y.query):y.query)&&(P+=p.charAt(0)!=="?"?"?"+p:p),y.hash&&(P+=y.hash),P}},g.extractProtocol=A,g.location=m,g.trimLeft=f,g.qs=o,e.exports=g},410:()=>{},388:()=>{},805:()=>{},345:()=>{},800:()=>{}},Lc={};function Fe(e){var t=Lc[e];if(t!==void 0)return t.exports;var r=Lc[e]={id:e,loaded:!1,exports:{}};return wm[e].call(r.exports,r,r.exports,Fe),r.loaded=!0,r.exports}Fe.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return Fe.d(t,{a:t}),t},Fe.d=(e,t)=>{for(var r in t)Fe.o(t,r)&&!Fe.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},Fe.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Fe.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var vt={};Fe.d(vt,{hT:()=>ht,O4:()=>$t,Kd:()=>Om,YK:()=>Rm,UU:()=>Lb,Gu:()=>Gc,ky:()=>lf,h4:()=>Jr,ch:()=>Gn,hq:()=>ur,i5:()=>cf});var vm=Fe(737),Em=Fe.n(vm);function ps(e){if(!gs(e))throw new Error("Parameter was not an error")}function gs(e){return!!e&&typeof e=="object"&&(t=e,Object.prototype.toString.call(t)==="[object Error]")||e instanceof Error;var t}class ft extends Error{constructor(t,r){const n=[...arguments],{options:o,shortMessage:i}=function(u){let c,l="";if(u.length===0)c={};else if(gs(u[0]))c={cause:u[0]},l=u.slice(1).join(" ")||"";else if(u[0]&&typeof u[0]=="object")c=Object.assign({},u[0]),l=u.slice(1).join(" ")||"";else{if(typeof u[0]!="string")throw new Error("Invalid arguments passed to Layerr");c={},l=l=u.join(" ")||""}return{options:c,shortMessage:l}}(n);let a=i;if(o.cause&&(a=`${a}: ${o.cause.message}`),super(a),this.message=a,o.name&&typeof o.name=="string"?this.name=o.name:this.name="Layerr",o.cause&&Object.defineProperty(this,"_cause",{value:o.cause}),Object.defineProperty(this,"_info",{value:{}}),o.info&&typeof o.info=="object"&&Object.assign(this._info,o.info),Error.captureStackTrace){const u=o.constructorOpt||this.constructor;Error.captureStackTrace(this,u)}}static cause(t){return ps(t),t._cause&&gs(t._cause)?t._cause:null}static fullStack(t){ps(t);const r=ft.cause(t);return r?`${t.stack}
42
- caused by: ${ft.fullStack(r)}`:t.stack??""}static info(t){ps(t);const r={},n=ft.cause(t);return n&&Object.assign(r,ft.info(n)),t._info&&Object.assign(r,t._info),r}toString(){let t=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t=`${t}: ${this.message}`),t}}var xm=Fe(47),kn=Fe.n(xm);const Uc="__PATH_SEPARATOR_POSIX__",jc="__PATH_SEPARATOR_WINDOWS__";function He(e){try{const t=e.replace(/\//g,Uc).replace(/\\\\/g,jc);return encodeURIComponent(t).split(jc).join("\\\\").split(Uc).join("/")}catch(t){throw new ft(t,"Failed encoding path")}}function kc(e){return e.startsWith("/")?e:"/"+e}function Kr(e){let t=e;return t[0]!=="/"&&(t="/"+t),/^.+\/$/.test(t)&&(t=t.substr(0,t.length-1)),t}function Am(e){let t=new(Em())(e).pathname;return t.length<=0&&(t="/"),Kr(t)}function Ve(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(){return function(n){var o=[];if(n.length===0)return"";if(typeof n[0]!="string")throw new TypeError("Url must be a string. Received "+n[0]);if(n[0].match(/^[^/:]+:\/*$/)&&n.length>1){var i=n.shift();n[0]=i+n[0]}n[0].match(/^file:\/\/\//)?n[0]=n[0].replace(/^([^/:]+):\/*/,"$1:///"):n[0]=n[0].replace(/^([^/:]+):\/*/,"$1://");for(var a=0;a<n.length;a++){var u=n[a];if(typeof u!="string")throw new TypeError("Url must be a string. Received "+u);u!==""&&(a>0&&(u=u.replace(/^[\/]+/,"")),u=a<n.length-1?u.replace(/[\/]+$/,""):u.replace(/[\/]+$/,"/"),o.push(u))}var c=o.join("/"),l=(c=c.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return l.shift()+(l.length>0?"?":"")+l.join("&")}(typeof arguments[0]=="object"?arguments[0]:[].slice.call(arguments))}(t.reduce((n,o,i)=>((i===0||o!=="/"||o==="/"&&n[n.length-1]!=="/")&&n.push(o),n),[]))}var Tm=Fe(542),zr=Fe.n(Tm);const Sm="abcdef0123456789";function Mc(e,t){const r=e.url.replace("//",""),n=r.indexOf("/")==-1?"/":r.slice(r.indexOf("/")),o=e.method?e.method.toUpperCase():"GET",i=!!/(^|,)\s*auth\s*($|,)/.test(t.qop)&&"auth",a=`00000000${t.nc}`.slice(-8),u=function(h,b,m,x,A,g,d){const p=d||zr()(`${b}:${m}:${x}`);return h&&h.toLowerCase()==="md5-sess"?zr()(`${p}:${A}:${g}`):p}(t.algorithm,t.username,t.realm,t.password,t.nonce,t.cnonce,t.ha1),c=zr()(`${o}:${n}`),l=i?zr()(`${u}:${t.nonce}:${a}:${t.cnonce}:${i}:${c}`):zr()(`${u}:${t.nonce}:${c}`),s={username:t.username,realm:t.realm,nonce:t.nonce,uri:n,qop:i,response:l,nc:a,cnonce:t.cnonce,algorithm:t.algorithm,opaque:t.opaque},f=[];for(const h in s)s[h]&&(h==="qop"||h==="nc"||h==="algorithm"?f.push(`${h}=${s[h]}`):f.push(`${h}="${s[h]}"`));return`Digest ${f.join(", ")}`}function Dc(e){return(e.headers&&e.headers.get("www-authenticate")||"").split(/\s/)[0].toLowerCase()==="digest"}var _m=Fe(101),$c=Fe.n(_m);function qc(e){return $c().decode(e)}function Hc(e,t){var r;return`Basic ${r=`${e}:${t}`,$c().encode(r)}`}const Mn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:typeof window<"u"?window:globalThis,Nm=Mn.fetch.bind(Mn),Om=Mn.Request,Rm=Mn.Response;let ht=function(e){return e.Auto="auto",e.Digest="digest",e.None="none",e.Password="password",e.Token="token",e}({}),$t=function(e){return e.DataTypeNoLength="data-type-no-length",e.InvalidAuthType="invalid-auth-type",e.InvalidOutputFormat="invalid-output-format",e.LinkUnsupportedAuthType="link-unsupported-auth",e.InvalidUpdateRange="invalid-update-range",e.NotSupported="not-supported",e}({});function Vc(e,t,r,n,o){switch(e.authType){case ht.Auto:t&&r&&(e.headers.Authorization=Hc(t,r));break;case ht.Digest:e.digest=function(a,u,c){return{username:a,password:u,ha1:c,nc:0,algorithm:"md5",hasDigestAuth:!1}}(t,r,o);break;case ht.None:break;case ht.Password:e.headers.Authorization=Hc(t,r);break;case ht.Token:e.headers.Authorization=`${(i=n).token_type} ${i.access_token}`;break;default:throw new ft({info:{code:$t.InvalidAuthType}},`Invalid auth type: ${e.authType}`)}var i}Fe(345),Fe(800);const Wc="@@HOTPATCHER",Im=()=>{};function ys(e){return{original:e,methods:[e],final:!1}}class Pm{constructor(){this._configuration={registry:{},getEmptyAction:"null"},this.__type__=Wc}get configuration(){return this._configuration}get getEmptyAction(){return this.configuration.getEmptyAction}set getEmptyAction(t){this.configuration.getEmptyAction=t}control(t){let r=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!t||t.__type__!==Wc)throw new Error("Failed taking control of target HotPatcher instance: Invalid type or object");return Object.keys(t.configuration.registry).forEach(n=>{this.configuration.registry.hasOwnProperty(n)?r&&(this.configuration.registry[n]=Object.assign({},t.configuration.registry[n])):this.configuration.registry[n]=Object.assign({},t.configuration.registry[n])}),t._configuration=this.configuration,this}execute(t){const r=this.get(t)||Im;for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r(...o)}get(t){const r=this.configuration.registry[t];if(!r)switch(this.getEmptyAction){case"null":return null;case"throw":throw new Error(`Failed handling method request: No method provided for override: ${t}`);default:throw new Error(`Failed handling request which resulted in an empty method: Invalid empty-action specified: ${this.getEmptyAction}`)}return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];if(o.length===0)throw new Error("Failed creating sequence: No functions provided");return function(){for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];let l=u;const s=this;for(;o.length>0;)l=[o.shift().apply(s,l)];return l[0]}}(...r.methods)}isPatched(t){return!!this.configuration.registry[t]}patch(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{chain:o=!1}=n;if(this.configuration.registry[t]&&this.configuration.registry[t].final)throw new Error(`Failed patching '${t}': Method marked as being final`);if(typeof r!="function")throw new Error(`Failed patching '${t}': Provided method is not a function`);if(o)this.configuration.registry[t]?this.configuration.registry[t].methods.push(r):this.configuration.registry[t]=ys(r);else if(this.isPatched(t)){const{original:i}=this.configuration.registry[t];this.configuration.registry[t]=Object.assign(ys(r),{original:i})}else this.configuration.registry[t]=ys(r);return this}patchInline(t,r){this.isPatched(t)||this.patch(t,r);for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];return this.execute(t,...o)}plugin(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return n.forEach(i=>{this.patch(t,i,{chain:!0})}),this}restore(t){if(!this.isPatched(t))throw new Error(`Failed restoring method: No method present for key: ${t}`);if(typeof this.configuration.registry[t].original!="function")throw new Error(`Failed restoring method: Original method not found or of invalid type for key: ${t}`);return this.configuration.registry[t].methods=[this.configuration.registry[t].original],this}setFinal(t){if(!this.configuration.registry.hasOwnProperty(t))throw new Error(`Failed marking '${t}' as final: No method found for key`);return this.configuration.registry[t].final=!0,this}}let ms=null;function Gc(){return ms||(ms=new Pm),ms}function Dn(e){return function(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!="[object Object]")return!1;if(Object.getPrototypeOf(t)===null)return!0;let r=t;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(t)===r}(e)?Object.assign({},e):Object.setPrototypeOf(Object.assign({},e),Object.getPrototypeOf(e))}function Kc(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];let n=null,o=[...t];for(;o.length>0;){const i=o.shift();n=n?zc(n,i):Dn(i)}return n}function zc(e,t){const r=Dn(e);return Object.keys(t).forEach(n=>{r.hasOwnProperty(n)?Array.isArray(t[n])?r[n]=Array.isArray(r[n])?[...r[n],...t[n]]:[...t[n]]:typeof t[n]=="object"&&t[n]?r[n]=typeof r[n]=="object"&&r[n]?zc(r[n],t[n]):Dn(t[n]):r[n]=t[n]:r[n]=t[n]}),r}function Fm(e){const t={};for(const r of e.keys())t[r]=e.get(r);return t}function bs(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length===0)return{};const n={};return t.reduce((o,i)=>(Object.keys(i).forEach(a=>{const u=a.toLowerCase();n.hasOwnProperty(u)?o[n[u]]=i[a]:(n[u]=a,o[a]=i[a])}),o),{})}Fe(805);const Cm=typeof ArrayBuffer=="function",{toString:Bm}=Object.prototype;function Xc(e){return Cm&&(e instanceof ArrayBuffer||Bm.call(e)==="[object ArrayBuffer]")}function Yc(e){return e!=null&&e.constructor!=null&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function ws(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}function vs(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Jc=ws(function(e){const t=e._digest;return delete e._digest,t.hasDigestAuth&&(e=Kc(e,{headers:{Authorization:Mc(e,t)}})),vs($n(e),function(r){let n=!1;return o=function(a){return n?a:r},(i=function(){if(r.status==401)return t.hasDigestAuth=function(a,u){if(!Dc(a))return!1;const c=/([a-z0-9_-]+)=(?:"([^"]+)"|([a-z0-9_-]+))/gi;for(;;){const l=a.headers&&a.headers.get("www-authenticate")||"",s=c.exec(l);if(!s)break;u[s[1]]=s[2]||s[3]}return u.nc+=1,u.cnonce=function(){let l="";for(let s=0;s<32;++s)l=`${l}${Sm[Math.floor(16*Math.random())]}`;return l}(),!0}(r,t),function(){if(t.hasDigestAuth)return vs($n(e=Kc(e,{headers:{Authorization:Mc(e,t)}})),function(a){return a.status==401?t.hasDigestAuth=!1:t.nc++,n=!0,a})}();t.nc++}())&&i.then?i.then(o):o(i);var o,i})}),Lm=ws(function(e,t){return vs($n(e),function(r){return r.ok?(t.authType=ht.Password,r):r.status==401&&Dc(r)?(t.authType=ht.Digest,Vc(t,t.username,t.password,void 0,void 0),e._digest=t.digest,Jc(e)):r})}),Ze=ws(function(e,t){return t.authType===ht.Auto?Lm(e,t):e._digest?Jc(e):$n(e)});function Qe(e,t,r){const n=Dn(e);return n.headers=bs(t.headers,n.headers||{},r.headers||{}),r.data!==void 0&&(n.data=r.data),r.signal&&(n.signal=r.signal),t.httpAgent&&(n.httpAgent=t.httpAgent),t.httpsAgent&&(n.httpsAgent=t.httpsAgent),t.digest&&(n._digest=t.digest),typeof t.withCredentials=="boolean"&&(n.withCredentials=t.withCredentials),n}function $n(e){const t=Gc();return t.patchInline("request",r=>t.patchInline("fetch",Nm,r.url,function(n){let o={};const i={method:n.method};if(n.headers&&(o=bs(o,n.headers)),n.data!==void 0){const[a,u]=function(c){if(typeof c=="string")return[c,{}];if(Yc(c))return[c,{}];if(Xc(c))return[c,{}];if(c&&typeof c=="object")return[JSON.stringify(c),{"content-type":"application/json"}];throw new Error("Unable to convert request body: Unexpected body type: "+typeof c)}(n.data);i.body=a,o=bs(o,u)}return n.signal&&(i.signal=n.signal),n.withCredentials&&(i.credentials="include"),i.headers=o,i}(r)),e)}var Um=Fe(285);const qn=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")},jm={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Xr=e=>e.replace(/[[\]\\-]/g,"\\$&"),Zc=e=>e.join(""),km=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const n=[],o=[];let i=r+1,a=!1,u=!1,c=!1,l=!1,s=r,f="";e:for(;i<e.length;){const x=e.charAt(i);if(x!=="!"&&x!=="^"||i!==r+1){if(x==="]"&&a&&!c){s=i+1;break}if(a=!0,x!=="\\"||c){if(x==="["&&!c){for(const[A,[g,d,p]]of Object.entries(jm))if(e.startsWith(A,i)){if(f)return["$.",!1,e.length-r,!0];i+=A.length,p?o.push(g):n.push(g),u=u||d;continue e}}c=!1,f?(x>f?n.push(Xr(f)+"-"+Xr(x)):x===f&&n.push(Xr(x)),f="",i++):e.startsWith("-]",i+1)?(n.push(Xr(x+"-")),i+=2):e.startsWith("-",i+1)?(f=x,i+=2):(n.push(Xr(x)),i++)}else c=!0,i++}else l=!0,i++}if(s<i)return["",!1,0,!1];if(!n.length&&!o.length)return["$.",!1,e.length-r,!0];if(o.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!l)return[(h=n[0].length===2?n[0].slice(-1):n[0],h.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")),!1,s-r,!1];var h;const b="["+(l?"^":"")+Zc(n)+"]",m="["+(l?"":"^")+Zc(o)+"]";return[n.length&&o.length?"("+b+"|"+m+")":n.length?b:m,u,s-r,!0]},Yr=function(e){let{windowsPathsNoEscape:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1")},Mm=new Set(["!","?","+","*","@"]),Qc=e=>Mm.has(e),Es="(?!\\.)",Dm=new Set(["[","."]),$m=new Set(["..","."]),qm=new Set("().*{}+?[]^$\\!"),xs="[^/]",ef=xs+"*?",tf=xs+"+?",gt=class gt{constructor(t,r){Oe(this,hr);ye(this,"type");Oe(this,tt);Oe(this,nt);Oe(this,Vt,!1);Oe(this,ke,[]);Oe(this,Ye);Oe(this,zt);Oe(this,cr);Oe(this,Xt,!1);Oe(this,Ct);Oe(this,fr);Oe(this,on,!1);let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.type=t,t&&ve(this,nt,!0),ve(this,Ye,r),ve(this,tt,Z(this,Ye)?Z(Z(this,Ye),tt):this),ve(this,Ct,Z(this,tt)===this?n:Z(Z(this,tt),Ct)),ve(this,cr,Z(this,tt)===this?[]:Z(Z(this,tt),cr)),t!=="!"||Z(Z(this,tt),Xt)||Z(this,cr).push(this),ve(this,zt,Z(this,Ye)?Z(Z(this,Ye),ke).length:0)}get hasMagic(){if(Z(this,nt)!==void 0)return Z(this,nt);for(const t of Z(this,ke))if(typeof t!="string"&&(t.type||t.hasMagic))return ve(this,nt,!0);return Z(this,nt)}toString(){return Z(this,fr)!==void 0?Z(this,fr):this.type?ve(this,fr,this.type+"("+Z(this,ke).map(t=>String(t)).join("|")+")"):ve(this,fr,Z(this,ke).map(t=>String(t)).join(""))}push(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];for(const o of r)if(o!==""){if(typeof o!="string"&&!(o instanceof gt&&Z(o,Ye)===this))throw new Error("invalid part: "+o);Z(this,ke).push(o)}}toJSON(){var r;const t=this.type===null?Z(this,ke).slice().map(n=>typeof n=="string"?n:n.toJSON()):[this.type,...Z(this,ke).map(n=>n.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===Z(this,tt)||Z(Z(this,tt),Xt)&&((r=Z(this,Ye))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(Z(this,tt)===this)return!0;if(!((r=Z(this,Ye))!=null&&r.isStart()))return!1;if(Z(this,zt)===0)return!0;const t=Z(this,Ye);for(let n=0;n<Z(this,zt);n++){const o=Z(t,ke)[n];if(!(o instanceof gt&&o.type==="!"))return!1}return!0}isEnd(){var r,n,o;if(Z(this,tt)===this||((r=Z(this,Ye))==null?void 0:r.type)==="!")return!0;if(!((n=Z(this,Ye))!=null&&n.isEnd()))return!1;if(!this.type)return(o=Z(this,Ye))==null?void 0:o.isEnd();const t=Z(this,Ye)?Z(Z(this,Ye),ke).length:0;return Z(this,zt)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new gt(this.type,t);for(const n of Z(this,ke))r.copyIn(n);return r}static fromGlob(t){var o;let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=new gt(null,void 0,r);return $e(o=gt,Yt,ei).call(o,t,n,0,r),n}toMMPattern(){if(this!==Z(this,tt))return Z(this,tt).toMMPattern();const t=this.toString(),[r,n,o,i]=this.toRegExpSource();if(!(o||Z(this,nt)||Z(this,Ct).nocase&&!Z(this,Ct).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;const a=(Z(this,Ct).nocase?"i":"")+(i?"u":"");return Object.assign(new RegExp(`^${r}$`,a),{_src:r,_glob:t})}get options(){return Z(this,Ct)}toRegExpSource(t){var c;const r=t??!!Z(this,Ct).dot;if(Z(this,tt)===this&&$e(this,hr,Kf).call(this),!this.type){const l=this.isStart()&&this.isEnd(),s=Z(this,ke).map(b=>{var d;const[m,x,A,g]=typeof b=="string"?$e(d=gt,Yt,zf).call(d,b,Z(this,nt),l):b.toRegExpSource(t);return ve(this,nt,Z(this,nt)||A),ve(this,Vt,Z(this,Vt)||g),m}).join("");let f="";if(this.isStart()&&typeof Z(this,ke)[0]=="string"&&(Z(this,ke).length!==1||!$m.has(Z(this,ke)[0]))){const b=Dm,m=r&&b.has(s.charAt(0))||s.startsWith("\\.")&&b.has(s.charAt(2))||s.startsWith("\\.\\.")&&b.has(s.charAt(4)),x=!r&&!t&&b.has(s.charAt(0));f=m?"(?!(?:^|/)\\.\\.?(?:$|/))":x?Es:""}let h="";return this.isEnd()&&Z(Z(this,tt),Xt)&&((c=Z(this,Ye))==null?void 0:c.type)==="!"&&(h="(?:$|\\/)"),[f+s+h,Yr(s),ve(this,nt,!!Z(this,nt)),Z(this,Vt)]}const n=this.type==="*"||this.type==="+",o=this.type==="!"?"(?:(?!(?:":"(?:";let i=$e(this,hr,ea).call(this,r);if(this.isStart()&&this.isEnd()&&!i&&this.type!=="!"){const l=this.toString();return ve(this,ke,[l]),this.type=null,ve(this,nt,void 0),[l,Yr(this.toString()),!1,!1]}let a=!n||t||r?"":$e(this,hr,ea).call(this,!0);a===i&&(a=""),a&&(i=`(?:${i})(?:${a})*?`);let u="";return u=this.type==="!"&&Z(this,on)?(this.isStart()&&!r?Es:"")+tf:o+i+(this.type==="!"?"))"+(!this.isStart()||r||t?"":Es)+ef+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`),[u,Yr(i),ve(this,nt,!!Z(this,nt)),Z(this,Vt)]}};tt=new WeakMap,nt=new WeakMap,Vt=new WeakMap,ke=new WeakMap,Ye=new WeakMap,zt=new WeakMap,cr=new WeakMap,Xt=new WeakMap,Ct=new WeakMap,fr=new WeakMap,on=new WeakMap,hr=new WeakSet,Kf=function(){if(this!==Z(this,tt))throw new Error("should only call on root");if(Z(this,Xt))return this;let t;for(this.toString(),ve(this,Xt,!0);t=Z(this,cr).pop();){if(t.type!=="!")continue;let r=t,n=Z(r,Ye);for(;n;){for(let o=Z(r,zt)+1;!n.type&&o<Z(n,ke).length;o++)for(const i of Z(t,ke)){if(typeof i=="string")throw new Error("string part in extglob AST??");i.copyIn(Z(n,ke)[o])}r=n,n=Z(r,Ye)}}return this},Yt=new WeakSet,ei=function(t,r,n,o){var b,m;let i=!1,a=!1,u=-1,c=!1;if(r.type===null){let x=n,A="";for(;x<t.length;){const g=t.charAt(x++);if(i||g==="\\")i=!i,A+=g;else if(a)x===u+1?g!=="^"&&g!=="!"||(c=!0):g!=="]"||x===u+2&&c||(a=!1),A+=g;else if(g!=="[")if(o.noext||!Qc(g)||t.charAt(x)!=="(")A+=g;else{r.push(A),A="";const d=new gt(g,r);x=$e(b=gt,Yt,ei).call(b,t,d,x,o),r.push(d)}else a=!0,u=x,c=!1,A+=g}return r.push(A),x}let l=n+1,s=new gt(null,r);const f=[];let h="";for(;l<t.length;){const x=t.charAt(l++);if(i||x==="\\")i=!i,h+=x;else if(a)l===u+1?x!=="^"&&x!=="!"||(c=!0):x!=="]"||l===u+2&&c||(a=!1),h+=x;else if(x!=="[")if(Qc(x)&&t.charAt(l)==="("){s.push(h),h="";const A=new gt(x,s);s.push(A),l=$e(m=gt,Yt,ei).call(m,t,A,l,o)}else if(x!=="|"){if(x===")")return h===""&&Z(r,ke).length===0&&ve(r,on,!0),s.push(h),h="",r.push(...f,s),l;h+=x}else s.push(h),h="",f.push(s),s=new gt(null,r);else a=!0,u=l,c=!1,h+=x}return r.type=null,ve(r,nt,void 0),ve(r,ke,[t.substring(n-1)]),l},ea=function(t){return Z(this,ke).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[n,o,i,a]=r.toRegExpSource(t);return ve(this,Vt,Z(this,Vt)||a),n}).filter(r=>!(this.isStart()&&this.isEnd()&&!r)).join("|")},zf=function(t,r){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],o=!1,i="",a=!1;for(let u=0;u<t.length;u++){const c=t.charAt(u);if(o)o=!1,i+=(qm.has(c)?"\\":"")+c;else if(c!=="\\"){if(c==="["){const[l,s,f,h]=km(t,u);if(f){i+=l,a=a||s,u+=f-1,r=r||h;continue}}c!=="*"?c!=="?"?i+=c.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):(i+=xs,r=!0):(i+=n&&t==="*"?tf:ef,r=!0)}else u===t.length-1?i+="\\\\":o=!0}return[i,Yr(t),!!r,a]},Oe(gt,Yt);let Hn=gt;const lt=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return qn(t),!(!r.nocomment&&t.charAt(0)==="#")&&new Vn(t,r).match(e)},Hm=/^\*+([^+@!?\*\[\(]*)$/,Vm=e=>t=>!t.startsWith(".")&&t.endsWith(e),Wm=e=>t=>t.endsWith(e),Gm=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),Km=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),zm=/^\*+\.\*+$/,Xm=e=>!e.startsWith(".")&&e.includes("."),Ym=e=>e!=="."&&e!==".."&&e.includes("."),Jm=/^\.\*+$/,Zm=e=>e!=="."&&e!==".."&&e.startsWith("."),Qm=/^\*+$/,eb=e=>e.length!==0&&!e.startsWith("."),tb=e=>e.length!==0&&e!=="."&&e!=="..",rb=/^\?+([^+@!?\*\[\(]*)?$/,nb=e=>{let[t,r=""]=e;const n=rf([t]);return r?(r=r.toLowerCase(),o=>n(o)&&o.toLowerCase().endsWith(r)):n},ib=e=>{let[t,r=""]=e;const n=nf([t]);return r?(r=r.toLowerCase(),o=>n(o)&&o.toLowerCase().endsWith(r)):n},ob=e=>{let[t,r=""]=e;const n=nf([t]);return r?o=>n(o)&&o.endsWith(r):n},sb=e=>{let[t,r=""]=e;const n=rf([t]);return r?o=>n(o)&&o.endsWith(r):n},rf=e=>{let[t]=e;const r=t.length;return n=>n.length===r&&!n.startsWith(".")},nf=e=>{let[t]=e;const r=t.length;return n=>n.length===r&&n!=="."&&n!==".."},of=typeof me=="object"&&me?typeof me.env=="object"&&me.env&&me.env.__MINIMATCH_TESTING_PLATFORM__||me.platform:"posix";lt.sep=of==="win32"?"\\":"/";const Et=Symbol("globstar **");lt.GLOBSTAR=Et,lt.filter=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return r=>lt(r,e,t)};const xt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.assign({},e,t)};lt.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return lt;const t=lt;return Object.assign(function(r,n){return t(r,n,xt(e,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}))},{Minimatch:class extends t.Minimatch{constructor(r){super(r,xt(e,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}))}static defaults(r){return t.defaults(xt(e,r)).Minimatch}},AST:class extends t.AST{constructor(r,n){super(r,n,xt(e,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}))}static fromGlob(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.AST.fromGlob(r,xt(e,n))}},unescape:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.unescape(r,xt(e,n))},escape:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.escape(r,xt(e,n))},filter:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.filter(r,xt(e,n))},defaults:r=>t.defaults(xt(e,r)),makeRe:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.makeRe(r,xt(e,n))},braceExpand:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.braceExpand(r,xt(e,n))},match:function(r,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t.match(r,n,xt(e,o))},sep:t.sep,GLOBSTAR:Et})};const sf=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return qn(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:Um(e)};lt.braceExpand=sf,lt.makeRe=function(e){return new Vn(e,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).makeRe()},lt.match=function(e,t){const r=new Vn(t,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{});return e=e.filter(n=>r.match(n)),r.options.nonull&&!e.length&&e.push(t),e};const af=/[?*]|[+@!]\(.*?\)|\[|\]/;class Vn{constructor(t){ye(this,"options");ye(this,"set");ye(this,"pattern");ye(this,"windowsPathsNoEscape");ye(this,"nonegate");ye(this,"negate");ye(this,"comment");ye(this,"empty");ye(this,"preserveMultipleSlashes");ye(this,"partial");ye(this,"globSet");ye(this,"globParts");ye(this,"nocase");ye(this,"isWindows");ye(this,"platform");ye(this,"windowsNoMagicRoot");ye(this,"regexp");let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};qn(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||of,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const r of t)if(typeof r!="string")return!0;return!1}debug(){}make(){const t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#")return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=function(){return console.error(...arguments)}),this.debug(this.pattern,this.globSet);const n=this.globSet.map(i=>this.slashSplit(i));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let o=this.globParts.map((i,a,u)=>{if(this.isWindows&&this.windowsNoMagicRoot){const c=!(i[0]!==""||i[1]!==""||i[2]!=="?"&&af.test(i[2])||af.test(i[3])),l=/^[a-z]:/i.test(i[0]);if(c)return[...i.slice(0,4),...i.slice(4).map(s=>this.parse(s))];if(l)return[i[0],...i.slice(1).map(s=>this.parse(s))]}return i.map(c=>this.parse(c))});if(this.debug(this.pattern,o),this.set=o.filter(i=>i.indexOf(!1)===-1),this.isWindows)for(let i=0;i<this.set.length;i++){const a=this.set[i];a[0]===""&&a[1]===""&&this.globParts[i][2]==="?"&&typeof a[3]=="string"&&/^[a-z]:$/i.test(a[3])&&(a[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let n=0;n<t.length;n++)for(let o=0;o<t[n].length;o++)t[n][o]==="**"&&(t[n][o]="*");const{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=r>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let o=n;for(;r[o+1]==="**";)o++;o!==n&&r.splice(n,o-n)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((n,o)=>{const i=n[n.length-1];return o==="**"&&i==="**"?n:o===".."&&i&&i!==".."&&i!=="."&&i!=="**"?(n.pop(),n):(n.push(o),n)},[])).length===0?[""]:r)}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let o=1;o<t.length-1;o++){const i=t[o];o===1&&i===""&&t[0]===""||i!=="."&&i!==""||(r=!0,t.splice(o,1),o--)}t[0]!=="."||t.length!==2||t[1]!=="."&&t[1]!==""||(r=!0,t.pop())}let n=0;for(;(n=t.indexOf("..",n+1))!==-1;){const o=t[n-1];o&&o!=="."&&o!==".."&&o!=="**"&&(r=!0,t.splice(n-1,2),n-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let n of t){let o=-1;for(;(o=n.indexOf("**",o+1))!==-1;){let a=o;for(;n[a+1]==="**";)a++;a>o&&n.splice(o+1,a-o);let u=n[o+1];const c=n[o+2],l=n[o+3];if(u!==".."||!c||c==="."||c===".."||!l||l==="."||l==="..")continue;r=!0,n.splice(o,1);const s=n.slice(0);s[o]="**",t.push(s),o--}if(!this.preserveMultipleSlashes){for(let a=1;a<n.length-1;a++){const u=n[a];a===1&&u===""&&n[0]===""||u!=="."&&u!==""||(r=!0,n.splice(a,1),a--)}n[0]!=="."||n.length!==2||n[1]!=="."&&n[1]!==""||(r=!0,n.pop())}let i=0;for(;(i=n.indexOf("..",i+1))!==-1;){const a=n[i-1];if(a&&a!=="."&&a!==".."&&a!=="**"){r=!0;const u=i===1&&n[i+1]==="**"?["."]:[];n.splice(i-1,2,...u),n.length===0&&n.push(""),i-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let n=r+1;n<t.length;n++){const o=this.partsMatch(t[r],t[n],!this.preserveMultipleSlashes);if(o){t[r]=[],t[n]=o;break}}return t.filter(r=>r.length)}partsMatch(t,r){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],o=0,i=0,a=[],u="";for(;o<t.length&&i<r.length;)if(t[o]===r[i])a.push(u==="b"?r[i]:t[o]),o++,i++;else if(n&&t[o]==="**"&&r[i]===t[o+1])a.push(t[o]),o++;else if(n&&r[i]==="**"&&t[o]===r[i+1])a.push(r[i]),i++;else if(t[o]!=="*"||!r[i]||!this.options.dot&&r[i].startsWith(".")||r[i]==="**"){if(r[i]!=="*"||!t[o]||!this.options.dot&&t[o].startsWith(".")||t[o]==="**"||u==="a")return!1;u="b",a.push(r[i]),o++,i++}else{if(u==="b")return!1;u="a",a.push(t[o]),o++,i++}return t.length===r.length&&a}parseNegate(){if(this.nonegate)return;const t=this.pattern;let r=!1,n=0;for(let o=0;o<t.length&&t.charAt(o)==="!";o++)r=!r,n++;n&&(this.pattern=t.slice(n)),this.negate=r}matchOne(t,r){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const o=this.options;if(this.isWindows){const x=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),A=!x&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),g=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),d=A?3:x?0:void 0,p=!g&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3])?3:g?0:void 0;if(typeof d=="number"&&typeof p=="number"){const[y,v]=[t[d],r[p]];y.toLowerCase()===v.toLowerCase()&&(r[p]=y,p>d?r=r.slice(p):d>p&&(t=t.slice(d)))}}const{optimizationLevel:i=1}=this.options;i>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var a=0,u=0,c=t.length,l=r.length;a<c&&u<l;a++,u++){this.debug("matchOne loop");var s=r[u],f=t[a];if(this.debug(r,s,f),s===!1)return!1;if(s===Et){this.debug("GLOBSTAR",[r,s,f]);var h=a,b=u+1;if(b===l){for(this.debug("** at the end");a<c;a++)if(t[a]==="."||t[a]===".."||!o.dot&&t[a].charAt(0)===".")return!1;return!0}for(;h<c;){var m=t[h];if(this.debug(`
43
- globstar while`,t,h,r,b,m),this.matchOne(t.slice(h),r.slice(b),n))return this.debug("globstar found match!",h,c,m),!0;if(m==="."||m===".."||!o.dot&&m.charAt(0)==="."){this.debug("dot detected!",t,h,r,b);break}this.debug("globstar swallow a segment, and continue"),h++}return!(!n||(this.debug(`
44
- >>> no match, partial?`,t,h,r,b),h!==c))}let x;if(typeof s=="string"?(x=f===s,this.debug("string match",s,f,x)):(x=s.test(f),this.debug("pattern match",s,f,x)),!x)return!1}if(a===c&&u===l)return!0;if(a===c)return n;if(u===l)return a===c-1&&t[a]==="";throw new Error("wtf?")}braceExpand(){return sf(this.pattern,this.options)}parse(t){qn(t);const r=this.options;if(t==="**")return Et;if(t==="")return"";let n,o=null;(n=t.match(Qm))?o=r.dot?tb:eb:(n=t.match(Hm))?o=(r.nocase?r.dot?Km:Gm:r.dot?Wm:Vm)(n[1]):(n=t.match(rb))?o=(r.nocase?r.dot?ib:nb:r.dot?ob:sb)(n):(n=t.match(zm))?o=r.dot?Ym:Xm:(n=t.match(Jm))&&(o=Zm);const i=Hn.fromGlob(t,this.options).toMMPattern();return o&&typeof i=="object"&&Reflect.defineProperty(i,"test",{value:o}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const r=this.options,n=r.noglobstar?"[^/]*?":r.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",o=new Set(r.nocase?["i"]:[]);let i=t.map(c=>{const l=c.map(s=>{if(s instanceof RegExp)for(const f of s.flags.split(""))o.add(f);return typeof s=="string"?s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):s===Et?Et:s._src});return l.forEach((s,f)=>{const h=l[f+1],b=l[f-1];s===Et&&b!==Et&&(b===void 0?h!==void 0&&h!==Et?l[f+1]="(?:\\/|"+n+"\\/)?"+h:l[f]=n:h===void 0?l[f-1]=b+"(?:\\/|"+n+")?":h!==Et&&(l[f-1]=b+"(?:\\/|\\/"+n+"\\/)"+h,l[f+1]=Et))}),l.filter(s=>s!==Et).join("/")}).join("|");const[a,u]=t.length>1?["(?:",")"]:["",""];i="^"+a+i+u+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...o].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.partial;if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;const n=this.options;this.isWindows&&(t=t.split("\\").join("/"));const o=this.slashSplit(t);this.debug(this.pattern,"split",o);const i=this.set;this.debug(this.pattern,"set",i);let a=o[o.length-1];if(!a)for(let u=o.length-2;!a&&u>=0;u--)a=o[u];for(let u=0;u<i.length;u++){const c=i[u];let l=o;if(n.matchBase&&c.length===1&&(l=[a]),this.matchOne(l,c,r))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate}static defaults(t){return lt.defaults(t).Minimatch}}function As(e){const t=new Error(`${arguments.length>1&&arguments[1]!==void 0?arguments[1]:""}Invalid response: ${e.status} ${e.statusText}`);return t.status=e.status,t.response=e,t}function et(e,t){const{status:r}=t;if(r===401&&e.digest)return t;if(r>=400)throw As(t);return t}function ur(e,t){return arguments.length>2&&arguments[2]!==void 0&&arguments[2]?{data:t,headers:e.headers?Fm(e.headers):{},status:e.status,statusText:e.statusText}:t}lt.AST=Hn,lt.Minimatch=Vn,lt.escape=function(e){let{windowsPathsNoEscape:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&")},lt.unescape=Yr;const ab=(uf=function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Qe({url:Ve(e.remoteURL,He(t)),method:"COPY",headers:{Destination:Ve(e.remoteURL,He(r)),Overwrite:n.overwrite===!1?"F":"T",Depth:n.shallow?"0":"infinity"}},e,n);return a=function(u){et(e,u)},(i=Ze(o,e))&&i.then||(i=Promise.resolve(i)),a?i.then(a):i;var i,a},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(uf.apply(this,e))}catch(r){return Promise.reject(r)}});var uf,Ts=Fe(635),ub=Fe(829),qt=Fe.n(ub),Nr=function(e){return e.Array="array",e.Object="object",e.Original="original",e}(Nr||{});function Wn(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Nr.Original;const n=qt().get(e,t);return r==="array"&&Array.isArray(n)===!1?[n]:r==="object"&&Array.isArray(n)?n[0]:n}function Jr(e){return new Promise(t=>{t(function(r){const{multistatus:n}=r;if(n==="")return{multistatus:{response:[]}};if(!n)throw new Error("Invalid response: No root multistatus found");const o={multistatus:Array.isArray(n)?n[0]:n};return qt().set(o,"multistatus.response",Wn(o,"multistatus.response",Nr.Array)),qt().set(o,"multistatus.response",qt().get(o,"multistatus.response").map(i=>function(a){const u=Object.assign({},a);return u.status?qt().set(u,"status",Wn(u,"status",Nr.Object)):(qt().set(u,"propstat",Wn(u,"propstat",Nr.Object)),qt().set(u,"propstat.prop",Wn(u,"propstat.prop",Nr.Object))),u}(i))),o}(new Ts.XMLParser({allowBooleanAttributes:!0,attributeNamePrefix:"",textNodeName:"text",ignoreAttributes:!1,removeNSPrefix:!0,numberParseOptions:{hex:!0,leadingZeros:!1},attributeValueProcessor:(r,n,o)=>n==="true"||n==="false"?n==="true":n,tagValueProcessor(r,n,o){if(!o.endsWith("propstat.prop.displayname"))return n}}).parse(e)))})}function Gn(e,t){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const{getlastmodified:n=null,getcontentlength:o="0",resourcetype:i=null,getcontenttype:a=null,getetag:u=null}=e,c=i&&typeof i=="object"&&i.collection!==void 0?"directory":"file",l={filename:t,basename:kn().basename(t),lastmod:n,size:parseInt(o,10),type:c,etag:typeof u=="string"?u.replace(/"/g,""):null};return c==="file"&&(l.mime=a&&typeof a=="string"?a.split(";")[0]:""),r&&(e.displayname!==void 0&&(e.displayname=String(e.displayname)),l.props=e),l}function lf(e,t){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2],n=null;try{e.multistatus.response[0].propstat&&(n=e.multistatus.response[0])}catch{}if(!n)throw new Error("Failed getting item stat: bad response");const{propstat:{prop:o,status:i}}=n,[a,u,c]=i.split(" ",3),l=parseInt(u,10);if(l>=400){const s=new Error(`Invalid response: ${l} ${c}`);throw s.status=l,s}return Gn(o,Kr(t),r)}function cf(e){switch(String(e)){case"-3":return"unlimited";case"-2":case"-1":return"unknown";default:return parseInt(String(e),10)}}function Ss(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const _s=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{details:n=!1}=r,o=Qe({url:Ve(e.remoteURL,He(t)),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},e,r);return Ss(Ze(o,e),function(i){return et(e,i),Ss(i.text(),function(a){return Ss(Jr(a),function(u){const c=lf(u,t,n);return ur(i,c,n)})})})});function ff(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const lb=hf(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=function(i){if(!i||i==="/")return[];let a=i;const u=[];do u.push(a),a=kn().dirname(a);while(a&&a!=="/");return u}(Kr(t));n.sort((i,a)=>i.length>a.length?1:a.length>i.length?-1:0);let o=!1;return function(i,a,u){if(typeof i[pf]=="function"){let x=function(A){try{for(;!(c=f.next()).done;)if((A=a(c.value))&&A.then){if(!gf(A))return void A.then(x,s||(s=dt.bind(null,l=new Or,2)));A=A.v}l?dt(l,1,A):l=A}catch(g){dt(l||(l=new Or),2,g)}};var c,l,s,f=i[pf]();if(x(),f.return){var h=function(A){try{c.done||f.return()}catch{}return A};if(l&&l.then)return l.then(h,function(A){throw h(A)});h()}return l}if(!("length"in i))throw new TypeError("Object is not iterable");for(var b=[],m=0;m<i.length;m++)b.push(i[m]);return function(x,A,g){var d,p,y=-1;return function v(T){try{for(;++y<x.length&&(!g||!g());)if((T=A(y))&&T.then){if(!gf(T))return void T.then(v,p||(p=dt.bind(null,d=new Or,2)));T=T.v}d?dt(d,1,T):d=T}catch(P){dt(d||(d=new Or),2,P)}}(),d}(b,function(x){return a(b[x])},u)}(n,function(i){return a=function(){return function(c,l){try{var s=ff(_s(e,i),function(f){if(f.type!=="directory")throw new Error(`Path includes a file: ${t}`)})}catch(f){return l(f)}return s&&s.then?s.then(void 0,l):s}(0,function(c){const l=c;return function(){if(l.status===404)return o=!0,df(Ns(e,i,{...r,recursive:!1}));throw c}()})},(u=function(){if(o)return df(Ns(e,i,{...r,recursive:!1}))}())&&u.then?u.then(a):a();var a,u},function(){return!1})});function hf(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}function cb(){}function df(e,t){return e&&e.then?e.then(cb):Promise.resolve()}const pf=typeof Symbol<"u"?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function dt(e,t,r){if(!e.s){if(r instanceof Or){if(!r.s)return void(r.o=dt.bind(null,e,t));1&t&&(t=r.s),r=r.v}if(r&&r.then)return void r.then(dt.bind(null,e,t),dt.bind(null,e,2));e.s=t,e.v=r;const n=e.o;n&&n(e)}}const Or=function(){function e(){}return e.prototype.then=function(t,r){const n=new e,o=this.s;if(o){const i=1&o?t:r;if(i){try{dt(n,1,i(this.v))}catch(a){dt(n,2,a)}return n}return this}return this.o=function(i){try{const a=i.v;1&i.s?dt(n,1,t?t(a):a):r?dt(n,1,r(a)):dt(n,2,a)}catch(a){dt(n,2,a)}},n},e}();function gf(e){return e instanceof Or&&1&e.s}const Ns=hf(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(r.recursive===!0)return lb(e,t,r);const n=Qe({url:Ve(e.remoteURL,(o=He(t),o.endsWith("/")?o:o+"/")),method:"MKCOL"},e,r);var o;return ff(Ze(n,e),function(i){et(e,i)})});var fb=Fe(388),yf=Fe.n(fb);const hb=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n={};if(typeof r.range=="object"&&typeof r.range.start=="number"){let u=`bytes=${r.range.start}-`;typeof r.range.end=="number"&&(u=`${u}${r.range.end}`),n.Range=u}const o=Qe({url:Ve(e.remoteURL,He(t)),method:"GET",headers:n},e,r);return a=function(u){if(et(e,u),n.Range&&u.status!==206){const c=new Error(`Invalid response code for partial request: ${u.status}`);throw c.status=u.status,c}return r.callback&&setTimeout(()=>{r.callback(u)},0),u.body},(i=Ze(o,e))&&i.then||(i=Promise.resolve(i)),a?i.then(a):i;var i,a}),db=()=>{},pb=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}(function(e,t,r){r.url||(r.url=Ve(e.remoteURL,He(t)));const n=Qe(r,e,{});return i=function(a){return et(e,a),a},(o=Ze(n,e))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i}),gb=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=Qe({url:Ve(e.remoteURL,He(t)),method:"DELETE"},e,r);return i=function(a){et(e,a)},(o=Ze(n,e))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i}),yb=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return function(n,o){try{var i=(a=_s(e,t,r),u=function(){return!0},c?u?u(a):a:(a&&a.then||(a=Promise.resolve(a)),u?a.then(u):a))}catch(l){return o(l)}var a,u,c;return i&&i.then?i.then(void 0,o):i}(0,function(n){if(n.status===404)return!1;throw n})});function Os(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const mb=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=Qe({url:Ve(e.remoteURL,He(t),"/"),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:r.deep?"infinity":"1"}},e,r);return Os(Ze(n,e),function(o){return et(e,o),Os(o.text(),function(i){if(!i)throw new Error("Failed parsing directory contents: Empty response");return Os(Jr(i),function(a){const u=kc(t);let c=function(l,s,f){let h=arguments.length>3&&arguments[3]!==void 0&&arguments[3],b=arguments.length>4&&arguments[4]!==void 0&&arguments[4];const m=kn().join(s,"/"),{multistatus:{response:x}}=l,A=x.map(g=>{const d=function(y){try{return y.replace(/^https?:\/\/[^\/]+/,"")}catch(v){throw new ft(v,"Failed normalising HREF")}}(g.href),{propstat:{prop:p}}=g;return Gn(p,m==="/"?decodeURIComponent(Kr(d)):Kr(kn().relative(decodeURIComponent(m),decodeURIComponent(d))),h)});return b?A:A.filter(g=>g.basename&&(g.type==="file"||g.filename!==f.replace(/\/$/,"")))}(a,kc(e.remoteBasePath||e.remotePath),u,r.details,r.includeSelf);return r.glob&&(c=function(l,s){return l.filter(f=>lt(f.filename,s,{matchBase:!0}))}(c,r.glob)),ur(o,c,r.details)})})})});function Rs(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}const bb=Rs(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=Qe({url:Ve(e.remoteURL,He(t)),method:"GET",headers:{Accept:"text/plain"},transformResponse:[Eb]},e,r);return Kn(Ze(n,e),function(o){return et(e,o),Kn(o.text(),function(i){return ur(o,i,r.details)})})});function Kn(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const wb=Rs(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=Qe({url:Ve(e.remoteURL,He(t)),method:"GET"},e,r);return Kn(Ze(n,e),function(o){let i;return et(e,o),function(a,u){var c=a();return c&&c.then?c.then(u):u()}(function(){return Kn(o.arrayBuffer(),function(a){i=a})},function(){return ur(o,i,r.details)})})}),vb=Rs(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{format:n="binary"}=r;if(n!=="binary"&&n!=="text")throw new ft({info:{code:$t.InvalidOutputFormat}},`Invalid output format: ${n}`);return n==="text"?bb(e,t,r):wb(e,t,r)}),Eb=e=>e;function xb(e){return new Ts.XMLBuilder({attributeNamePrefix:"@_",format:!0,ignoreAttributes:!1,suppressEmptyNode:!0}).build(mf({lockinfo:{"@_xmlns:d":"DAV:",lockscope:{exclusive:{}},locktype:{write:{}},owner:{href:e}}},"d"))}function mf(e,t){const r={...e};for(const n in r)r.hasOwnProperty(n)&&(r[n]&&typeof r[n]=="object"&&n.indexOf(":")===-1?(r[`${t}:${n}`]=mf(r[n],t),delete r[n]):/^@_/.test(n)===!1&&(r[`${t}:${n}`]=r[n],delete r[n]));return r}function Is(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function bf(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}const Ab=bf(function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Qe({url:Ve(e.remoteURL,He(t)),method:"UNLOCK",headers:{"Lock-Token":r}},e,n);return Is(Ze(o,e),function(i){if(et(e,i),i.status!==204&&i.status!==200)throw As(i)})}),Tb=bf(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{refreshToken:n,timeout:o=Sb}=r,i={Accept:"text/plain,application/xml",Timeout:o};n&&(i.If=n);const a=Qe({url:Ve(e.remoteURL,He(t)),method:"LOCK",headers:i,data:xb(e.contactHref)},e,r);return Is(Ze(a,e),function(u){return et(e,u),Is(u.text(),function(c){const l=(h=c,new Ts.XMLParser({removeNSPrefix:!0,parseAttributeValue:!0,parseTagValue:!0}).parse(h)),s=qt().get(l,"prop.lockdiscovery.activelock.locktoken.href"),f=qt().get(l,"prop.lockdiscovery.activelock.timeout");var h;if(!s)throw As(u,"No lock token received: ");return{token:s,serverTimeout:f}})})}),Sb="Infinite, Second-4100000000";function Ps(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const _b=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}(function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=t.path||"/",n=Qe({url:Ve(e.remoteURL,r),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},e,t);return Ps(Ze(n,e),function(o){return et(e,o),Ps(o.text(),function(i){return Ps(Jr(i),function(a){const u=function(c){try{const[l]=c.multistatus.response,{propstat:{prop:{"quota-used-bytes":s,"quota-available-bytes":f}}}=l;return s!==void 0&&f!==void 0?{used:parseInt(String(s),10),available:cf(f)}:null}catch{}return null}(a);return ur(o,u,t.details)})})})});function Fs(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Nb=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{details:n=!1}=r,o=Qe({url:Ve(e.remoteURL,He(t)),method:"SEARCH",headers:{Accept:"text/plain,application/xml","Content-Type":e.headers["Content-Type"]||"application/xml; charset=utf-8"}},e,r);return Fs(Ze(o,e),function(i){return et(e,i),Fs(i.text(),function(a){return Fs(Jr(a),function(u){const c=function(l,s,f){const h={truncated:!1,results:[]};return h.truncated=l.multistatus.response.some(b=>{var m,x;return((x=(b.status||((m=b.propstat)==null?void 0:m.status)).split(" ",3))==null?void 0:x[1])==="507"&&b.href.replace(/\/$/,"").endsWith(He(s).replace(/\/$/,""))}),l.multistatus.response.forEach(b=>{if(b.propstat===void 0)return;const m=b.href.split("/").map(decodeURIComponent).join("/");h.results.push(Gn(b.propstat.prop,m,f))}),h}(u,t,n);return ur(i,c,n)})})})}),Ob=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}(function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Qe({url:Ve(e.remoteURL,He(t)),method:"MOVE",headers:{Destination:Ve(e.remoteURL,He(r)),Overwrite:n.overwrite===!1?"F":"T"}},e,n);return a=function(u){et(e,u)},(i=Ze(o,e))&&i.then||(i=Promise.resolve(i)),a?i.then(a):i;var i,a});var Rb=Fe(172);const Ib=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}(function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const{contentLength:o=!0,overwrite:i=!0}=n,a={"Content-Type":"application/octet-stream"};o===!1||(a["Content-Length"]=typeof o=="number"?`${o}`:`${function(s){if(Xc(s))return s.byteLength;if(Yc(s))return s.length;if(typeof s=="string")return(0,Rb.d)(s);throw new ft({info:{code:$t.DataTypeNoLength}},"Cannot calculate data length: Invalid type")}(r)}`),i||(a["If-None-Match"]="*");const u=Qe({url:Ve(e.remoteURL,He(t)),method:"PUT",headers:a,data:r},e,n);return l=function(s){try{et(e,s)}catch(f){const h=f;if(h.status!==412||i)throw h;return!1}return!0},(c=Ze(u,e))&&c.then||(c=Promise.resolve(c)),l?c.then(l):c;var c,l}),wf=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=Qe({url:Ve(e.remoteURL,He(t)),method:"OPTIONS"},e,r);return i=function(a){try{et(e,a)}catch(u){throw u}return{compliance:(a.headers.get("DAV")??"").split(",").map(u=>u.trim()),server:a.headers.get("Server")??""}},(o=Ze(n,e))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i});function Zr(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Pb=Cs(function(e,t,r,n,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(r>n||r<0)throw new ft({info:{code:$t.InvalidUpdateRange}},`Invalid update range ${r} for partial update`);const a={"Content-Type":"application/octet-stream","Content-Length":""+(n-r+1),"Content-Range":`bytes ${r}-${n}/*`},u=Qe({url:Ve(e.remoteURL,He(t)),method:"PUT",headers:a,data:o},e,i);return Zr(Ze(u,e),function(c){et(e,c)})});function vf(e,t){var r=e();return r&&r.then?r.then(t):t(r)}const Fb=Cs(function(e,t,r,n,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(r>n||r<0)throw new ft({info:{code:$t.InvalidUpdateRange}},`Invalid update range ${r} for partial update`);const a={"Content-Type":"application/x-sabredav-partialupdate","Content-Length":""+(n-r+1),"X-Update-Range":`bytes=${r}-${n}`},u=Qe({url:Ve(e.remoteURL,He(t)),method:"PATCH",headers:a,data:o},e,i);return Zr(Ze(u,e),function(c){et(e,c)})});function Cs(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}const Cb=Cs(function(e,t,r,n,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};return Zr(wf(e,t,i),function(a){let u=!1;return vf(function(){if(a.compliance.includes("sabredav-partialupdate"))return Zr(Fb(e,t,r,n,o,i),function(c){return u=!0,c})},function(c){let l=!1;return u?c:vf(function(){if(a.server.includes("Apache")&&a.compliance.includes("<http://apache.org/dav/propset/fs/1>"))return Zr(Pb(e,t,r,n,o,i),function(s){return l=!0,s})},function(s){if(l)return s;throw new ft({info:{code:$t.NotSupported}},"Not supported")})})})}),Bb="https://github.com/perry-mitchell/webdav-client/blob/master/LOCK_CONTACT.md";function Lb(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{authType:r=null,remoteBasePath:n,contactHref:o=Bb,ha1:i,headers:a={},httpAgent:u,httpsAgent:c,password:l,token:s,username:f,withCredentials:h}=t;let b=r;b||(b=f||l?ht.Password:ht.None);const m={authType:b,remoteBasePath:n,contactHref:o,ha1:i,headers:Object.assign({},a),httpAgent:u,httpsAgent:c,password:l,remotePath:Am(e),remoteURL:e,token:s,username:f,withCredentials:h};return Vc(m,f,l,s,i),{copyFile:(x,A,g)=>ab(m,x,A,g),createDirectory:(x,A)=>Ns(m,x,A),createReadStream:(x,A)=>function(g,d){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const y=new(yf()).PassThrough;return hb(g,d,p).then(v=>{v.pipe(y)}).catch(v=>{y.emit("error",v)}),y}(m,x,A),createWriteStream:(x,A,g)=>function(d,p){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:db;const T=new(yf()).PassThrough,P={};y.overwrite===!1&&(P["If-None-Match"]="*");const I=Qe({url:Ve(d.remoteURL,He(p)),method:"PUT",headers:P,data:T,maxRedirects:0},d,y);return Ze(I,d).then(N=>et(d,N)).then(N=>{setTimeout(()=>{v(N)},0)}).catch(N=>{T.emit("error",N)}),T}(m,x,A,g),customRequest:(x,A)=>pb(m,x,A),deleteFile:(x,A)=>gb(m,x,A),exists:(x,A)=>yb(m,x,A),getDirectoryContents:(x,A)=>mb(m,x,A),getFileContents:(x,A)=>vb(m,x,A),getFileDownloadLink:x=>function(A,g){let d=Ve(A.remoteURL,He(g));const p=/^https:/i.test(d)?"https":"http";switch(A.authType){case ht.None:break;case ht.Password:{const y=qc(A.headers.Authorization.replace(/^Basic /i,"").trim());d=d.replace(/^https?:\/\//,`${p}://${y}@`);break}default:throw new ft({info:{code:$t.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${A.authType}`)}return d}(m,x),getFileUploadLink:x=>function(A,g){let d=`${Ve(A.remoteURL,He(g))}?Content-Type=application/octet-stream`;const p=/^https:/i.test(d)?"https":"http";switch(A.authType){case ht.None:break;case ht.Password:{const y=qc(A.headers.Authorization.replace(/^Basic /i,"").trim());d=d.replace(/^https?:\/\//,`${p}://${y}@`);break}default:throw new ft({info:{code:$t.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${A.authType}`)}return d}(m,x),getHeaders:()=>Object.assign({},m.headers),getQuota:x=>_b(m,x),lock:(x,A)=>Tb(m,x,A),moveFile:(x,A,g)=>Ob(m,x,A,g),putFileContents:(x,A,g)=>Ib(m,x,A,g),partialUpdateFileContents:(x,A,g,d,p)=>Cb(m,x,A,g,d,p),getDAVCompliance:x=>wf(m,x),search:(x,A)=>Nb(m,x,A),setHeaders:x=>{m.headers=Object.assign({},x)},stat:(x,A)=>_s(m,x,A),unlock:(x,A,g)=>Ab(m,x,A,g)}}vt.hT,vt.O4,vt.Kd,vt.YK;var Ub=vt.UU;vt.Gu,vt.ky;var jb=vt.h4,kb=vt.ch;vt.hq,vt.i5;const ot=[];for(let e=0;e<256;++e)ot.push((e+256).toString(16).slice(1));function Mb(e,t=0){return(ot[e[t+0]]+ot[e[t+1]]+ot[e[t+2]]+ot[e[t+3]]+"-"+ot[e[t+4]]+ot[e[t+5]]+"-"+ot[e[t+6]]+ot[e[t+7]]+"-"+ot[e[t+8]]+ot[e[t+9]]+"-"+ot[e[t+10]]+ot[e[t+11]]+ot[e[t+12]]+ot[e[t+13]]+ot[e[t+14]]+ot[e[t+15]]).toLowerCase()}let Bs;const Db=new Uint8Array(16);function $b(){if(!Bs){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Bs=crypto.getRandomValues.bind(crypto)}return Bs(Db)}var Ef={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function qb(e,t,r){var o;if(Ef.randomUUID&&!e)return Ef.randomUUID();e=e||{};const n=e.random??((o=e.rng)==null?void 0:o.call(e))??$b();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,Mb(n)}var Ls={},Us={},xf;function js(){return xf||(xf=1,function(e){const t=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",r=t+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",n="["+t+"]["+r+"]*",o=new RegExp("^"+n+"$"),i=function(u,c){const l=[];let s=c.exec(u);for(;s;){const f=[];f.startIndex=c.lastIndex-s[0].length;const h=s.length;for(let b=0;b<h;b++)f.push(s[b]);l.push(f),s=c.exec(u)}return l},a=function(u){const c=o.exec(u);return!(c===null||typeof c>"u")};e.isExist=function(u){return typeof u<"u"},e.isEmptyObject=function(u){return Object.keys(u).length===0},e.merge=function(u,c,l){if(c){const s=Object.keys(c),f=s.length;for(let h=0;h<f;h++)l==="strict"?u[s[h]]=[c[s[h]]]:u[s[h]]=c[s[h]]}},e.getValue=function(u){return e.isExist(u)?u:""},e.isName=a,e.getAllMatches=i,e.nameRegexp=n}(Us)),Us}var Af;function Tf(){if(Af)return Ls;Af=1;const e=js(),t={allowBooleanAttributes:!1,unpairedTags:[]};Ls.validate=function(g,d){d=Object.assign({},t,d);const p=[];let y=!1,v=!1;g[0]==="\uFEFF"&&(g=g.substr(1));for(let T=0;T<g.length;T++)if(g[T]==="<"&&g[T+1]==="?"){if(T+=2,T=n(g,T),T.err)return T}else if(g[T]==="<"){let P=T;if(T++,g[T]==="!"){T=o(g,T);continue}else{let I=!1;g[T]==="/"&&(I=!0,T++);let N="";for(;T<g.length&&g[T]!==">"&&g[T]!==" "&&g[T]!==" "&&g[T]!==`
45
- `&&g[T]!=="\r";T++)N+=g[T];if(N=N.trim(),N[N.length-1]==="/"&&(N=N.substring(0,N.length-1),T--),!m(N)){let L;return N.trim().length===0?L="Invalid space after '<'.":L="Tag '"+N+"' is an invalid name.",h("InvalidTag",L,x(g,T))}const j=u(g,T);if(j===!1)return h("InvalidAttr","Attributes for '"+N+"' have open quote.",x(g,T));let G=j.value;if(T=j.index,G[G.length-1]==="/"){const L=T-G.length;G=G.substring(0,G.length-1);const D=l(G,d);if(D===!0)y=!0;else return h(D.err.code,D.err.msg,x(g,L+D.err.line))}else if(I)if(j.tagClosed){if(G.trim().length>0)return h("InvalidTag","Closing tag '"+N+"' can't have attributes or invalid starting.",x(g,P));if(p.length===0)return h("InvalidTag","Closing tag '"+N+"' has not been opened.",x(g,P));{const L=p.pop();if(N!==L.tagName){let D=x(g,L.tagStartPos);return h("InvalidTag","Expected closing tag '"+L.tagName+"' (opened in line "+D.line+", col "+D.col+") instead of closing tag '"+N+"'.",x(g,P))}p.length==0&&(v=!0)}}else return h("InvalidTag","Closing tag '"+N+"' doesn't have proper closing.",x(g,T));else{const L=l(G,d);if(L!==!0)return h(L.err.code,L.err.msg,x(g,T-G.length+L.err.line));if(v===!0)return h("InvalidXml","Multiple possible root nodes found.",x(g,T));d.unpairedTags.indexOf(N)!==-1||p.push({tagName:N,tagStartPos:P}),y=!0}for(T++;T<g.length;T++)if(g[T]==="<")if(g[T+1]==="!"){T++,T=o(g,T);continue}else if(g[T+1]==="?"){if(T=n(g,++T),T.err)return T}else break;else if(g[T]==="&"){const L=f(g,T);if(L==-1)return h("InvalidChar","char '&' is not expected.",x(g,T));T=L}else if(v===!0&&!r(g[T]))return h("InvalidXml","Extra text at the end",x(g,T));g[T]==="<"&&T--}}else{if(r(g[T]))continue;return h("InvalidChar","char '"+g[T]+"' is not expected.",x(g,T))}if(y){if(p.length==1)return h("InvalidTag","Unclosed tag '"+p[0].tagName+"'.",x(g,p[0].tagStartPos));if(p.length>0)return h("InvalidXml","Invalid '"+JSON.stringify(p.map(T=>T.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return h("InvalidXml","Start tag expected.",1);return!0};function r(g){return g===" "||g===" "||g===`
46
- `||g==="\r"}function n(g,d){const p=d;for(;d<g.length;d++)if(g[d]=="?"||g[d]==" "){const y=g.substr(p,d-p);if(d>5&&y==="xml")return h("InvalidXml","XML declaration allowed only at the start of the document.",x(g,d));if(g[d]=="?"&&g[d+1]==">"){d++;break}else continue}return d}function o(g,d){if(g.length>d+5&&g[d+1]==="-"&&g[d+2]==="-"){for(d+=3;d<g.length;d++)if(g[d]==="-"&&g[d+1]==="-"&&g[d+2]===">"){d+=2;break}}else if(g.length>d+8&&g[d+1]==="D"&&g[d+2]==="O"&&g[d+3]==="C"&&g[d+4]==="T"&&g[d+5]==="Y"&&g[d+6]==="P"&&g[d+7]==="E"){let p=1;for(d+=8;d<g.length;d++)if(g[d]==="<")p++;else if(g[d]===">"&&(p--,p===0))break}else if(g.length>d+9&&g[d+1]==="["&&g[d+2]==="C"&&g[d+3]==="D"&&g[d+4]==="A"&&g[d+5]==="T"&&g[d+6]==="A"&&g[d+7]==="["){for(d+=8;d<g.length;d++)if(g[d]==="]"&&g[d+1]==="]"&&g[d+2]===">"){d+=2;break}}return d}const i='"',a="'";function u(g,d){let p="",y="",v=!1;for(;d<g.length;d++){if(g[d]===i||g[d]===a)y===""?y=g[d]:y!==g[d]||(y="");else if(g[d]===">"&&y===""){v=!0;break}p+=g[d]}return y!==""?!1:{value:p,index:d,tagClosed:v}}const c=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function l(g,d){const p=e.getAllMatches(g,c),y={};for(let v=0;v<p.length;v++){if(p[v][1].length===0)return h("InvalidAttr","Attribute '"+p[v][2]+"' has no space in starting.",A(p[v]));if(p[v][3]!==void 0&&p[v][4]===void 0)return h("InvalidAttr","Attribute '"+p[v][2]+"' is without value.",A(p[v]));if(p[v][3]===void 0&&!d.allowBooleanAttributes)return h("InvalidAttr","boolean attribute '"+p[v][2]+"' is not allowed.",A(p[v]));const T=p[v][2];if(!b(T))return h("InvalidAttr","Attribute '"+T+"' is an invalid name.",A(p[v]));if(!y.hasOwnProperty(T))y[T]=1;else return h("InvalidAttr","Attribute '"+T+"' is repeated.",A(p[v]))}return!0}function s(g,d){let p=/\d/;for(g[d]==="x"&&(d++,p=/[\da-fA-F]/);d<g.length;d++){if(g[d]===";")return d;if(!g[d].match(p))break}return-1}function f(g,d){if(d++,g[d]===";")return-1;if(g[d]==="#")return d++,s(g,d);let p=0;for(;d<g.length;d++,p++)if(!(g[d].match(/\w/)&&p<20)){if(g[d]===";")break;return-1}return d}function h(g,d,p){return{err:{code:g,msg:d,line:p.line||p,col:p.col}}}function b(g){return e.isName(g)}function m(g){return e.isName(g)}function x(g,d){const p=g.substring(0,d).split(/\r?\n/);return{line:p.length,col:p[p.length-1].length+1}}function A(g){return g.startIndex+g[1].length}return Ls}var zn={},Sf;function Hb(){if(Sf)return zn;Sf=1;const e={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(r,n){return n},attributeValueProcessor:function(r,n){return n},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(r,n,o){return r}},t=function(r){return Object.assign({},e,r)};return zn.buildOptions=t,zn.defaultOptions=e,zn}var ks,_f;function Vb(){if(_f)return ks;_f=1;class e{constructor(r){this.tagname=r,this.child=[],this[":@"]={}}add(r,n){r==="__proto__"&&(r="#__proto__"),this.child.push({[r]:n})}addChild(r){r.tagname==="__proto__"&&(r.tagname="#__proto__"),r[":@"]&&Object.keys(r[":@"]).length>0?this.child.push({[r.tagname]:r.child,":@":r[":@"]}):this.child.push({[r.tagname]:r.child})}}return ks=e,ks}var Ms,Nf;function Wb(){if(Nf)return Ms;Nf=1;const e=js();function t(l,s){const f={};if(l[s+3]==="O"&&l[s+4]==="C"&&l[s+5]==="T"&&l[s+6]==="Y"&&l[s+7]==="P"&&l[s+8]==="E"){s=s+9;let h=1,b=!1,m=!1,x="";for(;s<l.length;s++)if(l[s]==="<"&&!m){if(b&&o(l,s)){s+=7;let A,g;[A,g,s]=r(l,s+1),g.indexOf("&")===-1&&(f[c(A)]={regx:RegExp(`&${A};`,"g"),val:g})}else if(b&&i(l,s))s+=8;else if(b&&a(l,s))s+=8;else if(b&&u(l,s))s+=9;else if(n)m=!0;else throw new Error("Invalid DOCTYPE");h++,x=""}else if(l[s]===">"){if(m?l[s-1]==="-"&&l[s-2]==="-"&&(m=!1,h--):h--,h===0)break}else l[s]==="["?b=!0:x+=l[s];if(h!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:f,i:s}}function r(l,s){let f="";for(;s<l.length&&l[s]!=="'"&&l[s]!=='"';s++)f+=l[s];if(f=f.trim(),f.indexOf(" ")!==-1)throw new Error("External entites are not supported");const h=l[s++];let b="";for(;s<l.length&&l[s]!==h;s++)b+=l[s];return[f,b,s]}function n(l,s){return l[s+1]==="!"&&l[s+2]==="-"&&l[s+3]==="-"}function o(l,s){return l[s+1]==="!"&&l[s+2]==="E"&&l[s+3]==="N"&&l[s+4]==="T"&&l[s+5]==="I"&&l[s+6]==="T"&&l[s+7]==="Y"}function i(l,s){return l[s+1]==="!"&&l[s+2]==="E"&&l[s+3]==="L"&&l[s+4]==="E"&&l[s+5]==="M"&&l[s+6]==="E"&&l[s+7]==="N"&&l[s+8]==="T"}function a(l,s){return l[s+1]==="!"&&l[s+2]==="A"&&l[s+3]==="T"&&l[s+4]==="T"&&l[s+5]==="L"&&l[s+6]==="I"&&l[s+7]==="S"&&l[s+8]==="T"}function u(l,s){return l[s+1]==="!"&&l[s+2]==="N"&&l[s+3]==="O"&&l[s+4]==="T"&&l[s+5]==="A"&&l[s+6]==="T"&&l[s+7]==="I"&&l[s+8]==="O"&&l[s+9]==="N"}function c(l){if(e.isName(l))return l;throw new Error(`Invalid entity name ${l}`)}return Ms=t,Ms}var Ds,Of;function Gb(){if(Of)return Ds;Of=1;const e=/^[-+]?0x[a-fA-F0-9]+$/,t=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,r={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function n(a,u={}){if(u=Object.assign({},r,u),!a||typeof a!="string")return a;let c=a.trim();if(u.skipLike!==void 0&&u.skipLike.test(c))return a;if(a==="0")return 0;if(u.hex&&e.test(c))return i(c,16);if(c.search(/[eE]/)!==-1){const l=c.match(/^([-\+])?(0*)([0-9]*(\.[0-9]*)?[eE][-\+]?[0-9]+)$/);if(l){if(u.leadingZeros)c=(l[1]||"")+l[3];else if(!(l[2]==="0"&&l[3][0]==="."))return a;return u.eNotation?Number(c):a}else return a}else{const l=t.exec(c);if(l){const s=l[1],f=l[2];let h=o(l[3]);if(!u.leadingZeros&&f.length>0&&s&&c[2]!==".")return a;if(!u.leadingZeros&&f.length>0&&!s&&c[1]!==".")return a;if(u.leadingZeros&&f===a)return 0;{const b=Number(c),m=""+b;return m.search(/[eE]/)!==-1?u.eNotation?b:a:c.indexOf(".")!==-1?m==="0"&&h===""||m===h||s&&m==="-"+h?b:a:f?h===m||s+h===m?b:a:c===m||c===s+m?b:a}}else return a}}function o(a){return a&&a.indexOf(".")!==-1&&(a=a.replace(/0+$/,""),a==="."?a="0":a[0]==="."?a="0"+a:a[a.length-1]==="."&&(a=a.substr(0,a.length-1))),a}function i(a,u){if(parseInt)return parseInt(a,u);if(Number.parseInt)return Number.parseInt(a,u);if(window&&window.parseInt)return window.parseInt(a,u);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}return Ds=n,Ds}var $s,Rf;function If(){if(Rf)return $s;Rf=1;function e(t){return typeof t=="function"?t:Array.isArray(t)?r=>{for(const n of t)if(typeof n=="string"&&r===n||n instanceof RegExp&&n.test(r))return!0}:()=>!1}return $s=e,$s}var qs,Pf;function Kb(){if(Pf)return qs;Pf=1;const e=js(),t=Vb(),r=Wb(),n=Gb(),o=If();class i{constructor(T){this.options=T,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(P,I)=>String.fromCharCode(Number.parseInt(I,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(P,I)=>String.fromCharCode(Number.parseInt(I,16))}},this.addExternalEntities=a,this.parseXml=f,this.parseTextData=u,this.resolveNameSpace=c,this.buildAttributesMap=s,this.isItStopNode=x,this.replaceEntitiesValue=b,this.readStopNodeData=p,this.saveTextToParentTag=m,this.addChild=h,this.ignoreAttributesFn=o(this.options.ignoreAttributes)}}function a(v){const T=Object.keys(v);for(let P=0;P<T.length;P++){const I=T[P];this.lastEntities[I]={regex:new RegExp("&"+I+";","g"),val:v[I]}}}function u(v,T,P,I,N,j,G){if(v!==void 0&&(this.options.trimValues&&!I&&(v=v.trim()),v.length>0)){G||(v=this.replaceEntitiesValue(v));const L=this.options.tagValueProcessor(T,v,P,N,j);return L==null?v:typeof L!=typeof v||L!==v?L:this.options.trimValues?y(v,this.options.parseTagValue,this.options.numberParseOptions):v.trim()===v?y(v,this.options.parseTagValue,this.options.numberParseOptions):v}}function c(v){if(this.options.removeNSPrefix){const T=v.split(":"),P=v.charAt(0)==="/"?"/":"";if(T[0]==="xmlns")return"";T.length===2&&(v=P+T[1])}return v}const l=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function s(v,T,P){if(this.options.ignoreAttributes!==!0&&typeof v=="string"){const I=e.getAllMatches(v,l),N=I.length,j={};for(let G=0;G<N;G++){const L=this.resolveNameSpace(I[G][1]);if(this.ignoreAttributesFn(L,T))continue;let D=I[G][4],oe=this.options.attributeNamePrefix+L;if(L.length)if(this.options.transformAttributeName&&(oe=this.options.transformAttributeName(oe)),oe==="__proto__"&&(oe="#__proto__"),D!==void 0){this.options.trimValues&&(D=D.trim()),D=this.replaceEntitiesValue(D);const re=this.options.attributeValueProcessor(L,D,T);re==null?j[oe]=D:typeof re!=typeof D||re!==D?j[oe]=re:j[oe]=y(D,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(j[oe]=!0)}if(!Object.keys(j).length)return;if(this.options.attributesGroupName){const G={};return G[this.options.attributesGroupName]=j,G}return j}}const f=function(v){v=v.replace(/\r\n?/g,`
47
- `);const T=new t("!xml");let P=T,I="",N="";for(let j=0;j<v.length;j++)if(v[j]==="<")if(v[j+1]==="/"){const L=g(v,">",j,"Closing Tag is not closed.");let D=v.substring(j+2,L).trim();if(this.options.removeNSPrefix){const he=D.indexOf(":");he!==-1&&(D=D.substr(he+1))}this.options.transformTagName&&(D=this.options.transformTagName(D)),P&&(I=this.saveTextToParentTag(I,P,N));const oe=N.substring(N.lastIndexOf(".")+1);if(D&&this.options.unpairedTags.indexOf(D)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${D}>`);let re=0;oe&&this.options.unpairedTags.indexOf(oe)!==-1?(re=N.lastIndexOf(".",N.lastIndexOf(".")-1),this.tagsNodeStack.pop()):re=N.lastIndexOf("."),N=N.substring(0,re),P=this.tagsNodeStack.pop(),I="",j=L}else if(v[j+1]==="?"){let L=d(v,j,!1,"?>");if(!L)throw new Error("Pi Tag is not closed.");if(I=this.saveTextToParentTag(I,P,N),!(this.options.ignoreDeclaration&&L.tagName==="?xml"||this.options.ignorePiTags)){const D=new t(L.tagName);D.add(this.options.textNodeName,""),L.tagName!==L.tagExp&&L.attrExpPresent&&(D[":@"]=this.buildAttributesMap(L.tagExp,N,L.tagName)),this.addChild(P,D,N)}j=L.closeIndex+1}else if(v.substr(j+1,3)==="!--"){const L=g(v,"-->",j+4,"Comment is not closed.");if(this.options.commentPropName){const D=v.substring(j+4,L-2);I=this.saveTextToParentTag(I,P,N),P.add(this.options.commentPropName,[{[this.options.textNodeName]:D}])}j=L}else if(v.substr(j+1,2)==="!D"){const L=r(v,j);this.docTypeEntities=L.entities,j=L.i}else if(v.substr(j+1,2)==="!["){const L=g(v,"]]>",j,"CDATA is not closed.")-2,D=v.substring(j+9,L);I=this.saveTextToParentTag(I,P,N);let oe=this.parseTextData(D,P.tagname,N,!0,!1,!0,!0);oe==null&&(oe=""),this.options.cdataPropName?P.add(this.options.cdataPropName,[{[this.options.textNodeName]:D}]):P.add(this.options.textNodeName,oe),j=L+2}else{let L=d(v,j,this.options.removeNSPrefix),D=L.tagName;const oe=L.rawTagName;let re=L.tagExp,he=L.attrExpPresent,ce=L.closeIndex;this.options.transformTagName&&(D=this.options.transformTagName(D)),P&&I&&P.tagname!=="!xml"&&(I=this.saveTextToParentTag(I,P,N,!1));const ge=P;if(ge&&this.options.unpairedTags.indexOf(ge.tagname)!==-1&&(P=this.tagsNodeStack.pop(),N=N.substring(0,N.lastIndexOf("."))),D!==T.tagname&&(N+=N?"."+D:D),this.isItStopNode(this.options.stopNodes,N,D)){let fe="";if(re.length>0&&re.lastIndexOf("/")===re.length-1)D[D.length-1]==="/"?(D=D.substr(0,D.length-1),N=N.substr(0,N.length-1),re=D):re=re.substr(0,re.length-1),j=L.closeIndex;else if(this.options.unpairedTags.indexOf(D)!==-1)j=L.closeIndex;else{const be=this.readStopNodeData(v,oe,ce+1);if(!be)throw new Error(`Unexpected end of ${oe}`);j=be.i,fe=be.tagContent}const Ee=new t(D);D!==re&&he&&(Ee[":@"]=this.buildAttributesMap(re,N,D)),fe&&(fe=this.parseTextData(fe,D,N,!0,he,!0,!0)),N=N.substr(0,N.lastIndexOf(".")),Ee.add(this.options.textNodeName,fe),this.addChild(P,Ee,N)}else{if(re.length>0&&re.lastIndexOf("/")===re.length-1){D[D.length-1]==="/"?(D=D.substr(0,D.length-1),N=N.substr(0,N.length-1),re=D):re=re.substr(0,re.length-1),this.options.transformTagName&&(D=this.options.transformTagName(D));const fe=new t(D);D!==re&&he&&(fe[":@"]=this.buildAttributesMap(re,N,D)),this.addChild(P,fe,N),N=N.substr(0,N.lastIndexOf("."))}else{const fe=new t(D);this.tagsNodeStack.push(P),D!==re&&he&&(fe[":@"]=this.buildAttributesMap(re,N,D)),this.addChild(P,fe,N),P=fe}I="",j=ce}}else I+=v[j];return T.child};function h(v,T,P){const I=this.options.updateTag(T.tagname,P,T[":@"]);I===!1||(typeof I=="string"&&(T.tagname=I),v.addChild(T))}const b=function(v){if(this.options.processEntities){for(let T in this.docTypeEntities){const P=this.docTypeEntities[T];v=v.replace(P.regx,P.val)}for(let T in this.lastEntities){const P=this.lastEntities[T];v=v.replace(P.regex,P.val)}if(this.options.htmlEntities)for(let T in this.htmlEntities){const P=this.htmlEntities[T];v=v.replace(P.regex,P.val)}v=v.replace(this.ampEntity.regex,this.ampEntity.val)}return v};function m(v,T,P,I){return v&&(I===void 0&&(I=T.child.length===0),v=this.parseTextData(v,T.tagname,P,!1,T[":@"]?Object.keys(T[":@"]).length!==0:!1,I),v!==void 0&&v!==""&&T.add(this.options.textNodeName,v),v=""),v}function x(v,T,P){const I="*."+P;for(const N in v){const j=v[N];if(I===j||T===j)return!0}return!1}function A(v,T,P=">"){let I,N="";for(let j=T;j<v.length;j++){let G=v[j];if(I)G===I&&(I="");else if(G==='"'||G==="'")I=G;else if(G===P[0])if(P[1]){if(v[j+1]===P[1])return{data:N,index:j}}else return{data:N,index:j};else G===" "&&(G=" ");N+=G}}function g(v,T,P,I){const N=v.indexOf(T,P);if(N===-1)throw new Error(I);return N+T.length-1}function d(v,T,P,I=">"){const N=A(v,T+1,I);if(!N)return;let j=N.data;const G=N.index,L=j.search(/\s/);let D=j,oe=!0;L!==-1&&(D=j.substring(0,L),j=j.substring(L+1).trimStart());const re=D;if(P){const he=D.indexOf(":");he!==-1&&(D=D.substr(he+1),oe=D!==N.data.substr(he+1))}return{tagName:D,tagExp:j,closeIndex:G,attrExpPresent:oe,rawTagName:re}}function p(v,T,P){const I=P;let N=1;for(;P<v.length;P++)if(v[P]==="<")if(v[P+1]==="/"){const j=g(v,">",P,`${T} is not closed`);if(v.substring(P+2,j).trim()===T&&(N--,N===0))return{tagContent:v.substring(I,P),i:j};P=j}else if(v[P+1]==="?")P=g(v,"?>",P+1,"StopNode is not closed.");else if(v.substr(P+1,3)==="!--")P=g(v,"-->",P+3,"StopNode is not closed.");else if(v.substr(P+1,2)==="![")P=g(v,"]]>",P,"StopNode is not closed.")-2;else{const j=d(v,P,">");j&&((j&&j.tagName)===T&&j.tagExp[j.tagExp.length-1]!=="/"&&N++,P=j.closeIndex)}}function y(v,T,P){if(T&&typeof v=="string"){const I=v.trim();return I==="true"?!0:I==="false"?!1:n(v,P)}else return e.isExist(v)?v:""}return qs=i,qs}var Hs={},Ff;function zb(){if(Ff)return Hs;Ff=1;function e(i,a){return t(i,a)}function t(i,a,u){let c;const l={};for(let s=0;s<i.length;s++){const f=i[s],h=r(f);let b="";if(u===void 0?b=h:b=u+"."+h,h===a.textNodeName)c===void 0?c=f[h]:c+=""+f[h];else{if(h===void 0)continue;if(f[h]){let m=t(f[h],a,b);const x=o(m,a);f[":@"]?n(m,f[":@"],b,a):Object.keys(m).length===1&&m[a.textNodeName]!==void 0&&!a.alwaysCreateTextNode?m=m[a.textNodeName]:Object.keys(m).length===0&&(a.alwaysCreateTextNode?m[a.textNodeName]="":m=""),l[h]!==void 0&&l.hasOwnProperty(h)?(Array.isArray(l[h])||(l[h]=[l[h]]),l[h].push(m)):a.isArray(h,b,x)?l[h]=[m]:l[h]=m}}}return typeof c=="string"?c.length>0&&(l[a.textNodeName]=c):c!==void 0&&(l[a.textNodeName]=c),l}function r(i){const a=Object.keys(i);for(let u=0;u<a.length;u++){const c=a[u];if(c!==":@")return c}}function n(i,a,u,c){if(a){const l=Object.keys(a),s=l.length;for(let f=0;f<s;f++){const h=l[f];c.isArray(h,u+"."+h,!0,!0)?i[h]=[a[h]]:i[h]=a[h]}}}function o(i,a){const{textNodeName:u}=a,c=Object.keys(i).length;return!!(c===0||c===1&&(i[u]||typeof i[u]=="boolean"||i[u]===0))}return Hs.prettify=e,Hs}var Vs,Cf;function Xb(){if(Cf)return Vs;Cf=1;const{buildOptions:e}=Hb(),t=Kb(),{prettify:r}=zb(),n=Tf();class o{constructor(a){this.externalEntities={},this.options=e(a)}parse(a,u){if(typeof a!="string")if(a.toString)a=a.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(u){u===!0&&(u={});const s=n.validate(a,u);if(s!==!0)throw Error(`${s.err.msg}:${s.err.line}:${s.err.col}`)}const c=new t(this.options);c.addExternalEntities(this.externalEntities);const l=c.parseXml(a);return this.options.preserveOrder||l===void 0?l:r(l,this.options)}addEntity(a,u){if(u.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(a.indexOf("&")!==-1||a.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(u==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[a]=u}}return Vs=o,Vs}var Ws,Bf;function Yb(){if(Bf)return Ws;Bf=1;const e=`
48
- `;function t(u,c){let l="";return c.format&&c.indentBy.length>0&&(l=e),r(u,c,"",l)}function r(u,c,l,s){let f="",h=!1;for(let b=0;b<u.length;b++){const m=u[b],x=n(m);if(x===void 0)continue;let A="";if(l.length===0?A=x:A=`${l}.${x}`,x===c.textNodeName){let v=m[x];i(A,c)||(v=c.tagValueProcessor(x,v),v=a(v,c)),h&&(f+=s),f+=v,h=!1;continue}else if(x===c.cdataPropName){h&&(f+=s),f+=`<![CDATA[${m[x][0][c.textNodeName]}]]>`,h=!1;continue}else if(x===c.commentPropName){f+=s+`<!--${m[x][0][c.textNodeName]}-->`,h=!0;continue}else if(x[0]==="?"){const v=o(m[":@"],c),T=x==="?xml"?"":s;let P=m[x][0][c.textNodeName];P=P.length!==0?" "+P:"",f+=T+`<${x}${P}${v}?>`,h=!0;continue}let g=s;g!==""&&(g+=c.indentBy);const d=o(m[":@"],c),p=s+`<${x}${d}`,y=r(m[x],c,A,g);c.unpairedTags.indexOf(x)!==-1?c.suppressUnpairedNode?f+=p+">":f+=p+"/>":(!y||y.length===0)&&c.suppressEmptyNode?f+=p+"/>":y&&y.endsWith(">")?f+=p+`>${y}${s}</${x}>`:(f+=p+">",y&&s!==""&&(y.includes("/>")||y.includes("</"))?f+=s+c.indentBy+y+s:f+=y,f+=`</${x}>`),h=!0}return f}function n(u){const c=Object.keys(u);for(let l=0;l<c.length;l++){const s=c[l];if(u.hasOwnProperty(s)&&s!==":@")return s}}function o(u,c){let l="";if(u&&!c.ignoreAttributes)for(let s in u){if(!u.hasOwnProperty(s))continue;let f=c.attributeValueProcessor(s,u[s]);f=a(f,c),f===!0&&c.suppressBooleanAttributes?l+=` ${s.substr(c.attributeNamePrefix.length)}`:l+=` ${s.substr(c.attributeNamePrefix.length)}="${f}"`}return l}function i(u,c){u=u.substr(0,u.length-c.textNodeName.length-1);let l=u.substr(u.lastIndexOf(".")+1);for(let s in c.stopNodes)if(c.stopNodes[s]===u||c.stopNodes[s]==="*."+l)return!0;return!1}function a(u,c){if(u&&u.length>0&&c.processEntities)for(let l=0;l<c.entities.length;l++){const s=c.entities[l];u=u.replace(s.regex,s.val)}return u}return Ws=t,Ws}var Gs,Lf;function Jb(){if(Lf)return Gs;Lf=1;const e=Yb(),t=If(),r={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(u,c){return c},attributeValueProcessor:function(u,c){return c},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function n(u){this.options=Object.assign({},r,u),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=t(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=a),this.processTextOrObjNode=o,this.options.format?(this.indentate=i,this.tagEndChar=`>
49
- `,this.newLine=`
50
- `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}n.prototype.build=function(u){return this.options.preserveOrder?e(u,this.options):(Array.isArray(u)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(u={[this.options.arrayNodeName]:u}),this.j2x(u,0,[]).val)},n.prototype.j2x=function(u,c,l){let s="",f="";const h=l.join(".");for(let b in u)if(Object.prototype.hasOwnProperty.call(u,b))if(typeof u[b]>"u")this.isAttribute(b)&&(f+="");else if(u[b]===null)this.isAttribute(b)||b===this.options.cdataPropName?f+="":b[0]==="?"?f+=this.indentate(c)+"<"+b+"?"+this.tagEndChar:f+=this.indentate(c)+"<"+b+"/"+this.tagEndChar;else if(u[b]instanceof Date)f+=this.buildTextValNode(u[b],b,"",c);else if(typeof u[b]!="object"){const m=this.isAttribute(b);if(m&&!this.ignoreAttributesFn(m,h))s+=this.buildAttrPairStr(m,""+u[b]);else if(!m)if(b===this.options.textNodeName){let x=this.options.tagValueProcessor(b,""+u[b]);f+=this.replaceEntitiesValue(x)}else f+=this.buildTextValNode(u[b],b,"",c)}else if(Array.isArray(u[b])){const m=u[b].length;let x="",A="";for(let g=0;g<m;g++){const d=u[b][g];if(!(typeof d>"u"))if(d===null)b[0]==="?"?f+=this.indentate(c)+"<"+b+"?"+this.tagEndChar:f+=this.indentate(c)+"<"+b+"/"+this.tagEndChar;else if(typeof d=="object")if(this.options.oneListGroup){const p=this.j2x(d,c+1,l.concat(b));x+=p.val,this.options.attributesGroupName&&d.hasOwnProperty(this.options.attributesGroupName)&&(A+=p.attrStr)}else x+=this.processTextOrObjNode(d,b,c,l);else if(this.options.oneListGroup){let p=this.options.tagValueProcessor(b,d);p=this.replaceEntitiesValue(p),x+=p}else x+=this.buildTextValNode(d,b,"",c)}this.options.oneListGroup&&(x=this.buildObjectNode(x,b,A,c)),f+=x}else if(this.options.attributesGroupName&&b===this.options.attributesGroupName){const m=Object.keys(u[b]),x=m.length;for(let A=0;A<x;A++)s+=this.buildAttrPairStr(m[A],""+u[b][m[A]])}else f+=this.processTextOrObjNode(u[b],b,c,l);return{attrStr:s,val:f}},n.prototype.buildAttrPairStr=function(u,c){return c=this.options.attributeValueProcessor(u,""+c),c=this.replaceEntitiesValue(c),this.options.suppressBooleanAttributes&&c==="true"?" "+u:" "+u+'="'+c+'"'};function o(u,c,l,s){const f=this.j2x(u,l+1,s.concat(c));return u[this.options.textNodeName]!==void 0&&Object.keys(u).length===1?this.buildTextValNode(u[this.options.textNodeName],c,f.attrStr,l):this.buildObjectNode(f.val,c,f.attrStr,l)}n.prototype.buildObjectNode=function(u,c,l,s){if(u==="")return c[0]==="?"?this.indentate(s)+"<"+c+l+"?"+this.tagEndChar:this.indentate(s)+"<"+c+l+this.closeTag(c)+this.tagEndChar;{let f="</"+c+this.tagEndChar,h="";return c[0]==="?"&&(h="?",f=""),(l||l==="")&&u.indexOf("<")===-1?this.indentate(s)+"<"+c+l+h+">"+u+f:this.options.commentPropName!==!1&&c===this.options.commentPropName&&h.length===0?this.indentate(s)+`<!--${u}-->`+this.newLine:this.indentate(s)+"<"+c+l+h+this.tagEndChar+u+this.indentate(s)+f}},n.prototype.closeTag=function(u){let c="";return this.options.unpairedTags.indexOf(u)!==-1?this.options.suppressUnpairedNode||(c="/"):this.options.suppressEmptyNode?c="/":c=`></${u}`,c},n.prototype.buildTextValNode=function(u,c,l,s){if(this.options.cdataPropName!==!1&&c===this.options.cdataPropName)return this.indentate(s)+`<![CDATA[${u}]]>`+this.newLine;if(this.options.commentPropName!==!1&&c===this.options.commentPropName)return this.indentate(s)+`<!--${u}-->`+this.newLine;if(c[0]==="?")return this.indentate(s)+"<"+c+l+"?"+this.tagEndChar;{let f=this.options.tagValueProcessor(c,u);return f=this.replaceEntitiesValue(f),f===""?this.indentate(s)+"<"+c+l+this.closeTag(c)+this.tagEndChar:this.indentate(s)+"<"+c+l+">"+f+"</"+c+this.tagEndChar}},n.prototype.replaceEntitiesValue=function(u){if(u&&u.length>0&&this.options.processEntities)for(let c=0;c<this.options.entities.length;c++){const l=this.options.entities[c];u=u.replace(l.regex,l.val)}return u};function i(u){return this.options.indentBy.repeat(u)}function a(u){return u.startsWith(this.options.attributeNamePrefix)&&u!==this.options.textNodeName?u.substr(this.attrPrefixLen):!1}return Gs=n,Gs}var Ks,Uf;function Zb(){if(Uf)return Ks;Uf=1;const e=Tf(),t=Xb(),r=Jb();return Ks={XMLParser:t,XMLValidator:e,XMLBuilder:r},Ks}var zs=Zb();const Xs=(e,t)=>Object.fromEntries(Object.entries(e).map(([r,n])=>t.includes(r)?[r,n||""]:[ir.DavNamespace.includes(r)?`d:${r}`:`oc:${r}`,n||""])),jf=(e=[],{pattern:t,filterRules:r,limit:n=0,extraProps:o=[]})=>{let i="d:propfind";t&&(i="oc:search-files"),r&&(i="oc:filter-files");const a=e.reduce((s,f)=>Object.assign(s,{[f]:null}),{}),u=Xs(a,o),c={[i]:{"d:prop":u,"@@xmlns:d":"DAV:","@@xmlns:oc":"http://owncloud.org/ns",...t&&{"oc:search":{"oc:pattern":t,"oc:limit":n}},...r&&{"oc:filter-rules":Xs(r,[])}}};return new zs.XMLBuilder({format:!0,ignoreAttributes:!1,attributeNamePrefix:"@@",suppressEmptyNode:!0}).build(c)},Qb=e=>{const t={"d:propertyupdate":{"d:set":{"d:prop":Xs(e,[])},"@@xmlns:d":"DAV:","@@xmlns:oc":"http://owncloud.org/ns"}};return new zs.XMLBuilder({format:!0,ignoreAttributes:!1,attributeNamePrefix:"@@",suppressEmptyNode:!0}).build(t)},e1=e=>{const t={},r=e.get("tus-version");return r?(t.version=r.split(","),e.get("tus-extension")&&(t.extension=e.get("tus-extension").split(",")),e.get("tus-resumable")&&(t.resumable=e.get("tus-resumable")),e.get("tus-max-size")&&(t.maxSize=parseInt(e.get("tus-max-size"),10)),t):null},t1=async e=>{const t=n=>{const o=decodeURIComponent(n);return n!=null&&n.startsWith("/remote.php/dav/")?Se(o.replace("/remote.php/dav/",""),{leadingSlash:!0,trailingSlash:!1}):o};return(await jb(e)).multistatus.response.map(({href:n,propstat:o})=>{const i={...kb(o.prop,t(n),!0),processing:o.status==="HTTP/1.1 425 TOO EARLY"};return i.props.name&&(i.props.name=i.props.name.toString()),i})},r1=e=>{const t=new zs.XMLParser,r={message:"Unknown error",errorCode:void 0};try{const n=t.parse(e);if(!n["d:error"])return r;if(n["d:error"]["s:message"]){const o=n["d:error"]["s:message"];typeof o=="string"&&(r.message=o)}if(n["d:error"]["s:errorcode"]){const o=n["d:error"]["s:errorcode"];typeof o=="string"&&(r.errorCode=o)}}catch{return r}return r};class n1{constructor({baseUrl:t,headers:r}){ye(this,"client");ye(this,"davPath");ye(this,"headers");ye(this,"extraProps");this.davPath=Se(t,"remote.php/dav"),this.client=Ub(this.davPath,{}),this.headers=r,this.extraProps=[]}mkcol(t,r={}){return this.request(t,{method:kt.mkcol,...r})}async propfind(t,{depth:r=1,properties:n=[],headers:o={},...i}={}){const a={...o,Depth:r.toString()},{body:u,result:c}=await this.request(t,{method:kt.propfind,data:jf(n,{extraProps:this.extraProps}),headers:a,...i});return u!=null&&u.length&&(u[0].tusSupport=e1(c.headers)),u}async report(t,{pattern:r="",filterRules:n=null,limit:o=30,properties:i,...a}={}){const{body:u,result:c}=await this.request(t,{method:kt.report,data:jf(i,{pattern:r,filterRules:n,limit:o,extraProps:this.extraProps}),...a});return{results:u,range:c.headers.get("content-range")}}copy(t,r,{overwrite:n=!1,headers:o={},...i}={}){const a=Se(this.davPath,xn(r));return this.request(t,{method:kt.copy,headers:{...o,Destination:a,overwrite:n?"T":"F"},...i})}move(t,r,{overwrite:n=!1,headers:o={},...i}={}){const a=Se(this.davPath,xn(r));return this.request(t,{method:kt.move,headers:{...o,Destination:a,overwrite:n?"T":"F"},...i})}put(t,r,{headers:n={},onUploadProgress:o,previousEntityTag:i,overwrite:a,...u}={}){const c={...n};return i?c["If-Match"]=i:a||(c["If-None-Match"]="*"),this.request(t,{method:kt.put,data:r,headers:c,onUploadProgress:o,...u})}delete(t,r={}){return this.request(t,{method:kt.delete,...r})}propPatch(t,r,n={}){const o=Qb(r);return this.request(t,{method:kt.proppatch,data:o,...n})}getFileUrl(t){return Se(this.davPath,xn(t))}buildHeaders(t={}){return{"Content-Type":"application/xml; charset=utf-8","X-Requested-With":"XMLHttpRequest","X-Request-ID":qb(),...this.headers&&{...this.headers()},...t}}async request(t,r){const n=Se(this.davPath,xn(t),{leadingSlash:!0}),o={...r,url:n,headers:this.buildHeaders(r.headers||{})};try{const i=await this.client.customRequest("",o);let a;if(i.status===207){const u=await i.text();a=await t1(u)}return{body:a,status:i.status,result:i}}catch(i){const{response:a}=i,u=await a.text(),c=r1(u);throw new Kd(c.message,c.errorCode,a,a.status)}}}const i1=(e,t)=>({async listFileVersions(r,n={}){const[o,...i]=await e.propfind(Se("meta",r,"v",{leadingSlash:!0}),n);return i.map(a=>Er(a,e.extraProps))}}),o1=(e,t)=>({setFavorite(r,{path:n},o,i={}){const a={[ae.IsFavorite]:o?"true":"false"};return e.propPatch(Se(r.webDavPath,n),a,i)}}),s1=(e,t)=>({listFavoriteFiles({davProperties:r=ir.Default,username:n="",...o}={}){return e.report(Se("files",n),{properties:r,filterRules:{favorite:1},...o})}}),a1=(e,t)=>{const r=Xe.create();t&&r.interceptors.request.use(D=>(Object.assign(D.headers,t()),D));const n={axiosClient:r,baseUrl:e},o=new n1({baseUrl:e,headers:t}),i=D=>{o.extraProps.push(D)},a=bm(o),{getPathForFileId:u}=a,c=cm(o,a),{listFiles:l}=c,s=am(c),{getFileInfo:f}=s,{createFolder:h}=om(o,s),b=sm(o,n),{getFileContents:m}=b,{putFileContents:x}=hm(o,s),{getFileUrl:A,revokeUrl:g}=um(o,b,n),{getPublicFileUrl:d}=lm(o),{copyFiles:p}=im(o),{moveFiles:y}=fm(o),{deleteFile:v}=dm(o),{restoreFile:T}=pm(o),{listFileVersions:P}=i1(o),{restoreFileVersion:I}=gm(o),{clearTrashBin:N}=ym(o),{search:j}=mm(o),{listFavoriteFiles:G}=s1(o),{setFavorite:L}=o1(o);return{copyFiles:p,createFolder:h,deleteFile:v,restoreFile:T,restoreFileVersion:I,getFileContents:m,getFileInfo:f,getFileUrl:A,getPublicFileUrl:d,getPathForFileId:u,listFiles:l,listFileVersions:P,moveFiles:y,putFileContents:x,revokeUrl:g,clearTrashBin:N,search:j,listFavoriteFiles:G,setFavorite:L,registerExtraProp:i}};var kf=(e=>(e[e.COPY=0]="COPY",e[e.MOVE=1]="MOVE",e))(kf||{});let Qr;self.onmessage=async e=>{const{topic:t,data:r}=JSON.parse(e.data);if(t==="tokenUpdate"&&Qr){const b=Qr.Authorization;b!=null&&b.toString().startsWith("Bearer")&&(Qr.Authorization=r.accessToken);return}const{baseUrl:n,headers:o,transferData:i}=r;Qr=o;const a=a1(n,()=>Qr),u=[],c=[],l=new th({concurrency:4}),s=b=>a.copyFiles(b.sourceSpace,b.resource,b.targetSpace,{path:b.path},{overwrite:b.overwrite}),f=b=>a.moveFiles(b.sourceSpace,b.resource,b.targetSpace,{path:b.path},{overwrite:b.overwrite}),h=i.map(b=>l.add(async()=>{var x;const m=b.resource;try{b.transferType===kf.COPY?(await s(b),m.id=void 0,m.fileId=void 0):await f(b),m.path=un.join(b.targetFolder.path,m.name),m.webDavPath=un.join(b.targetFolder.webDavPath,m.name),u.push(m)}catch(A){console.error(A),c.push({resourceName:m.name,message:A.message,statusCode:A.statusCode,xReqId:(x=A.response.headers)==null?void 0:x.get("x-request-id")})}}));await Promise.allSettled(h),postMessage(JSON.stringify({successful:u,failed:c}))}})();