@opencloud-eu/web-pkg 4.3.0 → 5.0.0-alpha.1
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.
- package/dist/{TextEditor-Cn7QTWpj.js → TextEditor-uEaAtt7z.js} +5 -5
- package/dist/assets/worker-Br2EoHIh.js +40 -0
- package/dist/assets/{worker-B8_1fnv6.js → worker-CL8AMTxB.js} +3 -3
- package/dist/assets/{worker-CexULVXL.js → worker-SrzUf4Ns.js} +23 -23
- package/dist/{index-BAXp6cDe.js → index-BwyOzVbn.js} +16422 -16327
- package/dist/src/apps/types.d.ts +1 -0
- package/dist/src/components/ContextActions/ContextMenuQuickAction.vue.d.ts +2 -2
- package/dist/src/components/FilesList/ResourceGhostElement.vue.d.ts +7 -28
- package/dist/src/components/FilesList/ResourceIcon.vue.d.ts +5 -44
- package/dist/src/components/FilesList/ResourceTable.vue.d.ts +16 -357
- package/dist/src/components/FilesList/ResourceTiles.vue.d.ts +14 -64
- package/dist/src/components/ItemFilter.vue.d.ts +8 -9
- package/dist/src/composables/actions/files/index.d.ts +12 -11
- package/dist/src/composables/actions/files/useFileActions.d.ts +2 -7
- package/dist/src/composables/actions/files/useFileActionsOpenWithDefault.d.ts +4 -0
- package/dist/src/composables/actions/types.d.ts +1 -1
- package/dist/src/composables/filesList/useResourceRouteResolver.d.ts +5 -3
- package/dist/src/composables/folderLink/useFolderLink.d.ts +2 -2
- package/dist/src/composables/keyboardActions/useInterceptModifierClick.d.ts +1 -1
- package/dist/src/composables/piniaStores/apps.d.ts +6 -0
- package/dist/src/composables/piniaStores/messages.d.ts +6 -6
- package/dist/src/composables/resources/index.d.ts +2 -0
- package/dist/src/composables/resources/useResourceViewContextMenu.d.ts +11 -0
- package/dist/src/composables/resources/useResourceViewDrag.d.ts +8 -29
- package/dist/src/composables/resources/useResourceViewHelpers.d.ts +24 -34
- package/dist/src/composables/resources/useResourceViewSelection.d.ts +13 -0
- package/dist/src/composables/sort/useSort.d.ts +2 -0
- package/dist/src/constants.d.ts +3 -0
- package/dist/src/helpers/contextMenuDropdown.d.ts +1 -1
- package/dist/src/helpers/index.d.ts +0 -1
- package/dist/web-pkg.js +321 -320
- package/dist/web-pkg.umd.cjs +46 -45
- package/package.json +3 -3
- package/dist/assets/worker-DW5HxaGD.js +0 -40
- package/dist/src/helpers/folderLink/index.d.ts +0 -1
- package/dist/src/helpers/folderLink/types.d.ts +0 -6
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
(function(){"use strict";var St=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fn={exports:{}},os;function $c(){return os||(os=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 A=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],A]:c._events[m].push(A):(c._events[m]=A,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,A=f.length,m=new Array(A);h<A;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,A,m){var E=r?r+l:l;if(!this._events[E])return!1;var T=this._events[E],y=arguments.length,p,d;if(T.fn){switch(T.once&&this.removeListener(l,T.fn,void 0,!0),y){case 1:return T.fn.call(T.context),!0;case 2:return T.fn.call(T.context,s),!0;case 3:return T.fn.call(T.context,s,f),!0;case 4:return T.fn.call(T.context,s,f,h),!0;case 5:return T.fn.call(T.context,s,f,h,A),!0;case 6:return T.fn.call(T.context,s,f,h,A,m),!0}for(d=1,p=new Array(y-1);d<y;d++)p[d-1]=arguments[d];T.fn.apply(T.context,p)}else{var g=T.length,v;for(d=0;d<g;d++)switch(T[d].once&&this.removeListener(l,T[d].fn,void 0,!0),y){case 1:T[d].fn.call(T[d].context);break;case 2:T[d].fn.call(T[d].context,s);break;case 3:T[d].fn.call(T[d].context,s,f);break;case 4:T[d].fn.call(T[d].context,s,f,h);break;default:if(!p)for(v=1,p=new Array(y-1);v<y;v++)p[v-1]=arguments[v];T[d].fn.apply(T[d].context,p)}}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 A=r?r+l:l;if(!this._events[A])return this;if(!s)return a(this,A),this;var m=this._events[A];if(m.fn)m.fn===s&&(!h||m.once)&&(!f||m.context===f)&&a(this,A);else{for(var E=0,T=[],y=m.length;E<y;E++)(m[E].fn!==s||h&&!m[E].once||f&&m[E].context!==f)&&T.push(m[E]);T.length?this._events[A]=T.length===1?T[0]:T:a(this,A)}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})(fn)),fn.exports}var Hc=$c(),Vc=cn(Hc);class hn extends Error{name="TimeoutError";constructor(t,r){super(t,r),Error.captureStackTrace?.(this,hn)}}const ss=e=>e.reason??new DOMException("This operation was aborted.","AbortError");function Wc(e,t){const{milliseconds:r,fallback:n,message:o,customTimers:i={setTimeout,clearTimeout},signal:a}=t;let u,c;const s=new Promise((f,h)=>{if(typeof r!="number"||Math.sign(r)!==1)throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${r}\``);if(a?.aborted){h(ss(a));return}if(a&&(c=()=>{h(ss(a))},a.addEventListener("abort",c,{once:!0})),e.then(f,h),r===Number.POSITIVE_INFINITY)return;const A=new hn;u=i.setTimeout(()=>{if(n){try{f(n())}catch(m){h(m)}return}typeof e.cancel=="function"&&e.cancel(),o===!1?f():o instanceof Error?h(o):(A.message=o??`Promise timed out after ${r} milliseconds`,h(A))},r)}).finally(()=>{s.clear(),c&&a&&a.removeEventListener("abort",c)});return s.clear=()=>{i.clearTimeout(u),u=void 0},s}function Gc(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 Kc{#e=[];enqueue(t,r){const{priority:n=0,id:o}=r??{},i={priority:n,id:o,run:t};if(this.size===0||this.#e[this.size-1].priority>=n){this.#e.push(i);return}const a=Gc(this.#e,i,(u,c)=>c.priority-u.priority);this.#e.splice(a,0,i)}setPriority(t,r){const n=this.#e.findIndex(i=>i.id===t);if(n===-1)throw new ReferenceError(`No promise function with the id "${t}" exists in the queue.`);const[o]=this.#e.splice(n,1);this.enqueue(o.run,{priority:r,id:t})}dequeue(){return this.#e.shift()?.run}filter(t){return this.#e.filter(r=>r.priority===t.priority).map(r=>r.run)}get size(){return this.#e.length}}class zc extends Vc{#e;#r;#o=0;#t;#n=!1;#d=!1;#l;#g=0;#f=0;#c;#p;#h;#s=[];#a=0;#i;#N;#u=0;#w;#y;#F=1n;#v=new Map;timeout;constructor(t){if(super(),t={carryoverIntervalCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:Kc,strict:!1,...t},!(typeof t.intervalCap=="number"&&t.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${t.intervalCap?.toString()??""}\` (${typeof t.intervalCap})`);if(t.interval===void 0||!(Number.isFinite(t.interval)&&t.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${t.interval?.toString()??""}\` (${typeof t.interval})`);if(t.strict&&t.interval===0)throw new TypeError("The `strict` option requires a non-zero `interval`");if(t.strict&&t.intervalCap===Number.POSITIVE_INFINITY)throw new TypeError("The `strict` option requires a finite `intervalCap`");if(this.#e=t.carryoverIntervalCount??t.carryoverConcurrencyCount??!1,this.#r=t.intervalCap===Number.POSITIVE_INFINITY||t.interval===0,this.#t=t.intervalCap,this.#l=t.interval,this.#h=t.strict,this.#i=new t.queueClass,this.#N=t.queueClass,this.concurrency=t.concurrency,t.timeout!==void 0&&!(Number.isFinite(t.timeout)&&t.timeout>0))throw new TypeError(`Expected \`timeout\` to be a positive finite number, got \`${t.timeout}\` (${typeof t.timeout})`);this.timeout=t.timeout,this.#y=t.autoStart===!1,this.#D()}#E(t){for(;this.#a<this.#s.length;){const n=this.#s[this.#a];if(n!==void 0&&t-n>=this.#l)this.#a++;else break}(this.#a>100&&this.#a>this.#s.length/2||this.#a===this.#s.length)&&(this.#s=this.#s.slice(this.#a),this.#a=0)}#C(t){this.#h?this.#s.push(t):this.#o++}#B(){this.#h?this.#s.length>this.#a&&this.#s.pop():this.#o>0&&this.#o--}#x(){return this.#s.length-this.#a}get#L(){return this.#r?!0:this.#h?this.#x()<this.#t:this.#o<this.#t}get#U(){return this.#u<this.#w}#j(){this.#u--,this.#u===0&&this.emit("pendingZero"),this.#S(),this.emit("next")}#k(){this.#p=void 0,this.#I(),this.#R()}#M(t){if(this.#h){if(this.#E(t),this.#x()>=this.#t){const n=this.#s[this.#a],o=this.#l-(t-n);return this.#A(o),!0}return!1}if(this.#c===void 0){const r=this.#g-t;if(r<0){if(this.#f>0){const n=t-this.#f;if(n<this.#l)return this.#A(this.#l-n),!0}this.#o=this.#e?this.#u:0}else return this.#A(r),!0}return!1}#A(t){this.#p===void 0&&(this.#p=setTimeout(()=>{this.#k()},t))}#T(){this.#c&&(clearInterval(this.#c),this.#c=void 0)}#O(){this.#p&&(clearTimeout(this.#p),this.#p=void 0)}#S(){if(this.#i.size===0){if(this.#T(),this.emit("empty"),this.#u===0){if(this.#O(),this.#h&&this.#a>0){const r=Date.now();this.#E(r)}this.emit("idle")}return!1}let t=!1;if(!this.#y){const r=Date.now(),n=!this.#M(r);if(this.#L&&this.#U){const o=this.#i.dequeue();this.#r||(this.#C(r),this.#b()),this.emit("active"),o(),n&&this.#R(),t=!0}}return t}#R(){this.#r||this.#c!==void 0||this.#h||(this.#c=setInterval(()=>{this.#I()},this.#l),this.#g=Date.now()+this.#l)}#I(){this.#h||(this.#o===0&&this.#u===0&&this.#c&&this.#T(),this.#o=this.#e?this.#u:0),this.#_(),this.#b()}#_(){for(;this.#S(););}get concurrency(){return this.#w}set concurrency(t){if(!(typeof t=="number"&&t>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${t}\` (${typeof t})`);this.#w=t,this.#_()}setPriority(t,r){if(typeof r!="number"||!Number.isFinite(r))throw new TypeError(`Expected \`priority\` to be a finite number, got \`${r}\` (${typeof r})`);this.#i.setPriority(t,r)}async add(t,r={}){return r={timeout:this.timeout,...r,id:r.id??(this.#F++).toString()},new Promise((n,o)=>{const i=Symbol(`task-${r.id}`);this.#i.enqueue(async()=>{this.#u++,this.#v.set(i,{id:r.id,priority:r.priority??0,startTime:Date.now(),timeout:r.timeout});let a;try{try{r.signal?.throwIfAborted()}catch(l){throw this.#q(),this.#v.delete(i),l}this.#f=Date.now();let u=t({signal:r.signal});if(r.timeout&&(u=Wc(Promise.resolve(u),{milliseconds:r.timeout,message:`Task timed out after ${r.timeout}ms (queue has ${this.#u} running, ${this.#i.size} waiting)`})),r.signal){const{signal:l}=r;u=Promise.race([u,new Promise((s,f)=>{a=()=>{f(l.reason)},l.addEventListener("abort",a,{once:!0})})])}const c=await u;n(c),this.emit("completed",c)}catch(u){o(u),this.emit("error",u)}finally{a&&r.signal?.removeEventListener("abort",a),this.#v.delete(i),queueMicrotask(()=>{this.#j()})}},r),this.emit("add"),this.#S()})}async addAll(t,r){return Promise.all(t.map(async n=>this.add(n,r)))}start(){return this.#y?(this.#y=!1,this.#_(),this):this}pause(){this.#y=!0}clear(){this.#i=new this.#N,this.#T(),this.#P(),this.emit("empty"),this.#u===0&&(this.#O(),this.emit("idle")),this.emit("next")}async onEmpty(){this.#i.size!==0&&await this.#m("empty")}async onSizeLessThan(t){this.#i.size<t||await this.#m("next",()=>this.#i.size<t)}async onIdle(){this.#u===0&&this.#i.size===0||await this.#m("idle")}async onPendingZero(){this.#u!==0&&await this.#m("pendingZero")}async onRateLimit(){this.isRateLimited||await this.#m("rateLimit")}async onRateLimitCleared(){this.isRateLimited&&await this.#m("rateLimitCleared")}onError(){return new Promise((t,r)=>{const n=o=>{this.off("error",n),r(o)};this.on("error",n)})}async#m(t,r){return new Promise(n=>{const o=()=>{r&&!r()||(this.off(t,o),n())};this.on(t,o)})}get size(){return this.#i.size}sizeBy(t){return this.#i.filter(t).length}get pending(){return this.#u}get isPaused(){return this.#y}#D(){this.#r||(this.on("add",()=>{this.#i.size>0&&this.#b()}),this.on("next",()=>{this.#b()}))}#b(){this.#r||this.#d||(this.#d=!0,queueMicrotask(()=>{this.#d=!1,this.#P()}))}#q(){this.#r||(this.#B(),this.#b())}#P(){const t=this.#n;if(this.#r||this.#i.size===0){t&&(this.#n=!1,this.emit("rateLimitCleared"));return}let r;if(this.#h){const o=Date.now();this.#E(o),r=this.#x()}else r=this.#o;const n=r>=this.#t;n!==t&&(this.#n=n,this.emit(n?"rateLimit":"rateLimitCleared"))}get isRateLimited(){return this.#n}get isSaturated(){return this.#u===this.#w&&this.#i.size>0||this.isRateLimited&&this.#i.size>0}get runningTasks(){return[...this.#v.values()].map(t=>({...t}))}}const mt=globalThis||void 0||self;function Xc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var as={exports:{}},je=as.exports={},ht,dt;function dn(){throw new Error("setTimeout has not been defined")}function pn(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?ht=setTimeout:ht=dn}catch{ht=dn}try{typeof clearTimeout=="function"?dt=clearTimeout:dt=pn}catch{dt=pn}})();function us(e){if(ht===setTimeout)return setTimeout(e,0);if((ht===dn||!ht)&&setTimeout)return ht=setTimeout,setTimeout(e,0);try{return ht(e,0)}catch{try{return ht.call(null,e,0)}catch{return ht.call(this,e,0)}}}function Yc(e){if(dt===clearTimeout)return clearTimeout(e);if((dt===pn||!dt)&&clearTimeout)return dt=clearTimeout,clearTimeout(e);try{return dt(e)}catch{try{return dt.call(null,e)}catch{return dt.call(this,e)}}}var bt=[],Mt=!1,It,Ar=-1;function Jc(){!Mt||!It||(Mt=!1,It.length?bt=It.concat(bt):Ar=-1,bt.length&&ls())}function ls(){if(!Mt){var e=us(Jc);Mt=!0;for(var t=bt.length;t;){for(It=bt,bt=[];++Ar<t;)It&&It[Ar].run();Ar=-1,t=bt.length}It=null,Mt=!1,Yc(e)}}je.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];bt.push(new cs(e,t)),bt.length===1&&!Mt&&us(ls)};function cs(e,t){this.fun=e,this.array=t}cs.prototype.run=function(){this.fun.apply(null,this.array)},je.title="browser",je.browser=!0,je.env={},je.argv=[],je.version="",je.versions={};function wt(){}je.on=wt,je.addListener=wt,je.once=wt,je.off=wt,je.removeListener=wt,je.removeAllListeners=wt,je.emit=wt,je.prependListener=wt,je.prependOnceListener=wt,je.listeners=function(e){return[]},je.binding=function(e){throw new Error("process.binding is not supported")},je.cwd=function(){return"/"},je.chdir=function(e){throw new Error("process.chdir is not supported")},je.umask=function(){return 0};var Zc=as.exports;const ye=Xc(Zc);function fs(e,t){return function(){return e.apply(t,arguments)}}const{toString:Qc}=Object.prototype,{getPrototypeOf:gn}=Object,{iterator:Tr,toStringTag:hs}=Symbol,Sr=(e=>t=>{const r=Qc.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),lt=e=>(e=e.toLowerCase(),t=>Sr(t)===e),_r=e=>t=>typeof t===e,{isArray:Dt}=Array,qt=_r("undefined");function rr(e){return e!==null&&!qt(e)&&e.constructor!==null&&!qt(e.constructor)&&tt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ds=lt("ArrayBuffer");function ef(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ds(e.buffer),t}const tf=_r("string"),tt=_r("function"),ps=_r("number"),nr=e=>e!==null&&typeof e=="object",rf=e=>e===!0||e===!1,Nr=e=>{if(Sr(e)!=="object")return!1;const t=gn(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(hs in e)&&!(Tr in e)},nf=e=>{if(!nr(e)||rr(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},of=lt("Date"),sf=lt("File"),af=lt("Blob"),uf=lt("FileList"),lf=e=>nr(e)&&tt(e.pipe),cf=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||tt(e.append)&&((t=Sr(e))==="formdata"||t==="object"&&tt(e.toString)&&e.toString()==="[object FormData]"))},ff=lt("URLSearchParams"),[hf,df,pf,gf]=["ReadableStream","Request","Response","Headers"].map(lt),yf=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ir(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),Dt(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(rr(e))return;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 gs(e,t){if(rr(e))return null;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 Pt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:mt,ys=e=>!qt(e)&&e!==Pt;function yn(){const{caseless:e,skipUndefined:t}=ys(this)&&this||{},r={},n=(o,i)=>{const a=e&&gs(r,i)||i;Nr(r[a])&&Nr(o)?r[a]=yn(r[a],o):Nr(o)?r[a]=yn({},o):Dt(o)?r[a]=o.slice():(!t||!qt(o))&&(r[a]=o)};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&ir(arguments[o],n);return r}const mf=(e,t,r,{allOwnKeys:n}={})=>(ir(t,(o,i)=>{r&&tt(o)?e[i]=fs(o,r):e[i]=o},{allOwnKeys:n}),e),bf=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),wf=(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)},vf=(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&&gn(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Ef=(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},xf=e=>{if(!e)return null;if(Dt(e))return e;let t=e.length;if(!ps(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Af=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&gn(Uint8Array)),Tf=(e,t)=>{const n=(e&&e[Tr]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Sf=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},_f=lt("HTMLFormElement"),Nf=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),ms=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Of=lt("RegExp"),bs=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ir(r,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(n[i]=a||o)}),Object.defineProperties(e,n)},Rf=e=>{bs(e,(t,r)=>{if(tt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(tt(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+"'")})}})},If=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return Dt(e)?n(e):n(String(e).split(t)),r},Pf=()=>{},Ff=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Cf(e){return!!(e&&tt(e.append)&&e[hs]==="FormData"&&e[Tr])}const Bf=e=>{const t=new Array(10),r=(n,o)=>{if(nr(n)){if(t.indexOf(n)>=0)return;if(rr(n))return n;if(!("toJSON"in n)){t[o]=n;const i=Dt(n)?[]:{};return ir(n,(a,u)=>{const c=r(a,o+1);!qt(c)&&(i[u]=c)}),t[o]=void 0,i}}return n};return r(e,0)},Lf=lt("AsyncFunction"),Uf=e=>e&&(nr(e)||tt(e))&&tt(e.then)&&tt(e.catch),ws=((e,t)=>e?setImmediate:t?((r,n)=>(Pt.addEventListener("message",({source:o,data:i})=>{o===Pt&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),Pt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",tt(Pt.postMessage)),jf=typeof queueMicrotask<"u"?queueMicrotask.bind(Pt):typeof ye<"u"&&ye.nextTick||ws;var X={isArray:Dt,isArrayBuffer:ds,isBuffer:rr,isFormData:cf,isArrayBufferView:ef,isString:tf,isNumber:ps,isBoolean:rf,isObject:nr,isPlainObject:Nr,isEmptyObject:nf,isReadableStream:hf,isRequest:df,isResponse:pf,isHeaders:gf,isUndefined:qt,isDate:of,isFile:sf,isBlob:af,isRegExp:Of,isFunction:tt,isStream:lf,isURLSearchParams:ff,isTypedArray:Af,isFileList:uf,forEach:ir,merge:yn,extend:mf,trim:yf,stripBOM:bf,inherits:wf,toFlatObject:vf,kindOf:Sr,kindOfTest:lt,endsWith:Ef,toArray:xf,forEachEntry:Tf,matchAll:Sf,isHTMLForm:_f,hasOwnProperty:ms,hasOwnProp:ms,reduceDescriptors:bs,freezeMethods:Rf,toObjectSet:If,toCamelCase:Nf,noop:Pf,toFiniteNumber:Ff,findKey:gs,global:Pt,isContextDefined:ys,isSpecCompliantForm:Cf,toJSONObject:Bf,isAsyncFn:Lf,isThenable:Uf,setImmediate:ws,asap:jf,isIterable:e=>e!=null&&tt(e[Tr])},vs={},Or={};Or.byteLength=Df,Or.toByteArray=$f,Or.fromByteArray=Wf;for(var pt=[],it=[],kf=typeof Uint8Array<"u"?Uint8Array:Array,mn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$t=0,Mf=mn.length;$t<Mf;++$t)pt[$t]=mn[$t],it[mn.charCodeAt($t)]=$t;it[45]=62,it[95]=63;function Es(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 Df(e){var t=Es(e),r=t[0],n=t[1];return(r+n)*3/4-n}function qf(e,t,r){return(t+r)*3/4-r}function $f(e){var t,r=Es(e),n=r[0],o=r[1],i=new kf(qf(e,n,o)),a=0,u=o>0?n-4:n,c;for(c=0;c<u;c+=4)t=it[e.charCodeAt(c)]<<18|it[e.charCodeAt(c+1)]<<12|it[e.charCodeAt(c+2)]<<6|it[e.charCodeAt(c+3)],i[a++]=t>>16&255,i[a++]=t>>8&255,i[a++]=t&255;return o===2&&(t=it[e.charCodeAt(c)]<<2|it[e.charCodeAt(c+1)]>>4,i[a++]=t&255),o===1&&(t=it[e.charCodeAt(c)]<<10|it[e.charCodeAt(c+1)]<<4|it[e.charCodeAt(c+2)]>>2,i[a++]=t>>8&255,i[a++]=t&255),i}function Hf(e){return pt[e>>18&63]+pt[e>>12&63]+pt[e>>6&63]+pt[e&63]}function Vf(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(Hf(n));return o.join("")}function Wf(e){for(var t,r=e.length,n=r%3,o=[],i=16383,a=0,u=r-n;a<u;a+=i)o.push(Vf(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 bn={};bn.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,A=e[t+f];for(f+=h,i=A&(1<<-s)-1,A>>=-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:(A?-1:1)*(1/0);a=a+Math.pow(2,n),i=i-l}return(A?-1:1)*a*Math.pow(2,i-n)},bn.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,A=n?0:i-1,m=n?1:-1,E=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+A]=u&255,A+=m,u/=256,o-=8);for(a=a<<o|u,l+=o;l>0;e[r+A]=a&255,A+=m,a/=256,l-=8);e[r+A-m]|=E*128};(function(e){const t=Or,r=bn,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),b={foo:function(){return 42}};return Object.setPrototypeOf(b,i.prototype),Object.setPrototypeOf(F,b),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 b=new i(F);return Object.setPrototypeOf(b,s.prototype),b}function s(F,b,S){if(typeof F=="number"){if(typeof b=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(F)}return f(F,b,S)}s.poolSize=8192;function f(F,b,S){if(typeof F=="string")return E(F,b);if(a.isView(F))return y(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(Ge(F,a)||F&&Ge(F.buffer,a)||typeof u<"u"&&(Ge(F,u)||F&&Ge(F.buffer,u)))return p(F,b,S);if(typeof F=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const M=F.valueOf&&F.valueOf();if(M!=null&&M!==F)return s.from(M,b,S);const H=d(F);if(H)return H;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof F[Symbol.toPrimitive]=="function")return s.from(F[Symbol.toPrimitive]("string"),b,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,b,S){return f(F,b,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 A(F,b,S){return h(F),F<=0?l(F):b!==void 0?typeof S=="string"?l(F).fill(b,S):l(F).fill(b):l(F)}s.alloc=function(F,b,S){return A(F,b,S)};function m(F){return h(F),l(F<0?0:g(F)|0)}s.allocUnsafe=function(F){return m(F)},s.allocUnsafeSlow=function(F){return m(F)};function E(F,b){if((typeof b!="string"||b==="")&&(b="utf8"),!s.isEncoding(b))throw new TypeError("Unknown encoding: "+b);const S=x(F,b)|0;let M=l(S);const H=M.write(F,b);return H!==S&&(M=M.slice(0,H)),M}function T(F){const b=F.length<0?0:g(F.length)|0,S=l(b);for(let M=0;M<b;M+=1)S[M]=F[M]&255;return S}function y(F){if(Ge(F,i)){const b=new i(F);return p(b.buffer,b.byteOffset,b.byteLength)}return T(F)}function p(F,b,S){if(b<0||F.byteLength<b)throw new RangeError('"offset" is outside of buffer bounds');if(F.byteLength<b+(S||0))throw new RangeError('"length" is outside of buffer bounds');let M;return b===void 0&&S===void 0?M=new i(F):S===void 0?M=new i(F,b):M=new i(F,b,S),Object.setPrototypeOf(M,s.prototype),M}function d(F){if(s.isBuffer(F)){const b=g(F.length)|0,S=l(b);return S.length===0||F.copy(S,0,0,b),S}if(F.length!==void 0)return typeof F.length!="number"||ut(F.length)?l(0):T(F);if(F.type==="Buffer"&&Array.isArray(F.data))return T(F.data)}function g(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(b){return b!=null&&b._isBuffer===!0&&b!==s.prototype},s.compare=function(b,S){if(Ge(b,i)&&(b=s.from(b,b.offset,b.byteLength)),Ge(S,i)&&(S=s.from(S,S.offset,S.byteLength)),!s.isBuffer(b)||!s.isBuffer(S))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(b===S)return 0;let M=b.length,H=S.length;for(let z=0,ne=Math.min(M,H);z<ne;++z)if(b[z]!==S[z]){M=b[z],H=S[z];break}return M<H?-1:H<M?1:0},s.isEncoding=function(b){switch(String(b).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(b,S){if(!Array.isArray(b))throw new TypeError('"list" argument must be an Array of Buffers');if(b.length===0)return s.alloc(0);let M;if(S===void 0)for(S=0,M=0;M<b.length;++M)S+=b[M].length;const H=s.allocUnsafe(S);let z=0;for(M=0;M<b.length;++M){let ne=b[M];if(Ge(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 x(F,b){if(s.isBuffer(F))return F.length;if(a.isView(F)||Ge(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,M=arguments.length>2&&arguments[2]===!0;if(!M&&S===0)return 0;let H=!1;for(;;)switch(b){case"ascii":case"latin1":case"binary":return S;case"utf8":case"utf-8":return He(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S*2;case"hex":return S>>>1;case"base64":return Oe(F).length;default:if(H)return M?-1:He(F).length;b=(""+b).toLowerCase(),H=!0}}s.byteLength=x;function I(F,b,S){let M=!1;if((b===void 0||b<0)&&(b=0),b>this.length||((S===void 0||S>this.length)&&(S=this.length),S<=0)||(S>>>=0,b>>>=0,S<=b))return"";for(F||(F="utf8");;)switch(F){case"hex":return G(this,b,S);case"utf8":case"utf-8":return le(this,b,S);case"ascii":return be(this,b,S);case"latin1":case"binary":return pe(this,b,S);case"base64":return ue(this,b,S);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,b,S);default:if(M)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),M=!0}}s.prototype._isBuffer=!0;function P(F,b,S){const M=F[b];F[b]=F[S],F[S]=M}s.prototype.swap16=function(){const b=this.length;if(b%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let S=0;S<b;S+=2)P(this,S,S+1);return this},s.prototype.swap32=function(){const b=this.length;if(b%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let S=0;S<b;S+=4)P(this,S,S+3),P(this,S+1,S+2);return this},s.prototype.swap64=function(){const b=this.length;if(b%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let S=0;S<b;S+=8)P(this,S,S+7),P(this,S+1,S+6),P(this,S+2,S+5),P(this,S+3,S+4);return this},s.prototype.toString=function(){const b=this.length;return b===0?"":arguments.length===0?le(this,0,b):I.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(b){if(!s.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b?!0:s.compare(this,b)===0},s.prototype.inspect=function(){let b="";const S=e.INSPECT_MAX_BYTES;return b=this.toString("hex",0,S).replace(/(.{2})/g,"$1 ").trim(),this.length>S&&(b+=" ... "),"<Buffer "+b+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(b,S,M,H,z){if(Ge(b,i)&&(b=s.from(b,b.offset,b.byteLength)),!s.isBuffer(b))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof b);if(S===void 0&&(S=0),M===void 0&&(M=b?b.length:0),H===void 0&&(H=0),z===void 0&&(z=this.length),S<0||M>b.length||H<0||z>this.length)throw new RangeError("out of range index");if(H>=z&&S>=M)return 0;if(H>=z)return-1;if(S>=M)return 1;if(S>>>=0,M>>>=0,H>>>=0,z>>>=0,this===b)return 0;let ne=z-H,we=M-S;const Re=Math.min(ne,we),Ie=this.slice(H,z),Pe=b.slice(S,M);for(let Ae=0;Ae<Re;++Ae)if(Ie[Ae]!==Pe[Ae]){ne=Ie[Ae],we=Pe[Ae];break}return ne<we?-1:we<ne?1:0};function N(F,b,S,M,H){if(F.length===0)return-1;if(typeof S=="string"?(M=S,S=0):S>2147483647?S=2147483647:S<-2147483648&&(S=-2147483648),S=+S,ut(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 b=="string"&&(b=s.from(b,M)),s.isBuffer(b))return b.length===0?-1:j(F,b,S,M,H);if(typeof b=="number")return b=b&255,typeof i.prototype.indexOf=="function"?H?i.prototype.indexOf.call(F,b,S):i.prototype.lastIndexOf.call(F,b,S):j(F,[b],S,M,H);throw new TypeError("val must be string, number or Buffer")}function j(F,b,S,M,H){let z=1,ne=F.length,we=b.length;if(M!==void 0&&(M=String(M).toLowerCase(),M==="ucs2"||M==="ucs-2"||M==="utf16le"||M==="utf-16le")){if(F.length<2||b.length<2)return-1;z=2,ne/=2,we/=2,S/=2}function Re(Pe,Ae){return z===1?Pe[Ae]:Pe.readUInt16BE(Ae*z)}let Ie;if(H){let Pe=-1;for(Ie=S;Ie<ne;Ie++)if(Re(F,Ie)===Re(b,Pe===-1?0:Ie-Pe)){if(Pe===-1&&(Pe=Ie),Ie-Pe+1===we)return Pe*z}else Pe!==-1&&(Ie-=Ie-Pe),Pe=-1}else for(S+we>ne&&(S=ne-we),Ie=S;Ie>=0;Ie--){let Pe=!0;for(let Ae=0;Ae<we;Ae++)if(Re(F,Ie+Ae)!==Re(b,Ae)){Pe=!1;break}if(Pe)return Ie}return-1}s.prototype.includes=function(b,S,M){return this.indexOf(b,S,M)!==-1},s.prototype.indexOf=function(b,S,M){return N(this,b,S,M,!0)},s.prototype.lastIndexOf=function(b,S,M){return N(this,b,S,M,!1)};function K(F,b,S,M){S=Number(S)||0;const H=F.length-S;M?(M=Number(M),M>H&&(M=H)):M=H;const z=b.length;M>z/2&&(M=z/2);let ne;for(ne=0;ne<M;++ne){const we=parseInt(b.substr(ne*2,2),16);if(ut(we))return ne;F[S+ne]=we}return ne}function L(F,b,S,M){return Ye(He(b,F.length-S),F,S,M)}function k(F,b,S,M){return Ye(Me(b),F,S,M)}function re(F,b,S,M){return Ye(Oe(b),F,S,M)}function ee(F,b,S,M){return Ye(xe(b,F.length-S),F,S,M)}s.prototype.write=function(b,S,M,H){if(S===void 0)H="utf8",M=this.length,S=0;else if(M===void 0&&typeof S=="string")H=S,M=this.length,S=0;else if(isFinite(S))S=S>>>0,isFinite(M)?(M=M>>>0,H===void 0&&(H="utf8")):(H=M,M=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const z=this.length-S;if((M===void 0||M>z)&&(M=z),b.length>0&&(M<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 K(this,b,S,M);case"utf8":case"utf-8":return L(this,b,S,M);case"ascii":case"latin1":case"binary":return k(this,b,S,M);case"base64":return re(this,b,S,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,b,S,M);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 ue(F,b,S){return b===0&&S===F.length?t.fromByteArray(F):t.fromByteArray(F.slice(b,S))}function le(F,b,S){S=Math.min(F.length,S);const M=[];let H=b;for(;H<S;){const z=F[H];let ne=null,we=z>239?4:z>223?3:z>191?2:1;if(H+we<=S){let Re,Ie,Pe,Ae;switch(we){case 1:z<128&&(ne=z);break;case 2:Re=F[H+1],(Re&192)===128&&(Ae=(z&31)<<6|Re&63,Ae>127&&(ne=Ae));break;case 3:Re=F[H+1],Ie=F[H+2],(Re&192)===128&&(Ie&192)===128&&(Ae=(z&15)<<12|(Re&63)<<6|Ie&63,Ae>2047&&(Ae<55296||Ae>57343)&&(ne=Ae));break;case 4:Re=F[H+1],Ie=F[H+2],Pe=F[H+3],(Re&192)===128&&(Ie&192)===128&&(Pe&192)===128&&(Ae=(z&15)<<18|(Re&63)<<12|(Ie&63)<<6|Pe&63,Ae>65535&&Ae<1114112&&(ne=Ae))}}ne===null?(ne=65533,we=1):ne>65535&&(ne-=65536,M.push(ne>>>10&1023|55296),ne=56320|ne&1023),M.push(ne),H+=we}return fe(M)}const de=4096;function fe(F){const b=F.length;if(b<=de)return String.fromCharCode.apply(String,F);let S="",M=0;for(;M<b;)S+=String.fromCharCode.apply(String,F.slice(M,M+=de));return S}function be(F,b,S){let M="";S=Math.min(F.length,S);for(let H=b;H<S;++H)M+=String.fromCharCode(F[H]&127);return M}function pe(F,b,S){let M="";S=Math.min(F.length,S);for(let H=b;H<S;++H)M+=String.fromCharCode(F[H]);return M}function G(F,b,S){const M=F.length;(!b||b<0)&&(b=0),(!S||S<0||S>M)&&(S=M);let H="";for(let z=b;z<S;++z)H+=ft[F[z]];return H}function Z(F,b,S){const M=F.slice(b,S);let H="";for(let z=0;z<M.length-1;z+=2)H+=String.fromCharCode(M[z]+M[z+1]*256);return H}s.prototype.slice=function(b,S){const M=this.length;b=~~b,S=S===void 0?M:~~S,b<0?(b+=M,b<0&&(b=0)):b>M&&(b=M),S<0?(S+=M,S<0&&(S=0)):S>M&&(S=M),S<b&&(S=b);const H=this.subarray(b,S);return Object.setPrototypeOf(H,s.prototype),H};function Q(F,b,S){if(F%1!==0||F<0)throw new RangeError("offset is not uint");if(F+b>S)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(b,S,M){b=b>>>0,S=S>>>0,M||Q(b,S,this.length);let H=this[b],z=1,ne=0;for(;++ne<S&&(z*=256);)H+=this[b+ne]*z;return H},s.prototype.readUintBE=s.prototype.readUIntBE=function(b,S,M){b=b>>>0,S=S>>>0,M||Q(b,S,this.length);let H=this[b+--S],z=1;for(;S>0&&(z*=256);)H+=this[b+--S]*z;return H},s.prototype.readUint8=s.prototype.readUInt8=function(b,S){return b=b>>>0,S||Q(b,1,this.length),this[b]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(b,S){return b=b>>>0,S||Q(b,2,this.length),this[b]|this[b+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(b,S){return b=b>>>0,S||Q(b,2,this.length),this[b]<<8|this[b+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(b,S){return b=b>>>0,S||Q(b,4,this.length),(this[b]|this[b+1]<<8|this[b+2]<<16)+this[b+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(b,S){return b=b>>>0,S||Q(b,4,this.length),this[b]*16777216+(this[b+1]<<16|this[b+2]<<8|this[b+3])},s.prototype.readBigUInt64LE=Ve(function(b){b=b>>>0,ce(b,"offset");const S=this[b],M=this[b+7];(S===void 0||M===void 0)&&he(b,this.length-8);const H=S+this[++b]*2**8+this[++b]*2**16+this[++b]*2**24,z=this[++b]+this[++b]*2**8+this[++b]*2**16+M*2**24;return BigInt(H)+(BigInt(z)<<BigInt(32))}),s.prototype.readBigUInt64BE=Ve(function(b){b=b>>>0,ce(b,"offset");const S=this[b],M=this[b+7];(S===void 0||M===void 0)&&he(b,this.length-8);const H=S*2**24+this[++b]*2**16+this[++b]*2**8+this[++b],z=this[++b]*2**24+this[++b]*2**16+this[++b]*2**8+M;return(BigInt(H)<<BigInt(32))+BigInt(z)}),s.prototype.readIntLE=function(b,S,M){b=b>>>0,S=S>>>0,M||Q(b,S,this.length);let H=this[b],z=1,ne=0;for(;++ne<S&&(z*=256);)H+=this[b+ne]*z;return z*=128,H>=z&&(H-=Math.pow(2,8*S)),H},s.prototype.readIntBE=function(b,S,M){b=b>>>0,S=S>>>0,M||Q(b,S,this.length);let H=S,z=1,ne=this[b+--H];for(;H>0&&(z*=256);)ne+=this[b+--H]*z;return z*=128,ne>=z&&(ne-=Math.pow(2,8*S)),ne},s.prototype.readInt8=function(b,S){return b=b>>>0,S||Q(b,1,this.length),this[b]&128?(255-this[b]+1)*-1:this[b]},s.prototype.readInt16LE=function(b,S){b=b>>>0,S||Q(b,2,this.length);const M=this[b]|this[b+1]<<8;return M&32768?M|4294901760:M},s.prototype.readInt16BE=function(b,S){b=b>>>0,S||Q(b,2,this.length);const M=this[b+1]|this[b]<<8;return M&32768?M|4294901760:M},s.prototype.readInt32LE=function(b,S){return b=b>>>0,S||Q(b,4,this.length),this[b]|this[b+1]<<8|this[b+2]<<16|this[b+3]<<24},s.prototype.readInt32BE=function(b,S){return b=b>>>0,S||Q(b,4,this.length),this[b]<<24|this[b+1]<<16|this[b+2]<<8|this[b+3]},s.prototype.readBigInt64LE=Ve(function(b){b=b>>>0,ce(b,"offset");const S=this[b],M=this[b+7];(S===void 0||M===void 0)&&he(b,this.length-8);const H=this[b+4]+this[b+5]*2**8+this[b+6]*2**16+(M<<24);return(BigInt(H)<<BigInt(32))+BigInt(S+this[++b]*2**8+this[++b]*2**16+this[++b]*2**24)}),s.prototype.readBigInt64BE=Ve(function(b){b=b>>>0,ce(b,"offset");const S=this[b],M=this[b+7];(S===void 0||M===void 0)&&he(b,this.length-8);const H=(S<<24)+this[++b]*2**16+this[++b]*2**8+this[++b];return(BigInt(H)<<BigInt(32))+BigInt(this[++b]*2**24+this[++b]*2**16+this[++b]*2**8+M)}),s.prototype.readFloatLE=function(b,S){return b=b>>>0,S||Q(b,4,this.length),r.read(this,b,!0,23,4)},s.prototype.readFloatBE=function(b,S){return b=b>>>0,S||Q(b,4,this.length),r.read(this,b,!1,23,4)},s.prototype.readDoubleLE=function(b,S){return b=b>>>0,S||Q(b,8,this.length),r.read(this,b,!0,52,8)},s.prototype.readDoubleBE=function(b,S){return b=b>>>0,S||Q(b,8,this.length),r.read(this,b,!1,52,8)};function ae(F,b,S,M,H,z){if(!s.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(b>H||b<z)throw new RangeError('"value" argument is out of bounds');if(S+M>F.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(b,S,M,H){if(b=+b,S=S>>>0,M=M>>>0,!H){const we=Math.pow(2,8*M)-1;ae(this,b,S,M,we,0)}let z=1,ne=0;for(this[S]=b&255;++ne<M&&(z*=256);)this[S+ne]=b/z&255;return S+M},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(b,S,M,H){if(b=+b,S=S>>>0,M=M>>>0,!H){const we=Math.pow(2,8*M)-1;ae(this,b,S,M,we,0)}let z=M-1,ne=1;for(this[S+z]=b&255;--z>=0&&(ne*=256);)this[S+z]=b/ne&255;return S+M},s.prototype.writeUint8=s.prototype.writeUInt8=function(b,S,M){return b=+b,S=S>>>0,M||ae(this,b,S,1,255,0),this[S]=b&255,S+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(b,S,M){return b=+b,S=S>>>0,M||ae(this,b,S,2,65535,0),this[S]=b&255,this[S+1]=b>>>8,S+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(b,S,M){return b=+b,S=S>>>0,M||ae(this,b,S,2,65535,0),this[S]=b>>>8,this[S+1]=b&255,S+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(b,S,M){return b=+b,S=S>>>0,M||ae(this,b,S,4,4294967295,0),this[S+3]=b>>>24,this[S+2]=b>>>16,this[S+1]=b>>>8,this[S]=b&255,S+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(b,S,M){return b=+b,S=S>>>0,M||ae(this,b,S,4,4294967295,0),this[S]=b>>>24,this[S+1]=b>>>16,this[S+2]=b>>>8,this[S+3]=b&255,S+4};function V(F,b,S,M,H){ge(b,M,H,F,S,7);let z=Number(b&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(b>>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,b,S,M,H){ge(b,M,H,F,S,7);let z=Number(b&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(b>>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=Ve(function(b,S=0){return V(this,b,S,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=Ve(function(b,S=0){return R(this,b,S,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(b,S,M,H){if(b=+b,S=S>>>0,!H){const Re=Math.pow(2,8*M-1);ae(this,b,S,M,Re-1,-Re)}let z=0,ne=1,we=0;for(this[S]=b&255;++z<M&&(ne*=256);)b<0&&we===0&&this[S+z-1]!==0&&(we=1),this[S+z]=(b/ne>>0)-we&255;return S+M},s.prototype.writeIntBE=function(b,S,M,H){if(b=+b,S=S>>>0,!H){const Re=Math.pow(2,8*M-1);ae(this,b,S,M,Re-1,-Re)}let z=M-1,ne=1,we=0;for(this[S+z]=b&255;--z>=0&&(ne*=256);)b<0&&we===0&&this[S+z+1]!==0&&(we=1),this[S+z]=(b/ne>>0)-we&255;return S+M},s.prototype.writeInt8=function(b,S,M){return b=+b,S=S>>>0,M||ae(this,b,S,1,127,-128),b<0&&(b=255+b+1),this[S]=b&255,S+1},s.prototype.writeInt16LE=function(b,S,M){return b=+b,S=S>>>0,M||ae(this,b,S,2,32767,-32768),this[S]=b&255,this[S+1]=b>>>8,S+2},s.prototype.writeInt16BE=function(b,S,M){return b=+b,S=S>>>0,M||ae(this,b,S,2,32767,-32768),this[S]=b>>>8,this[S+1]=b&255,S+2},s.prototype.writeInt32LE=function(b,S,M){return b=+b,S=S>>>0,M||ae(this,b,S,4,2147483647,-2147483648),this[S]=b&255,this[S+1]=b>>>8,this[S+2]=b>>>16,this[S+3]=b>>>24,S+4},s.prototype.writeInt32BE=function(b,S,M){return b=+b,S=S>>>0,M||ae(this,b,S,4,2147483647,-2147483648),b<0&&(b=4294967295+b+1),this[S]=b>>>24,this[S+1]=b>>>16,this[S+2]=b>>>8,this[S+3]=b&255,S+4},s.prototype.writeBigInt64LE=Ve(function(b,S=0){return V(this,b,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=Ve(function(b,S=0){return R(this,b,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function O(F,b,S,M,H,z){if(S+M>F.length)throw new RangeError("Index out of range");if(S<0)throw new RangeError("Index out of range")}function $(F,b,S,M,H){return b=+b,S=S>>>0,H||O(F,b,S,4),r.write(F,b,S,M,23,4),S+4}s.prototype.writeFloatLE=function(b,S,M){return $(this,b,S,!0,M)},s.prototype.writeFloatBE=function(b,S,M){return $(this,b,S,!1,M)};function q(F,b,S,M,H){return b=+b,S=S>>>0,H||O(F,b,S,8),r.write(F,b,S,M,52,8),S+8}s.prototype.writeDoubleLE=function(b,S,M){return q(this,b,S,!0,M)},s.prototype.writeDoubleBE=function(b,S,M){return q(this,b,S,!1,M)},s.prototype.copy=function(b,S,M,H){if(!s.isBuffer(b))throw new TypeError("argument should be a Buffer");if(M||(M=0),!H&&H!==0&&(H=this.length),S>=b.length&&(S=b.length),S||(S=0),H>0&&H<M&&(H=M),H===M||b.length===0||this.length===0)return 0;if(S<0)throw new RangeError("targetStart out of bounds");if(M<0||M>=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),b.length-S<H-M&&(H=b.length-S+M);const z=H-M;return this===b&&typeof i.prototype.copyWithin=="function"?this.copyWithin(S,M,H):i.prototype.set.call(b,this.subarray(M,H),S),z},s.prototype.fill=function(b,S,M,H){if(typeof b=="string"){if(typeof S=="string"?(H=S,S=0,M=this.length):typeof M=="string"&&(H=M,M=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(b.length===1){const ne=b.charCodeAt(0);(H==="utf8"&&ne<128||H==="latin1")&&(b=ne)}}else typeof b=="number"?b=b&255:typeof b=="boolean"&&(b=Number(b));if(S<0||this.length<S||this.length<M)throw new RangeError("Out of range index");if(M<=S)return this;S=S>>>0,M=M===void 0?this.length:M>>>0,b||(b=0);let z;if(typeof b=="number")for(z=S;z<M;++z)this[z]=b;else{const ne=s.isBuffer(b)?b:s.from(b,H),we=ne.length;if(we===0)throw new TypeError('The value "'+b+'" is invalid for argument "value"');for(z=0;z<M-S;++z)this[z+S]=ne[z%we]}return this};const B={};function U(F,b,S){B[F]=class extends S{constructor(){super(),Object.defineProperty(this,"message",{value:b.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,b){return`The "${F}" argument must be of type number. Received type ${typeof b}`},TypeError),U("ERR_OUT_OF_RANGE",function(F,b,S){let M=`The value of "${F}" is out of range.`,H=S;return Number.isInteger(S)&&Math.abs(S)>2**32?H=J(String(S)):typeof S=="bigint"&&(H=String(S),(S>BigInt(2)**BigInt(32)||S<-(BigInt(2)**BigInt(32)))&&(H=J(H)),H+="n"),M+=` It must be ${b}. Received ${H}`,M},RangeError);function J(F){let b="",S=F.length;const M=F[0]==="-"?1:0;for(;S>=M+4;S-=3)b=`_${F.slice(S-3,S)}${b}`;return`${F.slice(0,S)}${b}`}function oe(F,b,S){ce(b,"offset"),(F[b]===void 0||F[b+S]===void 0)&&he(b,F.length-(S+1))}function ge(F,b,S,M,H,z){if(F>S||F<b){const ne=typeof b=="bigint"?"n":"";let we;throw b===0||b===BigInt(0)?we=`>= 0${ne} and < 2${ne} ** ${(z+1)*8}${ne}`:we=`>= -(2${ne} ** ${(z+1)*8-1}${ne}) and < 2 ** ${(z+1)*8-1}${ne}`,new B.ERR_OUT_OF_RANGE("value",we,F)}oe(M,H,z)}function ce(F,b){if(typeof F!="number")throw new B.ERR_INVALID_ARG_TYPE(b,"number",F)}function he(F,b,S){throw Math.floor(F)!==F?(ce(F,S),new B.ERR_OUT_OF_RANGE("offset","an integer",F)):b<0?new B.ERR_BUFFER_OUT_OF_BOUNDS:new B.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${b}`,F)}const Ne=/[^+/0-9A-Za-z-_]/g;function te(F){if(F=F.split("=")[0],F=F.trim().replace(Ne,""),F.length<2)return"";for(;F.length%4!==0;)F=F+"=";return F}function He(F,b){b=b||1/0;let S;const M=F.length;let H=null;const z=[];for(let ne=0;ne<M;++ne){if(S=F.charCodeAt(ne),S>55295&&S<57344){if(!H){if(S>56319){(b-=3)>-1&&z.push(239,191,189);continue}else if(ne+1===M){(b-=3)>-1&&z.push(239,191,189);continue}H=S;continue}if(S<56320){(b-=3)>-1&&z.push(239,191,189),H=S;continue}S=(H-55296<<10|S-56320)+65536}else H&&(b-=3)>-1&&z.push(239,191,189);if(H=null,S<128){if((b-=1)<0)break;z.push(S)}else if(S<2048){if((b-=2)<0)break;z.push(S>>6|192,S&63|128)}else if(S<65536){if((b-=3)<0)break;z.push(S>>12|224,S>>6&63|128,S&63|128)}else if(S<1114112){if((b-=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 Me(F){const b=[];for(let S=0;S<F.length;++S)b.push(F.charCodeAt(S)&255);return b}function xe(F,b){let S,M,H;const z=[];for(let ne=0;ne<F.length&&!((b-=2)<0);++ne)S=F.charCodeAt(ne),M=S>>8,H=S%256,z.push(H),z.push(M);return z}function Oe(F){return t.toByteArray(te(F))}function Ye(F,b,S,M){let H;for(H=0;H<M&&!(H+S>=b.length||H>=F.length);++H)b[H+S]=F[H];return H}function Ge(F,b){return F instanceof b||F!=null&&F.constructor!=null&&F.constructor.name!=null&&F.constructor.name===b.name}function ut(F){return F!==F}const ft=(function(){const F="0123456789abcdef",b=new Array(256);for(let S=0;S<16;++S){const M=S*16;for(let H=0;H<16;++H)b[M+H]=F[S]+F[H]}return b})();function Ve(F){return typeof BigInt>"u"?Ot:F}function Ot(){throw new Error("BigInt not supported")}})(vs);const Ht=vs.Buffer;function me(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)}X.inherits(me,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:X.toJSONObject(this.config),code:this.code,status:this.status}}});const xs=me.prototype,As={};["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=>{As[e]={value:e}}),Object.defineProperties(me,As),Object.defineProperty(xs,"isAxiosError",{value:!0}),me.from=(e,t,r,n,o,i)=>{const a=Object.create(xs);X.toFlatObject(e,a,function(s){return s!==Error.prototype},l=>l!=="isAxiosError");const u=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return me.call(a,u,c,r,n,o),e&&a.cause==null&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",i&&Object.assign(a,i),a};var Gf=null;function wn(e){return X.isPlainObject(e)||X.isArray(e)}function Ts(e){return X.endsWith(e,"[]")?e.slice(0,-2):e}function Ss(e,t,r){return e?e.concat(t).map(function(o,i){return o=Ts(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function Kf(e){return X.isArray(e)&&!e.some(wn)}const zf=X.toFlatObject(X,{},null,function(t){return/^is[A-Z]/.test(t)});function Rr(e,t,r){if(!X.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=X.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,T){return!X.isUndefined(T[E])});const n=r.metaTokens,o=r.visitor||s,i=r.dots,a=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&X.isSpecCompliantForm(t);if(!X.isFunction(o))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(X.isDate(m))return m.toISOString();if(X.isBoolean(m))return m.toString();if(!c&&X.isBlob(m))throw new me("Blob is not supported. Use a Buffer instead.");return X.isArrayBuffer(m)||X.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Ht.from(m):m}function s(m,E,T){let y=m;if(m&&!T&&typeof m=="object"){if(X.endsWith(E,"{}"))E=n?E:E.slice(0,-2),m=JSON.stringify(m);else if(X.isArray(m)&&Kf(m)||(X.isFileList(m)||X.endsWith(E,"[]"))&&(y=X.toArray(m)))return E=Ts(E),y.forEach(function(d,g){!(X.isUndefined(d)||d===null)&&t.append(a===!0?Ss([E],g,i):a===null?E:E+"[]",l(d))}),!1}return wn(m)?!0:(t.append(Ss(T,E,i),l(m)),!1)}const f=[],h=Object.assign(zf,{defaultVisitor:s,convertValue:l,isVisitable:wn});function A(m,E){if(!X.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+E.join("."));f.push(m),X.forEach(m,function(y,p){(!(X.isUndefined(y)||y===null)&&o.call(t,y,X.isString(p)?p.trim():p,E,h))===!0&&A(y,E?E.concat(p):[p])}),f.pop()}}if(!X.isObject(e))throw new TypeError("data must be an object");return A(e),t}function _s(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function vn(e,t){this._pairs=[],e&&Rr(e,this,t)}const Ns=vn.prototype;Ns.append=function(t,r){this._pairs.push([t,r])},Ns.toString=function(t){const r=t?function(n){return t.call(this,n,_s)}:_s;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Xf(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Os(e,t,r){if(!t)return e;const n=r&&r.encode||Xf;X.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(o?i=o(t,r):i=X.isURLSearchParams(t)?t.toString():new vn(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Rs{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){X.forEach(this.handlers,function(n){n!==null&&t(n)})}}var Is={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Yf=typeof URLSearchParams<"u"?URLSearchParams:vn,Jf=typeof FormData<"u"?FormData:null,Zf=typeof Blob<"u"?Blob:null,Qf={isBrowser:!0,classes:{URLSearchParams:Yf,FormData:Jf,Blob:Zf},protocols:["http","https","file","blob","url","data"]};const En=typeof window<"u"&&typeof document<"u",xn=typeof navigator=="object"&&navigator||void 0,eh=En&&(!xn||["ReactNative","NativeScript","NS"].indexOf(xn.product)<0),th=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",rh=En&&window.location.href||"http://localhost";var nh=Object.freeze({__proto__:null,hasBrowserEnv:En,hasStandardBrowserEnv:eh,hasStandardBrowserWebWorkerEnv:th,navigator:xn,origin:rh}),Ke={...nh,...Qf};function ih(e,t){return Rr(e,new Ke.classes.URLSearchParams,{visitor:function(r,n,o,i){return Ke.isNode&&X.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function oh(e){return X.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function sh(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 Ps(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&&X.isArray(o)?o.length:a,c?(X.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!u):((!o[a]||!X.isObject(o[a]))&&(o[a]=[]),t(r,n,o[a],i)&&X.isArray(o[a])&&(o[a]=sh(o[a])),!u)}if(X.isFormData(e)&&X.isFunction(e.entries)){const r={};return X.forEachEntry(e,(n,o)=>{t(oh(n),o,r,0)}),r}return null}function ah(e,t,r){if(X.isString(e))try{return(t||JSON.parse)(e),X.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const or={transitional:Is,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=X.isObject(t);if(i&&X.isHTMLForm(t)&&(t=new FormData(t)),X.isFormData(t))return o?JSON.stringify(Ps(t)):t;if(X.isArrayBuffer(t)||X.isBuffer(t)||X.isStream(t)||X.isFile(t)||X.isBlob(t)||X.isReadableStream(t))return t;if(X.isArrayBufferView(t))return t.buffer;if(X.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 ih(t,this.formSerializer).toString();if((u=X.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Rr(u?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),ah(t)):t}],transformResponse:[function(t){const r=this.transitional||or.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(X.isResponse(t)||X.isReadableStream(t))return t;if(t&&X.isString(t)&&(n&&!this.responseType||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(u){if(a)throw u.name==="SyntaxError"?me.from(u,me.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:Ke.classes.FormData,Blob:Ke.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};X.forEach(["delete","get","head","post","put","patch"],e=>{or.headers[e]={}});const uh=X.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 lh=e=>{const t={};let r,n,o;return e&&e.split(`
|
|
2
|
+
`).forEach(function(a){o=a.indexOf(":"),r=a.substring(0,o).trim().toLowerCase(),n=a.substring(o+1).trim(),!(!r||t[r]&&uh[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t};const Fs=Symbol("internals");function sr(e){return e&&String(e).trim().toLowerCase()}function Ir(e){return e===!1||e==null?e:X.isArray(e)?e.map(Ir):String(e)}function ch(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 fh=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function An(e,t,r,n,o){if(X.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!X.isString(t)){if(X.isString(n))return t.indexOf(n)!==-1;if(X.isRegExp(n))return n.test(t)}}function hh(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function dh(e,t){const r=X.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 rt=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(u,c,l){const s=sr(c);if(!s)throw new Error("header name must be a non-empty string");const f=X.findKey(o,s);(!f||o[f]===void 0||l===!0||l===void 0&&o[f]!==!1)&&(o[f||c]=Ir(u))}const a=(u,c)=>X.forEach(u,(l,s)=>i(l,s,c));if(X.isPlainObject(t)||t instanceof this.constructor)a(t,r);else if(X.isString(t)&&(t=t.trim())&&!fh(t))a(lh(t),r);else if(X.isObject(t)&&X.isIterable(t)){let u={},c,l;for(const s of t){if(!X.isArray(s))throw TypeError("Object iterator must return a key-value pair");u[l=s[0]]=(c=u[l])?X.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=sr(t),t){const n=X.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return ch(o);if(X.isFunction(r))return r.call(this,o,n);if(X.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=sr(t),t){const n=X.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||An(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(a){if(a=sr(a),a){const u=X.findKey(n,a);u&&(!r||An(n,n[u],u,r))&&(delete n[u],o=!0)}}return X.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||An(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return X.forEach(this,(o,i)=>{const a=X.findKey(n,i);if(a){r[a]=Ir(o),delete r[i];return}const u=t?hh(i):String(i).trim();u!==i&&delete r[i],r[u]=Ir(o),n[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return X.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&X.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(`
|
|
3
|
+
`)}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[Fs]=this[Fs]={accessors:{}}).accessors,o=this.prototype;function i(a){const u=sr(a);n[u]||(dh(o,a),n[u]=!0)}return X.isArray(t)?t.forEach(i):i(t),this}};rt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),X.reduceDescriptors(rt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),X.freezeMethods(rt);function Tn(e,t){const r=this||or,n=t||r,o=rt.from(n.headers);let i=n.data;return X.forEach(e,function(u){i=u.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Cs(e){return!!(e&&e.__CANCEL__)}function Vt(e,t,r){me.call(this,e??"canceled",me.ERR_CANCELED,t,r),this.name="CanceledError"}X.inherits(Vt,me,{__CANCEL__:!0});function Bs(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new me("Request failed with status code "+r.status,[me.ERR_BAD_REQUEST,me.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function ph(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function gh(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 A=s&&l-s;return A?Math.round(h*1e3/A):void 0}}function yh(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(...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 Pr=(e,t,r=3)=>{let n=0;const o=gh(50,250);return yh(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)},Ls=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Us=e=>(...t)=>X.asap(()=>e(...t));var mh=Ke.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Ke.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Ke.origin),Ke.navigator&&/(msie|trident)/i.test(Ke.navigator.userAgent)):()=>!0,bh=Ke.hasStandardBrowserEnv?{write(e,t,r,n,o,i,a){if(typeof document>"u")return;const u=[`${e}=${encodeURIComponent(t)}`];X.isNumber(r)&&u.push(`expires=${new Date(r).toUTCString()}`),X.isString(n)&&u.push(`path=${n}`),X.isString(o)&&u.push(`domain=${o}`),i===!0&&u.push("secure"),X.isString(a)&&u.push(`SameSite=${a}`),document.cookie=u.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function wh(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function vh(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function js(e,t,r){let n=!wh(t);return e&&(n||r==!1)?vh(e,t):t}const ks=e=>e instanceof rt?{...e}:e;function Ft(e,t){t=t||{};const r={};function n(l,s,f,h){return X.isPlainObject(l)&&X.isPlainObject(s)?X.merge.call({caseless:h},l,s):X.isPlainObject(s)?X.merge({},s):X.isArray(s)?s.slice():s}function o(l,s,f,h){if(X.isUndefined(s)){if(!X.isUndefined(l))return n(void 0,l,f,h)}else return n(l,s,f,h)}function i(l,s){if(!X.isUndefined(s))return n(void 0,s)}function a(l,s){if(X.isUndefined(s)){if(!X.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(ks(l),ks(s),f,!0)};return X.forEach(Object.keys({...e,...t}),function(s){const f=c[s]||o,h=f(e[s],t[s],s);X.isUndefined(h)&&f!==u||(r[s]=h)}),r}var Ms=e=>{const t=Ft({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:u}=t;if(t.headers=a=rt.from(a),t.url=Os(js(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),X.isFormData(r)){if(Ke.hasStandardBrowserEnv||Ke.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(X.isFunction(r.getHeaders)){const c=r.getHeaders(),l=["content-type","content-length"];Object.entries(c).forEach(([s,f])=>{l.includes(s.toLowerCase())&&a.set(s,f)})}}if(Ke.hasStandardBrowserEnv&&(n&&X.isFunction(n)&&(n=n(t)),n||n!==!1&&mh(t.url))){const c=o&&i&&bh.read(i);c&&a.set(o,c)}return t},Eh=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=Ms(e);let i=o.data;const a=rt.from(o.headers).normalize();let{responseType:u,onUploadProgress:c,onDownloadProgress:l}=o,s,f,h,A,m;function E(){A&&A(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(s),o.signal&&o.signal.removeEventListener("abort",s)}let T=new XMLHttpRequest;T.open(o.method.toUpperCase(),o.url,!0),T.timeout=o.timeout;function y(){if(!T)return;const d=rt.from("getAllResponseHeaders"in T&&T.getAllResponseHeaders()),v={data:!u||u==="text"||u==="json"?T.responseText:T.response,status:T.status,statusText:T.statusText,headers:d,config:e,request:T};Bs(function(I){r(I),E()},function(I){n(I),E()},v),T=null}"onloadend"in T?T.onloadend=y:T.onreadystatechange=function(){!T||T.readyState!==4||T.status===0&&!(T.responseURL&&T.responseURL.indexOf("file:")===0)||setTimeout(y)},T.onabort=function(){T&&(n(new me("Request aborted",me.ECONNABORTED,e,T)),T=null)},T.onerror=function(g){const v=g&&g.message?g.message:"Network Error",x=new me(v,me.ERR_NETWORK,e,T);x.event=g||null,n(x),T=null},T.ontimeout=function(){let g=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const v=o.transitional||Is;o.timeoutErrorMessage&&(g=o.timeoutErrorMessage),n(new me(g,v.clarifyTimeoutError?me.ETIMEDOUT:me.ECONNABORTED,e,T)),T=null},i===void 0&&a.setContentType(null),"setRequestHeader"in T&&X.forEach(a.toJSON(),function(g,v){T.setRequestHeader(v,g)}),X.isUndefined(o.withCredentials)||(T.withCredentials=!!o.withCredentials),u&&u!=="json"&&(T.responseType=o.responseType),l&&([h,m]=Pr(l,!0),T.addEventListener("progress",h)),c&&T.upload&&([f,A]=Pr(c),T.upload.addEventListener("progress",f),T.upload.addEventListener("loadend",A)),(o.cancelToken||o.signal)&&(s=d=>{T&&(n(!d||d.type?new Vt(null,e,T):d),T.abort(),T=null)},o.cancelToken&&o.cancelToken.subscribe(s),o.signal&&(o.signal.aborted?s():o.signal.addEventListener("abort",s)));const p=ph(o.url);if(p&&Ke.protocols.indexOf(p)===-1){n(new me("Unsupported protocol "+p+":",me.ERR_BAD_REQUEST,e));return}T.send(i||null)})};const xh=(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 me?s:new Vt(s instanceof Error?s.message:s))}};let a=t&&setTimeout(()=>{a=null,i(new me(`timeout ${t} of ms exceeded`,me.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=()=>X.asap(u),c}},Ah=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},Th=async function*(e,t){for await(const r of Sh(e))yield*Ah(r,t)},Sh=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()}},Ds=(e,t,r,n)=>{const o=Th(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})},qs=64*1024,{isFunction:Fr}=X,_h=(({Request:e,Response:t})=>({Request:e,Response:t}))(X.global),{ReadableStream:$s,TextEncoder:Hs}=X.global,Vs=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Nh=e=>{e=X.merge.call({skipUndefined:!0},_h,e);const{fetch:t,Request:r,Response:n}=e,o=t?Fr(t):typeof fetch=="function",i=Fr(r),a=Fr(n);if(!o)return!1;const u=o&&Fr($s),c=o&&(typeof Hs=="function"?(m=>E=>m.encode(E))(new Hs):async m=>new Uint8Array(await new r(m).arrayBuffer())),l=i&&u&&Vs(()=>{let m=!1;const E=new r(Ke.origin,{body:new $s,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return m&&!E}),s=a&&u&&Vs(()=>X.isReadableStream(new n("").body)),f={stream:s&&(m=>m.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!f[m]&&(f[m]=(E,T)=>{let y=E&&E[m];if(y)return y.call(E);throw new me(`Response type '${m}' is not supported`,me.ERR_NOT_SUPPORT,T)})});const h=async m=>{if(m==null)return 0;if(X.isBlob(m))return m.size;if(X.isSpecCompliantForm(m))return(await new r(Ke.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(X.isArrayBufferView(m)||X.isArrayBuffer(m))return m.byteLength;if(X.isURLSearchParams(m)&&(m=m+""),X.isString(m))return(await c(m)).byteLength},A=async(m,E)=>{const T=X.toFiniteNumber(m.getContentLength());return T??h(E)};return async m=>{let{url:E,method:T,data:y,signal:p,cancelToken:d,timeout:g,onDownloadProgress:v,onUploadProgress:x,responseType:I,headers:P,withCredentials:N="same-origin",fetchOptions:j}=Ms(m),K=t||fetch;I=I?(I+"").toLowerCase():"text";let L=xh([p,d&&d.toAbortSignal()],g),k=null;const re=L&&L.unsubscribe&&(()=>{L.unsubscribe()});let ee;try{if(x&&l&&T!=="get"&&T!=="head"&&(ee=await A(P,y))!==0){let pe=new r(E,{method:"POST",body:y,duplex:"half"}),G;if(X.isFormData(y)&&(G=pe.headers.get("content-type"))&&P.setContentType(G),pe.body){const[Z,Q]=Ls(ee,Pr(Us(x)));y=Ds(pe.body,qs,Z,Q)}}X.isString(N)||(N=N?"include":"omit");const ue=i&&"credentials"in r.prototype,le={...j,signal:L,method:T.toUpperCase(),headers:P.normalize().toJSON(),body:y,duplex:"half",credentials:ue?N:void 0};k=i&&new r(E,le);let de=await(i?K(k,j):K(E,le));const fe=s&&(I==="stream"||I==="response");if(s&&(v||fe&&re)){const pe={};["status","statusText","headers"].forEach(ae=>{pe[ae]=de[ae]});const G=X.toFiniteNumber(de.headers.get("content-length")),[Z,Q]=v&&Ls(G,Pr(Us(v),!0))||[];de=new n(Ds(de.body,qs,Z,()=>{Q&&Q(),re&&re()}),pe)}I=I||"text";let be=await f[X.findKey(f,I)||"text"](de,m);return!fe&&re&&re(),await new Promise((pe,G)=>{Bs(pe,G,{data:be,headers:rt.from(de.headers),status:de.status,statusText:de.statusText,config:m,request:k})})}catch(ue){throw re&&re(),ue&&ue.name==="TypeError"&&/Load failed|fetch/i.test(ue.message)?Object.assign(new me("Network Error",me.ERR_NETWORK,m,k),{cause:ue.cause||ue}):me.from(ue,ue&&ue.code,m,k)}}},Oh=new Map,Ws=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let a=i.length,u=a,c,l,s=Oh;for(;u--;)c=i[u],l=s.get(c),l===void 0&&s.set(c,l=u?new Map:Nh(t)),s=l;return l};Ws();const Sn={http:Gf,xhr:Eh,fetch:{get:Ws}};X.forEach(Sn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Gs=e=>`- ${e}`,Rh=e=>X.isFunction(e)||e===null||e===!1;function Ih(e,t){e=X.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let a=0;a<r;a++){n=e[a];let u;if(o=n,!Rh(n)&&(o=Sn[(u=String(n)).toLowerCase()],o===void 0))throw new me(`Unknown adapter '${u}'`);if(o&&(X.isFunction(o)||(o=o.get(t))))break;i[u||"#"+a]=o}if(!o){const a=Object.entries(i).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let u=r?a.length>1?`since :
|
|
4
|
+
`+a.map(Gs).join(`
|
|
5
|
+
`):" "+Gs(a[0]):"as no adapter specified";throw new me("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return o}var Ks={getAdapter:Ih,adapters:Sn};function _n(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Vt(null,e)}function zs(e){return _n(e),e.headers=rt.from(e.headers),e.data=Tn.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ks.getAdapter(e.adapter||or.adapter,e)(e).then(function(n){return _n(e),n.data=Tn.call(e,e.transformResponse,n),n.headers=rt.from(n.headers),n},function(n){return Cs(n)||(_n(e),n&&n.response&&(n.response.data=Tn.call(e,e.transformResponse,n.response),n.response.headers=rt.from(n.response.headers))),Promise.reject(n)})}const Xs="1.13.2",Cr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Cr[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Ys={};Cr.transitional=function(t,r,n){function o(i,a){return"[Axios v"+Xs+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,u)=>{if(t===!1)throw new me(o(a," has been removed"+(r?" in "+r:"")),me.ERR_DEPRECATED);return r&&!Ys[a]&&(Ys[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}},Cr.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function Ph(e,t,r){if(typeof e!="object")throw new me("options must be an object",me.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 me("option "+i+" must be "+c,me.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new me("Unknown option "+i,me.ERR_BAD_OPTION)}}var Br={assertOptions:Ph,validators:Cr};const gt=Br.validators;let Ct=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Rs,response:new Rs}}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+=`
|
|
6
|
+
`+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ft(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&Br.assertOptions(n,{silentJSONParsing:gt.transitional(gt.boolean),forcedJSONParsing:gt.transitional(gt.boolean),clarifyTimeoutError:gt.transitional(gt.boolean)},!1),o!=null&&(X.isFunction(o)?r.paramsSerializer={serialize:o}:Br.assertOptions(o,{encode:gt.function,serialize:gt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Br.assertOptions(r,{baseUrl:gt.spelling("baseURL"),withXsrfToken:gt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=i&&X.merge(i.common,i[r.method]);i&&X.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),r.headers=rt.concat(a,i);const u=[];let c=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(r)===!1||(c=c&&E.synchronous,u.unshift(E.fulfilled,E.rejected))});const l=[];this.interceptors.response.forEach(function(E){l.push(E.fulfilled,E.rejected)});let s,f=0,h;if(!c){const m=[zs.bind(this),void 0];for(m.unshift(...u),m.push(...l),h=m.length,s=Promise.resolve(r);f<h;)s=s.then(m[f++],m[f++]);return s}h=u.length;let A=r;for(;f<h;){const m=u[f++],E=u[f++];try{A=m(A)}catch(T){E.call(this,T);break}}try{s=zs.call(this,A)}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=Ft(this.defaults,t);const r=js(t.baseURL,t.url,t.allowAbsoluteUrls);return Os(r,t.params,t.paramsSerializer)}};X.forEach(["delete","get","head","options"],function(t){Ct.prototype[t]=function(r,n){return this.request(Ft(n||{},{method:t,url:r,data:(n||{}).data}))}}),X.forEach(["post","put","patch"],function(t){function r(n){return function(i,a,u){return this.request(Ft(u||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Ct.prototype[t]=r(),Ct.prototype[t+"Form"]=r(!0)});let Fh=class qc{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 Vt(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 qc(function(o){t=o}),cancel:t}}};function Ch(e){return function(r){return e.apply(null,r)}}function Bh(e){return X.isObject(e)&&e.isAxiosError===!0}const Nn={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Nn).forEach(([e,t])=>{Nn[t]=e});function Js(e){const t=new Ct(e),r=fs(Ct.prototype.request,t);return X.extend(r,Ct.prototype,t,{allOwnKeys:!0}),X.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Js(Ft(e,o))},r}const ke=Js(or);ke.Axios=Ct,ke.CanceledError=Vt,ke.CancelToken=Fh,ke.isCancel=Cs,ke.VERSION=Xs,ke.toFormData=Rr,ke.AxiosError=me,ke.Cancel=ke.CanceledError,ke.all=function(t){return Promise.all(t)},ke.spread=Ch,ke.isAxiosError=Bh,ke.mergeConfig=Ft,ke.AxiosHeaders=rt,ke.formToJSON=e=>Ps(X.isHTMLForm(e)?new FormData(e):e),ke.getAdapter=Ks.getAdapter,ke.HttpStatusCode=Nn,ke.default=ke;const{Axios:ub,AxiosError:lb,CanceledError:cb,isCancel:fb,CancelToken:hb,VERSION:db,all:pb,Cancel:gb,isAxiosError:yb,spread:mb,toFormData:bb,AxiosHeaders:wb,HttpStatusCode:vb,formToJSON:Eb,getAdapter:xb,mergeConfig:Ab}=ke,Lr=e=>encodeURIComponent(e).split("%2F").join("/"),Lh=/^(\w+:\/\/[^/?]+)?(.*?)$/,Uh=e=>e.filter(t=>typeof t=="string"||typeof t=="number").map(t=>`${t}`).filter(t=>t),jh=e=>{const t=e.join("/"),[,r="",n=""]=t.match(Lh)||[];return{prefix:r,pathname:{parts:n.split("/").filter(o=>o!==""),hasLeading:/^\/+/.test(n),hasTrailing:/\/+$/.test(n)}}},kh=(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},Ee=(...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=Uh(e);const n=jh(e);return kh(n,r)};class Zs extends Error{response;statusCode;constructor(t,r,n=null){super(t),this.response=r,this.statusCode=n}}class Mh extends Zs{errorCode;constructor(t,r,n,o=null){super(t,n,o),this.errorCode=r}}function Dh(e,t=""){return`/public-files/${e}/${t}`.split("/").filter(Boolean).join("/")}function qh(e,t=""){return`/ocm/${e}/${t}`.split("/").filter(Boolean).join("/")}var On,Qs;function $h(){if(Qs)return On;Qs=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=ye.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,A=l<h?l:h,m=-1,E=0;E<=A;++E){if(E===A){if(h>A){if(a.charCodeAt(s+E)===47)return a.slice(s+E+1);if(E===0)return a.slice(s+E)}else l>A&&(i.charCodeAt(u+E)===47?m=E:E===0&&(m=0));break}var T=i.charCodeAt(u+E),y=a.charCodeAt(s+E);if(T!==y)break;T===47&&(m=E)}var p="";for(E=u+m+1;E<=c;++E)(E===c||i.charCodeAt(E)===47)&&(p.length===0?p+="..":p+="/..");return p.length>0?p+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 A=i.charCodeAt(s);if(A===47){if(!l){u=s+1;break}}else h===-1&&(l=!1,h=s+1),f>=0&&(A===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,A=!0,m=i.length-1,E=0;m>=l;--m){if(u=i.charCodeAt(m),u===47){if(!A){f=m+1;break}continue}h===-1&&(A=!1,h=m+1),u===46?s===-1?s=m:E!==1&&(E=1):s!==-1&&(E=-1)}return s===-1||h===-1||E===0||E===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,On=n,On}var ea=$h(),ta=cn(ea);class ct{static Shared="S";static Shareable="R";static Mounted="M";static Deletable="D";static Renameable="N";static Moveable="V";static Updateable="NV";static FileUpdateable="W";static FolderCreateable="CK";static Deny="Z";static SecureView="X"}var vt=(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))(vt||{});const Ur=e=>({value:e,type:null}),Hh=e=>Ur(e),Te=e=>Ur(e),jr=e=>Ur(e),Vh=e=>Ur(e),Wh={Permissions:Te("permissions"),IsFavorite:jr("favorite"),FileId:Te("fileid"),FileParent:Te("file-parent"),Name:Te("name"),OwnerId:Te("owner-id"),OwnerDisplayName:Te("owner-display-name"),PrivateLink:Te("privatelink"),ContentLength:jr("getcontentlength"),ContentSize:jr("size"),LastModifiedDate:Te("getlastmodified"),Tags:Hh("tags"),Audio:{value:"audio",type:null},Location:{value:"location",type:null},Image:{value:"image",type:null},Photo:{value:"photo",type:null},ETag:Te("getetag"),MimeType:Te("getcontenttype"),ResourceType:Vh("resourcetype"),LockDiscovery:{value:"lockdiscovery",type:null},LockOwner:Te("owner"),LockTime:Te("locktime"),ActiveLock:{value:"activelock",type:null},DownloadURL:Te("downloadURL"),Highlights:Te("highlights"),MetaPathForUser:Te("meta-path-for-user"),RemoteItemId:Te("remote-item-id"),HasPreview:jr("has-preview"),ShareId:Te("shareid"),ShareRoot:Te("shareroot"),ShareTypes:{value:"share-types",type:null},SharePermissions:Te("share-permissions"),TrashbinOriginalFilename:Te("trashbin-original-filename"),TrashbinOriginalLocation:Te("trashbin-original-location"),TrashbinDeletedDate:Te("trashbin-delete-datetime"),PublicLinkItemType:Te("public-link-item-type"),PublicLinkPermission:Te("public-link-permission"),PublicLinkExpiration:Te("public-link-expiration"),PublicLinkShareDate:Te("public-link-share-datetime"),PublicLinkShareOwner:Te("public-link-share-owner")},se=Object.fromEntries(Object.entries(Wh).map(([e,t])=>[e,t.value]));class Bt{static Default=[se.Permissions,se.IsFavorite,se.FileId,se.FileParent,se.Name,se.LockDiscovery,se.ActiveLock,se.OwnerId,se.OwnerDisplayName,se.RemoteItemId,se.ShareRoot,se.ShareTypes,se.PrivateLink,se.ContentLength,se.ContentSize,se.LastModifiedDate,se.ETag,se.MimeType,se.ResourceType,se.Tags,se.Audio,se.Location,se.Image,se.Photo,se.HasPreview];static PublicLink=Bt.Default.concat([se.PublicLinkItemType,se.PublicLinkPermission,se.PublicLinkExpiration,se.PublicLinkShareDate,se.PublicLinkShareOwner]);static Trashbin=[se.ContentLength,se.ResourceType,se.TrashbinOriginalLocation,se.TrashbinOriginalFilename,se.TrashbinDeletedDate,se.Permissions,se.FileParent];static DavNamespace=[se.ContentLength,se.LastModifiedDate,se.ETag,se.MimeType,se.ResourceType,se.LockDiscovery,se.ActiveLock]}var Gh=typeof mt=="object"&&mt&&mt.Object===Object&&mt,Kh=typeof self=="object"&&self&&self.Object===Object&&self,Rn=Gh||Kh||Function("return this")(),Wt=Rn.Symbol,ra=Object.prototype,zh=ra.hasOwnProperty,Xh=ra.toString,ar=Wt?Wt.toStringTag:void 0;function Yh(e){var t=zh.call(e,ar),r=e[ar];try{e[ar]=void 0;var n=!0}catch{}var o=Xh.call(e);return n&&(t?e[ar]=r:delete e[ar]),o}var Jh=Object.prototype,Zh=Jh.toString;function Qh(e){return Zh.call(e)}var ed="[object Null]",td="[object Undefined]",na=Wt?Wt.toStringTag:void 0;function ia(e){return e==null?e===void 0?td:ed:na&&na in Object(e)?Yh(e):Qh(e)}function rd(e){return e!=null&&typeof e=="object"}var nd="[object Symbol]";function In(e){return typeof e=="symbol"||rd(e)&&ia(e)==nd}function id(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 Pn=Array.isArray,oa=Wt?Wt.prototype:void 0,sa=oa?oa.toString:void 0;function aa(e){if(typeof e=="string")return e;if(Pn(e))return id(e,aa)+"";if(In(e))return sa?sa.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ua(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var od="[object AsyncFunction]",sd="[object Function]",ad="[object GeneratorFunction]",ud="[object Proxy]";function ld(e){if(!ua(e))return!1;var t=ia(e);return t==sd||t==ad||t==od||t==ud}var Fn=Rn["__core-js_shared__"],la=(function(){var e=/[^.]+$/.exec(Fn&&Fn.keys&&Fn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function cd(e){return!!la&&la in e}var fd=Function.prototype,hd=fd.toString;function dd(e){if(e!=null){try{return hd.call(e)}catch{}try{return e+""}catch{}}return""}var pd=/[\\^$.*+?()[\]{}|]/g,gd=/^\[object .+?Constructor\]$/,yd=Function.prototype,md=Object.prototype,bd=yd.toString,wd=md.hasOwnProperty,vd=RegExp("^"+bd.call(wd).replace(pd,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ed(e){if(!ua(e)||cd(e))return!1;var t=ld(e)?vd:gd;return t.test(dd(e))}function xd(e,t){return e?.[t]}function ca(e,t){var r=xd(e,t);return Ed(r)?r:void 0}function Ad(e,t){return e===t||e!==e&&t!==t}var Td=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Sd=/^\w*$/;function _d(e,t){if(Pn(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||In(e)?!0:Sd.test(e)||!Td.test(e)||t!=null&&e in Object(t)}var ur=ca(Object,"create");function Nd(){this.__data__=ur?ur(null):{},this.size=0}function Od(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Rd="__lodash_hash_undefined__",Id=Object.prototype,Pd=Id.hasOwnProperty;function Fd(e){var t=this.__data__;if(ur){var r=t[e];return r===Rd?void 0:r}return Pd.call(t,e)?t[e]:void 0}var Cd=Object.prototype,Bd=Cd.hasOwnProperty;function Ld(e){var t=this.__data__;return ur?t[e]!==void 0:Bd.call(t,e)}var Ud="__lodash_hash_undefined__";function jd(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ur&&t===void 0?Ud:t,this}function Lt(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])}}Lt.prototype.clear=Nd,Lt.prototype.delete=Od,Lt.prototype.get=Fd,Lt.prototype.has=Ld,Lt.prototype.set=jd;function kd(){this.__data__=[],this.size=0}function kr(e,t){for(var r=e.length;r--;)if(Ad(e[r][0],t))return r;return-1}var Md=Array.prototype,Dd=Md.splice;function qd(e){var t=this.__data__,r=kr(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Dd.call(t,r,1),--this.size,!0}function $d(e){var t=this.__data__,r=kr(t,e);return r<0?void 0:t[r][1]}function Hd(e){return kr(this.__data__,e)>-1}function Vd(e,t){var r=this.__data__,n=kr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Gt(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])}}Gt.prototype.clear=kd,Gt.prototype.delete=qd,Gt.prototype.get=$d,Gt.prototype.has=Hd,Gt.prototype.set=Vd;var Wd=ca(Rn,"Map");function Gd(){this.size=0,this.__data__={hash:new Lt,map:new(Wd||Gt),string:new Lt}}function Kd(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Mr(e,t){var r=e.__data__;return Kd(t)?r[typeof t=="string"?"string":"hash"]:r.map}function zd(e){var t=Mr(this,e).delete(e);return this.size-=t?1:0,t}function Xd(e){return Mr(this,e).get(e)}function Yd(e){return Mr(this,e).has(e)}function Jd(e,t){var r=Mr(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Ut(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])}}Ut.prototype.clear=Gd,Ut.prototype.delete=zd,Ut.prototype.get=Xd,Ut.prototype.has=Yd,Ut.prototype.set=Jd;var Zd="Expected a function";function Cn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Zd);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(Cn.Cache||Ut),r}Cn.Cache=Ut;var Qd=500;function ep(e){var t=Cn(e,function(n){return r.size===Qd&&r.clear(),n}),r=t.cache;return t}var tp=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rp=/\\(\\)?/g,np=ep(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(tp,function(r,n,o,i){t.push(o?i.replace(rp,"$1"):n||r)}),t});function lr(e){return e==null?"":aa(e)}function ip(e,t){return Pn(e)?e:_d(e,t)?[e]:np(lr(e))}function op(e){if(typeof e=="string"||In(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function sp(e,t){t=ip(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[op(t[r++])];return r&&r==n?e:void 0}function ap(e,t,r){var n=e==null?void 0:sp(e,t);return n===void 0?r:n}function up(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 lp(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:up(e,t,r)}var cp="\\ud800-\\udfff",fp="\\u0300-\\u036f",hp="\\ufe20-\\ufe2f",dp="\\u20d0-\\u20ff",pp=fp+hp+dp,gp="\\ufe0e\\ufe0f",yp="\\u200d",mp=RegExp("["+yp+cp+pp+gp+"]");function fa(e){return mp.test(e)}function bp(e){return e.split("")}var ha="\\ud800-\\udfff",wp="\\u0300-\\u036f",vp="\\ufe20-\\ufe2f",Ep="\\u20d0-\\u20ff",xp=wp+vp+Ep,Ap="\\ufe0e\\ufe0f",Tp="["+ha+"]",Bn="["+xp+"]",Ln="\\ud83c[\\udffb-\\udfff]",Sp="(?:"+Bn+"|"+Ln+")",da="[^"+ha+"]",pa="(?:\\ud83c[\\udde6-\\uddff]){2}",ga="[\\ud800-\\udbff][\\udc00-\\udfff]",_p="\\u200d",ya=Sp+"?",ma="["+Ap+"]?",Np="(?:"+_p+"(?:"+[da,pa,ga].join("|")+")"+ma+ya+")*",Op=ma+ya+Np,Rp="(?:"+[da+Bn+"?",Bn,pa,ga,Tp].join("|")+")",Ip=RegExp(Ln+"(?="+Ln+")|"+Rp+Op,"g");function Pp(e){return e.match(Ip)||[]}function Fp(e){return fa(e)?Pp(e):bp(e)}function Cp(e){return function(t){t=lr(t);var r=fa(t)?Fp(t):void 0,n=r?r[0]:t.charAt(0),o=r?lp(r,1).join(""):t.slice(1);return n[e]()+o}}var Bp=Cp("toUpperCase");function Lp(e){return Bp(lr(e).toLowerCase())}function Up(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 jp(e){return function(t){return e?.[t]}}var kp={À:"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"},Mp=jp(kp),Dp=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,qp="\\u0300-\\u036f",$p="\\ufe20-\\ufe2f",Hp="\\u20d0-\\u20ff",Vp=qp+$p+Hp,Wp="["+Vp+"]",Gp=RegExp(Wp,"g");function Kp(e){return e=lr(e),e&&e.replace(Dp,Mp).replace(Gp,"")}var zp=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Xp(e){return e.match(zp)||[]}var Yp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Jp(e){return Yp.test(e)}var ba="\\ud800-\\udfff",Zp="\\u0300-\\u036f",Qp="\\ufe20-\\ufe2f",eg="\\u20d0-\\u20ff",tg=Zp+Qp+eg,wa="\\u2700-\\u27bf",va="a-z\\xdf-\\xf6\\xf8-\\xff",rg="\\xac\\xb1\\xd7\\xf7",ng="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ig="\\u2000-\\u206f",og=" \\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",Ea="A-Z\\xc0-\\xd6\\xd8-\\xde",sg="\\ufe0e\\ufe0f",xa=rg+ng+ig+og,Aa="['’]",Ta="["+xa+"]",ag="["+tg+"]",Sa="\\d+",ug="["+wa+"]",_a="["+va+"]",Na="[^"+ba+xa+Sa+wa+va+Ea+"]",lg="\\ud83c[\\udffb-\\udfff]",cg="(?:"+ag+"|"+lg+")",fg="[^"+ba+"]",Oa="(?:\\ud83c[\\udde6-\\uddff]){2}",Ra="[\\ud800-\\udbff][\\udc00-\\udfff]",Kt="["+Ea+"]",hg="\\u200d",Ia="(?:"+_a+"|"+Na+")",dg="(?:"+Kt+"|"+Na+")",Pa="(?:"+Aa+"(?:d|ll|m|re|s|t|ve))?",Fa="(?:"+Aa+"(?:D|LL|M|RE|S|T|VE))?",Ca=cg+"?",Ba="["+sg+"]?",pg="(?:"+hg+"(?:"+[fg,Oa,Ra].join("|")+")"+Ba+Ca+")*",gg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",yg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",mg=Ba+Ca+pg,bg="(?:"+[ug,Oa,Ra].join("|")+")"+mg,wg=RegExp([Kt+"?"+_a+"+"+Pa+"(?="+[Ta,Kt,"$"].join("|")+")",dg+"+"+Fa+"(?="+[Ta,Kt+Ia,"$"].join("|")+")",Kt+"?"+Ia+"+"+Pa,Kt+"+"+Fa,yg,gg,Sa,bg].join("|"),"g");function vg(e){return e.match(wg)||[]}function Eg(e,t,r){return e=lr(e),t=t,t===void 0?Jp(e)?vg(e):Xp(e):e.match(t)||[]}var xg="['’]",Ag=RegExp(xg,"g");function Tg(e){return function(t){return Up(Eg(Kp(t).replace(Ag,"")),e,"")}}var Sg=Tg(function(e,t,r){return t=t.toLowerCase(),e+(r?Lp(t):t)});const _g={complex:["tar.bz2","tar.gz","tar.xz"]},Un=e=>e.replace(/[^A-Za-z0-9\-_]/g,""),La=(e,t)=>!e||typeof e!="string"?"":e.indexOf("!")>=0?e.split("!")[t]:"",Ng=e=>La(e,0),Ua=e=>La(e,1),ja=e=>{const r=e.name.split(".");if(r.length>2)for(let n=0;n<r.length;n++){const o=r.slice(n,r.length).join(".");if(_g.complex.includes(o))return o}return r.length<2?"":r[r.length-1]},Dr=e=>{if(!e)return e;const t={};return Object.keys(e).forEach(r=>{t[Sg(r)]=e[r]}),t};function zt(e,t=[]){const r=e.props[se.Name]?.toString()||ea.basename(e.filename),n=e.props[se.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=ja({...e,name:r}),u=e.props[se.LockDiscovery];let c,l,s;u&&(c=u[se.ActiveLock],l=c[se.LockOwner],s=c[se.LockTime]);let f=[];e.props[se.ShareTypes]&&(f=e.props[se.ShareTypes]["share-type"],Array.isArray(f)||(f=[f]));const h={};for(const m of t||[]){const E=m.split(":").pop();e.props[E]&&(h[m]=e.props[E])}const A={id:n,fileId:n,storageId:Ng(n),parentFolderId:e.props[se.FileParent],mimeType:e.props[se.MimeType],name:r,extension: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[se.LastModifiedDate],size:o?e.props[se.ContentSize]?.toString()||"0":e.props[se.ContentLength]?.toString()||"0",permissions:e.props[se.Permissions]||"",starred:e.props[se.IsFavorite]!==0,etag:e.props[se.ETag],shareTypes:f,privateLink:e.props[se.PrivateLink],downloadURL:e.props[se.DownloadURL],remoteItemId:e.props[se.RemoteItemId],remoteItemPath:e.props[se.ShareRoot],owner:{id:e.props[se.OwnerId],displayName:e.props[se.OwnerDisplayName]},tags:(e.props[se.Tags]||"").toString().split(",").filter(Boolean),audio:Dr(e.props[se.Audio]),location:Dr(e.props[se.Location]),image:Dr(e.props[se.Image]),photo:Dr(e.props[se.Photo]),extraProps:h,hasPreview:()=>e.props[se.HasPreview]===1,canUpload:function(){return this.permissions.indexOf(ct.FolderCreateable)>=0},canDownload:function(){return this.permissions.indexOf(ct.SecureView)===-1},canBeDeleted:function(){return this.permissions.indexOf(ct.Deletable)>=0},canRename:function(){return this.permissions.indexOf(ct.Renameable)>=0},canShare:function({ability:m}){return m.can("create-all","Share")&&this.permissions.indexOf(ct.Shareable)>=0},canCreate:function(){return this.permissions.indexOf(ct.FolderCreateable)>=0},canEditTags:function(){return this.permissions.indexOf(ct.Updateable)>=0||this.permissions.indexOf(ct.FileUpdateable)>=0||this.permissions.indexOf(ct.FolderCreateable)>=0},isMounted:function(){return this.permissions.indexOf(ct.Mounted)>=0},isReceivedShare:function(){return this.permissions.indexOf(ct.Shared)>=0},isShareRoot(){return e.props[se.ShareRoot]?e.filename.split("/").length===3:!1},getDomSelector:()=>Un(n)};return Object.defineProperty(A,"nodeId",{get(){return Ua(this.id)}}),A}function Og(e){const t=e.type==="directory",r=e.props[se.TrashbinOriginalFilename]?.toString(),n=ja({name:r,type:e.type}),o=ta.basename(e.filename);return{type:t?"folder":e.type,isFolder:t,ddate:e.props[se.TrashbinDeletedDate],name:ta.basename(r),extension:n,path:Ee(e.props[se.TrashbinOriginalLocation],{leadingSlash:!0}),id:o,parentFolderId:e.props[se.FileParent],webDavPath:"",canUpload:()=>!1,canDownload:()=>!1,canBeDeleted:()=>!0,canBeRestored:function(){return!0},canRename:()=>!1,canShare:()=>!1,canCreate:()=>!1,isMounted:()=>!1,isReceivedShare:()=>!1,hasPreview:()=>!1,getDomSelector:()=>Un(o)}}var nt=(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))(nt||{});const jn=e=>e?.driveType==="personal",kn=e=>e?.driveType==="public";function Rg(e,t){return Ee("spaces",e,t,{leadingSlash:!0})}function Mn(e,t=""){return Ee("spaces","trash-bin",e,t,{leadingSlash:!0})}function Ig(e){const t=e.publicLinkPassword,r=e.props?.[se.FileId],n=e.props?.[se.PublicLinkItemType],o=e.props?.[se.PublicLinkPermission],i=e.props?.[se.PublicLinkExpiration],a=e.props?.[se.PublicLinkShareDate],u=e.props?.[se.PublicLinkShareOwner],c=e.publicLinkType;let l,s;return c==="ocm"?(l=`ocm/${e.id}`,s=qh(e.id)):(l=`public/${e.id}`,s=Dh(e.id)),Object.assign(Pg({...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 Pg(e){let t,r;e.special&&(t=e.special.find(l=>l.specialFolder.name==="image"),r=e.special.find(l=>l.specialFolder.name==="readme"),t&&(t.webDavUrl=decodeURI(t.webDavUrl)),r&&(r.webDavUrl=decodeURI(r.webDavUrl)));const n=e.root?.deleted?.state==="trashed",o=Ee(e.webDavPath||Rg(e.id),{leadingSlash:!0}),i=Ee(e.serverUrl,"remote.php/dav",o),a=Ee(e.webDavTrashPath||Mn(e.id),{leadingSlash:!0}),u=Ee(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:e.quota?.used||0,tags:[],permissions:"",starred:!1,etag:"",shareTypes:[],privateLink:e.webUrl,downloadURL:"",owner:e.owner?.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:l}={}){return jn(this)&&this.isOwner(l)?!0:this.graphPermissions?.includes(nt.createUpload)},canDownload:function(){return!0},canBeDeleted:function({ability:l}={}){return this.disabled?l?.can("delete-all","Drive")?!0:this.graphPermissions?.includes(nt.deletePermissions):!1},canRename:function({ability:l}={}){return l?.can("update-all","Drive")?!0:this.graphPermissions?.includes(nt.deletePermissions)},canEditDescription:function({ability:l}={}){return l?.can("update-all","Drive")?!0:this.graphPermissions?.includes(nt.deletePermissions)},canRestore:function({ability:l}={}){return this.disabled?l?.can("update-all","Drive")?!0:this.graphPermissions?.includes(nt.deletePermissions):!1},canDisable:function({ability:l}={}){return this.disabled?!1:l?.can("delete-all","Drive")?!0:this.graphPermissions?.includes(nt.deletePermissions)},canShare:function(){return this.graphPermissions?.includes(nt.createPermissions)},canEditImage:function(){return this.disabled?!1:this.graphPermissions?.includes(nt.deletePermissions)},canEditReadme:function(){return this.disabled?!1:this.graphPermissions?.includes(nt.deletePermissions)},canRestoreFromTrashbin:function(){return this.graphPermissions?.includes(nt.updateDeleted)},canDeleteFromTrashBin:function({user:l}={}){return jn(this)&&this.isOwner(l)?!0:this.graphPermissions?.includes(nt.deletePermissions)},canListVersions:function({user:l}={}){return jn(this)&&this.isOwner(l)?!0:this.graphPermissions?.includes(nt.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)},getDomSelector:()=>Un(e.id),getDriveAliasAndItem({path:l}){return Ee(this.driveAlias,l,{leadingSlash:!1})},getWebDavUrl({path:l}){return Ee(i,l)},getWebDavTrashUrl({path:l}){return Ee(u,l)},isOwner(l){return l?.id===this.owner?.id}};return Object.defineProperty(c,"nodeId",{get(){return Ua(this.id)}}),c}const Fg=(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 ap(o,"data.ocs.data",{capabilities:null,version:null})}}};var Dn={},qr={exports:{}},ka;function qn(){if(ka)return qr.exports;ka=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(v,x,I){return Function.prototype.apply.call(v,x,I)},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(g){console&&console.warn&&console.warn(g)}var o=Number.isNaN||function(v){return v!==v};function i(){i.init.call(this)}qr.exports=i,qr.exports.once=y,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function u(g){if(typeof g!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof g)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(g){if(typeof g!="number"||g<0||o(g))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+g+".");a=g}}),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(g){return g._maxListeners===void 0?i.defaultMaxListeners:g._maxListeners}i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(v){for(var x=[],I=1;I<arguments.length;I++)x.push(arguments[I]);var P=v==="error",N=this._events;if(N!==void 0)P=P&&N.error===void 0;else if(!P)return!1;if(P){var j;if(x.length>0&&(j=x[0]),j instanceof Error)throw j;var K=new Error("Unhandled error."+(j?" ("+j.message+")":""));throw K.context=j,K}var L=N[v];if(L===void 0)return!1;if(typeof L=="function")t(L,this,x);else for(var k=L.length,re=m(L,k),I=0;I<k;++I)t(re[I],this,x);return!0};function l(g,v,x,I){var P,N,j;if(u(x),N=g._events,N===void 0?(N=g._events=Object.create(null),g._eventsCount=0):(N.newListener!==void 0&&(g.emit("newListener",v,x.listener?x.listener:x),N=g._events),j=N[v]),j===void 0)j=N[v]=x,++g._eventsCount;else if(typeof j=="function"?j=N[v]=I?[x,j]:[j,x]:I?j.unshift(x):j.push(x),P=c(g),P>0&&j.length>P&&!j.warned){j.warned=!0;var K=new Error("Possible EventEmitter memory leak detected. "+j.length+" "+String(v)+" listeners added. Use emitter.setMaxListeners() to increase limit");K.name="MaxListenersExceededWarning",K.emitter=g,K.type=v,K.count=j.length,n(K)}return g}i.prototype.addListener=function(v,x){return l(this,v,x,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(v,x){return l(this,v,x,!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(g,v,x){var I={fired:!1,wrapFn:void 0,target:g,type:v,listener:x},P=s.bind(I);return P.listener=x,I.wrapFn=P,P}i.prototype.once=function(v,x){return u(x),this.on(v,f(this,v,x)),this},i.prototype.prependOnceListener=function(v,x){return u(x),this.prependListener(v,f(this,v,x)),this},i.prototype.removeListener=function(v,x){var I,P,N,j,K;if(u(x),P=this._events,P===void 0)return this;if(I=P[v],I===void 0)return this;if(I===x||I.listener===x)--this._eventsCount===0?this._events=Object.create(null):(delete P[v],P.removeListener&&this.emit("removeListener",v,I.listener||x));else if(typeof I!="function"){for(N=-1,j=I.length-1;j>=0;j--)if(I[j]===x||I[j].listener===x){K=I[j].listener,N=j;break}if(N<0)return this;N===0?I.shift():E(I,N),I.length===1&&(P[v]=I[0]),P.removeListener!==void 0&&this.emit("removeListener",v,K||x)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(v){var x,I,P;if(I=this._events,I===void 0)return this;if(I.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):I[v]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete I[v]),this;if(arguments.length===0){var N=Object.keys(I),j;for(P=0;P<N.length;++P)j=N[P],j!=="removeListener"&&this.removeAllListeners(j);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(x=I[v],typeof x=="function")this.removeListener(v,x);else if(x!==void 0)for(P=x.length-1;P>=0;P--)this.removeListener(v,x[P]);return this};function h(g,v,x){var I=g._events;if(I===void 0)return[];var P=I[v];return P===void 0?[]:typeof P=="function"?x?[P.listener||P]:[P]:x?T(P):m(P,P.length)}i.prototype.listeners=function(v){return h(this,v,!0)},i.prototype.rawListeners=function(v){return h(this,v,!1)},i.listenerCount=function(g,v){return typeof g.listenerCount=="function"?g.listenerCount(v):A.call(g,v)},i.prototype.listenerCount=A;function A(g){var v=this._events;if(v!==void 0){var x=v[g];if(typeof x=="function")return 1;if(x!==void 0)return x.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]};function m(g,v){for(var x=new Array(v),I=0;I<v;++I)x[I]=g[I];return x}function E(g,v){for(;v+1<g.length;v++)g[v]=g[v+1];g.pop()}function T(g){for(var v=new Array(g.length),x=0;x<v.length;++x)v[x]=g[x].listener||g[x];return v}function y(g,v){return new Promise(function(x,I){function P(j){g.removeListener(v,N),I(j)}function N(){typeof g.removeListener=="function"&&g.removeListener("error",P),x([].slice.call(arguments))}d(g,v,N,{once:!0}),v!=="error"&&p(g,P,{once:!0})})}function p(g,v,x){typeof g.on=="function"&&d(g,"error",v,x)}function d(g,v,x,I){if(typeof g.on=="function")I.once?g.once(v,x):g.on(v,x);else if(typeof g.addEventListener=="function")g.addEventListener(v,function P(N){I.once&&g.removeEventListener(v,P),x(N)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof g)}return qr.exports}var $r={exports:{}},Ma;function jt(){return Ma||(Ma=1,typeof Object.create=="function"?$r.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:$r.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),$r.exports}var $n,Da;function qa(){return Da||(Da=1,$n=qn().EventEmitter),$n}var Hn={},$a;function Hr(){return $a||($a=1,(function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var t={},r={};r.byteLength=s,r.toByteArray=h,r.fromByteArray=E;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(p){var d=p.length;if(d%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=p.indexOf("=");g===-1&&(g=d);var v=g===d?0:4-g%4;return[g,v]}function s(p){var d=l(p),g=d[0],v=d[1];return(g+v)*3/4-v}function f(p,d,g){return(d+g)*3/4-g}function h(p){var d,g=l(p),v=g[0],x=g[1],I=new i(f(p,v,x)),P=0,N=x>0?v-4:v,j;for(j=0;j<N;j+=4)d=o[p.charCodeAt(j)]<<18|o[p.charCodeAt(j+1)]<<12|o[p.charCodeAt(j+2)]<<6|o[p.charCodeAt(j+3)],I[P++]=d>>16&255,I[P++]=d>>8&255,I[P++]=d&255;return x===2&&(d=o[p.charCodeAt(j)]<<2|o[p.charCodeAt(j+1)]>>4,I[P++]=d&255),x===1&&(d=o[p.charCodeAt(j)]<<10|o[p.charCodeAt(j+1)]<<4|o[p.charCodeAt(j+2)]>>2,I[P++]=d>>8&255,I[P++]=d&255),I}function A(p){return n[p>>18&63]+n[p>>12&63]+n[p>>6&63]+n[p&63]}function m(p,d,g){for(var v,x=[],I=d;I<g;I+=3)v=(p[I]<<16&16711680)+(p[I+1]<<8&65280)+(p[I+2]&255),x.push(A(v));return x.join("")}function E(p){for(var d,g=p.length,v=g%3,x=[],I=16383,P=0,N=g-v;P<N;P+=I)x.push(m(p,P,P+I>N?N:P+I));return v===1?(d=p[g-1],x.push(n[d>>2]+n[d<<4&63]+"==")):v===2&&(d=(p[g-2]<<8)+p[g-1],x.push(n[d>>10]+n[d>>4&63]+n[d<<2&63]+"=")),x.join("")}var T={};T.read=function(p,d,g,v,x){var I,P,N=x*8-v-1,j=(1<<N)-1,K=j>>1,L=-7,k=g?x-1:0,re=g?-1:1,ee=p[d+k];for(k+=re,I=ee&(1<<-L)-1,ee>>=-L,L+=N;L>0;I=I*256+p[d+k],k+=re,L-=8);for(P=I&(1<<-L)-1,I>>=-L,L+=v;L>0;P=P*256+p[d+k],k+=re,L-=8);if(I===0)I=1-K;else{if(I===j)return P?NaN:(ee?-1:1)*(1/0);P=P+Math.pow(2,v),I=I-K}return(ee?-1:1)*P*Math.pow(2,I-v)},T.write=function(p,d,g,v,x,I){var P,N,j,K=I*8-x-1,L=(1<<K)-1,k=L>>1,re=x===23?Math.pow(2,-24)-Math.pow(2,-77):0,ee=v?0:I-1,ue=v?1:-1,le=d<0||d===0&&1/d<0?1:0;for(d=Math.abs(d),isNaN(d)||d===1/0?(N=isNaN(d)?1:0,P=L):(P=Math.floor(Math.log(d)/Math.LN2),d*(j=Math.pow(2,-P))<1&&(P--,j*=2),P+k>=1?d+=re/j:d+=re*Math.pow(2,1-k),d*j>=2&&(P++,j/=2),P+k>=L?(N=0,P=L):P+k>=1?(N=(d*j-1)*Math.pow(2,x),P=P+k):(N=d*Math.pow(2,k-1)*Math.pow(2,x),P=0));x>=8;p[g+ee]=N&255,ee+=ue,N/=256,x-=8);for(P=P<<x|N,K+=x;K>0;p[g+ee]=P&255,ee+=ue,P/=256,K-=8);p[g+ee-ue]|=le*128};(function(p){const d=r,g=T,v=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;p.Buffer=L,p.SlowBuffer=Z,p.INSPECT_MAX_BYTES=50;const x=2147483647;p.kMaxLength=x;const{Uint8Array:I,ArrayBuffer:P,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 I(1),w={foo:function(){return 42}};return Object.setPrototypeOf(w,I.prototype),Object.setPrototypeOf(C,w),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 K(C){if(C>x)throw new RangeError('The value "'+C+'" is invalid for option "size"');const w=new I(C);return Object.setPrototypeOf(w,L.prototype),w}function L(C,w,_){if(typeof C=="number"){if(typeof w=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ue(C)}return k(C,w,_)}L.poolSize=8192;function k(C,w,_){if(typeof C=="string")return le(C,w);if(P.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(yt(C,P)||C&&yt(C.buffer,P)||typeof N<"u"&&(yt(C,N)||C&&yt(C.buffer,N)))return be(C,w,_);if(typeof C=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const D=C.valueOf&&C.valueOf();if(D!=null&&D!==C)return L.from(D,w,_);const W=pe(C);if(W)return W;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof C[Symbol.toPrimitive]=="function")return L.from(C[Symbol.toPrimitive]("string"),w,_);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,w,_){return k(C,w,_)},Object.setPrototypeOf(L.prototype,I.prototype),Object.setPrototypeOf(L,I);function re(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 ee(C,w,_){return re(C),C<=0?K(C):w!==void 0?typeof _=="string"?K(C).fill(w,_):K(C).fill(w):K(C)}L.alloc=function(C,w,_){return ee(C,w,_)};function ue(C){return re(C),K(C<0?0:G(C)|0)}L.allocUnsafe=function(C){return ue(C)},L.allocUnsafeSlow=function(C){return ue(C)};function le(C,w){if((typeof w!="string"||w==="")&&(w="utf8"),!L.isEncoding(w))throw new TypeError("Unknown encoding: "+w);const _=Q(C,w)|0;let D=K(_);const W=D.write(C,w);return W!==_&&(D=D.slice(0,W)),D}function de(C){const w=C.length<0?0:G(C.length)|0,_=K(w);for(let D=0;D<w;D+=1)_[D]=C[D]&255;return _}function fe(C){if(yt(C,I)){const w=new I(C);return be(w.buffer,w.byteOffset,w.byteLength)}return de(C)}function be(C,w,_){if(w<0||C.byteLength<w)throw new RangeError('"offset" is outside of buffer bounds');if(C.byteLength<w+(_||0))throw new RangeError('"length" is outside of buffer bounds');let D;return w===void 0&&_===void 0?D=new I(C):_===void 0?D=new I(C,w):D=new I(C,w,_),Object.setPrototypeOf(D,L.prototype),D}function pe(C){if(L.isBuffer(C)){const w=G(C.length)|0,_=K(w);return _.length===0||C.copy(_,0,0,w),_}if(C.length!==void 0)return typeof C.length!="number"||is(C.length)?K(0):de(C);if(C.type==="Buffer"&&Array.isArray(C.data))return de(C.data)}function G(C){if(C>=x)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+x.toString(16)+" bytes");return C|0}function Z(C){return+C!=C&&(C=0),L.alloc(+C)}L.isBuffer=function(w){return w!=null&&w._isBuffer===!0&&w!==L.prototype},L.compare=function(w,_){if(yt(w,I)&&(w=L.from(w,w.offset,w.byteLength)),yt(_,I)&&(_=L.from(_,_.offset,_.byteLength)),!L.isBuffer(w)||!L.isBuffer(_))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(w===_)return 0;let D=w.length,W=_.length;for(let Y=0,ie=Math.min(D,W);Y<ie;++Y)if(w[Y]!==_[Y]){D=w[Y],W=_[Y];break}return D<W?-1:W<D?1:0},L.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}},L.concat=function(w,_){if(!Array.isArray(w))throw new TypeError('"list" argument must be an Array of Buffers');if(w.length===0)return L.alloc(0);let D;if(_===void 0)for(_=0,D=0;D<w.length;++D)_+=w[D].length;const W=L.allocUnsafe(_);let Y=0;for(D=0;D<w.length;++D){let ie=w[D];if(yt(ie,I))Y+ie.length>W.length?(L.isBuffer(ie)||(ie=L.from(ie)),ie.copy(W,Y)):I.prototype.set.call(W,ie,Y);else if(L.isBuffer(ie))ie.copy(W,Y);else throw new TypeError('"list" argument must be an Array of Buffers');Y+=ie.length}return W};function Q(C,w){if(L.isBuffer(C))return C.length;if(P.isView(C)||yt(C,P))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,D=arguments.length>2&&arguments[2]===!0;if(!D&&_===0)return 0;let W=!1;for(;;)switch(w){case"ascii":case"latin1":case"binary":return _;case"utf8":case"utf-8":return Re(C).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _*2;case"hex":return _>>>1;case"base64":return Ae(C).length;default:if(W)return D?-1:Re(C).length;w=(""+w).toLowerCase(),W=!0}}L.byteLength=Q;function ae(C,w,_){let D=!1;if((w===void 0||w<0)&&(w=0),w>this.length||((_===void 0||_>this.length)&&(_=this.length),_<=0)||(_>>>=0,w>>>=0,_<=w))return"";for(C||(C="utf8");;)switch(C){case"hex":return He(this,w,_);case"utf8":case"utf-8":return ge(this,w,_);case"ascii":return Ne(this,w,_);case"latin1":case"binary":return te(this,w,_);case"base64":return oe(this,w,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Me(this,w,_);default:if(D)throw new TypeError("Unknown encoding: "+C);C=(C+"").toLowerCase(),D=!0}}L.prototype._isBuffer=!0;function V(C,w,_){const D=C[w];C[w]=C[_],C[_]=D}L.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 _=0;_<w;_+=2)V(this,_,_+1);return this},L.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 _=0;_<w;_+=4)V(this,_,_+3),V(this,_+1,_+2);return this},L.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 _=0;_<w;_+=8)V(this,_,_+7),V(this,_+1,_+6),V(this,_+2,_+5),V(this,_+3,_+4);return this},L.prototype.toString=function(){const w=this.length;return w===0?"":arguments.length===0?ge(this,0,w):ae.apply(this,arguments)},L.prototype.toLocaleString=L.prototype.toString,L.prototype.equals=function(w){if(!L.isBuffer(w))throw new TypeError("Argument must be a Buffer");return this===w?!0:L.compare(this,w)===0},L.prototype.inspect=function(){let w="";const _=p.INSPECT_MAX_BYTES;return w=this.toString("hex",0,_).replace(/(.{2})/g,"$1 ").trim(),this.length>_&&(w+=" ... "),"<Buffer "+w+">"},v&&(L.prototype[v]=L.prototype.inspect),L.prototype.compare=function(w,_,D,W,Y){if(yt(w,I)&&(w=L.from(w,w.offset,w.byteLength)),!L.isBuffer(w))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof w);if(_===void 0&&(_=0),D===void 0&&(D=w?w.length:0),W===void 0&&(W=0),Y===void 0&&(Y=this.length),_<0||D>w.length||W<0||Y>this.length)throw new RangeError("out of range index");if(W>=Y&&_>=D)return 0;if(W>=Y)return-1;if(_>=D)return 1;if(_>>>=0,D>>>=0,W>>>=0,Y>>>=0,this===w)return 0;let ie=Y-W,ve=D-_;const Le=Math.min(ie,ve),Fe=this.slice(W,Y),Ue=w.slice(_,D);for(let _e=0;_e<Le;++_e)if(Fe[_e]!==Ue[_e]){ie=Fe[_e],ve=Ue[_e];break}return ie<ve?-1:ve<ie?1:0};function R(C,w,_,D,W){if(C.length===0)return-1;if(typeof _=="string"?(D=_,_=0):_>2147483647?_=2147483647:_<-2147483648&&(_=-2147483648),_=+_,is(_)&&(_=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 w=="string"&&(w=L.from(w,D)),L.isBuffer(w))return w.length===0?-1:O(C,w,_,D,W);if(typeof w=="number")return w=w&255,typeof I.prototype.indexOf=="function"?W?I.prototype.indexOf.call(C,w,_):I.prototype.lastIndexOf.call(C,w,_):O(C,[w],_,D,W);throw new TypeError("val must be string, number or Buffer")}function O(C,w,_,D,W){let Y=1,ie=C.length,ve=w.length;if(D!==void 0&&(D=String(D).toLowerCase(),D==="ucs2"||D==="ucs-2"||D==="utf16le"||D==="utf-16le")){if(C.length<2||w.length<2)return-1;Y=2,ie/=2,ve/=2,_/=2}function Le(Ue,_e){return Y===1?Ue[_e]:Ue.readUInt16BE(_e*Y)}let Fe;if(W){let Ue=-1;for(Fe=_;Fe<ie;Fe++)if(Le(C,Fe)===Le(w,Ue===-1?0:Fe-Ue)){if(Ue===-1&&(Ue=Fe),Fe-Ue+1===ve)return Ue*Y}else Ue!==-1&&(Fe-=Fe-Ue),Ue=-1}else for(_+ve>ie&&(_=ie-ve),Fe=_;Fe>=0;Fe--){let Ue=!0;for(let _e=0;_e<ve;_e++)if(Le(C,Fe+_e)!==Le(w,_e)){Ue=!1;break}if(Ue)return Fe}return-1}L.prototype.includes=function(w,_,D){return this.indexOf(w,_,D)!==-1},L.prototype.indexOf=function(w,_,D){return R(this,w,_,D,!0)},L.prototype.lastIndexOf=function(w,_,D){return R(this,w,_,D,!1)};function $(C,w,_,D){_=Number(_)||0;const W=C.length-_;D?(D=Number(D),D>W&&(D=W)):D=W;const Y=w.length;D>Y/2&&(D=Y/2);let ie;for(ie=0;ie<D;++ie){const ve=parseInt(w.substr(ie*2,2),16);if(is(ve))return ie;C[_+ie]=ve}return ie}function q(C,w,_,D){return ln(Re(w,C.length-_),C,_,D)}function B(C,w,_,D){return ln(Ie(w),C,_,D)}function U(C,w,_,D){return ln(Ae(w),C,_,D)}function J(C,w,_,D){return ln(Pe(w,C.length-_),C,_,D)}L.prototype.write=function(w,_,D,W){if(_===void 0)W="utf8",D=this.length,_=0;else if(D===void 0&&typeof _=="string")W=_,D=this.length,_=0;else if(isFinite(_))_=_>>>0,isFinite(D)?(D=D>>>0,W===void 0&&(W="utf8")):(W=D,D=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Y=this.length-_;if((D===void 0||D>Y)&&(D=Y),w.length>0&&(D<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 $(this,w,_,D);case"utf8":case"utf-8":return q(this,w,_,D);case"ascii":case"latin1":case"binary":return B(this,w,_,D);case"base64":return U(this,w,_,D);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,w,_,D);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 oe(C,w,_){return w===0&&_===C.length?d.fromByteArray(C):d.fromByteArray(C.slice(w,_))}function ge(C,w,_){_=Math.min(C.length,_);const D=[];let W=w;for(;W<_;){const Y=C[W];let ie=null,ve=Y>239?4:Y>223?3:Y>191?2:1;if(W+ve<=_){let Le,Fe,Ue,_e;switch(ve){case 1:Y<128&&(ie=Y);break;case 2:Le=C[W+1],(Le&192)===128&&(_e=(Y&31)<<6|Le&63,_e>127&&(ie=_e));break;case 3:Le=C[W+1],Fe=C[W+2],(Le&192)===128&&(Fe&192)===128&&(_e=(Y&15)<<12|(Le&63)<<6|Fe&63,_e>2047&&(_e<55296||_e>57343)&&(ie=_e));break;case 4:Le=C[W+1],Fe=C[W+2],Ue=C[W+3],(Le&192)===128&&(Fe&192)===128&&(Ue&192)===128&&(_e=(Y&15)<<18|(Le&63)<<12|(Fe&63)<<6|Ue&63,_e>65535&&_e<1114112&&(ie=_e))}}ie===null?(ie=65533,ve=1):ie>65535&&(ie-=65536,D.push(ie>>>10&1023|55296),ie=56320|ie&1023),D.push(ie),W+=ve}return he(D)}const ce=4096;function he(C){const w=C.length;if(w<=ce)return String.fromCharCode.apply(String,C);let _="",D=0;for(;D<w;)_+=String.fromCharCode.apply(String,C.slice(D,D+=ce));return _}function Ne(C,w,_){let D="";_=Math.min(C.length,_);for(let W=w;W<_;++W)D+=String.fromCharCode(C[W]&127);return D}function te(C,w,_){let D="";_=Math.min(C.length,_);for(let W=w;W<_;++W)D+=String.fromCharCode(C[W]);return D}function He(C,w,_){const D=C.length;(!w||w<0)&&(w=0),(!_||_<0||_>D)&&(_=D);let W="";for(let Y=w;Y<_;++Y)W+=ib[C[Y]];return W}function Me(C,w,_){const D=C.slice(w,_);let W="";for(let Y=0;Y<D.length-1;Y+=2)W+=String.fromCharCode(D[Y]+D[Y+1]*256);return W}L.prototype.slice=function(w,_){const D=this.length;w=~~w,_=_===void 0?D:~~_,w<0?(w+=D,w<0&&(w=0)):w>D&&(w=D),_<0?(_+=D,_<0&&(_=0)):_>D&&(_=D),_<w&&(_=w);const W=this.subarray(w,_);return Object.setPrototypeOf(W,L.prototype),W};function xe(C,w,_){if(C%1!==0||C<0)throw new RangeError("offset is not uint");if(C+w>_)throw new RangeError("Trying to access beyond buffer length")}L.prototype.readUintLE=L.prototype.readUIntLE=function(w,_,D){w=w>>>0,_=_>>>0,D||xe(w,_,this.length);let W=this[w],Y=1,ie=0;for(;++ie<_&&(Y*=256);)W+=this[w+ie]*Y;return W},L.prototype.readUintBE=L.prototype.readUIntBE=function(w,_,D){w=w>>>0,_=_>>>0,D||xe(w,_,this.length);let W=this[w+--_],Y=1;for(;_>0&&(Y*=256);)W+=this[w+--_]*Y;return W},L.prototype.readUint8=L.prototype.readUInt8=function(w,_){return w=w>>>0,_||xe(w,1,this.length),this[w]},L.prototype.readUint16LE=L.prototype.readUInt16LE=function(w,_){return w=w>>>0,_||xe(w,2,this.length),this[w]|this[w+1]<<8},L.prototype.readUint16BE=L.prototype.readUInt16BE=function(w,_){return w=w>>>0,_||xe(w,2,this.length),this[w]<<8|this[w+1]},L.prototype.readUint32LE=L.prototype.readUInt32LE=function(w,_){return w=w>>>0,_||xe(w,4,this.length),(this[w]|this[w+1]<<8|this[w+2]<<16)+this[w+3]*16777216},L.prototype.readUint32BE=L.prototype.readUInt32BE=function(w,_){return w=w>>>0,_||xe(w,4,this.length),this[w]*16777216+(this[w+1]<<16|this[w+2]<<8|this[w+3])},L.prototype.readBigUInt64LE=Rt(function(w){w=w>>>0,H(w,"offset");const _=this[w],D=this[w+7];(_===void 0||D===void 0)&&z(w,this.length-8);const W=_+this[++w]*2**8+this[++w]*2**16+this[++w]*2**24,Y=this[++w]+this[++w]*2**8+this[++w]*2**16+D*2**24;return BigInt(W)+(BigInt(Y)<<BigInt(32))}),L.prototype.readBigUInt64BE=Rt(function(w){w=w>>>0,H(w,"offset");const _=this[w],D=this[w+7];(_===void 0||D===void 0)&&z(w,this.length-8);const W=_*2**24+this[++w]*2**16+this[++w]*2**8+this[++w],Y=this[++w]*2**24+this[++w]*2**16+this[++w]*2**8+D;return(BigInt(W)<<BigInt(32))+BigInt(Y)}),L.prototype.readIntLE=function(w,_,D){w=w>>>0,_=_>>>0,D||xe(w,_,this.length);let W=this[w],Y=1,ie=0;for(;++ie<_&&(Y*=256);)W+=this[w+ie]*Y;return Y*=128,W>=Y&&(W-=Math.pow(2,8*_)),W},L.prototype.readIntBE=function(w,_,D){w=w>>>0,_=_>>>0,D||xe(w,_,this.length);let W=_,Y=1,ie=this[w+--W];for(;W>0&&(Y*=256);)ie+=this[w+--W]*Y;return Y*=128,ie>=Y&&(ie-=Math.pow(2,8*_)),ie},L.prototype.readInt8=function(w,_){return w=w>>>0,_||xe(w,1,this.length),this[w]&128?(255-this[w]+1)*-1:this[w]},L.prototype.readInt16LE=function(w,_){w=w>>>0,_||xe(w,2,this.length);const D=this[w]|this[w+1]<<8;return D&32768?D|4294901760:D},L.prototype.readInt16BE=function(w,_){w=w>>>0,_||xe(w,2,this.length);const D=this[w+1]|this[w]<<8;return D&32768?D|4294901760:D},L.prototype.readInt32LE=function(w,_){return w=w>>>0,_||xe(w,4,this.length),this[w]|this[w+1]<<8|this[w+2]<<16|this[w+3]<<24},L.prototype.readInt32BE=function(w,_){return w=w>>>0,_||xe(w,4,this.length),this[w]<<24|this[w+1]<<16|this[w+2]<<8|this[w+3]},L.prototype.readBigInt64LE=Rt(function(w){w=w>>>0,H(w,"offset");const _=this[w],D=this[w+7];(_===void 0||D===void 0)&&z(w,this.length-8);const W=this[w+4]+this[w+5]*2**8+this[w+6]*2**16+(D<<24);return(BigInt(W)<<BigInt(32))+BigInt(_+this[++w]*2**8+this[++w]*2**16+this[++w]*2**24)}),L.prototype.readBigInt64BE=Rt(function(w){w=w>>>0,H(w,"offset");const _=this[w],D=this[w+7];(_===void 0||D===void 0)&&z(w,this.length-8);const W=(_<<24)+this[++w]*2**16+this[++w]*2**8+this[++w];return(BigInt(W)<<BigInt(32))+BigInt(this[++w]*2**24+this[++w]*2**16+this[++w]*2**8+D)}),L.prototype.readFloatLE=function(w,_){return w=w>>>0,_||xe(w,4,this.length),g.read(this,w,!0,23,4)},L.prototype.readFloatBE=function(w,_){return w=w>>>0,_||xe(w,4,this.length),g.read(this,w,!1,23,4)},L.prototype.readDoubleLE=function(w,_){return w=w>>>0,_||xe(w,8,this.length),g.read(this,w,!0,52,8)},L.prototype.readDoubleBE=function(w,_){return w=w>>>0,_||xe(w,8,this.length),g.read(this,w,!1,52,8)};function Oe(C,w,_,D,W,Y){if(!L.isBuffer(C))throw new TypeError('"buffer" argument must be a Buffer instance');if(w>W||w<Y)throw new RangeError('"value" argument is out of bounds');if(_+D>C.length)throw new RangeError("Index out of range")}L.prototype.writeUintLE=L.prototype.writeUIntLE=function(w,_,D,W){if(w=+w,_=_>>>0,D=D>>>0,!W){const ve=Math.pow(2,8*D)-1;Oe(this,w,_,D,ve,0)}let Y=1,ie=0;for(this[_]=w&255;++ie<D&&(Y*=256);)this[_+ie]=w/Y&255;return _+D},L.prototype.writeUintBE=L.prototype.writeUIntBE=function(w,_,D,W){if(w=+w,_=_>>>0,D=D>>>0,!W){const ve=Math.pow(2,8*D)-1;Oe(this,w,_,D,ve,0)}let Y=D-1,ie=1;for(this[_+Y]=w&255;--Y>=0&&(ie*=256);)this[_+Y]=w/ie&255;return _+D},L.prototype.writeUint8=L.prototype.writeUInt8=function(w,_,D){return w=+w,_=_>>>0,D||Oe(this,w,_,1,255,0),this[_]=w&255,_+1},L.prototype.writeUint16LE=L.prototype.writeUInt16LE=function(w,_,D){return w=+w,_=_>>>0,D||Oe(this,w,_,2,65535,0),this[_]=w&255,this[_+1]=w>>>8,_+2},L.prototype.writeUint16BE=L.prototype.writeUInt16BE=function(w,_,D){return w=+w,_=_>>>0,D||Oe(this,w,_,2,65535,0),this[_]=w>>>8,this[_+1]=w&255,_+2},L.prototype.writeUint32LE=L.prototype.writeUInt32LE=function(w,_,D){return w=+w,_=_>>>0,D||Oe(this,w,_,4,4294967295,0),this[_+3]=w>>>24,this[_+2]=w>>>16,this[_+1]=w>>>8,this[_]=w&255,_+4},L.prototype.writeUint32BE=L.prototype.writeUInt32BE=function(w,_,D){return w=+w,_=_>>>0,D||Oe(this,w,_,4,4294967295,0),this[_]=w>>>24,this[_+1]=w>>>16,this[_+2]=w>>>8,this[_+3]=w&255,_+4};function Ye(C,w,_,D,W){M(w,D,W,C,_,7);let Y=Number(w&BigInt(4294967295));C[_++]=Y,Y=Y>>8,C[_++]=Y,Y=Y>>8,C[_++]=Y,Y=Y>>8,C[_++]=Y;let ie=Number(w>>BigInt(32)&BigInt(4294967295));return C[_++]=ie,ie=ie>>8,C[_++]=ie,ie=ie>>8,C[_++]=ie,ie=ie>>8,C[_++]=ie,_}function Ge(C,w,_,D,W){M(w,D,W,C,_,7);let Y=Number(w&BigInt(4294967295));C[_+7]=Y,Y=Y>>8,C[_+6]=Y,Y=Y>>8,C[_+5]=Y,Y=Y>>8,C[_+4]=Y;let ie=Number(w>>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=Rt(function(w,_=0){return Ye(this,w,_,BigInt(0),BigInt("0xffffffffffffffff"))}),L.prototype.writeBigUInt64BE=Rt(function(w,_=0){return Ge(this,w,_,BigInt(0),BigInt("0xffffffffffffffff"))}),L.prototype.writeIntLE=function(w,_,D,W){if(w=+w,_=_>>>0,!W){const Le=Math.pow(2,8*D-1);Oe(this,w,_,D,Le-1,-Le)}let Y=0,ie=1,ve=0;for(this[_]=w&255;++Y<D&&(ie*=256);)w<0&&ve===0&&this[_+Y-1]!==0&&(ve=1),this[_+Y]=(w/ie>>0)-ve&255;return _+D},L.prototype.writeIntBE=function(w,_,D,W){if(w=+w,_=_>>>0,!W){const Le=Math.pow(2,8*D-1);Oe(this,w,_,D,Le-1,-Le)}let Y=D-1,ie=1,ve=0;for(this[_+Y]=w&255;--Y>=0&&(ie*=256);)w<0&&ve===0&&this[_+Y+1]!==0&&(ve=1),this[_+Y]=(w/ie>>0)-ve&255;return _+D},L.prototype.writeInt8=function(w,_,D){return w=+w,_=_>>>0,D||Oe(this,w,_,1,127,-128),w<0&&(w=255+w+1),this[_]=w&255,_+1},L.prototype.writeInt16LE=function(w,_,D){return w=+w,_=_>>>0,D||Oe(this,w,_,2,32767,-32768),this[_]=w&255,this[_+1]=w>>>8,_+2},L.prototype.writeInt16BE=function(w,_,D){return w=+w,_=_>>>0,D||Oe(this,w,_,2,32767,-32768),this[_]=w>>>8,this[_+1]=w&255,_+2},L.prototype.writeInt32LE=function(w,_,D){return w=+w,_=_>>>0,D||Oe(this,w,_,4,2147483647,-2147483648),this[_]=w&255,this[_+1]=w>>>8,this[_+2]=w>>>16,this[_+3]=w>>>24,_+4},L.prototype.writeInt32BE=function(w,_,D){return w=+w,_=_>>>0,D||Oe(this,w,_,4,2147483647,-2147483648),w<0&&(w=4294967295+w+1),this[_]=w>>>24,this[_+1]=w>>>16,this[_+2]=w>>>8,this[_+3]=w&255,_+4},L.prototype.writeBigInt64LE=Rt(function(w,_=0){return Ye(this,w,_,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),L.prototype.writeBigInt64BE=Rt(function(w,_=0){return Ge(this,w,_,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ut(C,w,_,D,W,Y){if(_+D>C.length)throw new RangeError("Index out of range");if(_<0)throw new RangeError("Index out of range")}function ft(C,w,_,D,W){return w=+w,_=_>>>0,W||ut(C,w,_,4),g.write(C,w,_,D,23,4),_+4}L.prototype.writeFloatLE=function(w,_,D){return ft(this,w,_,!0,D)},L.prototype.writeFloatBE=function(w,_,D){return ft(this,w,_,!1,D)};function Ve(C,w,_,D,W){return w=+w,_=_>>>0,W||ut(C,w,_,8),g.write(C,w,_,D,52,8),_+8}L.prototype.writeDoubleLE=function(w,_,D){return Ve(this,w,_,!0,D)},L.prototype.writeDoubleBE=function(w,_,D){return Ve(this,w,_,!1,D)},L.prototype.copy=function(w,_,D,W){if(!L.isBuffer(w))throw new TypeError("argument should be a Buffer");if(D||(D=0),!W&&W!==0&&(W=this.length),_>=w.length&&(_=w.length),_||(_=0),W>0&&W<D&&(W=D),W===D||w.length===0||this.length===0)return 0;if(_<0)throw new RangeError("targetStart out of bounds");if(D<0||D>=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),w.length-_<W-D&&(W=w.length-_+D);const Y=W-D;return this===w&&typeof I.prototype.copyWithin=="function"?this.copyWithin(_,D,W):I.prototype.set.call(w,this.subarray(D,W),_),Y},L.prototype.fill=function(w,_,D,W){if(typeof w=="string"){if(typeof _=="string"?(W=_,_=0,D=this.length):typeof D=="string"&&(W=D,D=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(w.length===1){const ie=w.charCodeAt(0);(W==="utf8"&&ie<128||W==="latin1")&&(w=ie)}}else typeof w=="number"?w=w&255:typeof w=="boolean"&&(w=Number(w));if(_<0||this.length<_||this.length<D)throw new RangeError("Out of range index");if(D<=_)return this;_=_>>>0,D=D===void 0?this.length:D>>>0,w||(w=0);let Y;if(typeof w=="number")for(Y=_;Y<D;++Y)this[Y]=w;else{const ie=L.isBuffer(w)?w:L.from(w,W),ve=ie.length;if(ve===0)throw new TypeError('The value "'+w+'" is invalid for argument "value"');for(Y=0;Y<D-_;++Y)this[Y+_]=ie[Y%ve]}return this};const Ot={};function F(C,w,_){Ot[C]=class extends _{constructor(){super(),Object.defineProperty(this,"message",{value:w.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,w){return`The "${C}" argument must be of type number. Received type ${typeof w}`},TypeError),F("ERR_OUT_OF_RANGE",function(C,w,_){let D=`The value of "${C}" is out of range.`,W=_;return Number.isInteger(_)&&Math.abs(_)>2**32?W=b(String(_)):typeof _=="bigint"&&(W=String(_),(_>BigInt(2)**BigInt(32)||_<-(BigInt(2)**BigInt(32)))&&(W=b(W)),W+="n"),D+=` It must be ${w}. Received ${W}`,D},RangeError);function b(C){let w="",_=C.length;const D=C[0]==="-"?1:0;for(;_>=D+4;_-=3)w=`_${C.slice(_-3,_)}${w}`;return`${C.slice(0,_)}${w}`}function S(C,w,_){H(w,"offset"),(C[w]===void 0||C[w+_]===void 0)&&z(w,C.length-(_+1))}function M(C,w,_,D,W,Y){if(C>_||C<w){const ie=typeof w=="bigint"?"n":"";let ve;throw w===0||w===BigInt(0)?ve=`>= 0${ie} and < 2${ie} ** ${(Y+1)*8}${ie}`:ve=`>= -(2${ie} ** ${(Y+1)*8-1}${ie}) and < 2 ** ${(Y+1)*8-1}${ie}`,new Ot.ERR_OUT_OF_RANGE("value",ve,C)}S(D,W,Y)}function H(C,w){if(typeof C!="number")throw new Ot.ERR_INVALID_ARG_TYPE(w,"number",C)}function z(C,w,_){throw Math.floor(C)!==C?(H(C,_),new Ot.ERR_OUT_OF_RANGE("offset","an integer",C)):w<0?new Ot.ERR_BUFFER_OUT_OF_BOUNDS:new Ot.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${w}`,C)}const ne=/[^+/0-9A-Za-z-_]/g;function we(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 Re(C,w){w=w||1/0;let _;const D=C.length;let W=null;const Y=[];for(let ie=0;ie<D;++ie){if(_=C.charCodeAt(ie),_>55295&&_<57344){if(!W){if(_>56319){(w-=3)>-1&&Y.push(239,191,189);continue}else if(ie+1===D){(w-=3)>-1&&Y.push(239,191,189);continue}W=_;continue}if(_<56320){(w-=3)>-1&&Y.push(239,191,189),W=_;continue}_=(W-55296<<10|_-56320)+65536}else W&&(w-=3)>-1&&Y.push(239,191,189);if(W=null,_<128){if((w-=1)<0)break;Y.push(_)}else if(_<2048){if((w-=2)<0)break;Y.push(_>>6|192,_&63|128)}else if(_<65536){if((w-=3)<0)break;Y.push(_>>12|224,_>>6&63|128,_&63|128)}else if(_<1114112){if((w-=4)<0)break;Y.push(_>>18|240,_>>12&63|128,_>>6&63|128,_&63|128)}else throw new Error("Invalid code point")}return Y}function Ie(C){const w=[];for(let _=0;_<C.length;++_)w.push(C.charCodeAt(_)&255);return w}function Pe(C,w){let _,D,W;const Y=[];for(let ie=0;ie<C.length&&!((w-=2)<0);++ie)_=C.charCodeAt(ie),D=_>>8,W=_%256,Y.push(W),Y.push(D);return Y}function Ae(C){return d.toByteArray(we(C))}function ln(C,w,_,D){let W;for(W=0;W<D&&!(W+_>=w.length||W>=C.length);++W)w[W+_]=C[W];return W}function yt(C,w){return C instanceof w||C!=null&&C.constructor!=null&&C.constructor.name!=null&&C.constructor.name===w.name}function is(C){return C!==C}const ib=(function(){const C="0123456789abcdef",w=new Array(256);for(let _=0;_<16;++_){const D=_*16;for(let W=0;W<16;++W)w[D+W]=C[_]+C[W]}return w})();function Rt(C){return typeof BigInt>"u"?ob:C}function ob(){throw new Error("BigInt not supported")}})(t);const y=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=y,e.isAscii=t.isAscii,e.isUtf8=t.isUtf8,e.kMaxLength=t.kMaxLength,e.kStringMaxLength=t.kStringMaxLength,e.resolveObjectURL=t.resolveObjectURL,e.transcode=t.transcode})(Hn)),Hn}var Vn={},Wn={},Gn,Ha;function Va(){return Ha||(Ha=1,Gn=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}),Gn}var Kn,Wa;function Vr(){if(Wa)return Kn;Wa=1;var e=Va();return Kn=function(){return e()&&!!Symbol.toStringTag},Kn}var zn,Ga;function Ka(){return Ga||(Ga=1,zn=Object),zn}var Xn,za;function Cg(){return za||(za=1,Xn=Error),Xn}var Yn,Xa;function Bg(){return Xa||(Xa=1,Yn=EvalError),Yn}var Jn,Ya;function Lg(){return Ya||(Ya=1,Jn=RangeError),Jn}var Zn,Ja;function Ug(){return Ja||(Ja=1,Zn=ReferenceError),Zn}var Qn,Za;function Qa(){return Za||(Za=1,Qn=SyntaxError),Qn}var ei,eu;function cr(){return eu||(eu=1,ei=TypeError),ei}var ti,tu;function jg(){return tu||(tu=1,ti=URIError),ti}var ri,ru;function kg(){return ru||(ru=1,ri=Math.abs),ri}var ni,nu;function Mg(){return nu||(nu=1,ni=Math.floor),ni}var ii,iu;function Dg(){return iu||(iu=1,ii=Math.max),ii}var oi,ou;function qg(){return ou||(ou=1,oi=Math.min),oi}var si,su;function $g(){return su||(su=1,si=Math.pow),si}var ai,au;function Hg(){return au||(au=1,ai=Math.round),ai}var ui,uu;function Vg(){return uu||(uu=1,ui=Number.isNaN||function(t){return t!==t}),ui}var li,lu;function Wg(){if(lu)return li;lu=1;var e=Vg();return li=function(r){return e(r)||r===0?r:r<0?-1:1},li}var ci,cu;function Gg(){return cu||(cu=1,ci=Object.getOwnPropertyDescriptor),ci}var fi,fu;function Xt(){if(fu)return fi;fu=1;var e=Gg();if(e)try{e([],"length")}catch{e=null}return fi=e,fi}var hi,hu;function Wr(){if(hu)return hi;hu=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return hi=e,hi}var di,du;function Kg(){if(du)return di;du=1;var e=typeof Symbol<"u"&&Symbol,t=Va();return di=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},di}var pi,pu;function gu(){return pu||(pu=1,pi=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),pi}var gi,yu;function mu(){if(yu)return gi;yu=1;var e=Ka();return gi=e.getPrototypeOf||null,gi}var yi,bu;function zg(){if(bu)return yi;bu=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 yi=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 y=l.apply(this,o(s,arguments));return Object(y)===y?y:this}return l.apply(c,o(s,arguments))},A=r(0,l.length-s.length),m=[],E=0;E<A;E++)m[E]="$"+E;if(f=Function("binder","return function ("+a(m,",")+"){ return binder.apply(this,arguments); }")(h),l.prototype){var T=function(){};T.prototype=l.prototype,f.prototype=new T,T.prototype=null}return f},yi}var mi,wu;function fr(){if(wu)return mi;wu=1;var e=zg();return mi=Function.prototype.bind||e,mi}var bi,vu;function wi(){return vu||(vu=1,bi=Function.prototype.call),bi}var vi,Eu;function Ei(){return Eu||(Eu=1,vi=Function.prototype.apply),vi}var xi,xu;function Xg(){return xu||(xu=1,xi=typeof Reflect<"u"&&Reflect&&Reflect.apply),xi}var Ai,Au;function Tu(){if(Au)return Ai;Au=1;var e=fr(),t=Ei(),r=wi(),n=Xg();return Ai=n||e.call(r,t),Ai}var Ti,Su;function Si(){if(Su)return Ti;Su=1;var e=fr(),t=cr(),r=wi(),n=Tu();return Ti=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return n(e,r,i)},Ti}var _i,_u;function Yg(){if(_u)return _i;_u=1;var e=Si(),t=Xt(),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 _i=n&&typeof n.get=="function"?e([n.get]):typeof i=="function"?function(u){return i(u==null?u:o(u))}:!1,_i}var Ni,Nu;function Oi(){if(Nu)return Ni;Nu=1;var e=gu(),t=mu(),r=Yg();return Ni=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,Ni}var Ri,Ou;function Ru(){if(Ou)return Ri;Ou=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=fr();return Ri=r.call(e,t),Ri}var Ii,Iu;function Pu(){if(Iu)return Ii;Iu=1;var e,t=Ka(),r=Cg(),n=Bg(),o=Lg(),i=Ug(),a=Qa(),u=cr(),c=jg(),l=kg(),s=Mg(),f=Dg(),h=qg(),A=$g(),m=Hg(),E=Wg(),T=Function,y=function($){try{return T('"use strict"; return ('+$+").constructor;")()}catch{}},p=Xt(),d=Wr(),g=function(){throw new u},v=p?(function(){try{return arguments.callee,g}catch{try{return p(arguments,"callee").get}catch{return g}}})():g,x=Kg()(),I=Oi(),P=mu(),N=gu(),j=Ei(),K=wi(),L={},k=typeof Uint8Array>"u"||!I?e:I(Uint8Array),re={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":x&&I?I([][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%":T,"%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%":x&&I?I(I([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!x||!I?e:I(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":p,"%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"||!x||!I?e:I(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":x&&I?I(""[Symbol.iterator]()):e,"%Symbol%":x?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":v,"%TypedArray%":k,"%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%":K,"%Function.prototype.apply%":j,"%Object.defineProperty%":d,"%Object.getPrototypeOf%":P,"%Math.abs%":l,"%Math.floor%":s,"%Math.max%":f,"%Math.min%":h,"%Math.pow%":A,"%Math.round%":m,"%Math.sign%":E,"%Reflect.getPrototypeOf%":N};if(I)try{null.error}catch($){var ee=I(I($));re["%Error.prototype%"]=ee}var ue=function $(q){var B;if(q==="%AsyncFunction%")B=y("async function () {}");else if(q==="%GeneratorFunction%")B=y("function* () {}");else if(q==="%AsyncGeneratorFunction%")B=y("async function* () {}");else if(q==="%AsyncGenerator%"){var U=$("%AsyncGeneratorFunction%");U&&(B=U.prototype)}else if(q==="%AsyncIteratorPrototype%"){var J=$("%AsyncGenerator%");J&&I&&(B=I(J.prototype))}return re[q]=B,B},le={__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"]},de=fr(),fe=Ru(),be=de.call(K,Array.prototype.concat),pe=de.call(j,Array.prototype.splice),G=de.call(K,String.prototype.replace),Z=de.call(K,String.prototype.slice),Q=de.call(K,RegExp.prototype.exec),ae=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,R=function(q){var B=Z(q,0,1),U=Z(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 J=[];return G(q,ae,function(oe,ge,ce,he){J[J.length]=ce?G(he,V,"$1"):ge||oe}),J},O=function(q,B){var U=q,J;if(fe(le,U)&&(J=le[U],U="%"+J[0]+"%"),fe(re,U)){var oe=re[U];if(oe===L&&(oe=ue(U)),typeof oe>"u"&&!B)throw new u("intrinsic "+q+" exists, but is not available. Please file an issue!");return{alias:J,name:U,value:oe}}throw new a("intrinsic "+q+" does not exist!")};return Ii=function(q,B){if(typeof q!="string"||q.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(Q(/^%?[^%]*%?$/,q)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var U=R(q),J=U.length>0?U[0]:"",oe=O("%"+J+"%",B),ge=oe.name,ce=oe.value,he=!1,Ne=oe.alias;Ne&&(J=Ne[0],pe(U,be([0,1],Ne)));for(var te=1,He=!0;te<U.length;te+=1){var Me=U[te],xe=Z(Me,0,1),Oe=Z(Me,-1);if((xe==='"'||xe==="'"||xe==="`"||Oe==='"'||Oe==="'"||Oe==="`")&&xe!==Oe)throw new a("property names with quotes must have matching quotes");if((Me==="constructor"||!He)&&(he=!0),J+="."+Me,ge="%"+J+"%",fe(re,ge))ce=re[ge];else if(ce!=null){if(!(Me in ce)){if(!B)throw new u("base intrinsic for "+q+" exists, but the property is not available.");return}if(p&&te+1>=U.length){var Ye=p(ce,Me);He=!!Ye,He&&"get"in Ye&&!("originalValue"in Ye.get)?ce=Ye.get:ce=ce[Me]}else He=fe(ce,Me),ce=ce[Me];He&&!he&&(re[ge]=ce)}}return ce},Ii}var Pi,Fu;function hr(){if(Fu)return Pi;Fu=1;var e=Pu(),t=Si(),r=t([e("%String.prototype.indexOf%")]);return Pi=function(o,i){var a=e(o,!!i);return typeof a=="function"&&r(o,".prototype.")>-1?t([a]):a},Pi}var Fi,Cu;function Jg(){if(Cu)return Fi;Cu=1;var e=Vr()(),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,Fi=i?n:o,Fi}var Ci,Bu;function Zg(){if(Bu)return Ci;Bu=1;var e=hr(),t=Vr()(),r=Ru(),n=Xt(),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 A=n(h,"lastIndex"),m=A&&r(A,"value");if(!m)return!1;try{i(h,c)}catch(E){return E===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 Ci=o,Ci}var Bi,Lu;function Qg(){if(Lu)return Bi;Lu=1;var e=hr(),t=Zg(),r=e("RegExp.prototype.exec"),n=cr();return Bi=function(i){if(!t(i))throw new n("`regex` must be a RegExp");return function(u){return r(i,u)!==null}},Bi}var Li,Uu;function e0(){if(Uu)return Li;Uu=1;var e=hr(),t=Qg(),r=t(/^\s*(?:function)?\*/),n=Vr()(),o=Oi(),i=e("Object.prototype.toString"),a=e("Function.prototype.toString"),u=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},c;return Li=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},Li}var Ui,ju;function t0(){if(ju)return Ui;ju=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(p){p!==n&&(t=null)}else t=null;var o=/^\s*class\b/,i=function(d){try{var g=e.call(d);return o.test(g)}catch{return!1}},a=function(d){try{return i(d)?!1:(e.call(d),!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]",A="[object HTMLCollection]",m=typeof Symbol=="function"&&!!Symbol.toStringTag,E=!(0 in[,]),T=function(){return!1};if(typeof document=="object"){var y=document.all;u.call(y)===u.call(document.all)&&(T=function(d){if((E||!d)&&(typeof d>"u"||typeof d=="object"))try{var g=u.call(d);return(g===f||g===h||g===A||g===c)&&d("")==null}catch{}return!1})}return Ui=t?function(d){if(T(d))return!0;if(!d||typeof d!="function"&&typeof d!="object")return!1;try{t(d,null,r)}catch(g){if(g!==n)return!1}return!i(d)&&a(d)}:function(d){if(T(d))return!0;if(!d||typeof d!="function"&&typeof d!="object")return!1;if(m)return a(d);if(i(d))return!1;var g=u.call(d);return g!==l&&g!==s&&!/^\[object HTML/.test(g)?!1:a(d)},Ui}var ji,ku;function r0(){if(ku)return ji;ku=1;var e=t0(),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 ji=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)},ji}var ki,Mu;function n0(){return Mu||(Mu=1,ki=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),ki}var Mi,Du;function i0(){if(Du)return Mi;Du=1;var e=n0(),t=typeof globalThis>"u"?St:globalThis;return Mi=function(){for(var n=[],o=0;o<e.length;o++)typeof t[e[o]]=="function"&&(n[n.length]=e[o]);return n},Mi}var Di={exports:{}},qi,qu;function o0(){if(qu)return qi;qu=1;var e=Wr(),t=Qa(),r=cr(),n=Xt();return qi=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.")},qi}var $i,$u;function s0(){if($u)return $i;$u=1;var e=Wr(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},$i=t,$i}var Hi,Hu;function a0(){if(Hu)return Hi;Hu=1;var e=Pu(),t=o0(),r=s0()(),n=Xt(),o=cr(),i=e("%Math.floor%");return Hi=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},Hi}var Vi,Vu;function u0(){if(Vu)return Vi;Vu=1;var e=fr(),t=Ei(),r=Tu();return Vi=function(){return r(e,t,arguments)},Vi}var Wu;function l0(){return Wu||(Wu=1,(function(e){var t=a0(),r=Wr(),n=Si(),o=u0();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})(Di)),Di.exports}var Wi,Gu;function Ku(){if(Gu)return Wi;Gu=1;var e=r0(),t=i0(),r=l0(),n=hr(),o=Xt(),i=Oi(),a=n("Object.prototype.toString"),u=Vr()(),c=typeof globalThis>"u"?St:globalThis,l=t(),s=n("String.prototype.slice"),f=n("Array.prototype.indexOf",!0)||function(T,y){for(var p=0;p<T.length;p+=1)if(T[p]===y)return p;return-1},h={__proto__:null};u&&o&&i?e(l,function(E){var T=new c[E];if(Symbol.toStringTag in T&&i){var y=i(T),p=o(y,Symbol.toStringTag);if(!p&&y){var d=i(y);p=o(d,Symbol.toStringTag)}h["$"+E]=r(p.get)}}):e(l,function(E){var T=new c[E],y=T.slice||T.set;y&&(h["$"+E]=r(y))});var A=function(T){var y=!1;return e(h,function(p,d){if(!y)try{"$"+p(T)===d&&(y=s(d,1))}catch{}}),y},m=function(T){var y=!1;return e(h,function(p,d){if(!y)try{p(T),y=s(d,1)}catch{}}),y};return Wi=function(T){if(!T||typeof T!="object")return!1;if(!u){var y=s(a(T),8,-1);return f(l,y)>-1?y:y!=="Object"?!1:m(T)}return o?A(T):null},Wi}var Gi,zu;function c0(){if(zu)return Gi;zu=1;var e=Ku();return Gi=function(r){return!!e(r)},Gi}var Xu;function f0(){return Xu||(Xu=1,(function(e){var t=Jg(),r=e0(),n=Ku(),o=c0();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 A=i(Symbol.prototype.valueOf);function m(te,He){if(typeof te!="object")return!1;try{return He(te),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=o;function E(te){return typeof Promise<"u"&&te instanceof Promise||te!==null&&typeof te=="object"&&typeof te.then=="function"&&typeof te.catch=="function"}e.isPromise=E;function T(te){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(te):o(te)||Z(te)}e.isArrayBufferView=T;function y(te){return n(te)==="Uint8Array"}e.isUint8Array=y;function p(te){return n(te)==="Uint8ClampedArray"}e.isUint8ClampedArray=p;function d(te){return n(te)==="Uint16Array"}e.isUint16Array=d;function g(te){return n(te)==="Uint32Array"}e.isUint32Array=g;function v(te){return n(te)==="Int8Array"}e.isInt8Array=v;function x(te){return n(te)==="Int16Array"}e.isInt16Array=x;function I(te){return n(te)==="Int32Array"}e.isInt32Array=I;function P(te){return n(te)==="Float32Array"}e.isFloat32Array=P;function N(te){return n(te)==="Float64Array"}e.isFloat64Array=N;function j(te){return n(te)==="BigInt64Array"}e.isBigInt64Array=j;function K(te){return n(te)==="BigUint64Array"}e.isBigUint64Array=K;function L(te){return c(te)==="[object Map]"}L.working=typeof Map<"u"&&L(new Map);function k(te){return typeof Map>"u"?!1:L.working?L(te):te instanceof Map}e.isMap=k;function re(te){return c(te)==="[object Set]"}re.working=typeof Set<"u"&&re(new Set);function ee(te){return typeof Set>"u"?!1:re.working?re(te):te instanceof Set}e.isSet=ee;function ue(te){return c(te)==="[object WeakMap]"}ue.working=typeof WeakMap<"u"&&ue(new WeakMap);function le(te){return typeof WeakMap>"u"?!1:ue.working?ue(te):te instanceof WeakMap}e.isWeakMap=le;function de(te){return c(te)==="[object WeakSet]"}de.working=typeof WeakSet<"u"&&de(new WeakSet);function fe(te){return de(te)}e.isWeakSet=fe;function be(te){return c(te)==="[object ArrayBuffer]"}be.working=typeof ArrayBuffer<"u"&&be(new ArrayBuffer);function pe(te){return typeof ArrayBuffer>"u"?!1:be.working?be(te):te instanceof ArrayBuffer}e.isArrayBuffer=pe;function G(te){return c(te)==="[object DataView]"}G.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&G(new DataView(new ArrayBuffer(1),0,1));function Z(te){return typeof DataView>"u"?!1:G.working?G(te):te instanceof DataView}e.isDataView=Z;var Q=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function ae(te){return c(te)==="[object SharedArrayBuffer]"}function V(te){return typeof Q>"u"?!1:(typeof ae.working>"u"&&(ae.working=ae(new Q)),ae.working?ae(te):te instanceof Q)}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 $(te){return c(te)==="[object Set Iterator]"}e.isSetIterator=$;function q(te){return c(te)==="[object Generator]"}e.isGeneratorObject=q;function B(te){return c(te)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=B;function U(te){return m(te,l)}e.isNumberObject=U;function J(te){return m(te,s)}e.isStringObject=J;function oe(te){return m(te,f)}e.isBooleanObject=oe;function ge(te){return a&&m(te,h)}e.isBigIntObject=ge;function ce(te){return u&&m(te,A)}e.isSymbolObject=ce;function he(te){return U(te)||J(te)||oe(te)||ge(te)||ce(te)}e.isBoxedPrimitive=he;function Ne(te){return typeof Uint8Array<"u"&&(pe(te)||V(te))}e.isAnyArrayBuffer=Ne,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(te){Object.defineProperty(e,te,{enumerable:!1,value:function(){throw new Error(te+" is not supported in userland")}})})})(Wn)),Wn}var Ki,Yu;function h0(){return Yu||(Yu=1,Ki=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),Ki}var Ju;function Zu(){return Ju||(Ju=1,(function(e){var t=Object.getOwnPropertyDescriptors||function(Z){for(var Q=Object.keys(Z),ae={},V=0;V<Q.length;V++)ae[Q[V]]=Object.getOwnPropertyDescriptor(Z,Q[V]);return ae},r=/%[sdj%]/g;e.format=function(G){if(!v(G)){for(var Z=[],Q=0;Q<arguments.length;Q++)Z.push(a(arguments[Q]));return Z.join(" ")}for(var Q=1,ae=arguments,V=ae.length,R=String(G).replace(r,function($){if($==="%%")return"%";if(Q>=V)return $;switch($){case"%s":return String(ae[Q++]);case"%d":return Number(ae[Q++]);case"%j":try{return JSON.stringify(ae[Q++])}catch{return"[Circular]"}default:return $}}),O=ae[Q];Q<V;O=ae[++Q])p(O)||!N(O)?R+=" "+O:R+=" "+a(O);return R},e.deprecate=function(G,Z){if(typeof ye<"u"&&ye.noDeprecation===!0)return G;if(typeof ye>"u")return function(){return e.deprecate(G,Z).apply(this,arguments)};var Q=!1;function ae(){if(!Q){if(ye.throwDeprecation)throw new Error(Z);ye.traceDeprecation?console.trace(Z):console.error(Z),Q=!0}return G.apply(this,arguments)}return ae};var n={},o=/^$/;if(ye.env.NODE_DEBUG){var i=ye.env.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+i+"$","i")}e.debuglog=function(G){if(G=G.toUpperCase(),!n[G])if(o.test(G)){var Z=ye.pid;n[G]=function(){var Q=e.format.apply(e,arguments);console.error("%s %d: %s",G,Z,Q)}}else n[G]=function(){};return n[G]};function a(G,Z){var Q={seen:[],stylize:c};return arguments.length>=3&&(Q.depth=arguments[2]),arguments.length>=4&&(Q.colors=arguments[3]),y(Z)?Q.showHidden=Z:Z&&e._extend(Q,Z),I(Q.showHidden)&&(Q.showHidden=!1),I(Q.depth)&&(Q.depth=2),I(Q.colors)&&(Q.colors=!1),I(Q.customInspect)&&(Q.customInspect=!0),Q.colors&&(Q.stylize=u),s(Q,G,Q.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(G,Z){var Q=a.styles[Z];return Q?"\x1B["+a.colors[Q][0]+"m"+G+"\x1B["+a.colors[Q][1]+"m":G}function c(G,Z){return G}function l(G){var Z={};return G.forEach(function(Q,ae){Z[Q]=!0}),Z}function s(G,Z,Q){if(G.customInspect&&Z&&L(Z.inspect)&&Z.inspect!==e.inspect&&!(Z.constructor&&Z.constructor.prototype===Z)){var ae=Z.inspect(Q,G);return v(ae)||(ae=s(G,ae,Q)),ae}var V=f(G,Z);if(V)return V;var R=Object.keys(Z),O=l(R);if(G.showHidden&&(R=Object.getOwnPropertyNames(Z)),K(Z)&&(R.indexOf("message")>=0||R.indexOf("description")>=0))return h(Z);if(R.length===0){if(L(Z)){var $=Z.name?": "+Z.name:"";return G.stylize("[Function"+$+"]","special")}if(P(Z))return G.stylize(RegExp.prototype.toString.call(Z),"regexp");if(j(Z))return G.stylize(Date.prototype.toString.call(Z),"date");if(K(Z))return h(Z)}var q="",B=!1,U=["{","}"];if(T(Z)&&(B=!0,U=["[","]"]),L(Z)){var J=Z.name?": "+Z.name:"";q=" [Function"+J+"]"}if(P(Z)&&(q=" "+RegExp.prototype.toString.call(Z)),j(Z)&&(q=" "+Date.prototype.toUTCString.call(Z)),K(Z)&&(q=" "+h(Z)),R.length===0&&(!B||Z.length==0))return U[0]+q+U[1];if(Q<0)return P(Z)?G.stylize(RegExp.prototype.toString.call(Z),"regexp"):G.stylize("[Object]","special");G.seen.push(Z);var oe;return B?oe=A(G,Z,Q,O,R):oe=R.map(function(ge){return m(G,Z,Q,O,ge,B)}),G.seen.pop(),E(oe,q,U)}function f(G,Z){if(I(Z))return G.stylize("undefined","undefined");if(v(Z)){var Q="'"+JSON.stringify(Z).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return G.stylize(Q,"string")}if(g(Z))return G.stylize(""+Z,"number");if(y(Z))return G.stylize(""+Z,"boolean");if(p(Z))return G.stylize("null","null")}function h(G){return"["+Error.prototype.toString.call(G)+"]"}function A(G,Z,Q,ae,V){for(var R=[],O=0,$=Z.length;O<$;++O)de(Z,String(O))?R.push(m(G,Z,Q,ae,String(O),!0)):R.push("");return V.forEach(function(q){q.match(/^\d+$/)||R.push(m(G,Z,Q,ae,q,!0))}),R}function m(G,Z,Q,ae,V,R){var O,$,q;if(q=Object.getOwnPropertyDescriptor(Z,V)||{value:Z[V]},q.get?q.set?$=G.stylize("[Getter/Setter]","special"):$=G.stylize("[Getter]","special"):q.set&&($=G.stylize("[Setter]","special")),de(ae,V)||(O="["+V+"]"),$||(G.seen.indexOf(q.value)<0?(p(Q)?$=s(G,q.value,null):$=s(G,q.value,Q-1),$.indexOf(`
|
|
7
|
+
`)>-1&&(R?$=$.split(`
|
|
8
|
+
`).map(function(B){return" "+B}).join(`
|
|
9
|
+
`).slice(2):$=`
|
|
10
|
+
`+$.split(`
|
|
11
|
+
`).map(function(B){return" "+B}).join(`
|
|
12
|
+
`))):$=G.stylize("[Circular]","special")),I(O)){if(R&&V.match(/^\d+$/))return $;O=JSON.stringify(""+V),O.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(O=O.slice(1,-1),O=G.stylize(O,"name")):(O=O.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),O=G.stylize(O,"string"))}return O+": "+$}function E(G,Z,Q){var ae=G.reduce(function(V,R){return R.indexOf(`
|
|
13
|
+
`)>=0,V+R.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ae>60?Q[0]+(Z===""?"":Z+`
|
|
14
|
+
`)+" "+G.join(`,
|
|
15
|
+
`)+" "+Q[1]:Q[0]+Z+" "+G.join(", ")+" "+Q[1]}e.types=f0();function T(G){return Array.isArray(G)}e.isArray=T;function y(G){return typeof G=="boolean"}e.isBoolean=y;function p(G){return G===null}e.isNull=p;function d(G){return G==null}e.isNullOrUndefined=d;function g(G){return typeof G=="number"}e.isNumber=g;function v(G){return typeof G=="string"}e.isString=v;function x(G){return typeof G=="symbol"}e.isSymbol=x;function I(G){return G===void 0}e.isUndefined=I;function P(G){return N(G)&&re(G)==="[object RegExp]"}e.isRegExp=P,e.types.isRegExp=P;function N(G){return typeof G=="object"&&G!==null}e.isObject=N;function j(G){return N(G)&&re(G)==="[object Date]"}e.isDate=j,e.types.isDate=j;function K(G){return N(G)&&(re(G)==="[object Error]"||G instanceof Error)}e.isError=K,e.types.isNativeError=K;function L(G){return typeof G=="function"}e.isFunction=L;function k(G){return G===null||typeof G=="boolean"||typeof G=="number"||typeof G=="string"||typeof G=="symbol"||typeof G>"u"}e.isPrimitive=k,e.isBuffer=h0();function re(G){return Object.prototype.toString.call(G)}function ee(G){return G<10?"0"+G.toString(10):G.toString(10)}var ue=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function le(){var G=new Date,Z=[ee(G.getHours()),ee(G.getMinutes()),ee(G.getSeconds())].join(":");return[G.getDate(),ue[G.getMonth()],Z].join(" ")}e.log=function(){console.log("%s - %s",le(),e.format.apply(e,arguments))},e.inherits=jt(),e._extend=function(G,Z){if(!Z||!N(Z))return G;for(var Q=Object.keys(Z),ae=Q.length;ae--;)G[Q[ae]]=Z[Q[ae]];return G};function de(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)}var fe=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(Z){if(typeof Z!="function")throw new TypeError('The "original" argument must be of type Function');if(fe&&Z[fe]){var Q=Z[fe];if(typeof Q!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Q,fe,{value:Q,enumerable:!1,writable:!1,configurable:!0}),Q}function Q(){for(var ae,V,R=new Promise(function(q,B){ae=q,V=B}),O=[],$=0;$<arguments.length;$++)O.push(arguments[$]);O.push(function(q,B){q?V(q):ae(B)});try{Z.apply(this,O)}catch(q){V(q)}return R}return Object.setPrototypeOf(Q,Object.getPrototypeOf(Z)),fe&&Object.defineProperty(Q,fe,{value:Q,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Q,t(Z))},e.promisify.custom=fe;function be(G,Z){if(!G){var Q=new Error("Promise was rejected with a falsy value");Q.reason=G,G=Q}return Z(G)}function pe(G){if(typeof G!="function")throw new TypeError('The "original" argument must be of type Function');function Z(){for(var Q=[],ae=0;ae<arguments.length;ae++)Q.push(arguments[ae]);var V=Q.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)};G.apply(this,Q).then(function($){ye.nextTick(O.bind(null,null,$))},function($){ye.nextTick(be.bind(null,$,O))})}return Object.setPrototypeOf(Z,Object.getPrototypeOf(G)),Object.defineProperties(Z,t(G)),Z}e.callbackify=pe})(Vn)),Vn}var zi,Qu;function d0(){if(Qu)return zi;Qu=1;function e(m,E){var T=Object.keys(m);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(m);E&&(y=y.filter(function(p){return Object.getOwnPropertyDescriptor(m,p).enumerable})),T.push.apply(T,y)}return T}function t(m){for(var E=1;E<arguments.length;E++){var T=arguments[E]!=null?arguments[E]:{};E%2?e(Object(T),!0).forEach(function(y){r(m,y,T[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(T)):e(Object(T)).forEach(function(y){Object.defineProperty(m,y,Object.getOwnPropertyDescriptor(T,y))})}return m}function r(m,E,T){return E=a(E),E in m?Object.defineProperty(m,E,{value:T,enumerable:!0,configurable:!0,writable:!0}):m[E]=T,m}function n(m,E){if(!(m instanceof E))throw new TypeError("Cannot call a class as a function")}function o(m,E){for(var T=0;T<E.length;T++){var y=E[T];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,a(y.key),y)}}function i(m,E,T){return E&&o(m.prototype,E),Object.defineProperty(m,"prototype",{writable:!1}),m}function a(m){var E=u(m,"string");return typeof E=="symbol"?E:String(E)}function u(m,E){if(typeof m!="object"||m===null)return m;var T=m[Symbol.toPrimitive];if(T!==void 0){var y=T.call(m,E);if(typeof y!="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(m)}var c=Hr(),l=c.Buffer,s=Zu(),f=s.inspect,h=f&&f.custom||"inspect";function A(m,E,T){l.prototype.copy.call(m,E,T)}return zi=(function(){function m(){n(this,m),this.head=null,this.tail=null,this.length=0}return i(m,[{key:"push",value:function(T){var y={data:T,next:null};this.length>0?this.tail.next=y:this.head=y,this.tail=y,++this.length}},{key:"unshift",value:function(T){var y={data:T,next:this.head};this.length===0&&(this.tail=y),this.head=y,++this.length}},{key:"shift",value:function(){if(this.length!==0){var T=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,T}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(T){if(this.length===0)return"";for(var y=this.head,p=""+y.data;y=y.next;)p+=T+y.data;return p}},{key:"concat",value:function(T){if(this.length===0)return l.alloc(0);for(var y=l.allocUnsafe(T>>>0),p=this.head,d=0;p;)A(p.data,y,d),d+=p.data.length,p=p.next;return y}},{key:"consume",value:function(T,y){var p;return T<this.head.data.length?(p=this.head.data.slice(0,T),this.head.data=this.head.data.slice(T)):T===this.head.data.length?p=this.shift():p=y?this._getString(T):this._getBuffer(T),p}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(T){var y=this.head,p=1,d=y.data;for(T-=d.length;y=y.next;){var g=y.data,v=T>g.length?g.length:T;if(v===g.length?d+=g:d+=g.slice(0,T),T-=v,T===0){v===g.length?(++p,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=g.slice(v));break}++p}return this.length-=p,d}},{key:"_getBuffer",value:function(T){var y=l.allocUnsafe(T),p=this.head,d=1;for(p.data.copy(y),T-=p.data.length;p=p.next;){var g=p.data,v=T>g.length?g.length:T;if(g.copy(y,y.length-T,0,v),T-=v,T===0){v===g.length?(++d,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=g.slice(v));break}++d}return this.length-=d,y}},{key:h,value:function(T,y){return f(this,t(t({},y),{},{depth:0,customInspect:!1}))}}]),m})(),zi}var Xi,el;function tl(){if(el)return Xi;el=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,ye.nextTick(o,this,a)):ye.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?ye.nextTick(r,c):(c._writableState.errorEmitted=!0,ye.nextTick(t,c,f)):ye.nextTick(t,c,f):u?(ye.nextTick(r,c),u(f)):ye.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 Xi={destroy:e,undestroy:n,errorOrDestroy:i},Xi}var Yi={},rl;function Yt(){if(rl)return Yi;rl=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,A,m){return typeof c=="string"?c:c(h,A,m)}var f=(function(h){e(A,h);function A(m,E,T){return h.call(this,s(m,E,T))||this}return A})(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"),Yi.codes=t,Yi}var Ji,nl;function il(){if(nl)return Ji;nl=1;var e=Yt().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 Ji={getHighWaterMark:r},Ji}var Zi,ol;function p0(){if(ol)return Zi;ol=1,Zi=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(!St.localStorage)return!1}catch{return!1}var n=St.localStorage[r];return n==null?!1:String(n).toLowerCase()==="true"}return Zi}var Qi,sl;function al(){if(sl)return Qi;sl=1,Qi=P;function e(V){var R=this;this.next=null,this.entry=null,this.finish=function(){ae(R,V)}}var t;P.WritableState=x;var r={deprecate:p0()},n=qa(),o=Hr().Buffer,i=(typeof St<"u"?St: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=tl(),l=il(),s=l.getHighWaterMark,f=Yt().codes,h=f.ERR_INVALID_ARG_TYPE,A=f.ERR_METHOD_NOT_IMPLEMENTED,m=f.ERR_MULTIPLE_CALLBACK,E=f.ERR_STREAM_CANNOT_PIPE,T=f.ERR_STREAM_DESTROYED,y=f.ERR_STREAM_NULL_VALUES,p=f.ERR_STREAM_WRITE_AFTER_END,d=f.ERR_UNKNOWN_ENCODING,g=c.errorOrDestroy;jt()(P,n);function v(){}function x(V,R,O){t=t||Jt(),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 $=V.decodeStrings===!1;this.decodeStrings=!$,this.defaultEncoding=V.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(q){ue(R,q)},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)}x.prototype.getBuffer=function(){for(var R=this.bufferedRequest,O=[];R;)O.push(R),R=R.next;return O},(function(){try{Object.defineProperty(x.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var I;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(I=Function.prototype[Symbol.hasInstance],Object.defineProperty(P,Symbol.hasInstance,{value:function(R){return I.call(this,R)?!0:this!==P?!1:R&&R._writableState instanceof x}})):I=function(R){return R instanceof this};function P(V){t=t||Jt();var R=this instanceof t;if(!R&&!I.call(P,this))return new P(V);this._writableState=new x(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)}P.prototype.pipe=function(){g(this,new E)};function N(V,R){var O=new p;g(V,O),ye.nextTick(R,O)}function j(V,R,O,$){var q;return O===null?q=new y:typeof O!="string"&&!R.objectMode&&(q=new h("chunk",["string","Buffer"],O)),q?(g(V,q),ye.nextTick($,q),!1):!0}P.prototype.write=function(V,R,O){var $=this._writableState,q=!1,B=!$.objectMode&&u(V);return B&&!o.isBuffer(V)&&(V=a(V)),typeof R=="function"&&(O=R,R=null),B?R="buffer":R||(R=$.defaultEncoding),typeof O!="function"&&(O=v),$.ending?N(this,O):(B||j(this,$,V,O))&&($.pendingcb++,q=L(this,$,B,V,R,O)),q},P.prototype.cork=function(){this._writableState.corked++},P.prototype.uncork=function(){var V=this._writableState;V.corked&&(V.corked--,!V.writing&&!V.corked&&!V.bufferProcessing&&V.bufferedRequest&&fe(this,V))},P.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 d(R);return this._writableState.defaultEncoding=R,this},Object.defineProperty(P.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function K(V,R,O){return!V.objectMode&&V.decodeStrings!==!1&&typeof R=="string"&&(R=o.from(R,O)),R}Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function L(V,R,O,$,q,B){if(!O){var U=K(R,$,q);$!==U&&(O=!0,q="buffer",$=U)}var J=R.objectMode?1:$.length;R.length+=J;var oe=R.length<R.highWaterMark;if(oe||(R.needDrain=!0),R.writing||R.corked){var ge=R.lastBufferedRequest;R.lastBufferedRequest={chunk:$,encoding:q,isBuf:O,callback:B,next:null},ge?ge.next=R.lastBufferedRequest:R.bufferedRequest=R.lastBufferedRequest,R.bufferedRequestCount+=1}else k(V,R,!1,J,$,q,B);return oe}function k(V,R,O,$,q,B,U){R.writelen=$,R.writecb=U,R.writing=!0,R.sync=!0,R.destroyed?R.onwrite(new T("write")):O?V._writev(q,R.onwrite):V._write(q,B,R.onwrite),R.sync=!1}function re(V,R,O,$,q){--R.pendingcb,O?(ye.nextTick(q,$),ye.nextTick(Z,V,R),V._writableState.errorEmitted=!0,g(V,$)):(q($),V._writableState.errorEmitted=!0,g(V,$),Z(V,R))}function ee(V){V.writing=!1,V.writecb=null,V.length-=V.writelen,V.writelen=0}function ue(V,R){var O=V._writableState,$=O.sync,q=O.writecb;if(typeof q!="function")throw new m;if(ee(O),R)re(V,O,$,R,q);else{var B=be(O)||V.destroyed;!B&&!O.corked&&!O.bufferProcessing&&O.bufferedRequest&&fe(V,O),$?ye.nextTick(le,V,O,B,q):le(V,O,B,q)}}function le(V,R,O,$){O||de(V,R),R.pendingcb--,$(),Z(V,R)}function de(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 $=R.bufferedRequestCount,q=new Array($),B=R.corkedRequestsFree;B.entry=O;for(var U=0,J=!0;O;)q[U]=O,O.isBuf||(J=!1),O=O.next,U+=1;q.allBuffers=J,k(V,R,!0,R.length,q,"",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 oe=O.chunk,ge=O.encoding,ce=O.callback,he=R.objectMode?1:oe.length;if(k(V,R,!1,he,oe,ge,ce),O=O.next,R.bufferedRequestCount--,R.writing)break}O===null&&(R.lastBufferedRequest=null)}R.bufferedRequest=O,R.bufferProcessing=!1}P.prototype._write=function(V,R,O){O(new A("_write()"))},P.prototype._writev=null,P.prototype.end=function(V,R,O){var $=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),$.corked&&($.corked=1,this.uncork()),$.ending||Q(this,$,O),this},Object.defineProperty(P.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function be(V){return V.ending&&V.length===0&&V.bufferedRequest===null&&!V.finished&&!V.writing}function pe(V,R){V._final(function(O){R.pendingcb--,O&&g(V,O),R.prefinished=!0,V.emit("prefinish"),Z(V,R)})}function G(V,R){!R.prefinished&&!R.finalCalled&&(typeof V._final=="function"&&!R.destroyed?(R.pendingcb++,R.finalCalled=!0,ye.nextTick(pe,V,R)):(R.prefinished=!0,V.emit("prefinish")))}function Z(V,R){var O=be(R);if(O&&(G(V,R),R.pendingcb===0&&(R.finished=!0,V.emit("finish"),R.autoDestroy))){var $=V._readableState;(!$||$.autoDestroy&&$.endEmitted)&&V.destroy()}return O}function Q(V,R,O){R.ending=!0,Z(V,R),O&&(R.finished?ye.nextTick(O):V.once("finish",O)),R.ended=!0,V.writable=!1}function ae(V,R,O){var $=V.entry;for(V.entry=null;$;){var q=$.callback;R.pendingcb--,q(O),$=$.next}R.corkedRequestsFree.next=V}return Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(R){this._writableState&&(this._writableState.destroyed=R)}}),P.prototype.destroy=c.destroy,P.prototype._undestroy=c.undestroy,P.prototype._destroy=function(V,R){R(V)},Qi}var eo,ul;function Jt(){if(ul)return eo;ul=1;var e=Object.keys||function(l){var s=[];for(var f in l)s.push(f);return s};eo=a;var t=gl(),r=al();jt()(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||ye.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)}}),eo}var to={},Gr={exports:{}};var ll;function g0(){return ll||(ll=1,(function(e,t){var r=Hr(),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)}})(Gr,Gr.exports)),Gr.exports}var cl;function ro(){if(cl)return to;cl=1;var e=g0().Buffer,t=e.isEncoding||function(y){switch(y=""+y,y&&y.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(y){if(!y)return"utf8";for(var p;;)switch(y){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 y;default:if(p)return;y=(""+y).toLowerCase(),p=!0}}function n(y){var p=r(y);if(typeof p!="string"&&(e.isEncoding===t||!t(y)))throw new Error("Unknown encoding: "+y);return p||y}to.StringDecoder=o;function o(y){this.encoding=n(y);var p;switch(this.encoding){case"utf16le":this.text=f,this.end=h,p=4;break;case"utf8":this.fillLast=c,p=4;break;case"base64":this.text=A,this.end=m,p=3;break;default:this.write=E,this.end=T;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(p)}o.prototype.write=function(y){if(y.length===0)return"";var p,d;if(this.lastNeed){if(p=this.fillLast(y),p===void 0)return"";d=this.lastNeed,this.lastNeed=0}else d=0;return d<y.length?p?p+this.text(y,d):this.text(y,d):p||""},o.prototype.end=s,o.prototype.text=l,o.prototype.fillLast=function(y){if(this.lastNeed<=y.length)return y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,y.length),this.lastNeed-=y.length};function i(y){return y<=127?0:y>>5===6?2:y>>4===14?3:y>>3===30?4:y>>6===2?-1:-2}function a(y,p,d){var g=p.length-1;if(g<d)return 0;var v=i(p[g]);return v>=0?(v>0&&(y.lastNeed=v-1),v):--g<d||v===-2?0:(v=i(p[g]),v>=0?(v>0&&(y.lastNeed=v-2),v):--g<d||v===-2?0:(v=i(p[g]),v>=0?(v>0&&(v===2?v=0:y.lastNeed=v-3),v):0))}function u(y,p,d){if((p[0]&192)!==128)return y.lastNeed=0,"�";if(y.lastNeed>1&&p.length>1){if((p[1]&192)!==128)return y.lastNeed=1,"�";if(y.lastNeed>2&&p.length>2&&(p[2]&192)!==128)return y.lastNeed=2,"�"}}function c(y){var p=this.lastTotal-this.lastNeed,d=u(this,y);if(d!==void 0)return d;if(this.lastNeed<=y.length)return y.copy(this.lastChar,p,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,p,0,y.length),this.lastNeed-=y.length}function l(y,p){var d=a(this,y,p);if(!this.lastNeed)return y.toString("utf8",p);this.lastTotal=d;var g=y.length-(d-this.lastNeed);return y.copy(this.lastChar,0,g),y.toString("utf8",p,g)}function s(y){var p=y&&y.length?this.write(y):"";return this.lastNeed?p+"�":p}function f(y,p){if((y.length-p)%2===0){var d=y.toString("utf16le",p);if(d){var g=d.charCodeAt(d.length-1);if(g>=55296&&g<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1],d.slice(0,-1)}return d}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=y[y.length-1],y.toString("utf16le",p,y.length-1)}function h(y){var p=y&&y.length?this.write(y):"";if(this.lastNeed){var d=this.lastTotal-this.lastNeed;return p+this.lastChar.toString("utf16le",0,d)}return p}function A(y,p){var d=(y.length-p)%3;return d===0?y.toString("base64",p):(this.lastNeed=3-d,this.lastTotal=3,d===1?this.lastChar[0]=y[y.length-1]:(this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1]),y.toString("base64",p,y.length-d))}function m(y){var p=y&&y.length?this.write(y):"";return this.lastNeed?p+this.lastChar.toString("base64",0,3-this.lastNeed):p}function E(y){return y.toString(this.encoding)}function T(y){return y&&y.length?this.write(y):""}return to}var no,fl;function io(){if(fl)return no;fl=1;var e=Yt().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)},A=i._readableState&&i._readableState.endEmitted,m=function(){c=!1,A=!0,l||u.call(i)},E=function(d){u.call(i,d)},T=function(){var d;if(c&&!A)return(!i._readableState||!i._readableState.ended)&&(d=new e),u.call(i,d);if(l&&!f)return(!i._writableState||!i._writableState.ended)&&(d=new e),u.call(i,d)},y=function(){i.req.on("finish",h)};return n(i)?(i.on("complete",h),i.on("abort",T),i.req?y():i.on("request",y)):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",E),i.on("close",T),function(){i.removeListener("complete",h),i.removeListener("abort",T),i.removeListener("request",y),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",E),i.removeListener("close",T)}}return no=o,no}var oo,hl;function y0(){if(hl)return oo;hl=1;var e;function t(d,g,v){return g=r(g),g in d?Object.defineProperty(d,g,{value:v,enumerable:!0,configurable:!0,writable:!0}):d[g]=v,d}function r(d){var g=n(d,"string");return typeof g=="symbol"?g:String(g)}function n(d,g){if(typeof d!="object"||d===null)return d;var v=d[Symbol.toPrimitive];if(v!==void 0){var x=v.call(d,g);if(typeof x!="object")return x;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(d)}var o=io(),i=Symbol("lastResolve"),a=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),l=Symbol("lastPromise"),s=Symbol("handlePromise"),f=Symbol("stream");function h(d,g){return{value:d,done:g}}function A(d){var g=d[i];if(g!==null){var v=d[f].read();v!==null&&(d[l]=null,d[i]=null,d[a]=null,g(h(v,!1)))}}function m(d){ye.nextTick(A,d)}function E(d,g){return function(v,x){d.then(function(){if(g[c]){v(h(void 0,!0));return}g[s](v,x)},x)}}var T=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((e={get stream(){return this[f]},next:function(){var g=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){ye.nextTick(function(){g[u]?j(g[u]):N(h(void 0,!0))})});var x=this[l],I;if(x)I=new Promise(E(x,this));else{var P=this[f].read();if(P!==null)return Promise.resolve(h(P,!1));I=new Promise(this[s])}return this[l]=I,I}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var g=this;return new Promise(function(v,x){g[f].destroy(null,function(I){if(I){x(I);return}v(h(void 0,!0))})})}),e),T),p=function(g){var v,x=Object.create(y,(v={},t(v,f,{value:g,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:g._readableState.endEmitted,writable:!0}),t(v,s,{value:function(P,N){var j=x[f].read();j?(x[l]=null,x[i]=null,x[a]=null,P(h(j,!1))):(x[i]=P,x[a]=N)},writable:!0}),v));return x[l]=null,o(g,function(I){if(I&&I.code!=="ERR_STREAM_PREMATURE_CLOSE"){var P=x[a];P!==null&&(x[l]=null,x[i]=null,x[a]=null,P(I)),x[u]=I;return}var N=x[i];N!==null&&(x[l]=null,x[i]=null,x[a]=null,N(h(void 0,!0))),x[c]=!0}),g.on("readable",m.bind(null,x)),x};return oo=p,oo}var so,dl;function m0(){return dl||(dl=1,so=function(){throw new Error("Readable.from is not available in the browser")}),so}var ao,pl;function gl(){if(pl)return ao;pl=1,ao=N;var e;N.ReadableState=P,qn().EventEmitter;var t=function(U,J){return U.listeners(J).length},r=qa(),n=Hr().Buffer,o=(typeof St<"u"?St: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=Zu(),c;u&&u.debuglog?c=u.debuglog("stream"):c=function(){};var l=d0(),s=tl(),f=il(),h=f.getHighWaterMark,A=Yt().codes,m=A.ERR_INVALID_ARG_TYPE,E=A.ERR_STREAM_PUSH_AFTER_EOF,T=A.ERR_METHOD_NOT_IMPLEMENTED,y=A.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,p,d,g;jt()(N,r);var v=s.errorOrDestroy,x=["error","close","destroy","pause","resume"];function I(B,U,J){if(typeof B.prependListener=="function")return B.prependListener(U,J);!B._events||!B._events[U]?B.on(U,J):Array.isArray(B._events[U])?B._events[U].unshift(J):B._events[U]=[J,B._events[U]]}function P(B,U,J){e=e||Jt(),B=B||{},typeof J!="boolean"&&(J=U instanceof e),this.objectMode=!!B.objectMode,J&&(this.objectMode=this.objectMode||!!B.readableObjectMode),this.highWaterMark=h(this,B,"readableHighWaterMark",J),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&&(p||(p=ro().StringDecoder),this.decoder=new p(B.encoding),this.encoding=B.encoding)}function N(B){if(e=e||Jt(),!(this instanceof N))return new N(B);var U=this instanceof e;this._readableState=new P(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 J=this._readableState,oe;return J.objectMode?oe=!0:typeof B=="string"&&(U=U||J.defaultEncoding,U!==J.encoding&&(B=n.from(B,U),U=""),oe=!0),j(this,B,U,!1,oe)},N.prototype.unshift=function(B){return j(this,B,null,!0,!1)};function j(B,U,J,oe,ge){c("readableAddChunk",U);var ce=B._readableState;if(U===null)ce.reading=!1,ue(B,ce);else{var he;if(ge||(he=L(ce,U)),he)v(B,he);else if(ce.objectMode||U&&U.length>0)if(typeof U!="string"&&!ce.objectMode&&Object.getPrototypeOf(U)!==n.prototype&&(U=i(U)),oe)ce.endEmitted?v(B,new y):K(B,ce,U,!0);else if(ce.ended)v(B,new E);else{if(ce.destroyed)return!1;ce.reading=!1,ce.decoder&&!J?(U=ce.decoder.write(U),ce.objectMode||U.length!==0?K(B,ce,U,!1):fe(B,ce)):K(B,ce,U,!1)}else oe||(ce.reading=!1,fe(B,ce))}return!ce.ended&&(ce.length<ce.highWaterMark||ce.length===0)}function K(B,U,J,oe){U.flowing&&U.length===0&&!U.sync?(U.awaitDrain=0,B.emit("data",J)):(U.length+=U.objectMode?1:J.length,oe?U.buffer.unshift(J):U.buffer.push(J),U.needReadable&&le(B)),fe(B,U)}function L(B,U){var J;return!a(U)&&typeof U!="string"&&U!==void 0&&!B.objectMode&&(J=new m("chunk",["string","Buffer","Uint8Array"],U)),J}N.prototype.isPaused=function(){return this._readableState.flowing===!1},N.prototype.setEncoding=function(B){p||(p=ro().StringDecoder);var U=new p(B);this._readableState.decoder=U,this._readableState.encoding=this._readableState.decoder.encoding;for(var J=this._readableState.buffer.head,oe="";J!==null;)oe+=U.write(J.data),J=J.next;return this._readableState.buffer.clear(),oe!==""&&this._readableState.buffer.push(oe),this._readableState.length=oe.length,this};var k=1073741824;function re(B){return B>=k?B=k:(B--,B|=B>>>1,B|=B>>>2,B|=B>>>4,B|=B>>>8,B|=B>>>16,B++),B}function ee(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=re(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,J=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):le(this),null;if(B=ee(B,U),B===0&&U.ended)return U.length===0&&O(this),null;var oe=U.needReadable;c("need readable",oe),(U.length===0||U.length-B<U.highWaterMark)&&(oe=!0,c("length less than watermark",oe)),U.ended||U.reading?(oe=!1,c("reading or ended",oe)):oe&&(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=ee(J,U)));var ge;return B>0?ge=R(B,U):ge=null,ge===null?(U.needReadable=U.length<=U.highWaterMark,B=0):(U.length-=B,U.awaitDrain=0),U.length===0&&(U.ended||(U.needReadable=!0),J!==B&&U.ended&&O(this)),ge!==null&&this.emit("data",ge),ge};function ue(B,U){if(c("onEofChunk"),!U.ended){if(U.decoder){var J=U.decoder.end();J&&J.length&&(U.buffer.push(J),U.length+=U.objectMode?1:J.length)}U.ended=!0,U.sync?le(B):(U.needReadable=!1,U.emittedReadable||(U.emittedReadable=!0,de(B)))}}function le(B){var U=B._readableState;c("emitReadable",U.needReadable,U.emittedReadable),U.needReadable=!1,U.emittedReadable||(c("emitReadable",U.flowing),U.emittedReadable=!0,ye.nextTick(de,B))}function de(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,ye.nextTick(be,B,U))}function be(B,U){for(;!U.reading&&!U.ended&&(U.length<U.highWaterMark||U.flowing&&U.length===0);){var J=U.length;if(c("maybeReadMore read 0"),B.read(0),J===U.length)break}U.readingMore=!1}N.prototype._read=function(B){v(this,new T("_read()"))},N.prototype.pipe=function(B,U){var J=this,oe=this._readableState;switch(oe.pipesCount){case 0:oe.pipes=B;break;case 1:oe.pipes=[oe.pipes,B];break;default:oe.pipes.push(B);break}oe.pipesCount+=1,c("pipe count=%d opts=%j",oe.pipesCount,U);var ge=(!U||U.end!==!1)&&B!==ye.stdout&&B!==ye.stderr,ce=ge?Ne:ut;oe.endEmitted?ye.nextTick(ce):J.once("end",ce),B.on("unpipe",he);function he(ft,Ve){c("onunpipe"),ft===J&&Ve&&Ve.hasUnpiped===!1&&(Ve.hasUnpiped=!0,Me())}function Ne(){c("onend"),B.end()}var te=pe(J);B.on("drain",te);var He=!1;function Me(){c("cleanup"),B.removeListener("close",Ye),B.removeListener("finish",Ge),B.removeListener("drain",te),B.removeListener("error",Oe),B.removeListener("unpipe",he),J.removeListener("end",Ne),J.removeListener("end",ut),J.removeListener("data",xe),He=!0,oe.awaitDrain&&(!B._writableState||B._writableState.needDrain)&&te()}J.on("data",xe);function xe(ft){c("ondata");var Ve=B.write(ft);c("dest.write",Ve),Ve===!1&&((oe.pipesCount===1&&oe.pipes===B||oe.pipesCount>1&&q(oe.pipes,B)!==-1)&&!He&&(c("false write response, pause",oe.awaitDrain),oe.awaitDrain++),J.pause())}function Oe(ft){c("onerror",ft),ut(),B.removeListener("error",Oe),t(B,"error")===0&&v(B,ft)}I(B,"error",Oe);function Ye(){B.removeListener("finish",Ge),ut()}B.once("close",Ye);function Ge(){c("onfinish"),B.removeListener("close",Ye),ut()}B.once("finish",Ge);function ut(){c("unpipe"),J.unpipe(B)}return B.emit("pipe",J),oe.flowing||(c("pipe resume"),J.resume()),B};function pe(B){return function(){var J=B._readableState;c("pipeOnDrain",J.awaitDrain),J.awaitDrain&&J.awaitDrain--,J.awaitDrain===0&&t(B,"data")&&(J.flowing=!0,V(B))}}N.prototype.unpipe=function(B){var U=this._readableState,J={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,J),this);if(!B){var oe=U.pipes,ge=U.pipesCount;U.pipes=null,U.pipesCount=0,U.flowing=!1;for(var ce=0;ce<ge;ce++)oe[ce].emit("unpipe",this,{hasUnpiped:!1});return this}var he=q(U.pipes,B);return he===-1?this:(U.pipes.splice(he,1),U.pipesCount-=1,U.pipesCount===1&&(U.pipes=U.pipes[0]),B.emit("unpipe",this,J),this)},N.prototype.on=function(B,U){var J=r.prototype.on.call(this,B,U),oe=this._readableState;return B==="data"?(oe.readableListening=this.listenerCount("readable")>0,oe.flowing!==!1&&this.resume()):B==="readable"&&!oe.endEmitted&&!oe.readableListening&&(oe.readableListening=oe.needReadable=!0,oe.flowing=!1,oe.emittedReadable=!1,c("on readable",oe.length,oe.reading),oe.length?le(this):oe.reading||ye.nextTick(Z,this)),J},N.prototype.addListener=N.prototype.on,N.prototype.removeListener=function(B,U){var J=r.prototype.removeListener.call(this,B,U);return B==="readable"&&ye.nextTick(G,this),J},N.prototype.removeAllListeners=function(B){var U=r.prototype.removeAllListeners.apply(this,arguments);return(B==="readable"||B===void 0)&&ye.nextTick(G,this),U};function G(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 Z(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,Q(this,B)),B.paused=!1,this};function Q(B,U){U.resumeScheduled||(U.resumeScheduled=!0,ye.nextTick(ae,B,U))}function ae(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,J=this._readableState,oe=!1;B.on("end",function(){if(c("wrapped end"),J.decoder&&!J.ended){var he=J.decoder.end();he&&he.length&&U.push(he)}U.push(null)}),B.on("data",function(he){if(c("wrapped data"),J.decoder&&(he=J.decoder.write(he)),!(J.objectMode&&he==null)&&!(!J.objectMode&&(!he||!he.length))){var Ne=U.push(he);Ne||(oe=!0,B.pause())}});for(var ge in B)this[ge]===void 0&&typeof B[ge]=="function"&&(this[ge]=(function(Ne){return function(){return B[Ne].apply(B,arguments)}})(ge));for(var ce=0;ce<x.length;ce++)B.on(x[ce],this.emit.bind(this,x[ce]));return this._read=function(he){c("wrapped _read",he),oe&&(oe=!1,B.resume())},this},typeof Symbol=="function"&&(N.prototype[Symbol.asyncIterator]=function(){return d===void 0&&(d=y0()),d(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 J;return U.objectMode?J=U.buffer.shift():!B||B>=U.length?(U.decoder?J=U.buffer.join(""):U.buffer.length===1?J=U.buffer.first():J=U.buffer.concat(U.length),U.buffer.clear()):J=U.buffer.consume(B,U.decoder),J}function O(B){var U=B._readableState;c("endReadable",U.endEmitted),U.endEmitted||(U.ended=!0,ye.nextTick($,U,B))}function $(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 J=U._writableState;(!J||J.autoDestroy&&J.finished)&&U.destroy()}}typeof Symbol=="function"&&(N.from=function(B,U){return g===void 0&&(g=m0()),g(N,B,U)});function q(B,U){for(var J=0,oe=B.length;J<oe;J++)if(B[J]===U)return J;return-1}return ao}var uo,yl;function ml(){if(yl)return uo;yl=1,uo=u;var e=Yt().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=Jt();jt()(u,i);function a(s,f){var h=this._transformState;h.transforming=!1;var A=h.writecb;if(A===null)return this.emit("error",new r);h.writechunk=null,h.writecb=null,f!=null&&this.push(f),A(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 A=this._transformState;if(A.writecb=h,A.writechunk=s,A.writeencoding=f,!A.transforming){var m=this._readableState;(A.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 uo}var lo,bl;function b0(){if(bl)return lo;bl=1,lo=t;var e=ml();jt()(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)},lo}var co,wl;function w0(){if(wl)return co;wl=1;var e;function t(h){var A=!1;return function(){A||(A=!0,h.apply(void 0,arguments))}}var r=Yt().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,A,m,E){E=t(E);var T=!1;h.on("close",function(){T=!0}),e===void 0&&(e=io()),e(h,{readable:A,writable:m},function(p){if(p)return E(p);T=!0,E()});var y=!1;return function(p){if(!T&&!y){if(y=!0,a(h))return h.abort();if(typeof h.destroy=="function")return h.destroy();E(p||new o("pipe"))}}}function c(h){h()}function l(h,A){return h.pipe(A)}function s(h){return!h.length||typeof h[h.length-1]!="function"?i:h.pop()}function f(){for(var h=arguments.length,A=new Array(h),m=0;m<h;m++)A[m]=arguments[m];var E=s(A);if(Array.isArray(A[0])&&(A=A[0]),A.length<2)throw new n("streams");var T,y=A.map(function(p,d){var g=d<A.length-1,v=d>0;return u(p,g,v,function(x){T||(T=x),x&&y.forEach(c),!g&&(y.forEach(c),E(T))})});return A.reduce(l)}return co=f,co}var fo,vl;function v0(){if(vl)return fo;vl=1,fo=r;var e=qn().EventEmitter,t=jt();t(r,e),r.Readable=gl(),r.Writable=al(),r.Duplex=Jt(),r.Transform=ml(),r.PassThrough=b0(),r.finished=io(),r.pipeline=w0(),r.Stream=r;function r(){e.call(this)}return r.prototype.pipe=function(n,o){var i=this;function a(A){n.writable&&n.write(A)===!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(A){if(h(),e.listenerCount(this,"error")===0)throw A}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},fo}var El;function E0(){return El||(El=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 $=this;i($),$.q=$.c="",$.bufferCheckPosition=t.MAX_BUFFER_LENGTH,$.opt=O||{},$.opt.lowercase=$.opt.lowercase||$.opt.lowercasetags,$.looseCase=$.opt.lowercase?"toLowerCase":"toUpperCase",$.tags=[],$.closed=$.closedRoot=$.sawRoot=!1,$.tag=$.error=null,$.strict=!!R,$.noscript=!!(R||$.opt.noscript),$.state=N.BEGIN,$.strictEntities=$.opt.strictEntities,$.ENTITIES=$.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),$.attribList=[],$.opt.xmlns&&($.ns=Object.create(E)),$.opt.unquotedAttributeValues===void 0&&($.opt.unquotedAttributeValues=!R),$.trackPosition=$.opt.position!==!1,$.trackPosition&&($.position=$.line=$.column=0),K($,"onready")}Object.create||(Object.create=function(R){function O(){}O.prototype=R;var $=new O;return $}),Object.keys||(Object.keys=function(R){var O=[];for(var $ in R)R.hasOwnProperty($)&&O.push($);return O});function o(R){for(var O=Math.max(t.MAX_BUFFER_LENGTH,10),$=0,q=0,B=r.length;q<B;q++){var U=R[r[q]].length;if(U>O)switch(r[q]){case"textNode":k(R);break;case"cdata":L(R,"oncdata",R.cdata),R.cdata="";break;case"script":L(R,"onscript",R.script),R.script="";break;default:ee(R,"Max buffer length exceeded: "+r[q])}$=Math.max($,U)}var J=t.MAX_BUFFER_LENGTH-$;R.bufferCheckPosition=J+R.position}function i(R){for(var O=0,$=r.length;O<$;O++)R[r[O]]=""}function a(R){k(R),R.cdata!==""&&(L(R,"oncdata",R.cdata),R.cdata=""),R.script!==""&&(L(R,"onscript",R.script),R.script="")}n.prototype={end:function(){ue(this)},write:V,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a(this)}};var u;try{u=v0().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 $=this;this._parser.onend=function(){$.emit("end")},this._parser.onerror=function(q){$.emit("error",q),$._parser.error=null},this._decoder=null,c.forEach(function(q){Object.defineProperty($,"on"+q,{get:function(){return $._parser["on"+q]},set:function(B){if(!B)return $.removeAllListeners(q),$._parser["on"+q]=B,B;$.on(q,B)},enumerable:!0,configurable:!1})})}s.prototype=Object.create(u.prototype,{constructor:{value:s}}),s.prototype.write=function(R){if(typeof Ht=="function"&&typeof Ht.isBuffer=="function"&&Ht.isBuffer(R)){if(!this._decoder){var O=ro().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 $=this;return!$._parser["on"+R]&&c.indexOf(R)!==-1&&($._parser["on"+R]=function(){var q=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);q.splice(0,0,R),$.emit.apply($,q)}),u.prototype.on.call($,R,O)};var f="[CDATA[",h="DOCTYPE",A="http://www.w3.org/XML/1998/namespace",m="http://www.w3.org/2000/xmlns/",E={xml:A,xmlns:m},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]/,y=/[:_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-]/,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]/,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\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function g(R){return R===" "||R===`
|
|
16
|
+
`||R==="\r"||R===" "}function v(R){return R==='"'||R==="'"}function x(R){return R===">"||g(R)}function I(R,O){return R.test(O)}function P(R,O){return!I(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],$=typeof O=="number"?String.fromCharCode(O):O;t.ENTITIES[R]=$});for(var j in t.STATE)t.STATE[t.STATE[j]]=j;N=t.STATE;function K(R,O,$){R[O]&&R[O]($)}function L(R,O,$){R.textNode&&k(R),K(R,O,$)}function k(R){R.textNode=re(R.opt,R.textNode),R.textNode&&K(R,"ontext",R.textNode),R.textNode=""}function re(R,O){return R.trim&&(O=O.trim()),R.normalize&&(O=O.replace(/\s+/g," ")),O}function ee(R,O){return k(R),R.trackPosition&&(O+=`
|
|
17
|
+
Line: `+R.line+`
|
|
18
|
+
Column: `+R.column+`
|
|
19
|
+
Char: `+R.c),O=new Error(O),R.error=O,K(R,"onerror",O),R}function ue(R){return R.sawRoot&&!R.closedRoot&&le(R,"Unclosed root tag"),R.state!==N.BEGIN&&R.state!==N.BEGIN_WHITESPACE&&R.state!==N.TEXT&&ee(R,"Unexpected end"),k(R),R.c="",R.closed=!0,K(R,"onend"),n.call(R,R.strict,R.opt),R}function le(R,O){if(typeof R!="object"||!(R instanceof n))throw new Error("bad call to strictFail");R.strict&&ee(R,O)}function de(R){R.strict||(R.tagName=R.tagName[R.looseCase]());var O=R.tags[R.tags.length-1]||R,$=R.tag={name:R.tagName,attributes:{}};R.opt.xmlns&&($.ns=O.ns),R.attribList.length=0,L(R,"onopentagstart",$)}function fe(R,O){var $=R.indexOf(":"),q=$<0?["",R]:R.split(":"),B=q[0],U=q[1];return O&&R==="xmlns"&&(B="xmlns",U=""),{prefix:B,local:U}}function be(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),$=O.prefix,q=O.local;if($==="xmlns")if(q==="xml"&&R.attribValue!==A)le(R,"xml: prefix must be bound to "+A+`
|
|
20
|
+
Actual: `+R.attribValue);else if(q==="xmlns"&&R.attribValue!==m)le(R,"xmlns: prefix must be bound to "+m+`
|
|
21
|
+
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[q]=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 pe(R,O){if(R.opt.xmlns){var $=R.tag,q=fe(R.tagName);$.prefix=q.prefix,$.local=q.local,$.uri=$.ns[q.prefix]||"",$.prefix&&!$.uri&&(le(R,"Unbound namespace prefix: "+JSON.stringify(R.tagName)),$.uri=q.prefix);var B=R.tags[R.tags.length-1]||R;$.ns&&B.ns!==$.ns&&Object.keys($.ns).forEach(function(xe){L(R,"onopennamespace",{prefix:xe,uri:$.ns[xe]})});for(var U=0,J=R.attribList.length;U<J;U++){var oe=R.attribList[U],ge=oe[0],ce=oe[1],he=fe(ge,!0),Ne=he.prefix,te=he.local,He=Ne===""?"":$.ns[Ne]||"",Me={name:ge,value:ce,prefix:Ne,local:te,uri:He};Ne&&Ne!=="xmlns"&&!He&&(le(R,"Unbound namespace prefix: "+JSON.stringify(Ne)),Me.uri=Ne),R.tag.attributes[ge]=Me,L(R,"onattribute",Me)}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 G(R){if(!R.tagName){le(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,$=R.tagName;R.strict||($=$[R.looseCase]());for(var q=$;O--;){var B=R.tags[O];if(B.name!==q)le(R,"Unexpected close tag");else break}if(O<0){le(R,"Unmatched closing tag: "+R.tagName),R.textNode+="</"+R.tagName+">",R.state=N.TEXT;return}R.tagName=$;for(var U=R.tags.length;U-- >O;){var J=R.tag=R.tags.pop();R.tagName=R.tag.name,L(R,"onclosetag",R.tagName);var oe={};for(var ge in J.ns)oe[ge]=J.ns[ge];var ce=R.tags[R.tags.length-1]||R;R.opt.xmlns&&J.ns!==ce.ns&&Object.keys(J.ns).forEach(function(he){var Ne=J.ns[he];L(R,"onclosenamespace",{prefix:he,uri:Ne})})}O===0&&(R.closedRoot=!0),R.tagName=R.attribValue=R.attribName="",R.attribList.length=0,R.state=N.TEXT}function Z(R){var O=R.entity,$=O.toLowerCase(),q,B="";return R.ENTITIES[O]?R.ENTITIES[O]:R.ENTITIES[$]?R.ENTITIES[$]:(O=$,O.charAt(0)==="#"&&(O.charAt(1)==="x"?(O=O.slice(2),q=parseInt(O,16),B=q.toString(16)):(O=O.slice(1),q=parseInt(O,10),B=q.toString(10))),O=O.replace(/^0+/,""),isNaN(q)||B.toLowerCase()!==O?(le(R,"Invalid character entity"),"&"+R.entity+";"):String.fromCodePoint(q))}function Q(R,O){O==="<"?(R.state=N.OPEN_WAKA,R.startTagPosition=R.position):g(O)||(le(R,"Non-whitespace before first tag."),R.textNode=O,R.state=N.TEXT)}function ae(R,O){var $="";return O<R.length&&($=R.charAt(O)),$}function V(R){var O=this;if(this.error)throw this.error;if(O.closed)return ee(O,"Cannot write after close. Assign an onready handler.");if(R===null)return ue(O);typeof R=="object"&&(R=R.toString());for(var $=0,q="";q=ae(R,$++),O.c=q,!!q;)switch(O.trackPosition&&(O.position++,q===`
|
|
22
|
+
`?(O.line++,O.column=0):O.column++),O.state){case N.BEGIN:if(O.state=N.BEGIN_WHITESPACE,q==="\uFEFF")continue;Q(O,q);continue;case N.BEGIN_WHITESPACE:Q(O,q);continue;case N.TEXT:if(O.sawRoot&&!O.closedRoot){for(var B=$-1;q&&q!=="<"&&q!=="&";)q=ae(R,$++),q&&O.trackPosition&&(O.position++,q===`
|
|
23
|
+
`?(O.line++,O.column=0):O.column++);O.textNode+=R.substring(B,$-1)}q==="<"&&!(O.sawRoot&&O.closedRoot&&!O.strict)?(O.state=N.OPEN_WAKA,O.startTagPosition=O.position):(!g(q)&&(!O.sawRoot||O.closedRoot)&&le(O,"Text data outside of root node."),q==="&"?O.state=N.TEXT_ENTITY:O.textNode+=q);continue;case N.SCRIPT:q==="<"?O.state=N.SCRIPT_ENDING:O.script+=q;continue;case N.SCRIPT_ENDING:q==="/"?O.state=N.CLOSE_TAG:(O.script+="<"+q,O.state=N.SCRIPT);continue;case N.OPEN_WAKA:if(q==="!")O.state=N.SGML_DECL,O.sgmlDecl="";else if(!g(q))if(I(T,q))O.state=N.OPEN_TAG,O.tagName=q;else if(q==="/")O.state=N.CLOSE_TAG,O.tagName="";else if(q==="?")O.state=N.PROC_INST,O.procInstName=O.procInstBody="";else{if(le(O,"Unencoded <"),O.startTagPosition+1<O.position){var U=O.position-O.startTagPosition;q=new Array(U).join(" ")+q}O.textNode+="<"+q,O.state=N.TEXT}continue;case N.SGML_DECL:if(O.sgmlDecl+q==="--"){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+q,O.sgmlDecl=""):(O.sgmlDecl+q).toUpperCase()===f?(L(O,"onopencdata"),O.state=N.CDATA,O.sgmlDecl="",O.cdata=""):(O.sgmlDecl+q).toUpperCase()===h?(O.state=N.DOCTYPE,(O.doctype||O.sawRoot)&&le(O,"Inappropriately located doctype declaration"),O.doctype="",O.sgmlDecl=""):q===">"?(L(O,"onsgmldeclaration",O.sgmlDecl),O.sgmlDecl="",O.state=N.TEXT):(v(q)&&(O.state=N.SGML_DECL_QUOTED),O.sgmlDecl+=q);continue;case N.SGML_DECL_QUOTED:q===O.q&&(O.state=N.SGML_DECL,O.q=""),O.sgmlDecl+=q;continue;case N.DOCTYPE:q===">"?(O.state=N.TEXT,L(O,"ondoctype",O.doctype),O.doctype=!0):(O.doctype+=q,q==="["?O.state=N.DOCTYPE_DTD:v(q)&&(O.state=N.DOCTYPE_QUOTED,O.q=q));continue;case N.DOCTYPE_QUOTED:O.doctype+=q,q===O.q&&(O.q="",O.state=N.DOCTYPE);continue;case N.DOCTYPE_DTD:q==="]"?(O.doctype+=q,O.state=N.DOCTYPE):q==="<"?(O.state=N.OPEN_WAKA,O.startTagPosition=O.position):v(q)?(O.doctype+=q,O.state=N.DOCTYPE_DTD_QUOTED,O.q=q):O.doctype+=q;continue;case N.DOCTYPE_DTD_QUOTED:O.doctype+=q,q===O.q&&(O.state=N.DOCTYPE_DTD,O.q="");continue;case N.COMMENT:q==="-"?O.state=N.COMMENT_ENDING:O.comment+=q;continue;case N.COMMENT_ENDING:q==="-"?(O.state=N.COMMENT_ENDED,O.comment=re(O.opt,O.comment),O.comment&&L(O,"oncomment",O.comment),O.comment=""):(O.comment+="-"+q,O.state=N.COMMENT);continue;case N.COMMENT_ENDED:q!==">"?(le(O,"Malformed comment"),O.comment+="--"+q,O.state=N.COMMENT):O.doctype&&O.doctype!==!0?O.state=N.DOCTYPE_DTD:O.state=N.TEXT;continue;case N.CDATA:q==="]"?O.state=N.CDATA_ENDING:O.cdata+=q;continue;case N.CDATA_ENDING:q==="]"?O.state=N.CDATA_ENDING_2:(O.cdata+="]"+q,O.state=N.CDATA);continue;case N.CDATA_ENDING_2:q===">"?(O.cdata&&L(O,"oncdata",O.cdata),L(O,"onclosecdata"),O.cdata="",O.state=N.TEXT):q==="]"?O.cdata+="]":(O.cdata+="]]"+q,O.state=N.CDATA);continue;case N.PROC_INST:q==="?"?O.state=N.PROC_INST_ENDING:g(q)?O.state=N.PROC_INST_BODY:O.procInstName+=q;continue;case N.PROC_INST_BODY:if(!O.procInstBody&&g(q))continue;q==="?"?O.state=N.PROC_INST_ENDING:O.procInstBody+=q;continue;case N.PROC_INST_ENDING:q===">"?(L(O,"onprocessinginstruction",{name:O.procInstName,body:O.procInstBody}),O.procInstName=O.procInstBody="",O.state=N.TEXT):(O.procInstBody+="?"+q,O.state=N.PROC_INST_BODY);continue;case N.OPEN_TAG:I(y,q)?O.tagName+=q:(de(O),q===">"?pe(O):q==="/"?O.state=N.OPEN_TAG_SLASH:(g(q)||le(O,"Invalid character in tag name"),O.state=N.ATTRIB));continue;case N.OPEN_TAG_SLASH:q===">"?(pe(O,!0),G(O)):(le(O,"Forward-slash in opening tag not followed by >"),O.state=N.ATTRIB);continue;case N.ATTRIB:if(g(q))continue;q===">"?pe(O):q==="/"?O.state=N.OPEN_TAG_SLASH:I(T,q)?(O.attribName=q,O.attribValue="",O.state=N.ATTRIB_NAME):le(O,"Invalid attribute name");continue;case N.ATTRIB_NAME:q==="="?O.state=N.ATTRIB_VALUE:q===">"?(le(O,"Attribute without value"),O.attribValue=O.attribName,be(O),pe(O)):g(q)?O.state=N.ATTRIB_NAME_SAW_WHITE:I(y,q)?O.attribName+=q:le(O,"Invalid attribute name");continue;case N.ATTRIB_NAME_SAW_WHITE:if(q==="=")O.state=N.ATTRIB_VALUE;else{if(g(q))continue;le(O,"Attribute without value"),O.tag.attributes[O.attribName]="",O.attribValue="",L(O,"onattribute",{name:O.attribName,value:""}),O.attribName="",q===">"?pe(O):I(T,q)?(O.attribName=q,O.state=N.ATTRIB_NAME):(le(O,"Invalid attribute name"),O.state=N.ATTRIB)}continue;case N.ATTRIB_VALUE:if(g(q))continue;v(q)?(O.q=q,O.state=N.ATTRIB_VALUE_QUOTED):(O.opt.unquotedAttributeValues||ee(O,"Unquoted attribute value"),O.state=N.ATTRIB_VALUE_UNQUOTED,O.attribValue=q);continue;case N.ATTRIB_VALUE_QUOTED:if(q!==O.q){q==="&"?O.state=N.ATTRIB_VALUE_ENTITY_Q:O.attribValue+=q;continue}be(O),O.q="",O.state=N.ATTRIB_VALUE_CLOSED;continue;case N.ATTRIB_VALUE_CLOSED:g(q)?O.state=N.ATTRIB:q===">"?pe(O):q==="/"?O.state=N.OPEN_TAG_SLASH:I(T,q)?(le(O,"No whitespace between attributes"),O.attribName=q,O.attribValue="",O.state=N.ATTRIB_NAME):le(O,"Invalid attribute name");continue;case N.ATTRIB_VALUE_UNQUOTED:if(!x(q)){q==="&"?O.state=N.ATTRIB_VALUE_ENTITY_U:O.attribValue+=q;continue}be(O),q===">"?pe(O):O.state=N.ATTRIB;continue;case N.CLOSE_TAG:if(O.tagName)q===">"?G(O):I(y,q)?O.tagName+=q:O.script?(O.script+="</"+O.tagName,O.tagName="",O.state=N.SCRIPT):(g(q)||le(O,"Invalid tagname in closing tag"),O.state=N.CLOSE_TAG_SAW_WHITE);else{if(g(q))continue;P(T,q)?O.script?(O.script+="</"+q,O.state=N.SCRIPT):le(O,"Invalid tagname in closing tag."):O.tagName=q}continue;case N.CLOSE_TAG_SAW_WHITE:if(g(q))continue;q===">"?G(O):le(O,"Invalid characters in closing tag");continue;case N.TEXT_ENTITY:case N.ATTRIB_VALUE_ENTITY_Q:case N.ATTRIB_VALUE_ENTITY_U:var J,oe;switch(O.state){case N.TEXT_ENTITY:J=N.TEXT,oe="textNode";break;case N.ATTRIB_VALUE_ENTITY_Q:J=N.ATTRIB_VALUE_QUOTED,oe="attribValue";break;case N.ATTRIB_VALUE_ENTITY_U:J=N.ATTRIB_VALUE_UNQUOTED,oe="attribValue";break}if(q===";"){var ge=Z(O);O.opt.unparsedEntities&&!Object.values(t.XML_ENTITIES).includes(ge)?(O.entity="",O.state=J,O.write(ge)):(O[oe]+=ge,O.entity="",O.state=J)}else I(O.entity.length?d:p,q)?O.entity+=q:(le(O,"Invalid character in entity name"),O[oe]+="&"+O.entity+q,O.entity="",O.state=J);continue;default:throw new Error(O,"Unknown state: "+O.state)}return O.position>=O.bufferCheckPosition&&o(O),O}String.fromCodePoint||(function(){var R=String.fromCharCode,O=Math.floor,$=function(){var q=16384,B=[],U,J,oe=-1,ge=arguments.length;if(!ge)return"";for(var ce="";++oe<ge;){var he=Number(arguments[oe]);if(!isFinite(he)||he<0||he>1114111||O(he)!==he)throw RangeError("Invalid code point: "+he);he<=65535?B.push(he):(he-=65536,U=(he>>10)+55296,J=he%1024+56320,B.push(U,J)),(oe+1===ge||B.length>q)&&(ce+=R.apply(null,B),B.length=0)}return ce};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:$,configurable:!0,writable:!0}):String.fromCodePoint=$})()})(e)})(Dn)),Dn}var ho,xl;function po(){return xl||(xl=1,ho={isArray:function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"}}),ho}var go,Al;function yo(){if(Al)return go;Al=1;var e=po().isArray;return go={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}},go}var mo,Tl;function Sl(){if(Tl)return mo;Tl=1;var e=E0(),t=yo(),r=po().isArray,n,o;function i(y){return n=t.copyOptions(y),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(y){var p=Number(y);if(!isNaN(p))return p;var d=y.toLowerCase();return d==="true"?!0:d==="false"?!1:y}function u(y,p){var d;if(n.compact){if(!o[n[y+"Key"]]&&(r(n.alwaysArray)?n.alwaysArray.indexOf(n[y+"Key"])!==-1:n.alwaysArray)&&(o[n[y+"Key"]]=[]),o[n[y+"Key"]]&&!r(o[n[y+"Key"]])&&(o[n[y+"Key"]]=[o[n[y+"Key"]]]),y+"Fn"in n&&typeof p=="string"&&(p=n[y+"Fn"](p,o)),y==="instruction"&&("instructionFn"in n||"instructionNameFn"in n)){for(d in p)if(p.hasOwnProperty(d))if("instructionFn"in n)p[d]=n.instructionFn(p[d],d,o);else{var g=p[d];delete p[d],p[n.instructionNameFn(d,g,o)]=g}}r(o[n[y+"Key"]])?o[n[y+"Key"]].push(p):o[n[y+"Key"]]=p}else{o[n.elementsKey]||(o[n.elementsKey]=[]);var v={};if(v[n.typeKey]=y,y==="instruction"){for(d in p)if(p.hasOwnProperty(d))break;v[n.nameKey]="instructionNameFn"in n?n.instructionNameFn(d,p,o):d,n.instructionHasAttributes?(v[n.attributesKey]=p[d][n.attributesKey],"instructionFn"in n&&(v[n.attributesKey]=n.instructionFn(v[n.attributesKey],d,o))):("instructionFn"in n&&(p[d]=n.instructionFn(p[d],d,o)),v[n.instructionKey]=p[d])}else y+"Fn"in n&&(p=n[y+"Fn"](p,o)),v[n[y+"Key"]]=p;n.addParent&&(v[n.parentKey]=o),o[n.elementsKey].push(v)}}function c(y){if("attributesFn"in n&&y&&(y=n.attributesFn(y,o)),(n.trim||"attributeValueFn"in n||"attributeNameFn"in n||n.nativeTypeAttributes)&&y){var p;for(p in y)if(y.hasOwnProperty(p)&&(n.trim&&(y[p]=y[p].trim()),n.nativeTypeAttributes&&(y[p]=a(y[p])),"attributeValueFn"in n&&(y[p]=n.attributeValueFn(y[p],p,o)),"attributeNameFn"in n)){var d=y[p];delete y[p],y[n.attributeNameFn(p,y[p],o)]=d}}return y}function l(y){var p={};if(y.body&&(y.name.toLowerCase()==="xml"||n.instructionHasAttributes)){for(var d=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,g;(g=d.exec(y.body))!==null;)p[g[1]]=g[2]||g[3]||g[4];p=c(p)}if(y.name.toLowerCase()==="xml"){if(n.ignoreDeclaration)return;o[n.declarationKey]={},Object.keys(p).length&&(o[n.declarationKey][n.attributesKey]=p),n.addParent&&(o[n.declarationKey][n.parentKey]=o)}else{if(n.ignoreInstruction)return;n.trim&&(y.body=y.body.trim());var v={};n.instructionHasAttributes&&Object.keys(p).length?(v[y.name]={},v[y.name][n.attributesKey]=p):v[y.name]=y.body,u("instruction",v)}}function s(y,p){var d;if(typeof y=="object"&&(p=y.attributes,y=y.name),p=c(p),"elementNameFn"in n&&(y=n.elementNameFn(y,o)),n.compact){if(d={},!n.ignoreAttributes&&p&&Object.keys(p).length){d[n.attributesKey]={};var g;for(g in p)p.hasOwnProperty(g)&&(d[n.attributesKey][g]=p[g])}!(y in o)&&(r(n.alwaysArray)?n.alwaysArray.indexOf(y)!==-1:n.alwaysArray)&&(o[y]=[]),o[y]&&!r(o[y])&&(o[y]=[o[y]]),r(o[y])?o[y].push(d):o[y]=d}else o[n.elementsKey]||(o[n.elementsKey]=[]),d={},d[n.typeKey]="element",d[n.nameKey]=y,!n.ignoreAttributes&&p&&Object.keys(p).length&&(d[n.attributesKey]=p),n.alwaysChildren&&(d[n.elementsKey]=[]),o[n.elementsKey].push(d);d[n.parentKey]=o,o=d}function f(y){n.ignoreText||!y.trim()&&!n.captureSpacesBetweenElements||(n.trim&&(y=y.trim()),n.nativeType&&(y=a(y)),n.sanitize&&(y=y.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),u("text",y))}function h(y){n.ignoreComment||(n.trim&&(y=y.trim()),u("comment",y))}function A(y){var p=o[n.parentKey];n.addParent||delete o[n.parentKey],o=p}function m(y){n.ignoreCdata||(n.trim&&(y=y.trim()),u("cdata",y))}function E(y){n.ignoreDoctype||(y=y.replace(/^ /,""),n.trim&&(y=y.trim()),u("doctype",y))}function T(y){y.note=y}return mo=function(y,p){var d=e.parser(!0,{}),g={};if(o=g,n=i(p),d.opt={strictEntities:!0},d.onopentag=s,d.ontext=f,d.oncomment=h,d.onclosetag=A,d.onerror=T,d.oncdata=m,d.ondoctype=E,d.onprocessinginstruction=l,d.write(y).close(),g[n.elementsKey]){var v=g[n.elementsKey];delete g[n.elementsKey],g[n.elementsKey]=v,delete g.text}return g},mo}var bo,_l;function x0(){if(_l)return bo;_l=1;var e=yo(),t=Sl();function r(n){var o=e.copyOptions(n);return e.ensureSpacesExists(o),o}return bo=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")},bo}var wo,Nl;function Ol(){if(Nl)return wo;Nl=1;var e=yo(),t=po().isArray,r,n;function o(d){var g=e.copyOptions(d);return e.ensureFlagExists("ignoreDeclaration",g),e.ensureFlagExists("ignoreInstruction",g),e.ensureFlagExists("ignoreAttributes",g),e.ensureFlagExists("ignoreText",g),e.ensureFlagExists("ignoreComment",g),e.ensureFlagExists("ignoreCdata",g),e.ensureFlagExists("ignoreDoctype",g),e.ensureFlagExists("compact",g),e.ensureFlagExists("indentText",g),e.ensureFlagExists("indentCdata",g),e.ensureFlagExists("indentAttributes",g),e.ensureFlagExists("indentInstruction",g),e.ensureFlagExists("fullTagEmptyElement",g),e.ensureFlagExists("noQuotesForNativeAttributes",g),e.ensureSpacesExists(g),typeof g.spaces=="number"&&(g.spaces=Array(g.spaces+1).join(" ")),e.ensureKeyExists("declaration",g),e.ensureKeyExists("instruction",g),e.ensureKeyExists("attributes",g),e.ensureKeyExists("text",g),e.ensureKeyExists("comment",g),e.ensureKeyExists("cdata",g),e.ensureKeyExists("doctype",g),e.ensureKeyExists("type",g),e.ensureKeyExists("name",g),e.ensureKeyExists("elements",g),e.checkFnExists("doctype",g),e.checkFnExists("instruction",g),e.checkFnExists("cdata",g),e.checkFnExists("comment",g),e.checkFnExists("text",g),e.checkFnExists("instructionName",g),e.checkFnExists("elementName",g),e.checkFnExists("attributeName",g),e.checkFnExists("attributeValue",g),e.checkFnExists("attributes",g),e.checkFnExists("fullTagEmptyElement",g),g}function i(d,g,v){return(!v&&d.spaces?`
|
|
24
|
+
`:"")+Array(g+1).join(d.spaces)}function a(d,g,v){if(g.ignoreAttributes)return"";"attributesFn"in g&&(d=g.attributesFn(d,n,r));var x,I,P,N,j=[];for(x in d)d.hasOwnProperty(x)&&d[x]!==null&&d[x]!==void 0&&(N=g.noQuotesForNativeAttributes&&typeof d[x]!="string"?"":'"',I=""+d[x],I=I.replace(/"/g,"""),P="attributeNameFn"in g?g.attributeNameFn(x,I,n,r):x,j.push(g.spaces&&g.indentAttributes?i(g,v+1,!1):" "),j.push(P+"="+N+("attributeValueFn"in g?g.attributeValueFn(I,x,n,r):I)+N));return d&&Object.keys(d).length&&g.spaces&&g.indentAttributes&&j.push(i(g,v,!1)),j.join("")}function u(d,g,v){return r=d,n="xml",g.ignoreDeclaration?"":"<?xml"+a(d[g.attributesKey],g,v)+"?>"}function c(d,g,v){if(g.ignoreInstruction)return"";var x;for(x in d)if(d.hasOwnProperty(x))break;var I="instructionNameFn"in g?g.instructionNameFn(x,d[x],n,r):x;if(typeof d[x]=="object")return r=d,n=I,"<?"+I+a(d[x][g.attributesKey],g,v)+"?>";var P=d[x]?d[x]:"";return"instructionFn"in g&&(P=g.instructionFn(P,x,n,r)),"<?"+I+(P?" "+P:"")+"?>"}function l(d,g){return g.ignoreComment?"":"<!--"+("commentFn"in g?g.commentFn(d,n,r):d)+"-->"}function s(d,g){return g.ignoreCdata?"":"<![CDATA["+("cdataFn"in g?g.cdataFn(d,n,r):d.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function f(d,g){return g.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in g?g.doctypeFn(d,n,r):d)+">"}function h(d,g){return g.ignoreText?"":(d=""+d,d=d.replace(/&/g,"&"),d=d.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in g?g.textFn(d,n,r):d)}function A(d,g){var v;if(d.elements&&d.elements.length)for(v=0;v<d.elements.length;++v)switch(d.elements[v][g.typeKey]){case"text":if(g.indentText)return!0;break;case"cdata":if(g.indentCdata)return!0;break;case"instruction":if(g.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function m(d,g,v){r=d,n=d.name;var x=[],I="elementNameFn"in g?g.elementNameFn(d.name,d):d.name;x.push("<"+I),d[g.attributesKey]&&x.push(a(d[g.attributesKey],g,v));var P=d[g.elementsKey]&&d[g.elementsKey].length||d[g.attributesKey]&&d[g.attributesKey]["xml:space"]==="preserve";return P||("fullTagEmptyElementFn"in g?P=g.fullTagEmptyElementFn(d.name,d):P=g.fullTagEmptyElement),P?(x.push(">"),d[g.elementsKey]&&d[g.elementsKey].length&&(x.push(E(d[g.elementsKey],g,v+1)),r=d,n=d.name),x.push(g.spaces&&A(d,g)?`
|
|
25
|
+
`+Array(v+1).join(g.spaces):""),x.push("</"+I+">")):x.push("/>"),x.join("")}function E(d,g,v,x){return d.reduce(function(I,P){var N=i(g,v,x&&!I);switch(P.type){case"element":return I+N+m(P,g,v);case"comment":return I+N+l(P[g.commentKey],g);case"doctype":return I+N+f(P[g.doctypeKey],g);case"cdata":return I+(g.indentCdata?N:"")+s(P[g.cdataKey],g);case"text":return I+(g.indentText?N:"")+h(P[g.textKey],g);case"instruction":var j={};return j[P[g.nameKey]]=P[g.attributesKey]?P:P[g.instructionKey],I+(g.indentInstruction?N:"")+c(j,g,v)}},"")}function T(d,g,v){var x;for(x in d)if(d.hasOwnProperty(x))switch(x){case g.parentKey:case g.attributesKey:break;case g.textKey:if(g.indentText||v)return!0;break;case g.cdataKey:if(g.indentCdata||v)return!0;break;case g.instructionKey:if(g.indentInstruction||v)return!0;break;case g.doctypeKey:case g.commentKey:return!0;default:return!0}return!1}function y(d,g,v,x,I){r=d,n=g;var P="elementNameFn"in v?v.elementNameFn(g,d):g;if(typeof d>"u"||d===null||d==="")return"fullTagEmptyElementFn"in v&&v.fullTagEmptyElementFn(g,d)||v.fullTagEmptyElement?"<"+P+"></"+P+">":"<"+P+"/>";var N=[];if(g){if(N.push("<"+P),typeof d!="object")return N.push(">"+h(d,v)+"</"+P+">"),N.join("");d[v.attributesKey]&&N.push(a(d[v.attributesKey],v,x));var j=T(d,v,!0)||d[v.attributesKey]&&d[v.attributesKey]["xml:space"]==="preserve";if(j||("fullTagEmptyElementFn"in v?j=v.fullTagEmptyElementFn(g,d):j=v.fullTagEmptyElement),j)N.push(">");else return N.push("/>"),N.join("")}return N.push(p(d,v,x+1,!1)),r=d,n=g,g&&N.push((I?i(v,x,!1):"")+"</"+P+">"),N.join("")}function p(d,g,v,x){var I,P,N,j=[];for(P in d)if(d.hasOwnProperty(P))for(N=t(d[P])?d[P]:[d[P]],I=0;I<N.length;++I){switch(P){case g.declarationKey:j.push(u(N[I],g,v));break;case g.instructionKey:j.push((g.indentInstruction?i(g,v,x):"")+c(N[I],g,v));break;case g.attributesKey:case g.parentKey:break;case g.textKey:j.push((g.indentText?i(g,v,x):"")+h(N[I],g));break;case g.cdataKey:j.push((g.indentCdata?i(g,v,x):"")+s(N[I],g));break;case g.doctypeKey:j.push(i(g,v,x)+f(N[I],g));break;case g.commentKey:j.push(i(g,v,x)+l(N[I],g));break;default:j.push(i(g,v,x)+y(N[I],P,g,v,T(N[I],g)))}x=x&&!j.length}return j.join("")}return wo=function(d,g){g=o(g);var v=[];return r=d,n="_root_",g.compact?v.push(p(d,g,0,!0)):(d[g.declarationKey]&&v.push(u(d[g.declarationKey],g,0)),d[g.elementsKey]&&d[g.elementsKey].length&&v.push(E(d[g.elementsKey],g,0,!v.length))),v.join("")},wo}var vo,Rl;function A0(){if(Rl)return vo;Rl=1;var e=Ol();return vo=function(t,r){t instanceof Ht&&(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)},vo}var Eo,Il;function T0(){if(Il)return Eo;Il=1;var e=Sl(),t=x0(),r=Ol(),n=A0();return Eo={xml2js:e,xml2json:t,js2xml:r,json2xml:n},Eo}var S0=T0(),_0=cn(S0);function N0(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function dr(e,t=""){if(!Number.isSafeInteger(e)||e<0){const r=t&&`"${t}" `;throw new Error(`${r}expected integer >= 0, got ${e}`)}}function pr(e,t,r=""){const n=N0(e),o=e?.length,i=t!==void 0;if(!n||i&&o!==t){const a=r&&`"${r}" `,u=i?` of length ${t}`:"",c=n?`length=${o}`:`type=${typeof e}`;throw new Error(a+"expected Uint8Array"+u+", got "+c)}return e}function Pl(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash must wrapped by utils.createHasher");dr(e.outputLen),dr(e.blockLen)}function Kr(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 O0(e,t){pr(e,void 0,"digestInto() output");const r=t.outputLen;if(e.length<r)throw new Error('"digestInto() output" expected to be of length >='+r)}function gr(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function zr(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function R0(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function Fl(e,t=""){return typeof e=="string"?R0(e):pr(e,void 0,t)}function I0(e,t){if(t!==void 0&&{}.toString.call(t)!=="[object Object]")throw new Error("options must be object or undefined");return Object.assign(e,t)}function P0(e,t={}){const r=(o,i)=>e(i).update(o).digest(),n=e(void 0);return r.outputLen=n.outputLen,r.blockLen=n.blockLen,r.create=o=>e(o),Object.assign(r,t),Object.freeze(r)}const F0=e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])});class Cl{oHash;iHash;blockLen;outputLen;finished=!1;destroyed=!1;constructor(t,r){if(Pl(t),pr(r,void 0,"key"),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 n=this.blockLen,o=new Uint8Array(n);o.set(r.length>n?t.create().update(r).digest():r);for(let i=0;i<o.length;i++)o[i]^=54;this.iHash.update(o),this.oHash=t.create();for(let i=0;i<o.length;i++)o[i]^=106;this.oHash.update(o),gr(o)}update(t){return Kr(this),this.iHash.update(t),this}digestInto(t){Kr(this),pr(t,this.outputLen,"output"),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||=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 Bl=(e,t,r)=>new Cl(e,t).update(r).digest();Bl.create=(e,t)=>new Cl(e,t);function C0(e,t,r,n){Pl(e);const o=I0({dkLen:32,asyncTick:10},n),{c:i,dkLen:a,asyncTick:u}=o;if(dr(i,"c"),dr(a,"dkLen"),dr(u,"asyncTick"),i<1)throw new Error("iterations (c) must be >= 1");const c=Fl(t,"password"),l=Fl(r,"salt"),s=new Uint8Array(a),f=Bl.create(e,c),h=f._cloneInto().update(l);return{c:i,dkLen:a,asyncTick:u,DK:s,PRF:f,PRFSalt:h}}function B0(e,t,r,n,o){return e.destroy(),t.destroy(),n&&n.destroy(),gr(o),r}function L0(e,t,r,n){const{c:o,dkLen:i,DK:a,PRF:u,PRFSalt:c}=C0(e,t,r,n);let l;const s=new Uint8Array(4),f=zr(s),h=new Uint8Array(u.outputLen);for(let A=1,m=0;m<i;A++,m+=u.outputLen){const E=a.subarray(m,m+u.outputLen);f.setInt32(0,A,!1),(l=c._cloneInto(l)).update(s).digestInto(h),E.set(h.subarray(0,E.length));for(let T=1;T<o;T++){u._cloneInto(l).update(h).digestInto(h);for(let y=0;y<E.length;y++)E[y]^=h[y]}}return B0(u,c,a,l,h)}class U0{blockLen;outputLen;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(t,r,n,o){this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=o,this.buffer=new Uint8Array(t),this.view=zr(this.buffer)}update(t){Kr(this),pr(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=zr(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){Kr(this),O0(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;n.setBigUint64(o-8,BigInt(this.length*8),i),this.process(n,0);const u=zr(t),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen must 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||=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 ze=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),Xr=BigInt(2**32-1),Ll=BigInt(32);function j0(e,t=!1){return t?{h:Number(e&Xr),l:Number(e>>Ll&Xr)}:{h:Number(e>>Ll&Xr)|0,l:Number(e&Xr)|0}}function k0(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}=j0(e[i],t);[n[i],o[i]]=[a,u]}return[n,o]}const Ul=(e,t,r)=>e>>>r,jl=(e,t,r)=>e<<32-r|t>>>r,Zt=(e,t,r)=>e>>>r|t<<32-r,Qt=(e,t,r)=>e<<32-r|t>>>r,Yr=(e,t,r)=>e<<64-r|t>>>r-32,Jr=(e,t,r)=>e>>>r-32|t<<64-r;function Et(e,t,r,n){const o=(t>>>0)+(n>>>0);return{h:e+r+(o/2**32|0)|0,l:o|0}}const M0=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),D0=(e,t,r,n)=>t+r+n+(e/2**32|0)|0,q0=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),$0=(e,t,r,n,o)=>t+r+n+o+(e/2**32|0)|0,H0=(e,t,r,n,o)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(o>>>0),V0=(e,t,r,n,o,i)=>t+r+n+o+i+(e/2**32|0)|0,kl=k0(["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))),W0=kl[0],G0=kl[1],_t=new Uint32Array(80),Nt=new Uint32Array(80);class K0 extends U0{constructor(t){super(128,t,16,!1)}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:A,Gl:m,Hh:E,Hl:T}=this;return[t,r,n,o,i,a,u,c,l,s,f,h,A,m,E,T]}set(t,r,n,o,i,a,u,c,l,s,f,h,A,m,E,T){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=A|0,this.Gl=m|0,this.Hh=E|0,this.Hl=T|0}process(t,r){for(let d=0;d<16;d++,r+=4)_t[d]=t.getUint32(r),Nt[d]=t.getUint32(r+=4);for(let d=16;d<80;d++){const g=_t[d-15]|0,v=Nt[d-15]|0,x=Zt(g,v,1)^Zt(g,v,8)^Ul(g,v,7),I=Qt(g,v,1)^Qt(g,v,8)^jl(g,v,7),P=_t[d-2]|0,N=Nt[d-2]|0,j=Zt(P,N,19)^Yr(P,N,61)^Ul(P,N,6),K=Qt(P,N,19)^Jr(P,N,61)^jl(P,N,6),L=q0(I,K,Nt[d-7],Nt[d-16]),k=$0(L,x,j,_t[d-7],_t[d-16]);_t[d]=k|0,Nt[d]=L|0}let{Ah:n,Al:o,Bh:i,Bl:a,Ch:u,Cl:c,Dh:l,Dl:s,Eh:f,El:h,Fh:A,Fl:m,Gh:E,Gl:T,Hh:y,Hl:p}=this;for(let d=0;d<80;d++){const g=Zt(f,h,14)^Zt(f,h,18)^Yr(f,h,41),v=Qt(f,h,14)^Qt(f,h,18)^Jr(f,h,41),x=f&A^~f&E,I=h&m^~h&T,P=H0(p,v,I,G0[d],Nt[d]),N=V0(P,y,g,x,W0[d],_t[d]),j=P|0,K=Zt(n,o,28)^Yr(n,o,34)^Yr(n,o,39),L=Qt(n,o,28)^Jr(n,o,34)^Jr(n,o,39),k=n&i^n&u^i&u,re=o&a^o&c^a&c;y=E|0,p=T|0,E=A|0,T=m|0,A=f|0,m=h|0,{h:f,l:h}=Et(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 ee=M0(j,L,re);n=D0(ee,N,K,k),o=ee|0}({h:n,l:o}=Et(this.Ah|0,this.Al|0,n|0,o|0)),{h:i,l:a}=Et(this.Bh|0,this.Bl|0,i|0,a|0),{h:u,l:c}=Et(this.Ch|0,this.Cl|0,u|0,c|0),{h:l,l:s}=Et(this.Dh|0,this.Dl|0,l|0,s|0),{h:f,l:h}=Et(this.Eh|0,this.El|0,f|0,h|0),{h:A,l:m}=Et(this.Fh|0,this.Fl|0,A|0,m|0),{h:E,l:T}=Et(this.Gh|0,this.Gl|0,E|0,T|0),{h:y,l:p}=Et(this.Hh|0,this.Hl|0,y|0,p|0),this.set(n,o,i,a,u,c,l,s,f,h,A,m,E,T,y,p)}roundClean(){gr(_t,Nt)}destroy(){gr(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class z0 extends K0{Ah=ze[0]|0;Al=ze[1]|0;Bh=ze[2]|0;Bl=ze[3]|0;Ch=ze[4]|0;Cl=ze[5]|0;Dh=ze[6]|0;Dl=ze[7]|0;Eh=ze[8]|0;El=ze[9]|0;Fh=ze[10]|0;Fl=ze[11]|0;Gh=ze[12]|0;Gl=ze[13]|0;Hh=ze[14]|0;Hl=ze[15]|0;constructor(){super(64)}}const X0=P0(()=>new z0,F0(3)),Y0=(e,t,r,n)=>Ht.from(L0(X0,e,t,{c:r,dkLen:n}));class J0{axiosClient;baseURI;signingKey;ALGORITHM="sha512";TTL=1200;HASH_LENGTH=32;ITERATION_COUNT=1e4;constructor({axiosClient:t,baseURI:r}){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(Ee(this.baseURI,"ocs/v1.php/cloud/user/signing-key"),{headers:{"Content-Type":"application/x-www-form-urlencoded"}}),r=_0.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 Y0(t,r,this.ITERATION_COUNT,this.HASH_LENGTH,this.ALGORITHM).toString("hex")}}const Z0=(e,t)=>{const r=new URL(e);r.pathname=[...r.pathname.split("/"),"ocs","v1.php"].filter(Boolean).join("/");const n=r.href,o=Fg(n,t),i=new J0({baseURI:e,axiosClient:t});return{getCapabilities:()=>o.getCapabilities(),signUrl:(a,u)=>i.signUrl(a,u)}},xt=(e,{fileId:t,path:r,name:n})=>{if(r!==void 0)return Ee(e.webDavPath,r);if(t!==void 0){if(kn(e))throw new Error("public spaces need a path provided");return Ee("spaces",t,n||"")}return e.webDavPath},Q0=(e,t)=>({copyFiles(r,{path:n,fileId:o},i,{path:a,parentFolderId:u,name:c},{overwrite:l,...s}={}){const f=xt(r,{fileId:o,path:n}),h=xt(i,{fileId:u,path:a,name:c});return e.copy(f,h,{overwrite:l||!1,...s})}}),ey=(e,t,r)=>({async createFolder(n,{path:o,parentFolderId:i,folderName:a,fetchFolder:u=!0,...c}){const l=xt(n,{fileId:i,path:o,name:a});if(await e.mkcol(l),u)return t.getFileInfo(n,{path:o},c)}}),ty=(e,{axiosClient:t})=>({async getFileContents(r,{fileId:n,path:o},{responseType:i="text",noCache:a=!0,headers:u,...c}={}){try{const l=xt(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 Zs(s,f,f.status)}}}),ry=(e,t)=>({async getFileInfo(r,n,o){return(await e.listFiles(r,n,{depth:0,...o})).resource}}),ny=(e,t,r,{axiosClient:n,baseUrl:o})=>({async getFileUrl(i,a,{disposition:u="attachment",isUrlSigningEnabled:c=!0,signUrlTimeout:l=86400,version:s=null,doHeadRequest:f=!1,username:h="",...A}){if(u==="inline"){const E=await t.getFileContents(i,a,{responseType:"blob",...A});return URL.createObjectURL(E.body)}if(s){if(!h)throw new Error("username is required for URL signing");const E=e.getFileUrl(Ee("meta",a.fileId,"v",s));return await Z0(o,n).signUrl(E,h)}if(a.downloadURL)return a.downloadURL;const{downloadURL:m}=await r.getFileInfo(i,a,{davProperties:[se.DownloadURL]});return m},revokeUrl:i=>{i&&i.startsWith("blob:")&&URL.revokeObjectURL(i)}}),iy=(e,t)=>({getPublicFileUrl(r,n){return e.getFileUrl(Ee("public-files",n))}}),oy=(e,t,r)=>({async listFiles(n,{path:o,fileId:i}={},{depth:a=1,davProperties:u,isTrash:c=!1,...l}={}){let s;if(kn(n)){s=await e.propfind(Ee(n.webDavPath,o),{depth:a,properties:u||Bt.PublicLink,...l}),s.forEach(m=>{m.filename=m.filename.split("/").slice(1).join("/")}),s.length===1&&(s[0].filename=Ee(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[se.PublicLinkItemType]==="file"&&(s=[{basename:n.fileId,type:"directory",filename:"",props:{}},...s]),!o){const[m,...E]=s;return{resource:Ig({...m,id:n.id,driveAlias:n.driveAlias,webDavPath:n.webDavPath,publicLinkType:h}),children:E.map(T=>zt(T,e.extraProps))}}const A=s.map(m=>zt(m,e.extraProps));return{resource:A[0],children:A.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=Mn(n.id):h=xt(n,{fileId:i,path:o}),s=await e.propfind(h,{depth:a,properties:u||Bt.Default,...l}),c)return{resource:zt(s[0],e.extraProps),children:s.slice(1).map(Og)};const A=s.map(E=>zt(E,e.extraProps)),m=i===n.id;return i&&!m&&A[0].fileId&&i!==A[0].fileId?f():{resource:A[0],children:A.slice(1)}}catch(h){if(h.statusCode===404&&i)return f();throw h}}}),sy=(e,t)=>({moveFiles(r,{path:n,fileId:o},i,{path:a,parentFolderId:u,name:c},{overwrite:l,...s}={}){const f=xt(r,{fileId:o,path:n}),h=xt(i,{fileId:u,path:a,name:c});return e.move(f,h,{overwrite:l||!1,...s})}}),ay=(e,t,r)=>({async putFileContents(n,{fileName:o,path:i,parentFolderId:a,content:u="",previousEntityTag:c="",overwrite:l,onUploadProgress:s=null,...f}){const h=xt(n,{fileId:a,name:o,path:i}),{result:A}=await e.put(h,u,{previousEntityTag:c,overwrite:l,onUploadProgress:s,...f});return t.getFileInfo(n,{fileId:A.headers.get("Oc-Fileid"),path:i})}}),uy=(e,t)=>({deleteFile(r,{path:n,...o}){return e.delete(Ee(r.webDavPath,n),o)}}),ly=(e,t)=>({restoreFile(r,{id:n},{path:o},{overwrite:i,...a}={}){if(kn(r))return;const u=Ee(r.webDavPath,o);return e.move(Ee(r.webDavTrashPath,n),u,{overwrite:i,...a})}}),cy=(e,t)=>({restoreFileVersion(r,{parentFolderId:n,name:o,path:i},a,u={}){const c=xt(r,{path:i,fileId:n,name:o}),l=Ee("meta",n,"v",a,{leadingSlash:!0}),s=Ee("files",c,{leadingSlash:!0});return e.copy(l,s,u)}}),fy=(e,t)=>({clearTrashBin(r,{id:n,...o}={}){let i=Mn(r.id);return n&&(i=Ee(i,n)),e.delete(i,o)}}),hy=(e,t)=>({async search(r,{davProperties:n=Bt.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=>({...zt(l,e.extraProps),highlights:l.props[se.Highlights]||""})),totalResults:u?parseInt(u?.split("/")[1]):null}}}),dy=(e,t)=>({async getPathForFileId(r,n={}){return(await e.propfind(Ee("meta",r,{leadingSlash:!0}),{properties:[se.MetaPathForUser],...n}))[0].props[se.MetaPathForUser]}});var py={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),A=a.indexOf(i,h+1),m=h;if(h>=0&&A>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(),A]:((c=u.pop())<l&&(l=c,s=A),A=a.indexOf(i,m+1)),m=h<A&&h>=0?h:A;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 mt=="object"&&mt);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,A,m,E,T=f.length%3,y="",p=-1,d=f.length-T;++p<d;)h=f.charCodeAt(p)<<16,A=f.charCodeAt(++p)<<8,m=f.charCodeAt(++p),y+=c.charAt((E=h+A+m)>>18&63)+c.charAt(E>>12&63)+c.charAt(E>>6&63)+c.charAt(63&E);return T==2?(h=f.charCodeAt(p)<<8,A=f.charCodeAt(++p),y+=c.charAt((E=h+A)>>10)+c.charAt(E>>4&63)+c.charAt(E<<2&63)+"="):T==1&&(E=f.charCodeAt(p),y+=c.charAt(E>>2)+c.charAt(E<<4&63)+"=="),y},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 A,m,E=0,T="",y=-1;++y<h;)m=c.indexOf(f.charAt(y)),A=E%4?64*A+m:m,E++%4&&(T+=String.fromCharCode(255&A>>(-2*E&6)));return T},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(p){return p===" "||p===" "||p===`
|
|
26
|
+
`||p==="\r"}function a(p,d){const g=d;for(;d<p.length;d++)if(!(p[d]!="?"&&p[d]!=" ")){const v=p.substr(g,d-g);if(d>5&&v==="xml")return m("InvalidXml","XML declaration allowed only at the start of the document.",T(p,d));if(p[d]=="?"&&p[d+1]==">"){d++;break}}return d}function u(p,d){if(p.length>d+5&&p[d+1]==="-"&&p[d+2]==="-"){for(d+=3;d<p.length;d++)if(p[d]==="-"&&p[d+1]==="-"&&p[d+2]===">"){d+=2;break}}else if(p.length>d+8&&p[d+1]==="D"&&p[d+2]==="O"&&p[d+3]==="C"&&p[d+4]==="T"&&p[d+5]==="Y"&&p[d+6]==="P"&&p[d+7]==="E"){let g=1;for(d+=8;d<p.length;d++)if(p[d]==="<")g++;else if(p[d]===">"&&(g--,g===0))break}else if(p.length>d+9&&p[d+1]==="["&&p[d+2]==="C"&&p[d+3]==="D"&&p[d+4]==="A"&&p[d+5]==="T"&&p[d+6]==="A"&&p[d+7]==="["){for(d+=8;d<p.length;d++)if(p[d]==="]"&&p[d+1]==="]"&&p[d+2]===">"){d+=2;break}}return d}t.validate=function(p,d){d=Object.assign({},o,d);const g=[];let v=!1,x=!1;p[0]==="\uFEFF"&&(p=p.substr(1));for(let P=0;P<p.length;P++)if(p[P]==="<"&&p[P+1]==="?"){if(P+=2,P=a(p,P),P.err)return P}else{if(p[P]!=="<"){if(i(p[P]))continue;return m("InvalidChar","char '"+p[P]+"' is not expected.",T(p,P))}{let N=P;if(P++,p[P]==="!"){P=u(p,P);continue}{let j=!1;p[P]==="/"&&(j=!0,P++);let K="";for(;P<p.length&&p[P]!==">"&&p[P]!==" "&&p[P]!==" "&&p[P]!==`
|
|
27
|
+
`&&p[P]!=="\r";P++)K+=p[P];if(K=K.trim(),K[K.length-1]==="/"&&(K=K.substring(0,K.length-1),P--),I=K,!n.isName(I)){let re;return re=K.trim().length===0?"Invalid space after '<'.":"Tag '"+K+"' is an invalid name.",m("InvalidTag",re,T(p,P))}const L=s(p,P);if(L===!1)return m("InvalidAttr","Attributes for '"+K+"' have open quote.",T(p,P));let k=L.value;if(P=L.index,k[k.length-1]==="/"){const re=P-k.length;k=k.substring(0,k.length-1);const ee=h(k,d);if(ee!==!0)return m(ee.err.code,ee.err.msg,T(p,re+ee.err.line));v=!0}else if(j){if(!L.tagClosed)return m("InvalidTag","Closing tag '"+K+"' doesn't have proper closing.",T(p,P));if(k.trim().length>0)return m("InvalidTag","Closing tag '"+K+"' can't have attributes or invalid starting.",T(p,N));if(g.length===0)return m("InvalidTag","Closing tag '"+K+"' has not been opened.",T(p,N));{const re=g.pop();if(K!==re.tagName){let ee=T(p,re.tagStartPos);return m("InvalidTag","Expected closing tag '"+re.tagName+"' (opened in line "+ee.line+", col "+ee.col+") instead of closing tag '"+K+"'.",T(p,N))}g.length==0&&(x=!0)}}else{const re=h(k,d);if(re!==!0)return m(re.err.code,re.err.msg,T(p,P-k.length+re.err.line));if(x===!0)return m("InvalidXml","Multiple possible root nodes found.",T(p,P));d.unpairedTags.indexOf(K)!==-1||g.push({tagName:K,tagStartPos:N}),v=!0}for(P++;P<p.length;P++)if(p[P]==="<"){if(p[P+1]==="!"){P++,P=u(p,P);continue}if(p[P+1]!=="?")break;if(P=a(p,++P),P.err)return P}else if(p[P]==="&"){const re=A(p,P);if(re==-1)return m("InvalidChar","char '&' is not expected.",T(p,P));P=re}else if(x===!0&&!i(p[P]))return m("InvalidXml","Extra text at the end",T(p,P));p[P]==="<"&&P--}}}var I;return v?g.length==1?m("InvalidTag","Unclosed tag '"+g[0].tagName+"'.",T(p,g[0].tagStartPos)):!(g.length>0)||m("InvalidXml","Invalid '"+JSON.stringify(g.map((P=>P.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):m("InvalidXml","Start tag expected.",1)};const c='"',l="'";function s(p,d){let g="",v="",x=!1;for(;d<p.length;d++){if(p[d]===c||p[d]===l)v===""?v=p[d]:v!==p[d]||(v="");else if(p[d]===">"&&v===""){x=!0;break}g+=p[d]}return v===""&&{value:g,index:d,tagClosed:x}}const f=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function h(p,d){const g=n.getAllMatches(p,f),v={};for(let x=0;x<g.length;x++){if(g[x][1].length===0)return m("InvalidAttr","Attribute '"+g[x][2]+"' has no space in starting.",y(g[x]));if(g[x][3]!==void 0&&g[x][4]===void 0)return m("InvalidAttr","Attribute '"+g[x][2]+"' is without value.",y(g[x]));if(g[x][3]===void 0&&!d.allowBooleanAttributes)return m("InvalidAttr","boolean attribute '"+g[x][2]+"' is not allowed.",y(g[x]));const I=g[x][2];if(!E(I))return m("InvalidAttr","Attribute '"+I+"' is an invalid name.",y(g[x]));if(v.hasOwnProperty(I))return m("InvalidAttr","Attribute '"+I+"' is repeated.",y(g[x]));v[I]=1}return!0}function A(p,d){if(p[++d]===";")return-1;if(p[d]==="#")return(function(v,x){let I=/\d/;for(v[x]==="x"&&(x++,I=/[\da-fA-F]/);x<v.length;x++){if(v[x]===";")return x;if(!v[x].match(I))break}return-1})(p,++d);let g=0;for(;d<p.length;d++,g++)if(!(p[d].match(/\w/)&&g<20)){if(p[d]===";")break;return-1}return d}function m(p,d,g){return{err:{code:p,msg:d,line:g.line||g,col:g.col}}}function E(p){return n.isName(p)}function T(p,d){const g=p.substring(0,d).split(/\r?\n/);return{line:g.length,col:g[g.length-1].length+1}}function y(p){return p.startIndex+p[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:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],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=`>
|
|
28
|
+
`,this.newLine=`
|
|
29
|
+
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function u(s,f,h,A){const m=this.j2x(s,h+1,A.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 A="",m="";const E=h.join(".");for(let T in s)if(Object.prototype.hasOwnProperty.call(s,T))if(s[T]===void 0)this.isAttribute(T)&&(m+="");else if(s[T]===null)this.isAttribute(T)?m+="":T[0]==="?"?m+=this.indentate(f)+"<"+T+"?"+this.tagEndChar:m+=this.indentate(f)+"<"+T+"/"+this.tagEndChar;else if(s[T]instanceof Date)m+=this.buildTextValNode(s[T],T,"",f);else if(typeof s[T]!="object"){const y=this.isAttribute(T);if(y&&!this.ignoreAttributesFn(y,E))A+=this.buildAttrPairStr(y,""+s[T]);else if(!y)if(T===this.options.textNodeName){let p=this.options.tagValueProcessor(T,""+s[T]);m+=this.replaceEntitiesValue(p)}else m+=this.buildTextValNode(s[T],T,"",f)}else if(Array.isArray(s[T])){const y=s[T].length;let p="",d="";for(let g=0;g<y;g++){const v=s[T][g];if(v!==void 0)if(v===null)T[0]==="?"?m+=this.indentate(f)+"<"+T+"?"+this.tagEndChar:m+=this.indentate(f)+"<"+T+"/"+this.tagEndChar;else if(typeof v=="object")if(this.options.oneListGroup){const x=this.j2x(v,f+1,h.concat(T));p+=x.val,this.options.attributesGroupName&&v.hasOwnProperty(this.options.attributesGroupName)&&(d+=x.attrStr)}else p+=this.processTextOrObjNode(v,T,f,h);else if(this.options.oneListGroup){let x=this.options.tagValueProcessor(T,v);x=this.replaceEntitiesValue(x),p+=x}else p+=this.buildTextValNode(v,T,"",f)}this.options.oneListGroup&&(p=this.buildObjectNode(p,T,d,f)),m+=p}else if(this.options.attributesGroupName&&T===this.options.attributesGroupName){const y=Object.keys(s[T]),p=y.length;for(let d=0;d<p;d++)A+=this.buildAttrPairStr(y[d],""+s[T][y[d]])}else m+=this.processTextOrObjNode(s[T],T,f,h);return{attrStr:A,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,A){if(s==="")return f[0]==="?"?this.indentate(A)+"<"+f+h+"?"+this.tagEndChar:this.indentate(A)+"<"+f+h+this.closeTag(f)+this.tagEndChar;{let m="</"+f+this.tagEndChar,E="";return f[0]==="?"&&(E="?",m=""),!h&&h!==""||s.indexOf("<")!==-1?this.options.commentPropName!==!1&&f===this.options.commentPropName&&E.length===0?this.indentate(A)+`<!--${s}-->`+this.newLine:this.indentate(A)+"<"+f+h+E+this.tagEndChar+s+this.indentate(A)+m:this.indentate(A)+"<"+f+h+E+">"+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,A){if(this.options.cdataPropName!==!1&&f===this.options.cdataPropName)return this.indentate(A)+`<![CDATA[${s}]]>`+this.newLine;if(this.options.commentPropName!==!1&&f===this.options.commentPropName)return this.indentate(A)+`<!--${s}-->`+this.newLine;if(f[0]==="?")return this.indentate(A)+"<"+f+h+"?"+this.tagEndChar;{let m=this.options.tagValueProcessor(f,s);return m=this.replaceEntitiesValue(m),m===""?this.indentate(A)+"<"+f+h+this.closeTag(f)+this.tagEndChar:this.indentate(A)+"<"+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 A=a[h],m=r(A);if(m===void 0)continue;let E="";if(E=c.length===0?m:`${c}.${m}`,m===u.textNodeName){let d=A[m];o(E,u)||(d=u.tagValueProcessor(m,d),d=i(d,u)),f&&(s+=l),s+=d,f=!1;continue}if(m===u.cdataPropName){f&&(s+=l),s+=`<![CDATA[${A[m][0][u.textNodeName]}]]>`,f=!1;continue}if(m===u.commentPropName){s+=l+`<!--${A[m][0][u.textNodeName]}-->`,f=!0;continue}if(m[0]==="?"){const d=n(A[":@"],u),g=m==="?xml"?"":l;let v=A[m][0][u.textNodeName];v=v.length!==0?" "+v:"",s+=g+`<${m}${v}${d}?>`,f=!0;continue}let T=l;T!==""&&(T+=u.indentBy);const y=l+`<${m}${n(A[":@"],u)}`,p=t(A[m],u,E,T);u.unpairedTags.indexOf(m)!==-1?u.suppressUnpairedNode?s+=y+">":s+=y+"/>":p&&p.length!==0||!u.suppressEmptyNode?p&&p.endsWith(">")?s+=y+`>${p}${l}</${m}>`:(s+=y+">",p&&l!==""&&(p.includes("/>")||p.includes("</"))?s+=l+u.indentBy+p+l:s+=p,s+=`</${m}>`):s+=y+"/>",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=`
|
|
30
|
+
`),t(a,u,"",c)}},193:(e,t,r)=>{const n=r(705);function o(f,h){let A="";for(;h<f.length&&f[h]!=="'"&&f[h]!=='"';h++)A+=f[h];if(A=A.trim(),A.indexOf(" ")!==-1)throw new Error("External entites are not supported");const m=f[h++];let E="";for(;h<f.length&&f[h]!==m;h++)E+=f[h];return[A,E,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 A={};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,E=!1,T=!1,y="";for(;h<f.length;h++)if(f[h]!=="<"||T)if(f[h]===">"){if(T?f[h-1]==="-"&&f[h-2]==="-"&&(T=!1,m--):m--,m===0)break}else f[h]==="["?E=!0:y+=f[h];else{if(E&&a(f,h)){let p,d;h+=7,[p,d,h]=o(f,h+1),d.indexOf("&")===-1&&(A[s(p)]={regx:RegExp(`&${p};`,"g"),val:d})}else if(E&&u(f,h))h+=8;else if(E&&c(f,h))h+=8;else if(E&&l(f,h))h+=9;else{if(!i)throw new Error("Invalid DOCTYPE");T=!0}m++,y=""}if(m!==0)throw new Error("Unclosed DOCTYPE")}return{entities:A,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(x){const I=Object.keys(x);for(let P=0;P<I.length;P++){const N=I[P];this.lastEntities[N]={regex:new RegExp("&"+N+";","g"),val:x[N]}}}function l(x,I,P,N,j,K,L){if(x!==void 0&&(this.options.trimValues&&!N&&(x=x.trim()),x.length>0)){L||(x=this.replaceEntitiesValue(x));const k=this.options.tagValueProcessor(I,x,P,j,K);return k==null?x:typeof k!=typeof x||k!==x?k:this.options.trimValues||x.trim()===x?v(x,this.options.parseTagValue,this.options.numberParseOptions):x}}function s(x){if(this.options.removeNSPrefix){const I=x.split(":"),P=x.charAt(0)==="/"?"/":"";if(I[0]==="xmlns")return"";I.length===2&&(x=P+I[1])}return x}const f=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function h(x,I,P){if(this.options.ignoreAttributes!==!0&&typeof x=="string"){const N=n.getAllMatches(x,f),j=N.length,K={};for(let L=0;L<j;L++){const k=this.resolveNameSpace(N[L][1]);if(this.ignoreAttributesFn(k,I))continue;let re=N[L][4],ee=this.options.attributeNamePrefix+k;if(k.length)if(this.options.transformAttributeName&&(ee=this.options.transformAttributeName(ee)),ee==="__proto__"&&(ee="#__proto__"),re!==void 0){this.options.trimValues&&(re=re.trim()),re=this.replaceEntitiesValue(re);const ue=this.options.attributeValueProcessor(k,re,I);K[ee]=ue==null?re:typeof ue!=typeof re||ue!==re?ue:v(re,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(K[ee]=!0)}if(!Object.keys(K).length)return;if(this.options.attributesGroupName){const L={};return L[this.options.attributesGroupName]=K,L}return K}}const A=function(x){x=x.replace(/\r\n?/g,`
|
|
31
|
+
`);const I=new o("!xml");let P=I,N="",j="";for(let K=0;K<x.length;K++)if(x[K]==="<")if(x[K+1]==="/"){const L=p(x,">",K,"Closing Tag is not closed.");let k=x.substring(K+2,L).trim();if(this.options.removeNSPrefix){const ue=k.indexOf(":");ue!==-1&&(k=k.substr(ue+1))}this.options.transformTagName&&(k=this.options.transformTagName(k)),P&&(N=this.saveTextToParentTag(N,P,j));const re=j.substring(j.lastIndexOf(".")+1);if(k&&this.options.unpairedTags.indexOf(k)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${k}>`);let ee=0;re&&this.options.unpairedTags.indexOf(re)!==-1?(ee=j.lastIndexOf(".",j.lastIndexOf(".")-1),this.tagsNodeStack.pop()):ee=j.lastIndexOf("."),j=j.substring(0,ee),P=this.tagsNodeStack.pop(),N="",K=L}else if(x[K+1]==="?"){let L=d(x,K,!1,"?>");if(!L)throw new Error("Pi Tag is not closed.");if(N=this.saveTextToParentTag(N,P,j),!(this.options.ignoreDeclaration&&L.tagName==="?xml"||this.options.ignorePiTags)){const k=new o(L.tagName);k.add(this.options.textNodeName,""),L.tagName!==L.tagExp&&L.attrExpPresent&&(k[":@"]=this.buildAttributesMap(L.tagExp,j,L.tagName)),this.addChild(P,k,j)}K=L.closeIndex+1}else if(x.substr(K+1,3)==="!--"){const L=p(x,"-->",K+4,"Comment is not closed.");if(this.options.commentPropName){const k=x.substring(K+4,L-2);N=this.saveTextToParentTag(N,P,j),P.add(this.options.commentPropName,[{[this.options.textNodeName]:k}])}K=L}else if(x.substr(K+1,2)==="!D"){const L=i(x,K);this.docTypeEntities=L.entities,K=L.i}else if(x.substr(K+1,2)==="!["){const L=p(x,"]]>",K,"CDATA is not closed.")-2,k=x.substring(K+9,L);N=this.saveTextToParentTag(N,P,j);let re=this.parseTextData(k,P.tagname,j,!0,!1,!0,!0);re==null&&(re=""),this.options.cdataPropName?P.add(this.options.cdataPropName,[{[this.options.textNodeName]:k}]):P.add(this.options.textNodeName,re),K=L+2}else{let L=d(x,K,this.options.removeNSPrefix),k=L.tagName;const re=L.rawTagName;let ee=L.tagExp,ue=L.attrExpPresent,le=L.closeIndex;this.options.transformTagName&&(k=this.options.transformTagName(k)),P&&N&&P.tagname!=="!xml"&&(N=this.saveTextToParentTag(N,P,j,!1));const de=P;if(de&&this.options.unpairedTags.indexOf(de.tagname)!==-1&&(P=this.tagsNodeStack.pop(),j=j.substring(0,j.lastIndexOf("."))),k!==I.tagname&&(j+=j?"."+k:k),this.isItStopNode(this.options.stopNodes,j,k)){let fe="";if(ee.length>0&&ee.lastIndexOf("/")===ee.length-1)k[k.length-1]==="/"?(k=k.substr(0,k.length-1),j=j.substr(0,j.length-1),ee=k):ee=ee.substr(0,ee.length-1),K=L.closeIndex;else if(this.options.unpairedTags.indexOf(k)!==-1)K=L.closeIndex;else{const pe=this.readStopNodeData(x,re,le+1);if(!pe)throw new Error(`Unexpected end of ${re}`);K=pe.i,fe=pe.tagContent}const be=new o(k);k!==ee&&ue&&(be[":@"]=this.buildAttributesMap(ee,j,k)),fe&&(fe=this.parseTextData(fe,k,j,!0,ue,!0,!0)),j=j.substr(0,j.lastIndexOf(".")),be.add(this.options.textNodeName,fe),this.addChild(P,be,j)}else{if(ee.length>0&&ee.lastIndexOf("/")===ee.length-1){k[k.length-1]==="/"?(k=k.substr(0,k.length-1),j=j.substr(0,j.length-1),ee=k):ee=ee.substr(0,ee.length-1),this.options.transformTagName&&(k=this.options.transformTagName(k));const fe=new o(k);k!==ee&&ue&&(fe[":@"]=this.buildAttributesMap(ee,j,k)),this.addChild(P,fe,j),j=j.substr(0,j.lastIndexOf("."))}else{const fe=new o(k);this.tagsNodeStack.push(P),k!==ee&&ue&&(fe[":@"]=this.buildAttributesMap(ee,j,k)),this.addChild(P,fe,j),P=fe}N="",K=le}}else N+=x[K];return I.child};function m(x,I,P){const N=this.options.updateTag(I.tagname,P,I[":@"]);N===!1||(typeof N=="string"&&(I.tagname=N),x.addChild(I))}const E=function(x){if(this.options.processEntities){for(let I in this.docTypeEntities){const P=this.docTypeEntities[I];x=x.replace(P.regx,P.val)}for(let I in this.lastEntities){const P=this.lastEntities[I];x=x.replace(P.regex,P.val)}if(this.options.htmlEntities)for(let I in this.htmlEntities){const P=this.htmlEntities[I];x=x.replace(P.regex,P.val)}x=x.replace(this.ampEntity.regex,this.ampEntity.val)}return x};function T(x,I,P,N){return x&&(N===void 0&&(N=Object.keys(I.child).length===0),(x=this.parseTextData(x,I.tagname,P,!1,!!I[":@"]&&Object.keys(I[":@"]).length!==0,N))!==void 0&&x!==""&&I.add(this.options.textNodeName,x),x=""),x}function y(x,I,P){const N="*."+P;for(const j in x){const K=x[j];if(N===K||I===K)return!0}return!1}function p(x,I,P,N){const j=x.indexOf(I,P);if(j===-1)throw new Error(N);return j+I.length-1}function d(x,I,P){const N=(function(ue,le){let de,fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:">",be="";for(let pe=le;pe<ue.length;pe++){let G=ue[pe];if(de)G===de&&(de="");else if(G==='"'||G==="'")de=G;else if(G===fe[0]){if(!fe[1])return{data:be,index:pe};if(ue[pe+1]===fe[1])return{data:be,index:pe}}else G===" "&&(G=" ");be+=G}})(x,I+1,arguments.length>3&&arguments[3]!==void 0?arguments[3]:">");if(!N)return;let j=N.data;const K=N.index,L=j.search(/\s/);let k=j,re=!0;L!==-1&&(k=j.substring(0,L),j=j.substring(L+1).trimStart());const ee=k;if(P){const ue=k.indexOf(":");ue!==-1&&(k=k.substr(ue+1),re=k!==N.data.substr(ue+1))}return{tagName:k,tagExp:j,closeIndex:K,attrExpPresent:re,rawTagName:ee}}function g(x,I,P){const N=P;let j=1;for(;P<x.length;P++)if(x[P]==="<")if(x[P+1]==="/"){const K=p(x,">",P,`${I} is not closed`);if(x.substring(P+2,K).trim()===I&&(j--,j===0))return{tagContent:x.substring(N,P),i:K};P=K}else if(x[P+1]==="?")P=p(x,"?>",P+1,"StopNode is not closed.");else if(x.substr(P+1,3)==="!--")P=p(x,"-->",P+3,"StopNode is not closed.");else if(x.substr(P+1,2)==="![")P=p(x,"]]>",P,"StopNode is not closed.")-2;else{const K=d(x,P,">");K&&((K&&K.tagName)===I&&K.tagExp[K.tagExp.length-1]!=="/"&&j++,P=K.closeIndex)}}function v(x,I,P){if(I&&typeof x=="string"){const N=x.trim();return N==="true"||N!=="false"&&a(x,P)}return n.isExist(x)?x:""}e.exports=class{constructor(x){this.options=x,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:(I,P)=>String.fromCharCode(Number.parseInt(P,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(I,P)=>String.fromCharCode(Number.parseInt(P,16))}},this.addExternalEntities=c,this.parseXml=A,this.parseTextData=l,this.resolveNameSpace=s,this.buildAttributesMap=h,this.isItStopNode=y,this.replaceEntitiesValue=E,this.readStopNodeData=g,this.saveTextToParentTag=T,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 '
'");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],A=n(h);let m="";if(m=c===void 0?A:c+"."+A,A===u.textNodeName)l===void 0?l=h[A]:l+=""+h[A];else{if(A===void 0)continue;if(h[A]){let E=r(h[A],u,m);const T=i(E,u);h[":@"]?o(E,h[":@"],m,u):Object.keys(E).length!==1||E[u.textNodeName]===void 0||u.alwaysCreateTextNode?Object.keys(E).length===0&&(u.alwaysCreateTextNode?E[u.textNodeName]="":E=""):E=E[u.textNodeName],s[A]!==void 0&&s.hasOwnProperty(A)?(Array.isArray(s[A])||(s[A]=[s[A]]),s[A].push(E)):u.isArray(A,m,T)?s[A]=[E]:s[A]=E}}}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 A=s[h];l.isArray(A,c+"."+A,!0,!0)?a[A]=[u[A]]:a[A]=u[A]}}}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,A=-271733879,m=-1732584194,E=271733878,T=0;T<s.length;T++)s[T]=16711935&(s[T]<<8|s[T]>>>24)|4278255360&(s[T]<<24|s[T]>>>8);s[f>>>5]|=128<<f%32,s[14+(f+64>>>9<<4)]=f;var y=u._ff,p=u._gg,d=u._hh,g=u._ii;for(T=0;T<s.length;T+=16){var v=h,x=A,I=m,P=E;h=y(h,A,m,E,s[T+0],7,-680876936),E=y(E,h,A,m,s[T+1],12,-389564586),m=y(m,E,h,A,s[T+2],17,606105819),A=y(A,m,E,h,s[T+3],22,-1044525330),h=y(h,A,m,E,s[T+4],7,-176418897),E=y(E,h,A,m,s[T+5],12,1200080426),m=y(m,E,h,A,s[T+6],17,-1473231341),A=y(A,m,E,h,s[T+7],22,-45705983),h=y(h,A,m,E,s[T+8],7,1770035416),E=y(E,h,A,m,s[T+9],12,-1958414417),m=y(m,E,h,A,s[T+10],17,-42063),A=y(A,m,E,h,s[T+11],22,-1990404162),h=y(h,A,m,E,s[T+12],7,1804603682),E=y(E,h,A,m,s[T+13],12,-40341101),m=y(m,E,h,A,s[T+14],17,-1502002290),h=p(h,A=y(A,m,E,h,s[T+15],22,1236535329),m,E,s[T+1],5,-165796510),E=p(E,h,A,m,s[T+6],9,-1069501632),m=p(m,E,h,A,s[T+11],14,643717713),A=p(A,m,E,h,s[T+0],20,-373897302),h=p(h,A,m,E,s[T+5],5,-701558691),E=p(E,h,A,m,s[T+10],9,38016083),m=p(m,E,h,A,s[T+15],14,-660478335),A=p(A,m,E,h,s[T+4],20,-405537848),h=p(h,A,m,E,s[T+9],5,568446438),E=p(E,h,A,m,s[T+14],9,-1019803690),m=p(m,E,h,A,s[T+3],14,-187363961),A=p(A,m,E,h,s[T+8],20,1163531501),h=p(h,A,m,E,s[T+13],5,-1444681467),E=p(E,h,A,m,s[T+2],9,-51403784),m=p(m,E,h,A,s[T+7],14,1735328473),h=d(h,A=p(A,m,E,h,s[T+12],20,-1926607734),m,E,s[T+5],4,-378558),E=d(E,h,A,m,s[T+8],11,-2022574463),m=d(m,E,h,A,s[T+11],16,1839030562),A=d(A,m,E,h,s[T+14],23,-35309556),h=d(h,A,m,E,s[T+1],4,-1530992060),E=d(E,h,A,m,s[T+4],11,1272893353),m=d(m,E,h,A,s[T+7],16,-155497632),A=d(A,m,E,h,s[T+10],23,-1094730640),h=d(h,A,m,E,s[T+13],4,681279174),E=d(E,h,A,m,s[T+0],11,-358537222),m=d(m,E,h,A,s[T+3],16,-722521979),A=d(A,m,E,h,s[T+6],23,76029189),h=d(h,A,m,E,s[T+9],4,-640364487),E=d(E,h,A,m,s[T+12],11,-421815835),m=d(m,E,h,A,s[T+15],16,530742520),h=g(h,A=d(A,m,E,h,s[T+2],23,-995338651),m,E,s[T+0],6,-198630844),E=g(E,h,A,m,s[T+7],10,1126891415),m=g(m,E,h,A,s[T+14],15,-1416354905),A=g(A,m,E,h,s[T+5],21,-57434055),h=g(h,A,m,E,s[T+12],6,1700485571),E=g(E,h,A,m,s[T+3],10,-1894986606),m=g(m,E,h,A,s[T+10],15,-1051523),A=g(A,m,E,h,s[T+1],21,-2054922799),h=g(h,A,m,E,s[T+8],6,1873313359),E=g(E,h,A,m,s[T+15],10,-30611744),m=g(m,E,h,A,s[T+6],15,-1560198380),A=g(A,m,E,h,s[T+13],21,1309151649),h=g(h,A,m,E,s[T+4],6,-145523070),E=g(E,h,A,m,s[T+11],10,-1120210379),m=g(m,E,h,A,s[T+2],15,718787259),A=g(A,m,E,h,s[T+9],21,-343485551),h=h+v>>>0,A=A+x>>>0,m=m+I>>>0,E=E+P>>>0}return n.endian([h,A,m,E])};u._ff=function(c,l,s,f,h,A,m){var E=c+(l&s|~l&f)+(h>>>0)+m;return(E<<A|E>>>32-A)+l},u._gg=function(c,l,s,f,h,A,m){var E=c+(l&f|s&~f)+(h>>>0)+m;return(E<<A|E>>>32-A)+l},u._hh=function(c,l,s,f,h,A,m){var E=c+(l^s^f)+(h>>>0)+m;return(E<<A|E>>>32-A)+l},u._ii=function(c,l,s,f,h,A,m){var E=c+(s^(l|~f))+(h>>>0)+m;return(E<<A|E>>>32-A)+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(y){return y?(y.substr(0,2)==="{}"&&(y="\\{\\}"+y.substr(2)),T((function(p){return p.split("\\\\").join(o).split("\\{").join(i).split("\\}").join(a).split("\\,").join(u).split("\\.").join(c)})(y),!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(y){return parseInt(y,10)==y?parseInt(y,10):y.charCodeAt(0)}function s(y){return y.split(o).join("\\").split(i).join("{").split(a).join("}").split(u).join(",").split(c).join(".")}function f(y){if(!y)return[""];var p=[],d=n("{","}",y);if(!d)return y.split(",");var g=d.pre,v=d.body,x=d.post,I=g.split(",");I[I.length-1]+="{"+v+"}";var P=f(x);return x.length&&(I[I.length-1]+=P.shift(),I.push.apply(I,P)),p.push.apply(p,I),p}function h(y){return"{"+y+"}"}function A(y){return/^-?0\d/.test(y)}function m(y,p){return y<=p}function E(y,p){return y>=p}function T(y,p){var d=[],g=n("{","}",y);if(!g)return[y];var v=g.pre,x=g.post.length?T(g.post,!1):[""];if(/\$$/.test(g.pre))for(var I=0;I<x.length;I++){var P=v+"{"+g.body+"}"+x[I];d.push(P)}else{var N,j,K=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(g.body),L=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(g.body),k=K||L,re=g.body.indexOf(",")>=0;if(!k&&!re)return g.post.match(/,.*\}/)?T(y=g.pre+"{"+g.body+a+g.post):[y];if(k)N=g.body.split(/\.\./);else if((N=f(g.body)).length===1&&(N=T(N[0],!1).map(h)).length===1)return x.map((function(V){return g.pre+N[0]+V}));if(k){var ee=l(N[0]),ue=l(N[1]),le=Math.max(N[0].length,N[1].length),de=N.length==3?Math.abs(l(N[2])):1,fe=m;ue<ee&&(de*=-1,fe=E);var be=N.some(A);j=[];for(var pe=ee;fe(pe,ue);pe+=de){var G;if(L)(G=String.fromCharCode(pe))==="\\"&&(G="");else if(G=String(pe),be){var Z=le-G.length;if(Z>0){var Q=new Array(Z+1).join("0");G=pe<0?"-"+Q+G.slice(1):Q+G}}j.push(G)}}else{j=[];for(var ae=0;ae<N.length;ae++)j.push.apply(j,T(N[ae],!1))}for(ae=0;ae<j.length;ae++)for(I=0;I<x.length;I++)P=v+j[ae]+x[I],(!p||k||P)&&d.push(P)}return d}},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,A)}function A(){return n(f,arguments,i(this).constructor)}return A.prototype=Object.create(f.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),o(A,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,A,m){var E=[null];E.push.apply(E,A);var T=new(Function.bind.apply(h,E));return m&&o(T,m.prototype),T},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(A,m){if(!(A instanceof m))throw new TypeError("Cannot call a class as a function")})(this,s),(h=(function(A,m){return!m||t(m)!=="object"&&typeof m!="function"?(function(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E})(A):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("."),A=h.length,m=function(y){var p=h[y];if(!l)return{v:void 0};if(p==="+"){if(Array.isArray(l))return{v:l.map((function(g,v){var x=h.slice(y+1);return x.length>0?u(g,x.join("."),f):f(l,v,h,y)}))};var d=h.slice(0,y).join(".");throw new Error("Object at wildcard (".concat(d,") is not an array"))}l=f(l,p,h,y)},E=0;E<A;E++){var T=m(E);if(t(T)==="object")return T.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,A,m,E){if(h===Reflect.getPrototypeOf({}))throw new a("Attempting to mutate Object.prototype");if(!h[A]){var T=Number.isInteger(Number(m[E+1])),y=m[E+1]==="+";h[A]=T||y?[]:{}}return c(m,E)&&(h[A]=f),h[A]}))}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(A,m,E,T){if(!c(E,T))return A&&A[m];h=f.own?A.hasOwnProperty(m):m in A})),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 A=!1,m=!1;return u(l,s,(function(E,T,y,p){return A=A||E===f||!!E&&E[T]===f,m=c(y,p)&&t(E)==="object"&&T in E,E&&E[T]})),h.validPath?A&&m:A}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 A=l[h];A&&A!=="."&&(A===".."?f.length&&f[f.length-1]!==".."?f.pop():s&&f.push(".."):f.push(A))}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]:ye.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(p){for(var d=0;d<p.length&&p[d]==="";d++);for(var g=p.length-1;g>=0&&p[g]==="";g--);return d>g?[]:p.slice(d,g+1)}l=u.resolve(l).substr(1),s=u.resolve(s).substr(1);for(var h=f(l.split("/")),A=f(s.split("/")),m=Math.min(h.length,A.length),E=m,T=0;T<m;T++)if(h[T]!==A[T]){E=T;break}var y=[];for(T=E;T<h.length;T++)y.push("..");return(y=y.concat(A.slice(E))).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 A=Number(a),m=""+A;return m.search(/[eE]/)!==-1||h?i.eNotation?A:o:a.indexOf(".")!==-1?m==="0"&&f===""||m===f||l&&m==="-"+f?A:o:s?f===m||l+f===m?A:o:a===m||a===l+m?A: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(p){return(p||"").toString().replace(i,"")}var h=[["#","hash"],["?","query"],function(p,d){return E(d.protocol)?p.replace(/\\/g,"/"):p},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],A={hash:1,query:1};function m(p){var d,g=(typeof window<"u"?window:typeof mt<"u"?mt:typeof self<"u"?self:{}).location||{},v={},x=typeof(p=p||g);if(p.protocol==="blob:")v=new y(unescape(p.pathname),{});else if(x==="string")for(d in v=new y(p,{}),A)delete v[d];else if(x==="object"){for(d in p)d in A||(v[d]=p[d]);v.slashes===void 0&&(v.slashes=u.test(p.href))}return v}function E(p){return p==="file:"||p==="ftp:"||p==="http:"||p==="https:"||p==="ws:"||p==="wss:"}function T(p,d){p=(p=f(p)).replace(a,""),d=d||{};var g,v=l.exec(p),x=v[1]?v[1].toLowerCase():"",I=!!v[2],P=!!v[3],N=0;return I?P?(g=v[2]+v[3]+v[4],N=v[2].length+v[3].length):(g=v[2]+v[4],N=v[2].length):P?(g=v[3]+v[4],N=v[3].length):g=v[4],x==="file:"?N>=2&&(g=g.slice(2)):E(x)?g=v[4]:x?I&&(g=g.slice(2)):N>=2&&E(d.protocol)&&(g=v[4]),{protocol:x,slashes:I||E(x),slashesCount:N,rest:g}}function y(p,d,g){if(p=(p=f(p)).replace(a,""),!(this instanceof y))return new y(p,d,g);var v,x,I,P,N,j,K=h.slice(),L=typeof d,k=this,re=0;for(L!=="object"&&L!=="string"&&(g=d,d=null),g&&typeof g!="function"&&(g=o.parse),v=!(x=T(p||"",d=m(d))).protocol&&!x.slashes,k.slashes=x.slashes||v&&d.slashes,k.protocol=x.protocol||d.protocol||"",p=x.rest,(x.protocol==="file:"&&(x.slashesCount!==2||s.test(p))||!x.slashes&&(x.protocol||x.slashesCount<2||!E(k.protocol)))&&(K[3]=[/(.*)/,"pathname"]);re<K.length;re++)typeof(P=K[re])!="function"?(I=P[0],j=P[1],I!=I?k[j]=p:typeof I=="string"?~(N=I==="@"?p.lastIndexOf(I):p.indexOf(I))&&(typeof P[2]=="number"?(k[j]=p.slice(0,N),p=p.slice(N+P[2])):(k[j]=p.slice(N),p=p.slice(0,N))):(N=I.exec(p))&&(k[j]=N[1],p=p.slice(0,N.index)),k[j]=k[j]||v&&P[3]&&d[j]||"",P[4]&&(k[j]=k[j].toLowerCase())):p=P(p,k);g&&(k.query=g(k.query)),v&&d.slashes&&k.pathname.charAt(0)!=="/"&&(k.pathname!==""||d.pathname!=="")&&(k.pathname=(function(ee,ue){if(ee==="")return ue;for(var le=(ue||"/").split("/").slice(0,-1).concat(ee.split("/")),de=le.length,fe=le[de-1],be=!1,pe=0;de--;)le[de]==="."?le.splice(de,1):le[de]===".."?(le.splice(de,1),pe++):pe&&(de===0&&(be=!0),le.splice(de,1),pe--);return be&&le.unshift(""),fe!=="."&&fe!==".."||le.push(""),le.join("/")})(k.pathname,d.pathname)),k.pathname.charAt(0)!=="/"&&E(k.protocol)&&(k.pathname="/"+k.pathname),n(k.port,k.protocol)||(k.host=k.hostname,k.port=""),k.username=k.password="",k.auth&&(~(N=k.auth.indexOf(":"))?(k.username=k.auth.slice(0,N),k.username=encodeURIComponent(decodeURIComponent(k.username)),k.password=k.auth.slice(N+1),k.password=encodeURIComponent(decodeURIComponent(k.password))):k.username=encodeURIComponent(decodeURIComponent(k.auth)),k.auth=k.password?k.username+":"+k.password:k.username),k.origin=k.protocol!=="file:"&&E(k.protocol)&&k.host?k.protocol+"//"+k.host:"null",k.href=k.toString()}y.prototype={set:function(p,d,g){var v=this;switch(p){case"query":typeof d=="string"&&d.length&&(d=(g||o.parse)(d)),v[p]=d;break;case"port":v[p]=d,n(d,v.protocol)?d&&(v.host=v.hostname+":"+d):(v.host=v.hostname,v[p]="");break;case"hostname":v[p]=d,v.port&&(d+=":"+v.port),v.host=d;break;case"host":v[p]=d,c.test(d)?(d=d.split(":"),v.port=d.pop(),v.hostname=d.join(":")):(v.hostname=d,v.port="");break;case"protocol":v.protocol=d.toLowerCase(),v.slashes=!g;break;case"pathname":case"hash":if(d){var x=p==="pathname"?"/":"#";v[p]=d.charAt(0)!==x?x+d:d}else v[p]=d;break;case"username":case"password":v[p]=encodeURIComponent(d);break;case"auth":var I=d.indexOf(":");~I?(v.username=d.slice(0,I),v.username=encodeURIComponent(decodeURIComponent(v.username)),v.password=d.slice(I+1),v.password=encodeURIComponent(decodeURIComponent(v.password))):v.username=encodeURIComponent(decodeURIComponent(d))}for(var P=0;P<h.length;P++){var N=h[P];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:"&&E(v.protocol)&&v.host?v.protocol+"//"+v.host:"null",v.href=v.toString(),v},toString:function(p){p&&typeof p=="function"||(p=o.stringify);var d,g=this,v=g.host,x=g.protocol;x&&x.charAt(x.length-1)!==":"&&(x+=":");var I=x+(g.protocol&&g.slashes||E(g.protocol)?"//":"");return g.username?(I+=g.username,g.password&&(I+=":"+g.password),I+="@"):g.password?(I+=":"+g.password,I+="@"):g.protocol!=="file:"&&E(g.protocol)&&!v&&g.pathname!=="/"&&(I+="@"),(v[v.length-1]===":"||c.test(g.hostname)&&!g.port)&&(v+=":"),I+=v+g.pathname,(d=typeof g.query=="object"?p(g.query):g.query)&&(I+=d.charAt(0)!=="?"?"?"+d:d),g.hash&&(I+=g.hash),I}},y.extractProtocol=T,y.location=m,y.trimLeft=f,y.qs=o,e.exports=y},410:()=>{},388:()=>{},805:()=>{},345:()=>{},800:()=>{}},Ml={};function Se(e){var t=Ml[e];if(t!==void 0)return t.exports;var r=Ml[e]={id:e,loaded:!1,exports:{}};return py[e].call(r.exports,r,r.exports,Se),r.loaded=!0,r.exports}Se.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return Se.d(t,{a:t}),t},Se.d=(e,t)=>{for(var r in t)Se.o(t,r)&&!Se.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},Se.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Se.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var ot={};Se.d(ot,{hT:()=>Ze,O4:()=>At,Kd:()=>Ay,YK:()=>Ty,UU:()=>Im,Gu:()=>Yl,ky:()=>hc,h4:()=>vr,ch:()=>sn,hq:()=>kt,i5:()=>dc});var gy=Se(737),yy=Se.n(gy);function xo(e){if(!Ao(e))throw new Error("Parameter was not an error")}function Ao(e){return!!e&&typeof e=="object"&&(t=e,Object.prototype.toString.call(t)==="[object Error]")||e instanceof Error;var t}class Je extends Error{constructor(t,r){const n=[...arguments],{options:o,shortMessage:i}=(function(u){let c,l="";if(u.length===0)c={};else if(Ao(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 xo(t),t._cause&&Ao(t._cause)?t._cause:null}static fullStack(t){xo(t);const r=Je.cause(t);return r?`${t.stack}
|
|
32
|
+
caused by: ${Je.fullStack(r)}`:t.stack??""}static info(t){xo(t);const r={},n=Je.cause(t);return n&&Object.assign(r,Je.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 my=Se(47),Zr=Se.n(my);const Dl="__PATH_SEPARATOR_POSIX__",ql="__PATH_SEPARATOR_WINDOWS__";function Ce(e){try{const t=e.replace(/\//g,Dl).replace(/\\\\/g,ql);return encodeURIComponent(t).split(ql).join("\\\\").split(Dl).join("/")}catch(t){throw new Je(t,"Failed encoding path")}}function $l(e){return e.startsWith("/")?e:"/"+e}function yr(e){let t=e;return t[0]!=="/"&&(t="/"+t),/^.+\/$/.test(t)&&(t=t.substr(0,t.length-1)),t}function by(e){let t=new(yy())(e).pathname;return t.length<=0&&(t="/"),yr(t)}function Be(){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 wy=Se(542),mr=Se.n(wy);const vy="abcdef0123456789";function Hl(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,A,m,E,T,y,p){const d=p||mr()(`${A}:${m}:${E}`);return h&&h.toLowerCase()==="md5-sess"?mr()(`${d}:${T}:${y}`):d})(t.algorithm,t.username,t.realm,t.password,t.nonce,t.cnonce,t.ha1),c=mr()(`${o}:${n}`),l=i?mr()(`${u}:${t.nonce}:${a}:${t.cnonce}:${i}:${c}`):mr()(`${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 Vl(e){return(e.headers&&e.headers.get("www-authenticate")||"").split(/\s/)[0].toLowerCase()==="digest"}var Ey=Se(101),Wl=Se.n(Ey);function Gl(e){return Wl().decode(e)}function Kl(e,t){var r;return`Basic ${r=`${e}:${t}`,Wl().encode(r)}`}const Qr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:typeof window<"u"?window:globalThis,xy=Qr.fetch.bind(Qr),Ay=Qr.Request,Ty=Qr.Response;let Ze=(function(e){return e.Auto="auto",e.Digest="digest",e.None="none",e.Password="password",e.Token="token",e})({}),At=(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 zl(e,t,r,n,o){switch(e.authType){case Ze.Auto:t&&r&&(e.headers.Authorization=Kl(t,r));break;case Ze.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 Ze.None:break;case Ze.Password:e.headers.Authorization=Kl(t,r);break;case Ze.Token:e.headers.Authorization=`${(i=n).token_type} ${i.access_token}`;break;default:throw new Je({info:{code:At.InvalidAuthType}},`Invalid auth type: ${e.authType}`)}var i}Se(345),Se(800);const Xl="@@HOTPATCHER",Sy=()=>{};function To(e){return{original:e,methods:[e],final:!1}}class _y{constructor(){this._configuration={registry:{},getEmptyAction:"null"},this.__type__=Xl}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__!==Xl)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)||Sy;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]=To(r);else if(this.isPatched(t)){const{original:i}=this.configuration.registry[t];this.configuration.registry[t]=Object.assign(To(r),{original:i})}else this.configuration.registry[t]=To(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 So=null;function Yl(){return So||(So=new _y),So}function en(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 Jl(){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?Zl(n,i):en(i)}return n}function Zl(e,t){const r=en(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]?Zl(r[n],t[n]):en(t[n]):r[n]=t[n]:r[n]=t[n]})),r}function Ny(e){const t={};for(const r of e.keys())t[r]=e.get(r);return t}function _o(){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)),{})}Se(805);const Oy=typeof ArrayBuffer=="function",{toString:Ry}=Object.prototype;function Ql(e){return Oy&&(e instanceof ArrayBuffer||Ry.call(e)==="[object ArrayBuffer]")}function ec(e){return e!=null&&e.constructor!=null&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function No(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 Oo(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const tc=No((function(e){const t=e._digest;return delete e._digest,t.hasDigestAuth&&(e=Jl(e,{headers:{Authorization:Hl(e,t)}})),Oo(tn(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(!Vl(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}${vy[Math.floor(16*Math.random())]}`;return l})(),!0})(r,t),(function(){if(t.hasDigestAuth)return Oo(tn(e=Jl(e,{headers:{Authorization:Hl(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}))})),Iy=No((function(e,t){return Oo(tn(e),(function(r){return r.ok?(t.authType=Ze.Password,r):r.status==401&&Vl(r)?(t.authType=Ze.Digest,zl(t,t.username,t.password,void 0,void 0),e._digest=t.digest,tc(e)):r}))})),De=No((function(e,t){return t.authType===Ze.Auto?Iy(e,t):e._digest?tc(e):tn(e)}));function qe(e,t,r){const n=en(e);return n.headers=_o(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 tn(e){const t=Yl();return t.patchInline("request",(r=>t.patchInline("fetch",xy,r.url,(function(n){let o={};const i={method:n.method};if(n.headers&&(o=_o(o,n.headers)),n.data!==void 0){const[a,u]=(function(c){if(typeof c=="string")return[c,{}];if(ec(c))return[c,{}];if(Ql(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=_o(o,u)}return n.signal&&(i.signal=n.signal),n.withCredentials&&(i.credentials="include"),i.headers=o,i})(r))),e)}var Py=Se(285);const rn=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")},Fy={"[: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]},br=e=>e.replace(/[[\]\\-]/g,"\\$&"),rc=e=>e.join(""),Cy=(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 E=e.charAt(i);if(E!=="!"&&E!=="^"||i!==r+1){if(E==="]"&&a&&!c){s=i+1;break}if(a=!0,E!=="\\"||c){if(E==="["&&!c){for(const[T,[y,p,d]]of Object.entries(Fy))if(e.startsWith(T,i)){if(f)return["$.",!1,e.length-r,!0];i+=T.length,d?o.push(y):n.push(y),u=u||p;continue e}}c=!1,f?(E>f?n.push(br(f)+"-"+br(E)):E===f&&n.push(br(E)),f="",i++):e.startsWith("-]",i+1)?(n.push(br(E+"-")),i+=2):e.startsWith("-",i+1)?(f=E,i+=2):(n.push(br(E)),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 A="["+(l?"^":"")+rc(n)+"]",m="["+(l?"":"^")+rc(o)+"]";return[n.length&&o.length?"("+A+"|"+m+")":n.length?A:m,u,s-r,!0]},wr=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")},By=new Set(["!","?","+","*","@"]),nc=e=>By.has(e),Ro="(?!\\.)",Ly=new Set(["[","."]),Uy=new Set(["..","."]),jy=new Set("().*{}+?[]^$\\!"),Io="[^/]",ic=Io+"*?",oc=Io+"+?";class Qe{type;#e;#r;#o=!1;#t=[];#n;#d;#l;#g=!1;#f;#c;#p=!1;constructor(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.type=t,t&&(this.#r=!0),this.#n=r,this.#e=this.#n?this.#n.#e:this,this.#f=this.#e===this?n:this.#e.#f,this.#l=this.#e===this?[]:this.#e.#l,t!=="!"||this.#e.#g||this.#l.push(this),this.#d=this.#n?this.#n.#t.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(const t of this.#t)if(typeof t!="string"&&(t.type||t.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#c!==void 0?this.#c:this.type?this.#c=this.type+"("+this.#t.map((t=>String(t))).join("|")+")":this.#c=this.#t.map((t=>String(t))).join("")}#h(){if(this!==this.#e)throw new Error("should only call on root");if(this.#g)return this;let t;for(this.toString(),this.#g=!0;t=this.#l.pop();){if(t.type!=="!")continue;let r=t,n=r.#n;for(;n;){for(let o=r.#d+1;!n.type&&o<n.#t.length;o++)for(const i of t.#t){if(typeof i=="string")throw new Error("string part in extglob AST??");i.copyIn(n.#t[o])}r=n,n=r.#n}}return this}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 Qe&&o.#n===this))throw new Error("invalid part: "+o);this.#t.push(o)}}toJSON(){const t=this.type===null?this.#t.slice().map((r=>typeof r=="string"?r:r.toJSON())):[this.type,...this.#t.map((r=>r.toJSON()))];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#g&&this.#n?.type==="!")&&t.push({}),t}isStart(){if(this.#e===this)return!0;if(!this.#n?.isStart())return!1;if(this.#d===0)return!0;const t=this.#n;for(let r=0;r<this.#d;r++){const n=t.#t[r];if(!(n instanceof Qe&&n.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#n?.type==="!")return!0;if(!this.#n?.isEnd())return!1;if(!this.type)return this.#n?.isEnd();const t=this.#n?this.#n.#t.length:0;return this.#d===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new Qe(this.type,t);for(const n of this.#t)r.copyIn(n);return r}static#s(t,r,n,o){let i=!1,a=!1,u=-1,c=!1;if(r.type===null){let A=n,m="";for(;A<t.length;){const E=t.charAt(A++);if(i||E==="\\")i=!i,m+=E;else if(a)A===u+1?E!=="^"&&E!=="!"||(c=!0):E!=="]"||A===u+2&&c||(a=!1),m+=E;else if(E!=="[")if(o.noext||!nc(E)||t.charAt(A)!=="(")m+=E;else{r.push(m),m="";const T=new Qe(E,r);A=Qe.#s(t,T,A,o),r.push(T)}else a=!0,u=A,c=!1,m+=E}return r.push(m),A}let l=n+1,s=new Qe(null,r);const f=[];let h="";for(;l<t.length;){const A=t.charAt(l++);if(i||A==="\\")i=!i,h+=A;else if(a)l===u+1?A!=="^"&&A!=="!"||(c=!0):A!=="]"||l===u+2&&c||(a=!1),h+=A;else if(A!=="[")if(nc(A)&&t.charAt(l)==="("){s.push(h),h="";const m=new Qe(A,s);s.push(m),l=Qe.#s(t,m,l,o)}else if(A!=="|"){if(A===")")return h===""&&r.#t.length===0&&(r.#p=!0),s.push(h),h="",r.push(...f,s),l;h+=A}else s.push(h),h="",f.push(s),s=new Qe(null,r);else a=!0,u=l,c=!1,h+=A}return r.type=null,r.#r=void 0,r.#t=[t.substring(n-1)],l}static fromGlob(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=new Qe(null,void 0,r);return Qe.#s(t,n,0,r),n}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();const t=this.toString(),[r,n,o,i]=this.toRegExpSource();if(!(o||this.#r||this.#f.nocase&&!this.#f.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;const a=(this.#f.nocase?"i":"")+(i?"u":"");return Object.assign(new RegExp(`^${r}$`,a),{_src:r,_glob:t})}get options(){return this.#f}toRegExpSource(t){const r=t??!!this.#f.dot;if(this.#e===this&&this.#h(),!this.type){const c=this.isStart()&&this.isEnd(),l=this.#t.map((h=>{const[A,m,E,T]=typeof h=="string"?Qe.#i(h,this.#r,c):h.toRegExpSource(t);return this.#r=this.#r||E,this.#o=this.#o||T,A})).join("");let s="";if(this.isStart()&&typeof this.#t[0]=="string"&&(this.#t.length!==1||!Uy.has(this.#t[0]))){const h=Ly,A=r&&h.has(l.charAt(0))||l.startsWith("\\.")&&h.has(l.charAt(2))||l.startsWith("\\.\\.")&&h.has(l.charAt(4)),m=!r&&!t&&h.has(l.charAt(0));s=A?"(?!(?:^|/)\\.\\.?(?:$|/))":m?Ro:""}let f="";return this.isEnd()&&this.#e.#g&&this.#n?.type==="!"&&(f="(?:$|\\/)"),[s+l+f,wr(l),this.#r=!!this.#r,this.#o]}const n=this.type==="*"||this.type==="+",o=this.type==="!"?"(?:(?!(?:":"(?:";let i=this.#a(r);if(this.isStart()&&this.isEnd()&&!i&&this.type!=="!"){const c=this.toString();return this.#t=[c],this.type=null,this.#r=void 0,[c,wr(this.toString()),!1,!1]}let a=!n||t||r?"":this.#a(!0);a===i&&(a=""),a&&(i=`(?:${i})(?:${a})*?`);let u="";return u=this.type==="!"&&this.#p?(this.isStart()&&!r?Ro:"")+oc:o+i+(this.type==="!"?"))"+(!this.isStart()||r||t?"":Ro)+ic+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`),[u,wr(i),this.#r=!!this.#r,this.#o]}#a(t){return this.#t.map((r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[n,o,i,a]=r.toRegExpSource(t);return this.#o=this.#o||a,n})).filter((r=>!(this.isStart()&&this.isEnd()&&!r))).join("|")}static#i(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+=(jy.has(c)?"\\":"")+c;else if(c!=="\\"){if(c==="["){const[l,s,f,h]=Cy(t,u);if(f){i+=l,a=a||s,u+=f-1,r=r||h;continue}}c!=="*"?c!=="?"?i+=c.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):(i+=Io,r=!0):(i+=n&&t==="*"?oc:ic,r=!0)}else u===t.length-1?i+="\\\\":o=!0}return[i,wr(t),!!r,a]}}const Xe=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return rn(t),!(!r.nocomment&&t.charAt(0)==="#")&&new nn(t,r).match(e)},ky=/^\*+([^+@!?\*\[\(]*)$/,My=e=>t=>!t.startsWith(".")&&t.endsWith(e),Dy=e=>t=>t.endsWith(e),qy=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),$y=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),Hy=/^\*+\.\*+$/,Vy=e=>!e.startsWith(".")&&e.includes("."),Wy=e=>e!=="."&&e!==".."&&e.includes("."),Gy=/^\.\*+$/,Ky=e=>e!=="."&&e!==".."&&e.startsWith("."),zy=/^\*+$/,Xy=e=>e.length!==0&&!e.startsWith("."),Yy=e=>e.length!==0&&e!=="."&&e!=="..",Jy=/^\?+([^+@!?\*\[\(]*)?$/,Zy=e=>{let[t,r=""]=e;const n=sc([t]);return r?(r=r.toLowerCase(),o=>n(o)&&o.toLowerCase().endsWith(r)):n},Qy=e=>{let[t,r=""]=e;const n=ac([t]);return r?(r=r.toLowerCase(),o=>n(o)&&o.toLowerCase().endsWith(r)):n},em=e=>{let[t,r=""]=e;const n=ac([t]);return r?o=>n(o)&&o.endsWith(r):n},tm=e=>{let[t,r=""]=e;const n=sc([t]);return r?o=>n(o)&&o.endsWith(r):n},sc=e=>{let[t]=e;const r=t.length;return n=>n.length===r&&!n.startsWith(".")},ac=e=>{let[t]=e;const r=t.length;return n=>n.length===r&&n!=="."&&n!==".."},uc=typeof ye=="object"&&ye?typeof ye.env=="object"&&ye.env&&ye.env.__MINIMATCH_TESTING_PLATFORM__||ye.platform:"posix";Xe.sep=uc==="win32"?"\\":"/";const st=Symbol("globstar **");Xe.GLOBSTAR=st,Xe.filter=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return r=>Xe(r,e,t)};const at=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.assign({},e,t)};Xe.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Xe;const t=Xe;return Object.assign((function(r,n){return t(r,n,at(e,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}))}),{Minimatch:class extends t.Minimatch{constructor(r){super(r,at(e,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}))}static defaults(r){return t.defaults(at(e,r)).Minimatch}},AST:class extends t.AST{constructor(r,n){super(r,n,at(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,at(e,n))}},unescape:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.unescape(r,at(e,n))},escape:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.escape(r,at(e,n))},filter:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.filter(r,at(e,n))},defaults:r=>t.defaults(at(e,r)),makeRe:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.makeRe(r,at(e,n))},braceExpand:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.braceExpand(r,at(e,n))},match:function(r,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t.match(r,n,at(e,o))},sep:t.sep,GLOBSTAR:st})};const lc=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return rn(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:Py(e)};Xe.braceExpand=lc,Xe.makeRe=function(e){return new nn(e,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).makeRe()},Xe.match=function(e,t){const r=new nn(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 cc=/[?*]|[+@!]\(.*?\)|\[|\]/;class nn{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};rn(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||uc,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]!=="?"&&cc.test(i[2])||cc.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 E=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),T=!E&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),y=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),p=T?3:E?0:void 0,d=!y&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3])?3:y?0:void 0;if(typeof p=="number"&&typeof d=="number"){const[g,v]=[t[p],r[d]];g.toLowerCase()===v.toLowerCase()&&(r[d]=g,d>p?r=r.slice(d):p>d&&(t=t.slice(p)))}}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===st){this.debug("GLOBSTAR",[r,s,f]);var h=a,A=u+1;if(A===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(`
|
|
33
|
+
globstar while`,t,h,r,A,m),this.matchOne(t.slice(h),r.slice(A),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,A);break}this.debug("globstar swallow a segment, and continue"),h++}return!(!n||(this.debug(`
|
|
34
|
+
>>> no match, partial?`,t,h,r,A),h!==c))}let E;if(typeof s=="string"?(E=f===s,this.debug("string match",s,f,E)):(E=s.test(f),this.debug("pattern match",s,f,E)),!E)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 lc(this.pattern,this.options)}parse(t){rn(t);const r=this.options;if(t==="**")return st;if(t==="")return"";let n,o=null;(n=t.match(zy))?o=r.dot?Yy:Xy:(n=t.match(ky))?o=(r.nocase?r.dot?$y:qy:r.dot?Dy:My)(n[1]):(n=t.match(Jy))?o=(r.nocase?r.dot?Qy:Zy:r.dot?em:tm)(n):(n=t.match(Hy))?o=r.dot?Wy:Vy:(n=t.match(Gy))&&(o=Ky);const i=Qe.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===st?st:s._src}));return l.forEach(((s,f)=>{const h=l[f+1],A=l[f-1];s===st&&A!==st&&(A===void 0?h!==void 0&&h!==st?l[f+1]="(?:\\/|"+n+"\\/)?"+h:l[f]=n:h===void 0?l[f-1]=A+"(?:\\/|"+n+")?":h!==st&&(l[f-1]=A+"(?:\\/|\\/"+n+"\\/)"+h,l[f+1]=st))})),l.filter((s=>s!==st)).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 Xe.defaults(t).Minimatch}}function Po(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 $e(e,t){const{status:r}=t;if(r===401&&e.digest)return t;if(r>=400)throw Po(t);return t}function kt(e,t){return arguments.length>2&&arguments[2]!==void 0&&arguments[2]?{data:t,headers:e.headers?Ny(e.headers):{},status:e.status,statusText:e.statusText}:t}Xe.AST=Qe,Xe.Minimatch=nn,Xe.escape=function(e){let{windowsPathsNoEscape:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&")},Xe.unescape=wr;const rm=(fc=function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=qe({url:Be(e.remoteURL,Ce(t)),method:"COPY",headers:{Destination:Be(e.remoteURL,Ce(r)),Overwrite:n.overwrite===!1?"F":"T",Depth:n.shallow?"0":"infinity"}},e,n);return a=function(u){$e(e,u)},(i=De(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(fc.apply(this,e))}catch(r){return Promise.reject(r)}});var fc,Fo=Se(635),nm=Se(829),Tt=Se.n(nm),er=(function(e){return e.Array="array",e.Object="object",e.Original="original",e})(er||{});function on(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:er.Original;const n=Tt().get(e,t);return r==="array"&&Array.isArray(n)===!1?[n]:r==="object"&&Array.isArray(n)?n[0]:n}function vr(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 Tt().set(o,"multistatus.response",on(o,"multistatus.response",er.Array)),Tt().set(o,"multistatus.response",Tt().get(o,"multistatus.response").map((i=>(function(a){const u=Object.assign({},a);return u.status?Tt().set(u,"status",on(u,"status",er.Object)):(Tt().set(u,"propstat",on(u,"propstat",er.Object)),Tt().set(u,"propstat.prop",on(u,"propstat.prop",er.Object))),u})(i)))),o})(new Fo.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 sn(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:Zr().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 hc(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 sn(o,yr(t),r)}function dc(e){switch(String(e)){case"-3":return"unlimited";case"-2":case"-1":return"unknown";default:return parseInt(String(e),10)}}function Co(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Bo=(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:Be(e.remoteURL,Ce(t)),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},e,r);return Co(De(o,e),(function(i){return $e(e,i),Co(i.text(),(function(a){return Co(vr(a),(function(u){const c=hc(u,t,n);return kt(i,c,n)}))}))}))}));function pc(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const im=gc((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=Zr().dirname(a);while(a&&a!=="/");return u})(yr(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[mc]=="function"){let E=function(T){try{for(;!(c=f.next()).done;)if((T=a(c.value))&&T.then){if(!bc(T))return void T.then(E,s||(s=et.bind(null,l=new tr,2)));T=T.v}l?et(l,1,T):l=T}catch(y){et(l||(l=new tr),2,y)}};var c,l,s,f=i[mc]();if(E(),f.return){var h=function(T){try{c.done||f.return()}catch{}return T};if(l&&l.then)return l.then(h,(function(T){throw h(T)}));h()}return l}if(!("length"in i))throw new TypeError("Object is not iterable");for(var A=[],m=0;m<i.length;m++)A.push(i[m]);return(function(E,T,y){var p,d,g=-1;return(function v(x){try{for(;++g<E.length&&(!y||!y());)if((x=T(g))&&x.then){if(!bc(x))return void x.then(v,d||(d=et.bind(null,p=new tr,2)));x=x.v}p?et(p,1,x):p=x}catch(I){et(p||(p=new tr),2,I)}})(),p})(A,(function(E){return a(A[E])}),u)})(n,(function(i){return a=function(){return(function(c,l){try{var s=pc(Bo(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,yc(Lo(e,i,{...r,recursive:!1}));throw c})()}))},(u=(function(){if(o)return yc(Lo(e,i,{...r,recursive:!1}))})())&&u.then?u.then(a):a();var a,u}),(function(){return!1}))}));function gc(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 om(){}function yc(e,t){return e&&e.then?e.then(om):Promise.resolve()}const mc=typeof Symbol<"u"?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function et(e,t,r){if(!e.s){if(r instanceof tr){if(!r.s)return void(r.o=et.bind(null,e,t));1&t&&(t=r.s),r=r.v}if(r&&r.then)return void r.then(et.bind(null,e,t),et.bind(null,e,2));e.s=t,e.v=r;const n=e.o;n&&n(e)}}const tr=(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{et(n,1,i(this.v))}catch(a){et(n,2,a)}return n}return this}return this.o=function(i){try{const a=i.v;1&i.s?et(n,1,t?t(a):a):r?et(n,1,r(a)):et(n,2,a)}catch(a){et(n,2,a)}},n},e})();function bc(e){return e instanceof tr&&1&e.s}const Lo=gc((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(r.recursive===!0)return im(e,t,r);const n=qe({url:Be(e.remoteURL,(o=Ce(t),o.endsWith("/")?o:o+"/")),method:"MKCOL"},e,r);var o;return pc(De(n,e),(function(i){$e(e,i)}))}));var sm=Se(388),wc=Se.n(sm);const am=(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:Be(e.remoteURL,Ce(t)),method:"GET",headers:n},e,r);return a=function(u){if($e(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=De(o,e))&&i.then||(i=Promise.resolve(i)),a?i.then(a):i;var i,a})),um=()=>{},lm=(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=Be(e.remoteURL,Ce(t)));const n=qe(r,e,{});return i=function(a){return $e(e,a),a},(o=De(n,e))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i})),cm=(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:Be(e.remoteURL,Ce(t)),method:"DELETE"},e,r);return i=function(a){$e(e,a)},(o=De(n,e))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i})),fm=(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=Bo(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 Uo(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const hm=(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:Be(e.remoteURL,Ce(t),"/"),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:r.deep?"infinity":"1"}},e,r);return Uo(De(n,e),(function(o){return $e(e,o),Uo(o.text(),(function(i){if(!i)throw new Error("Failed parsing directory contents: Empty response");return Uo(vr(i),(function(a){const u=$l(t);let c=(function(l,s,f){let h=arguments.length>3&&arguments[3]!==void 0&&arguments[3],A=arguments.length>4&&arguments[4]!==void 0&&arguments[4];const m=Zr().join(s,"/"),{multistatus:{response:E}}=l,T=E.map((y=>{const p=(function(g){try{return g.replace(/^https?:\/\/[^\/]+/,"")}catch(v){throw new Je(v,"Failed normalising HREF")}})(y.href),{propstat:{prop:d}}=y;return sn(d,m==="/"?decodeURIComponent(yr(p)):yr(Zr().relative(decodeURIComponent(m),decodeURIComponent(p))),h)}));return A?T:T.filter((y=>y.basename&&(y.type==="file"||y.filename!==f.replace(/\/$/,""))))})(a,$l(e.remoteBasePath||e.remotePath),u,r.details,r.includeSelf);return r.glob&&(c=(function(l,s){return l.filter((f=>Xe(f.filename,s,{matchBase:!0})))})(c,r.glob)),kt(o,c,r.details)}))}))}))}));function jo(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 dm=jo((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=qe({url:Be(e.remoteURL,Ce(t)),method:"GET",headers:{Accept:"text/plain"},transformResponse:[ym]},e,r);return an(De(n,e),(function(o){return $e(e,o),an(o.text(),(function(i){return kt(o,i,r.details)}))}))}));function an(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const pm=jo((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=qe({url:Be(e.remoteURL,Ce(t)),method:"GET"},e,r);return an(De(n,e),(function(o){let i;return $e(e,o),(function(a,u){var c=a();return c&&c.then?c.then(u):u()})((function(){return an(o.arrayBuffer(),(function(a){i=a}))}),(function(){return kt(o,i,r.details)}))}))})),gm=jo((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 Je({info:{code:At.InvalidOutputFormat}},`Invalid output format: ${n}`);return n==="text"?dm(e,t,r):pm(e,t,r)})),ym=e=>e;function mm(e){return new Fo.XMLBuilder({attributeNamePrefix:"@_",format:!0,ignoreAttributes:!1,suppressEmptyNode:!0}).build(vc({lockinfo:{"@_xmlns:d":"DAV:",lockscope:{exclusive:{}},locktype:{write:{}},owner:{href:e}}},"d"))}function vc(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}`]=vc(r[n],t),delete r[n]):/^@_/.test(n)===!1&&(r[`${t}:${n}`]=r[n],delete r[n]));return r}function ko(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function Ec(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 bm=Ec((function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=qe({url:Be(e.remoteURL,Ce(t)),method:"UNLOCK",headers:{"Lock-Token":r}},e,n);return ko(De(o,e),(function(i){if($e(e,i),i.status!==204&&i.status!==200)throw Po(i)}))})),wm=Ec((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{refreshToken:n,timeout:o=vm}=r,i={Accept:"text/plain,application/xml",Timeout:o};n&&(i.If=n);const a=qe({url:Be(e.remoteURL,Ce(t)),method:"LOCK",headers:i,data:mm(e.contactHref)},e,r);return ko(De(a,e),(function(u){return $e(e,u),ko(u.text(),(function(c){const l=(h=c,new Fo.XMLParser({removeNSPrefix:!0,parseAttributeValue:!0,parseTagValue:!0}).parse(h)),s=Tt().get(l,"prop.lockdiscovery.activelock.locktoken.href"),f=Tt().get(l,"prop.lockdiscovery.activelock.timeout");var h;if(!s)throw Po(u,"No lock token received: ");return{token:s,serverTimeout:f}}))}))})),vm="Infinite, Second-4100000000";function Mo(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Em=(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:Be(e.remoteURL,r),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},e,t);return Mo(De(n,e),(function(o){return $e(e,o),Mo(o.text(),(function(i){return Mo(vr(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:dc(f)}:null}catch{}return null})(a);return kt(o,u,t.details)}))}))}))}));function Do(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const xm=(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:Be(e.remoteURL,Ce(t)),method:"SEARCH",headers:{Accept:"text/plain,application/xml","Content-Type":e.headers["Content-Type"]||"application/xml; charset=utf-8"}},e,r);return Do(De(o,e),(function(i){return $e(e,i),Do(i.text(),(function(a){return Do(vr(a),(function(u){const c=(function(l,s,f){const h={truncated:!1,results:[]};return h.truncated=l.multistatus.response.some((A=>(A.status||A.propstat?.status).split(" ",3)?.[1]==="507"&&A.href.replace(/\/$/,"").endsWith(Ce(s).replace(/\/$/,"")))),l.multistatus.response.forEach((A=>{if(A.propstat===void 0)return;const m=A.href.split("/").map(decodeURIComponent).join("/");h.results.push(sn(A.propstat.prop,m,f))})),h})(u,t,n);return kt(i,c,n)}))}))}))})),Am=(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:Be(e.remoteURL,Ce(t)),method:"MOVE",headers:{Destination:Be(e.remoteURL,Ce(r)),Overwrite:n.overwrite===!1?"F":"T"}},e,n);return a=function(u){$e(e,u)},(i=De(o,e))&&i.then||(i=Promise.resolve(i)),a?i.then(a):i;var i,a}));var Tm=Se(172);const Sm=(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(Ql(s))return s.byteLength;if(ec(s))return s.length;if(typeof s=="string")return(0,Tm.d)(s);throw new Je({info:{code:At.DataTypeNoLength}},"Cannot calculate data length: Invalid type")})(r)}`),i||(a["If-None-Match"]="*");const u=qe({url:Be(e.remoteURL,Ce(t)),method:"PUT",headers:a,data:r},e,n);return l=function(s){try{$e(e,s)}catch(f){const h=f;if(h.status!==412||i)throw h;return!1}return!0},(c=De(u,e))&&c.then||(c=Promise.resolve(c)),l?c.then(l):c;var c,l})),xc=(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:Be(e.remoteURL,Ce(t)),method:"OPTIONS"},e,r);return i=function(a){try{$e(e,a)}catch(u){throw u}return{compliance:(a.headers.get("DAV")??"").split(",").map((u=>u.trim())),server:a.headers.get("Server")??""}},(o=De(n,e))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i}));function Er(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const _m=qo((function(e,t,r,n,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(r>n||r<0)throw new Je({info:{code:At.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:Be(e.remoteURL,Ce(t)),method:"PUT",headers:a,data:o},e,i);return Er(De(u,e),(function(c){$e(e,c)}))}));function Ac(e,t){var r=e();return r&&r.then?r.then(t):t(r)}const Nm=qo((function(e,t,r,n,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(r>n||r<0)throw new Je({info:{code:At.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:Be(e.remoteURL,Ce(t)),method:"PATCH",headers:a,data:o},e,i);return Er(De(u,e),(function(c){$e(e,c)}))}));function qo(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 Om=qo((function(e,t,r,n,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};return Er(xc(e,t,i),(function(a){let u=!1;return Ac((function(){if(a.compliance.includes("sabredav-partialupdate"))return Er(Nm(e,t,r,n,o,i),(function(c){return u=!0,c}))}),(function(c){let l=!1;return u?c:Ac((function(){if(a.server.includes("Apache")&&a.compliance.includes("<http://apache.org/dav/propset/fs/1>"))return Er(_m(e,t,r,n,o,i),(function(s){return l=!0,s}))}),(function(s){if(l)return s;throw new Je({info:{code:At.NotSupported}},"Not supported")}))}))}))})),Rm="https://github.com/perry-mitchell/webdav-client/blob/master/LOCK_CONTACT.md";function Im(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{authType:r=null,remoteBasePath:n,contactHref:o=Rm,ha1:i,headers:a={},httpAgent:u,httpsAgent:c,password:l,token:s,username:f,withCredentials:h}=t;let A=r;A||(A=f||l?Ze.Password:Ze.None);const m={authType:A,remoteBasePath:n,contactHref:o,ha1:i,headers:Object.assign({},a),httpAgent:u,httpsAgent:c,password:l,remotePath:by(e),remoteURL:e,token:s,username:f,withCredentials:h};return zl(m,f,l,s,i),{copyFile:(E,T,y)=>rm(m,E,T,y),createDirectory:(E,T)=>Lo(m,E,T),createReadStream:(E,T)=>(function(y,p){let d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const g=new(wc()).PassThrough;return am(y,p,d).then((v=>{v.pipe(g)})).catch((v=>{g.emit("error",v)})),g})(m,E,T),createWriteStream:(E,T,y)=>(function(p,d){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:um;const x=new(wc()).PassThrough,I={};g.overwrite===!1&&(I["If-None-Match"]="*");const P=qe({url:Be(p.remoteURL,Ce(d)),method:"PUT",headers:I,data:x,maxRedirects:0},p,g);return De(P,p).then((N=>$e(p,N))).then((N=>{setTimeout((()=>{v(N)}),0)})).catch((N=>{x.emit("error",N)})),x})(m,E,T,y),customRequest:(E,T)=>lm(m,E,T),deleteFile:(E,T)=>cm(m,E,T),exists:(E,T)=>fm(m,E,T),getDirectoryContents:(E,T)=>hm(m,E,T),getFileContents:(E,T)=>gm(m,E,T),getFileDownloadLink:E=>(function(T,y){let p=Be(T.remoteURL,Ce(y));const d=/^https:/i.test(p)?"https":"http";switch(T.authType){case Ze.None:break;case Ze.Password:{const g=Gl(T.headers.Authorization.replace(/^Basic /i,"").trim());p=p.replace(/^https?:\/\//,`${d}://${g}@`);break}default:throw new Je({info:{code:At.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${T.authType}`)}return p})(m,E),getFileUploadLink:E=>(function(T,y){let p=`${Be(T.remoteURL,Ce(y))}?Content-Type=application/octet-stream`;const d=/^https:/i.test(p)?"https":"http";switch(T.authType){case Ze.None:break;case Ze.Password:{const g=Gl(T.headers.Authorization.replace(/^Basic /i,"").trim());p=p.replace(/^https?:\/\//,`${d}://${g}@`);break}default:throw new Je({info:{code:At.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${T.authType}`)}return p})(m,E),getHeaders:()=>Object.assign({},m.headers),getQuota:E=>Em(m,E),lock:(E,T)=>wm(m,E,T),moveFile:(E,T,y)=>Am(m,E,T,y),putFileContents:(E,T,y)=>Sm(m,E,T,y),partialUpdateFileContents:(E,T,y,p,d)=>Om(m,E,T,y,p,d),getDAVCompliance:E=>xc(m,E),search:(E,T)=>xm(m,E,T),setHeaders:E=>{m.headers=Object.assign({},E)},stat:(E,T)=>Bo(m,E,T),unlock:(E,T,y)=>bm(m,E,T,y)}}ot.hT,ot.O4,ot.Kd,ot.YK;var Pm=ot.UU;ot.Gu,ot.ky;var Fm=ot.h4,Cm=ot.ch;ot.hq,ot.i5;const We=[];for(let e=0;e<256;++e)We.push((e+256).toString(16).slice(1));function Bm(e,t=0){return(We[e[t+0]]+We[e[t+1]]+We[e[t+2]]+We[e[t+3]]+"-"+We[e[t+4]]+We[e[t+5]]+"-"+We[e[t+6]]+We[e[t+7]]+"-"+We[e[t+8]]+We[e[t+9]]+"-"+We[e[t+10]]+We[e[t+11]]+We[e[t+12]]+We[e[t+13]]+We[e[t+14]]+We[e[t+15]]).toLowerCase()}let $o;const Lm=new Uint8Array(16);function Um(){if(!$o){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");$o=crypto.getRandomValues.bind(crypto)}return $o(Lm)}var Tc={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function jm(e,t,r){e=e||{};const n=e.random??e.rng?.()??Um();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,Bm(n)}function km(e,t,r){return Tc.randomUUID&&!e?Tc.randomUUID():jm(e)}var Ho={},Vo={},Sc;function Wo(){return Sc||(Sc=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 A=0;A<h;A++)f.push(s[A]);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})(Vo)),Vo}var _c;function Nc(){if(_c)return Ho;_c=1;const e=Wo(),t={allowBooleanAttributes:!1,unpairedTags:[]};Ho.validate=function(y,p){p=Object.assign({},t,p);const d=[];let g=!1,v=!1;y[0]==="\uFEFF"&&(y=y.substr(1));for(let x=0;x<y.length;x++)if(y[x]==="<"&&y[x+1]==="?"){if(x+=2,x=n(y,x),x.err)return x}else if(y[x]==="<"){let I=x;if(x++,y[x]==="!"){x=o(y,x);continue}else{let P=!1;y[x]==="/"&&(P=!0,x++);let N="";for(;x<y.length&&y[x]!==">"&&y[x]!==" "&&y[x]!==" "&&y[x]!==`
|
|
35
|
+
`&&y[x]!=="\r";x++)N+=y[x];if(N=N.trim(),N[N.length-1]==="/"&&(N=N.substring(0,N.length-1),x--),!m(N)){let L;return N.trim().length===0?L="Invalid space after '<'.":L="Tag '"+N+"' is an invalid name.",h("InvalidTag",L,E(y,x))}const j=u(y,x);if(j===!1)return h("InvalidAttr","Attributes for '"+N+"' have open quote.",E(y,x));let K=j.value;if(x=j.index,K[K.length-1]==="/"){const L=x-K.length;K=K.substring(0,K.length-1);const k=l(K,p);if(k===!0)g=!0;else return h(k.err.code,k.err.msg,E(y,L+k.err.line))}else if(P)if(j.tagClosed){if(K.trim().length>0)return h("InvalidTag","Closing tag '"+N+"' can't have attributes or invalid starting.",E(y,I));if(d.length===0)return h("InvalidTag","Closing tag '"+N+"' has not been opened.",E(y,I));{const L=d.pop();if(N!==L.tagName){let k=E(y,L.tagStartPos);return h("InvalidTag","Expected closing tag '"+L.tagName+"' (opened in line "+k.line+", col "+k.col+") instead of closing tag '"+N+"'.",E(y,I))}d.length==0&&(v=!0)}}else return h("InvalidTag","Closing tag '"+N+"' doesn't have proper closing.",E(y,x));else{const L=l(K,p);if(L!==!0)return h(L.err.code,L.err.msg,E(y,x-K.length+L.err.line));if(v===!0)return h("InvalidXml","Multiple possible root nodes found.",E(y,x));p.unpairedTags.indexOf(N)!==-1||d.push({tagName:N,tagStartPos:I}),g=!0}for(x++;x<y.length;x++)if(y[x]==="<")if(y[x+1]==="!"){x++,x=o(y,x);continue}else if(y[x+1]==="?"){if(x=n(y,++x),x.err)return x}else break;else if(y[x]==="&"){const L=f(y,x);if(L==-1)return h("InvalidChar","char '&' is not expected.",E(y,x));x=L}else if(v===!0&&!r(y[x]))return h("InvalidXml","Extra text at the end",E(y,x));y[x]==="<"&&x--}}else{if(r(y[x]))continue;return h("InvalidChar","char '"+y[x]+"' is not expected.",E(y,x))}if(g){if(d.length==1)return h("InvalidTag","Unclosed tag '"+d[0].tagName+"'.",E(y,d[0].tagStartPos));if(d.length>0)return h("InvalidXml","Invalid '"+JSON.stringify(d.map(x=>x.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return h("InvalidXml","Start tag expected.",1);return!0};function r(y){return y===" "||y===" "||y===`
|
|
36
|
+
`||y==="\r"}function n(y,p){const d=p;for(;p<y.length;p++)if(y[p]=="?"||y[p]==" "){const g=y.substr(d,p-d);if(p>5&&g==="xml")return h("InvalidXml","XML declaration allowed only at the start of the document.",E(y,p));if(y[p]=="?"&&y[p+1]==">"){p++;break}else continue}return p}function o(y,p){if(y.length>p+5&&y[p+1]==="-"&&y[p+2]==="-"){for(p+=3;p<y.length;p++)if(y[p]==="-"&&y[p+1]==="-"&&y[p+2]===">"){p+=2;break}}else if(y.length>p+8&&y[p+1]==="D"&&y[p+2]==="O"&&y[p+3]==="C"&&y[p+4]==="T"&&y[p+5]==="Y"&&y[p+6]==="P"&&y[p+7]==="E"){let d=1;for(p+=8;p<y.length;p++)if(y[p]==="<")d++;else if(y[p]===">"&&(d--,d===0))break}else if(y.length>p+9&&y[p+1]==="["&&y[p+2]==="C"&&y[p+3]==="D"&&y[p+4]==="A"&&y[p+5]==="T"&&y[p+6]==="A"&&y[p+7]==="["){for(p+=8;p<y.length;p++)if(y[p]==="]"&&y[p+1]==="]"&&y[p+2]===">"){p+=2;break}}return p}const i='"',a="'";function u(y,p){let d="",g="",v=!1;for(;p<y.length;p++){if(y[p]===i||y[p]===a)g===""?g=y[p]:g!==y[p]||(g="");else if(y[p]===">"&&g===""){v=!0;break}d+=y[p]}return g!==""?!1:{value:d,index:p,tagClosed:v}}const c=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function l(y,p){const d=e.getAllMatches(y,c),g={};for(let v=0;v<d.length;v++){if(d[v][1].length===0)return h("InvalidAttr","Attribute '"+d[v][2]+"' has no space in starting.",T(d[v]));if(d[v][3]!==void 0&&d[v][4]===void 0)return h("InvalidAttr","Attribute '"+d[v][2]+"' is without value.",T(d[v]));if(d[v][3]===void 0&&!p.allowBooleanAttributes)return h("InvalidAttr","boolean attribute '"+d[v][2]+"' is not allowed.",T(d[v]));const x=d[v][2];if(!A(x))return h("InvalidAttr","Attribute '"+x+"' is an invalid name.",T(d[v]));if(!g.hasOwnProperty(x))g[x]=1;else return h("InvalidAttr","Attribute '"+x+"' is repeated.",T(d[v]))}return!0}function s(y,p){let d=/\d/;for(y[p]==="x"&&(p++,d=/[\da-fA-F]/);p<y.length;p++){if(y[p]===";")return p;if(!y[p].match(d))break}return-1}function f(y,p){if(p++,y[p]===";")return-1;if(y[p]==="#")return p++,s(y,p);let d=0;for(;p<y.length;p++,d++)if(!(y[p].match(/\w/)&&d<20)){if(y[p]===";")break;return-1}return p}function h(y,p,d){return{err:{code:y,msg:p,line:d.line||d,col:d.col}}}function A(y){return e.isName(y)}function m(y){return e.isName(y)}function E(y,p){const d=y.substring(0,p).split(/\r?\n/);return{line:d.length,col:d[d.length-1].length+1}}function T(y){return y.startIndex+y[1].length}return Ho}var un={},Oc;function Mm(){if(Oc)return un;Oc=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 un.buildOptions=t,un.defaultOptions=e,un}var Go,Rc;function Dm(){if(Rc)return Go;Rc=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 Go=e,Go}var Ko,Ic;function qm(){if(Ic)return Ko;Ic=1;const e=Wo();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,A=!1,m=!1,E="";for(;s<l.length;s++)if(l[s]==="<"&&!m){if(A&&o(l,s)){s+=7;let T,y;[T,y,s]=r(l,s+1),y.indexOf("&")===-1&&(f[c(T)]={regx:RegExp(`&${T};`,"g"),val:y})}else if(A&&i(l,s))s+=8;else if(A&&a(l,s))s+=8;else if(A&&u(l,s))s+=9;else if(n)m=!0;else throw new Error("Invalid DOCTYPE");h++,E=""}else if(l[s]===">"){if(m?l[s-1]==="-"&&l[s-2]==="-"&&(m=!1,h--):h--,h===0)break}else l[s]==="["?A=!0:E+=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 A="";for(;s<l.length&&l[s]!==h;s++)A+=l[s];return[f,A,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 Ko=t,Ko}var zo,Pc;function $m(){if(Pc)return zo;Pc=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 A=Number(c),m=""+A;return m.search(/[eE]/)!==-1?u.eNotation?A:a:c.indexOf(".")!==-1?m==="0"&&h===""||m===h||s&&m==="-"+h?A:a:f?h===m||s+h===m?A:a:c===m||c===s+m?A: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 zo=n,zo}var Xo,Fc;function Cc(){if(Fc)return Xo;Fc=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 Xo=e,Xo}var Yo,Bc;function Hm(){if(Bc)return Yo;Bc=1;const e=Wo(),t=Dm(),r=qm(),n=$m(),o=Cc();class i{constructor(x){this.options=x,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:(I,P)=>String.fromCharCode(Number.parseInt(P,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(I,P)=>String.fromCharCode(Number.parseInt(P,16))}},this.addExternalEntities=a,this.parseXml=f,this.parseTextData=u,this.resolveNameSpace=c,this.buildAttributesMap=s,this.isItStopNode=E,this.replaceEntitiesValue=A,this.readStopNodeData=d,this.saveTextToParentTag=m,this.addChild=h,this.ignoreAttributesFn=o(this.options.ignoreAttributes)}}function a(v){const x=Object.keys(v);for(let I=0;I<x.length;I++){const P=x[I];this.lastEntities[P]={regex:new RegExp("&"+P+";","g"),val:v[P]}}}function u(v,x,I,P,N,j,K){if(v!==void 0&&(this.options.trimValues&&!P&&(v=v.trim()),v.length>0)){K||(v=this.replaceEntitiesValue(v));const L=this.options.tagValueProcessor(x,v,I,N,j);return L==null?v:typeof L!=typeof v||L!==v?L:this.options.trimValues?g(v,this.options.parseTagValue,this.options.numberParseOptions):v.trim()===v?g(v,this.options.parseTagValue,this.options.numberParseOptions):v}}function c(v){if(this.options.removeNSPrefix){const x=v.split(":"),I=v.charAt(0)==="/"?"/":"";if(x[0]==="xmlns")return"";x.length===2&&(v=I+x[1])}return v}const l=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function s(v,x,I){if(this.options.ignoreAttributes!==!0&&typeof v=="string"){const P=e.getAllMatches(v,l),N=P.length,j={};for(let K=0;K<N;K++){const L=this.resolveNameSpace(P[K][1]);if(this.ignoreAttributesFn(L,x))continue;let k=P[K][4],re=this.options.attributeNamePrefix+L;if(L.length)if(this.options.transformAttributeName&&(re=this.options.transformAttributeName(re)),re==="__proto__"&&(re="#__proto__"),k!==void 0){this.options.trimValues&&(k=k.trim()),k=this.replaceEntitiesValue(k);const ee=this.options.attributeValueProcessor(L,k,x);ee==null?j[re]=k:typeof ee!=typeof k||ee!==k?j[re]=ee:j[re]=g(k,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(j[re]=!0)}if(!Object.keys(j).length)return;if(this.options.attributesGroupName){const K={};return K[this.options.attributesGroupName]=j,K}return j}}const f=function(v){v=v.replace(/\r\n?/g,`
|
|
37
|
+
`);const x=new t("!xml");let I=x,P="",N="";for(let j=0;j<v.length;j++)if(v[j]==="<")if(v[j+1]==="/"){const L=y(v,">",j,"Closing Tag is not closed.");let k=v.substring(j+2,L).trim();if(this.options.removeNSPrefix){const ue=k.indexOf(":");ue!==-1&&(k=k.substr(ue+1))}this.options.transformTagName&&(k=this.options.transformTagName(k)),I&&(P=this.saveTextToParentTag(P,I,N));const re=N.substring(N.lastIndexOf(".")+1);if(k&&this.options.unpairedTags.indexOf(k)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${k}>`);let ee=0;re&&this.options.unpairedTags.indexOf(re)!==-1?(ee=N.lastIndexOf(".",N.lastIndexOf(".")-1),this.tagsNodeStack.pop()):ee=N.lastIndexOf("."),N=N.substring(0,ee),I=this.tagsNodeStack.pop(),P="",j=L}else if(v[j+1]==="?"){let L=p(v,j,!1,"?>");if(!L)throw new Error("Pi Tag is not closed.");if(P=this.saveTextToParentTag(P,I,N),!(this.options.ignoreDeclaration&&L.tagName==="?xml"||this.options.ignorePiTags)){const k=new t(L.tagName);k.add(this.options.textNodeName,""),L.tagName!==L.tagExp&&L.attrExpPresent&&(k[":@"]=this.buildAttributesMap(L.tagExp,N,L.tagName)),this.addChild(I,k,N)}j=L.closeIndex+1}else if(v.substr(j+1,3)==="!--"){const L=y(v,"-->",j+4,"Comment is not closed.");if(this.options.commentPropName){const k=v.substring(j+4,L-2);P=this.saveTextToParentTag(P,I,N),I.add(this.options.commentPropName,[{[this.options.textNodeName]:k}])}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=y(v,"]]>",j,"CDATA is not closed.")-2,k=v.substring(j+9,L);P=this.saveTextToParentTag(P,I,N);let re=this.parseTextData(k,I.tagname,N,!0,!1,!0,!0);re==null&&(re=""),this.options.cdataPropName?I.add(this.options.cdataPropName,[{[this.options.textNodeName]:k}]):I.add(this.options.textNodeName,re),j=L+2}else{let L=p(v,j,this.options.removeNSPrefix),k=L.tagName;const re=L.rawTagName;let ee=L.tagExp,ue=L.attrExpPresent,le=L.closeIndex;this.options.transformTagName&&(k=this.options.transformTagName(k)),I&&P&&I.tagname!=="!xml"&&(P=this.saveTextToParentTag(P,I,N,!1));const de=I;if(de&&this.options.unpairedTags.indexOf(de.tagname)!==-1&&(I=this.tagsNodeStack.pop(),N=N.substring(0,N.lastIndexOf("."))),k!==x.tagname&&(N+=N?"."+k:k),this.isItStopNode(this.options.stopNodes,N,k)){let fe="";if(ee.length>0&&ee.lastIndexOf("/")===ee.length-1)k[k.length-1]==="/"?(k=k.substr(0,k.length-1),N=N.substr(0,N.length-1),ee=k):ee=ee.substr(0,ee.length-1),j=L.closeIndex;else if(this.options.unpairedTags.indexOf(k)!==-1)j=L.closeIndex;else{const pe=this.readStopNodeData(v,re,le+1);if(!pe)throw new Error(`Unexpected end of ${re}`);j=pe.i,fe=pe.tagContent}const be=new t(k);k!==ee&&ue&&(be[":@"]=this.buildAttributesMap(ee,N,k)),fe&&(fe=this.parseTextData(fe,k,N,!0,ue,!0,!0)),N=N.substr(0,N.lastIndexOf(".")),be.add(this.options.textNodeName,fe),this.addChild(I,be,N)}else{if(ee.length>0&&ee.lastIndexOf("/")===ee.length-1){k[k.length-1]==="/"?(k=k.substr(0,k.length-1),N=N.substr(0,N.length-1),ee=k):ee=ee.substr(0,ee.length-1),this.options.transformTagName&&(k=this.options.transformTagName(k));const fe=new t(k);k!==ee&&ue&&(fe[":@"]=this.buildAttributesMap(ee,N,k)),this.addChild(I,fe,N),N=N.substr(0,N.lastIndexOf("."))}else{const fe=new t(k);this.tagsNodeStack.push(I),k!==ee&&ue&&(fe[":@"]=this.buildAttributesMap(ee,N,k)),this.addChild(I,fe,N),I=fe}P="",j=le}}else P+=v[j];return x.child};function h(v,x,I){const P=this.options.updateTag(x.tagname,I,x[":@"]);P===!1||(typeof P=="string"&&(x.tagname=P),v.addChild(x))}const A=function(v){if(this.options.processEntities){for(let x in this.docTypeEntities){const I=this.docTypeEntities[x];v=v.replace(I.regx,I.val)}for(let x in this.lastEntities){const I=this.lastEntities[x];v=v.replace(I.regex,I.val)}if(this.options.htmlEntities)for(let x in this.htmlEntities){const I=this.htmlEntities[x];v=v.replace(I.regex,I.val)}v=v.replace(this.ampEntity.regex,this.ampEntity.val)}return v};function m(v,x,I,P){return v&&(P===void 0&&(P=x.child.length===0),v=this.parseTextData(v,x.tagname,I,!1,x[":@"]?Object.keys(x[":@"]).length!==0:!1,P),v!==void 0&&v!==""&&x.add(this.options.textNodeName,v),v=""),v}function E(v,x,I){const P="*."+I;for(const N in v){const j=v[N];if(P===j||x===j)return!0}return!1}function T(v,x,I=">"){let P,N="";for(let j=x;j<v.length;j++){let K=v[j];if(P)K===P&&(P="");else if(K==='"'||K==="'")P=K;else if(K===I[0])if(I[1]){if(v[j+1]===I[1])return{data:N,index:j}}else return{data:N,index:j};else K===" "&&(K=" ");N+=K}}function y(v,x,I,P){const N=v.indexOf(x,I);if(N===-1)throw new Error(P);return N+x.length-1}function p(v,x,I,P=">"){const N=T(v,x+1,P);if(!N)return;let j=N.data;const K=N.index,L=j.search(/\s/);let k=j,re=!0;L!==-1&&(k=j.substring(0,L),j=j.substring(L+1).trimStart());const ee=k;if(I){const ue=k.indexOf(":");ue!==-1&&(k=k.substr(ue+1),re=k!==N.data.substr(ue+1))}return{tagName:k,tagExp:j,closeIndex:K,attrExpPresent:re,rawTagName:ee}}function d(v,x,I){const P=I;let N=1;for(;I<v.length;I++)if(v[I]==="<")if(v[I+1]==="/"){const j=y(v,">",I,`${x} is not closed`);if(v.substring(I+2,j).trim()===x&&(N--,N===0))return{tagContent:v.substring(P,I),i:j};I=j}else if(v[I+1]==="?")I=y(v,"?>",I+1,"StopNode is not closed.");else if(v.substr(I+1,3)==="!--")I=y(v,"-->",I+3,"StopNode is not closed.");else if(v.substr(I+1,2)==="![")I=y(v,"]]>",I,"StopNode is not closed.")-2;else{const j=p(v,I,">");j&&((j&&j.tagName)===x&&j.tagExp[j.tagExp.length-1]!=="/"&&N++,I=j.closeIndex)}}function g(v,x,I){if(x&&typeof v=="string"){const P=v.trim();return P==="true"?!0:P==="false"?!1:n(v,I)}else return e.isExist(v)?v:""}return Yo=i,Yo}var Jo={},Lc;function Vm(){if(Lc)return Jo;Lc=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 A="";if(u===void 0?A=h:A=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,A);const E=o(m,a);f[":@"]?n(m,f[":@"],A,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,A,E)?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 Jo.prettify=e,Jo}var Zo,Uc;function Wm(){if(Uc)return Zo;Uc=1;const{buildOptions:e}=Mm(),t=Hm(),{prettify:r}=Vm(),n=Nc();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 '
'");if(u==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[a]=u}}return Zo=o,Zo}var Qo,jc;function Gm(){if(jc)return Qo;jc=1;const e=`
|
|
38
|
+
`;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 A=0;A<u.length;A++){const m=u[A],E=n(m);if(E===void 0)continue;let T="";if(l.length===0?T=E:T=`${l}.${E}`,E===c.textNodeName){let v=m[E];i(T,c)||(v=c.tagValueProcessor(E,v),v=a(v,c)),h&&(f+=s),f+=v,h=!1;continue}else if(E===c.cdataPropName){h&&(f+=s),f+=`<![CDATA[${m[E][0][c.textNodeName]}]]>`,h=!1;continue}else if(E===c.commentPropName){f+=s+`<!--${m[E][0][c.textNodeName]}-->`,h=!0;continue}else if(E[0]==="?"){const v=o(m[":@"],c),x=E==="?xml"?"":s;let I=m[E][0][c.textNodeName];I=I.length!==0?" "+I:"",f+=x+`<${E}${I}${v}?>`,h=!0;continue}let y=s;y!==""&&(y+=c.indentBy);const p=o(m[":@"],c),d=s+`<${E}${p}`,g=r(m[E],c,T,y);c.unpairedTags.indexOf(E)!==-1?c.suppressUnpairedNode?f+=d+">":f+=d+"/>":(!g||g.length===0)&&c.suppressEmptyNode?f+=d+"/>":g&&g.endsWith(">")?f+=d+`>${g}${s}</${E}>`:(f+=d+">",g&&s!==""&&(g.includes("/>")||g.includes("</"))?f+=s+c.indentBy+g+s:f+=g,f+=`</${E}>`),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 Qo=t,Qo}var es,kc;function Km(){if(kc)return es;kc=1;const e=Gm(),t=Cc(),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:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],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=`>
|
|
39
|
+
`,this.newLine=`
|
|
40
|
+
`):(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 A in u)if(Object.prototype.hasOwnProperty.call(u,A))if(typeof u[A]>"u")this.isAttribute(A)&&(f+="");else if(u[A]===null)this.isAttribute(A)||A===this.options.cdataPropName?f+="":A[0]==="?"?f+=this.indentate(c)+"<"+A+"?"+this.tagEndChar:f+=this.indentate(c)+"<"+A+"/"+this.tagEndChar;else if(u[A]instanceof Date)f+=this.buildTextValNode(u[A],A,"",c);else if(typeof u[A]!="object"){const m=this.isAttribute(A);if(m&&!this.ignoreAttributesFn(m,h))s+=this.buildAttrPairStr(m,""+u[A]);else if(!m)if(A===this.options.textNodeName){let E=this.options.tagValueProcessor(A,""+u[A]);f+=this.replaceEntitiesValue(E)}else f+=this.buildTextValNode(u[A],A,"",c)}else if(Array.isArray(u[A])){const m=u[A].length;let E="",T="";for(let y=0;y<m;y++){const p=u[A][y];if(!(typeof p>"u"))if(p===null)A[0]==="?"?f+=this.indentate(c)+"<"+A+"?"+this.tagEndChar:f+=this.indentate(c)+"<"+A+"/"+this.tagEndChar;else if(typeof p=="object")if(this.options.oneListGroup){const d=this.j2x(p,c+1,l.concat(A));E+=d.val,this.options.attributesGroupName&&p.hasOwnProperty(this.options.attributesGroupName)&&(T+=d.attrStr)}else E+=this.processTextOrObjNode(p,A,c,l);else if(this.options.oneListGroup){let d=this.options.tagValueProcessor(A,p);d=this.replaceEntitiesValue(d),E+=d}else E+=this.buildTextValNode(p,A,"",c)}this.options.oneListGroup&&(E=this.buildObjectNode(E,A,T,c)),f+=E}else if(this.options.attributesGroupName&&A===this.options.attributesGroupName){const m=Object.keys(u[A]),E=m.length;for(let T=0;T<E;T++)s+=this.buildAttrPairStr(m[T],""+u[A][m[T]])}else f+=this.processTextOrObjNode(u[A],A,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 es=n,es}var ts,Mc;function zm(){if(Mc)return ts;Mc=1;const e=Nc(),t=Wm(),r=Km();return ts={XMLParser:t,XMLValidator:e,XMLBuilder:r},ts}var rs=zm();const ns=(e,t)=>Object.fromEntries(Object.entries(e).map(([r,n])=>t.includes(r)?[r,n||""]:[Bt.DavNamespace.includes(r)?`d:${r}`:`oc:${r}`,n||""])),Dc=(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=ns(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":ns(r,[])}}};return new rs.XMLBuilder({format:!0,ignoreAttributes:!1,attributeNamePrefix:"@@",suppressEmptyNode:!0}).build(c)},Xm=e=>{const t={"d:propertyupdate":{"d:set":{"d:prop":ns(e,[])},"@@xmlns:d":"DAV:","@@xmlns:oc":"http://owncloud.org/ns"}};return new rs.XMLBuilder({format:!0,ignoreAttributes:!1,attributeNamePrefix:"@@",suppressEmptyNode:!0}).build(t)},Ym=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},Jm=async e=>{const t=n=>{const o=decodeURIComponent(n);return n?.startsWith("/remote.php/dav/")?Ee(o.replace("/remote.php/dav/",""),{leadingSlash:!0,trailingSlash:!1}):o};return(await Fm(e)).multistatus.response.map(({href:n,propstat:o})=>{const i={...Cm(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})},Zm=e=>{const t=new rs.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 Qm{client;davPath;headers;extraProps;constructor({baseUrl:t,headers:r}){this.davPath=Ee(t,"remote.php/dav"),this.client=Pm(this.davPath,{}),this.headers=r,this.extraProps=[]}mkcol(t,r={}){return this.request(t,{method:vt.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:vt.propfind,data:Dc(n,{extraProps:this.extraProps}),headers:a,...i});return u?.length&&(u[0].tusSupport=Ym(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:vt.report,data:Dc(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=Ee(this.davPath,Lr(r));return this.request(t,{method:vt.copy,headers:{...o,Destination:a,overwrite:n?"T":"F"},...i})}move(t,r,{overwrite:n=!1,headers:o={},...i}={}){const a=Ee(this.davPath,Lr(r));return this.request(t,{method:vt.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:vt.put,data:r,headers:c,onUploadProgress:o,...u})}delete(t,r={}){return this.request(t,{method:vt.delete,...r})}propPatch(t,r,n={}){const o=Xm(r);return this.request(t,{method:vt.proppatch,data:o,...n})}getFileUrl(t){return Ee(this.davPath,Lr(t))}buildHeaders(t={}){return{"Content-Type":"application/xml; charset=utf-8","X-Requested-With":"XMLHttpRequest","X-Request-ID":km(),...this.headers&&{...this.headers()},...t}}async request(t,r){const n=Ee(this.davPath,Lr(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 Jm(u)}return{body:a,status:i.status,result:i}}catch(i){const{response:a}=i,u=await a.text(),c=Zm(u);throw new Mh(c.message,c.errorCode,a,a.status)}}}const eb=(e,t)=>({async listFileVersions(r,n={}){const[o,...i]=await e.propfind(Ee("meta",r,"v",{leadingSlash:!0}),n);return i.map(a=>zt(a,e.extraProps))}}),tb=(e,t)=>({setFavorite(r,{path:n},o,i={}){const a={[se.IsFavorite]:o?"true":"false"};return e.propPatch(Ee(r.webDavPath,n),a,i)}}),rb=(e,t)=>({listFavoriteFiles({davProperties:r=Bt.Default,username:n="",...o}={}){return e.report(Ee("files",n),{properties:r,filterRules:{favorite:1},...o})}}),nb=(e,t)=>{const r=ke.create();t&&r.interceptors.request.use(k=>(Object.assign(k.headers,t()),k));const n={axiosClient:r,baseUrl:e},o=new Qm({baseUrl:e,headers:t}),i=k=>{o.extraProps.push(k)},a=dy(o),{getPathForFileId:u}=a,c=oy(o,a),{listFiles:l}=c,s=ry(c),{getFileInfo:f}=s,{createFolder:h}=ey(o,s),A=ty(o,n),{getFileContents:m}=A,{putFileContents:E}=ay(o,s),{getFileUrl:T,revokeUrl:y}=ny(o,A,s,n),{getPublicFileUrl:p}=iy(o),{copyFiles:d}=Q0(o),{moveFiles:g}=sy(o),{deleteFile:v}=uy(o),{restoreFile:x}=ly(o),{listFileVersions:I}=eb(o),{restoreFileVersion:P}=cy(o),{clearTrashBin:N}=fy(o),{search:j}=hy(o),{listFavoriteFiles:K}=rb(o),{setFavorite:L}=tb(o);return{copyFiles:d,createFolder:h,deleteFile:v,restoreFile:x,restoreFileVersion:P,getFileContents:m,getFileInfo:f,getFileUrl:T,getPublicFileUrl:p,getPathForFileId:u,listFiles:l,listFileVersions:I,moveFiles:g,putFileContents:E,revokeUrl:y,clearTrashBin:N,search:j,listFavoriteFiles:K,setFavorite:L,registerExtraProp:i}};let xr;self.onmessage=async e=>{const{topic:t,data:r}=JSON.parse(e.data);if(t==="tokenUpdate"&&xr){xr.Authorization?.toString().startsWith("Bearer")&&(xr.Authorization=r.accessToken);return}const{baseUrl:n,headers:o,space:i,resources:a,concurrentRequests:u}=r;xr=o;const c=nb(n,()=>xr),l=[],s=[],f=new zc({concurrency:u}),h=m=>t==="fileListDelete"?c.deleteFile(i,{path:m.path}):c.clearTrashBin(i,{id:m.id}),A=a.map(m=>f.add(async()=>{try{const{status:E}=await h(m);if(E===204){l.push(m);return}if(E===423){const{status:T}=await h(m);if(T===204){l.push(m);return}}}catch(E){console.error(E),s.push({resource:m,message:E.message,statusCode:E.statusCode,xReqId:E.response.headers?.get("x-request-id")})}}));await Promise.allSettled(A),postMessage(JSON.stringify({successful:l,failed:s}))}})();
|