11 lines
63 KiB
JavaScript
11 lines
63 KiB
JavaScript
import{p as Ae}from"./index-CRQM6PVi.chunk.mjs";import{B as Lt,g as Re,d as pe}from"./NcLoadingIcon-ZJnsd-es.chunk.mjs";import{l as bt}from"./dav-CQDyL7M_-DQpu_A9F.chunk.mjs";import{g as Oe}from"./emoji-picker-MDCGxHB0.chunk.mjs";import"./NcNoteCard-Dz5-u2BY-S2qe9Sjm.chunk.mjs";var vt={},St={exports:{}},zt={},Kt;function _e(){return Kt||(Kt=1,function(I){Object.defineProperties(I,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var f={},y={};y.byteLength=L,y.toByteArray=P,y.fromByteArray=et;for(var A=[],_=[],B=typeof Uint8Array<"u"?Uint8Array:Array,w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",S=0,T=w.length;S<T;++S)A[S]=w[S],_[w.charCodeAt(S)]=S;_[45]=62,_[95]=63;function l(g){var d=g.length;if(d%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var N=g.indexOf("=");N===-1&&(N=d);var O=N===d?0:4-N%4;return[N,O]}function L(g){var d=l(g),N=d[0],O=d[1];return(N+O)*3/4-O}function D(g,d,N){return(d+N)*3/4-N}function P(g){var d,N=l(g),O=N[0],C=N[1],b=new B(D(g,O,C)),v=0,s=C>0?O-4:O,M;for(M=0;M<s;M+=4)d=_[g.charCodeAt(M)]<<18|_[g.charCodeAt(M+1)]<<12|_[g.charCodeAt(M+2)]<<6|_[g.charCodeAt(M+3)],b[v++]=d>>16&255,b[v++]=d>>8&255,b[v++]=d&255;return C===2&&(d=_[g.charCodeAt(M)]<<2|_[g.charCodeAt(M+1)]>>4,b[v++]=d&255),C===1&&(d=_[g.charCodeAt(M)]<<10|_[g.charCodeAt(M+1)]<<4|_[g.charCodeAt(M+2)]>>2,b[v++]=d>>8&255,b[v++]=d&255),b}function X(g){return A[g>>18&63]+A[g>>12&63]+A[g>>6&63]+A[g&63]}function R(g,d,N){for(var O,C=[],b=d;b<N;b+=3)O=(g[b]<<16&16711680)+(g[b+1]<<8&65280)+(g[b+2]&255),C.push(X(O));return C.join("")}function et(g){for(var d,N=g.length,O=N%3,C=[],b=16383,v=0,s=N-O;v<s;v+=b)C.push(R(g,v,v+b>s?s:v+b));return O===1?(d=g[N-1],C.push(A[d>>2]+A[d<<4&63]+"==")):O===2&&(d=(g[N-2]<<8)+g[N-1],C.push(A[d>>10]+A[d>>4&63]+A[d<<2&63]+"=")),C.join("")}var k={};k.read=function(g,d,N,O,C){var b,v,s=C*8-O-1,M=(1<<s)-1,V=M>>1,u=-7,j=N?C-1:0,rt=N?-1:1,z=g[d+j];for(j+=rt,b=z&(1<<-u)-1,z>>=-u,u+=s;u>0;b=b*256+g[d+j],j+=rt,u-=8);for(v=b&(1<<-u)-1,b>>=-u,u+=O;u>0;v=v*256+g[d+j],j+=rt,u-=8);if(b===0)b=1-V;else{if(b===M)return v?NaN:(z?-1:1)*(1/0);v=v+Math.pow(2,O),b=b-V}return(z?-1:1)*v*Math.pow(2,b-O)},k.write=function(g,d,N,O,C,b){var v,s,M,V=b*8-C-1,u=(1<<V)-1,j=u>>1,rt=C===23?Math.pow(2,-24)-Math.pow(2,-77):0,z=O?0:b-1,it=O?1:-1,F=d<0||d===0&&1/d<0?1:0;for(d=Math.abs(d),isNaN(d)||d===1/0?(s=isNaN(d)?1:0,v=u):(v=Math.floor(Math.log(d)/Math.LN2),d*(M=Math.pow(2,-v))<1&&(v--,M*=2),v+j>=1?d+=rt/M:d+=rt*Math.pow(2,1-j),d*M>=2&&(v++,M/=2),v+j>=u?(s=0,v=u):v+j>=1?(s=(d*M-1)*Math.pow(2,C),v=v+j):(s=d*Math.pow(2,j-1)*Math.pow(2,C),v=0));C>=8;g[N+z]=s&255,z+=it,s/=256,C-=8);for(v=v<<C|s,V+=C;V>0;g[N+z]=v&255,z+=it,v/=256,V-=8);g[N+z-it]|=F*128},function(g){const d=y,N=k,O=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;g.Buffer=u,g.SlowBuffer=wt,g.INSPECT_MAX_BYTES=50;const C=2147483647;g.kMaxLength=C;const{Uint8Array:b,ArrayBuffer:v,SharedArrayBuffer:s}=globalThis;u.TYPED_ARRAY_SUPPORT=M(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function M(){try{const t=new b(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,b.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function V(t){if(t>C)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new b(t);return Object.setPrototypeOf(e,u.prototype),e}function u(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return it(t)}return j(t,e,r)}u.poolSize=8192;function j(t,e,r){if(typeof t=="string")return F(t,e);if(v.isView(t))return gt(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(ot(t,v)||t&&ot(t.buffer,v)||typeof s<"u"&&(ot(t,s)||t&&ot(t.buffer,s)))return lt(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const o=t.valueOf&&t.valueOf();if(o!=null&&o!==t)return u.from(o,e,r);const c=st(t);if(c)return c;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return u.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}u.from=function(t,e,r){return j(t,e,r)},Object.setPrototypeOf(u.prototype,b.prototype),Object.setPrototypeOf(u,b);function rt(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function z(t,e,r){return rt(t),t<=0?V(t):e!==void 0?typeof r=="string"?V(t).fill(e,r):V(t).fill(e):V(t)}u.alloc=function(t,e,r){return z(t,e,r)};function it(t){return rt(t),V(t<0?0:ft(t)|0)}u.allocUnsafe=function(t){return it(t)},u.allocUnsafeSlow=function(t){return it(t)};function F(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const r=dt(t,e)|0;let o=V(r);const c=o.write(t,e);return c!==r&&(o=o.slice(0,c)),o}function Et(t){const e=t.length<0?0:ft(t.length)|0,r=V(e);for(let o=0;o<e;o+=1)r[o]=t[o]&255;return r}function gt(t){if(ot(t,b)){const e=new b(t);return lt(e.buffer,e.byteOffset,e.byteLength)}return Et(t)}function lt(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let o;return e===void 0&&r===void 0?o=new b(t):r===void 0?o=new b(t,e):o=new b(t,e,r),Object.setPrototypeOf(o,u.prototype),o}function st(t){if(u.isBuffer(t)){const e=ft(t.length)|0,r=V(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||_t(t.length)?V(0):Et(t);if(t.type==="Buffer"&&Array.isArray(t.data))return Et(t.data)}function ft(t){if(t>=C)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+C.toString(16)+" bytes");return t|0}function wt(t){return+t!=t&&(t=0),u.alloc(+t)}u.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==u.prototype},u.compare=function(t,e){if(ot(t,b)&&(t=u.from(t,t.offset,t.byteLength)),ot(e,b)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let r=t.length,o=e.length;for(let c=0,h=Math.min(r,o);c<h;++c)if(t[c]!==e[c]){r=t[c],o=e[c];break}return r<o?-1:o<r?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return u.alloc(0);let r;if(e===void 0)for(e=0,r=0;r<t.length;++r)e+=t[r].length;const o=u.allocUnsafe(e);let c=0;for(r=0;r<t.length;++r){let h=t[r];if(ot(h,b))c+h.length>o.length?(u.isBuffer(h)||(h=u.from(h)),h.copy(o,c)):b.prototype.set.call(o,h,c);else if(u.isBuffer(h))h.copy(o,c);else throw new TypeError('"list" argument must be an Array of Buffers');c+=h.length}return o};function dt(t,e){if(u.isBuffer(t))return t.length;if(v.isView(t)||ot(t,v))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const r=t.length,o=arguments.length>2&&arguments[2]===!0;if(!o&&r===0)return 0;let c=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Ot(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Wt(t).length;default:if(c)return o?-1:Ot(t).length;e=(""+e).toLowerCase(),c=!0}}u.byteLength=dt;function It(t,e,r){let o=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return yt(this,e,r);case"utf8":case"utf-8":return K(this,e,r);case"ascii":return nt(this,e,r);case"latin1":case"binary":return At(this,e,r);case"base64":return J(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Tt(this,e,r);default:if(o)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),o=!0}}u.prototype._isBuffer=!0;function at(t,e,r){const o=t[e];t[e]=t[r],t[r]=o}u.prototype.swap16=function(){const t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)at(this,e,e+1);return this},u.prototype.swap32=function(){const t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)at(this,e,e+3),at(this,e+1,e+2);return this},u.prototype.swap64=function(){const t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)at(this,e,e+7),at(this,e+1,e+6),at(this,e+2,e+5),at(this,e+3,e+4);return this},u.prototype.toString=function(){const t=this.length;return t===0?"":arguments.length===0?K(this,0,t):It.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:u.compare(this,t)===0},u.prototype.inspect=function(){let t="";const e=g.INSPECT_MAX_BYTES;return t=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(t+=" ... "),"<Buffer "+t+">"},O&&(u.prototype[O]=u.prototype.inspect),u.prototype.compare=function(t,e,r,o,c){if(ot(t,b)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(e===void 0&&(e=0),r===void 0&&(r=t?t.length:0),o===void 0&&(o=0),c===void 0&&(c=this.length),e<0||r>t.length||o<0||c>this.length)throw new RangeError("out of range index");if(o>=c&&e>=r)return 0;if(o>=c)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,o>>>=0,c>>>=0,this===t)return 0;let h=c-o,m=r-e;const x=Math.min(h,m),Z=this.slice(o,c),G=t.slice(e,r);for(let $=0;$<x;++$)if(Z[$]!==G[$]){h=Z[$],m=G[$];break}return h<m?-1:m<h?1:0};function i(t,e,r,o,c){if(t.length===0)return-1;if(typeof r=="string"?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,_t(r)&&(r=c?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(c)return-1;r=t.length-1}else if(r<0)if(c)r=0;else return-1;if(typeof e=="string"&&(e=u.from(e,o)),u.isBuffer(e))return e.length===0?-1:n(t,e,r,o,c);if(typeof e=="number")return e=e&255,typeof b.prototype.indexOf=="function"?c?b.prototype.indexOf.call(t,e,r):b.prototype.lastIndexOf.call(t,e,r):n(t,[e],r,o,c);throw new TypeError("val must be string, number or Buffer")}function n(t,e,r,o,c){let h=1,m=t.length,x=e.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(t.length<2||e.length<2)return-1;h=2,m/=2,x/=2,r/=2}function Z($,Q){return h===1?$[Q]:$.readUInt16BE(Q*h)}let G;if(c){let $=-1;for(G=r;G<m;G++)if(Z(t,G)===Z(e,$===-1?0:G-$)){if($===-1&&($=G),G-$+1===x)return $*h}else $!==-1&&(G-=G-$),$=-1}else for(r+x>m&&(r=m-x),G=r;G>=0;G--){let $=!0;for(let Q=0;Q<x;Q++)if(Z(t,G+Q)!==Z(e,Q)){$=!1;break}if($)return G}return-1}u.prototype.includes=function(t,e,r){return this.indexOf(t,e,r)!==-1},u.prototype.indexOf=function(t,e,r){return i(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return i(this,t,e,r,!1)};function E(t,e,r,o){r=Number(r)||0;const c=t.length-r;o?(o=Number(o),o>c&&(o=c)):o=c;const h=e.length;o>h/2&&(o=h/2);let m;for(m=0;m<o;++m){const x=parseInt(e.substr(m*2,2),16);if(_t(x))return m;t[r+m]=x}return m}function a(t,e,r,o){return Nt(Ot(e,t.length-r),t,r,o)}function U(t,e,r,o){return Nt(ye(e),t,r,o)}function Y(t,e,r,o){return Nt(Wt(e),t,r,o)}function q(t,e,r,o){return Nt(Ne(e,t.length-r),t,r,o)}u.prototype.write=function(t,e,r,o){if(e===void 0)o="utf8",r=this.length,e=0;else if(r===void 0&&typeof e=="string")o=e,r=this.length,e=0;else if(isFinite(e))e=e>>>0,isFinite(r)?(r=r>>>0,o===void 0&&(o="utf8")):(o=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const c=this.length-e;if((r===void 0||r>c)&&(r=c),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");let h=!1;for(;;)switch(o){case"hex":return E(this,t,e,r);case"utf8":case"utf-8":return a(this,t,e,r);case"ascii":case"latin1":case"binary":return U(this,t,e,r);case"base64":return Y(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,t,e,r);default:if(h)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),h=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function J(t,e,r){return e===0&&r===t.length?d.fromByteArray(t):d.fromByteArray(t.slice(e,r))}function K(t,e,r){r=Math.min(t.length,r);const o=[];let c=e;for(;c<r;){const h=t[c];let m=null,x=h>239?4:h>223?3:h>191?2:1;if(c+x<=r){let Z,G,$,Q;switch(x){case 1:h<128&&(m=h);break;case 2:Z=t[c+1],(Z&192)===128&&(Q=(h&31)<<6|Z&63,Q>127&&(m=Q));break;case 3:Z=t[c+1],G=t[c+2],(Z&192)===128&&(G&192)===128&&(Q=(h&15)<<12|(Z&63)<<6|G&63,Q>2047&&(Q<55296||Q>57343)&&(m=Q));break;case 4:Z=t[c+1],G=t[c+2],$=t[c+3],(Z&192)===128&&(G&192)===128&&($&192)===128&&(Q=(h&15)<<18|(Z&63)<<12|(G&63)<<6|$&63,Q>65535&&Q<1114112&&(m=Q))}}m===null?(m=65533,x=1):m>65535&&(m-=65536,o.push(m>>>10&1023|55296),m=56320|m&1023),o.push(m),c+=x}return W(o)}const ut=4096;function W(t){const e=t.length;if(e<=ut)return String.fromCharCode.apply(String,t);let r="",o=0;for(;o<e;)r+=String.fromCharCode.apply(String,t.slice(o,o+=ut));return r}function nt(t,e,r){let o="";r=Math.min(t.length,r);for(let c=e;c<r;++c)o+=String.fromCharCode(t[c]&127);return o}function At(t,e,r){let o="";r=Math.min(t.length,r);for(let c=e;c<r;++c)o+=String.fromCharCode(t[c]);return o}function yt(t,e,r){const o=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>o)&&(r=o);let c="";for(let h=e;h<r;++h)c+=be[t[h]];return c}function Tt(t,e,r){const o=t.slice(e,r);let c="";for(let h=0;h<o.length-1;h+=2)c+=String.fromCharCode(o[h]+o[h+1]*256);return c}u.prototype.slice=function(t,e){const r=this.length;t=~~t,e=e===void 0?r:~~e,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),e<t&&(e=t);const o=this.subarray(t,e);return Object.setPrototypeOf(o,u.prototype),o};function H(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(t,e,r){t=t>>>0,e=e>>>0,r||H(t,e,this.length);let o=this[t],c=1,h=0;for(;++h<e&&(c*=256);)o+=this[t+h]*c;return o},u.prototype.readUintBE=u.prototype.readUIntBE=function(t,e,r){t=t>>>0,e=e>>>0,r||H(t,e,this.length);let o=this[t+--e],c=1;for(;e>0&&(c*=256);)o+=this[t+--e]*c;return o},u.prototype.readUint8=u.prototype.readUInt8=function(t,e){return t=t>>>0,e||H(t,1,this.length),this[t]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,e){return t=t>>>0,e||H(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,e){return t=t>>>0,e||H(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,e){return t=t>>>0,e||H(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,e){return t=t>>>0,e||H(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readBigUInt64LE=ct(function(t){t=t>>>0,pt(t,"offset");const e=this[t],r=this[t+7];(e===void 0||r===void 0)&&mt(t,this.length-8);const o=e+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,c=this[++t]+this[++t]*2**8+this[++t]*2**16+r*2**24;return BigInt(o)+(BigInt(c)<<BigInt(32))}),u.prototype.readBigUInt64BE=ct(function(t){t=t>>>0,pt(t,"offset");const e=this[t],r=this[t+7];(e===void 0||r===void 0)&&mt(t,this.length-8);const o=e*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],c=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+r;return(BigInt(o)<<BigInt(32))+BigInt(c)}),u.prototype.readIntLE=function(t,e,r){t=t>>>0,e=e>>>0,r||H(t,e,this.length);let o=this[t],c=1,h=0;for(;++h<e&&(c*=256);)o+=this[t+h]*c;return c*=128,o>=c&&(o-=Math.pow(2,8*e)),o},u.prototype.readIntBE=function(t,e,r){t=t>>>0,e=e>>>0,r||H(t,e,this.length);let o=e,c=1,h=this[t+--o];for(;o>0&&(c*=256);)h+=this[t+--o]*c;return c*=128,h>=c&&(h-=Math.pow(2,8*e)),h},u.prototype.readInt8=function(t,e){return t=t>>>0,e||H(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]},u.prototype.readInt16LE=function(t,e){t=t>>>0,e||H(t,2,this.length);const r=this[t]|this[t+1]<<8;return r&32768?r|4294901760:r},u.prototype.readInt16BE=function(t,e){t=t>>>0,e||H(t,2,this.length);const r=this[t+1]|this[t]<<8;return r&32768?r|4294901760:r},u.prototype.readInt32LE=function(t,e){return t=t>>>0,e||H(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t=t>>>0,e||H(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readBigInt64LE=ct(function(t){t=t>>>0,pt(t,"offset");const e=this[t],r=this[t+7];(e===void 0||r===void 0)&&mt(t,this.length-8);const o=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(r<<24);return(BigInt(o)<<BigInt(32))+BigInt(e+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)}),u.prototype.readBigInt64BE=ct(function(t){t=t>>>0,pt(t,"offset");const e=this[t],r=this[t+7];(e===void 0||r===void 0)&&mt(t,this.length-8);const o=(e<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(o)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+r)}),u.prototype.readFloatLE=function(t,e){return t=t>>>0,e||H(t,4,this.length),N.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t=t>>>0,e||H(t,4,this.length),N.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t=t>>>0,e||H(t,8,this.length),N.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t=t>>>0,e||H(t,8,this.length),N.read(this,t,!1,52,8)};function tt(t,e,r,o,c,h){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>c||e<h)throw new RangeError('"value" argument is out of bounds');if(r+o>t.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,e,r,o){if(t=+t,e=e>>>0,r=r>>>0,!o){const m=Math.pow(2,8*r)-1;tt(this,t,e,r,m,0)}let c=1,h=0;for(this[e]=t&255;++h<r&&(c*=256);)this[e+h]=t/c&255;return e+r},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,e,r,o){if(t=+t,e=e>>>0,r=r>>>0,!o){const m=Math.pow(2,8*r)-1;tt(this,t,e,r,m,0)}let c=r-1,h=1;for(this[e+c]=t&255;--c>=0&&(h*=256);)this[e+c]=t/h&255;return e+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(t,e,r){return t=+t,e=e>>>0,r||tt(this,t,e,1,255,0),this[e]=t&255,e+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e=e>>>0,r||tt(this,t,e,2,65535,0),this[e]=t&255,this[e+1]=t>>>8,e+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e=e>>>0,r||tt(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=t&255,e+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e=e>>>0,r||tt(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=t&255,e+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e=e>>>0,r||tt(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=t&255,e+4};function Vt(t,e,r,o,c){Qt(e,o,c,t,r,7);let h=Number(e&BigInt(4294967295));t[r++]=h,h=h>>8,t[r++]=h,h=h>>8,t[r++]=h,h=h>>8,t[r++]=h;let m=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=m,m=m>>8,t[r++]=m,m=m>>8,t[r++]=m,m=m>>8,t[r++]=m,r}function jt(t,e,r,o,c){Qt(e,o,c,t,r,7);let h=Number(e&BigInt(4294967295));t[r+7]=h,h=h>>8,t[r+6]=h,h=h>>8,t[r+5]=h,h=h>>8,t[r+4]=h;let m=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=m,m=m>>8,t[r+2]=m,m=m>>8,t[r+1]=m,m=m>>8,t[r]=m,r+8}u.prototype.writeBigUInt64LE=ct(function(t,e=0){return Vt(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=ct(function(t,e=0){return jt(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(t,e,r,o){if(t=+t,e=e>>>0,!o){const x=Math.pow(2,8*r-1);tt(this,t,e,r,x-1,-x)}let c=0,h=1,m=0;for(this[e]=t&255;++c<r&&(h*=256);)t<0&&m===0&&this[e+c-1]!==0&&(m=1),this[e+c]=(t/h>>0)-m&255;return e+r},u.prototype.writeIntBE=function(t,e,r,o){if(t=+t,e=e>>>0,!o){const x=Math.pow(2,8*r-1);tt(this,t,e,r,x-1,-x)}let c=r-1,h=1,m=0;for(this[e+c]=t&255;--c>=0&&(h*=256);)t<0&&m===0&&this[e+c+1]!==0&&(m=1),this[e+c]=(t/h>>0)-m&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e=e>>>0,r||tt(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=t&255,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e=e>>>0,r||tt(this,t,e,2,32767,-32768),this[e]=t&255,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e=e>>>0,r||tt(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=t&255,e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e=e>>>0,r||tt(this,t,e,4,2147483647,-2147483648),this[e]=t&255,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e=e>>>0,r||tt(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=t&255,e+4},u.prototype.writeBigInt64LE=ct(function(t,e=0){return Vt(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=ct(function(t,e=0){return jt(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function kt(t,e,r,o,c,h){if(r+o>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Yt(t,e,r,o,c){return e=+e,r=r>>>0,c||kt(t,e,r,4),N.write(t,e,r,o,23,4),r+4}u.prototype.writeFloatLE=function(t,e,r){return Yt(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return Yt(this,t,e,!1,r)};function qt(t,e,r,o,c){return e=+e,r=r>>>0,c||kt(t,e,r,8),N.write(t,e,r,o,52,8),r+8}u.prototype.writeDoubleLE=function(t,e,r){return qt(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return qt(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,o){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),!o&&o!==0&&(o=this.length),e>=t.length&&(e=t.length),e||(e=0),o>0&&o<r&&(o=r),o===r||t.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),t.length-e<o-r&&(o=t.length-e+r);const c=o-r;return this===t&&typeof b.prototype.copyWithin=="function"?this.copyWithin(e,r,o):b.prototype.set.call(t,this.subarray(r,o),e),c},u.prototype.fill=function(t,e,r,o){if(typeof t=="string"){if(typeof e=="string"?(o=e,e=0,r=this.length):typeof r=="string"&&(o=r,r=this.length),o!==void 0&&typeof o!="string")throw new TypeError("encoding must be a string");if(typeof o=="string"&&!u.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(t.length===1){const h=t.charCodeAt(0);(o==="utf8"&&h<128||o==="latin1")&&(t=h)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;e=e>>>0,r=r===void 0?this.length:r>>>0,t||(t=0);let c;if(typeof t=="number")for(c=e;c<r;++c)this[c]=t;else{const h=u.isBuffer(t)?t:u.from(t,o),m=h.length;if(m===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(c=0;c<r-e;++c)this[c+e]=h[c%m]}return this};const ht={};function Rt(t,e,r){ht[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(o){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:o,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}Rt("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Rt("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError),Rt("ERR_OUT_OF_RANGE",function(t,e,r){let o=`The value of "${t}" is out of range.`,c=r;return Number.isInteger(r)&&Math.abs(r)>2**32?c=Ht(String(r)):typeof r=="bigint"&&(c=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(c=Ht(c)),c+="n"),o+=` It must be ${e}. Received ${c}`,o},RangeError);function Ht(t){let e="",r=t.length;const o=t[0]==="-"?1:0;for(;r>=o+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function Te(t,e,r){pt(e,"offset"),(t[e]===void 0||t[e+r]===void 0)&&mt(e,t.length-(r+1))}function Qt(t,e,r,o,c,h){if(t>r||t<e){const m=typeof e=="bigint"?"n":"";let x;throw e===0||e===BigInt(0)?x=`>= 0${m} and < 2${m} ** ${(h+1)*8}${m}`:x=`>= -(2${m} ** ${(h+1)*8-1}${m}) and < 2 ** ${(h+1)*8-1}${m}`,new ht.ERR_OUT_OF_RANGE("value",x,t)}Te(o,c,h)}function pt(t,e){if(typeof t!="number")throw new ht.ERR_INVALID_ARG_TYPE(e,"number",t)}function mt(t,e,r){throw Math.floor(t)!==t?(pt(t,r),new ht.ERR_OUT_OF_RANGE("offset","an integer",t)):e<0?new ht.ERR_BUFFER_OUT_OF_BOUNDS:new ht.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${e}`,t)}const me=/[^+/0-9A-Za-z-_]/g;function Ie(t){if(t=t.split("=")[0],t=t.trim().replace(me,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function Ot(t,e){e=e||1/0;let r;const o=t.length;let c=null;const h=[];for(let m=0;m<o;++m){if(r=t.charCodeAt(m),r>55295&&r<57344){if(!c){if(r>56319){(e-=3)>-1&&h.push(239,191,189);continue}else if(m+1===o){(e-=3)>-1&&h.push(239,191,189);continue}c=r;continue}if(r<56320){(e-=3)>-1&&h.push(239,191,189),c=r;continue}r=(c-55296<<10|r-56320)+65536}else c&&(e-=3)>-1&&h.push(239,191,189);if(c=null,r<128){if((e-=1)<0)break;h.push(r)}else if(r<2048){if((e-=2)<0)break;h.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;h.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;h.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return h}function ye(t){const e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function Ne(t,e){let r,o,c;const h=[];for(let m=0;m<t.length&&!((e-=2)<0);++m)r=t.charCodeAt(m),o=r>>8,c=r%256,h.push(c),h.push(o);return h}function Wt(t){return d.toByteArray(Ie(t))}function Nt(t,e,r,o){let c;for(c=0;c<o&&!(c+r>=e.length||c>=t.length);++c)e[c+r]=t[c];return c}function ot(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function _t(t){return t!==t}const be=function(){const t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){const o=r*16;for(let c=0;c<16;++c)e[o+c]=t[r]+t[c]}return e}();function ct(t){return typeof BigInt>"u"?we:t}function we(){throw new Error("BigInt not supported")}}(f);const p=f.Buffer;I.Blob=f.Blob,I.BlobOptions=f.BlobOptions,I.Buffer=f.Buffer,I.File=f.File,I.FileOptions=f.FileOptions,I.INSPECT_MAX_BYTES=f.INSPECT_MAX_BYTES,I.SlowBuffer=f.SlowBuffer,I.TranscodeEncoding=f.TranscodeEncoding,I.atob=f.atob,I.btoa=f.btoa,I.constants=f.constants,I.default=p,I.isAscii=f.isAscii,I.isUtf8=f.isUtf8,I.kMaxLength=f.kMaxLength,I.kStringMaxLength=f.kStringMaxLength,I.resolveObjectURL=f.resolveObjectURL,I.transcode=f.transcode}(zt)),zt}var Zt;function Le(){return Zt||(Zt=1,function(I,f){var y=_e(),A=y.Buffer;function _(w,S){for(var T in w)S[T]=w[T]}A.from&&A.alloc&&A.allocUnsafe&&A.allocUnsafeSlow?I.exports=y:(_(y,f),f.Buffer=B);function B(w,S,T){return A(w,S,T)}B.prototype=Object.create(A.prototype),_(A,B),B.from=function(w,S,T){if(typeof w=="number")throw new TypeError("Argument must not be a number");return A(w,S,T)},B.alloc=function(w,S,T){if(typeof w!="number")throw new TypeError("Argument must be a number");var l=A(w);return S!==void 0?typeof T=="string"?l.fill(S,T):l.fill(S):l.fill(0),l},B.allocUnsafe=function(w){if(typeof w!="number")throw new TypeError("Argument must be a number");return A(w)},B.allocUnsafeSlow=function(w){if(typeof w!="number")throw new TypeError("Argument must be a number");return y.SlowBuffer(w)}}(St,St.exports)),St.exports}var Jt;function ve(){if(Jt)return vt;Jt=1;var I=Le().Buffer,f=I.isEncoding||function(p){switch(p=""+p,p&&p.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function y(p){if(!p)return"utf8";for(var g;;)switch(p){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return p;default:if(g)return;p=(""+p).toLowerCase(),g=!0}}function A(p){var g=y(p);if(typeof g!="string"&&(I.isEncoding===f||!f(p)))throw new Error("Unknown encoding: "+p);return g||p}vt.StringDecoder=_;function _(p){this.encoding=A(p);var g;switch(this.encoding){case"utf16le":this.text=D,this.end=P,g=4;break;case"utf8":this.fillLast=T,g=4;break;case"base64":this.text=X,this.end=R,g=3;break;default:this.write=et,this.end=k;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=I.allocUnsafe(g)}_.prototype.write=function(p){if(p.length===0)return"";var g,d;if(this.lastNeed){if(g=this.fillLast(p),g===void 0)return"";d=this.lastNeed,this.lastNeed=0}else d=0;return d<p.length?g?g+this.text(p,d):this.text(p,d):g||""},_.prototype.end=L,_.prototype.text=l,_.prototype.fillLast=function(p){if(this.lastNeed<=p.length)return p.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);p.copy(this.lastChar,this.lastTotal-this.lastNeed,0,p.length),this.lastNeed-=p.length};function B(p){return p<=127?0:p>>5===6?2:p>>4===14?3:p>>3===30?4:p>>6===2?-1:-2}function w(p,g,d){var N=g.length-1;if(N<d)return 0;var O=B(g[N]);return O>=0?(O>0&&(p.lastNeed=O-1),O):--N<d||O===-2?0:(O=B(g[N]),O>=0?(O>0&&(p.lastNeed=O-2),O):--N<d||O===-2?0:(O=B(g[N]),O>=0?(O>0&&(O===2?O=0:p.lastNeed=O-3),O):0))}function S(p,g,d){if((g[0]&192)!==128)return p.lastNeed=0,"<22>";if(p.lastNeed>1&&g.length>1){if((g[1]&192)!==128)return p.lastNeed=1,"<22>";if(p.lastNeed>2&&g.length>2&&(g[2]&192)!==128)return p.lastNeed=2,"<22>"}}function T(p){var g=this.lastTotal-this.lastNeed,d=S(this,p);if(d!==void 0)return d;if(this.lastNeed<=p.length)return p.copy(this.lastChar,g,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);p.copy(this.lastChar,g,0,p.length),this.lastNeed-=p.length}function l(p,g){var d=w(this,p,g);if(!this.lastNeed)return p.toString("utf8",g);this.lastTotal=d;var N=p.length-(d-this.lastNeed);return p.copy(this.lastChar,0,N),p.toString("utf8",g,N)}function L(p){var g=p&&p.length?this.write(p):"";return this.lastNeed?g+"<22>":g}function D(p,g){if((p.length-g)%2===0){var d=p.toString("utf16le",g);if(d){var N=d.charCodeAt(d.length-1);if(N>=55296&&N<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1],d.slice(0,-1)}return d}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=p[p.length-1],p.toString("utf16le",g,p.length-1)}function P(p){var g=p&&p.length?this.write(p):"";if(this.lastNeed){var d=this.lastTotal-this.lastNeed;return g+this.lastChar.toString("utf16le",0,d)}return g}function X(p,g){var d=(p.length-g)%3;return d===0?p.toString("base64",g):(this.lastNeed=3-d,this.lastTotal=3,d===1?this.lastChar[0]=p[p.length-1]:(this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1]),p.toString("base64",g,p.length-d))}function R(p){var g=p&&p.length?this.write(p):"";return this.lastNeed?g+this.lastChar.toString("base64",0,3-this.lastNeed):g}function et(p){return p.toString(this.encoding)}function k(p){return p&&p.length?this.write(p):""}return vt}var Se=ve();const De=Oe(Se);var Dt={},te,ee;function Ee(){return ee||(ee=1,te=typeof Ae=="object"&&Dt&&Dt.NODE_DEBUG&&/\bsemver\b/i.test(Dt.NODE_DEBUG)?(...I)=>console.error("SEMVER",...I):()=>{}),te}var Bt,re;function ge(){if(re)return Bt;re=1;const I="2.0.0",f=256,y=Number.MAX_SAFE_INTEGER||9007199254740991,A=16,_=f-6;return Bt={MAX_LENGTH:f,MAX_SAFE_COMPONENT_LENGTH:A,MAX_SAFE_BUILD_LENGTH:_,MAX_SAFE_INTEGER:y,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:I,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Bt}var Ct={exports:{}},ne;function Be(){return ne||(ne=1,function(I,f){const{MAX_SAFE_COMPONENT_LENGTH:y,MAX_SAFE_BUILD_LENGTH:A,MAX_LENGTH:_}=ge(),B=Ee();f=I.exports={};const w=f.re=[],S=f.safeRe=[],T=f.src=[],l=f.t={};let L=0;const D="[a-zA-Z0-9-]",P=[["\\s",1],["\\d",_],[D,A]],X=et=>{for(const[k,p]of P)et=et.split(`${k}*`).join(`${k}{0,${p}}`).split(`${k}+`).join(`${k}{1,${p}}`);return et},R=(et,k,p)=>{const g=X(k),d=L++;B(et,d,k),l[et]=d,T[d]=k,w[d]=new RegExp(k,p?"g":void 0),S[d]=new RegExp(g,p?"g":void 0)};R("NUMERICIDENTIFIER","0|[1-9]\\d*"),R("NUMERICIDENTIFIERLOOSE","\\d+"),R("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${D}*`),R("MAINVERSION",`(${T[l.NUMERICIDENTIFIER]})\\.(${T[l.NUMERICIDENTIFIER]})\\.(${T[l.NUMERICIDENTIFIER]})`),R("MAINVERSIONLOOSE",`(${T[l.NUMERICIDENTIFIERLOOSE]})\\.(${T[l.NUMERICIDENTIFIERLOOSE]})\\.(${T[l.NUMERICIDENTIFIERLOOSE]})`),R("PRERELEASEIDENTIFIER",`(?:${T[l.NUMERICIDENTIFIER]}|${T[l.NONNUMERICIDENTIFIER]})`),R("PRERELEASEIDENTIFIERLOOSE",`(?:${T[l.NUMERICIDENTIFIERLOOSE]}|${T[l.NONNUMERICIDENTIFIER]})`),R("PRERELEASE",`(?:-(${T[l.PRERELEASEIDENTIFIER]}(?:\\.${T[l.PRERELEASEIDENTIFIER]})*))`),R("PRERELEASELOOSE",`(?:-?(${T[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${T[l.PRERELEASEIDENTIFIERLOOSE]})*))`),R("BUILDIDENTIFIER",`${D}+`),R("BUILD",`(?:\\+(${T[l.BUILDIDENTIFIER]}(?:\\.${T[l.BUILDIDENTIFIER]})*))`),R("FULLPLAIN",`v?${T[l.MAINVERSION]}${T[l.PRERELEASE]}?${T[l.BUILD]}?`),R("FULL",`^${T[l.FULLPLAIN]}$`),R("LOOSEPLAIN",`[v=\\s]*${T[l.MAINVERSIONLOOSE]}${T[l.PRERELEASELOOSE]}?${T[l.BUILD]}?`),R("LOOSE",`^${T[l.LOOSEPLAIN]}$`),R("GTLT","((?:<|>)?=?)"),R("XRANGEIDENTIFIERLOOSE",`${T[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),R("XRANGEIDENTIFIER",`${T[l.NUMERICIDENTIFIER]}|x|X|\\*`),R("XRANGEPLAIN",`[v=\\s]*(${T[l.XRANGEIDENTIFIER]})(?:\\.(${T[l.XRANGEIDENTIFIER]})(?:\\.(${T[l.XRANGEIDENTIFIER]})(?:${T[l.PRERELEASE]})?${T[l.BUILD]}?)?)?`),R("XRANGEPLAINLOOSE",`[v=\\s]*(${T[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${T[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${T[l.XRANGEIDENTIFIERLOOSE]})(?:${T[l.PRERELEASELOOSE]})?${T[l.BUILD]}?)?)?`),R("XRANGE",`^${T[l.GTLT]}\\s*${T[l.XRANGEPLAIN]}$`),R("XRANGELOOSE",`^${T[l.GTLT]}\\s*${T[l.XRANGEPLAINLOOSE]}$`),R("COERCEPLAIN",`(^|[^\\d])(\\d{1,${y}})(?:\\.(\\d{1,${y}}))?(?:\\.(\\d{1,${y}}))?`),R("COERCE",`${T[l.COERCEPLAIN]}(?:$|[^\\d])`),R("COERCEFULL",T[l.COERCEPLAIN]+`(?:${T[l.PRERELEASE]})?(?:${T[l.BUILD]})?(?:$|[^\\d])`),R("COERCERTL",T[l.COERCE],!0),R("COERCERTLFULL",T[l.COERCEFULL],!0),R("LONETILDE","(?:~>?)"),R("TILDETRIM",`(\\s*)${T[l.LONETILDE]}\\s+`,!0),f.tildeTrimReplace="$1~",R("TILDE",`^${T[l.LONETILDE]}${T[l.XRANGEPLAIN]}$`),R("TILDELOOSE",`^${T[l.LONETILDE]}${T[l.XRANGEPLAINLOOSE]}$`),R("LONECARET","(?:\\^)"),R("CARETTRIM",`(\\s*)${T[l.LONECARET]}\\s+`,!0),f.caretTrimReplace="$1^",R("CARET",`^${T[l.LONECARET]}${T[l.XRANGEPLAIN]}$`),R("CARETLOOSE",`^${T[l.LONECARET]}${T[l.XRANGEPLAINLOOSE]}$`),R("COMPARATORLOOSE",`^${T[l.GTLT]}\\s*(${T[l.LOOSEPLAIN]})$|^$`),R("COMPARATOR",`^${T[l.GTLT]}\\s*(${T[l.FULLPLAIN]})$|^$`),R("COMPARATORTRIM",`(\\s*)${T[l.GTLT]}\\s*(${T[l.LOOSEPLAIN]}|${T[l.XRANGEPLAIN]})`,!0),f.comparatorTrimReplace="$1$2$3",R("HYPHENRANGE",`^\\s*(${T[l.XRANGEPLAIN]})\\s+-\\s+(${T[l.XRANGEPLAIN]})\\s*$`),R("HYPHENRANGELOOSE",`^\\s*(${T[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${T[l.XRANGEPLAINLOOSE]})\\s*$`),R("STAR","(<|>)?=?\\s*\\*"),R("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),R("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(Ct,Ct.exports)),Ct.exports}var Ft,ie;function Ce(){if(ie)return Ft;ie=1;const I=Object.freeze({loose:!0}),f=Object.freeze({});return Ft=y=>y?typeof y!="object"?I:y:f,Ft}var Ut,oe;function Fe(){if(oe)return Ut;oe=1;const I=/^[0-9]+$/,f=(y,A)=>{const _=I.test(y),B=I.test(A);return _&&B&&(y=+y,A=+A),y===A?0:_&&!B?-1:B&&!_?1:y<A?-1:1};return Ut={compareIdentifiers:f,rcompareIdentifiers:(y,A)=>f(A,y)},Ut}var Pt,se;function de(){if(se)return Pt;se=1;const I=Ee(),{MAX_LENGTH:f,MAX_SAFE_INTEGER:y}=ge(),{safeRe:A,t:_}=Be(),B=Ce(),{compareIdentifiers:w}=Fe();class S{constructor(l,L){if(L=B(L),l instanceof S){if(l.loose===!!L.loose&&l.includePrerelease===!!L.includePrerelease)return l;l=l.version}else if(typeof l!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof l}".`);if(l.length>f)throw new TypeError(`version is longer than ${f} characters`);I("SemVer",l,L),this.options=L,this.loose=!!L.loose,this.includePrerelease=!!L.includePrerelease;const D=l.trim().match(L.loose?A[_.LOOSE]:A[_.FULL]);if(!D)throw new TypeError(`Invalid Version: ${l}`);if(this.raw=l,this.major=+D[1],this.minor=+D[2],this.patch=+D[3],this.major>y||this.major<0)throw new TypeError("Invalid major version");if(this.minor>y||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>y||this.patch<0)throw new TypeError("Invalid patch version");D[4]?this.prerelease=D[4].split(".").map(P=>{if(/^[0-9]+$/.test(P)){const X=+P;if(X>=0&&X<y)return X}return P}):this.prerelease=[],this.build=D[5]?D[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(l){if(I("SemVer.compare",this.version,this.options,l),!(l instanceof S)){if(typeof l=="string"&&l===this.version)return 0;l=new S(l,this.options)}return l.version===this.version?0:this.compareMain(l)||this.comparePre(l)}compareMain(l){return l instanceof S||(l=new S(l,this.options)),w(this.major,l.major)||w(this.minor,l.minor)||w(this.patch,l.patch)}comparePre(l){if(l instanceof S||(l=new S(l,this.options)),this.prerelease.length&&!l.prerelease.length)return-1;if(!this.prerelease.length&&l.prerelease.length)return 1;if(!this.prerelease.length&&!l.prerelease.length)return 0;let L=0;do{const D=this.prerelease[L],P=l.prerelease[L];if(I("prerelease compare",L,D,P),D===void 0&&P===void 0)return 0;if(P===void 0)return 1;if(D===void 0)return-1;if(D!==P)return w(D,P)}while(++L)}compareBuild(l){l instanceof S||(l=new S(l,this.options));let L=0;do{const D=this.build[L],P=l.build[L];if(I("build compare",L,D,P),D===void 0&&P===void 0)return 0;if(P===void 0)return 1;if(D===void 0)return-1;if(D!==P)return w(D,P)}while(++L)}inc(l,L,D){switch(l){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",L,D);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",L,D);break;case"prepatch":this.prerelease.length=0,this.inc("patch",L,D),this.inc("pre",L,D);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",L,D),this.inc("pre",L,D);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const P=Number(D)?1:0;if(!L&&D===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[P];else{let X=this.prerelease.length;for(;--X>=0;)typeof this.prerelease[X]=="number"&&(this.prerelease[X]++,X=-2);if(X===-1){if(L===this.prerelease.join(".")&&D===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(P)}}if(L){let X=[L,P];D===!1&&(X=[L]),w(this.prerelease[0],L)===0?isNaN(this.prerelease[1])&&(this.prerelease=X):this.prerelease=X}break}default:throw new Error(`invalid increment argument: ${l}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return Pt=S,Pt}var Mt,ae;function Ue(){if(ae)return Mt;ae=1;const I=de();return Mt=(f,y,A=!1)=>{if(f instanceof I)return f;try{return new I(f,y)}catch(_){if(!A)return null;throw _}},Mt}var $t,ue;function Pe(){if(ue)return $t;ue=1;const I=Ue();return $t=(f,y)=>{const A=I(f,y);return A?A.version:null},$t}Pe();var xt,ce;function Me(){if(ce)return xt;ce=1;const I=de();return xt=(f,y)=>new I(f,y).major,xt}Me();class Qe{_header;constructor(f){this.validateHeader(f),this._header=f}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(f){if(!f.id||!f.render||!f.updated)throw new Error("Invalid header: id, render and updated are required");if(typeof f.id!="string")throw new Error("Invalid id property");if(f.enabled!==void 0&&typeof f.enabled!="function")throw new Error("Invalid enabled property");if(f.render&&typeof f.render!="function")throw new Error("Invalid render property");if(f.updated&&typeof f.updated!="function")throw new Error("Invalid updated property")}}const We=function(I){if(typeof window._nc_filelistheader>"u"&&(window._nc_filelistheader=[],bt.debug("FileListHeaders initialized")),window._nc_filelistheader.find(f=>f.id===I.id)){bt.error(`Header ${I.id} already registered`,{header:I});return}window._nc_filelistheader.push(I)};var fe={},le;function $e(){return le||(le=1,function(I){(function(f){f.parser=function(i,n){return new A(i,n)},f.SAXParser=A,f.SAXStream=L,f.createStream=l,f.MAX_BUFFER_LENGTH=64*1024;var y=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];f.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function A(i,n){if(!(this instanceof A))return new A(i,n);var E=this;B(E),E.q=E.c="",E.bufferCheckPosition=f.MAX_BUFFER_LENGTH,E.opt=n||{},E.opt.lowercase=E.opt.lowercase||E.opt.lowercasetags,E.looseCase=E.opt.lowercase?"toLowerCase":"toUpperCase",E.tags=[],E.closed=E.closedRoot=E.sawRoot=!1,E.tag=E.error=null,E.strict=!!i,E.noscript=!!(i||E.opt.noscript),E.state=s.BEGIN,E.strictEntities=E.opt.strictEntities,E.ENTITIES=E.strictEntities?Object.create(f.XML_ENTITIES):Object.create(f.ENTITIES),E.attribList=[],E.opt.xmlns&&(E.ns=Object.create(et)),E.opt.unquotedAttributeValues===void 0&&(E.opt.unquotedAttributeValues=!i),E.trackPosition=E.opt.position!==!1,E.trackPosition&&(E.position=E.line=E.column=0),V(E,"onready")}Object.create||(Object.create=function(i){function n(){}n.prototype=i;var E=new n;return E}),Object.keys||(Object.keys=function(i){var n=[];for(var E in i)i.hasOwnProperty(E)&&n.push(E);return n});function _(i){for(var n=Math.max(f.MAX_BUFFER_LENGTH,10),E=0,a=0,U=y.length;a<U;a++){var Y=i[y[a]].length;if(Y>n)switch(y[a]){case"textNode":j(i);break;case"cdata":u(i,"oncdata",i.cdata),i.cdata="";break;case"script":u(i,"onscript",i.script),i.script="";break;default:z(i,"Max buffer length exceeded: "+y[a])}E=Math.max(E,Y)}var q=f.MAX_BUFFER_LENGTH-E;i.bufferCheckPosition=q+i.position}function B(i){for(var n=0,E=y.length;n<E;n++)i[y[n]]=""}function w(i){j(i),i.cdata!==""&&(u(i,"oncdata",i.cdata),i.cdata=""),i.script!==""&&(u(i,"onscript",i.script),i.script="")}A.prototype={end:function(){it(this)},write:at,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){w(this)}};var S;try{S=require("stream").Stream}catch{S=function(){}}S||(S=function(){});var T=f.EVENTS.filter(function(i){return i!=="error"&&i!=="end"});function l(i,n){return new L(i,n)}function L(i,n){if(!(this instanceof L))return new L(i,n);S.apply(this),this._parser=new A(i,n),this.writable=!0,this.readable=!0;var E=this;this._parser.onend=function(){E.emit("end")},this._parser.onerror=function(a){E.emit("error",a),E._parser.error=null},this._decoder=null,T.forEach(function(a){Object.defineProperty(E,"on"+a,{get:function(){return E._parser["on"+a]},set:function(U){if(!U)return E.removeAllListeners(a),E._parser["on"+a]=U,U;E.on(a,U)},enumerable:!0,configurable:!1})})}L.prototype=Object.create(S.prototype,{constructor:{value:L}}),L.prototype.write=function(i){if(typeof Lt=="function"&&typeof Lt.isBuffer=="function"&&Lt.isBuffer(i)){if(!this._decoder){var n=De.StringDecoder;this._decoder=new n("utf8")}i=this._decoder.write(i)}return this._parser.write(i.toString()),this.emit("data",i),!0},L.prototype.end=function(i){return i&&i.length&&this.write(i),this._parser.end(),!0},L.prototype.on=function(i,n){var E=this;return!E._parser["on"+i]&&T.indexOf(i)!==-1&&(E._parser["on"+i]=function(){var a=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);a.splice(0,0,i),E.emit.apply(E,a)}),S.prototype.on.call(E,i,n)};var D="[CDATA[",P="DOCTYPE",X="http://www.w3.org/XML/1998/namespace",R="http://www.w3.org/2000/xmlns/",et={xml:X,xmlns:R},k=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,p=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,g=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,d=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function N(i){return i===" "||i===`
|
||
`||i==="\r"||i===" "}function O(i){return i==='"'||i==="'"}function C(i){return i===">"||N(i)}function b(i,n){return i.test(n)}function v(i,n){return!b(i,n)}var s=0;f.STATE={BEGIN:s++,BEGIN_WHITESPACE:s++,TEXT:s++,TEXT_ENTITY:s++,OPEN_WAKA:s++,SGML_DECL:s++,SGML_DECL_QUOTED:s++,DOCTYPE:s++,DOCTYPE_QUOTED:s++,DOCTYPE_DTD:s++,DOCTYPE_DTD_QUOTED:s++,COMMENT_STARTING:s++,COMMENT:s++,COMMENT_ENDING:s++,COMMENT_ENDED:s++,CDATA:s++,CDATA_ENDING:s++,CDATA_ENDING_2:s++,PROC_INST:s++,PROC_INST_BODY:s++,PROC_INST_ENDING:s++,OPEN_TAG:s++,OPEN_TAG_SLASH:s++,ATTRIB:s++,ATTRIB_NAME:s++,ATTRIB_NAME_SAW_WHITE:s++,ATTRIB_VALUE:s++,ATTRIB_VALUE_QUOTED:s++,ATTRIB_VALUE_CLOSED:s++,ATTRIB_VALUE_UNQUOTED:s++,ATTRIB_VALUE_ENTITY_Q:s++,ATTRIB_VALUE_ENTITY_U:s++,CLOSE_TAG:s++,CLOSE_TAG_SAW_WHITE:s++,SCRIPT:s++,SCRIPT_ENDING:s++},f.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},f.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(f.ENTITIES).forEach(function(i){var n=f.ENTITIES[i],E=typeof n=="number"?String.fromCharCode(n):n;f.ENTITIES[i]=E});for(var M in f.STATE)f.STATE[f.STATE[M]]=M;s=f.STATE;function V(i,n,E){i[n]&&i[n](E)}function u(i,n,E){i.textNode&&j(i),V(i,n,E)}function j(i){i.textNode=rt(i.opt,i.textNode),i.textNode&&V(i,"ontext",i.textNode),i.textNode=""}function rt(i,n){return i.trim&&(n=n.trim()),i.normalize&&(n=n.replace(/\s+/g," ")),n}function z(i,n){return j(i),i.trackPosition&&(n+=`
|
||
Line: `+i.line+`
|
||
Column: `+i.column+`
|
||
Char: `+i.c),n=new Error(n),i.error=n,V(i,"onerror",n),i}function it(i){return i.sawRoot&&!i.closedRoot&&F(i,"Unclosed root tag"),i.state!==s.BEGIN&&i.state!==s.BEGIN_WHITESPACE&&i.state!==s.TEXT&&z(i,"Unexpected end"),j(i),i.c="",i.closed=!0,V(i,"onend"),A.call(i,i.strict,i.opt),i}function F(i,n){if(typeof i!="object"||!(i instanceof A))throw new Error("bad call to strictFail");i.strict&&z(i,n)}function Et(i){i.strict||(i.tagName=i.tagName[i.looseCase]());var n=i.tags[i.tags.length-1]||i,E=i.tag={name:i.tagName,attributes:{}};i.opt.xmlns&&(E.ns=n.ns),i.attribList.length=0,u(i,"onopentagstart",E)}function gt(i,n){var E=i.indexOf(":"),a=E<0?["",i]:i.split(":"),U=a[0],Y=a[1];return n&&i==="xmlns"&&(U="xmlns",Y=""),{prefix:U,local:Y}}function lt(i){if(i.strict||(i.attribName=i.attribName[i.looseCase]()),i.attribList.indexOf(i.attribName)!==-1||i.tag.attributes.hasOwnProperty(i.attribName)){i.attribName=i.attribValue="";return}if(i.opt.xmlns){var n=gt(i.attribName,!0),E=n.prefix,a=n.local;if(E==="xmlns")if(a==="xml"&&i.attribValue!==X)F(i,"xml: prefix must be bound to "+X+`
|
||
Actual: `+i.attribValue);else if(a==="xmlns"&&i.attribValue!==R)F(i,"xmlns: prefix must be bound to "+R+`
|
||
Actual: `+i.attribValue);else{var U=i.tag,Y=i.tags[i.tags.length-1]||i;U.ns===Y.ns&&(U.ns=Object.create(Y.ns)),U.ns[a]=i.attribValue}i.attribList.push([i.attribName,i.attribValue])}else i.tag.attributes[i.attribName]=i.attribValue,u(i,"onattribute",{name:i.attribName,value:i.attribValue});i.attribName=i.attribValue=""}function st(i,n){if(i.opt.xmlns){var E=i.tag,a=gt(i.tagName);E.prefix=a.prefix,E.local=a.local,E.uri=E.ns[a.prefix]||"",E.prefix&&!E.uri&&(F(i,"Unbound namespace prefix: "+JSON.stringify(i.tagName)),E.uri=a.prefix);var U=i.tags[i.tags.length-1]||i;E.ns&&U.ns!==E.ns&&Object.keys(E.ns).forEach(function(H){u(i,"onopennamespace",{prefix:H,uri:E.ns[H]})});for(var Y=0,q=i.attribList.length;Y<q;Y++){var J=i.attribList[Y],K=J[0],ut=J[1],W=gt(K,!0),nt=W.prefix,At=W.local,yt=nt===""?"":E.ns[nt]||"",Tt={name:K,value:ut,prefix:nt,local:At,uri:yt};nt&&nt!=="xmlns"&&!yt&&(F(i,"Unbound namespace prefix: "+JSON.stringify(nt)),Tt.uri=nt),i.tag.attributes[K]=Tt,u(i,"onattribute",Tt)}i.attribList.length=0}i.tag.isSelfClosing=!!n,i.sawRoot=!0,i.tags.push(i.tag),u(i,"onopentag",i.tag),n||(!i.noscript&&i.tagName.toLowerCase()==="script"?i.state=s.SCRIPT:i.state=s.TEXT,i.tag=null,i.tagName=""),i.attribName=i.attribValue="",i.attribList.length=0}function ft(i){if(!i.tagName){F(i,"Weird empty close tag."),i.textNode+="</>",i.state=s.TEXT;return}if(i.script){if(i.tagName!=="script"){i.script+="</"+i.tagName+">",i.tagName="",i.state=s.SCRIPT;return}u(i,"onscript",i.script),i.script=""}var n=i.tags.length,E=i.tagName;i.strict||(E=E[i.looseCase]());for(var a=E;n--;){var U=i.tags[n];if(U.name!==a)F(i,"Unexpected close tag");else break}if(n<0){F(i,"Unmatched closing tag: "+i.tagName),i.textNode+="</"+i.tagName+">",i.state=s.TEXT;return}i.tagName=E;for(var Y=i.tags.length;Y-- >n;){var q=i.tag=i.tags.pop();i.tagName=i.tag.name,u(i,"onclosetag",i.tagName);var J={};for(var K in q.ns)J[K]=q.ns[K];var ut=i.tags[i.tags.length-1]||i;i.opt.xmlns&&q.ns!==ut.ns&&Object.keys(q.ns).forEach(function(W){var nt=q.ns[W];u(i,"onclosenamespace",{prefix:W,uri:nt})})}n===0&&(i.closedRoot=!0),i.tagName=i.attribValue=i.attribName="",i.attribList.length=0,i.state=s.TEXT}function wt(i){var n=i.entity,E=n.toLowerCase(),a,U="";return i.ENTITIES[n]?i.ENTITIES[n]:i.ENTITIES[E]?i.ENTITIES[E]:(n=E,n.charAt(0)==="#"&&(n.charAt(1)==="x"?(n=n.slice(2),a=parseInt(n,16),U=a.toString(16)):(n=n.slice(1),a=parseInt(n,10),U=a.toString(10))),n=n.replace(/^0+/,""),isNaN(a)||U.toLowerCase()!==n?(F(i,"Invalid character entity"),"&"+i.entity+";"):String.fromCodePoint(a))}function dt(i,n){n==="<"?(i.state=s.OPEN_WAKA,i.startTagPosition=i.position):N(n)||(F(i,"Non-whitespace before first tag."),i.textNode=n,i.state=s.TEXT)}function It(i,n){var E="";return n<i.length&&(E=i.charAt(n)),E}function at(i){var n=this;if(this.error)throw this.error;if(n.closed)return z(n,"Cannot write after close. Assign an onready handler.");if(i===null)return it(n);typeof i=="object"&&(i=i.toString());for(var E=0,a="";a=It(i,E++),n.c=a,!!a;)switch(n.trackPosition&&(n.position++,a===`
|
||
`?(n.line++,n.column=0):n.column++),n.state){case s.BEGIN:if(n.state=s.BEGIN_WHITESPACE,a==="\uFEFF")continue;dt(n,a);continue;case s.BEGIN_WHITESPACE:dt(n,a);continue;case s.TEXT:if(n.sawRoot&&!n.closedRoot){for(var U=E-1;a&&a!=="<"&&a!=="&";)a=It(i,E++),a&&n.trackPosition&&(n.position++,a===`
|
||
`?(n.line++,n.column=0):n.column++);n.textNode+=i.substring(U,E-1)}a==="<"&&!(n.sawRoot&&n.closedRoot&&!n.strict)?(n.state=s.OPEN_WAKA,n.startTagPosition=n.position):(!N(a)&&(!n.sawRoot||n.closedRoot)&&F(n,"Text data outside of root node."),a==="&"?n.state=s.TEXT_ENTITY:n.textNode+=a);continue;case s.SCRIPT:a==="<"?n.state=s.SCRIPT_ENDING:n.script+=a;continue;case s.SCRIPT_ENDING:a==="/"?n.state=s.CLOSE_TAG:(n.script+="<"+a,n.state=s.SCRIPT);continue;case s.OPEN_WAKA:if(a==="!")n.state=s.SGML_DECL,n.sgmlDecl="";else if(!N(a))if(b(k,a))n.state=s.OPEN_TAG,n.tagName=a;else if(a==="/")n.state=s.CLOSE_TAG,n.tagName="";else if(a==="?")n.state=s.PROC_INST,n.procInstName=n.procInstBody="";else{if(F(n,"Unencoded <"),n.startTagPosition+1<n.position){var Y=n.position-n.startTagPosition;a=new Array(Y).join(" ")+a}n.textNode+="<"+a,n.state=s.TEXT}continue;case s.SGML_DECL:if(n.sgmlDecl+a==="--"){n.state=s.COMMENT,n.comment="",n.sgmlDecl="";continue}n.doctype&&n.doctype!==!0&&n.sgmlDecl?(n.state=s.DOCTYPE_DTD,n.doctype+="<!"+n.sgmlDecl+a,n.sgmlDecl=""):(n.sgmlDecl+a).toUpperCase()===D?(u(n,"onopencdata"),n.state=s.CDATA,n.sgmlDecl="",n.cdata=""):(n.sgmlDecl+a).toUpperCase()===P?(n.state=s.DOCTYPE,(n.doctype||n.sawRoot)&&F(n,"Inappropriately located doctype declaration"),n.doctype="",n.sgmlDecl=""):a===">"?(u(n,"onsgmldeclaration",n.sgmlDecl),n.sgmlDecl="",n.state=s.TEXT):(O(a)&&(n.state=s.SGML_DECL_QUOTED),n.sgmlDecl+=a);continue;case s.SGML_DECL_QUOTED:a===n.q&&(n.state=s.SGML_DECL,n.q=""),n.sgmlDecl+=a;continue;case s.DOCTYPE:a===">"?(n.state=s.TEXT,u(n,"ondoctype",n.doctype),n.doctype=!0):(n.doctype+=a,a==="["?n.state=s.DOCTYPE_DTD:O(a)&&(n.state=s.DOCTYPE_QUOTED,n.q=a));continue;case s.DOCTYPE_QUOTED:n.doctype+=a,a===n.q&&(n.q="",n.state=s.DOCTYPE);continue;case s.DOCTYPE_DTD:a==="]"?(n.doctype+=a,n.state=s.DOCTYPE):a==="<"?(n.state=s.OPEN_WAKA,n.startTagPosition=n.position):O(a)?(n.doctype+=a,n.state=s.DOCTYPE_DTD_QUOTED,n.q=a):n.doctype+=a;continue;case s.DOCTYPE_DTD_QUOTED:n.doctype+=a,a===n.q&&(n.state=s.DOCTYPE_DTD,n.q="");continue;case s.COMMENT:a==="-"?n.state=s.COMMENT_ENDING:n.comment+=a;continue;case s.COMMENT_ENDING:a==="-"?(n.state=s.COMMENT_ENDED,n.comment=rt(n.opt,n.comment),n.comment&&u(n,"oncomment",n.comment),n.comment=""):(n.comment+="-"+a,n.state=s.COMMENT);continue;case s.COMMENT_ENDED:a!==">"?(F(n,"Malformed comment"),n.comment+="--"+a,n.state=s.COMMENT):n.doctype&&n.doctype!==!0?n.state=s.DOCTYPE_DTD:n.state=s.TEXT;continue;case s.CDATA:a==="]"?n.state=s.CDATA_ENDING:n.cdata+=a;continue;case s.CDATA_ENDING:a==="]"?n.state=s.CDATA_ENDING_2:(n.cdata+="]"+a,n.state=s.CDATA);continue;case s.CDATA_ENDING_2:a===">"?(n.cdata&&u(n,"oncdata",n.cdata),u(n,"onclosecdata"),n.cdata="",n.state=s.TEXT):a==="]"?n.cdata+="]":(n.cdata+="]]"+a,n.state=s.CDATA);continue;case s.PROC_INST:a==="?"?n.state=s.PROC_INST_ENDING:N(a)?n.state=s.PROC_INST_BODY:n.procInstName+=a;continue;case s.PROC_INST_BODY:if(!n.procInstBody&&N(a))continue;a==="?"?n.state=s.PROC_INST_ENDING:n.procInstBody+=a;continue;case s.PROC_INST_ENDING:a===">"?(u(n,"onprocessinginstruction",{name:n.procInstName,body:n.procInstBody}),n.procInstName=n.procInstBody="",n.state=s.TEXT):(n.procInstBody+="?"+a,n.state=s.PROC_INST_BODY);continue;case s.OPEN_TAG:b(p,a)?n.tagName+=a:(Et(n),a===">"?st(n):a==="/"?n.state=s.OPEN_TAG_SLASH:(N(a)||F(n,"Invalid character in tag name"),n.state=s.ATTRIB));continue;case s.OPEN_TAG_SLASH:a===">"?(st(n,!0),ft(n)):(F(n,"Forward-slash in opening tag not followed by >"),n.state=s.ATTRIB);continue;case s.ATTRIB:if(N(a))continue;a===">"?st(n):a==="/"?n.state=s.OPEN_TAG_SLASH:b(k,a)?(n.attribName=a,n.attribValue="",n.state=s.ATTRIB_NAME):F(n,"Invalid attribute name");continue;case s.ATTRIB_NAME:a==="="?n.state=s.ATTRIB_VALUE:a===">"?(F(n,"Attribute without value"),n.attribValue=n.attribName,lt(n),st(n)):N(a)?n.state=s.ATTRIB_NAME_SAW_WHITE:b(p,a)?n.attribName+=a:F(n,"Invalid attribute name");continue;case s.ATTRIB_NAME_SAW_WHITE:if(a==="=")n.state=s.ATTRIB_VALUE;else{if(N(a))continue;F(n,"Attribute without value"),n.tag.attributes[n.attribName]="",n.attribValue="",u(n,"onattribute",{name:n.attribName,value:""}),n.attribName="",a===">"?st(n):b(k,a)?(n.attribName=a,n.state=s.ATTRIB_NAME):(F(n,"Invalid attribute name"),n.state=s.ATTRIB)}continue;case s.ATTRIB_VALUE:if(N(a))continue;O(a)?(n.q=a,n.state=s.ATTRIB_VALUE_QUOTED):(n.opt.unquotedAttributeValues||z(n,"Unquoted attribute value"),n.state=s.ATTRIB_VALUE_UNQUOTED,n.attribValue=a);continue;case s.ATTRIB_VALUE_QUOTED:if(a!==n.q){a==="&"?n.state=s.ATTRIB_VALUE_ENTITY_Q:n.attribValue+=a;continue}lt(n),n.q="",n.state=s.ATTRIB_VALUE_CLOSED;continue;case s.ATTRIB_VALUE_CLOSED:N(a)?n.state=s.ATTRIB:a===">"?st(n):a==="/"?n.state=s.OPEN_TAG_SLASH:b(k,a)?(F(n,"No whitespace between attributes"),n.attribName=a,n.attribValue="",n.state=s.ATTRIB_NAME):F(n,"Invalid attribute name");continue;case s.ATTRIB_VALUE_UNQUOTED:if(!C(a)){a==="&"?n.state=s.ATTRIB_VALUE_ENTITY_U:n.attribValue+=a;continue}lt(n),a===">"?st(n):n.state=s.ATTRIB;continue;case s.CLOSE_TAG:if(n.tagName)a===">"?ft(n):b(p,a)?n.tagName+=a:n.script?(n.script+="</"+n.tagName,n.tagName="",n.state=s.SCRIPT):(N(a)||F(n,"Invalid tagname in closing tag"),n.state=s.CLOSE_TAG_SAW_WHITE);else{if(N(a))continue;v(k,a)?n.script?(n.script+="</"+a,n.state=s.SCRIPT):F(n,"Invalid tagname in closing tag."):n.tagName=a}continue;case s.CLOSE_TAG_SAW_WHITE:if(N(a))continue;a===">"?ft(n):F(n,"Invalid characters in closing tag");continue;case s.TEXT_ENTITY:case s.ATTRIB_VALUE_ENTITY_Q:case s.ATTRIB_VALUE_ENTITY_U:var q,J;switch(n.state){case s.TEXT_ENTITY:q=s.TEXT,J="textNode";break;case s.ATTRIB_VALUE_ENTITY_Q:q=s.ATTRIB_VALUE_QUOTED,J="attribValue";break;case s.ATTRIB_VALUE_ENTITY_U:q=s.ATTRIB_VALUE_UNQUOTED,J="attribValue";break}if(a===";"){var K=wt(n);n.opt.unparsedEntities&&!Object.values(f.XML_ENTITIES).includes(K)?(n.entity="",n.state=q,n.write(K)):(n[J]+=K,n.entity="",n.state=q)}else b(n.entity.length?d:g,a)?n.entity+=a:(F(n,"Invalid character in entity name"),n[J]+="&"+n.entity+a,n.entity="",n.state=q);continue;default:throw new Error(n,"Unknown state: "+n.state)}return n.position>=n.bufferCheckPosition&&_(n),n}String.fromCodePoint||function(){var i=String.fromCharCode,n=Math.floor,E=function(){var a=16384,U=[],Y,q,J=-1,K=arguments.length;if(!K)return"";for(var ut="";++J<K;){var W=Number(arguments[J]);if(!isFinite(W)||W<0||W>1114111||n(W)!==W)throw RangeError("Invalid code point: "+W);W<=65535?U.push(W):(W-=65536,Y=(W>>10)+55296,q=W%1024+56320,U.push(Y,q)),(J+1===K||U.length>a)&&(ut+=i.apply(null,U),U.length=0)}return ut};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:E,configurable:!0,writable:!0}):String.fromCodePoint=E}()})(I)}(fe)),fe}$e();var xe=(I=>(I[I.UploadFromDevice=0]="UploadFromDevice",I[I.CreateNew=1]="CreateNew",I[I.Other=2]="Other",I))(xe||{});class Ge{_entries=[];registerEntry(f){this.validateEntry(f),f.category=f.category??1,this._entries.push(f)}unregisterEntry(f){const y=typeof f=="string"?this.getEntryIndex(f):this.getEntryIndex(f.id);if(y===-1){bt.warn("Entry not found, nothing removed",{entry:f,entries:this.getEntries()});return}this._entries.splice(y,1)}getEntries(f){return f?this._entries.filter(y=>typeof y.enabled=="function"?y.enabled(f):!0):this._entries}getEntryIndex(f){return this._entries.findIndex(y=>y.id===f)}validateEntry(f){if(!f.id||!f.displayName||!(f.iconSvgInline||f.iconClass)||!f.handler)throw new Error("Invalid entry");if(typeof f.id!="string"||typeof f.displayName!="string")throw new Error("Invalid id or displayName property");if(f.iconClass&&typeof f.iconClass!="string"||f.iconSvgInline&&typeof f.iconSvgInline!="string")throw new Error("Invalid icon provided");if(f.enabled!==void 0&&typeof f.enabled!="function")throw new Error("Invalid enabled property");if(typeof f.handler!="function")throw new Error("Invalid handler property");if("order"in f&&typeof f.order!="number")throw new Error("Invalid order property");if(this.getEntryIndex(f.id)!==-1)throw new Error("Duplicate entry")}}function Xe(){return typeof window._nc_newfilemenu>"u"&&(window._nc_newfilemenu=new Ge,bt.debug("NewFileMenu initialized")),window._nc_newfilemenu}function ze(I){return Xe().registerEntry(I)}const Gt=["B","KB","MB","GB","TB","PB"],Xt=["B","KiB","MiB","GiB","TiB","PiB"];function Ke(I,f=!1,y=!1,A=!1){y=y&&!A,typeof I=="string"&&(I=Number(I));let _=I>0?Math.floor(Math.log(I)/Math.log(A?1e3:1024)):0;_=Math.min((y?Xt.length:Gt.length)-1,_);const B=y?Xt[_]:Gt[_];let w=(I/Math.pow(A?1e3:1024,_)).toFixed(1);return f===!0&&_===0?(w!=="0.0"?"< 1 ":"0 ")+(y?Xt[1]:Gt[1]):(_<2?w=parseFloat(w).toFixed(0):w=parseFloat(w).toLocaleString(pe()),w+" "+B)}function he(I){return I instanceof Date?I.toISOString():String(I)}function Ve(I,f,y){f=f??[B=>B],y=y??[];const A=f.map((B,w)=>(y[w]??"asc")==="asc"?1:-1),_=Intl.Collator([Re(),pe()],{numeric:!0,usage:"sort"});return[...I].sort((B,w)=>{for(const[S,T]of f.entries()){const l=_.compare(he(T(B)),he(T(w)));if(l!==0)return l*A[S]}return 0})}function Ze(I,f={}){const y={sortingMode:"basename",sortingOrder:"asc",...f},A=w=>w.lastIndexOf(".")>0?w.slice(0,w.lastIndexOf(".")):w,_=[...y.sortFavoritesFirst?[w=>w.attributes?.favorite!==1]:[],...y.sortFoldersFirst?[w=>w.type!=="folder"]:[],...y.sortingMode!=="basename"?[w=>w[y.sortingMode]??w.attributes[y.sortingMode]]:[],w=>A(w.displayname||w.attributes?.displayname||w.basename||""),w=>w.basename],B=[...y.sortFavoritesFirst?["asc"]:[],...y.sortFoldersFirst?["asc"]:[],...y.sortingMode==="mtime"?[y.sortingOrder==="asc"?"desc":"asc"]:[],...y.sortingMode!=="mtime"&&y.sortingMode!=="basename"?[y.sortingOrder]:[],y.sortingOrder,y.sortingOrder];return Ve(I,_,B)}export{Qe as H,xe as N,ze as a,Ke as f,We as r,Ze as s};
|
||
//# sourceMappingURL=index-BsHmGXxZ.chunk.mjs.map
|