(()=>{var e={251:(e,t)=>{t.read=function(e,t,r,n,o){var i,s,a=8*o-n-1,c=(1<>1,u=-7,f=r?o-1:0,h=r?-1:1,p=e[t+f];for(f+=h,i=p&(1<<-u)-1,p>>=-u,u+=a;u>0;i=256*i+e[t+f],f+=h,u-=8);for(s=i&(1<<-u)-1,i>>=-u,u+=n;u>0;s=256*s+e[t+f],f+=h,u-=8);if(0===i)i=1-l;else{if(i===c)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),i-=l}return(p?-1:1)*s*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var s,a,c,l=8*i-o-1,u=(1<>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,d=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+f>=1?h/c:h*Math.pow(2,1-f))*c>=2&&(s++,c/=2),s+f>=u?(a=0,s=u):s+f>=1?(a=(t*c-1)*Math.pow(2,o),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;e[r+p]=255&a,p+=d,a/=256,o-=8);for(s=s<0;e[r+p]=255&s,p+=d,s/=256,l-=8);e[r+p-d]|=128*m}},580:e=>{"use strict";var t=/["'&<>]/;e.exports=function(e){var r,n=""+e,o=t.exec(n);if(!o)return n;var i="",s=0,a=0;for(s=o.index;s{"use strict";var n=r(5606);const o="object"==typeof n&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=o},3229:e=>{"use strict";const t=/^[0-9]+$/,r=(e,r)=>{if("number"==typeof e&&"number"==typeof r)return e===r?0:er(t,e)}},5208:(e,t,r)=>{"use strict";const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:o,MAX_LENGTH:i}=r(6692),s=r(2322),a=(t=e.exports={}).re=[],c=t.safeRe=[],l=t.src=[],u=t.safeSrc=[],f=t.t={};let h=0;const p="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",i],[p,o]],m=(e,t,r)=>{const n=(e=>{for(const[t,r]of d)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e})(t),o=h++;s(e,o,t),f[e]=o,l[o]=t,u[o]=n,a[o]=new RegExp(t,r?"g":void 0),c[o]=new RegExp(n,r?"g":void 0)};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),m("MAINVERSION",`(${l[f.NUMERICIDENTIFIER]})\\.(${l[f.NUMERICIDENTIFIER]})\\.(${l[f.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${l[f.NUMERICIDENTIFIERLOOSE]})\\.(${l[f.NUMERICIDENTIFIERLOOSE]})\\.(${l[f.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${l[f.NONNUMERICIDENTIFIER]}|${l[f.NUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${l[f.NONNUMERICIDENTIFIER]}|${l[f.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASE",`(?:-(${l[f.PRERELEASEIDENTIFIER]}(?:\\.${l[f.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${l[f.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[f.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${p}+`),m("BUILD",`(?:\\+(${l[f.BUILDIDENTIFIER]}(?:\\.${l[f.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${l[f.MAINVERSION]}${l[f.PRERELEASE]}?${l[f.BUILD]}?`),m("FULL",`^${l[f.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${l[f.MAINVERSIONLOOSE]}${l[f.PRERELEASELOOSE]}?${l[f.BUILD]}?`),m("LOOSE",`^${l[f.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${l[f.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${l[f.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${l[f.XRANGEIDENTIFIER]})(?:\\.(${l[f.XRANGEIDENTIFIER]})(?:\\.(${l[f.XRANGEIDENTIFIER]})(?:${l[f.PRERELEASE]})?${l[f.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${l[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[f.XRANGEIDENTIFIERLOOSE]})(?:${l[f.PRERELEASELOOSE]})?${l[f.BUILD]}?)?)?`),m("XRANGE",`^${l[f.GTLT]}\\s*${l[f.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${l[f.GTLT]}\\s*${l[f.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),m("COERCE",`${l[f.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",l[f.COERCEPLAIN]+`(?:${l[f.PRERELEASE]})?`+`(?:${l[f.BUILD]})?(?:$|[^\\d])`),m("COERCERTL",l[f.COERCE],!0),m("COERCERTLFULL",l[f.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${l[f.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",m("TILDE",`^${l[f.LONETILDE]}${l[f.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${l[f.LONETILDE]}${l[f.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${l[f.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",m("CARET",`^${l[f.LONECARET]}${l[f.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${l[f.LONECARET]}${l[f.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${l[f.GTLT]}\\s*(${l[f.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${l[f.GTLT]}\\s*(${l[f.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${l[f.GTLT]}\\s*(${l[f.LOOSEPLAIN]}|${l[f.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${l[f.XRANGEPLAIN]})\\s+-\\s+(${l[f.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${l[f.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[f.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},5606:e=>{var t,r,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var a,c=[],l=!1,u=-1;function f(){l&&a&&(l=!1,a.length?c=a.concat(c):u=-1,c.length&&h())}function h(){if(!l){var e=s(f);l=!0;for(var t=c.length;t;){for(a=c,c=[];++u1)for(var r=1;r{"use strict";const n=r(2322),{MAX_LENGTH:o,MAX_SAFE_INTEGER:i}=r(6692),{safeRe:s,t:a}=r(5208),c=r(9901),{compareIdentifiers:l}=r(3229);class u{constructor(e,t){if(t=c(t),e instanceof u){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>o)throw new TypeError(`version is longer than ${o} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?s[a.LOOSE]:s[a.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&te.major?1:this.minore.minor?1:this.patche.patch?1:0}comparePre(e){if(e instanceof u||(e=new u(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return l(r,o)}while(++t)}compareBuild(e){e instanceof u||(e=new u(e,this.options));let t=0;do{const r=this.build[t],o=e.build[t];if(n("build compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return l(r,o)}while(++t)}inc(e,t,r){if(e.startsWith("pre")){if(!t&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(t){const e=`-${t}`.match(this.options.loose?s[a.PRERELEASELOOSE]:s[a.PRERELEASE]);if(!e||e[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(r)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===l(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=u},6692:e=>{"use strict";const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},7526:(e,t)=>{"use strict";t.byteLength=function(e){var t=a(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,i=a(e),s=i[0],c=i[1],l=new o(function(e,t,r){return 3*(t+r)/4-r}(0,s,c)),u=0,f=c>0?s-4:s;for(r=0;r>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===c&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,l[u++]=255&t),1===c&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],s=16383,a=0,c=n-o;ac?c:a+s));return 1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)r[s]=i[s],n[i.charCodeAt(s)]=s;function a(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function l(e,t,r){for(var n,o=[],i=t;i{"use strict";const n=r(5950);e.exports=(e,t)=>new n(e,t).major},8287:(e,t,r)=>{"use strict";const n=r(7526),o=r(251),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.INSPECT_MAX_BYTES=50;const s=2147483647;function a(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return f(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|m(e,t);let n=a(r);const o=n.write(e,t);return o!==r&&(n=n.slice(0,o)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Y(e,Uint8Array)){const t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return h(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer))return p(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return p(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return c.from(n,t,r);const o=function(e){if(c.isBuffer(e)){const t=0|d(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||K(e.length)?a(0):h(e):"Buffer"===e.type&&Array.isArray(e.data)?h(e.data):void 0}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function f(e){return u(e),a(e<0?0:0|d(e))}function h(e){const t=e.length<0?0:0|d(e.length),r=a(t);for(let n=0;n=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function m(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return V(e).length;default:if(o)return n?-1:q(e).length;t=(""+t).toLowerCase(),o=!0}}function E(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return _(this,t,r);case"utf8":case"utf-8":return N(this,t,r);case"ascii":return L(this,t,r);case"latin1":case"binary":return S(this,t,r);case"base64":return O(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function g(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function y(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),K(r=+r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:w(e,t,r,n,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):w(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function w(e,t,r,n,o){let i,s=1,a=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,c/=2,r/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){let n=-1;for(i=r;ia&&(r=a-c),i=r;i>=0;i--){let r=!0;for(let n=0;no&&(n=o):n=o;const i=t.length;let s;for(n>i/2&&(n=i/2),s=0;s>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function O(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function N(e,t,r){r=Math.min(e.length,r);const n=[];let o=t;for(;o239?4:t>223?3:t>191?2:1;if(o+s<=r){let r,n,a,c;switch(s){case 1:t<128&&(i=t);break;case 2:r=e[o+1],128==(192&r)&&(c=(31&t)<<6|63&r,c>127&&(i=c));break;case 3:r=e[o+1],n=e[o+2],128==(192&r)&&128==(192&n)&&(c=(15&t)<<12|(63&r)<<6|63&n,c>2047&&(c<55296||c>57343)&&(i=c));break;case 4:r=e[o+1],n=e[o+2],a=e[o+3],128==(192&r)&&128==(192&n)&&128==(192&a)&&(c=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&a,c>65535&&c<1114112&&(i=c))}}null===i?(i=65533,s=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i),o+=s}return function(e){const t=e.length;if(t<=v)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(n,o)):Uint8Array.prototype.set.call(n,t,o);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,o)}o+=t.length}return n},c.byteLength=m,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tr&&(e+=" ... "),""},i&&(c.prototype[i]=c.prototype.inspect),c.prototype.compare=function(e,t,r,n,o){if(Y(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;let i=(o>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0);const a=Math.min(i,s),l=this.slice(n,o),u=e.slice(t,r);for(let e=0;e>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let i=!1;for(;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return R(this,e,t,r);case"ascii":case"latin1":case"binary":return I(this,e,t,r);case"base64":return A(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const v=4096;function L(e,t,r){let n="";r=Math.min(e.length,r);for(let o=t;on)&&(r=n);let o="";for(let n=t;nr)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,r,n,o,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function U(e,t,r,n,o){z(t,n,o,e,r,7);let i=Number(t&BigInt(4294967295));e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,r}function $(e,t,r,n,o){z(t,n,o,e,r,7);let i=Number(t&BigInt(4294967295));e[r+7]=i,i>>=8,e[r+6]=i,i>>=8,e[r+5]=i,i>>=8,e[r+4]=i;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s>>=8,e[r+2]=s,s>>=8,e[r+1]=s,s>>=8,e[r]=s,r+8}function P(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function M(e,t,r,n,i){return t=+t,r>>>=0,i||P(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function B(e,t,r,n,i){return t=+t,r>>>=0,i||P(e,0,r,8),o.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||x(e,t,this.length);let n=this[e],o=1,i=0;for(;++i>>=0,t>>>=0,r||x(e,t,this.length);let n=this[e+--t],o=1;for(;t>0&&(o*=256);)n+=this[e+--t]*o;return n},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=Z(function(e){G(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||H(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(o)<>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||H(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<>>=0,t>>>=0,r||x(e,t,this.length);let n=this[e],o=1,i=0;for(;++i=o&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);let n=t,o=1,i=this[e+--n];for(;n>0&&(o*=256);)i+=this[e+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||x(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||x(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=Z(function(e){G(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||H(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||H(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<>>=0,t||x(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||x(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||x(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||x(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||D(this,e,t,r,Math.pow(2,8*r)-1,0);let o=1,i=0;for(this[t]=255&e;++i>>=0,r>>>=0,n||D(this,e,t,r,Math.pow(2,8*r)-1,0);let o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=Z(function(e,t=0){return U(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=Z(function(e,t=0){return $(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);D(this,e,t,r,n-1,-n)}let o=0,i=1,s=0;for(this[t]=255&e;++o>>=0,!n){const n=Math.pow(2,8*r-1);D(this,e,t,r,n-1,-n)}let o=r-1,i=1,s=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/i|0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=Z(function(e,t=0){return U(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=Z(function(e,t=0){return $(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeFloatLE=function(e,t,r){return M(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return M(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return B(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return B(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function z(e,t,r,n,o,i){if(e>r||e3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(i+1)}${n}`:`>= -(2${n} ** ${8*(i+1)-1}${n}) and < 2 ** ${8*(i+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new k.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,r){G(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||H(t,e.length-(r+1))}(n,o,i)}function G(e,t){if("number"!=typeof e)throw new k.ERR_INVALID_ARG_TYPE(t,"number",e)}function H(e,t,r){if(Math.floor(e)!==e)throw G(e,r),new k.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new k.ERR_BUFFER_OUT_OF_BOUNDS;throw new k.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}F("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),F("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),F("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>2**32?o=j(String(r)):"bigint"==typeof r&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=j(o)),o+="n"),n+=` It must be ${t}. Received ${o}`,n},RangeError);const X=/[^+/0-9A-Za-z-_]/g;function q(e,t){let r;t=t||1/0;const n=e.length;let o=null;const i=[];for(let s=0;s55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function V(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(X,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function W(e,t,r,n){let o;for(o=0;o=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function Y(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function K(e){return e!=e}const J=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let o=0;o<16;++o)t[n+o]=e[r]+e[o]}return t}();function Z(e){return"undefined"==typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}},8690:(e,t,r)=>{"use strict";const n=r(5950);e.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}},8711:(e,t,r)=>{"use strict";const n=r(8690);e.exports=(e,t)=>{const r=n(e,t);return r?r.version:null}},9901:e=>{"use strict";const t=Object.freeze({loose:!0}),r=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:r}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};r.r(e),r.d(e,{hasBrowserEnv:()=>Ae,hasStandardBrowserEnv:()=>Oe,hasStandardBrowserWebWorkerEnv:()=>Ne,navigator:()=>Te,origin:()=>ve});var t=r(8064),n=r(8711);class o{bus;constructor(e){"function"==typeof e.getVersion&&n(e.getVersion())?t(e.getVersion())!==t(this.getVersion())&&console.warn("Proxying an event bus of version "+e.getVersion()+" with "+this.getVersion()):console.warn("Proxying an event bus with an unknown or invalid version"),this.bus=e}getVersion(){return"3.3.3"}subscribe(e,t){this.bus.subscribe(e,t)}unsubscribe(e,t){this.bus.unsubscribe(e,t)}emit(e,...t){this.bus.emit(e,...t)}}class i{handlers=new Map;getVersion(){return"3.3.3"}subscribe(e,t){this.handlers.set(e,(this.handlers.get(e)||[]).concat(t))}unsubscribe(e,t){this.handlers.set(e,(this.handlers.get(e)||[]).filter(e=>e!==t))}emit(e,...t){(this.handlers.get(e)||[]).forEach(e=>{try{e(t[0])}catch(e){console.error("could not invoke event listener",e)}})}}let s,a=null;class c{static GLOBAL_SCOPE_VOLATILE="nextcloud_vol";static GLOBAL_SCOPE_PERSISTENT="nextcloud_per";scope;wrapped;constructor(e,t,r){this.scope=`${r?c.GLOBAL_SCOPE_PERSISTENT:c.GLOBAL_SCOPE_VOLATILE}_${btoa(e)}_`,this.wrapped=t}scopeKey(e){return`${this.scope}${e}`}setItem(e,t){this.wrapped.setItem(this.scopeKey(e),t)}getItem(e){return this.wrapped.getItem(this.scopeKey(e))}removeItem(e){this.wrapped.removeItem(this.scopeKey(e))}clear(){Object.keys(this.wrapped).filter(e=>e.startsWith(this.scope)).map(this.wrapped.removeItem.bind(this.wrapped))}}const l=[];var u;let f;function h(e,t){return e?e.getAttribute(t):null}function p(){if(void 0!==f)return f;const e=document?.getElementsByTagName("head")[0];if(!e)return null;const t=h(e,"data-user");return null===t?(f=null,f):(f={uid:t,displayName:h(e,"data-user-displayname"),isAdmin:!!window._oc_isadmin},f)}function d(e,t){return function(){return e.apply(t,arguments)}}u=e=>{s=e.token,l.forEach(e=>{try{e(s)}catch(e){console.error("Error updating CSRF token observer",e)}})},(null!==a?a:"undefined"==typeof window?new Proxy({},{get:()=>()=>console.error("Window not available, EventBus can not be established!")}):(window.OC?._eventBus&&void 0===window._nc_event_bus&&(console.warn("found old event bus instance at OC._eventBus. Update your version!"),window._nc_event_bus=window.OC._eventBus),a=void 0!==window?._nc_event_bus?new o(window._nc_event_bus):window._nc_event_bus=new i,a)).subscribe("csrf-token-update",u),new class{appId;persisted=!1;clearedOnLogout=!1;constructor(e){this.appId=e}persist(e=!0){return this.persisted=e,this}clearOnLogout(e=!0){return this.clearedOnLogout=e,this}build(){return new c(this.appId,this.persisted?window.localStorage:window.sessionStorage,!this.clearedOnLogout)}}("public").persist().build();var m=r(5606);const{toString:E}=Object.prototype,{getPrototypeOf:g}=Object,{iterator:y,toStringTag:w}=Symbol,b=(R=Object.create(null),e=>{const t=E.call(e);return R[t]||(R[t]=t.slice(8,-1).toLowerCase())});var R;const I=e=>(e=e.toLowerCase(),t=>b(t)===e),A=e=>t=>typeof t===e,{isArray:T}=Array,O=A("undefined");function N(e){return null!==e&&!O(e)&&null!==e.constructor&&!O(e.constructor)&&S(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const v=I("ArrayBuffer"),L=A("string"),S=A("function"),_=A("number"),C=e=>null!==e&&"object"==typeof e,x=e=>{if("object"!==b(e))return!1;const t=g(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||w in e||y in e)},D=I("Date"),U=I("File"),$=I("Blob"),P=I("FileList"),M=I("URLSearchParams"),[B,k,F,j]=["ReadableStream","Request","Response","Headers"].map(I);function z(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),T(e))for(n=0,o=e.length;n0;)if(n=r[o],t===n.toLowerCase())return n;return null}const H="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,X=e=>!O(e)&&e!==H,q=(V="undefined"!=typeof Uint8Array&&g(Uint8Array),e=>V&&e instanceof V);var V;const W=I("HTMLFormElement"),Y=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),K=I("RegExp"),J=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};z(r,(r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)}),Object.defineProperties(e,n)},Z=I("AsyncFunction"),Q=(ee="function"==typeof setImmediate,te=S(H.postMessage),ee?setImmediate:te?((e,t)=>(H.addEventListener("message",({source:r,data:n})=>{r===H&&n===e&&t.length&&t.shift()()},!1),r=>{t.push(r),H.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var ee,te;const re="undefined"!=typeof queueMicrotask?queueMicrotask.bind(H):void 0!==m&&m.nextTick||Q,ne={isArray:T,isArrayBuffer:v,isBuffer:N,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||S(e.append)&&("formdata"===(t=b(e))||"object"===t&&S(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&v(e.buffer),t},isString:L,isNumber:_,isBoolean:e=>!0===e||!1===e,isObject:C,isPlainObject:x,isEmptyObject:e=>{if(!C(e)||N(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:B,isRequest:k,isResponse:F,isHeaders:j,isUndefined:O,isDate:D,isFile:U,isBlob:$,isRegExp:K,isFunction:S,isStream:e=>C(e)&&S(e.pipe),isURLSearchParams:M,isTypedArray:q,isFileList:P,forEach:z,merge:function e(){const{caseless:t,skipUndefined:r}=X(this)&&this||{},n={},o=(o,i)=>{const s=t&&G(n,i)||i;x(n[s])&&x(o)?n[s]=e(n[s],o):x(o)?n[s]=e({},o):T(o)?n[s]=o.slice():r&&O(o)||(n[s]=o)};for(let e=0,t=arguments.length;e(z(t,(t,n)=>{r&&S(t)?e[n]=d(t,r):e[n]=t},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,s;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],n&&!n(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==r&&g(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:b,kindOfTest:I,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(T(e))return e;let t=e.length;if(!_(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[y]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:W,hasOwnProperty:Y,hasOwnProp:Y,reduceDescriptors:J,freezeMethods:e=>{J(e,(t,r)=>{if(S(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];S(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach(e=>{r[e]=!0})};return T(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:G,global:H,isContextDefined:X,isSpecCompliantForm:function(e){return!!(e&&S(e.append)&&"FormData"===e[w]&&e[y])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(C(e)){if(t.indexOf(e)>=0)return;if(N(e))return e;if(!("toJSON"in e)){t[n]=e;const o=T(e)?[]:{};return z(e,(e,t)=>{const i=r(e,n+1);!O(i)&&(o[t]=i)}),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:Z,isThenable:e=>e&&(C(e)||S(e))&&S(e.then)&&S(e.catch),setImmediate:Q,asap:re,isIterable:e=>null!=e&&S(e[y])};function oe(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}ne.inherits(oe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ne.toJSONObject(this.config),code:this.code,status:this.status}}});const ie=oe.prototype,se={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{se[e]={value:e}}),Object.defineProperties(oe,se),Object.defineProperty(ie,"isAxiosError",{value:!0}),oe.from=(e,t,r,n,o,i)=>{const s=Object.create(ie);ne.toFlatObject(e,s,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);const a=e&&e.message?e.message:"Error",c=null==t&&e?e.code:t;return oe.call(s,a,c,r,n,o),e&&null==s.cause&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",i&&Object.assign(s,i),s};const ae=oe;var ce=r(8287).Buffer;function le(e){return ne.isPlainObject(e)||ne.isArray(e)}function ue(e){return ne.endsWith(e,"[]")?e.slice(0,-2):e}function fe(e,t,r){return e?e.concat(t).map(function(e,t){return e=ue(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}const he=ne.toFlatObject(ne,{},null,function(e){return/^is[A-Z]/.test(e)}),pe=function(e,t,r){if(!ne.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=ne.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!ne.isUndefined(t[e])})).metaTokens,o=r.visitor||l,i=r.dots,s=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&ne.isSpecCompliantForm(t);if(!ne.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(ne.isDate(e))return e.toISOString();if(ne.isBoolean(e))return e.toString();if(!a&&ne.isBlob(e))throw new ae("Blob is not supported. Use a Buffer instead.");return ne.isArrayBuffer(e)||ne.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):ce.from(e):e}function l(e,r,o){let a=e;if(e&&!o&&"object"==typeof e)if(ne.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(ne.isArray(e)&&function(e){return ne.isArray(e)&&!e.some(le)}(e)||(ne.isFileList(e)||ne.endsWith(r,"[]"))&&(a=ne.toArray(e)))return r=ue(r),a.forEach(function(e,n){!ne.isUndefined(e)&&null!==e&&t.append(!0===s?fe([r],n,i):null===s?r:r+"[]",c(e))}),!1;return!!le(e)||(t.append(fe(o,r,i),c(e)),!1)}const u=[],f=Object.assign(he,{defaultVisitor:l,convertValue:c,isVisitable:le});if(!ne.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!ne.isUndefined(r)){if(-1!==u.indexOf(r))throw Error("Circular reference detected in "+n.join("."));u.push(r),ne.forEach(r,function(r,i){!0===(!(ne.isUndefined(r)||null===r)&&o.call(t,r,ne.isString(i)?i.trim():i,n,f))&&e(r,n?n.concat(i):[i])}),u.pop()}}(e),t};function de(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function me(e,t){this._pairs=[],e&&pe(e,this,t)}const Ee=me.prototype;Ee.append=function(e,t){this._pairs.push([e,t])},Ee.toString=function(e){const t=e?function(t){return e.call(this,t,de)}:de;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const ge=me;function ye(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function we(e,t,r){if(!t)return e;const n=r&&r.encode||ye;ne.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(i=o?o(t,r):ne.isURLSearchParams(t)?t.toString():new ge(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const be=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ne.forEach(this.handlers,function(t){null!==t&&e(t)})}},Re={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ie={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ge,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Ae="undefined"!=typeof window&&"undefined"!=typeof document,Te="object"==typeof navigator&&navigator||void 0,Oe=Ae&&(!Te||["ReactNative","NativeScript","NS"].indexOf(Te.product)<0),Ne="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ve=Ae&&window.location.href||"http://localhost",Le={...e,...Ie},Se=function(e){function t(e,r,n,o){let i=e[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=e.length;return i=!i&&ne.isArray(n)?n.length:i,a?(ne.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!s):(n[i]&&ne.isObject(n[i])||(n[i]=[]),t(e,r,n[i],o)&&ne.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n{t(function(e){return ne.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),n,r,0)}),r}return null},_e={transitional:Re,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=ne.isObject(e);if(o&&ne.isHTMLForm(e)&&(e=new FormData(e)),ne.isFormData(e))return n?JSON.stringify(Se(e)):e;if(ne.isArrayBuffer(e)||ne.isBuffer(e)||ne.isStream(e)||ne.isFile(e)||ne.isBlob(e)||ne.isReadableStream(e))return e;if(ne.isArrayBufferView(e))return e.buffer;if(ne.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return pe(e,new Le.classes.URLSearchParams,{visitor:function(e,t,r,n){return Le.isNode&&ne.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=ne.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return pe(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e){if(ne.isString(e))try{return(0,JSON.parse)(e),ne.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||_e.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(ne.isResponse(e)||ne.isReadableStream(e))return e;if(e&&ne.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e,this.parseReviver)}catch(e){if(r){if("SyntaxError"===e.name)throw ae.from(e,ae.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Le.classes.FormData,Blob:Le.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ne.forEach(["delete","get","head","post","put","patch"],e=>{_e.headers[e]={}});const Ce=_e,xe=ne.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),De=Symbol("internals");function Ue(e){return e&&String(e).trim().toLowerCase()}function $e(e){return!1===e||null==e?e:ne.isArray(e)?e.map($e):String(e)}function Pe(e,t,r,n,o){return ne.isFunction(n)?n.call(this,t,r):(o&&(t=r),ne.isString(t)?ne.isString(n)?-1!==t.indexOf(n):ne.isRegExp(n)?n.test(t):void 0:void 0)}class Me{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=Ue(t);if(!o)throw new Error("header name must be a non-empty string");const i=ne.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=$e(e))}const i=(e,t)=>ne.forEach(e,(e,r)=>o(e,r,t));if(ne.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(ne.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&xe[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t})(e),t);else if(ne.isObject(e)&&ne.isIterable(e)){let r,n,o={};for(const t of e){if(!ne.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[n=t[0]]=(r=o[n])?ne.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,r);return this}get(e,t){if(e=Ue(e)){const r=ne.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(ne.isFunction(t))return t.call(this,e,r);if(ne.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ue(e)){const r=ne.findKey(this,e);return!(!r||void 0===this[r]||t&&!Pe(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=Ue(e)){const o=ne.findKey(r,e);!o||t&&!Pe(0,r[o],o,t)||(delete r[o],n=!0)}}return ne.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!Pe(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return ne.forEach(this,(n,o)=>{const i=ne.findKey(r,o);if(i)return t[i]=$e(n),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}(o):String(o).trim();s!==o&&delete t[o],t[s]=$e(n),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ne.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&ne.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){const t=(this[De]=this[De]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=Ue(e);t[n]||(function(e,t){const r=ne.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})})}(r,e),t[n]=!0)}return ne.isArray(e)?e.forEach(n):n(e),this}}Me.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ne.reduceDescriptors(Me.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),ne.freezeMethods(Me);const Be=Me;function ke(e,t){const r=this||Ce,n=t||r,o=Be.from(n.headers);let i=n.data;return ne.forEach(e,function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Fe(e){return!(!e||!e.__CANCEL__)}function je(e,t,r){ae.call(this,null==e?"canceled":e,ae.ERR_CANCELED,t,r),this.name="CanceledError"}ne.inherits(je,ae,{__CANCEL__:!0});const ze=je;function Ge(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new ae("Request failed with status code "+r.status,[ae.ERR_BAD_REQUEST,ae.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}const He=(e,t,r=3)=>{let n=0;const o=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=n[s];o||(o=c),r[i]=a,n[i]=c;let u=s,f=0;for(;u!==i;)f+=r[u++],u%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-o{o=i,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=i?s(e,t):(r=e,n||(n=setTimeout(()=>{n=null,s(r)},i-a)))},()=>r&&s(r)]}(r=>{const i=r.loaded,s=r.lengthComputable?r.total:void 0,a=i-n,c=o(a);n=i,e({loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})},r)},Xe=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},qe=e=>(...t)=>ne.asap(()=>e(...t)),Ve=Le.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Le.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Le.origin),Le.navigator&&/(msie|trident)/i.test(Le.navigator.userAgent)):()=>!0,We=Le.hasStandardBrowserEnv?{write(e,t,r,n,o,i,s){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];ne.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),ne.isString(n)&&a.push(`path=${n}`),ne.isString(o)&&a.push(`domain=${o}`),!0===i&&a.push("secure"),ne.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Ye(e,t,r){let n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(n||0==r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ke=e=>e instanceof Be?{...e}:e;function Je(e,t){t=t||{};const r={};function n(e,t,r,n){return ne.isPlainObject(e)&&ne.isPlainObject(t)?ne.merge.call({caseless:n},e,t):ne.isPlainObject(t)?ne.merge({},t):ne.isArray(t)?t.slice():t}function o(e,t,r,o){return ne.isUndefined(t)?ne.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function i(e,t){if(!ne.isUndefined(t))return n(void 0,t)}function s(e,t){return ne.isUndefined(t)?ne.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t,r)=>o(Ke(e),Ke(t),0,!0)};return ne.forEach(Object.keys({...e,...t}),function(n){const i=c[n]||o,s=i(e[n],t[n],n);ne.isUndefined(s)&&i!==a||(r[n]=s)}),r}const Ze=e=>{const t=Je({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;if(t.headers=s=Be.from(s),t.url=we(Ye(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),ne.isFormData(r))if(Le.hasStandardBrowserEnv||Le.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(ne.isFunction(r.getHeaders)){const e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,r])=>{t.includes(e.toLowerCase())&&s.set(e,r)})}if(Le.hasStandardBrowserEnv&&(n&&ne.isFunction(n)&&(n=n(t)),n||!1!==n&&Ve(t.url))){const e=o&&i&&We.read(i);e&&s.set(o,e)}return t},Qe="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){const n=Ze(e);let o=n.data;const i=Be.from(n.headers).normalize();let s,a,c,l,u,{responseType:f,onUploadProgress:h,onDownloadProgress:p}=n;function d(){l&&l(),u&&u(),n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function E(){if(!m)return;const n=Be.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Ge(function(e){t(e),d()},function(e){r(e),d()},{data:f&&"text"!==f&&"json"!==f?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:n,config:e,request:m}),m=null}m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout,"onloadend"in m?m.onloadend=E:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(E)},m.onabort=function(){m&&(r(new ae("Request aborted",ae.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const n=t&&t.message?t.message:"Network Error",o=new ae(n,ae.ERR_NETWORK,e,m);o.event=t||null,r(o),m=null},m.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||Re;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new ae(t,o.clarifyTimeoutError?ae.ETIMEDOUT:ae.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&ne.forEach(i.toJSON(),function(e,t){m.setRequestHeader(t,e)}),ne.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),f&&"json"!==f&&(m.responseType=n.responseType),p&&([c,u]=He(p,!0),m.addEventListener("progress",c)),h&&m.upload&&([a,l]=He(h),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",l)),(n.cancelToken||n.signal)&&(s=t=>{m&&(r(!t||t.type?new ze(null,e,m):t),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const g=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);g&&-1===Le.protocols.indexOf(g)?r(new ae("Unsupported protocol "+g+":",ae.ERR_BAD_REQUEST,e)):m.send(o||null)})},et=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const o=function(e){if(!r){r=!0,s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof ae?t:new ze(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new ae(`timeout ${t} of ms exceeded`,ae.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:a}=n;return a.unsubscribe=()=>ne.asap(s),a}},tt=function*(e,t){let r=e.byteLength;if(!t||r{const o=async function*(e,t){for await(const r of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}}(e))yield*tt(r,t)}(e,t);let i,s=0,a=e=>{i||(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await o.next();if(t)return a(),void e.close();let i=n.byteLength;if(r){let e=s+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},{isFunction:nt}=ne,ot=(({Request:e,Response:t})=>({Request:e,Response:t}))(ne.global),{ReadableStream:it,TextEncoder:st}=ne.global,at=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},ct=e=>{e=ne.merge.call({skipUndefined:!0},ot,e);const{fetch:t,Request:r,Response:n}=e,o=t?nt(t):"function"==typeof fetch,i=nt(r),s=nt(n);if(!o)return!1;const a=o&&nt(it),c=o&&("function"==typeof st?(l=new st,e=>l.encode(e)):async e=>new Uint8Array(await new r(e).arrayBuffer()));var l;const u=i&&a&&at(()=>{let e=!1;const t=new r(Le.origin,{body:new it,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),f=s&&a&&at(()=>ne.isReadableStream(new n("").body)),h={stream:f&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!h[e]&&(h[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new ae(`Response type '${e}' is not supported`,ae.ERR_NOT_SUPPORT,r)})});return async e=>{let{url:o,method:s,data:a,signal:l,cancelToken:p,timeout:d,onDownloadProgress:m,onUploadProgress:E,responseType:g,headers:y,withCredentials:w="same-origin",fetchOptions:b}=Ze(e),R=t||fetch;g=g?(g+"").toLowerCase():"text";let I=et([l,p&&p.toAbortSignal()],d),A=null;const T=I&&I.unsubscribe&&(()=>{I.unsubscribe()});let O;try{if(E&&u&&"get"!==s&&"head"!==s&&0!==(O=await(async(e,t)=>{const n=ne.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(ne.isBlob(e))return e.size;if(ne.isSpecCompliantForm(e)){const t=new r(Le.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return ne.isArrayBufferView(e)||ne.isArrayBuffer(e)?e.byteLength:(ne.isURLSearchParams(e)&&(e+=""),ne.isString(e)?(await c(e)).byteLength:void 0)})(t):n})(y,a))){let e,t=new r(o,{method:"POST",body:a,duplex:"half"});if(ne.isFormData(a)&&(e=t.headers.get("content-type"))&&y.setContentType(e),t.body){const[e,r]=Xe(O,He(qe(E)));a=rt(t.body,65536,e,r)}}ne.isString(w)||(w=w?"include":"omit");const t=i&&"credentials"in r.prototype,l={...b,signal:I,method:s.toUpperCase(),headers:y.normalize().toJSON(),body:a,duplex:"half",credentials:t?w:void 0};A=i&&new r(o,l);let p=await(i?R(A,b):R(o,l));const d=f&&("stream"===g||"response"===g);if(f&&(m||d&&T)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=p[t]});const t=ne.toFiniteNumber(p.headers.get("content-length")),[r,o]=m&&Xe(t,He(qe(m),!0))||[];p=new n(rt(p.body,65536,r,()=>{o&&o(),T&&T()}),e)}g=g||"text";let N=await h[ne.findKey(h,g)||"text"](p,e);return!d&&T&&T(),await new Promise((t,r)=>{Ge(t,r,{data:N,headers:Be.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:A})})}catch(t){if(T&&T(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new ae("Network Error",ae.ERR_NETWORK,e,A),{cause:t.cause||t});throw ae.from(t,t&&t.code,e,A)}}},lt=new Map,ut=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let s,a,c=i.length,l=lt;for(;c--;)s=i[c],a=l.get(s),void 0===a&&l.set(s,a=c?new Map:ct(t)),l=a;return a},ft=(ut(),{http:null,xhr:Qe,fetch:{get:ut}});ne.forEach(ft,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const ht=e=>`- ${e}`,pt=e=>ne.isFunction(e)||null===e||!1===e,dt=function(e,t){e=ne.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let s=0;s`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=r?e.length>1?"since :\n"+e.map(ht).join("\n"):" "+ht(e[0]):"as no adapter specified";throw new ae("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o};function mt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ze(null,e)}function Et(e){return mt(e),e.headers=Be.from(e.headers),e.data=ke.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),dt(e.adapter||Ce.adapter,e)(e).then(function(t){return mt(e),t.data=ke.call(e,e.transformResponse,t),t.headers=Be.from(t.headers),t},function(t){return Fe(t)||(mt(e),t&&t.response&&(t.response.data=ke.call(e,e.transformResponse,t.response),t.response.headers=Be.from(t.response.headers))),Promise.reject(t)})}const gt="1.13.2",yt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{yt[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const wt={};yt.transitional=function(e,t,r){function n(e,t){return"[Axios v"+gt+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new ae(n(o," has been removed"+(t?" in "+t:"")),ae.ERR_DEPRECATED);return t&&!wt[o]&&(wt[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}},yt.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};const bt={assertOptions:function(e,t,r){if("object"!=typeof e)throw new ae("options must be an object",ae.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const t=e[i],r=void 0===t||s(t,i,e);if(!0!==r)throw new ae("option "+i+" must be "+r,ae.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new ae("Unknown option "+i,ae.ERR_BAD_OPTION)}},validators:yt},Rt=bt.validators;class It{constructor(e){this.defaults=e||{},this.interceptors={request:new be,response:new be}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Je(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&bt.assertOptions(r,{silentJSONParsing:Rt.transitional(Rt.boolean),forcedJSONParsing:Rt.transitional(Rt.boolean),clarifyTimeoutError:Rt.transitional(Rt.boolean)},!1),null!=n&&(ne.isFunction(n)?t.paramsSerializer={serialize:n}:bt.assertOptions(n,{encode:Rt.function,serialize:Rt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),bt.assertOptions(t,{baseUrl:Rt.spelling("baseURL"),withXsrfToken:Rt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&ne.merge(o.common,o[t.method]);o&&ne.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=Be.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))});const c=[];let l;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let u,f=0;if(!a){const e=[Et.bind(this),void 0];for(e.unshift(...s),e.push(...c),u=e.length,l=Promise.resolve(t);f{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,o){r.reason||(r.reason=new ze(e,n,o),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Tt(function(t){e=t}),cancel:e}}}const Ot=Tt,Nt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Nt).forEach(([e,t])=>{Nt[t]=e});const vt=Nt,Lt=function e(t){const r=new At(t),n=d(At.prototype.request,r);return ne.extend(n,At.prototype,r,{allOwnKeys:!0}),ne.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(Je(t,r))},n}(Ce);Lt.Axios=At,Lt.CanceledError=ze,Lt.CancelToken=Ot,Lt.isCancel=Fe,Lt.VERSION=gt,Lt.toFormData=pe,Lt.AxiosError=ae,Lt.Cancel=Lt.CanceledError,Lt.all=function(e){return Promise.all(e)},Lt.spread=function(e){return function(t){return e.apply(null,t)}},Lt.isAxiosError=function(e){return ne.isObject(e)&&!0===e.isAxiosError},Lt.mergeConfig=Je,Lt.AxiosHeaders=Be,Lt.formToJSON=e=>Se(ne.isHTMLForm(e)?new FormData(e):e),Lt.getAdapter=dt,Lt.HttpStatusCode=vt,Lt.default=Lt;const St=Lt,{Axios:_t,AxiosError:Ct,CanceledError:xt,isCancel:Dt,CancelToken:Ut,VERSION:$t,all:Pt,Cancel:Mt,isAxiosError:Bt,spread:kt,toFormData:Ft,AxiosHeaders:jt,HttpStatusCode:zt,formToJSON:Gt,getAdapter:Ht,mergeConfig:Xt}=St,qt=(e,t,r)=>{const n=Object.assign({escape:!0},r||{});return"/"!==e.charAt(0)&&(e="/"+e),o=(o=t||{})||{},e.replace(/{([^{}]*)}/g,function(e,t){const r=o[t];return n.escape?"string"==typeof r||"number"==typeof r?encodeURIComponent(r.toString()):encodeURIComponent(e):"string"==typeof r||"number"==typeof r?r.toString():e});var o},Vt=(e,t,r)=>{const n=Object.assign({noRewrite:!1},r||{}),o=r?.baseURL??function(){let e=window._oc_webroot;if(void 0===e){e=location.pathname;const t=e.indexOf("/index.php/");if(-1!==t)e=e.slice(0,t);else{const t=e.indexOf("/",1);e=e.slice(0,t>0?t:void 0)}}return e}();return!0!==window?.OC?.config?.modRewriteWorking||n.noRewrite?o+"/index.php"+qt(e,t,r):o+qt(e,t,r)};const Wt=St.create({headers:{requesttoken:(void 0===s&&(s=document.head.dataset.requesttoken??null),s??""),"X-Requested-With":"XMLHttpRequest"}});var Yt;Yt=e=>{Wt.defaults.headers.requesttoken=e},l.push(Yt);const Kt=Object.assign(Wt,{CancelToken:St.CancelToken,isCancel:St.isCancel}),Jt=Symbol("csrf-retry"),Zt=Symbol("retryDelay");Kt.interceptors.response.use(e=>e,function(e){return async t=>{if(!Bt(t))throw t;const{config:r,response:n,request:o}=t,i=o?.responseURL;if(r&&!r[Jt]&&412===n?.status&&"CSRF check failed"===n?.data?.message){console.warn(`Request to ${i} failed because of a CSRF mismatch. Fetching a new token`);const{data:{token:t}}=await e.get(Vt("/csrftoken"));return console.debug(`New request token ${t} fetched`),e.defaults.headers.requesttoken=t,e({...r,headers:{...r.headers,requesttoken:t},[Jt]:!0})}throw t}}(Kt)),Kt.interceptors.response.use(e=>e,function(e){return async t=>{if(!Bt(t))throw t;const{config:r,response:n,request:o}=t,i=o?.responseURL,s=n?.status,a=n?.headers;let c="number"==typeof r?.[Zt]?r?.[Zt]:1;if(503===s&&"1"===a?.["x-nextcloud-maintenance-mode"]&&r?.retryIfMaintenanceMode){if(c*=2,c>32)throw console.error("Retry delay exceeded one minute, giving up.",{responseURL:i}),t;return console.warn(`Request to ${i} failed because of maintenance mode. Retrying in ${c}s`),await new Promise(e=>{setTimeout(e,1e3*c)}),e({...r,[Zt]:c})}throw t}}(Kt)),Kt.interceptors.response.use(e=>e,async function(e){if(Bt(e)){const{config:t,response:r,request:n}=e,o=n?.responseURL,i=r?.status;401===i&&"Current user is not logged in"===r?.data?.message&&t?.reloadExpiredSession&&window?.location&&(console.error(`Request to ${o} failed because the user session expired. Reloading the page …`),window.location.reload())}throw e});var Qt=(e=>(e[e.Debug=0]="Debug",e[e.Info=1]="Info",e[e.Warn=2]="Warn",e[e.Error=3]="Error",e[e.Fatal=4]="Fatal",e))(Qt||{});class er{context;constructor(e){this.context=e||{}}formatMessage(e,t,r){let n="["+Qt[t].toUpperCase()+"] ";return r&&r.app&&(n+=r.app+": "),"string"==typeof e?n+e:(n+=`Unexpected ${e.name}`,e.message&&(n+=` "${e.message}"`),t===Qt.Debug&&e.stack&&(n+=`\n\nStack trace:\n${e.stack}`),n)}log(e,t,r){if(!("number"==typeof this.context?.level&&e{"complete"===document.readyState||"interactive"===document.readyState?(e.context.level=window._oc_config?.loglevel??Qt.Warn,window._oc_debug&&(e.context.level=Qt.Debug),document.removeEventListener("readystatechange",t)):document.addEventListener("readystatechange",t)};return t(),this}build(){return void 0===this.context.level&&this.detectLogLevel(),this.factory(this.context)}}const nr=new rr(tr).setApp("@nextcloud/files").detectUser().build();EventTarget;const{entries:or,setPrototypeOf:ir,isFrozen:sr,getPrototypeOf:ar,getOwnPropertyDescriptor:cr}=Object;let{freeze:lr,seal:ur,create:fr}=Object,{apply:hr,construct:pr}="undefined"!=typeof Reflect&&Reflect;lr||(lr=function(e){return e}),ur||(ur=function(e){return e}),hr||(hr=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o1?t-1:0),n=1;n1?r-1:0),o=1;o2&&void 0!==arguments[2]?arguments[2]:wr;ir&&ir(e,null);let n=t.length;for(;n--;){let o=t[n];if("string"==typeof o){const e=r(o);e!==o&&(sr(t)||(t[n]=e),o=e)}e[o]=!0}return e}function Cr(e){for(let t=0;t/gm),Vr=ur(/\$\{[\w\W]*/gm),Wr=ur(/^data-[\-\w.\u00B7-\uFFFF]+$/),Yr=ur(/^aria-[\-\w]+$/),Kr=ur(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Jr=ur(/^(?:\w+script|data):/i),Zr=ur(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Qr=ur(/^html$/i),en=ur(/^[a-z][.\w]*(-[.\w]+)+$/i);var tn=Object.freeze({__proto__:null,ARIA_ATTR:Yr,ATTR_WHITESPACE:Zr,CUSTOM_ELEMENT:en,DATA_ATTR:Wr,DOCTYPE_NAME:Qr,ERB_EXPR:qr,IS_ALLOWED_URI:Kr,IS_SCRIPT_OR_DATA:Jr,MUSTACHE_EXPR:Xr,TMPLIT_EXPR:Vr});const rn=function(){return"undefined"==typeof window?null:window};var nn=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rn();const r=t=>e(t);if(r.version="3.3.1",r.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return r.isSupported=!1,r;let{document:n}=t;const o=n,i=o.currentScript,{DocumentFragment:s,HTMLTemplateElement:a,Node:c,Element:l,NodeFilter:u,NamedNodeMap:f=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:p,trustedTypes:d}=t,m=l.prototype,E=Dr(m,"cloneNode"),g=Dr(m,"remove"),y=Dr(m,"nextSibling"),w=Dr(m,"childNodes"),b=Dr(m,"parentNode");if("function"==typeof a){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let R,I="";const{implementation:A,createNodeIterator:T,createDocumentFragment:O,getElementsByTagName:N}=n,{importNode:v}=o;let L={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof or&&"function"==typeof b&&A&&void 0!==A.createHTMLDocument;const{MUSTACHE_EXPR:S,ERB_EXPR:_,TMPLIT_EXPR:C,DATA_ATTR:x,ARIA_ATTR:D,IS_SCRIPT_OR_DATA:U,ATTR_WHITESPACE:$,CUSTOM_ELEMENT:P}=tn;let{IS_ALLOWED_URI:M}=tn,B=null;const k=_r({},[...Ur,...$r,...Pr,...Br,...Fr]);let F=null;const j=_r({},[...jr,...zr,...Gr,...Hr]);let z=Object.seal(fr(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),G=null,H=null;const X=Object.seal(fr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let q=!0,V=!0,W=!1,Y=!0,K=!1,J=!0,Z=!1,Q=!1,ee=!1,te=!1,re=!1,ne=!1,oe=!0,ie=!1,se=!0,ae=!1,ce={},le=null;const ue=_r({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let fe=null;const he=_r({},["audio","video","img","source","image","track"]);let pe=null;const de=_r({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),me="http://www.w3.org/1998/Math/MathML",Ee="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml";let ye=ge,we=!1,be=null;const Re=_r({},[me,Ee,ge],br);let Ie=_r({},["mi","mo","mn","ms","mtext"]),Ae=_r({},["annotation-xml"]);const Te=_r({},["title","style","font","a","script"]);let Oe=null;const Ne=["application/xhtml+xml","text/html"];let ve=null,Le=null;const Se=n.createElement("form"),_e=function(e){return e instanceof RegExp||e instanceof Function},Ce=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Le||Le!==e){if(e&&"object"==typeof e||(e={}),e=xr(e),Oe=-1===Ne.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ve="application/xhtml+xml"===Oe?br:wr,B=Or(e,"ALLOWED_TAGS")?_r({},e.ALLOWED_TAGS,ve):k,F=Or(e,"ALLOWED_ATTR")?_r({},e.ALLOWED_ATTR,ve):j,be=Or(e,"ALLOWED_NAMESPACES")?_r({},e.ALLOWED_NAMESPACES,br):Re,pe=Or(e,"ADD_URI_SAFE_ATTR")?_r(xr(de),e.ADD_URI_SAFE_ATTR,ve):de,fe=Or(e,"ADD_DATA_URI_TAGS")?_r(xr(he),e.ADD_DATA_URI_TAGS,ve):he,le=Or(e,"FORBID_CONTENTS")?_r({},e.FORBID_CONTENTS,ve):ue,G=Or(e,"FORBID_TAGS")?_r({},e.FORBID_TAGS,ve):xr({}),H=Or(e,"FORBID_ATTR")?_r({},e.FORBID_ATTR,ve):xr({}),ce=!!Or(e,"USE_PROFILES")&&e.USE_PROFILES,q=!1!==e.ALLOW_ARIA_ATTR,V=!1!==e.ALLOW_DATA_ATTR,W=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,K=e.SAFE_FOR_TEMPLATES||!1,J=!1!==e.SAFE_FOR_XML,Z=e.WHOLE_DOCUMENT||!1,te=e.RETURN_DOM||!1,re=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,ee=e.FORCE_BODY||!1,oe=!1!==e.SANITIZE_DOM,ie=e.SANITIZE_NAMED_PROPS||!1,se=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,M=e.ALLOWED_URI_REGEXP||Kr,ye=e.NAMESPACE||ge,Ie=e.MATHML_TEXT_INTEGRATION_POINTS||Ie,Ae=e.HTML_INTEGRATION_POINTS||Ae,z=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&_e(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(z.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&_e(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(z.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(z.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),K&&(V=!1),re&&(te=!0),ce&&(B=_r({},Fr),F=[],!0===ce.html&&(_r(B,Ur),_r(F,jr)),!0===ce.svg&&(_r(B,$r),_r(F,zr),_r(F,Hr)),!0===ce.svgFilters&&(_r(B,Pr),_r(F,zr),_r(F,Hr)),!0===ce.mathMl&&(_r(B,Br),_r(F,Gr),_r(F,Hr))),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?X.tagCheck=e.ADD_TAGS:(B===k&&(B=xr(B)),_r(B,e.ADD_TAGS,ve))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?X.attributeCheck=e.ADD_ATTR:(F===j&&(F=xr(F)),_r(F,e.ADD_ATTR,ve))),e.ADD_URI_SAFE_ATTR&&_r(pe,e.ADD_URI_SAFE_ATTR,ve),e.FORBID_CONTENTS&&(le===ue&&(le=xr(le)),_r(le,e.FORBID_CONTENTS,ve)),e.ADD_FORBID_CONTENTS&&(le===ue&&(le=xr(le)),_r(le,e.ADD_FORBID_CONTENTS,ve)),se&&(B["#text"]=!0),Z&&_r(B,["html","head","body"]),B.table&&(_r(B,["tbody"]),delete G.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw vr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw vr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');R=e.TRUSTED_TYPES_POLICY,I=R.createHTML("")}else void 0===R&&(R=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let r=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(r=t.getAttribute(n));const o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(d,i)),null!==R&&"string"==typeof I&&(I=R.createHTML(""));lr&&lr(e),Le=e}},xe=_r({},[...$r,...Pr,...Mr]),De=_r({},[...Br,...kr]),Ue=function(e){gr(r.removed,{element:e});try{b(e).removeChild(e)}catch(t){g(e)}},$e=function(e,t){try{gr(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){gr(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(te||re)try{Ue(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Pe=function(e){let t=null,r=null;if(ee)e=""+e;else{const t=Rr(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===Oe&&ye===ge&&(e=''+e+"");const o=R?R.createHTML(e):e;if(ye===ge)try{t=(new p).parseFromString(o,Oe)}catch(e){}if(!t||!t.documentElement){t=A.createDocument(ye,"template",null);try{t.documentElement.innerHTML=we?I:o}catch(e){}}const i=t.body||t.documentElement;return e&&r&&i.insertBefore(n.createTextNode(r),i.childNodes[0]||null),ye===ge?N.call(t,Z?"html":"body")[0]:Z?t.documentElement:i},Me=function(e){return T.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Be=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof f)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},ke=function(e){return"function"==typeof c&&e instanceof c};function Fe(e,t,n){dr(e,e=>{e.call(r,t,n,Le)})}const je=function(e){let t=null;if(Fe(L.beforeSanitizeElements,e,null),Be(e))return Ue(e),!0;const n=ve(e.nodeName);if(Fe(L.uponSanitizeElement,e,{tagName:n,allowedTags:B}),J&&e.hasChildNodes()&&!ke(e.firstElementChild)&&Nr(/<[/\w!]/g,e.innerHTML)&&Nr(/<[/\w!]/g,e.textContent))return Ue(e),!0;if(7===e.nodeType)return Ue(e),!0;if(J&&8===e.nodeType&&Nr(/<[/\w]/g,e.data))return Ue(e),!0;if(!(X.tagCheck instanceof Function&&X.tagCheck(n))&&(!B[n]||G[n])){if(!G[n]&&Ge(n)){if(z.tagNameCheck instanceof RegExp&&Nr(z.tagNameCheck,n))return!1;if(z.tagNameCheck instanceof Function&&z.tagNameCheck(n))return!1}if(se&&!le[n]){const t=b(e)||e.parentNode,r=w(e)||e.childNodes;if(r&&t)for(let n=r.length-1;n>=0;--n){const o=E(r[n],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,y(e))}}return Ue(e),!0}return e instanceof l&&!function(e){let t=b(e);t&&t.tagName||(t={namespaceURI:ye,tagName:"template"});const r=wr(e.tagName),n=wr(t.tagName);return!!be[e.namespaceURI]&&(e.namespaceURI===Ee?t.namespaceURI===ge?"svg"===r:t.namespaceURI===me?"svg"===r&&("annotation-xml"===n||Ie[n]):Boolean(xe[r]):e.namespaceURI===me?t.namespaceURI===ge?"math"===r:t.namespaceURI===Ee?"math"===r&&Ae[n]:Boolean(De[r]):e.namespaceURI===ge?!(t.namespaceURI===Ee&&!Ae[n])&&!(t.namespaceURI===me&&!Ie[n])&&!De[r]&&(Te[r]||!xe[r]):!("application/xhtml+xml"!==Oe||!be[e.namespaceURI]))}(e)?(Ue(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!Nr(/<\/no(script|embed|frames)/i,e.innerHTML)?(K&&3===e.nodeType&&(t=e.textContent,dr([S,_,C],e=>{t=Ir(t,e," ")}),e.textContent!==t&&(gr(r.removed,{element:e.cloneNode()}),e.textContent=t)),Fe(L.afterSanitizeElements,e,null),!1):(Ue(e),!0)},ze=function(e,t,r){if(oe&&("id"===t||"name"===t)&&(r in n||r in Se))return!1;if(V&&!H[t]&&Nr(x,t));else if(q&&Nr(D,t));else if(X.attributeCheck instanceof Function&&X.attributeCheck(t,e));else if(!F[t]||H[t]){if(!(Ge(e)&&(z.tagNameCheck instanceof RegExp&&Nr(z.tagNameCheck,e)||z.tagNameCheck instanceof Function&&z.tagNameCheck(e))&&(z.attributeNameCheck instanceof RegExp&&Nr(z.attributeNameCheck,t)||z.attributeNameCheck instanceof Function&&z.attributeNameCheck(t,e))||"is"===t&&z.allowCustomizedBuiltInElements&&(z.tagNameCheck instanceof RegExp&&Nr(z.tagNameCheck,r)||z.tagNameCheck instanceof Function&&z.tagNameCheck(r))))return!1}else if(pe[t]);else if(Nr(M,Ir(r,$,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Ar(r,"data:")||!fe[e])if(W&&!Nr(U,Ir(r,$,"")));else if(r)return!1;return!0},Ge=function(e){return"annotation-xml"!==e&&Rr(e,P)},He=function(e){Fe(L.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Be(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0};let o=t.length;for(;o--;){const i=t[o],{name:s,namespaceURI:a,value:c}=i,l=ve(s),u=c;let f="value"===s?u:Tr(u);if(n.attrName=l,n.attrValue=f,n.keepAttr=!0,n.forceKeepAttr=void 0,Fe(L.uponSanitizeAttribute,e,n),f=n.attrValue,!ie||"id"!==l&&"name"!==l||($e(s,e),f="user-content-"+f),J&&Nr(/((--!?|])>)|<\/(style|title|textarea)/i,f)){$e(s,e);continue}if("attributename"===l&&Rr(f,"href")){$e(s,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){$e(s,e);continue}if(!Y&&Nr(/\/>/i,f)){$e(s,e);continue}K&&dr([S,_,C],e=>{f=Ir(f,e," ")});const h=ve(e.nodeName);if(ze(h,l,f)){if(R&&"object"==typeof d&&"function"==typeof d.getAttributeType)if(a);else switch(d.getAttributeType(h,l)){case"TrustedHTML":f=R.createHTML(f);break;case"TrustedScriptURL":f=R.createScriptURL(f)}if(f!==u)try{a?e.setAttributeNS(a,s,f):e.setAttribute(s,f),Be(e)?Ue(e):Er(r.removed)}catch(t){$e(s,e)}}else $e(s,e)}Fe(L.afterSanitizeAttributes,e,null)},Xe=function e(t){let r=null;const n=Me(t);for(Fe(L.beforeSanitizeShadowDOM,t,null);r=n.nextNode();)Fe(L.uponSanitizeShadowNode,r,null),je(r),He(r),r.content instanceof s&&e(r.content);Fe(L.afterSanitizeShadowDOM,t,null)};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,i=null,a=null,l=null;if(we=!e,we&&(e="\x3c!--\x3e"),"string"!=typeof e&&!ke(e)){if("function"!=typeof e.toString)throw vr("toString is not a function");if("string"!=typeof(e=e.toString()))throw vr("dirty is not a string, aborting")}if(!r.isSupported)return e;if(Q||Ce(t),r.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=ve(e.nodeName);if(!B[t]||G[t])throw vr("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof c)n=Pe("\x3c!----\x3e"),i=n.ownerDocument.importNode(e,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?n=i:n.appendChild(i);else{if(!te&&!K&&!Z&&-1===e.indexOf("<"))return R&&ne?R.createHTML(e):e;if(n=Pe(e),!n)return te?null:ne?I:""}n&&ee&&Ue(n.firstChild);const u=Me(ae?e:n);for(;a=u.nextNode();)je(a),He(a),a.content instanceof s&&Xe(a.content);if(ae)return e;if(te){if(re)for(l=O.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(F.shadowroot||F.shadowrootmode)&&(l=v.call(o,l,!0)),l}let f=Z?n.outerHTML:n.innerHTML;return Z&&B["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&Nr(Qr,n.ownerDocument.doctype.name)&&(f="\n"+f),K&&dr([S,_,C],e=>{f=Ir(f,e," ")}),R&&ne?R.createHTML(f):f},r.setConfig=function(){Ce(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Q=!0},r.clearConfig=function(){Le=null,Q=!1},r.isValidAttribute=function(e,t,r){Le||Ce({});const n=ve(e),o=ve(t);return ze(n,o,r)},r.addHook=function(e,t){"function"==typeof t&&gr(L[e],t)},r.removeHook=function(e,t){if(void 0!==t){const r=mr(L[e],t);return-1===r?void 0:yr(L[e],r,1)[0]}return Er(L[e])},r.removeHooks=function(e){L[e]=[]},r.removeAllHooks=function(){L={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}(),on=r(580);function sn(e,t,r,n,o){const i="object"==typeof r?r:void 0,s="number"==typeof n?n:"number"==typeof r?r:void 0,a={escape:!0,sanitize:!0,..."object"==typeof o?o:"object"==typeof n?n:{}},c=e=>e,l=(a.sanitize?nn.sanitize:c)||c,u=a.escape?on:c,f=e=>"string"==typeof e||"number"==typeof e;let h=(o?.bundle??function(e){return{translations:globalThis._oc_l10n_registry_translations[e]??{},pluralFunction:globalThis._oc_l10n_registry_plural_functions[e]??(e=>e)}}(e)).translations[t]||t;return h=Array.isArray(h)?h[0]:h,l("object"==typeof i||void 0!==s?(p=i,d=s,h.replace(/%n/g,""+d).replace(/{([^{}]*)}/g,(e,t)=>{if(void 0===p||!(t in p))return u(e);const r=p[t];return f(r)?u(`${r}`):"object"==typeof r&&f(r.value)?(!1!==r.escape?on:c)(`${r.value}`):u(e)})):h);var p,d}globalThis._nc_l10n_locale??="undefined"!=typeof document&&document.documentElement.dataset.locale||Intl.DateTimeFormat().resolvedOptions().locale.replaceAll(/-/g,"_"),globalThis._nc_l10n_language??="undefined"!=typeof document&&document.documentElement.lang||(globalThis.navigator?.language??"en"),globalThis._oc_l10n_registry_translations??={},globalThis._oc_l10n_registry_plural_functions??={};var an,cn,ln,un,fn=r(5606),hn=(e=>(e.DEFAULT="default",e.HIDDEN="hidden",e))(hn||{});class pn{_action;constructor(e){this.validateAction(e),this._action=e}get id(){return this._action.id}get displayName(){return this._action.displayName}get title(){return this._action.title}get iconSvgInline(){return this._action.iconSvgInline}get enabled(){return this._action.enabled}get exec(){return this._action.exec}get execBatch(){return this._action.execBatch}get hotkey(){return this._action.hotkey}get order(){return this._action.order}get parent(){return this._action.parent}get default(){return this._action.default}get destructive(){return this._action.destructive}get inline(){return this._action.inline}get renderInline(){return this._action.renderInline}validateAction(e){if(!e.id||"string"!=typeof e.id)throw new Error("Invalid id");if(!e.displayName||"function"!=typeof e.displayName)throw new Error("Invalid displayName function");if("title"in e&&"function"!=typeof e.title)throw new Error("Invalid title function");if(!e.iconSvgInline||"function"!=typeof e.iconSvgInline)throw new Error("Invalid iconSvgInline function");if(!e.exec||"function"!=typeof e.exec)throw new Error("Invalid exec function");if("enabled"in e&&"function"!=typeof e.enabled)throw new Error("Invalid enabled function");if("execBatch"in e&&"function"!=typeof e.execBatch)throw new Error("Invalid execBatch function");if("order"in e&&"number"!=typeof e.order)throw new Error("Invalid order");if(void 0!==e.destructive&&"boolean"!=typeof e.destructive)throw new Error("Invalid destructive flag");if("parent"in e&&"string"!=typeof e.parent)throw new Error("Invalid parent");if(e.default&&!Object.values(hn).includes(e.default))throw new Error("Invalid default");if("inline"in e&&"function"!=typeof e.inline)throw new Error("Invalid inline function");if("renderInline"in e&&"function"!=typeof e.renderInline)throw new Error("Invalid renderInline function");if("hotkey"in e&&void 0!==e.hotkey){if("object"!=typeof e.hotkey)throw new Error("Invalid hotkey configuration");if("string"!=typeof e.hotkey.key||!e.hotkey.key)throw new Error("Missing or invalid hotkey key");if("string"!=typeof e.hotkey.description||!e.hotkey.description)throw new Error("Missing or invalid hotkey description")}}}function dn(){if(cn)return an;cn=1;const e="object"==typeof fn&&fn.env&&fn.env.NODE_DEBUG&&/\bsemver\b/i.test(fn.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};return an=e}function mn(){if(un)return ln;un=1;const e=Number.MAX_SAFE_INTEGER||9007199254740991;return ln={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:e,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}var En,gn,yn,wn,bn,Rn,In,An,Tn,On,Nn,vn,Ln,Sn={exports:{}};function _n(){if(In)return Rn;In=1;const e=dn(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:r}=mn(),{safeRe:n,t:o}=(En||(En=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:o}=mn(),i=dn(),s=(t=e.exports={}).re=[],a=t.safeRe=[],c=t.src=[],l=t.safeSrc=[],u=t.t={};let f=0;const h="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",o],[h,n]],d=(e,t,r)=>{const n=(e=>{for(const[t,r]of p)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e})(t),o=f++;i(e,o,t),u[e]=o,c[o]=t,l[o]=n,s[o]=new RegExp(t,r?"g":void 0),a[o]=new RegExp(n,r?"g":void 0)};d("NUMERICIDENTIFIER","0|[1-9]\\d*"),d("NUMERICIDENTIFIERLOOSE","\\d+"),d("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),d("MAINVERSION",`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),d("MAINVERSIONLOOSE",`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),d("PRERELEASEIDENTIFIER",`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),d("PRERELEASEIDENTIFIERLOOSE",`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),d("PRERELEASE",`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),d("PRERELEASELOOSE",`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),d("BUILDIDENTIFIER",`${h}+`),d("BUILD",`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),d("FULLPLAIN",`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),d("FULL",`^${c[u.FULLPLAIN]}$`),d("LOOSEPLAIN",`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),d("LOOSE",`^${c[u.LOOSEPLAIN]}$`),d("GTLT","((?:<|>)?=?)"),d("XRANGEIDENTIFIERLOOSE",`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),d("XRANGEIDENTIFIER",`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),d("XRANGEPLAIN",`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),d("XRANGEPLAINLOOSE",`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),d("XRANGE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),d("XRANGELOOSE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),d("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),d("COERCE",`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),d("COERCEFULL",c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),d("COERCERTL",c[u.COERCE],!0),d("COERCERTLFULL",c[u.COERCEFULL],!0),d("LONETILDE","(?:~>?)"),d("TILDETRIM",`(\\s*)${c[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",d("TILDE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),d("TILDELOOSE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),d("LONECARET","(?:\\^)"),d("CARETTRIM",`(\\s*)${c[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",d("CARET",`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),d("CARETLOOSE",`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),d("COMPARATORLOOSE",`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),d("COMPARATOR",`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),d("COMPARATORTRIM",`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",d("HYPHENRANGE",`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),d("HYPHENRANGELOOSE",`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),d("STAR","(<|>)?=?\\s*\\*"),d("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),d("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(Sn,Sn.exports)),Sn.exports),i=function(){if(yn)return gn;yn=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return gn=r=>r?"object"!=typeof r?e:r:t}(),{compareIdentifiers:s}=function(){if(bn)return wn;bn=1;const e=/^[0-9]+$/,t=(t,r)=>{if("number"==typeof t&&"number"==typeof r)return t===r?0:tt(r,e)}}();class a{constructor(s,c){if(c=i(c),s instanceof a){if(s.loose===!!c.loose&&s.includePrerelease===!!c.includePrerelease)return s;s=s.version}else if("string"!=typeof s)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof s}".`);if(s.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",s,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;const l=s.trim().match(c.loose?n[o.LOOSE]:n[o.FULL]);if(!l)throw new TypeError(`Invalid Version: ${s}`);if(this.raw=s,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");l[4]?this.prerelease=l[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&te.major?1:this.minore.minor?1:this.patche.patch?1:0}comparePre(t){if(t instanceof a||(t=new a(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{const n=this.prerelease[r],o=t.prerelease[r];if(e("prerelease compare",r,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return s(n,o)}while(++r)}compareBuild(t){t instanceof a||(t=new a(t,this.options));let r=0;do{const n=this.build[r],o=t.build[r];if(e("build compare",r,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return s(n,o)}while(++r)}inc(e,t,r){if(e.startsWith("pre")){if(!t&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(t){const e=`-${t}`.match(this.options.loose?n[o.PRERELEASELOOSE]:n[o.PRERELEASE]);if(!e||e[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(r)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===s(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return Rn=a}!function(){if(Tn)return An;Tn=1;const e=_n();An=(t,r)=>new e(t,r).major}(),function(){if(Ln)return vn;Ln=1;const e=function(){if(Nn)return On;Nn=1;const e=_n();return On=(t,r,n=!1)=>{if(t instanceof e)return t;try{return new e(t,r)}catch(e){if(!n)return null;throw e}}}();vn=(t,r)=>{const n=e(t,r);return n?n.version:null}}(),Error;const Cn=function(e,t){const r=`#initial-state-${e}-${t}`;if(window._nc_initial_state?.has(r))return window._nc_initial_state.get(r);window._nc_initial_state||(window._nc_initial_state=new Map);const n=document.querySelector(r);if(null===n)throw new Error(`Could not find initial state ${t} of ${e}`);try{const e=JSON.parse(atob(n.value));return window._nc_initial_state.set(r,e),e}catch(r){throw console.error("[@nextcloud/initial-state] Could not parse initial state",{key:t,app:e,error:r}),new Error(`Could not parse initial state ${t} of ${e}`,{cause:r})}}("app_api","ex_files_actions_menu");function xn(e,t){return Vt(`/apps/app_api/proxy/${e}/${t}`)}function Dn(e,t){return Vt(`/apps/app_api/embedded/${e}/${t}`)}function Un(e){return{fileId:e.fileid,name:e.basename,directory:e.dirname,etag:e.attributes.etag,mime:e.mime,favorite:Boolean(e.attributes.favorite).toString(),permissions:e.permissions,fileType:e.type,size:Number(e.size),mtime:new Date(e.mtime).getTime()/1e3,shareTypes:e.attributes.shareTypes||null,shareAttributes:e.attributes.shareAttributes||null,sharePermissions:e.attributes.sharePermissions||null,shareOwner:e.attributes.ownerDisplayName||null,shareOwnerId:e.attributes.ownerId||null,userId:p().uid,instanceId:Cn.instanceId}}function $n(){Cn.fileActions.forEach(e=>{let t='';(function(e,t){const r=xn(e.appid,e.action_handler),n="version"in e&&"2.0"===e.version,o=async t=>{if(n)try{const n=await Kt.post(r,{files:[Un(t)]});if("object"==typeof n.data&&n.data&&"redirect_handler"in n.data){const r=Dn(e.appid,n.data.redirect_handler);window.location.assign(`${r}?fileIds=${t.fileid}`)}return!0}catch(e){return console.error("Failed to send FileAction request to ExApp",e),!1}try{return await Kt.post(r,Un(t)),!0}catch(e){return console.error("Failed to send FileAction request to ExApp",e),!1}};var i;i=new pn({id:e.name,displayName:()=>sn(e.appid,e.display_name),title:()=>sn(e.appid,e.display_name),iconSvgInline:t,order:Number(e.order),enabled:({nodes:t})=>!(!t||0===t.length)&&t.every(t=>{return r=t.mime,e.mime.split(",").map(e=>e.trim()).filter(Boolean).some(e=>r.includes(e));var r}),exec:async({nodes:e})=>o(e[0]),execBatch:async({nodes:t})=>(async t=>{if(n)try{const n=await Kt.post(r,{files:t.map(Un)});if("object"==typeof n.data&&n.data&&"redirect_handler"in n.data){const r=Dn(e.appid,n.data.redirect_handler),o=t.map(e=>e.fileid).join(",");window.location.assign(`${r}?fileIds=${o}`)}return t.map(()=>!0)}catch(e){return console.error("Failed to send FileAction request to ExApp",e),t.map(()=>!1)}return Promise.all(t.map(o))})(t)}),void 0===window._nc_fileactions&&(window._nc_fileactions=[],nr.debug("FileActions initialized")),window._nc_fileactions.find(e=>e.id===i.id)?nr.error(`FileAction ${i.id} already registered`,{action:i}):window._nc_fileactions.push(i)})(e,()=>t),e.icon&&function(e,t){const r=xn(e,t);return Kt.get(r,{responseType:"text",validateStatus:e=>e>=200&&e<300||304===e}).then(e=>{const t=e.headers?.["content-type"];return function(e){return(e||"").toLowerCase().startsWith("image/svg+xml")}(t)?e.data?e.data:(console.debug("[app_api] icon empty body",{url:r,status:e.status,ct:t}),null):(console.debug("[app_api] icon not svg",{url:r,status:e.status,ct:t}),null)}).catch(e=>(console.error("[app_api] Failed to load ExApp FileAction icon inline svg",{url:r,status:e?.response?.status,ct:e?.response?.headers?.["content-type"],error:e}),null))}(e.appid,e.icon).then(e=>{if(!e)return;const r=function(e){try{const t=(new DOMParser).parseFromString(e,"image/svg+xml");if(t.getElementsByTagName("parsererror").length>0)return console.warn("[app_api] SVG parse error, using fallback icon"),null;const r=t.documentElement,n=r.getAttribute("style")||"",o=""!==n.trim()&&!n.trim().endsWith(";");return r.setAttribute("style",`${n}${o?";":""} filter: var(--background-invert-if-dark);`),r.outerHTML}catch(e){return console.error("[app_api] Failed to theme SVG, using fallback icon",e),null}}(e);r&&(t=r)})})}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",$n,{once:!0}):$n()})()})(); //# sourceMappingURL=app_api-filesplugin.js.map