%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/varak.net/nextcloud.varak.net/apps_old/apps/text/js/
Upload File :
Create Path :
Current File : //www/varak.net/nextcloud.varak.net/apps_old/apps/text/js/index-CZpehzPA.chunk.mjs

/*! third party licenses: js/vendor.LICENSE.txt */
var Gn=Object.defineProperty;var Fe=e=>{throw TypeError(e)};var Bn=(e,t,n)=>t in e?Gn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var j=(e,t,n)=>Bn(e,typeof t!="symbol"?t+"":t,n),ee=(e,t,n)=>t.has(e)||Fe("Cannot "+n);var P=(e,t,n)=>(ee(e,t,"read from private field"),n?n.call(e):t.get(e)),nt=(e,t,n)=>t.has(e)?Fe("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),M=(e,t,n,r)=>(ee(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),gt=(e,t,n)=>(ee(e,t,"access private method"),n);import{p as Ct,g as be,o as zn,a as Xn}from"./modulepreload-polyfill-DMTabKmO.chunk.mjs";import{g as Vn}from"./index-DkzhscpN.chunk.mjs";import{i as Ee,g as Wn,p as Nt}from"./public-BnJZpQLY.chunk.mjs";import{U as qn}from"./index-Br6XaFoY.chunk.mjs";import{g as kt}from"./vue.runtime.esm-fZsuJKoo.chunk.mjs";import{X as Hn,U as hn}from"./NcNoteCard-CImn6F9p-7OG_jBLc.chunk.mjs";function Zn(e){return e&&e.split("/").map(encodeURIComponent).join("/")}function mt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ke(e,t,n){Kn(e,t),t.set(e,n)}function Kn(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function H(e,t){var n=pn(e,t,"get");return Yn(e,n)}function Yn(e,t){return t.get?t.get.call(e):t.value}function Me(e,t,n){var r=pn(e,t,"set");return Jn(e,r,n),n}function pn(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function Jn(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}var Qn=typeof Symbol<"u"?Symbol.toStringTag:"@@toStringTag",Z=new WeakMap,$t=new WeakMap;class Jt{constructor(t){var{executor:n=()=>{},internals:r=xe(),promise:i=new Promise((a,l)=>n(a,l,u=>{r.onCancelList.push(u)}))}=t;ke(this,Z,{writable:!0,value:void 0}),ke(this,$t,{writable:!0,value:void 0}),mt(this,Qn,"CancelablePromise"),this.cancel=this.cancel.bind(this),Me(this,Z,r),Me(this,$t,i||new Promise((a,l)=>n(a,l,u=>{r.onCancelList.push(u)})))}then(t,n){return Bt(H(this,$t).then(Mt(t,H(this,Z)),Mt(n,H(this,Z))),H(this,Z))}catch(t){return Bt(H(this,$t).catch(Mt(t,H(this,Z))),H(this,Z))}finally(t,n){return n&&H(this,Z).onCancelList.push(t),Bt(H(this,$t).finally(Mt(()=>{if(t)return n&&(H(this,Z).onCancelList=H(this,Z).onCancelList.filter(r=>r!==t)),t()},H(this,Z))),H(this,Z))}cancel(){H(this,Z).isCanceled=!0;var t=H(this,Z).onCancelList;H(this,Z).onCancelList=[];for(var n of t)if(typeof n=="function")try{n()}catch(r){console.error(r)}}isCanceled(){return H(this,Z).isCanceled===!0}}class lt extends Jt{constructor(t){super({executor:t})}}mt(lt,"all",function(e){return Ut(e,Promise.all(e))}),mt(lt,"allSettled",function(e){return Ut(e,Promise.allSettled(e))}),mt(lt,"any",function(e){return Ut(e,Promise.any(e))}),mt(lt,"race",function(e){return Ut(e,Promise.race(e))}),mt(lt,"resolve",function(e){return Ue(Promise.resolve(e))}),mt(lt,"reject",function(e){return Ue(Promise.reject(e))}),mt(lt,"isCancelable",Ne);function Ue(e){return Bt(e,xe())}function Ne(e){return e instanceof lt||e instanceof Jt}function Mt(e,t){if(e)return n=>{if(!t.isCanceled){var r=e(n);return Ne(r)&&t.onCancelList.push(r.cancel),r}return n}}function Bt(e,t){return new Jt({internals:t,promise:e})}function Ut(e,t){var n=xe();return n.onCancelList.push(()=>{for(var r of e)Ne(r)&&r.cancel()}),new Jt({internals:n,promise:t})}function xe(){return{isCanceled:!1,onCancelList:[]}}var ne={},tr={2:e=>{function t(i,a,l){i instanceof RegExp&&(i=n(i,l)),a instanceof RegExp&&(a=n(a,l));var u=r(i,a,l);return u&&{start:u[0],end:u[1],pre:l.slice(0,u[0]),body:l.slice(u[0]+i.length,u[1]),post:l.slice(u[1]+a.length)}}function n(i,a){var l=a.match(i);return l?l[0]:null}function r(i,a,l){var u,h,s,o,p,c=l.indexOf(i),g=l.indexOf(a,c+1),f=c;if(c>=0&&g>0){for(u=[],s=l.length;f>=0&&!p;)f==c?(u.push(f),c=l.indexOf(i,f+1)):u.length==1?p=[u.pop(),g]:((h=u.pop())<s&&(s=h,o=g),g=l.indexOf(a,f+1)),f=c<g&&c>=0?c:g;u.length&&(p=[s,o])}return p}e.exports=t,t.range=r},101:function(e,t,n){var r;e=n.nmd(e),function(i){var a=(e&&e.exports,typeof kt=="object"&&kt);a.global!==a&&a.window;var l=function(p){this.message=p};(l.prototype=new Error).name="InvalidCharacterError";var u=function(p){throw new l(p)},h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=/[\t\n\f\r ]/g,o={encode:function(p){p=String(p),/[^\0-\xFF]/.test(p)&&u("The string to be encoded contains characters outside of the Latin1 range.");for(var c,g,f,d,w=p.length%3,b="",m=-1,y=p.length-w;++m<y;)c=p.charCodeAt(m)<<16,g=p.charCodeAt(++m)<<8,f=p.charCodeAt(++m),b+=h.charAt((d=c+g+f)>>18&63)+h.charAt(d>>12&63)+h.charAt(d>>6&63)+h.charAt(63&d);return w==2?(c=p.charCodeAt(m)<<8,g=p.charCodeAt(++m),b+=h.charAt((d=c+g)>>10)+h.charAt(d>>4&63)+h.charAt(d<<2&63)+"="):w==1&&(d=p.charCodeAt(m),b+=h.charAt(d>>2)+h.charAt(d<<4&63)+"=="),b},decode:function(p){var c=(p=String(p).replace(s,"")).length;c%4==0&&(c=(p=p.replace(/==?$/,"")).length),(c%4==1||/[^+a-zA-Z0-9/]/.test(p))&&u("Invalid character: the string to be decoded is not correctly encoded.");for(var g,f,d=0,w="",b=-1;++b<c;)f=h.indexOf(p.charAt(b)),g=d%4?64*g+f:f,d++%4&&(w+=String.fromCharCode(255&g>>(-2*d&6)));return w},version:"1.0.0"};(r=(function(){return o}).call(t,n,t,e))===void 0||(e.exports=r)}()},172:(e,t)=>{t.d=function(n){if(!n)return 0;for(var r=(n=n.toString()).length,i=n.length;i--;){var a=n.charCodeAt(i);56320<=a&&a<=57343&&i--,127<a&&a<=2047?r++:2047<a&&a<=65535&&(r+=2)}return r}},526:e=>{var t={utf8:{stringToBytes:function(n){return t.bin.stringToBytes(unescape(encodeURIComponent(n)))},bytesToString:function(n){return decodeURIComponent(escape(t.bin.bytesToString(n)))}},bin:{stringToBytes:function(n){for(var r=[],i=0;i<n.length;i++)r.push(255&n.charCodeAt(i));return r},bytesToString:function(n){for(var r=[],i=0;i<n.length;i++)r.push(String.fromCharCode(n[i]));return r.join("")}}};e.exports=t},298:e=>{var t,n;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(r,i){return r<<i|r>>>32-i},rotr:function(r,i){return r<<32-i|r>>>i},endian:function(r){if(r.constructor==Number)return 16711935&n.rotl(r,8)|4278255360&n.rotl(r,24);for(var i=0;i<r.length;i++)r[i]=n.endian(r[i]);return r},randomBytes:function(r){for(var i=[];r>0;r--)i.push(Math.floor(256*Math.random()));return i},bytesToWords:function(r){for(var i=[],a=0,l=0;a<r.length;a++,l+=8)i[l>>>5]|=r[a]<<24-l%32;return i},wordsToBytes:function(r){for(var i=[],a=0;a<32*r.length;a+=8)i.push(r[a>>>5]>>>24-a%32&255);return i},bytesToHex:function(r){for(var i=[],a=0;a<r.length;a++)i.push((r[a]>>>4).toString(16)),i.push((15&r[a]).toString(16));return i.join("")},hexToBytes:function(r){for(var i=[],a=0;a<r.length;a+=2)i.push(parseInt(r.substr(a,2),16));return i},bytesToBase64:function(r){for(var i=[],a=0;a<r.length;a+=3)for(var l=r[a]<<16|r[a+1]<<8|r[a+2],u=0;u<4;u++)8*a+6*u<=8*r.length?i.push(t.charAt(l>>>6*(3-u)&63)):i.push("=");return i.join("")},base64ToBytes:function(r){r=r.replace(/[^A-Z0-9+\/]/gi,"");for(var i=[],a=0,l=0;a<r.length;l=++a%4)l!=0&&i.push((t.indexOf(r.charAt(a-1))&Math.pow(2,-2*l+8)-1)<<2*l|t.indexOf(r.charAt(a))>>>6-2*l);return i}},e.exports=n},635:(e,t,n)=>{const r=n(31),i=n(338),a=n(221);e.exports={XMLParser:i,XMLValidator:r,XMLBuilder:a}},705:(e,t)=>{const n=":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="["+n+"]["+n+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",i=new RegExp("^"+r+"$");t.isExist=function(a){return a!==void 0},t.isEmptyObject=function(a){return Object.keys(a).length===0},t.merge=function(a,l,u){if(l){const h=Object.keys(l),s=h.length;for(let o=0;o<s;o++)a[h[o]]=u==="strict"?[l[h[o]]]:l[h[o]]}},t.getValue=function(a){return t.isExist(a)?a:""},t.isName=function(a){return i.exec(a)!=null},t.getAllMatches=function(a,l){const u=[];let h=l.exec(a);for(;h;){const s=[];s.startIndex=l.lastIndex-h[0].length;const o=h.length;for(let p=0;p<o;p++)s.push(h[p]);u.push(s),h=l.exec(a)}return u},t.nameRegexp=r},31:(e,t,n)=>{const r=n(705),i={allowBooleanAttributes:!1,unpairedTags:[]};function a(m){return m===" "||m==="	"||m==="\n"||m==="\r"}function l(m,y){const E=y;for(;y<m.length;y++)if(!(m[y]!="?"&&m[y]!=" ")){const v=m.substr(E,y-E);if(y>5&&v==="xml")return f("InvalidXml","XML declaration allowed only at the start of the document.",w(m,y));if(m[y]=="?"&&m[y+1]==">"){y++;break}}return y}function u(m,y){if(m.length>y+5&&m[y+1]==="-"&&m[y+2]==="-"){for(y+=3;y<m.length;y++)if(m[y]==="-"&&m[y+1]==="-"&&m[y+2]===">"){y+=2;break}}else if(m.length>y+8&&m[y+1]==="D"&&m[y+2]==="O"&&m[y+3]==="C"&&m[y+4]==="T"&&m[y+5]==="Y"&&m[y+6]==="P"&&m[y+7]==="E"){let E=1;for(y+=8;y<m.length;y++)if(m[y]==="<")E++;else if(m[y]===">"&&(E--,E===0))break}else if(m.length>y+9&&m[y+1]==="["&&m[y+2]==="C"&&m[y+3]==="D"&&m[y+4]==="A"&&m[y+5]==="T"&&m[y+6]==="A"&&m[y+7]==="["){for(y+=8;y<m.length;y++)if(m[y]==="]"&&m[y+1]==="]"&&m[y+2]===">"){y+=2;break}}return y}t.validate=function(m,y){y=Object.assign({},i,y);const E=[];let v=!1,A=!1;m[0]==="\uFEFF"&&(m=m.substr(1));for(let x=0;x<m.length;x++)if(m[x]==="<"&&m[x+1]==="?"){if(x+=2,x=l(m,x),x.err)return x}else{if(m[x]!=="<"){if(a(m[x]))continue;return f("InvalidChar","char '"+m[x]+"' is not expected.",w(m,x))}{let O=x;if(x++,m[x]==="!"){x=u(m,x);continue}{let $=!1;m[x]==="/"&&($=!0,x++);let R="";for(;x<m.length&&m[x]!==">"&&m[x]!==" "&&m[x]!=="	"&&m[x]!=="\n"&&m[x]!=="\r";x++)R+=m[x];if(R=R.trim(),R[R.length-1]==="/"&&(R=R.substring(0,R.length-1),x--),N=R,!r.isName(N)){let L;return L=R.trim().length===0?"Invalid space after '<'.":"Tag '"+R+"' is an invalid name.",f("InvalidTag",L,w(m,x))}const T=o(m,x);if(T===!1)return f("InvalidAttr","Attributes for '"+R+"' have open quote.",w(m,x));let I=T.value;if(x=T.index,I[I.length-1]==="/"){const L=x-I.length;I=I.substring(0,I.length-1);const S=c(I,y);if(S!==!0)return f(S.err.code,S.err.msg,w(m,L+S.err.line));v=!0}else if($){if(!T.tagClosed)return f("InvalidTag","Closing tag '"+R+"' doesn't have proper closing.",w(m,x));if(I.trim().length>0)return f("InvalidTag","Closing tag '"+R+"' can't have attributes or invalid starting.",w(m,O));if(E.length===0)return f("InvalidTag","Closing tag '"+R+"' has not been opened.",w(m,O));{const L=E.pop();if(R!==L.tagName){let S=w(m,L.tagStartPos);return f("InvalidTag","Expected closing tag '"+L.tagName+"' (opened in line "+S.line+", col "+S.col+") instead of closing tag '"+R+"'.",w(m,O))}E.length==0&&(A=!0)}}else{const L=c(I,y);if(L!==!0)return f(L.err.code,L.err.msg,w(m,x-I.length+L.err.line));if(A===!0)return f("InvalidXml","Multiple possible root nodes found.",w(m,x));y.unpairedTags.indexOf(R)!==-1||E.push({tagName:R,tagStartPos:O}),v=!0}for(x++;x<m.length;x++)if(m[x]==="<"){if(m[x+1]==="!"){x++,x=u(m,x);continue}if(m[x+1]!=="?")break;if(x=l(m,++x),x.err)return x}else if(m[x]==="&"){const L=g(m,x);if(L==-1)return f("InvalidChar","char '&' is not expected.",w(m,x));x=L}else if(A===!0&&!a(m[x]))return f("InvalidXml","Extra text at the end",w(m,x));m[x]==="<"&&x--}}}var N;return v?E.length==1?f("InvalidTag","Unclosed tag '"+E[0].tagName+"'.",w(m,E[0].tagStartPos)):!(E.length>0)||f("InvalidXml","Invalid '"+JSON.stringify(E.map(x=>x.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):f("InvalidXml","Start tag expected.",1)};const h='"',s="'";function o(m,y){let E="",v="",A=!1;for(;y<m.length;y++){if(m[y]===h||m[y]===s)v===""?v=m[y]:v!==m[y]||(v="");else if(m[y]===">"&&v===""){A=!0;break}E+=m[y]}return v===""&&{value:E,index:y,tagClosed:A}}const p=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function c(m,y){const E=r.getAllMatches(m,p),v={};for(let A=0;A<E.length;A++){if(E[A][1].length===0)return f("InvalidAttr","Attribute '"+E[A][2]+"' has no space in starting.",b(E[A]));if(E[A][3]!==void 0&&E[A][4]===void 0)return f("InvalidAttr","Attribute '"+E[A][2]+"' is without value.",b(E[A]));if(E[A][3]===void 0&&!y.allowBooleanAttributes)return f("InvalidAttr","boolean attribute '"+E[A][2]+"' is not allowed.",b(E[A]));const N=E[A][2];if(!d(N))return f("InvalidAttr","Attribute '"+N+"' is an invalid name.",b(E[A]));if(v.hasOwnProperty(N))return f("InvalidAttr","Attribute '"+N+"' is repeated.",b(E[A]));v[N]=1}return!0}function g(m,y){if(m[++y]===";")return-1;if(m[y]==="#")return function(v,A){let N=/\d/;for(v[A]==="x"&&(A++,N=/[\da-fA-F]/);A<v.length;A++){if(v[A]===";")return A;if(!v[A].match(N))break}return-1}(m,++y);let E=0;for(;y<m.length;y++,E++)if(!(m[y].match(/\w/)&&E<20)){if(m[y]===";")break;return-1}return y}function f(m,y,E){return{err:{code:m,msg:y,line:E.line||E,col:E.col}}}function d(m){return r.isName(m)}function w(m,y){const E=m.substring(0,y).split(/\r?\n/);return{line:E.length,col:E[E.length-1].length+1}}function b(m){return m.startIndex+m[1].length}},221:(e,t,n)=>{const r=n(87),i={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:"  ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(s,o){return o},attributeValueProcessor:function(s,o){return o},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function a(s){this.options=Object.assign({},i,s),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=h),this.processTextOrObjNode=l,this.options.format?(this.indentate=u,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function l(s,o,p){const c=this.j2x(s,p+1);return s[this.options.textNodeName]!==void 0&&Object.keys(s).length===1?this.buildTextValNode(s[this.options.textNodeName],o,c.attrStr,p):this.buildObjectNode(c.val,o,c.attrStr,p)}function u(s){return this.options.indentBy.repeat(s)}function h(s){return!(!s.startsWith(this.options.attributeNamePrefix)||s===this.options.textNodeName)&&s.substr(this.attrPrefixLen)}a.prototype.build=function(s){return this.options.preserveOrder?r(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,o){let p="",c="";for(let g in s)if(Object.prototype.hasOwnProperty.call(s,g))if(s[g]===void 0)this.isAttribute(g)&&(c+="");else if(s[g]===null)this.isAttribute(g)?c+="":g[0]==="?"?c+=this.indentate(o)+"<"+g+"?"+this.tagEndChar:c+=this.indentate(o)+"<"+g+"/"+this.tagEndChar;else if(s[g]instanceof Date)c+=this.buildTextValNode(s[g],g,"",o);else if(typeof s[g]!="object"){const f=this.isAttribute(g);if(f)p+=this.buildAttrPairStr(f,""+s[g]);else if(g===this.options.textNodeName){let d=this.options.tagValueProcessor(g,""+s[g]);c+=this.replaceEntitiesValue(d)}else c+=this.buildTextValNode(s[g],g,"",o)}else if(Array.isArray(s[g])){const f=s[g].length;let d="",w="";for(let b=0;b<f;b++){const m=s[g][b];if(m!==void 0)if(m===null)g[0]==="?"?c+=this.indentate(o)+"<"+g+"?"+this.tagEndChar:c+=this.indentate(o)+"<"+g+"/"+this.tagEndChar;else if(typeof m=="object")if(this.options.oneListGroup){const y=this.j2x(m,o+1);d+=y.val,this.options.attributesGroupName&&m.hasOwnProperty(this.options.attributesGroupName)&&(w+=y.attrStr)}else d+=this.processTextOrObjNode(m,g,o);else if(this.options.oneListGroup){let y=this.options.tagValueProcessor(g,m);y=this.replaceEntitiesValue(y),d+=y}else d+=this.buildTextValNode(m,g,"",o)}this.options.oneListGroup&&(d=this.buildObjectNode(d,g,w,o)),c+=d}else if(this.options.attributesGroupName&&g===this.options.attributesGroupName){const f=Object.keys(s[g]),d=f.length;for(let w=0;w<d;w++)p+=this.buildAttrPairStr(f[w],""+s[g][f[w]])}else c+=this.processTextOrObjNode(s[g],g,o);return{attrStr:p,val:c}},a.prototype.buildAttrPairStr=function(s,o){return o=this.options.attributeValueProcessor(s,""+o),o=this.replaceEntitiesValue(o),this.options.suppressBooleanAttributes&&o==="true"?" "+s:" "+s+'="'+o+'"'},a.prototype.buildObjectNode=function(s,o,p,c){if(s==="")return o[0]==="?"?this.indentate(c)+"<"+o+p+"?"+this.tagEndChar:this.indentate(c)+"<"+o+p+this.closeTag(o)+this.tagEndChar;{let g="</"+o+this.tagEndChar,f="";return o[0]==="?"&&(f="?",g=""),!p&&p!==""||s.indexOf("<")!==-1?this.options.commentPropName!==!1&&o===this.options.commentPropName&&f.length===0?this.indentate(c)+"<!--".concat(s,"-->")+this.newLine:this.indentate(c)+"<"+o+p+f+this.tagEndChar+s+this.indentate(c)+g:this.indentate(c)+"<"+o+p+f+">"+s+g}},a.prototype.closeTag=function(s){let o="";return this.options.unpairedTags.indexOf(s)!==-1?this.options.suppressUnpairedNode||(o="/"):o=this.options.suppressEmptyNode?"/":"></".concat(s),o},a.prototype.buildTextValNode=function(s,o,p,c){if(this.options.cdataPropName!==!1&&o===this.options.cdataPropName)return this.indentate(c)+"<![CDATA[".concat(s,"]]>")+this.newLine;if(this.options.commentPropName!==!1&&o===this.options.commentPropName)return this.indentate(c)+"<!--".concat(s,"-->")+this.newLine;if(o[0]==="?")return this.indentate(c)+"<"+o+p+"?"+this.tagEndChar;{let g=this.options.tagValueProcessor(o,s);return g=this.replaceEntitiesValue(g),g===""?this.indentate(c)+"<"+o+p+this.closeTag(o)+this.tagEndChar:this.indentate(c)+"<"+o+p+">"+g+"</"+o+this.tagEndChar}},a.prototype.replaceEntitiesValue=function(s){if(s&&s.length>0&&this.options.processEntities)for(let o=0;o<this.options.entities.length;o++){const p=this.options.entities[o];s=s.replace(p.regex,p.val)}return s},e.exports=a},87:e=>{function t(l,u,h,s){let o="",p=!1;for(let c=0;c<l.length;c++){const g=l[c],f=n(g);if(f===void 0)continue;let d="";if(d=h.length===0?f:"".concat(h,".").concat(f),f===u.textNodeName){let y=g[f];i(d,u)||(y=u.tagValueProcessor(f,y),y=a(y,u)),p&&(o+=s),o+=y,p=!1;continue}if(f===u.cdataPropName){p&&(o+=s),o+="<![CDATA[".concat(g[f][0][u.textNodeName],"]]>"),p=!1;continue}if(f===u.commentPropName){o+=s+"<!--".concat(g[f][0][u.textNodeName],"-->"),p=!0;continue}if(f[0]==="?"){const y=r(g[":@"],u),E=f==="?xml"?"":s;let v=g[f][0][u.textNodeName];v=v.length!==0?" "+v:"",o+=E+"<".concat(f).concat(v).concat(y,"?>"),p=!0;continue}let w=s;w!==""&&(w+=u.indentBy);const b=s+"<".concat(f).concat(r(g[":@"],u)),m=t(g[f],u,d,w);u.unpairedTags.indexOf(f)!==-1?u.suppressUnpairedNode?o+=b+">":o+=b+"/>":m&&m.length!==0||!u.suppressEmptyNode?m&&m.endsWith(">")?o+=b+">".concat(m).concat(s,"</").concat(f,">"):(o+=b+">",m&&s!==""&&(m.includes("/>")||m.includes("</"))?o+=s+u.indentBy+m+s:o+=m,o+="</".concat(f,">")):o+=b+"/>",p=!0}return o}function n(l){const u=Object.keys(l);for(let h=0;h<u.length;h++){const s=u[h];if(l.hasOwnProperty(s)&&s!==":@")return s}}function r(l,u){let h="";if(l&&!u.ignoreAttributes)for(let s in l){if(!l.hasOwnProperty(s))continue;let o=u.attributeValueProcessor(s,l[s]);o=a(o,u),o===!0&&u.suppressBooleanAttributes?h+=" ".concat(s.substr(u.attributeNamePrefix.length)):h+=" ".concat(s.substr(u.attributeNamePrefix.length),'="').concat(o,'"')}return h}function i(l,u){let h=(l=l.substr(0,l.length-u.textNodeName.length-1)).substr(l.lastIndexOf(".")+1);for(let s in u.stopNodes)if(u.stopNodes[s]===l||u.stopNodes[s]==="*."+h)return!0;return!1}function a(l,u){if(l&&l.length>0&&u.processEntities)for(let h=0;h<u.entities.length;h++){const s=u.entities[h];l=l.replace(s.regex,s.val)}return l}e.exports=function(l,u){let h="";return u.format&&u.indentBy.length>0&&(h="\n"),t(l,u,"",h)}},193:(e,t,n)=>{const r=n(705);function i(p,c){let g="";for(;c<p.length&&p[c]!=="'"&&p[c]!=='"';c++)g+=p[c];if(g=g.trim(),g.indexOf(" ")!==-1)throw new Error("External entites are not supported");const f=p[c++];let d="";for(;c<p.length&&p[c]!==f;c++)d+=p[c];return[g,d,c]}function a(p,c){return p[c+1]==="!"&&p[c+2]==="-"&&p[c+3]==="-"}function l(p,c){return p[c+1]==="!"&&p[c+2]==="E"&&p[c+3]==="N"&&p[c+4]==="T"&&p[c+5]==="I"&&p[c+6]==="T"&&p[c+7]==="Y"}function u(p,c){return p[c+1]==="!"&&p[c+2]==="E"&&p[c+3]==="L"&&p[c+4]==="E"&&p[c+5]==="M"&&p[c+6]==="E"&&p[c+7]==="N"&&p[c+8]==="T"}function h(p,c){return p[c+1]==="!"&&p[c+2]==="A"&&p[c+3]==="T"&&p[c+4]==="T"&&p[c+5]==="L"&&p[c+6]==="I"&&p[c+7]==="S"&&p[c+8]==="T"}function s(p,c){return p[c+1]==="!"&&p[c+2]==="N"&&p[c+3]==="O"&&p[c+4]==="T"&&p[c+5]==="A"&&p[c+6]==="T"&&p[c+7]==="I"&&p[c+8]==="O"&&p[c+9]==="N"}function o(p){if(r.isName(p))return p;throw new Error("Invalid entity name ".concat(p))}e.exports=function(p,c){const g={};if(p[c+3]!=="O"||p[c+4]!=="C"||p[c+5]!=="T"||p[c+6]!=="Y"||p[c+7]!=="P"||p[c+8]!=="E")throw new Error("Invalid Tag instead of DOCTYPE");{c+=9;let f=1,d=!1,w=!1,b="";for(;c<p.length;c++)if(p[c]!=="<"||w)if(p[c]===">"){if(w?p[c-1]==="-"&&p[c-2]==="-"&&(w=!1,f--):f--,f===0)break}else p[c]==="["?d=!0:b+=p[c];else{if(d&&l(p,c))c+=7,[entityName,val,c]=i(p,c+1),val.indexOf("&")===-1&&(g[o(entityName)]={regx:RegExp("&".concat(entityName,";"),"g"),val});else if(d&&u(p,c))c+=8;else if(d&&h(p,c))c+=8;else if(d&&s(p,c))c+=9;else{if(!a)throw new Error("Invalid DOCTYPE");w=!0}f++,b=""}if(f!==0)throw new Error("Unclosed DOCTYPE")}return{entities:g,i:c}}},63:(e,t)=>{const n={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,i){return i},attributeValueProcessor:function(r,i){return i},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(r,i,a){return r}};t.buildOptions=function(r){return Object.assign({},n,r)},t.defaultOptions=n},299:(e,t,n)=>{const r=n(705),i=n(365),a=n(193),l=n(494);function u(v){const A=Object.keys(v);for(let N=0;N<A.length;N++){const x=A[N];this.lastEntities[x]={regex:new RegExp("&"+x+";","g"),val:v[x]}}}function h(v,A,N,x,O,$,R){if(v!==void 0&&(this.options.trimValues&&!x&&(v=v.trim()),v.length>0)){R||(v=this.replaceEntitiesValue(v));const T=this.options.tagValueProcessor(A,v,N,O,$);return T==null?v:typeof T!=typeof v||T!==v?T:this.options.trimValues||v.trim()===v?E(v,this.options.parseTagValue,this.options.numberParseOptions):v}}function s(v){if(this.options.removeNSPrefix){const A=v.split(":"),N=v.charAt(0)==="/"?"/":"";if(A[0]==="xmlns")return"";A.length===2&&(v=N+A[1])}return v}const o=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function p(v,A,N){if(!this.options.ignoreAttributes&&typeof v=="string"){const x=r.getAllMatches(v,o),O=x.length,$={};for(let R=0;R<O;R++){const T=this.resolveNameSpace(x[R][1]);let I=x[R][4],L=this.options.attributeNamePrefix+T;if(T.length)if(this.options.transformAttributeName&&(L=this.options.transformAttributeName(L)),L==="__proto__"&&(L="#__proto__"),I!==void 0){this.options.trimValues&&(I=I.trim()),I=this.replaceEntitiesValue(I);const S=this.options.attributeValueProcessor(T,I,A);$[L]=S==null?I:typeof S!=typeof I||S!==I?S:E(I,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&($[L]=!0)}if(!Object.keys($).length)return;if(this.options.attributesGroupName){const R={};return R[this.options.attributesGroupName]=$,R}return $}}const c=function(v){v=v.replace(/\r\n?/g,"\n");const A=new i("!xml");let N=A,x="",O="";for(let $=0;$<v.length;$++)if(v[$]==="<")if(v[$+1]==="/"){const R=b(v,">",$,"Closing Tag is not closed.");let T=v.substring($+2,R).trim();if(this.options.removeNSPrefix){const S=T.indexOf(":");S!==-1&&(T=T.substr(S+1))}this.options.transformTagName&&(T=this.options.transformTagName(T)),N&&(x=this.saveTextToParentTag(x,N,O));const I=O.substring(O.lastIndexOf(".")+1);if(T&&this.options.unpairedTags.indexOf(T)!==-1)throw new Error("Unpaired tag can not be used as closing tag: </".concat(T,">"));let L=0;I&&this.options.unpairedTags.indexOf(I)!==-1?(L=O.lastIndexOf(".",O.lastIndexOf(".")-1),this.tagsNodeStack.pop()):L=O.lastIndexOf("."),O=O.substring(0,L),N=this.tagsNodeStack.pop(),x="",$=R}else if(v[$+1]==="?"){let R=m(v,$,!1,"?>");if(!R)throw new Error("Pi Tag is not closed.");if(x=this.saveTextToParentTag(x,N,O),!(this.options.ignoreDeclaration&&R.tagName==="?xml"||this.options.ignorePiTags)){const T=new i(R.tagName);T.add(this.options.textNodeName,""),R.tagName!==R.tagExp&&R.attrExpPresent&&(T[":@"]=this.buildAttributesMap(R.tagExp,O,R.tagName)),this.addChild(N,T,O)}$=R.closeIndex+1}else if(v.substr($+1,3)==="!--"){const R=b(v,"-->",$+4,"Comment is not closed.");if(this.options.commentPropName){const T=v.substring($+4,R-2);x=this.saveTextToParentTag(x,N,O),N.add(this.options.commentPropName,[{[this.options.textNodeName]:T}])}$=R}else if(v.substr($+1,2)==="!D"){const R=a(v,$);this.docTypeEntities=R.entities,$=R.i}else if(v.substr($+1,2)==="!["){const R=b(v,"]]>",$,"CDATA is not closed.")-2,T=v.substring($+9,R);x=this.saveTextToParentTag(x,N,O);let I=this.parseTextData(T,N.tagname,O,!0,!1,!0,!0);I==null&&(I=""),this.options.cdataPropName?N.add(this.options.cdataPropName,[{[this.options.textNodeName]:T}]):N.add(this.options.textNodeName,I),$=R+2}else{let R=m(v,$,this.options.removeNSPrefix),T=R.tagName;const I=R.rawTagName;let L=R.tagExp,S=R.attrExpPresent,ut=R.closeIndex;this.options.transformTagName&&(T=this.options.transformTagName(T)),N&&x&&N.tagname!=="!xml"&&(x=this.saveTextToParentTag(x,N,O,!1));const U=N;if(U&&this.options.unpairedTags.indexOf(U.tagname)!==-1&&(N=this.tagsNodeStack.pop(),O=O.substring(0,O.lastIndexOf("."))),T!==A.tagname&&(O+=O?"."+T:T),this.isItStopNode(this.options.stopNodes,O,T)){let C="";if(L.length>0&&L.lastIndexOf("/")===L.length-1)T[T.length-1]==="/"?(T=T.substr(0,T.length-1),O=O.substr(0,O.length-1),L=T):L=L.substr(0,L.length-1),$=R.closeIndex;else if(this.options.unpairedTags.indexOf(T)!==-1)$=R.closeIndex;else{const Y=this.readStopNodeData(v,I,ut+1);if(!Y)throw new Error("Unexpected end of ".concat(I));$=Y.i,C=Y.tagContent}const rt=new i(T);T!==L&&S&&(rt[":@"]=this.buildAttributesMap(L,O,T)),C&&(C=this.parseTextData(C,T,O,!0,S,!0,!0)),O=O.substr(0,O.lastIndexOf(".")),rt.add(this.options.textNodeName,C),this.addChild(N,rt,O)}else{if(L.length>0&&L.lastIndexOf("/")===L.length-1){T[T.length-1]==="/"?(T=T.substr(0,T.length-1),O=O.substr(0,O.length-1),L=T):L=L.substr(0,L.length-1),this.options.transformTagName&&(T=this.options.transformTagName(T));const C=new i(T);T!==L&&S&&(C[":@"]=this.buildAttributesMap(L,O,T)),this.addChild(N,C,O),O=O.substr(0,O.lastIndexOf("."))}else{const C=new i(T);this.tagsNodeStack.push(N),T!==L&&S&&(C[":@"]=this.buildAttributesMap(L,O,T)),this.addChild(N,C,O),N=C}x="",$=ut}}else x+=v[$];return A.child};function g(v,A,N){const x=this.options.updateTag(A.tagname,N,A[":@"]);x===!1||(typeof x=="string"&&(A.tagname=x),v.addChild(A))}const f=function(v){if(this.options.processEntities){for(let A in this.docTypeEntities){const N=this.docTypeEntities[A];v=v.replace(N.regx,N.val)}for(let A in this.lastEntities){const N=this.lastEntities[A];v=v.replace(N.regex,N.val)}if(this.options.htmlEntities)for(let A in this.htmlEntities){const N=this.htmlEntities[A];v=v.replace(N.regex,N.val)}v=v.replace(this.ampEntity.regex,this.ampEntity.val)}return v};function d(v,A,N,x){return v&&(x===void 0&&(x=Object.keys(A.child).length===0),(v=this.parseTextData(v,A.tagname,N,!1,!!A[":@"]&&Object.keys(A[":@"]).length!==0,x))!==void 0&&v!==""&&A.add(this.options.textNodeName,v),v=""),v}function w(v,A,N){const x="*."+N;for(const O in v){const $=v[O];if(x===$||A===$)return!0}return!1}function b(v,A,N,x){const O=v.indexOf(A,N);if(O===-1)throw new Error(x);return O+A.length-1}function m(v,A,N){const x=function(S,ut){let U,C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:">",rt="";for(let Y=ut;Y<S.length;Y++){let W=S[Y];if(U)W===U&&(U="");else if(W==='"'||W==="'")U=W;else if(W===C[0]){if(!C[1])return{data:rt,index:Y};if(S[Y+1]===C[1])return{data:rt,index:Y}}else W==="	"&&(W=" ");rt+=W}}(v,A+1,arguments.length>3&&arguments[3]!==void 0?arguments[3]:">");if(!x)return;let O=x.data;const $=x.index,R=O.search(/\s/);let T=O,I=!0;R!==-1&&(T=O.substring(0,R),O=O.substring(R+1).trimStart());const L=T;if(N){const S=T.indexOf(":");S!==-1&&(T=T.substr(S+1),I=T!==x.data.substr(S+1))}return{tagName:T,tagExp:O,closeIndex:$,attrExpPresent:I,rawTagName:L}}function y(v,A,N){const x=N;let O=1;for(;N<v.length;N++)if(v[N]==="<")if(v[N+1]==="/"){const $=b(v,">",N,"".concat(A," is not closed"));if(v.substring(N+2,$).trim()===A&&(O--,O===0))return{tagContent:v.substring(x,N),i:$};N=$}else if(v[N+1]==="?")N=b(v,"?>",N+1,"StopNode is not closed.");else if(v.substr(N+1,3)==="!--")N=b(v,"-->",N+3,"StopNode is not closed.");else if(v.substr(N+1,2)==="![")N=b(v,"]]>",N,"StopNode is not closed.")-2;else{const $=m(v,N,">");$&&(($&&$.tagName)===A&&$.tagExp[$.tagExp.length-1]!=="/"&&O++,N=$.closeIndex)}}function E(v,A,N){if(A&&typeof v=="string"){const x=v.trim();return x==="true"||x!=="false"&&l(v,N)}return r.isExist(v)?v:""}e.exports=class{constructor(v){this.options=v,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:(A,N)=>String.fromCharCode(Number.parseInt(N,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(A,N)=>String.fromCharCode(Number.parseInt(N,16))}},this.addExternalEntities=u,this.parseXml=c,this.parseTextData=h,this.resolveNameSpace=s,this.buildAttributesMap=p,this.isItStopNode=w,this.replaceEntitiesValue=f,this.readStopNodeData=y,this.saveTextToParentTag=d,this.addChild=g}}},338:(e,t,n)=>{const{buildOptions:r}=n(63),i=n(299),{prettify:a}=n(728),l=n(31);e.exports=class{constructor(u){this.externalEntities={},this.options=r(u)}parse(u,h){if(typeof u!="string"){if(!u.toString)throw new Error("XML data is accepted in String or Bytes[] form.");u=u.toString()}if(h){h===!0&&(h={});const p=l.validate(u,h);if(p!==!0)throw Error("".concat(p.err.msg,":").concat(p.err.line,":").concat(p.err.col))}const s=new i(this.options);s.addExternalEntities(this.externalEntities);const o=s.parseXml(u);return this.options.preserveOrder||o===void 0?o:a(o,this.options)}addEntity(u,h){if(h.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(u.indexOf("&")!==-1||u.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(h==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[u]=h}}},728:(e,t)=>{function n(l,u,h){let s;const o={};for(let p=0;p<l.length;p++){const c=l[p],g=r(c);let f="";if(f=h===void 0?g:h+"."+g,g===u.textNodeName)s===void 0?s=c[g]:s+=""+c[g];else{if(g===void 0)continue;if(c[g]){let d=n(c[g],u,f);const w=a(d,u);c[":@"]?i(d,c[":@"],f,u):Object.keys(d).length!==1||d[u.textNodeName]===void 0||u.alwaysCreateTextNode?Object.keys(d).length===0&&(u.alwaysCreateTextNode?d[u.textNodeName]="":d=""):d=d[u.textNodeName],o[g]!==void 0&&o.hasOwnProperty(g)?(Array.isArray(o[g])||(o[g]=[o[g]]),o[g].push(d)):u.isArray(g,f,w)?o[g]=[d]:o[g]=d}}}return typeof s=="string"?s.length>0&&(o[u.textNodeName]=s):s!==void 0&&(o[u.textNodeName]=s),o}function r(l){const u=Object.keys(l);for(let h=0;h<u.length;h++){const s=u[h];if(s!==":@")return s}}function i(l,u,h,s){if(u){const o=Object.keys(u),p=o.length;for(let c=0;c<p;c++){const g=o[c];s.isArray(g,h+"."+g,!0,!0)?l[g]=[u[g]]:l[g]=u[g]}}}function a(l,u){const{textNodeName:h}=u,s=Object.keys(l).length;return s===0||!(s!==1||!l[h]&&typeof l[h]!="boolean"&&l[h]!==0)}t.prettify=function(l,u){return n(l,u)}},365:e=>{e.exports=class{constructor(t){this.tagname=t,this.child=[],this[":@"]={}}add(t,n){t==="__proto__"&&(t="#__proto__"),this.child.push({[t]:n})}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(n){return!!n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}e.exports=function(n){return n!=null&&(t(n)||function(r){return typeof r.readFloatLE=="function"&&typeof r.slice=="function"&&t(r.slice(0,0))}(n)||!!n._isBuffer)}},542:(e,t,n)=>{(function(){var r=n(298),i=n(526).utf8,a=n(135),l=n(526).bin,u=function(h,s){h.constructor==String?h=s&&s.encoding==="binary"?l.stringToBytes(h):i.stringToBytes(h):a(h)?h=Array.prototype.slice.call(h,0):Array.isArray(h)||h.constructor===Uint8Array||(h=h.toString());for(var o=r.bytesToWords(h),p=8*h.length,c=1732584193,g=-271733879,f=-1732584194,d=271733878,w=0;w<o.length;w++)o[w]=16711935&(o[w]<<8|o[w]>>>24)|4278255360&(o[w]<<24|o[w]>>>8);o[p>>>5]|=128<<p%32,o[14+(p+64>>>9<<4)]=p;var b=u._ff,m=u._gg,y=u._hh,E=u._ii;for(w=0;w<o.length;w+=16){var v=c,A=g,N=f,x=d;c=b(c,g,f,d,o[w+0],7,-680876936),d=b(d,c,g,f,o[w+1],12,-389564586),f=b(f,d,c,g,o[w+2],17,606105819),g=b(g,f,d,c,o[w+3],22,-1044525330),c=b(c,g,f,d,o[w+4],7,-176418897),d=b(d,c,g,f,o[w+5],12,1200080426),f=b(f,d,c,g,o[w+6],17,-1473231341),g=b(g,f,d,c,o[w+7],22,-45705983),c=b(c,g,f,d,o[w+8],7,1770035416),d=b(d,c,g,f,o[w+9],12,-1958414417),f=b(f,d,c,g,o[w+10],17,-42063),g=b(g,f,d,c,o[w+11],22,-1990404162),c=b(c,g,f,d,o[w+12],7,1804603682),d=b(d,c,g,f,o[w+13],12,-40341101),f=b(f,d,c,g,o[w+14],17,-1502002290),c=m(c,g=b(g,f,d,c,o[w+15],22,1236535329),f,d,o[w+1],5,-165796510),d=m(d,c,g,f,o[w+6],9,-1069501632),f=m(f,d,c,g,o[w+11],14,643717713),g=m(g,f,d,c,o[w+0],20,-373897302),c=m(c,g,f,d,o[w+5],5,-701558691),d=m(d,c,g,f,o[w+10],9,38016083),f=m(f,d,c,g,o[w+15],14,-660478335),g=m(g,f,d,c,o[w+4],20,-405537848),c=m(c,g,f,d,o[w+9],5,568446438),d=m(d,c,g,f,o[w+14],9,-1019803690),f=m(f,d,c,g,o[w+3],14,-187363961),g=m(g,f,d,c,o[w+8],20,1163531501),c=m(c,g,f,d,o[w+13],5,-1444681467),d=m(d,c,g,f,o[w+2],9,-51403784),f=m(f,d,c,g,o[w+7],14,1735328473),c=y(c,g=m(g,f,d,c,o[w+12],20,-1926607734),f,d,o[w+5],4,-378558),d=y(d,c,g,f,o[w+8],11,-2022574463),f=y(f,d,c,g,o[w+11],16,1839030562),g=y(g,f,d,c,o[w+14],23,-35309556),c=y(c,g,f,d,o[w+1],4,-1530992060),d=y(d,c,g,f,o[w+4],11,1272893353),f=y(f,d,c,g,o[w+7],16,-155497632),g=y(g,f,d,c,o[w+10],23,-1094730640),c=y(c,g,f,d,o[w+13],4,681279174),d=y(d,c,g,f,o[w+0],11,-358537222),f=y(f,d,c,g,o[w+3],16,-722521979),g=y(g,f,d,c,o[w+6],23,76029189),c=y(c,g,f,d,o[w+9],4,-640364487),d=y(d,c,g,f,o[w+12],11,-421815835),f=y(f,d,c,g,o[w+15],16,530742520),c=E(c,g=y(g,f,d,c,o[w+2],23,-995338651),f,d,o[w+0],6,-198630844),d=E(d,c,g,f,o[w+7],10,1126891415),f=E(f,d,c,g,o[w+14],15,-1416354905),g=E(g,f,d,c,o[w+5],21,-57434055),c=E(c,g,f,d,o[w+12],6,1700485571),d=E(d,c,g,f,o[w+3],10,-1894986606),f=E(f,d,c,g,o[w+10],15,-1051523),g=E(g,f,d,c,o[w+1],21,-2054922799),c=E(c,g,f,d,o[w+8],6,1873313359),d=E(d,c,g,f,o[w+15],10,-30611744),f=E(f,d,c,g,o[w+6],15,-1560198380),g=E(g,f,d,c,o[w+13],21,1309151649),c=E(c,g,f,d,o[w+4],6,-145523070),d=E(d,c,g,f,o[w+11],10,-1120210379),f=E(f,d,c,g,o[w+2],15,718787259),g=E(g,f,d,c,o[w+9],21,-343485551),c=c+v>>>0,g=g+A>>>0,f=f+N>>>0,d=d+x>>>0}return r.endian([c,g,f,d])};u._ff=function(h,s,o,p,c,g,f){var d=h+(s&o|~s&p)+(c>>>0)+f;return(d<<g|d>>>32-g)+s},u._gg=function(h,s,o,p,c,g,f){var d=h+(s&p|o&~p)+(c>>>0)+f;return(d<<g|d>>>32-g)+s},u._hh=function(h,s,o,p,c,g,f){var d=h+(s^o^p)+(c>>>0)+f;return(d<<g|d>>>32-g)+s},u._ii=function(h,s,o,p,c,g,f){var d=h+(o^(s|~p))+(c>>>0)+f;return(d<<g|d>>>32-g)+s},u._blocksize=16,u._digestsize=16,e.exports=function(h,s){if(h==null)throw new Error("Illegal argument "+h);var o=r.wordsToBytes(u(h,s));return s&&s.asBytes?o:s&&s.asString?l.bytesToString(o):r.bytesToHex(o)}})()},285:(e,t,n)=>{var r=n(2);e.exports=function(b){return b?(b.substr(0,2)==="{}"&&(b="\\{\\}"+b.substr(2)),w(function(m){return m.split("\\\\").join(i).split("\\{").join(a).split("\\}").join(l).split("\\,").join(u).split("\\.").join(h)}(b),!0).map(o)):[]};var i="\0SLASH"+Math.random()+"\0",a="\0OPEN"+Math.random()+"\0",l="\0CLOSE"+Math.random()+"\0",u="\0COMMA"+Math.random()+"\0",h="\0PERIOD"+Math.random()+"\0";function s(b){return parseInt(b,10)==b?parseInt(b,10):b.charCodeAt(0)}function o(b){return b.split(i).join("\\").split(a).join("{").split(l).join("}").split(u).join(",").split(h).join(".")}function p(b){if(!b)return[""];var m=[],y=r("{","}",b);if(!y)return b.split(",");var E=y.pre,v=y.body,A=y.post,N=E.split(",");N[N.length-1]+="{"+v+"}";var x=p(A);return A.length&&(N[N.length-1]+=x.shift(),N.push.apply(N,x)),m.push.apply(m,N),m}function c(b){return"{"+b+"}"}function g(b){return/^-?0\d/.test(b)}function f(b,m){return b<=m}function d(b,m){return b>=m}function w(b,m){var y=[],E=r("{","}",b);if(!E)return[b];var v=E.pre,A=E.post.length?w(E.post,!1):[""];if(/\$$/.test(E.pre))for(var N=0;N<A.length;N++){var x=v+"{"+E.body+"}"+A[N];y.push(x)}else{var O,$,R=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(E.body),T=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(E.body),I=R||T,L=E.body.indexOf(",")>=0;if(!I&&!L)return E.post.match(/,.*\}/)?w(b=E.pre+"{"+E.body+l+E.post):[b];if(I)O=E.body.split(/\.\./);else if((O=p(E.body)).length===1&&(O=w(O[0],!1).map(c)).length===1)return A.map(function(Un){return E.pre+O[0]+Un});if(I){var S=s(O[0]),ut=s(O[1]),U=Math.max(O[0].length,O[1].length),C=O.length==3?Math.abs(s(O[2])):1,rt=f;ut<S&&(C*=-1,rt=d);var Y=O.some(g);$=[];for(var W=S;rt(W,ut);W+=C){var dt;if(T)(dt=String.fromCharCode(W))==="\\"&&(dt="");else if(dt=String(W),Y){var je=U-dt.length;if(je>0){var De=new Array(je+1).join("0");dt=W<0?"-"+De+dt.slice(1):De+dt}}$.push(dt)}}else{$=[];for(var Et=0;Et<O.length;Et++)$.push.apply($,w(O[Et],!1))}for(Et=0;Et<$.length;Et++)for(N=0;N<A.length;N++)x=v+$[Et]+A[N],(!m||I||x)&&y.push(x)}return y}},829:e=>{function t(s){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t(s)}function n(s){var o=typeof Map=="function"?new Map:void 0;return n=function(p){if(p===null||(c=p,Function.toString.call(c).indexOf("[native code]")===-1))return p;var c;if(typeof p!="function")throw new TypeError("Super expression must either be null or a function");if(o!==void 0){if(o.has(p))return o.get(p);o.set(p,g)}function g(){return r(p,arguments,a(this).constructor)}return g.prototype=Object.create(p.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),i(g,p)},n(s)}function r(s,o,p){return r=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(c,g,f){var d=[null];d.push.apply(d,g);var w=new(Function.bind.apply(c,d));return f&&i(w,f.prototype),w},r.apply(null,arguments)}function i(s,o){return i=Object.setPrototypeOf||function(p,c){return p.__proto__=c,p},i(s,o)}function a(s){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)},a(s)}var l=function(s){function o(p){var c;return function(g,f){if(!(g instanceof f))throw new TypeError("Cannot call a class as a function")}(this,o),(c=function(g,f){return!f||t(f)!=="object"&&typeof f!="function"?function(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}(g):f}(this,a(o).call(this,p))).name="ObjectPrototypeMutationError",c}return function(p,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(c&&c.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),c&&i(p,c)}(o,s),o}(n(Error));function u(s,o){for(var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},c=o.split("."),g=c.length,f=function(b){var m=c[b];if(!s)return{v:void 0};if(m==="+"){if(Array.isArray(s))return{v:s.map(function(E,v){var A=c.slice(b+1);return A.length>0?u(E,A.join("."),p):p(s,v,c,b)})};var y=c.slice(0,b).join(".");throw new Error("Object at wildcard (".concat(y,") is not an array"))}s=p(s,m,c,b)},d=0;d<g;d++){var w=f(d);if(t(w)==="object")return w.v}return s}function h(s,o){return s.length===o+1}e.exports={set:function(s,o,p){if(t(s)!="object"||s===null||o===void 0)return s;if(typeof o=="number")return s[o]=p,s[o];try{return u(s,o,function(c,g,f,d){if(c===Reflect.getPrototypeOf({}))throw new l("Attempting to mutate Object.prototype");if(!c[g]){var w=Number.isInteger(Number(f[d+1])),b=f[d+1]==="+";c[g]=w||b?[]:{}}return h(f,d)&&(c[g]=p),c[g]})}catch(c){if(c instanceof l)throw c;return s}},get:function(s,o){if(t(s)!="object"||s===null||o===void 0)return s;if(typeof o=="number")return s[o];try{return u(s,o,function(p,c){return p[c]})}catch{return s}},has:function(s,o){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(t(s)!="object"||s===null||o===void 0)return!1;if(typeof o=="number")return o in s;try{var c=!1;return u(s,o,function(g,f,d,w){if(!h(d,w))return g&&g[f];c=p.own?g.hasOwnProperty(f):f in g}),c}catch{return!1}},hasOwn:function(s,o,p){return this.has(s,o,p||{own:!0})},isIn:function(s,o,p){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(t(s)!="object"||s===null||o===void 0)return!1;try{var g=!1,f=!1;return u(s,o,function(d,w,b,m){return g=g||d===p||!!d&&d[w]===p,f=h(b,m)&&t(d)==="object"&&w in d,d&&d[w]}),c.validPath?g&&f:g}catch{return!1}},ObjectPrototypeMutationError:l}},47:(e,t,n)=>{var r=n(410),i=function(s){return typeof s=="string"};function a(s,o){for(var p=[],c=0;c<s.length;c++){var g=s[c];g&&g!=="."&&(g===".."?p.length&&p[p.length-1]!==".."?p.pop():o&&p.push(".."):p.push(g))}return p}var l=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,u={};function h(s){return l.exec(s).slice(1)}u.resolve=function(){for(var s="",o=!1,p=arguments.length-1;p>=-1&&!o;p--){var c=p>=0?arguments[p]:Ct.cwd();if(!i(c))throw new TypeError("Arguments to path.resolve must be strings");c&&(s=c+"/"+s,o=c.charAt(0)==="/")}return(o?"/":"")+(s=a(s.split("/"),!o).join("/"))||"."},u.normalize=function(s){var o=u.isAbsolute(s),p=s.substr(-1)==="/";return(s=a(s.split("/"),!o).join("/"))||o||(s="."),s&&p&&(s+="/"),(o?"/":"")+s},u.isAbsolute=function(s){return s.charAt(0)==="/"},u.join=function(){for(var s="",o=0;o<arguments.length;o++){var p=arguments[o];if(!i(p))throw new TypeError("Arguments to path.join must be strings");p&&(s+=s?"/"+p:p)}return u.normalize(s)},u.relative=function(s,o){function p(m){for(var y=0;y<m.length&&m[y]==="";y++);for(var E=m.length-1;E>=0&&m[E]==="";E--);return y>E?[]:m.slice(y,E+1)}s=u.resolve(s).substr(1),o=u.resolve(o).substr(1);for(var c=p(s.split("/")),g=p(o.split("/")),f=Math.min(c.length,g.length),d=f,w=0;w<f;w++)if(c[w]!==g[w]){d=w;break}var b=[];for(w=d;w<c.length;w++)b.push("..");return(b=b.concat(g.slice(d))).join("/")},u._makeLong=function(s){return s},u.dirname=function(s){var o=h(s),p=o[0],c=o[1];return p||c?(c&&(c=c.substr(0,c.length-1)),p+c):"."},u.basename=function(s,o){var p=h(s)[2];return o&&p.substr(-1*o.length)===o&&(p=p.substr(0,p.length-o.length)),p},u.extname=function(s){return h(s)[3]},u.format=function(s){if(!r.isObject(s))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof s);var o=s.root||"";if(!i(o))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof s.root);return(s.dir?s.dir+u.sep:"")+(s.base||"")},u.parse=function(s){if(!i(s))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof s);var o=h(s);if(!o||o.length!==4)throw new TypeError("Invalid path '"+s+"'");return o[1]=o[1]||"",o[2]=o[2]||"",o[3]=o[3]||"",{root:o[0],dir:o[0]+o[1].slice(0,o[1].length-1),base:o[2],ext:o[3],name:o[2].slice(0,o[2].length-o[3].length)}},u.sep="/",u.delimiter=":",e.exports=u},647:(e,t)=>{var n=Object.prototype.hasOwnProperty;function r(a){try{return decodeURIComponent(a.replace(/\+/g," "))}catch{return null}}function i(a){try{return encodeURIComponent(a)}catch{return null}}t.stringify=function(a,l){l=l||"";var u,h,s=[];for(h in typeof l!="string"&&(l="?"),a)if(n.call(a,h)){if((u=a[h])||u!=null&&!isNaN(u)||(u=""),h=i(h),u=i(u),h===null||u===null)continue;s.push(h+"="+u)}return s.length?l+s.join("&"):""},t.parse=function(a){for(var l,u=/([^=?#&]+)=?([^&]*)/g,h={};l=u.exec(a);){var s=r(l[1]),o=r(l[2]);s===null||o===null||s in h||(h[s]=o)}return h}},670:e=>{e.exports=function(t,n){if(n=n.split(":")[0],!(t=+t))return!1;switch(n){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]+$/,n=/^([\-\+])?(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 r={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};e.exports=function(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a=Object.assign({},r,a),!i||typeof i!="string")return i;let l=i.trim();if(a.skipLike!==void 0&&a.skipLike.test(l))return i;if(a.hex&&t.test(l))return Number.parseInt(l,16);{const h=n.exec(l);if(h){const s=h[1],o=h[2];let p=((u=h[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 c=h[4]||h[6];if(!a.leadingZeros&&o.length>0&&s&&l[2]!=="."||!a.leadingZeros&&o.length>0&&!s&&l[1]!==".")return i;{const g=Number(l),f=""+g;return f.search(/[eE]/)!==-1||c?a.eNotation?g:i:l.indexOf(".")!==-1?f==="0"&&p===""||f===p||s&&f==="-"+p?g:i:o?p===f||s+p===f?g:i:l===f||l===s+f?g:i}}return i}var u}},737:(e,t,n)=>{var r=n(670),i=n(647),a=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,l=/[\n\r\t]/g,u=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,h=/:\d+$/,s=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,o=/^[a-zA-Z]:/;function p(m){return(m||"").toString().replace(a,"")}var c=[["#","hash"],["?","query"],function(m,y){return d(y.protocol)?m.replace(/\\/g,"/"):m},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],g={hash:1,query:1};function f(m){var y,E=(typeof window<"u"?window:typeof kt<"u"?kt:typeof self<"u"?self:{}).location||{},v={},A=typeof(m=m||E);if(m.protocol==="blob:")v=new b(unescape(m.pathname),{});else if(A==="string")for(y in v=new b(m,{}),g)delete v[y];else if(A==="object"){for(y in m)y in g||(v[y]=m[y]);v.slashes===void 0&&(v.slashes=u.test(m.href))}return v}function d(m){return m==="file:"||m==="ftp:"||m==="http:"||m==="https:"||m==="ws:"||m==="wss:"}function w(m,y){m=(m=p(m)).replace(l,""),y=y||{};var E,v=s.exec(m),A=v[1]?v[1].toLowerCase():"",N=!!v[2],x=!!v[3],O=0;return N?x?(E=v[2]+v[3]+v[4],O=v[2].length+v[3].length):(E=v[2]+v[4],O=v[2].length):x?(E=v[3]+v[4],O=v[3].length):E=v[4],A==="file:"?O>=2&&(E=E.slice(2)):d(A)?E=v[4]:A?N&&(E=E.slice(2)):O>=2&&d(y.protocol)&&(E=v[4]),{protocol:A,slashes:N||d(A),slashesCount:O,rest:E}}function b(m,y,E){if(m=(m=p(m)).replace(l,""),!(this instanceof b))return new b(m,y,E);var v,A,N,x,O,$,R=c.slice(),T=typeof y,I=this,L=0;for(T!=="object"&&T!=="string"&&(E=y,y=null),E&&typeof E!="function"&&(E=i.parse),v=!(A=w(m||"",y=f(y))).protocol&&!A.slashes,I.slashes=A.slashes||v&&y.slashes,I.protocol=A.protocol||y.protocol||"",m=A.rest,(A.protocol==="file:"&&(A.slashesCount!==2||o.test(m))||!A.slashes&&(A.protocol||A.slashesCount<2||!d(I.protocol)))&&(R[3]=[/(.*)/,"pathname"]);L<R.length;L++)typeof(x=R[L])!="function"?(N=x[0],$=x[1],N!=N?I[$]=m:typeof N=="string"?~(O=N==="@"?m.lastIndexOf(N):m.indexOf(N))&&(typeof x[2]=="number"?(I[$]=m.slice(0,O),m=m.slice(O+x[2])):(I[$]=m.slice(O),m=m.slice(0,O))):(O=N.exec(m))&&(I[$]=O[1],m=m.slice(0,O.index)),I[$]=I[$]||v&&x[3]&&y[$]||"",x[4]&&(I[$]=I[$].toLowerCase())):m=x(m,I);E&&(I.query=E(I.query)),v&&y.slashes&&I.pathname.charAt(0)!=="/"&&(I.pathname!==""||y.pathname!=="")&&(I.pathname=function(S,ut){if(S==="")return ut;for(var U=(ut||"/").split("/").slice(0,-1).concat(S.split("/")),C=U.length,rt=U[C-1],Y=!1,W=0;C--;)U[C]==="."?U.splice(C,1):U[C]===".."?(U.splice(C,1),W++):W&&(C===0&&(Y=!0),U.splice(C,1),W--);return Y&&U.unshift(""),rt!=="."&&rt!==".."||U.push(""),U.join("/")}(I.pathname,y.pathname)),I.pathname.charAt(0)!=="/"&&d(I.protocol)&&(I.pathname="/"+I.pathname),r(I.port,I.protocol)||(I.host=I.hostname,I.port=""),I.username=I.password="",I.auth&&(~(O=I.auth.indexOf(":"))?(I.username=I.auth.slice(0,O),I.username=encodeURIComponent(decodeURIComponent(I.username)),I.password=I.auth.slice(O+1),I.password=encodeURIComponent(decodeURIComponent(I.password))):I.username=encodeURIComponent(decodeURIComponent(I.auth)),I.auth=I.password?I.username+":"+I.password:I.username),I.origin=I.protocol!=="file:"&&d(I.protocol)&&I.host?I.protocol+"//"+I.host:"null",I.href=I.toString()}b.prototype={set:function(m,y,E){var v=this;switch(m){case"query":typeof y=="string"&&y.length&&(y=(E||i.parse)(y)),v[m]=y;break;case"port":v[m]=y,r(y,v.protocol)?y&&(v.host=v.hostname+":"+y):(v.host=v.hostname,v[m]="");break;case"hostname":v[m]=y,v.port&&(y+=":"+v.port),v.host=y;break;case"host":v[m]=y,h.test(y)?(y=y.split(":"),v.port=y.pop(),v.hostname=y.join(":")):(v.hostname=y,v.port="");break;case"protocol":v.protocol=y.toLowerCase(),v.slashes=!E;break;case"pathname":case"hash":if(y){var A=m==="pathname"?"/":"#";v[m]=y.charAt(0)!==A?A+y:y}else v[m]=y;break;case"username":case"password":v[m]=encodeURIComponent(y);break;case"auth":var N=y.indexOf(":");~N?(v.username=y.slice(0,N),v.username=encodeURIComponent(decodeURIComponent(v.username)),v.password=y.slice(N+1),v.password=encodeURIComponent(decodeURIComponent(v.password))):v.username=encodeURIComponent(decodeURIComponent(y))}for(var x=0;x<c.length;x++){var O=c[x];O[4]&&(v[O[1]]=v[O[1]].toLowerCase())}return v.auth=v.password?v.username+":"+v.password:v.username,v.origin=v.protocol!=="file:"&&d(v.protocol)&&v.host?v.protocol+"//"+v.host:"null",v.href=v.toString(),v},toString:function(m){m&&typeof m=="function"||(m=i.stringify);var y,E=this,v=E.host,A=E.protocol;A&&A.charAt(A.length-1)!==":"&&(A+=":");var N=A+(E.protocol&&E.slashes||d(E.protocol)?"//":"");return E.username?(N+=E.username,E.password&&(N+=":"+E.password),N+="@"):E.password?(N+=":"+E.password,N+="@"):E.protocol!=="file:"&&d(E.protocol)&&!v&&E.pathname!=="/"&&(N+="@"),(v[v.length-1]===":"||h.test(E.hostname)&&!E.port)&&(v+=":"),N+=v+E.pathname,(y=typeof E.query=="object"?m(E.query):E.query)&&(N+=y.charAt(0)!=="?"?"?"+y:y),E.hash&&(N+=E.hash),N}},b.extractProtocol=w,b.location=f,b.trimLeft=p,b.qs=i,e.exports=b},410:()=>{},388:()=>{},805:()=>{},345:()=>{},800:()=>{}},Ge={};function _(e){var t=Ge[e];if(t!==void 0)return t.exports;var n=Ge[e]={id:e,loaded:!1,exports:{}};return tr[e].call(n.exports,n,n.exports,_),n.loaded=!0,n.exports}_.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return _.d(t,{a:t}),t},_.d=(e,t)=>{for(var n in t)_.o(t,n)&&!_.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},_.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),_.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var ot={};_.d(ot,{hT:()=>Q,O4:()=>ft,Kd:()=>cr,YK:()=>lr,UU:()=>ms,Gu:()=>mn,ky:()=>Pn,h4:()=>Ft,ch:()=>Qt,hq:()=>It,i5:()=>Tn});var er=_(737),nr=_.n(er);function re(e){if(!de(e))throw new Error("Parameter was not an error")}function de(e){return!!e&&typeof e=="object"&&(t=e,Object.prototype.toString.call(t)==="[object Error]")||e instanceof Error;var t}class et extends Error{constructor(t,n){const r=[...arguments],{options:i,shortMessage:a}=function(u){let h,s="";if(u.length===0)h={};else if(de(u[0]))h={cause:u[0]},s=u.slice(1).join(" ")||"";else if(u[0]&&typeof u[0]=="object")h=Object.assign({},u[0]),s=u.slice(1).join(" ")||"";else{if(typeof u[0]!="string")throw new Error("Invalid arguments passed to Layerr");h={},s=s=u.join(" ")||""}return{options:h,shortMessage:s}}(r);let l=a;if(i.cause&&(l="".concat(l,": ").concat(i.cause.message)),super(l),this.message=l,i.name&&typeof i.name=="string"?this.name=i.name:this.name="Layerr",i.cause&&Object.defineProperty(this,"_cause",{value:i.cause}),Object.defineProperty(this,"_info",{value:{}}),i.info&&typeof i.info=="object"&&Object.assign(this._info,i.info),Error.captureStackTrace){const u=i.constructorOpt||this.constructor;Error.captureStackTrace(this,u)}}static cause(t){return re(t),t._cause&&de(t._cause)?t._cause:null}static fullStack(t){var r;re(t);const n=et.cause(t);return n?"".concat(t.stack,"\ncaused by: ").concat(et.fullStack(n)):(r=t.stack)!=null?r:""}static info(t){re(t);const n={},r=et.cause(t);return r&&Object.assign(n,et.info(r)),t._info&&Object.assign(n,t._info),n}toString(){let t=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t="".concat(t,": ").concat(this.message)),t}}var rr=_(47),Xt=_.n(rr);const Be="__PATH_SEPARATOR_POSIX__",ze="__PATH_SEPARATOR_WINDOWS__";function F(e){try{const t=e.replace(/\//g,Be).replace(/\\\\/g,ze);return encodeURIComponent(t).split(ze).join("\\\\").split(Be).join("/")}catch(t){throw new et(t,"Failed encoding path")}}function Xe(e){return e.startsWith("/")?e:"/"+e}function jt(e){let t=e;return t[0]!=="/"&&(t="/"+t),/^.+\/$/.test(t)&&(t=t.substr(0,t.length-1)),t}function sr(e){let t=new(nr())(e).pathname;return t.length<=0&&(t="/"),jt(t)}function k(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){return function(r){var i=[];if(r.length===0)return"";if(typeof r[0]!="string")throw new TypeError("Url must be a string. Received "+r[0]);if(r[0].match(/^[^/:]+:\/*$/)&&r.length>1){var a=r.shift();r[0]=a+r[0]}r[0].match(/^file:\/\/\//)?r[0]=r[0].replace(/^([^/:]+):\/*/,"$1:///"):r[0]=r[0].replace(/^([^/:]+):\/*/,"$1://");for(var l=0;l<r.length;l++){var u=r[l];if(typeof u!="string")throw new TypeError("Url must be a string. Received "+u);u!==""&&(l>0&&(u=u.replace(/^[\/]+/,"")),u=l<r.length-1?u.replace(/[\/]+$/,""):u.replace(/[\/]+$/,"/"),i.push(u))}var h=i.join("/"),s=(h=h.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return s.shift()+(s.length>0?"?":"")+s.join("&")}(typeof arguments[0]=="object"?arguments[0]:[].slice.call(arguments))}(t.reduce((r,i,a)=>((a===0||i!=="/"||i==="/"&&r[r.length-1]!=="/")&&r.push(i),r),[]))}var ir=_(542),Rt=_.n(ir);const or="abcdef0123456789";function Ve(e,t){const n=e.url.replace("//",""),r=n.indexOf("/")==-1?"/":n.slice(n.indexOf("/")),i=e.method?e.method.toUpperCase():"GET",a=!!/(^|,)\s*auth\s*($|,)/.test(t.qop)&&"auth",l="00000000".concat(t.nc).slice(-8),u=function(c,g,f,d,w,b,m){const y=m||Rt()("".concat(g,":").concat(f,":").concat(d));return c&&c.toLowerCase()==="md5-sess"?Rt()("".concat(y,":").concat(w,":").concat(b)):y}(t.algorithm,t.username,t.realm,t.password,t.nonce,t.cnonce,t.ha1),h=Rt()("".concat(i,":").concat(r)),s=a?Rt()("".concat(u,":").concat(t.nonce,":").concat(l,":").concat(t.cnonce,":").concat(a,":").concat(h)):Rt()("".concat(u,":").concat(t.nonce,":").concat(h)),o={username:t.username,realm:t.realm,nonce:t.nonce,uri:r,qop:a,response:s,nc:l,cnonce:t.cnonce,algorithm:t.algorithm,opaque:t.opaque},p=[];for(const c in o)o[c]&&(c==="qop"||c==="nc"||c==="algorithm"?p.push("".concat(c,"=").concat(o[c])):p.push("".concat(c,'="').concat(o[c],'"')));return"Digest ".concat(p.join(", "))}function fn(e){return(e.headers&&e.headers.get("www-authenticate")||"").split(/\s/)[0].toLowerCase()==="digest"}var ar=_(101),dn=_.n(ar);function We(e){return dn().decode(e)}function qe(e,t){var n;return"Basic ".concat((n="".concat(e,":").concat(t),dn().encode(n)))}const Vt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:typeof window<"u"?window:globalThis,ur=Vt.fetch.bind(Vt),cr=Vt.Request,lr=Vt.Response;let Q=function(e){return e.Auto="auto",e.Digest="digest",e.None="none",e.Password="password",e.Token="token",e}({}),ft=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 gn(e,t,n,r,i){switch(e.authType){case Q.Auto:t&&n&&(e.headers.Authorization=qe(t,n));break;case Q.Digest:e.digest=function(l,u,h){return{username:l,password:u,ha1:h,nc:0,algorithm:"md5",hasDigestAuth:!1}}(t,n,i);break;case Q.None:break;case Q.Password:e.headers.Authorization=qe(t,n);break;case Q.Token:e.headers.Authorization="".concat((a=r).token_type," ").concat(a.access_token);break;default:throw new et({info:{code:ft.InvalidAuthType}},"Invalid auth type: ".concat(e.authType))}var a}_(345),_(800);const He="@@HOTPATCHER",hr=()=>{};function se(e){return{original:e,methods:[e],final:!1}}class pr{constructor(){this._configuration={registry:{},getEmptyAction:"null"},this.__type__=He}get configuration(){return this._configuration}get getEmptyAction(){return this.configuration.getEmptyAction}set getEmptyAction(t){this.configuration.getEmptyAction=t}control(t){let n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!t||t.__type__!==He)throw new Error("Failed taking control of target HotPatcher instance: Invalid type or object");return Object.keys(t.configuration.registry).forEach(r=>{this.configuration.registry.hasOwnProperty(r)?n&&(this.configuration.registry[r]=Object.assign({},t.configuration.registry[r])):this.configuration.registry[r]=Object.assign({},t.configuration.registry[r])}),t._configuration=this.configuration,this}execute(t){const n=this.get(t)||hr;for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return n(...i)}get(t){const n=this.configuration.registry[t];if(!n)switch(this.getEmptyAction){case"null":return null;case"throw":throw new Error("Failed handling method request: No method provided for override: ".concat(t));default:throw new Error("Failed handling request which resulted in an empty method: Invalid empty-action specified: ".concat(this.getEmptyAction))}return function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];if(i.length===0)throw new Error("Failed creating sequence: No functions provided");return function(){for(var l=arguments.length,u=new Array(l),h=0;h<l;h++)u[h]=arguments[h];let s=u;const o=this;for(;i.length>0;)s=[i.shift().apply(o,s)];return s[0]}}(...n.methods)}isPatched(t){return!!this.configuration.registry[t]}patch(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{chain:i=!1}=r;if(this.configuration.registry[t]&&this.configuration.registry[t].final)throw new Error("Failed patching '".concat(t,"': Method marked as being final"));if(typeof n!="function")throw new Error("Failed patching '".concat(t,"': Provided method is not a function"));if(i)this.configuration.registry[t]?this.configuration.registry[t].methods.push(n):this.configuration.registry[t]=se(n);else if(this.isPatched(t)){const{original:a}=this.configuration.registry[t];this.configuration.registry[t]=Object.assign(se(n),{original:a})}else this.configuration.registry[t]=se(n);return this}patchInline(t,n){this.isPatched(t)||this.patch(t,n);for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];return this.execute(t,...i)}plugin(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.forEach(a=>{this.patch(t,a,{chain:!0})}),this}restore(t){if(!this.isPatched(t))throw new Error("Failed restoring method: No method present for key: ".concat(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: ".concat(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 '".concat(t,"' as final: No method found for key"));return this.configuration.registry[t].final=!0,this}}let ie=null;function mn(){return ie||(ie=new pr),ie}function Wt(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 n=t;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(t)===n}(e)?Object.assign({},e):Object.setPrototypeOf(Object.assign({},e),Object.getPrototypeOf(e))}function Ze(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=null,i=[...t];for(;i.length>0;){const a=i.shift();r=r?wn(r,a):Wt(a)}return r}function wn(e,t){const n=Wt(e);return Object.keys(t).forEach(r=>{n.hasOwnProperty(r)?Array.isArray(t[r])?n[r]=Array.isArray(n[r])?[...n[r],...t[r]]:[...t[r]]:typeof t[r]=="object"&&t[r]?n[r]=typeof n[r]=="object"&&n[r]?wn(n[r],t[r]):Wt(t[r]):n[r]=t[r]:n[r]=t[r]}),n}function fr(e){const t={};for(const n of e.keys())t[n]=e.get(n);return t}function ge(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length===0)return{};const r={};return t.reduce((i,a)=>(Object.keys(a).forEach(l=>{const u=l.toLowerCase();r.hasOwnProperty(u)?i[r[u]]=a[l]:(r[u]=l,i[l]=a[l])}),i),{})}_(805);const dr=typeof ArrayBuffer=="function",{toString:gr}=Object.prototype;function yn(e){return dr&&(e instanceof ArrayBuffer||gr.call(e)==="[object ArrayBuffer]")}function vn(e){return e!=null&&e.constructor!=null&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Ae(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(r){return Promise.reject(r)}}}function me(e,t,n){return e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e}const bn=Ae(function(e){const t=e._digest;return delete e._digest,t.hasDigestAuth&&(e=Ze(e,{headers:{Authorization:Ve(e,t)}})),me(qt(e),function(n){let r=!1;return i=function(l){return r?l:n},(a=function(){if(n.status==401)return t.hasDigestAuth=function(l,u){if(!fn(l))return!1;const h=/([a-z0-9_-]+)=(?:"([^"]+)"|([a-z0-9_-]+))/gi;for(;;){const s=l.headers&&l.headers.get("www-authenticate")||"",o=h.exec(s);if(!o)break;u[o[1]]=o[2]||o[3]}return u.nc+=1,u.cnonce=function(){let s="";for(let o=0;o<32;++o)s="".concat(s).concat(or[Math.floor(16*Math.random())]);return s}(),!0}(n,t),function(){if(t.hasDigestAuth)return me(qt(e=Ze(e,{headers:{Authorization:Ve(e,t)}})),function(l){return l.status==401?t.hasDigestAuth=!1:t.nc++,r=!0,l})}();t.nc++}())&&a.then?a.then(i):i(a);var i,a})}),mr=Ae(function(e,t){return me(qt(e),function(n){return n.ok?(t.authType=Q.Password,n):n.status==401&&fn(n)?(t.authType=Q.Digest,gn(t,t.username,t.password,void 0,void 0),e._digest=t.digest,bn(e)):n})}),z=Ae(function(e,t){return t.authType===Q.Auto?mr(e,t):e._digest?bn(e):qt(e)});function X(e,t,n){const r=Wt(e);return r.headers=ge(t.headers,r.headers||{},n.headers||{}),n.data!==void 0&&(r.data=n.data),n.signal&&(r.signal=n.signal),t.httpAgent&&(r.httpAgent=t.httpAgent),t.httpsAgent&&(r.httpsAgent=t.httpsAgent),t.digest&&(r._digest=t.digest),typeof t.withCredentials=="boolean"&&(r.withCredentials=t.withCredentials),r}function qt(e){const t=mn();return t.patchInline("request",n=>t.patchInline("fetch",ur,n.url,function(r){let i={};const a={method:r.method};if(r.headers&&(i=ge(i,r.headers)),r.data!==void 0){const[l,u]=function(h){if(typeof h=="string")return[h,{}];if(vn(h))return[h,{}];if(yn(h))return[h,{}];if(h&&typeof h=="object")return[JSON.stringify(h),{"content-type":"application/json"}];throw new Error("Unable to convert request body: Unexpected body type: "+typeof h)}(r.data);a.body=l,i=ge(i,u)}return r.signal&&(a.signal=r.signal),r.withCredentials&&(a.credentials="include"),a.headers=i,a}(n)),e)}var wr=_(285);const Ht=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")},yr={"[: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]},Lt=e=>e.replace(/[[\]\\-]/g,"\\$&"),Ke=e=>e.join(""),vr=(e,t)=>{const n=t;if(e.charAt(n)!=="[")throw new Error("not in a brace expression");const r=[],i=[];let a=n+1,l=!1,u=!1,h=!1,s=!1,o=n,p="";t:for(;a<e.length;){const d=e.charAt(a);if(d!=="!"&&d!=="^"||a!==n+1){if(d==="]"&&l&&!h){o=a+1;break}if(l=!0,d!=="\\"||h){if(d==="["&&!h){for(const[w,[b,m,y]]of Object.entries(yr))if(e.startsWith(w,a)){if(p)return["$.",!1,e.length-n,!0];a+=w.length,y?i.push(b):r.push(b),u=u||m;continue t}}h=!1,p?(d>p?r.push(Lt(p)+"-"+Lt(d)):d===p&&r.push(Lt(d)),p="",a++):e.startsWith("-]",a+1)?(r.push(Lt(d+"-")),a+=2):e.startsWith("-",a+1)?(p=d,a+=2):(r.push(Lt(d)),a++)}else h=!0,a++}else s=!0,a++}if(o<a)return["",!1,0,!1];if(!r.length&&!i.length)return["$.",!1,e.length-n,!0];if(i.length===0&&r.length===1&&/^\\?.$/.test(r[0])&&!s)return[(c=r[0].length===2?r[0].slice(-1):r[0],c.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")),!1,o-n,!1];var c;const g="["+(s?"^":"")+Ke(r)+"]",f="["+(s?"":"^")+Ke(i)+"]";return[r.length&&i.length?"("+g+"|"+f+")":r.length?g:f,u,o-n,!0]},St=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")},br=new Set(["!","?","+","*","@"]),Ye=e=>br.has(e),oe="(?!\\.)",Er=new Set(["[","."]),Nr=new Set(["..","."]),xr=new Set("().*{}+?[]^$\\!"),Oe="[^/]",Je=Oe+"*?",Qe=Oe+"+?";var B,q,pt,D,G,wt,xt,yt,ct,At,Dt,Ot,En,bt,zt,we,Nn;const J=class J{constructor(t,n){nt(this,Ot);j(this,"type");nt(this,B);nt(this,q);nt(this,pt,!1);nt(this,D,[]);nt(this,G);nt(this,wt);nt(this,xt);nt(this,yt,!1);nt(this,ct);nt(this,At);nt(this,Dt,!1);let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.type=t,t&&M(this,q,!0),M(this,G,n),M(this,B,P(this,G)?P(P(this,G),B):this),M(this,ct,P(this,B)===this?r:P(P(this,B),ct)),M(this,xt,P(this,B)===this?[]:P(P(this,B),xt)),t!=="!"||P(P(this,B),yt)||P(this,xt).push(this),M(this,wt,P(this,G)?P(P(this,G),D).length:0)}get hasMagic(){if(P(this,q)!==void 0)return P(this,q);for(const t of P(this,D))if(typeof t!="string"&&(t.type||t.hasMagic))return M(this,q,!0);return P(this,q)}toString(){return P(this,At)!==void 0?P(this,At):this.type?M(this,At,this.type+"("+P(this,D).map(t=>String(t)).join("|")+")"):M(this,At,P(this,D).map(t=>String(t)).join(""))}push(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(const i of n)if(i!==""){if(typeof i!="string"&&!(i instanceof J&&P(i,G)===this))throw new Error("invalid part: "+i);P(this,D).push(i)}}toJSON(){var n;const t=this.type===null?P(this,D).slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...P(this,D).map(r=>r.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===P(this,B)||P(P(this,B),yt)&&((n=P(this,G))==null?void 0:n.type)==="!")&&t.push({}),t}isStart(){var n;if(P(this,B)===this)return!0;if(!((n=P(this,G))!=null&&n.isStart()))return!1;if(P(this,wt)===0)return!0;const t=P(this,G);for(let r=0;r<P(this,wt);r++){const i=P(t,D)[r];if(!(i instanceof J&&i.type==="!"))return!1}return!0}isEnd(){var n,r,i;if(P(this,B)===this||((n=P(this,G))==null?void 0:n.type)==="!")return!0;if(!((r=P(this,G))!=null&&r.isEnd()))return!1;if(!this.type)return(i=P(this,G))==null?void 0:i.isEnd();const t=P(this,G)?P(P(this,G),D).length:0;return P(this,wt)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const n=new J(this.type,t);for(const r of P(this,D))n.copyIn(r);return n}static fromGlob(t){var i;let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=new J(null,void 0,n);return gt(i=J,bt,zt).call(i,t,r,0,n),r}toMMPattern(){if(this!==P(this,B))return P(this,B).toMMPattern();const t=this.toString(),[n,r,i,a]=this.toRegExpSource();if(!(i||P(this,q)||P(this,ct).nocase&&!P(this,ct).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return r;const l=(P(this,ct).nocase?"i":"")+(a?"u":"");return Object.assign(new RegExp("^".concat(n,"$"),l),{_src:n,_glob:t})}get options(){return P(this,ct)}toRegExpSource(t){var h;const n=t!=null?t:!!P(this,ct).dot;if(P(this,B)===this&&gt(this,Ot,En).call(this),!this.type){const s=this.isStart()&&this.isEnd(),o=P(this,D).map(g=>{var m;const[f,d,w,b]=typeof g=="string"?gt(m=J,bt,Nn).call(m,g,P(this,q),s):g.toRegExpSource(t);return M(this,q,P(this,q)||w),M(this,pt,P(this,pt)||b),f}).join("");let p="";if(this.isStart()&&typeof P(this,D)[0]=="string"&&(P(this,D).length!==1||!Nr.has(P(this,D)[0]))){const g=Er,f=n&&g.has(o.charAt(0))||o.startsWith("\\.")&&g.has(o.charAt(2))||o.startsWith("\\.\\.")&&g.has(o.charAt(4)),d=!n&&!t&&g.has(o.charAt(0));p=f?"(?!(?:^|/)\\.\\.?(?:$|/))":d?oe:""}let c="";return this.isEnd()&&P(P(this,B),yt)&&((h=P(this,G))==null?void 0:h.type)==="!"&&(c="(?:$|\\/)"),[p+o+c,St(o),M(this,q,!!P(this,q)),P(this,pt)]}const r=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:";let a=gt(this,Ot,we).call(this,n);if(this.isStart()&&this.isEnd()&&!a&&this.type!=="!"){const s=this.toString();return M(this,D,[s]),this.type=null,M(this,q,void 0),[s,St(this.toString()),!1,!1]}let l=!r||t||n?"":gt(this,Ot,we).call(this,!0);l===a&&(l=""),l&&(a="(?:".concat(a,")(?:").concat(l,")*?"));let u="";return u=this.type==="!"&&P(this,Dt)?(this.isStart()&&!n?oe:"")+Qe:i+a+(this.type==="!"?"))"+(!this.isStart()||n||t?"":oe)+Je+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&l?")":this.type==="*"&&l?")?":")".concat(this.type)),[u,St(a),M(this,q,!!P(this,q)),P(this,pt)]}};B=new WeakMap,q=new WeakMap,pt=new WeakMap,D=new WeakMap,G=new WeakMap,wt=new WeakMap,xt=new WeakMap,yt=new WeakMap,ct=new WeakMap,At=new WeakMap,Dt=new WeakMap,Ot=new WeakSet,En=function(){if(this!==P(this,B))throw new Error("should only call on root");if(P(this,yt))return this;let t;for(this.toString(),M(this,yt,!0);t=P(this,xt).pop();){if(t.type!=="!")continue;let n=t,r=P(n,G);for(;r;){for(let i=P(n,wt)+1;!r.type&&i<P(r,D).length;i++)for(const a of P(t,D)){if(typeof a=="string")throw new Error("string part in extglob AST??");a.copyIn(P(r,D)[i])}n=r,r=P(n,G)}}return this},bt=new WeakSet,zt=function(t,n,r,i){var g,f;let a=!1,l=!1,u=-1,h=!1;if(n.type===null){let d=r,w="";for(;d<t.length;){const b=t.charAt(d++);if(a||b==="\\")a=!a,w+=b;else if(l)d===u+1?b!=="^"&&b!=="!"||(h=!0):b!=="]"||d===u+2&&h||(l=!1),w+=b;else if(b!=="[")if(i.noext||!Ye(b)||t.charAt(d)!=="(")w+=b;else{n.push(w),w="";const m=new J(b,n);d=gt(g=J,bt,zt).call(g,t,m,d,i),n.push(m)}else l=!0,u=d,h=!1,w+=b}return n.push(w),d}let s=r+1,o=new J(null,n);const p=[];let c="";for(;s<t.length;){const d=t.charAt(s++);if(a||d==="\\")a=!a,c+=d;else if(l)s===u+1?d!=="^"&&d!=="!"||(h=!0):d!=="]"||s===u+2&&h||(l=!1),c+=d;else if(d!=="[")if(Ye(d)&&t.charAt(s)==="("){o.push(c),c="";const w=new J(d,o);o.push(w),s=gt(f=J,bt,zt).call(f,t,w,s,i)}else if(d!=="|"){if(d===")")return c===""&&P(n,D).length===0&&M(n,Dt,!0),o.push(c),c="",n.push(...p,o),s;c+=d}else o.push(c),c="",p.push(o),o=new J(null,n);else l=!0,u=s,h=!1,c+=d}return n.type=null,M(n,q,void 0),M(n,D,[t.substring(r-1)]),s},we=function(t){return P(this,D).map(n=>{if(typeof n=="string")throw new Error("string type in extglob ast??");const[r,i,a,l]=n.toRegExpSource(t);return M(this,pt,P(this,pt)||l),r}).filter(n=>!(this.isStart()&&this.isEnd()&&!n)).join("|")},Nn=function(t,n){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2],i=!1,a="",l=!1;for(let u=0;u<t.length;u++){const h=t.charAt(u);if(i)i=!1,a+=(xr.has(h)?"\\":"")+h;else if(h!=="\\"){if(h==="["){const[s,o,p,c]=vr(t,u);if(p){a+=s,l=l||o,u+=p-1,n=n||c;continue}}h!=="*"?h!=="?"?a+=h.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):(a+=Oe,n=!0):(a+=r&&t==="*"?Qe:Je,n=!0)}else u===t.length-1?a+="\\\\":i=!0}return[a,St(t),!!n,l]},nt(J,bt);let Zt=J;const K=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Ht(t),!(!n.nocomment&&t.charAt(0)==="#")&&new Kt(t,n).match(e)},Ar=/^\*+([^+@!?\*\[\(]*)$/,Or=e=>t=>!t.startsWith(".")&&t.endsWith(e),Ir=e=>t=>t.endsWith(e),Pr=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),Tr=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),$r=/^\*+\.\*+$/,Rr=e=>!e.startsWith(".")&&e.includes("."),Lr=e=>e!=="."&&e!==".."&&e.includes("."),Sr=/^\.\*+$/,Cr=e=>e!=="."&&e!==".."&&e.startsWith("."),_r=/^\*+$/,jr=e=>e.length!==0&&!e.startsWith("."),Dr=e=>e.length!==0&&e!=="."&&e!=="..",Fr=/^\?+([^+@!?\*\[\(]*)?$/,kr=e=>{let[t,n=""]=e;const r=xn([t]);return n?(n=n.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(n)):r},Mr=e=>{let[t,n=""]=e;const r=An([t]);return n?(n=n.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(n)):r},Ur=e=>{let[t,n=""]=e;const r=An([t]);return n?i=>r(i)&&i.endsWith(n):r},Gr=e=>{let[t,n=""]=e;const r=xn([t]);return n?i=>r(i)&&i.endsWith(n):r},xn=e=>{let[t]=e;const n=t.length;return r=>r.length===n&&!r.startsWith(".")},An=e=>{let[t]=e;const n=t.length;return r=>r.length===n&&r!=="."&&r!==".."},On=typeof Ct=="object"&&Ct?typeof ne=="object"&&ne&&ne.__MINIMATCH_TESTING_PLATFORM__||Ct.platform:"posix";K.sep=On==="win32"?"\\":"/";const it=Symbol("globstar **");K.GLOBSTAR=it,K.filter=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return n=>K(n,e,t)};const st=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.assign({},e,t)};K.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return K;const t=K;return Object.assign(function(n,r){return t(n,r,st(e,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}))},{Minimatch:class extends t.Minimatch{constructor(n){super(n,st(e,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}))}static defaults(n){return t.defaults(st(e,n)).Minimatch}},AST:class extends t.AST{constructor(n,r){super(n,r,st(e,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}))}static fromGlob(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.AST.fromGlob(n,st(e,r))}},unescape:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.unescape(n,st(e,r))},escape:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.escape(n,st(e,r))},filter:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.filter(n,st(e,r))},defaults:n=>t.defaults(st(e,n)),makeRe:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.makeRe(n,st(e,r))},braceExpand:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.braceExpand(n,st(e,r))},match:function(n,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t.match(n,r,st(e,i))},sep:t.sep,GLOBSTAR:it})};const In=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ht(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:wr(e)};K.braceExpand=In,K.makeRe=function(e){return new Kt(e,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).makeRe()},K.match=function(e,t){const n=new Kt(t,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{});return e=e.filter(r=>n.match(r)),n.options.nonull&&!e.length&&e.push(t),e};const tn=/[?*]|[+@!]\(.*?\)|\[|\]/;class Kt{constructor(t){j(this,"options");j(this,"set");j(this,"pattern");j(this,"windowsPathsNoEscape");j(this,"nonegate");j(this,"negate");j(this,"comment");j(this,"empty");j(this,"preserveMultipleSlashes");j(this,"partial");j(this,"globSet");j(this,"globParts");j(this,"nocase");j(this,"isWindows");j(this,"platform");j(this,"windowsNoMagicRoot");j(this,"regexp");let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ht(t),n=n||{},this.options=n,this.pattern=t,this.platform=n.platform||On,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!n.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!n.nonegate,this.comment=!1,this.empty=!1,this.partial=!!n.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=n.windowsNoMagicRoot!==void 0?n.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 n of t)if(typeof n!="string")return!0;return!1}debug(){}make(){const t=this.pattern,n=this.options;if(!n.nocomment&&t.charAt(0)==="#")return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],n.debug&&(this.debug=function(){return console.error(...arguments)}),this.debug(this.pattern,this.globSet);const r=this.globSet.map(a=>this.slashSplit(a));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let i=this.globParts.map((a,l,u)=>{if(this.isWindows&&this.windowsNoMagicRoot){const h=!(a[0]!==""||a[1]!==""||a[2]!=="?"&&tn.test(a[2])||tn.test(a[3])),s=/^[a-z]:/i.test(a[0]);if(h)return[...a.slice(0,4),...a.slice(4).map(o=>this.parse(o))];if(s)return[a[0],...a.slice(1).map(o=>this.parse(o))]}return a.map(h=>this.parse(h))});if(this.debug(this.pattern,i),this.set=i.filter(a=>a.indexOf(!1)===-1),this.isWindows)for(let a=0;a<this.set.length;a++){const l=this.set[a];l[0]===""&&l[1]===""&&this.globParts[a][2]==="?"&&typeof l[3]=="string"&&/^[a-z]:$/i.test(l[3])&&(l[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let r=0;r<t.length;r++)for(let i=0;i<t[r].length;i++)t[r][i]==="**"&&(t[r][i]="*");const{optimizationLevel:n=1}=this.options;return n>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=n>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(n=>{let r=-1;for(;(r=n.indexOf("**",r+1))!==-1;){let i=r;for(;n[i+1]==="**";)i++;i!==r&&n.splice(r,i-r)}return n})}levelOneOptimize(t){return t.map(n=>(n=n.reduce((r,i)=>{const a=r[r.length-1];return i==="**"&&a==="**"?r:i===".."&&a&&a!==".."&&a!=="."&&a!=="**"?(r.pop(),r):(r.push(i),r)},[])).length===0?[""]:n)}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let n=!1;do{if(n=!1,!this.preserveMultipleSlashes){for(let i=1;i<t.length-1;i++){const a=t[i];i===1&&a===""&&t[0]===""||a!=="."&&a!==""||(n=!0,t.splice(i,1),i--)}t[0]!=="."||t.length!==2||t[1]!=="."&&t[1]!==""||(n=!0,t.pop())}let r=0;for(;(r=t.indexOf("..",r+1))!==-1;){const i=t[r-1];i&&i!=="."&&i!==".."&&i!=="**"&&(n=!0,t.splice(r-1,2),r-=2)}}while(n);return t.length===0?[""]:t}firstPhasePreProcess(t){let n=!1;do{n=!1;for(let r of t){let i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let l=i;for(;r[l+1]==="**";)l++;l>i&&r.splice(i+1,l-i);let u=r[i+1];const h=r[i+2],s=r[i+3];if(u!==".."||!h||h==="."||h===".."||!s||s==="."||s==="..")continue;n=!0,r.splice(i,1);const o=r.slice(0);o[i]="**",t.push(o),i--}if(!this.preserveMultipleSlashes){for(let l=1;l<r.length-1;l++){const u=r[l];l===1&&u===""&&r[0]===""||u!=="."&&u!==""||(n=!0,r.splice(l,1),l--)}r[0]!=="."||r.length!==2||r[1]!=="."&&r[1]!==""||(n=!0,r.pop())}let a=0;for(;(a=r.indexOf("..",a+1))!==-1;){const l=r[a-1];if(l&&l!=="."&&l!==".."&&l!=="**"){n=!0;const u=a===1&&r[a+1]==="**"?["."]:[];r.splice(a-1,2,...u),r.length===0&&r.push(""),a-=2}}}}while(n);return t}secondPhasePreProcess(t){for(let n=0;n<t.length-1;n++)for(let r=n+1;r<t.length;r++){const i=this.partsMatch(t[n],t[r],!this.preserveMultipleSlashes);if(i){t[n]=[],t[r]=i;break}}return t.filter(n=>n.length)}partsMatch(t,n){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2],i=0,a=0,l=[],u="";for(;i<t.length&&a<n.length;)if(t[i]===n[a])l.push(u==="b"?n[a]:t[i]),i++,a++;else if(r&&t[i]==="**"&&n[a]===t[i+1])l.push(t[i]),i++;else if(r&&n[a]==="**"&&t[i]===n[a+1])l.push(n[a]),a++;else if(t[i]!=="*"||!n[a]||!this.options.dot&&n[a].startsWith(".")||n[a]==="**"){if(n[a]!=="*"||!t[i]||!this.options.dot&&t[i].startsWith(".")||t[i]==="**"||u==="a")return!1;u="b",l.push(n[a]),i++,a++}else{if(u==="b")return!1;u="a",l.push(t[i]),i++,a++}return t.length===n.length&&l}parseNegate(){if(this.nonegate)return;const t=this.pattern;let n=!1,r=0;for(let i=0;i<t.length&&t.charAt(i)==="!";i++)n=!n,r++;r&&(this.pattern=t.slice(r)),this.negate=n}matchOne(t,n){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const i=this.options;if(this.isWindows){const d=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),w=!d&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),b=typeof n[0]=="string"&&/^[a-z]:$/i.test(n[0]),m=w?3:d?0:void 0,y=!b&&n[0]===""&&n[1]===""&&n[2]==="?"&&typeof n[3]=="string"&&/^[a-z]:$/i.test(n[3])?3:b?0:void 0;if(typeof m=="number"&&typeof y=="number"){const[E,v]=[t[m],n[y]];E.toLowerCase()===v.toLowerCase()&&(n[y]=E,y>m?n=n.slice(y):m>y&&(t=t.slice(m)))}}const{optimizationLevel:a=1}=this.options;a>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:n}),this.debug("matchOne",t.length,n.length);for(var l=0,u=0,h=t.length,s=n.length;l<h&&u<s;l++,u++){this.debug("matchOne loop");var o=n[u],p=t[l];if(this.debug(n,o,p),o===!1)return!1;if(o===it){this.debug("GLOBSTAR",[n,o,p]);var c=l,g=u+1;if(g===s){for(this.debug("** at the end");l<h;l++)if(t[l]==="."||t[l]===".."||!i.dot&&t[l].charAt(0)===".")return!1;return!0}for(;c<h;){var f=t[c];if(this.debug("\nglobstar while",t,c,n,g,f),this.matchOne(t.slice(c),n.slice(g),r))return this.debug("globstar found match!",c,h,f),!0;if(f==="."||f===".."||!i.dot&&f.charAt(0)==="."){this.debug("dot detected!",t,c,n,g);break}this.debug("globstar swallow a segment, and continue"),c++}return!(!r||(this.debug("\n>>> no match, partial?",t,c,n,g),c!==h))}let d;if(typeof o=="string"?(d=p===o,this.debug("string match",o,p,d)):(d=o.test(p),this.debug("pattern match",o,p,d)),!d)return!1}if(l===h&&u===s)return!0;if(l===h)return r;if(u===s)return l===h-1&&t[l]==="";throw new Error("wtf?")}braceExpand(){return In(this.pattern,this.options)}parse(t){Ht(t);const n=this.options;if(t==="**")return it;if(t==="")return"";let r,i=null;(r=t.match(_r))?i=n.dot?Dr:jr:(r=t.match(Ar))?i=(n.nocase?n.dot?Tr:Pr:n.dot?Ir:Or)(r[1]):(r=t.match(Fr))?i=(n.nocase?n.dot?Mr:kr:n.dot?Ur:Gr)(r):(r=t.match($r))?i=n.dot?Lr:Rr:(r=t.match(Sr))&&(i=Cr);const a=Zt.fromGlob(t,this.options).toMMPattern();return i&&typeof a=="object"&&Reflect.defineProperty(a,"test",{value:i}),a}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const n=this.options,r=n.noglobstar?"[^/]*?":n.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",i=new Set(n.nocase?["i"]:[]);let a=t.map(h=>{const s=h.map(o=>{if(o instanceof RegExp)for(const p of o.flags.split(""))i.add(p);return typeof o=="string"?o.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):o===it?it:o._src});return s.forEach((o,p)=>{const c=s[p+1],g=s[p-1];o===it&&g!==it&&(g===void 0?c!==void 0&&c!==it?s[p+1]="(?:\\/|"+r+"\\/)?"+c:s[p]=r:c===void 0?s[p-1]=g+"(?:\\/|"+r+")?":c!==it&&(s[p-1]=g+"(?:\\/|\\/"+r+"\\/)"+c,s[p+1]=it))}),s.filter(o=>o!==it).join("/")}).join("|");const[l,u]=t.length>1?["(?:",")"]:["",""];a="^"+l+a+u+"$",this.negate&&(a="^(?!"+a+").+$");try{this.regexp=new RegExp(a,[...i].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 n=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==="/"&&n)return!0;const r=this.options;this.isWindows&&(t=t.split("\\").join("/"));const i=this.slashSplit(t);this.debug(this.pattern,"split",i);const a=this.set;this.debug(this.pattern,"set",a);let l=i[i.length-1];if(!l)for(let u=i.length-2;!l&&u>=0;u--)l=i[u];for(let u=0;u<a.length;u++){const h=a[u];let s=i;if(r.matchBase&&h.length===1&&(s=[l]),this.matchOne(s,h,n))return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate}static defaults(t){return K.defaults(t).Minimatch}}function Ie(e){const t=new Error("".concat(arguments.length>1&&arguments[1]!==void 0?arguments[1]:"","Invalid response: ").concat(e.status," ").concat(e.statusText));return t.status=e.status,t.response=e,t}function V(e,t){const{status:n}=t;if(n===401&&e.digest)return t;if(n>=400)throw Ie(t);return t}function It(e,t){return arguments.length>2&&arguments[2]!==void 0&&arguments[2]?{data:t,headers:e.headers?fr(e.headers):{},status:e.status,statusText:e.statusText}:t}K.AST=Zt,K.Minimatch=Kt,K.escape=function(e){let{windowsPathsNoEscape:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&")},K.unescape=St;const Br=(en=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=X({url:k(e.remoteURL,F(t)),method:"COPY",headers:{Destination:k(e.remoteURL,F(n)),Overwrite:r.overwrite===!1?"F":"T",Depth:r.shallow?"0":"infinity"}},e,r);return l=function(u){V(e,u)},(a=z(i,e))&&a.then||(a=Promise.resolve(a)),l?a.then(l):a;var a,l},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(en.apply(this,e))}catch(n){return Promise.reject(n)}});var en,Pe=_(635),zr=_(829),ht=_.n(zr),Pt=function(e){return e.Array="array",e.Object="object",e.Original="original",e}(Pt||{});function Gt(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Pt.Original;const r=ht().get(e,t);return n==="array"&&Array.isArray(r)===!1?[r]:n==="object"&&Array.isArray(r)?r[0]:r}function Ft(e){return new Promise(t=>{t(function(n){const{multistatus:r}=n;if(r==="")return{multistatus:{response:[]}};if(!r)throw new Error("Invalid response: No root multistatus found");const i={multistatus:Array.isArray(r)?r[0]:r};return ht().set(i,"multistatus.response",Gt(i,"multistatus.response",Pt.Array)),ht().set(i,"multistatus.response",ht().get(i,"multistatus.response").map(a=>function(l){const u=Object.assign({},l);return u.status?ht().set(u,"status",Gt(u,"status",Pt.Object)):(ht().set(u,"propstat",Gt(u,"propstat",Pt.Object)),ht().set(u,"propstat.prop",Gt(u,"propstat.prop",Pt.Object))),u}(a))),i}(new Pe.XMLParser({removeNSPrefix:!0,numberParseOptions:{hex:!0,leadingZeros:!1}}).parse(e)))})}function Qt(e,t){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const{getlastmodified:r=null,getcontentlength:i="0",resourcetype:a=null,getcontenttype:l=null,getetag:u=null}=e,h=a&&typeof a=="object"&&a.collection!==void 0?"directory":"file",s={filename:t,basename:Xt().basename(t),lastmod:r,size:parseInt(i,10),type:h,etag:typeof u=="string"?u.replace(/"/g,""):null};return h==="file"&&(s.mime=l&&typeof l=="string"?l.split(";")[0]:""),n&&(e.displayname!==void 0&&(e.displayname=String(e.displayname)),s.props=e),s}function Pn(e,t){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=null;try{e.multistatus.response[0].propstat&&(r=e.multistatus.response[0])}catch{}if(!r)throw new Error("Failed getting item stat: bad response");const{propstat:{prop:i,status:a}}=r,[l,u,h]=a.split(" ",3),s=parseInt(u,10);if(s>=400){const o=new Error("Invalid response: ".concat(s," ").concat(h));throw o.status=s,o}return Qt(i,jt(t),n)}function Tn(e){switch(String(e)){case"-3":return"unlimited";case"-2":case"-1":return"unknown";default:return parseInt(String(e),10)}}function ae(e,t,n){return e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e}const Te=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(r){return Promise.reject(r)}}}(function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{details:r=!1}=n,i=X({url:k(e.remoteURL,F(t)),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},e,n);return ae(z(i,e),function(a){return V(e,a),ae(a.text(),function(l){return ae(Ft(l),function(u){const h=Pn(u,t,r);return It(a,h,r)})})})});function $n(e,t,n){return e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e}const Xr=Rn(function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=function(a){if(!a||a==="/")return[];let l=a;const u=[];do u.push(l),l=Xt().dirname(l);while(l&&l!=="/");return u}(jt(t));r.sort((a,l)=>a.length>l.length?1:l.length>a.length?-1:0);let i=!1;return function(a,l,u){if(typeof a[rn]=="function"){let d=function(w){try{for(;!(h=p.next()).done;)if((w=l(h.value))&&w.then){if(!sn(w))return void w.then(d,o||(o=tt.bind(null,s=new Tt,2)));w=w.v}s?tt(s,1,w):s=w}catch(b){tt(s||(s=new Tt),2,b)}};var h,s,o,p=a[rn]();if(d(),p.return){var c=function(w){try{h.done||p.return()}catch{}return w};if(s&&s.then)return s.then(c,function(w){throw c(w)});c()}return s}if(!("length"in a))throw new TypeError("Object is not iterable");for(var g=[],f=0;f<a.length;f++)g.push(a[f]);return function(d,w,b){var m,y,E=-1;return function v(A){try{for(;++E<d.length&&(!b||!b());)if((A=w(E))&&A.then){if(!sn(A))return void A.then(v,y||(y=tt.bind(null,m=new Tt,2)));A=A.v}m?tt(m,1,A):m=A}catch(N){tt(m||(m=new Tt),2,N)}}(),m}(g,function(d){return l(g[d])},u)}(r,function(a){return l=function(){return function(h,s){try{var o=$n(Te(e,a),function(p){if(p.type!=="directory")throw new Error("Path includes a file: ".concat(t))})}catch(p){return s(p)}return o&&o.then?o.then(void 0,s):o}(0,function(h){const s=h;return function(){if(s.status===404)return i=!0,nn(ye(e,a,{...n,recursive:!1}));throw h}()})},(u=function(){if(i)return nn(ye(e,a,{...n,recursive:!1}))}())&&u.then?u.then(l):l();var l,u},function(){return!1})});function Rn(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(r){return Promise.reject(r)}}}function Vr(){}function nn(e,t){return e&&e.then?e.then(Vr):Promise.resolve()}const rn=typeof Symbol<"u"?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function tt(e,t,n){if(!e.s){if(n instanceof Tt){if(!n.s)return void(n.o=tt.bind(null,e,t));1&t&&(t=n.s),n=n.v}if(n&&n.then)return void n.then(tt.bind(null,e,t),tt.bind(null,e,2));e.s=t,e.v=n;const r=e.o;r&&r(e)}}const Tt=function(){function e(){}return e.prototype.then=function(t,n){const r=new e,i=this.s;if(i){const a=1&i?t:n;if(a){try{tt(r,1,a(this.v))}catch(l){tt(r,2,l)}return r}return this}return this.o=function(a){try{const l=a.v;1&a.s?tt(r,1,t?t(l):l):n?tt(r,1,n(l)):tt(r,2,l)}catch(l){tt(r,2,l)}},r},e}();function sn(e){return e instanceof Tt&&1&e.s}const ye=Rn(function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n.recursive===!0)return Xr(e,t,n);const r=X({url:k(e.remoteURL,(i=F(t),i.endsWith("/")?i:i+"/")),method:"MKCOL"},e,n);var i;return $n(z(r,e),function(a){V(e,a)})});var Wr=_(388),on=_.n(Wr);const qr=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(r){return Promise.reject(r)}}}(function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r={};if(typeof n.range=="object"&&typeof n.range.start=="number"){let u="bytes=".concat(n.range.start,"-");typeof n.range.end=="number"&&(u="".concat(u).concat(n.range.end)),r.Range=u}const i=X({url:k(e.remoteURL,F(t)),method:"GET",headers:r},e,n);return l=function(u){if(V(e,u),r.Range&&u.status!==206){const h=new Error("Invalid response code for partial request: ".concat(u.status));throw h.status=u.status,h}return n.callback&&setTimeout(()=>{n.callback(u)},0),u.body},(a=z(i,e))&&a.then||(a=Promise.resolve(a)),l?a.then(l):a;var a,l}),Hr=()=>{},Zr=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(r){return Promise.reject(r)}}}(function(e,t,n){n.url||(n.url=k(e.remoteURL,F(t)));const r=X(n,e,{});return a=function(l){return V(e,l),l},(i=z(r,e))&&i.then||(i=Promise.resolve(i)),a?i.then(a):i;var i,a}),Kr=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(r){return Promise.reject(r)}}}(function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=X({url:k(e.remoteURL,F(t)),method:"DELETE"},e,n);return a=function(l){V(e,l)},(i=z(r,e))&&i.then||(i=Promise.resolve(i)),a?i.then(a):i;var i,a}),Yr=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(r){return Promise.reject(r)}}}(function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return function(r,i){try{var a=(l=Te(e,t,n),u=function(){return!0},h?u?u(l):l:(l&&l.then||(l=Promise.resolve(l)),u?l.then(u):l))}catch(s){return i(s)}var l,u,h;return a&&a.then?a.then(void 0,i):a}(0,function(r){if(r.status===404)return!1;throw r})});function ue(e,t,n){return e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e}const Jr=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(r){return Promise.reject(r)}}}(function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=X({url:k(e.remoteURL,F(t),"/"),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:n.deep?"infinity":"1"}},e,n);return ue(z(r,e),function(i){return V(e,i),ue(i.text(),function(a){if(!a)throw new Error("Failed parsing directory contents: Empty response");return ue(Ft(a),function(l){const u=Xe(t);let h=function(s,o,p){let c=arguments.length>3&&arguments[3]!==void 0&&arguments[3],g=arguments.length>4&&arguments[4]!==void 0&&arguments[4];const f=Xt().join(o,"/"),{multistatus:{response:d}}=s,w=d.map(b=>{const m=function(E){try{return E.replace(/^https?:\/\/[^\/]+/,"")}catch(v){throw new et(v,"Failed normalising HREF")}}(b.href),{propstat:{prop:y}}=b;return Qt(y,f==="/"?decodeURIComponent(jt(m)):jt(Xt().relative(decodeURIComponent(f),decodeURIComponent(m))),c)});return g?w:w.filter(b=>b.basename&&(b.type==="file"||b.filename!==p.replace(/\/$/,"")))}(l,Xe(e.remoteBasePath||e.remotePath),u,n.details,n.includeSelf);return n.glob&&(h=function(s,o){return s.filter(p=>K(p.filename,o,{matchBase:!0}))}(h,n.glob)),It(i,h,n.details)})})})});function $e(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(r){return Promise.reject(r)}}}const Qr=$e(function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=X({url:k(e.remoteURL,F(t)),method:"GET",headers:{Accept:"text/plain"},transformResponse:[ns]},e,n);return Yt(z(r,e),function(i){return V(e,i),Yt(i.text(),function(a){return It(i,a,n.details)})})});function Yt(e,t,n){return e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e}const ts=$e(function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=X({url:k(e.remoteURL,F(t)),method:"GET"},e,n);return Yt(z(r,e),function(i){let a;return V(e,i),function(l,u){var h=l();return h&&h.then?h.then(u):u()}(function(){return Yt(i.arrayBuffer(),function(l){a=l})},function(){return It(i,a,n.details)})})}),es=$e(function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{format:r="binary"}=n;if(r!=="binary"&&r!=="text")throw new et({info:{code:ft.InvalidOutputFormat}},"Invalid output format: ".concat(r));return r==="text"?Qr(e,t,n):ts(e,t,n)}),ns=e=>e;function rs(e){return new Pe.XMLBuilder({attributeNamePrefix:"@_",format:!0,ignoreAttributes:!1,suppressEmptyNode:!0}).build(Ln({lockinfo:{"@_xmlns:d":"DAV:",lockscope:{exclusive:{}},locktype:{write:{}},owner:{href:e}}},"d"))}function Ln(e,t){const n={...e};for(const r in n)n.hasOwnProperty(r)&&(n[r]&&typeof n[r]=="object"&&r.indexOf(":")===-1?(n["".concat(t,":").concat(r)]=Ln(n[r],t),delete n[r]):/^@_/.test(r)===!1&&(n["".concat(t,":").concat(r)]=n[r],delete n[r]));return n}function ve(e,t,n){return e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e}function Sn(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(r){return Promise.reject(r)}}}const ss=Sn(function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=X({url:k(e.remoteURL,F(t)),method:"UNLOCK",headers:{"Lock-Token":n}},e,r);return ve(z(i,e),function(a){if(V(e,a),a.status!==204&&a.status!==200)throw Ie(a)})}),is=Sn(function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{refreshToken:r,timeout:i=os}=n,a={Accept:"text/plain,application/xml",Timeout:i};r&&(a.If=r);const l=X({url:k(e.remoteURL,F(t)),method:"LOCK",headers:a,data:rs(e.contactHref)},e,n);return ve(z(l,e),function(u){return V(e,u),ve(u.text(),function(h){const s=(c=h,new Pe.XMLParser({removeNSPrefix:!0,parseAttributeValue:!0,parseTagValue:!0}).parse(c)),o=ht().get(s,"prop.lockdiscovery.activelock.locktoken.href"),p=ht().get(s,"prop.lockdiscovery.activelock.timeout");var c;if(!o)throw Ie(u,"No lock token received: ");return{token:o,serverTimeout:p}})})}),os="Infinite, Second-4100000000";function ce(e,t,n){return e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e}const as=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(r){return Promise.reject(r)}}}(function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=t.path||"/",r=X({url:k(e.remoteURL,n),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},e,t);return ce(z(r,e),function(i){return V(e,i),ce(i.text(),function(a){return ce(Ft(a),function(l){const u=function(h){try{const[s]=h.multistatus.response,{propstat:{prop:{"quota-used-bytes":o,"quota-available-bytes":p}}}=s;return o!==void 0&&p!==void 0?{used:parseInt(String(o),10),available:Tn(p)}:null}catch{}return null}(l);return It(i,u,t.details)})})})});function le(e,t,n){return e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e}const us=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(r){return Promise.reject(r)}}}(function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{details:r=!1}=n,i=X({url:k(e.remoteURL,F(t)),method:"SEARCH",headers:{Accept:"text/plain,application/xml","Content-Type":e.headers["Content-Type"]||"application/xml; charset=utf-8"}},e,n);return le(z(i,e),function(a){return V(e,a),le(a.text(),function(l){return le(Ft(l),function(u){const h=function(s,o,p){const c={truncated:!1,results:[]};return c.truncated=s.multistatus.response.some(g=>{var f,d;return((d=(g.status||((f=g.propstat)==null?void 0:f.status)).split(" ",3))==null?void 0:d[1])==="507"&&g.href.replace(/\/$/,"").endsWith(F(o).replace(/\/$/,""))}),s.multistatus.response.forEach(g=>{if(g.propstat===void 0)return;const f=g.href.split("/").map(decodeURIComponent).join("/");c.results.push(Qt(g.propstat.prop,f,p))}),c}(u,t,r);return It(a,h,r)})})})}),cs=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(r){return Promise.reject(r)}}}(function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=X({url:k(e.remoteURL,F(t)),method:"MOVE",headers:{Destination:k(e.remoteURL,F(n)),Overwrite:r.overwrite===!1?"F":"T"}},e,r);return l=function(u){V(e,u)},(a=z(i,e))&&a.then||(a=Promise.resolve(a)),l?a.then(l):a;var a,l});var ls=_(172);const hs=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(r){return Promise.reject(r)}}}(function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const{contentLength:i=!0,overwrite:a=!0}=r,l={"Content-Type":"application/octet-stream"};i===!1||(l["Content-Length"]=typeof i=="number"?"".concat(i):"".concat(function(o){if(yn(o))return o.byteLength;if(vn(o))return o.length;if(typeof o=="string")return(0,ls.d)(o);throw new et({info:{code:ft.DataTypeNoLength}},"Cannot calculate data length: Invalid type")}(n))),a||(l["If-None-Match"]="*");const u=X({url:k(e.remoteURL,F(t)),method:"PUT",headers:l,data:n},e,r);return s=function(o){try{V(e,o)}catch(p){const c=p;if(c.status!==412||a)throw c;return!1}return!0},(h=z(u,e))&&h.then||(h=Promise.resolve(h)),s?h.then(s):h;var h,s}),Cn=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(r){return Promise.reject(r)}}}(function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=X({url:k(e.remoteURL,F(t)),method:"OPTIONS"},e,n);return a=function(l){var u,h;try{V(e,l)}catch(s){throw s}return{compliance:((u=l.headers.get("DAV"))!=null?u:"").split(",").map(s=>s.trim()),server:(h=l.headers.get("Server"))!=null?h:""}},(i=z(r,e))&&i.then||(i=Promise.resolve(i)),a?i.then(a):i;var i,a});function _t(e,t,n){return e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e}const ps=Re(function(e,t,n,r,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(n>r||n<0)throw new et({info:{code:ft.InvalidUpdateRange}},"Invalid update range ".concat(n," for partial update"));const l={"Content-Type":"application/octet-stream","Content-Length":""+(r-n+1),"Content-Range":"bytes ".concat(n,"-").concat(r,"/*")},u=X({url:k(e.remoteURL,F(t)),method:"PUT",headers:l,data:i},e,a);return _t(z(u,e),function(h){V(e,h)})});function an(e,t){var n=e();return n&&n.then?n.then(t):t(n)}const fs=Re(function(e,t,n,r,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(n>r||n<0)throw new et({info:{code:ft.InvalidUpdateRange}},"Invalid update range ".concat(n," for partial update"));const l={"Content-Type":"application/x-sabredav-partialupdate","Content-Length":""+(r-n+1),"X-Update-Range":"bytes=".concat(n,"-").concat(r)},u=X({url:k(e.remoteURL,F(t)),method:"PATCH",headers:l,data:i},e,a);return _t(z(u,e),function(h){V(e,h)})});function Re(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return Promise.resolve(e.apply(this,t))}catch(r){return Promise.reject(r)}}}const ds=Re(function(e,t,n,r,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};return _t(Cn(e,t,a),function(l){let u=!1;return an(function(){if(l.compliance.includes("sabredav-partialupdate"))return _t(fs(e,t,n,r,i,a),function(h){return u=!0,h})},function(h){let s=!1;return u?h:an(function(){if(l.server.includes("Apache")&&l.compliance.includes("<http://apache.org/dav/propset/fs/1>"))return _t(ps(e,t,n,r,i,a),function(o){return s=!0,o})},function(o){if(s)return o;throw new et({info:{code:ft.NotSupported}},"Not supported")})})})}),gs="https://github.com/perry-mitchell/webdav-client/blob/master/LOCK_CONTACT.md";function ms(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{authType:n=null,remoteBasePath:r,contactHref:i=gs,ha1:a,headers:l={},httpAgent:u,httpsAgent:h,password:s,token:o,username:p,withCredentials:c}=t;let g=n;g||(g=p||s?Q.Password:Q.None);const f={authType:g,remoteBasePath:r,contactHref:i,ha1:a,headers:Object.assign({},l),httpAgent:u,httpsAgent:h,password:s,remotePath:sr(e),remoteURL:e,token:o,username:p,withCredentials:c};return gn(f,p,s,o,a),{copyFile:(d,w,b)=>Br(f,d,w,b),createDirectory:(d,w)=>ye(f,d,w),createReadStream:(d,w)=>function(b,m){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const E=new(on()).PassThrough;return qr(b,m,y).then(v=>{v.pipe(E)}).catch(v=>{E.emit("error",v)}),E}(f,d,w),createWriteStream:(d,w,b)=>function(m,y){let E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Hr;const A=new(on()).PassThrough,N={};E.overwrite===!1&&(N["If-None-Match"]="*");const x=X({url:k(m.remoteURL,F(y)),method:"PUT",headers:N,data:A,maxRedirects:0},m,E);return z(x,m).then(O=>V(m,O)).then(O=>{setTimeout(()=>{v(O)},0)}).catch(O=>{A.emit("error",O)}),A}(f,d,w,b),customRequest:(d,w)=>Zr(f,d,w),deleteFile:(d,w)=>Kr(f,d,w),exists:(d,w)=>Yr(f,d,w),getDirectoryContents:(d,w)=>Jr(f,d,w),getFileContents:(d,w)=>es(f,d,w),getFileDownloadLink:d=>function(w,b){let m=k(w.remoteURL,F(b));const y=/^https:/i.test(m)?"https":"http";switch(w.authType){case Q.None:break;case Q.Password:{const E=We(w.headers.Authorization.replace(/^Basic /i,"").trim());m=m.replace(/^https?:\/\//,"".concat(y,"://").concat(E,"@"));break}default:throw new et({info:{code:ft.LinkUnsupportedAuthType}},"Unsupported auth type for file link: ".concat(w.authType))}return m}(f,d),getFileUploadLink:d=>function(w,b){let m="".concat(k(w.remoteURL,F(b)),"?Content-Type=application/octet-stream");const y=/^https:/i.test(m)?"https":"http";switch(w.authType){case Q.None:break;case Q.Password:{const E=We(w.headers.Authorization.replace(/^Basic /i,"").trim());m=m.replace(/^https?:\/\//,"".concat(y,"://").concat(E,"@"));break}default:throw new et({info:{code:ft.LinkUnsupportedAuthType}},"Unsupported auth type for file link: ".concat(w.authType))}return m}(f,d),getHeaders:()=>Object.assign({},f.headers),getQuota:d=>as(f,d),lock:(d,w)=>is(f,d,w),moveFile:(d,w,b)=>cs(f,d,w,b),putFileContents:(d,w,b)=>hs(f,d,w,b),partialUpdateFileContents:(d,w,b,m,y)=>ds(f,d,w,b,m,y),getDAVCompliance:d=>Cn(f,d),search:(d,w)=>us(f,d,w),setHeaders:d=>{f.headers=Object.assign({},d)},stat:(d,w)=>Te(f,d,w),unlock:(d,w,b)=>ss(f,d,w,b)}}ot.hT,ot.O4,ot.Kd,ot.YK;var ws=ot.UU,ys=ot.Gu;ot.ky,ot.h4,ot.ch,ot.hq,ot.i5;var he={};const vt=Vn().setApp("@nextcloud/files").detectUser().build();var vs=(e=>(e[e.UploadFromDevice=0]="UploadFromDevice",e[e.CreateNew=1]="CreateNew",e[e.Other=2]="Other",e))(vs||{});class bs{constructor(){j(this,"_entries",[])}registerEntry(t){var n;this.validateEntry(t),t.category=(n=t.category)!=null?n:1,this._entries.push(t)}unregisterEntry(t){const n=typeof t=="string"?this.getEntryIndex(t):this.getEntryIndex(t.id);if(n===-1){vt.warn("Entry not found, nothing removed",{entry:t,entries:this.getEntries()});return}this._entries.splice(n,1)}getEntries(t){return t?this._entries.filter(n=>typeof n.enabled=="function"?n.enabled(t):!0):this._entries}getEntryIndex(t){return this._entries.findIndex(n=>n.id===t)}validateEntry(t){if(!t.id||!t.displayName||!(t.iconSvgInline||t.iconClass)||!t.handler)throw new Error("Invalid entry");if(typeof t.id!="string"||typeof t.displayName!="string")throw new Error("Invalid id or displayName property");if(t.iconClass&&typeof t.iconClass!="string"||t.iconSvgInline&&typeof t.iconSvgInline!="string")throw new Error("Invalid icon provided");if(t.enabled!==void 0&&typeof t.enabled!="function")throw new Error("Invalid enabled property");if(typeof t.handler!="function")throw new Error("Invalid handler property");if("order"in t&&typeof t.order!="number")throw new Error("Invalid order property");if(this.getEntryIndex(t.id)!==-1)throw new Error("Duplicate entry")}}const Es=function(){return typeof window._nc_newfilemenu>"u"&&(window._nc_newfilemenu=new bs,vt.debug("NewFileMenu initialized")),window._nc_newfilemenu};class Ws{constructor(t){j(this,"_header");this.validateHeader(t),this._header=t}get id(){return this._header.id}get order(){return this._header.order}get enabled(){return this._header.enabled}get render(){return this._header.render}get updated(){return this._header.updated}validateHeader(t){if(!t.id||!t.render||!t.updated)throw new Error("Invalid header: id, render and updated are required");if(typeof t.id!="string")throw new Error("Invalid id property");if(t.enabled!==void 0&&typeof t.enabled!="function")throw new Error("Invalid enabled property");if(t.render&&typeof t.render!="function")throw new Error("Invalid render property");if(t.updated&&typeof t.updated!="function")throw new Error("Invalid updated property")}}const qs=function(e){if(typeof window._nc_filelistheader>"u"&&(window._nc_filelistheader=[],vt.debug("FileListHeaders initialized")),window._nc_filelistheader.find(t=>t.id===e.id)){vt.error("Header ".concat(e.id," already registered"),{header:e});return}window._nc_filelistheader.push(e)};var at=(e=>(e[e.NONE=0]="NONE",e[e.CREATE=4]="CREATE",e[e.READ=1]="READ",e[e.UPDATE=2]="UPDATE",e[e.DELETE=8]="DELETE",e[e.SHARE=16]="SHARE",e[e.ALL=31]="ALL",e))(at||{});const _n=["d:getcontentlength","d:getcontenttype","d:getetag","d:getlastmodified","d:creationdate","d:displayname","d:quota-available-bytes","d:resourcetype","nc:has-preview","nc:is-encrypted","nc:mount-type","oc:comments-unread","oc:favorite","oc:fileid","oc:owner-display-name","oc:owner-id","oc:permissions","oc:size"],jn={d:"DAV:",nc:"http://nextcloud.org/ns",oc:"http://owncloud.org/ns",ocs:"http://open-collaboration-services.org/ns"},Hs=function(e,t={nc:"http://nextcloud.org/ns"}){typeof window._nc_dav_properties>"u"&&(window._nc_dav_properties=[..._n],window._nc_dav_namespaces={...jn});const n={...window._nc_dav_namespaces,...t};if(window._nc_dav_properties.find(i=>i===e))return vt.warn("".concat(e," already registered"),{prop:e}),!1;if(e.startsWith("<")||e.split(":").length!==2)return vt.error("".concat(e," is not valid. See example: 'oc:fileid'"),{prop:e}),!1;const r=e.split(":")[0];return n[r]?(window._nc_dav_properties.push(e),window._nc_dav_namespaces=n,!0):(vt.error("".concat(e," namespace unknown"),{prop:e,namespaces:n}),!1)},Le=function(){return typeof window._nc_dav_properties>"u"&&(window._nc_dav_properties=[..._n]),window._nc_dav_properties.map(e=>"<".concat(e," />")).join(" ")},Se=function(){return typeof window._nc_dav_namespaces>"u"&&(window._nc_dav_namespaces={...jn}),Object.keys(window._nc_dav_namespaces).map(e=>{var t;return"xmlns:".concat(e,'="').concat((t=window._nc_dav_namespaces)==null?void 0:t[e],'"')}).join(" ")},Zs=function(){return'<?xml version="1.0"?>\n		<d:propfind '.concat(Se(),">\n			<d:prop>\n				").concat(Le(),"\n			</d:prop>\n		</d:propfind>")},Ns=function(){return'<?xml version="1.0"?>\n		<oc:filter-files '.concat(Se(),">\n			<d:prop>\n				").concat(Le(),"\n			</d:prop>\n			<oc:filter-rules>\n				<oc:favorite>1</oc:favorite>\n			</oc:filter-rules>\n		</oc:filter-files>")},Ks=function(e){var t;return'<?xml version="1.0" encoding="UTF-8"?>\n<d:searchrequest '.concat(Se(),'\n	xmlns:ns="https://github.com/icewind1991/SearchDAV/ns">\n	<d:basicsearch>\n		<d:select>\n			<d:prop>\n				').concat(Le(),"\n			</d:prop>\n		</d:select>\n		<d:from>\n			<d:scope>\n				<d:href>/files/").concat((t=be())==null?void 0:t.uid,"/</d:href>\n				<d:depth>infinity</d:depth>\n			</d:scope>\n		</d:from>\n		<d:where>\n			<d:and>\n				<d:or>\n					<d:not>\n						<d:eq>\n							<d:prop>\n								<d:getcontenttype/>\n							</d:prop>\n							<d:literal>httpd/unix-directory</d:literal>\n						</d:eq>\n					</d:not>\n					<d:eq>\n						<d:prop>\n							<oc:size/>\n						</d:prop>\n						<d:literal>0</d:literal>\n					</d:eq>\n				</d:or>\n				<d:gt>\n					<d:prop>\n						<d:getlastmodified/>\n					</d:prop>\n					<d:literal>").concat(e,"</d:literal>\n				</d:gt>\n			</d:and>\n		</d:where>\n		<d:orderby>\n			<d:order>\n				<d:prop>\n					<d:getlastmodified/>\n				</d:prop>\n				<d:descending/>\n			</d:order>\n		</d:orderby>\n		<d:limit>\n			<d:nresults>100</d:nresults>\n			<ns:firstresult>0</ns:firstresult>\n		</d:limit>\n	</d:basicsearch>\n</d:searchrequest>")},xs=function(e=""){let t=at.NONE;return e&&((e.includes("C")||e.includes("K"))&&(t|=at.CREATE),e.includes("G")&&(t|=at.READ),(e.includes("W")||e.includes("N")||e.includes("V"))&&(t|=at.UPDATE),e.includes("D")&&(t|=at.DELETE),e.includes("R")&&(t|=at.SHARE)),t};var Ce=(e=>(e.Folder="folder",e.File="file",e))(Ce||{});const Dn=function(e,t){return e.match(t)!==null},un=(e,t)=>{if(e.id&&typeof e.id!="number")throw new Error("Invalid id type of value");if(!e.source)throw new Error("Missing mandatory source");try{new URL(e.source)}catch{throw new Error("Invalid source format, source must be a valid URL")}if(!e.source.startsWith("http"))throw new Error("Invalid source format, only http(s) is supported");if(e.displayname&&typeof e.displayname!="string")throw new Error("Invalid displayname type");if(e.mtime&&!(e.mtime instanceof Date))throw new Error("Invalid mtime type");if(e.crtime&&!(e.crtime instanceof Date))throw new Error("Invalid crtime type");if(!e.mime||typeof e.mime!="string"||!e.mime.match(/^[-\w.]+\/[-+\w.]+$/gi))throw new Error("Missing or invalid mandatory mime");if("size"in e&&typeof e.size!="number"&&e.size!==void 0)throw new Error("Invalid size type");if("permissions"in e&&e.permissions!==void 0&&!(typeof e.permissions=="number"&&e.permissions>=at.NONE&&e.permissions<=at.ALL))throw new Error("Invalid permissions");if(e.owner&&e.owner!==null&&typeof e.owner!="string")throw new Error("Invalid owner type");if(e.attributes&&typeof e.attributes!="object")throw new Error("Invalid attributes type");if(e.root&&typeof e.root!="string")throw new Error("Invalid root type");if(e.root&&!e.root.startsWith("/"))throw new Error("Root must start with a leading slash");if(e.root&&!e.source.includes(e.root))throw new Error("Root must be part of the source");if(e.root&&Dn(e.source,t)){const n=e.source.match(t)[0];if(!e.source.includes(Nt.join(n,e.root)))throw new Error("The root must be relative to the service. e.g /files/emma")}if(e.status&&!Object.values(_e).includes(e.status))throw new Error("Status must be a valid NodeStatus")};var _e=(e=>(e.NEW="new",e.FAILED="failed",e.LOADING="loading",e.LOCKED="locked",e))(_e||{});class te{constructor(t,n){j(this,"_data");j(this,"_attributes");j(this,"_knownDavService",/(remote|public)\.php\/(web)?dav/i);j(this,"readonlyAttributes",Object.entries(Object.getOwnPropertyDescriptors(te.prototype)).filter(t=>typeof t[1].get=="function"&&t[0]!=="__proto__").map(t=>t[0]));j(this,"handler",{set:(t,n,r)=>this.readonlyAttributes.includes(n)?!1:Reflect.set(t,n,r),deleteProperty:(t,n)=>this.readonlyAttributes.includes(n)?!1:Reflect.deleteProperty(t,n),get:(t,n,r)=>this.readonlyAttributes.includes(n)?(vt.warn('Accessing "Node.attributes.'.concat(n,'" is deprecated, access it directly on the Node instance.')),Reflect.get(this,n)):Reflect.get(t,n,r)});var r,i;un(t,n||this._knownDavService),this._data={displayname:(r=t.attributes)==null?void 0:r.displayname,...t,attributes:{}},this._attributes=new Proxy(this._data.attributes,this.handler),this.update((i=t.attributes)!=null?i:{}),n&&(this._knownDavService=n)}get source(){return this._data.source.replace(/\/$/i,"")}get encodedSource(){const{origin:t}=new URL(this.source);return t+Zn(this.source.slice(t.length))}get basename(){return Nt.basename(this.source)}get displayname(){return this._data.displayname||this.basename}set displayname(t){this._data.displayname=t}get extension(){return Nt.extname(this.source)}get dirname(){if(this.root){let n=this.source;this.isDavRessource&&(n=n.split(this._knownDavService).pop());const r=n.indexOf(this.root),i=this.root.replace(/\/$/,"");return Nt.dirname(n.slice(r+i.length)||"/")}const t=new URL(this.source);return Nt.dirname(t.pathname)}get mime(){return this._data.mime}get mtime(){return this._data.mtime}set mtime(t){this._data.mtime=t}get crtime(){return this._data.crtime}get size(){return this._data.size}set size(t){this.updateMtime(),this._data.size=t}get attributes(){return this._attributes}get permissions(){return this.owner===null&&!this.isDavRessource?at.READ:this._data.permissions!==void 0?this._data.permissions:at.NONE}set permissions(t){this.updateMtime(),this._data.permissions=t}get owner(){return this.isDavRessource?this._data.owner:null}get isDavRessource(){return Dn(this.source,this._knownDavService)}get root(){return this._data.root?this._data.root.replace(/^(.+)\/$/,"$1"):this.isDavRessource&&Nt.dirname(this.source).split(this._knownDavService).pop()||null}get path(){if(this.root){let t=this.source;this.isDavRessource&&(t=t.split(this._knownDavService).pop());const n=t.indexOf(this.root),r=this.root.replace(/\/$/,"");return t.slice(n+r.length)||"/"}return(this.dirname+"/"+this.basename).replace(/\/\//g,"/")}get fileid(){var t;return(t=this._data)==null?void 0:t.id}get status(){var t;return(t=this._data)==null?void 0:t.status}set status(t){this._data.status=t}move(t){un({...this._data,source:t},this._knownDavService);const n=this.basename;this._data.source=t,this.displayname===n&&this.basename!==n&&(this.displayname=this.basename),this.updateMtime()}rename(t){if(t.includes("/"))throw new Error("Invalid basename");this.move(Nt.dirname(this.source)+"/"+t)}updateMtime(){this._data.mtime&&(this._data.mtime=new Date)}update(t){for(const[n,r]of Object.entries(t))try{r===void 0?delete this.attributes[n]:this.attributes[n]=r}catch(i){if(i instanceof TypeError)continue;throw i}}}class As extends te{get type(){return Ce.File}}class Os extends te{constructor(t){super({...t,mime:"httpd/unix-directory"})}get type(){return Ce.Folder}get extension(){return null}get mime(){return"httpd/unix-directory"}}function Is(){var e;return Ee()?"/files/".concat(Wn()):"/files/".concat((e=be())==null?void 0:e.uid)}const Fn=Is();function Ps(){const e=qn("dav");return Ee()?e.replace("remote.php","public.php"):e}const kn=Ps(),Ys=function(e=kn,t={}){const n=ws(e,{headers:t});function r(i){n.setHeaders({...t,"X-Requested-With":"XMLHttpRequest",requesttoken:i!=null?i:""})}return zn(r),r(Xn()),ys().patch("fetch",(i,a)=>{const l=a.headers;return l!=null&&l.method&&(a.method=l.method,delete l.method),fetch(i,a)}),n},Js=(e,t="/",n=Fn)=>{const r=new AbortController;return new lt(async(i,a,l)=>{l(()=>r.abort());try{const u=(await e.getDirectoryContents("".concat(n).concat(t),{signal:r.signal,details:!0,data:Ns(),headers:{method:"REPORT"},includeSelf:!0})).data.filter(h=>h.filename!==t).map(h=>Ts(h,n));i(u)}catch(u){a(u)}})},Ts=function(e,t=Fn,n=kn){var s,o;let r=(s=be())==null?void 0:s.uid;if(Ee())r=r!=null?r:"anonymous";else if(!r)throw new Error("No user id found");const i=e.props,a=xs(i==null?void 0:i.permissions),l=String((i==null?void 0:i["owner-id"])||r),u=i.fileid||0,h={id:u,source:"".concat(n).concat(e.filename),mtime:new Date(Date.parse(e.lastmod)),mime:e.mime||"application/octet-stream",displayname:i.displayname!==void 0?String(i.displayname):void 0,size:(i==null?void 0:i.size)||Number.parseInt(i.getcontentlength||"0"),status:u<0?_e.FAILED:void 0,permissions:a,owner:l,root:t,attributes:{...e,...i,hasPreview:i==null?void 0:i["has-preview"]}};return(o=h.attributes)==null||delete o.props,e.type==="file"?new As(h):new Os(h)},pe=["B","KB","MB","GB","TB","PB"],fe=["B","KiB","MiB","GiB","TiB","PiB"];function Qs(e,t=!1,n=!1,r=!1){n=n&&!r,typeof e=="string"&&(e=Number(e));let i=e>0?Math.floor(Math.log(e)/Math.log(r?1e3:1024)):0;i=Math.min((n?fe.length:pe.length)-1,i);const a=n?fe[i]:pe[i];let l=(e/Math.pow(r?1e3:1024,i)).toFixed(1);return t===!0&&i===0?(l!=="0.0"?"< 1 ":"0 ")+(n?fe[1]:pe[1]):(i<2?l=parseFloat(l).toFixed(0):l=parseFloat(l).toLocaleString(hn()),l+" "+a)}function cn(e){return e instanceof Date?e.toISOString():String(e)}function $s(e,t,n){t=t!=null?t:[a=>a],n=n!=null?n:[];const r=t.map((a,l)=>{var u;return((u=n[l])!=null?u:"asc")==="asc"?1:-1}),i=Intl.Collator([Hn(),hn()],{numeric:!0,usage:"sort"});return[...e].sort((a,l)=>{for(const[u,h]of t.entries()){const s=i.compare(cn(h(a)),cn(h(l)));if(s!==0)return s*r[u]}return 0})}function ti(e,t={}){const n={sortingMode:"basename",sortingOrder:"asc",...t},r=l=>l.lastIndexOf(".")>0?l.slice(0,l.lastIndexOf(".")):l,i=[...n.sortFavoritesFirst?[l=>{var u;return((u=l.attributes)==null?void 0:u.favorite)!==1}]:[],...n.sortFoldersFirst?[l=>l.type!=="folder"]:[],...n.sortingMode!=="basename"?[l=>l[n.sortingMode]]:[],l=>{var u;return r(((u=l.attributes)==null?void 0:u.displayname)||l.basename)},l=>l.basename],a=[...n.sortFavoritesFirst?["asc"]:[],...n.sortFoldersFirst?["asc"]:[],...n.sortingMode==="mtime"?[n.sortingOrder==="asc"?"desc":"asc"]:[],...n.sortingMode!=="mtime"&&n.sortingMode!=="basename"?[n.sortingOrder]:[],n.sortingOrder,n.sortingOrder];return $s(e,i,a)}var Rs={};(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",n=t+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",r="["+t+"]["+n+"]*",i=new RegExp("^"+r+"$"),a=function(u,h){const s=[];let o=h.exec(u);for(;o;){const p=[];p.startIndex=h.lastIndex-o[0].length;const c=o.length;for(let g=0;g<c;g++)p.push(o[g]);s.push(p),o=h.exec(u)}return s},l=function(u){const h=i.exec(u);return!(h===null||typeof h>"u")};e.isExist=function(u){return typeof u<"u"},e.isEmptyObject=function(u){return Object.keys(u).length===0},e.merge=function(u,h,s){if(h){const o=Object.keys(h),p=o.length;for(let c=0;c<p;c++)s==="strict"?u[o[c]]=[h[o[c]]]:u[o[c]]=h[o[c]]}},e.getValue=function(u){return e.isExist(u)?u:""},e.isName=l,e.getAllMatches=a,e.nameRegexp=r})(Rs),!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const Ls=typeof Ct=="object"&&he&&he.NODE_DEBUG&&/\bsemver\b/i.test(he.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var Ss=Ls;const Cs="2.0.0",Mn=256,_s=Number.MAX_SAFE_INTEGER||9007199254740991,js=16,Ds=Mn-6,Fs=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var ks={MAX_LENGTH:Mn,MAX_SAFE_COMPONENT_LENGTH:js,MAX_SAFE_BUILD_LENGTH:Ds,MAX_SAFE_INTEGER:_s,RELEASE_TYPES:Fs,SEMVER_SPEC_VERSION:Cs,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},ln={exports:{}};(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=ks,a=Ss;t=e.exports={};const l=t.re=[],u=t.safeRe=[],h=t.src=[],s=t.t={};let o=0;const p="[a-zA-Z0-9-]",c=[["\\s",1],["\\d",i],[p,r]],g=d=>{for(const[w,b]of c)d=d.split("".concat(w,"*")).join("".concat(w,"{0,").concat(b,"}")).split("".concat(w,"+")).join("".concat(w,"{1,").concat(b,"}"));return d},f=(d,w,b)=>{const m=g(w),y=o++;a(d,y,w),s[d]=y,h[y]=w,l[y]=new RegExp(w,b?"g":void 0),u[y]=new RegExp(m,b?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-]".concat(p,"*")),f("MAINVERSION","(".concat(h[s.NUMERICIDENTIFIER],")\\.(").concat(h[s.NUMERICIDENTIFIER],")\\.(").concat(h[s.NUMERICIDENTIFIER],")")),f("MAINVERSIONLOOSE","(".concat(h[s.NUMERICIDENTIFIERLOOSE],")\\.(").concat(h[s.NUMERICIDENTIFIERLOOSE],")\\.(").concat(h[s.NUMERICIDENTIFIERLOOSE],")")),f("PRERELEASEIDENTIFIER","(?:".concat(h[s.NUMERICIDENTIFIER],"|").concat(h[s.NONNUMERICIDENTIFIER],")")),f("PRERELEASEIDENTIFIERLOOSE","(?:".concat(h[s.NUMERICIDENTIFIERLOOSE],"|").concat(h[s.NONNUMERICIDENTIFIER],")")),f("PRERELEASE","(?:-(".concat(h[s.PRERELEASEIDENTIFIER],"(?:\\.").concat(h[s.PRERELEASEIDENTIFIER],")*))")),f("PRERELEASELOOSE","(?:-?(".concat(h[s.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(h[s.PRERELEASEIDENTIFIERLOOSE],")*))")),f("BUILDIDENTIFIER","".concat(p,"+")),f("BUILD","(?:\\+(".concat(h[s.BUILDIDENTIFIER],"(?:\\.").concat(h[s.BUILDIDENTIFIER],")*))")),f("FULLPLAIN","v?".concat(h[s.MAINVERSION]).concat(h[s.PRERELEASE],"?").concat(h[s.BUILD],"?")),f("FULL","^".concat(h[s.FULLPLAIN],"$")),f("LOOSEPLAIN","[v=\\s]*".concat(h[s.MAINVERSIONLOOSE]).concat(h[s.PRERELEASELOOSE],"?").concat(h[s.BUILD],"?")),f("LOOSE","^".concat(h[s.LOOSEPLAIN],"$")),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE","".concat(h[s.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),f("XRANGEIDENTIFIER","".concat(h[s.NUMERICIDENTIFIER],"|x|X|\\*")),f("XRANGEPLAIN","[v=\\s]*(".concat(h[s.XRANGEIDENTIFIER],")(?:\\.(").concat(h[s.XRANGEIDENTIFIER],")(?:\\.(").concat(h[s.XRANGEIDENTIFIER],")(?:").concat(h[s.PRERELEASE],")?").concat(h[s.BUILD],"?)?)?")),f("XRANGEPLAINLOOSE","[v=\\s]*(".concat(h[s.XRANGEIDENTIFIERLOOSE],")(?:\\.(").concat(h[s.XRANGEIDENTIFIERLOOSE],")(?:\\.(").concat(h[s.XRANGEIDENTIFIERLOOSE],")(?:").concat(h[s.PRERELEASELOOSE],")?").concat(h[s.BUILD],"?)?)?")),f("XRANGE","^".concat(h[s.GTLT],"\\s*").concat(h[s.XRANGEPLAIN],"$")),f("XRANGELOOSE","^".concat(h[s.GTLT],"\\s*").concat(h[s.XRANGEPLAINLOOSE],"$")),f("COERCEPLAIN","(^|[^\\d])(\\d{1,".concat(n,"})(?:\\.(\\d{1,").concat(n,"}))?(?:\\.(\\d{1,").concat(n,"}))?")),f("COERCE","".concat(h[s.COERCEPLAIN],"(?:$|[^\\d])")),f("COERCEFULL",h[s.COERCEPLAIN]+"(?:".concat(h[s.PRERELEASE],")?(?:").concat(h[s.BUILD],")?(?:$|[^\\d])")),f("COERCERTL",h[s.COERCE],!0),f("COERCERTLFULL",h[s.COERCEFULL],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM","(\\s*)".concat(h[s.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",f("TILDE","^".concat(h[s.LONETILDE]).concat(h[s.XRANGEPLAIN],"$")),f("TILDELOOSE","^".concat(h[s.LONETILDE]).concat(h[s.XRANGEPLAINLOOSE],"$")),f("LONECARET","(?:\\^)"),f("CARETTRIM","(\\s*)".concat(h[s.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",f("CARET","^".concat(h[s.LONECARET]).concat(h[s.XRANGEPLAIN],"$")),f("CARETLOOSE","^".concat(h[s.LONECARET]).concat(h[s.XRANGEPLAINLOOSE],"$")),f("COMPARATORLOOSE","^".concat(h[s.GTLT],"\\s*(").concat(h[s.LOOSEPLAIN],")$|^$")),f("COMPARATOR","^".concat(h[s.GTLT],"\\s*(").concat(h[s.FULLPLAIN],")$|^$")),f("COMPARATORTRIM","(\\s*)".concat(h[s.GTLT],"\\s*(").concat(h[s.LOOSEPLAIN],"|").concat(h[s.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE","^\\s*(".concat(h[s.XRANGEPLAIN],")\\s+-\\s+(").concat(h[s.XRANGEPLAIN],")\\s*$")),f("HYPHENRANGELOOSE","^\\s*(".concat(h[s.XRANGEPLAINLOOSE],")\\s+-\\s+(").concat(h[s.XRANGEPLAINLOOSE],")\\s*$")),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(ln,ln.exports);const ei=function(e){return Es().registerEntry(e)};export{lt as C,As as F,Ws as H,vs as N,at as P,qs as a,ei as b,Ys as c,kn as d,Zs as e,Ce as f,Js as g,Fn as h,Ts as i,Ks as j,Qs as k,Hs as r,ti as s};

Zerion Mini Shell 1.0