/*! third party licenses: js/vendor.LICENSE.txt */ var Zt=Object.defineProperty;var Qt=(e,t,r)=>t in e?Zt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var v=(e,t,r)=>Qt(e,typeof t!="symbol"?t+"":t,r);import{g as Nt}from"./vendor-BeFBwUwf.chunk.mjs";import{p as Te,B as er}from"./index-Bn0s6V7w.chunk.mjs";import{g as tr}from"./index-vg7q3Iku.chunk.mjs";import{g as rr}from"./index-Anv74-sp.chunk.mjs";var Ee,ze;function At(){if(ze)return Ee;ze=1;var e={};return Ee=typeof Te=="object"&&e&&e.NODE_DEBUG&&/\bsemver\b/i.test(e.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{},Ee}var me,We;function Lt(){if(We)return me;We=1;const e="2.0.0",t=256,r=Number.MAX_SAFE_INTEGER||9007199254740991,n=16,s=t-6;return me={MAX_LENGTH:t,MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:s,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},me}var ge={exports:{}},Je;function nr(){return Je||(Je=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:s}=Lt(),a=At();t=e.exports={};const o=t.re=[],h=t.safeRe=[],c=t.src=[],u=t.safeSrc=[],i=t.t={};let p=0;const m="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",s],[m,n]],E=R=>{for(const[b,w]of d)R=R.split(`${b}*`).join(`${b}{0,${w}}`).split(`${b}+`).join(`${b}{1,${w}}`);return R},f=(R,b,w)=>{const L=E(b),S=p++;a(R,S,b),i[R]=S,c[S]=b,u[S]=L,o[S]=new RegExp(b,w?"g":void 0),h[S]=new RegExp(L,w?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${m}*`),f("MAINVERSION",`(${c[i.NUMERICIDENTIFIER]})\\.(${c[i.NUMERICIDENTIFIER]})\\.(${c[i.NUMERICIDENTIFIER]})`),f("MAINVERSIONLOOSE",`(${c[i.NUMERICIDENTIFIERLOOSE]})\\.(${c[i.NUMERICIDENTIFIERLOOSE]})\\.(${c[i.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASEIDENTIFIER",`(?:${c[i.NONNUMERICIDENTIFIER]}|${c[i.NUMERICIDENTIFIER]})`),f("PRERELEASEIDENTIFIERLOOSE",`(?:${c[i.NONNUMERICIDENTIFIER]}|${c[i.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASE",`(?:-(${c[i.PRERELEASEIDENTIFIER]}(?:\\.${c[i.PRERELEASEIDENTIFIER]})*))`),f("PRERELEASELOOSE",`(?:-?(${c[i.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[i.PRERELEASEIDENTIFIERLOOSE]})*))`),f("BUILDIDENTIFIER",`${m}+`),f("BUILD",`(?:\\+(${c[i.BUILDIDENTIFIER]}(?:\\.${c[i.BUILDIDENTIFIER]})*))`),f("FULLPLAIN",`v?${c[i.MAINVERSION]}${c[i.PRERELEASE]}?${c[i.BUILD]}?`),f("FULL",`^${c[i.FULLPLAIN]}$`),f("LOOSEPLAIN",`[v=\\s]*${c[i.MAINVERSIONLOOSE]}${c[i.PRERELEASELOOSE]}?${c[i.BUILD]}?`),f("LOOSE",`^${c[i.LOOSEPLAIN]}$`),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE",`${c[i.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),f("XRANGEIDENTIFIER",`${c[i.NUMERICIDENTIFIER]}|x|X|\\*`),f("XRANGEPLAIN",`[v=\\s]*(${c[i.XRANGEIDENTIFIER]})(?:\\.(${c[i.XRANGEIDENTIFIER]})(?:\\.(${c[i.XRANGEIDENTIFIER]})(?:${c[i.PRERELEASE]})?${c[i.BUILD]}?)?)?`),f("XRANGEPLAINLOOSE",`[v=\\s]*(${c[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[i.XRANGEIDENTIFIERLOOSE]})(?:${c[i.PRERELEASELOOSE]})?${c[i.BUILD]}?)?)?`),f("XRANGE",`^${c[i.GTLT]}\\s*${c[i.XRANGEPLAIN]}$`),f("XRANGELOOSE",`^${c[i.GTLT]}\\s*${c[i.XRANGEPLAINLOOSE]}$`),f("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),f("COERCE",`${c[i.COERCEPLAIN]}(?:$|[^\\d])`),f("COERCEFULL",c[i.COERCEPLAIN]+`(?:${c[i.PRERELEASE]})?(?:${c[i.BUILD]})?(?:$|[^\\d])`),f("COERCERTL",c[i.COERCE],!0),f("COERCERTLFULL",c[i.COERCEFULL],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM",`(\\s*)${c[i.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",f("TILDE",`^${c[i.LONETILDE]}${c[i.XRANGEPLAIN]}$`),f("TILDELOOSE",`^${c[i.LONETILDE]}${c[i.XRANGEPLAINLOOSE]}$`),f("LONECARET","(?:\\^)"),f("CARETTRIM",`(\\s*)${c[i.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",f("CARET",`^${c[i.LONECARET]}${c[i.XRANGEPLAIN]}$`),f("CARETLOOSE",`^${c[i.LONECARET]}${c[i.XRANGEPLAINLOOSE]}$`),f("COMPARATORLOOSE",`^${c[i.GTLT]}\\s*(${c[i.LOOSEPLAIN]})$|^$`),f("COMPARATOR",`^${c[i.GTLT]}\\s*(${c[i.FULLPLAIN]})$|^$`),f("COMPARATORTRIM",`(\\s*)${c[i.GTLT]}\\s*(${c[i.LOOSEPLAIN]}|${c[i.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE",`^\\s*(${c[i.XRANGEPLAIN]})\\s+-\\s+(${c[i.XRANGEPLAIN]})\\s*$`),f("HYPHENRANGELOOSE",`^\\s*(${c[i.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[i.XRANGEPLAINLOOSE]})\\s*$`),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(ge,ge.exports)),ge.exports}var be,Ke;function sr(){if(Ke)return be;Ke=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return be=r=>r?typeof r!="object"?e:r:t,be}var Re,Ye;function or(){if(Ye)return Re;Ye=1;const e=/^[0-9]+$/,t=(r,n)=>{const s=e.test(r),a=e.test(n);return s&&a&&(r=+r,n=+n),r===n?0:s&&!a?-1:a&&!s?1:rt(n,r)},Re}var we,Ze;function It(){if(Ze)return we;Ze=1;const e=At(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:r}=Lt(),{safeRe:n,t:s}=nr(),a=sr(),{compareIdentifiers:o}=or();class h{constructor(u,i){if(i=a(i),u instanceof h){if(u.loose===!!i.loose&&u.includePrerelease===!!i.includePrerelease)return u;u=u.version}else if(typeof u!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof u}".`);if(u.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",u,i),this.options=i,this.loose=!!i.loose,this.includePrerelease=!!i.includePrerelease;const p=u.trim().match(i.loose?n[s.LOOSE]:n[s.FULL]);if(!p)throw new TypeError(`Invalid Version: ${u}`);if(this.raw=u,this.major=+p[1],this.minor=+p[2],this.patch=+p[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");p[4]?this.prerelease=p[4].split(".").map(m=>{if(/^[0-9]+$/.test(m)){const d=+m;if(d>=0&&d=0;)typeof this.prerelease[d]=="number"&&(this.prerelease[d]++,d=-2);if(d===-1){if(i===this.prerelease.join(".")&&p===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(m)}}if(i){let d=[i,m];p===!1&&(d=[i]),o(this.prerelease[0],i)===0?isNaN(this.prerelease[1])&&(this.prerelease=d):this.prerelease=d}break}default:throw new Error(`invalid increment argument: ${u}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return we=h,we}var ye,Qe;function ir(){if(Qe)return ye;Qe=1;const e=It();return ye=(t,r)=>new e(t,r).major,ye}var ar=ir();const et=Nt(ar);var Oe,tt;function cr(){if(tt)return Oe;tt=1;const e=It();return Oe=(t,r,n=!1)=>{if(t instanceof e)return t;try{return new e(t,r)}catch(s){if(!n)return null;throw s}},Oe}var Se,rt;function ur(){if(rt)return Se;rt=1;const e=cr();return Se=(t,r)=>{const n=e(t,r);return n?n.version:null},Se}var lr=ur();const fr=Nt(lr);class hr{constructor(t){v(this,"bus");typeof t.getVersion!="function"||!fr(t.getVersion())?console.warn("Proxying an event bus with an unknown or invalid version"):et(t.getVersion())!==et(this.getVersion())&&console.warn("Proxying an event bus of version "+t.getVersion()+" with "+this.getVersion()),this.bus=t}getVersion(){return"3.3.3"}subscribe(t,r){this.bus.subscribe(t,r)}unsubscribe(t,r){this.bus.unsubscribe(t,r)}emit(t,...r){this.bus.emit(t,...r)}}class dr{constructor(){v(this,"handlers",new Map)}getVersion(){return"3.3.3"}subscribe(t,r){this.handlers.set(t,(this.handlers.get(t)||[]).concat(r))}unsubscribe(t,r){this.handlers.set(t,(this.handlers.get(t)||[]).filter(n=>n!==r))}emit(t,...r){(this.handlers.get(t)||[]).forEach(n=>{try{n(r[0])}catch(s){console.error("could not invoke event listener",s)}})}}let H=null;function Ue(){return H!==null?H:typeof window>"u"?new Proxy({},{get:()=>()=>console.error("Window not available, EventBus can not be established!")}):(window.OC?._eventBus&&typeof window._nc_event_bus>"u"&&(console.warn("found old event bus instance at OC._eventBus. Update your version!"),window._nc_event_bus=window.OC._eventBus),typeof window?._nc_event_bus<"u"?H=new hr(window._nc_event_bus):H=window._nc_event_bus=new dr,H)}function pr(e,t){Ue().subscribe(e,t)}function ns(e,t){Ue().unsubscribe(e,t)}function ss(e,...t){Ue().emit(e,...t)}const B=class B{constructor(t,r,n){v(this,"scope");v(this,"wrapped");this.scope=`${n?B.GLOBAL_SCOPE_PERSISTENT:B.GLOBAL_SCOPE_VOLATILE}_${btoa(t)}_`,this.wrapped=r}scopeKey(t){return`${this.scope}${t}`}setItem(t,r){this.wrapped.setItem(this.scopeKey(t),r)}getItem(t){return this.wrapped.getItem(this.scopeKey(t))}removeItem(t){this.wrapped.removeItem(this.scopeKey(t))}clear(){Object.keys(this.wrapped).filter(t=>t.startsWith(this.scope)).map(this.wrapped.removeItem.bind(this.wrapped))}};v(B,"GLOBAL_SCOPE_VOLATILE","nextcloud_vol"),v(B,"GLOBAL_SCOPE_PERSISTENT","nextcloud_per");let ve=B;class Er{constructor(t){v(this,"appId");v(this,"persisted",!1);v(this,"clearedOnLogout",!1);this.appId=t}persist(t=!0){return this.persisted=t,this}clearOnLogout(t=!0){return this.clearedOnLogout=t,this}build(){return new ve(this.appId,this.persisted?window.localStorage:window.sessionStorage,!this.clearedOnLogout)}}function mr(e){return new Er(e)}let W;const Tt=[];function gr(){return W===void 0&&(W=document.head.dataset.requesttoken??null),W}function br(e){Tt.push(e)}pr("csrf-token-update",e=>{W=e.token,Tt.forEach(t=>{try{t(W)}catch(r){console.error("Error updating CSRF token observer",r)}})});mr("public").persist().build();let k;function nt(e,t){return e?e.getAttribute(t):null}function os(){if(k!==void 0)return k;const e=document?.getElementsByTagName("head")[0];if(!e)return null;const t=nt(e,"data-user");return t===null?(k=null,k):(k={uid:t,displayName:nt(e,"data-user-displayname"),isAdmin:!!window._oc_isadmin},k)}function vt(e,t){return function(){return e.apply(t,arguments)}}const{toString:Rr}=Object.prototype,{getPrototypeOf:_e}=Object,{iterator:ce,toStringTag:Ct}=Symbol,ue=(e=>t=>{const r=Rr.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),I=e=>(e=e.toLowerCase(),t=>ue(t)===e),le=e=>t=>typeof t===e,{isArray:q}=Array,M=le("undefined");function J(e){return e!==null&&!M(e)&&e.constructor!==null&&!M(e.constructor)&&N(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Pt=I("ArrayBuffer");function wr(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Pt(e.buffer),t}const yr=le("string"),N=le("function"),$t=le("number"),K=e=>e!==null&&typeof e=="object",Or=e=>e===!0||e===!1,ne=e=>{if(ue(e)!=="object")return!1;const t=_e(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Ct in e)&&!(ce in e)},Sr=e=>{if(!K(e)||J(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Nr=I("Date"),Ar=I("File"),Lr=I("Blob"),Ir=I("FileList"),Tr=e=>K(e)&&N(e.pipe),vr=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||N(e.append)&&((t=ue(e))==="formdata"||t==="object"&&N(e.toString)&&e.toString()==="[object FormData]"))},Cr=I("URLSearchParams"),[Pr,$r,Fr,Ur]=["ReadableStream","Request","Response","Headers"].map(I),_r=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Y(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),q(e))for(n=0,s=e.length;n0;)if(s=r[n],t===s.toLowerCase())return s;return null}const _=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:tr,Ut=e=>!M(e)&&e!==_;function Ce(){const{caseless:e,skipUndefined:t}=Ut(this)&&this||{},r={},n=(s,a)=>{const o=e&&Ft(r,a)||a;ne(r[o])&&ne(s)?r[o]=Ce(r[o],s):ne(s)?r[o]=Ce({},s):q(s)?r[o]=s.slice():(!t||!M(s))&&(r[o]=s)};for(let s=0,a=arguments.length;s(Y(t,(s,a)=>{r&&N(s)?e[a]=vt(s,r):e[a]=s},{allOwnKeys:n}),e),Dr=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),xr=(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)},kr=(e,t,r,n)=>{let s,a,o;const h={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),a=s.length;a-- >0;)o=s[a],(!n||n(o,e,t))&&!h[o]&&(t[o]=e[o],h[o]=!0);e=r!==!1&&_e(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Br=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Mr=e=>{if(!e)return null;if(q(e))return e;let t=e.length;if(!$t(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},qr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&_e(Uint8Array)),Gr=(e,t)=>{const r=(e&&e[ce]).call(e);let n;for(;(n=r.next())&&!n.done;){const s=n.value;t.call(e,s[0],s[1])}},Xr=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Hr=I("HTMLFormElement"),Vr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),st=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),zr=I("RegExp"),_t=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Y(r,(s,a)=>{let o;(o=t(s,a,e))!==!1&&(n[a]=o||s)}),Object.defineProperties(e,n)},Wr=e=>{_t(e,(t,r)=>{if(N(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(N(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Jr=(e,t)=>{const r={},n=s=>{s.forEach(a=>{r[a]=!0})};return q(e)?n(e):n(String(e).split(t)),r},Kr=()=>{},Yr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Zr(e){return!!(e&&N(e.append)&&e[Ct]==="FormData"&&e[ce])}const Qr=e=>{const t=new Array(10),r=(n,s)=>{if(K(n)){if(t.indexOf(n)>=0)return;if(J(n))return n;if(!("toJSON"in n)){t[s]=n;const a=q(n)?[]:{};return Y(n,(o,h)=>{const c=r(o,s+1);!M(c)&&(a[h]=c)}),t[s]=void 0,a}}return n};return r(e,0)},en=I("AsyncFunction"),tn=e=>e&&(K(e)||N(e))&&N(e.then)&&N(e.catch),jt=((e,t)=>e?setImmediate:t?((r,n)=>(_.addEventListener("message",({source:s,data:a})=>{s===_&&a===r&&n.length&&n.shift()()},!1),s=>{n.push(s),_.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",N(_.postMessage)),rn=typeof queueMicrotask<"u"?queueMicrotask.bind(_):typeof Te<"u"&&Te.nextTick||jt,nn=e=>e!=null&&N(e[ce]),l={isArray:q,isArrayBuffer:Pt,isBuffer:J,isFormData:vr,isArrayBufferView:wr,isString:yr,isNumber:$t,isBoolean:Or,isObject:K,isPlainObject:ne,isEmptyObject:Sr,isReadableStream:Pr,isRequest:$r,isResponse:Fr,isHeaders:Ur,isUndefined:M,isDate:Nr,isFile:Ar,isBlob:Lr,isRegExp:zr,isFunction:N,isStream:Tr,isURLSearchParams:Cr,isTypedArray:qr,isFileList:Ir,forEach:Y,merge:Ce,extend:jr,trim:_r,stripBOM:Dr,inherits:xr,toFlatObject:kr,kindOf:ue,kindOfTest:I,endsWith:Br,toArray:Mr,forEachEntry:Gr,matchAll:Xr,isHTMLForm:Hr,hasOwnProperty:st,hasOwnProp:st,reduceDescriptors:_t,freezeMethods:Wr,toObjectSet:Jr,toCamelCase:Vr,noop:Kr,toFiniteNumber:Yr,findKey:Ft,global:_,isContextDefined:Ut,isSpecCompliantForm:Zr,toJSONObject:Qr,isAsyncFn:en,isThenable:tn,setImmediate:jt,asap:rn,isIterable:nn};function g(e,t,r,n,s){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),s&&(this.response=s,this.status=s.status?s.status:null)}l.inherits(g,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:l.toJSONObject(this.config),code:this.code,status:this.status}}});const ot=g.prototype,it={};["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=>{it[e]={value:e}}),Object.defineProperties(g,it),Object.defineProperty(ot,"isAxiosError",{value:!0}),g.from=(e,t,r,n,s,a)=>{const o=Object.create(ot);l.toFlatObject(e,o,function(u){return u!==Error.prototype},u=>u!=="isAxiosError");const h=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return g.call(o,h,c,r,n,s),e&&o.cause==null&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",a&&Object.assign(o,a),o};const sn=null;function Pe(e){return l.isPlainObject(e)||l.isArray(e)}function Dt(e){return l.endsWith(e,"[]")?e.slice(0,-2):e}function at(e,t,r){return e?e.concat(t).map(function(n,s){return n=Dt(n),!r&&s?"["+n+"]":n}).join(r?".":""):t}function on(e){return l.isArray(e)&&!e.some(Pe)}const an=l.toFlatObject(l,{},null,function(e){return/^is[A-Z]/.test(e)});function fe(e,t,r){if(!l.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=l.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,E){return!l.isUndefined(E[d])});const n=r.metaTokens,s=r.visitor||u,a=r.dots,o=r.indexes,h=(r.Blob||typeof Blob<"u"&&Blob)&&l.isSpecCompliantForm(t);if(!l.isFunction(s))throw new TypeError("visitor must be a function");function c(d){if(d===null)return"";if(l.isDate(d))return d.toISOString();if(l.isBoolean(d))return d.toString();if(!h&&l.isBlob(d))throw new g("Blob is not supported. Use a Buffer instead.");return l.isArrayBuffer(d)||l.isTypedArray(d)?h&&typeof Blob=="function"?new Blob([d]):er.from(d):d}function u(d,E,f){let R=d;if(d&&!f&&typeof d=="object"){if(l.endsWith(E,"{}"))E=n?E:E.slice(0,-2),d=JSON.stringify(d);else if(l.isArray(d)&&on(d)||(l.isFileList(d)||l.endsWith(E,"[]"))&&(R=l.toArray(d)))return E=Dt(E),R.forEach(function(b,w){!(l.isUndefined(b)||b===null)&&t.append(o===!0?at([E],w,a):o===null?E:E+"[]",c(b))}),!1}return Pe(d)?!0:(t.append(at(f,E,a),c(d)),!1)}const i=[],p=Object.assign(an,{defaultVisitor:u,convertValue:c,isVisitable:Pe});function m(d,E){if(!l.isUndefined(d)){if(i.indexOf(d)!==-1)throw Error("Circular reference detected in "+E.join("."));i.push(d),l.forEach(d,function(f,R){(!(l.isUndefined(f)||f===null)&&s.call(t,f,l.isString(R)?R.trim():R,E,p))===!0&&m(f,E?E.concat(R):[R])}),i.pop()}}if(!l.isObject(e))throw new TypeError("data must be an object");return m(e),t}function ct(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function je(e,t){this._pairs=[],e&&fe(e,this,t)}const ut=je.prototype;ut.append=function(e,t){this._pairs.push([e,t])},ut.toString=function(e){const t=e?function(r){return e.call(this,r,ct)}:ct;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function cn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function xt(e,t,r){if(!t)return e;const n=r&&r.encode||cn;l.isFunction(r)&&(r={serialize:r});const s=r&&r.serialize;let a;if(s?a=s(t,r):a=l.isURLSearchParams(t)?t.toString():new je(t,r).toString(n),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class lt{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){l.forEach(this.handlers,function(r){r!==null&&t(r)})}}const kt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},un=typeof URLSearchParams<"u"?URLSearchParams:je,ln=typeof FormData<"u"?FormData:null,fn=typeof Blob<"u"?Blob:null,hn={isBrowser:!0,classes:{URLSearchParams:un,FormData:ln,Blob:fn},protocols:["http","https","file","blob","url","data"]},De=typeof window<"u"&&typeof document<"u",$e=typeof navigator=="object"&&navigator||void 0,dn=De&&(!$e||["ReactNative","NativeScript","NS"].indexOf($e.product)<0),pn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",En=De&&window.location.href||"http://localhost",mn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:De,hasStandardBrowserEnv:dn,hasStandardBrowserWebWorkerEnv:pn,navigator:$e,origin:En},Symbol.toStringTag,{value:"Module"})),O={...mn,...hn};function gn(e,t){return fe(e,new O.classes.URLSearchParams,{visitor:function(r,n,s,a){return O.isNode&&l.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function bn(e){return l.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Rn(e){const t={},r=Object.keys(e);let n;const s=r.length;let a;for(n=0;n=r.length;return o=!o&&l.isArray(s)?s.length:o,c?(l.hasOwnProp(s,o)?s[o]=[s[o],n]:s[o]=n,!h):((!s[o]||!l.isObject(s[o]))&&(s[o]=[]),t(r,n,s[o],a)&&l.isArray(s[o])&&(s[o]=Rn(s[o])),!h)}if(l.isFormData(e)&&l.isFunction(e.entries)){const r={};return l.forEachEntry(e,(n,s)=>{t(bn(n),s,r,0)}),r}return null}function wn(e,t,r){if(l.isString(e))try{return(t||JSON.parse)(e),l.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Z={transitional:kt,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,s=l.isObject(e);if(s&&l.isHTMLForm(e)&&(e=new FormData(e)),l.isFormData(e))return n?JSON.stringify(Bt(e)):e;if(l.isArrayBuffer(e)||l.isBuffer(e)||l.isStream(e)||l.isFile(e)||l.isBlob(e)||l.isReadableStream(e))return e;if(l.isArrayBufferView(e))return e.buffer;if(l.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return gn(e,this.formSerializer).toString();if((a=l.isFileList(e))||r.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return fe(a?{"files[]":e}:e,o&&new o,this.formSerializer)}}return s||n?(t.setContentType("application/json",!1),wn(e)):e}],transformResponse:[function(e){const t=this.transitional||Z.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if(l.isResponse(e)||l.isReadableStream(e))return e;if(e&&l.isString(e)&&(r&&!this.responseType||n)){const s=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e,this.parseReviver)}catch(a){if(s)throw a.name==="SyntaxError"?g.from(a,g.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:O.classes.FormData,Blob:O.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};l.forEach(["delete","get","head","post","put","patch"],e=>{Z.headers[e]={}});const yn=l.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"]),On=e=>{const t={};let r,n,s;return e&&e.split(` `).forEach(function(a){s=a.indexOf(":"),r=a.substring(0,s).trim().toLowerCase(),n=a.substring(s+1).trim(),!(!r||t[r]&&yn[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},ft=Symbol("internals");function V(e){return e&&String(e).trim().toLowerCase()}function se(e){return e===!1||e==null?e:l.isArray(e)?e.map(se):String(e)}function Sn(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Nn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ne(e,t,r,n,s){if(l.isFunction(n))return n.call(this,t,r);if(s&&(t=r),!!l.isString(t)){if(l.isString(n))return t.indexOf(n)!==-1;if(l.isRegExp(n))return n.test(t)}}function An(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Ln(e,t){const r=l.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(s,a,o){return this[n].call(this,t,s,a,o)},configurable:!0})})}let A=class{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function s(o,h,c){const u=V(h);if(!u)throw new Error("header name must be a non-empty string");const i=l.findKey(n,u);(!i||n[i]===void 0||c===!0||c===void 0&&n[i]!==!1)&&(n[i||h]=se(o))}const a=(o,h)=>l.forEach(o,(c,u)=>s(c,u,h));if(l.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(l.isString(e)&&(e=e.trim())&&!Nn(e))a(On(e),t);else if(l.isObject(e)&&l.isIterable(e)){let o={},h,c;for(const u of e){if(!l.isArray(u))throw TypeError("Object iterator must return a key-value pair");o[c=u[0]]=(h=o[c])?l.isArray(h)?[...h,u[1]]:[h,u[1]]:u[1]}a(o,t)}else e!=null&&s(t,e,r);return this}get(e,t){if(e=V(e),e){const r=l.findKey(this,e);if(r){const n=this[r];if(!t)return n;if(t===!0)return Sn(n);if(l.isFunction(t))return t.call(this,n,r);if(l.isRegExp(t))return t.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=V(e),e){const r=l.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||Ne(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let n=!1;function s(a){if(a=V(a),a){const o=l.findKey(r,a);o&&(!t||Ne(r,r[o],o,t))&&(delete r[o],n=!0)}}return l.isArray(e)?e.forEach(s):s(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const s=t[r];(!e||Ne(this,this[s],s,e,!0))&&(delete this[s],n=!0)}return n}normalize(e){const t=this,r={};return l.forEach(this,(n,s)=>{const a=l.findKey(r,s);if(a){t[a]=se(n),delete t[s];return}const o=e?An(s):String(s).trim();o!==s&&delete t[s],t[o]=se(n),r[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return l.forEach(this,(r,n)=>{r!=null&&r!==!1&&(t[n]=e&&l.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(` `)}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(n=>r.set(n)),r}static accessor(e){const t=(this[ft]=this[ft]={accessors:{}}).accessors,r=this.prototype;function n(s){const a=V(s);t[a]||(Ln(r,s),t[a]=!0)}return l.isArray(e)?e.forEach(n):n(e),this}};A.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),l.reduceDescriptors(A.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),l.freezeMethods(A);function Ae(e,t){const r=this||Z,n=t||r,s=A.from(n.headers);let a=n.data;return l.forEach(e,function(o){a=o.call(r,a,s.normalize(),t?t.status:void 0)}),s.normalize(),a}function Mt(e){return!!(e&&e.__CANCEL__)}function G(e,t,r){g.call(this,e??"canceled",g.ERR_CANCELED,t,r),this.name="CanceledError"}l.inherits(G,g,{__CANCEL__:!0});function qt(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new g("Request failed with status code "+r.status,[g.ERR_BAD_REQUEST,g.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function In(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Tn(e,t){e=e||10;const r=new Array(e),n=new Array(e);let s=0,a=0,o;return t=t!==void 0?t:1e3,function(h){const c=Date.now(),u=n[a];o||(o=c),r[s]=h,n[s]=c;let i=a,p=0;for(;i!==s;)p+=r[i++],i=i%e;if(s=(s+1)%e,s===a&&(a=(a+1)%e),c-o{r=c,s=null,a&&(clearTimeout(a),a=null),e(...h)};return[(...h)=>{const c=Date.now(),u=c-r;u>=n?o(h,c):(s=h,a||(a=setTimeout(()=>{a=null,o(s)},n-u)))},()=>s&&o(s)]}const ie=(e,t,r=3)=>{let n=0;const s=Tn(50,250);return vn(a=>{const o=a.loaded,h=a.lengthComputable?a.total:void 0,c=o-n,u=s(c),i=o<=h;n=o;const p={loaded:o,total:h,progress:h?o/h:void 0,bytes:c,rate:u||void 0,estimated:u&&h&&i?(h-o)/u:void 0,event:a,lengthComputable:h!=null,[t?"download":"upload"]:!0};e(p)},r)},ht=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},dt=e=>(...t)=>l.asap(()=>e(...t)),Cn=O.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,O.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(O.origin),O.navigator&&/(msie|trident)/i.test(O.navigator.userAgent)):()=>!0,Pn=O.hasStandardBrowserEnv?{write(e,t,r,n,s,a,o){if(typeof document>"u")return;const h=[`${e}=${encodeURIComponent(t)}`];l.isNumber(r)&&h.push(`expires=${new Date(r).toUTCString()}`),l.isString(n)&&h.push(`path=${n}`),l.isString(s)&&h.push(`domain=${s}`),a===!0&&h.push("secure"),l.isString(o)&&h.push(`SameSite=${o}`),document.cookie=h.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function $n(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Fn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Gt(e,t,r){let n=!$n(t);return e&&(n||r==!1)?Fn(e,t):t}const pt=e=>e instanceof A?{...e}:e;function D(e,t){t=t||{};const r={};function n(u,i,p,m){return l.isPlainObject(u)&&l.isPlainObject(i)?l.merge.call({caseless:m},u,i):l.isPlainObject(i)?l.merge({},i):l.isArray(i)?i.slice():i}function s(u,i,p,m){if(l.isUndefined(i)){if(!l.isUndefined(u))return n(void 0,u,p,m)}else return n(u,i,p,m)}function a(u,i){if(!l.isUndefined(i))return n(void 0,i)}function o(u,i){if(l.isUndefined(i)){if(!l.isUndefined(u))return n(void 0,u)}else return n(void 0,i)}function h(u,i,p){if(p in t)return n(u,i);if(p in e)return n(void 0,u)}const c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:h,headers:(u,i,p)=>s(pt(u),pt(i),p,!0)};return l.forEach(Object.keys({...e,...t}),function(u){const i=c[u]||s,p=i(e[u],t[u],u);l.isUndefined(p)&&i!==h||(r[u]=p)}),r}const Xt=e=>{const t=D({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:s,xsrfCookieName:a,headers:o,auth:h}=t;if(t.headers=o=A.from(o),t.url=xt(Gt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),h&&o.set("Authorization","Basic "+btoa((h.username||"")+":"+(h.password?unescape(encodeURIComponent(h.password)):""))),l.isFormData(r)){if(O.hasStandardBrowserEnv||O.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(l.isFunction(r.getHeaders)){const c=r.getHeaders(),u=["content-type","content-length"];Object.entries(c).forEach(([i,p])=>{u.includes(i.toLowerCase())&&o.set(i,p)})}}if(O.hasStandardBrowserEnv&&(n&&l.isFunction(n)&&(n=n(t)),n||n!==!1&&Cn(t.url))){const c=s&&a&&Pn.read(a);c&&o.set(s,c)}return t},Un=typeof XMLHttpRequest<"u",_n=Un&&function(e){return new Promise(function(t,r){const n=Xt(e);let s=n.data;const a=A.from(n.headers).normalize();let{responseType:o,onUploadProgress:h,onDownloadProgress:c}=n,u,i,p,m,d;function E(){m&&m(),d&&d(),n.cancelToken&&n.cancelToken.unsubscribe(u),n.signal&&n.signal.removeEventListener("abort",u)}let f=new XMLHttpRequest;f.open(n.method.toUpperCase(),n.url,!0),f.timeout=n.timeout;function R(){if(!f)return;const w=A.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),L={data:!o||o==="text"||o==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:w,config:e,request:f};qt(function(S){t(S),E()},function(S){r(S),E()},L),f=null}"onloadend"in f?f.onloadend=R:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(R)},f.onabort=function(){f&&(r(new g("Request aborted",g.ECONNABORTED,e,f)),f=null)},f.onerror=function(w){const L=w&&w.message?w.message:"Network Error",S=new g(L,g.ERR_NETWORK,e,f);S.event=w||null,r(S),f=null},f.ontimeout=function(){let w=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const L=n.transitional||kt;n.timeoutErrorMessage&&(w=n.timeoutErrorMessage),r(new g(w,L.clarifyTimeoutError?g.ETIMEDOUT:g.ECONNABORTED,e,f)),f=null},s===void 0&&a.setContentType(null),"setRequestHeader"in f&&l.forEach(a.toJSON(),function(w,L){f.setRequestHeader(L,w)}),l.isUndefined(n.withCredentials)||(f.withCredentials=!!n.withCredentials),o&&o!=="json"&&(f.responseType=n.responseType),c&&([p,d]=ie(c,!0),f.addEventListener("progress",p)),h&&f.upload&&([i,m]=ie(h),f.upload.addEventListener("progress",i),f.upload.addEventListener("loadend",m)),(n.cancelToken||n.signal)&&(u=w=>{f&&(r(!w||w.type?new G(null,e,f):w),f.abort(),f=null)},n.cancelToken&&n.cancelToken.subscribe(u),n.signal&&(n.signal.aborted?u():n.signal.addEventListener("abort",u)));const b=In(n.url);if(b&&O.protocols.indexOf(b)===-1){r(new g("Unsupported protocol "+b+":",g.ERR_BAD_REQUEST,e));return}f.send(s||null)})},jn=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,s;const a=function(u){if(!s){s=!0,h();const i=u instanceof Error?u:this.reason;n.abort(i instanceof g?i:new G(i instanceof Error?i.message:i))}};let o=t&&setTimeout(()=>{o=null,a(new g(`timeout ${t} of ms exceeded`,g.ETIMEDOUT))},t);const h=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),e=null)};e.forEach(u=>u.addEventListener("abort",a));const{signal:c}=n;return c.unsubscribe=()=>l.asap(h),c}},Dn=function*(e,t){let r=e.byteLength;if(r{const s=xn(e,t);let a=0,o,h=c=>{o||(o=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:u,value:i}=await s.next();if(u){h(),c.close();return}let p=i.byteLength;if(r){let m=a+=p;r(m)}c.enqueue(new Uint8Array(i))}catch(u){throw h(u),u}},cancel(c){return h(c),s.return()}},{highWaterMark:2})},mt=64*1024,{isFunction:re}=l,Bn=(({Request:e,Response:t})=>({Request:e,Response:t}))(l.global),{ReadableStream:gt,TextEncoder:bt}=l.global,Rt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Mn=e=>{e=l.merge.call({skipUndefined:!0},Bn,e);const{fetch:t,Request:r,Response:n}=e,s=t?re(t):typeof fetch=="function",a=re(r),o=re(n);if(!s)return!1;const h=s&&re(gt),c=s&&(typeof bt=="function"?(E=>f=>E.encode(f))(new bt):async E=>new Uint8Array(await new r(E).arrayBuffer())),u=a&&h&&Rt(()=>{let E=!1;const f=new r(O.origin,{body:new gt,method:"POST",get duplex(){return E=!0,"half"}}).headers.has("Content-Type");return E&&!f}),i=o&&h&&Rt(()=>l.isReadableStream(new n("").body)),p={stream:i&&(E=>E.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(E=>{!p[E]&&(p[E]=(f,R)=>{let b=f&&f[E];if(b)return b.call(f);throw new g(`Response type '${E}' is not supported`,g.ERR_NOT_SUPPORT,R)})});const m=async E=>{if(E==null)return 0;if(l.isBlob(E))return E.size;if(l.isSpecCompliantForm(E))return(await new r(O.origin,{method:"POST",body:E}).arrayBuffer()).byteLength;if(l.isArrayBufferView(E)||l.isArrayBuffer(E))return E.byteLength;if(l.isURLSearchParams(E)&&(E=E+""),l.isString(E))return(await c(E)).byteLength},d=async(E,f)=>l.toFiniteNumber(E.getContentLength())??m(f);return async E=>{let{url:f,method:R,data:b,signal:w,cancelToken:L,timeout:S,onDownloadProgress:he,onUploadProgress:Be,responseType:P,headers:de,withCredentials:Q="same-origin",fetchOptions:Me}=Xt(E),qe=t||fetch;P=P?(P+"").toLowerCase():"text";let ee=jn([w,L&&L.toAbortSignal()],S),X=null;const U=ee&&ee.unsubscribe&&(()=>{ee.unsubscribe()});let Ge;try{if(Be&&u&&R!=="get"&&R!=="head"&&(Ge=await d(de,b))!==0){let F=new r(f,{method:"POST",body:b,duplex:"half"}),x;if(l.isFormData(b)&&(x=F.headers.get("content-type"))&&de.setContentType(x),F.body){const[pe,te]=ht(Ge,ie(dt(Be)));b=Et(F.body,mt,pe,te)}}l.isString(Q)||(Q=Q?"include":"omit");const T=a&&"credentials"in r.prototype,Xe={...Me,signal:ee,method:R.toUpperCase(),headers:de.normalize().toJSON(),body:b,duplex:"half",credentials:T?Q:void 0};X=a&&new r(f,Xe);let $=await(a?qe(X,Me):qe(f,Xe));const He=i&&(P==="stream"||P==="response");if(i&&(he||He&&U)){const F={};["status","statusText","headers"].forEach(Ve=>{F[Ve]=$[Ve]});const x=l.toFiniteNumber($.headers.get("content-length")),[pe,te]=he&&ht(x,ie(dt(he),!0))||[];$=new n(Et($.body,mt,pe,()=>{te&&te(),U&&U()}),F)}P=P||"text";let Yt=await p[l.findKey(p,P)||"text"]($,E);return!He&&U&&U(),await new Promise((F,x)=>{qt(F,x,{data:Yt,headers:A.from($.headers),status:$.status,statusText:$.statusText,config:E,request:X})})}catch(T){throw U&&U(),T&&T.name==="TypeError"&&/Load failed|fetch/i.test(T.message)?Object.assign(new g("Network Error",g.ERR_NETWORK,E,X),{cause:T.cause||T}):g.from(T,T&&T.code,E,X)}}},qn=new Map,Ht=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:s}=t,a=[n,s,r];let o=a.length,h=o,c,u,i=qn;for(;h--;)c=a[h],u=i.get(c),u===void 0&&i.set(c,u=h?new Map:Mn(t)),i=u;return u};Ht();const xe={http:sn,xhr:_n,fetch:{get:Ht}};l.forEach(xe,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const wt=e=>`- ${e}`,Gn=e=>l.isFunction(e)||e===null||e===!1;function Xn(e,t){e=l.isArray(e)?e:[e];const{length:r}=e;let n,s;const a={};for(let o=0;o`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let h=r?o.length>1?`since : `+o.map(wt).join(` `):" "+wt(o[0]):"as no adapter specified";throw new g("There is no suitable adapter to dispatch the request "+h,"ERR_NOT_SUPPORT")}return s}const Vt={getAdapter:Xn,adapters:xe};function Le(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new G(null,e)}function yt(e){return Le(e),e.headers=A.from(e.headers),e.data=Ae.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Vt.getAdapter(e.adapter||Z.adapter,e)(e).then(function(t){return Le(e),t.data=Ae.call(e,e.transformResponse,t),t.headers=A.from(t.headers),t},function(t){return Mt(t)||(Le(e),t&&t.response&&(t.response.data=Ae.call(e,e.transformResponse,t.response),t.response.headers=A.from(t.response.headers))),Promise.reject(t)})}const zt="1.13.2",ae={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ae[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ot={};ae.transitional=function(e,t,r){function n(s,a){return"[Axios v"+zt+"] Transitional option '"+s+"'"+a+(r?". "+r:"")}return(s,a,o)=>{if(e===!1)throw new g(n(a," has been removed"+(t?" in "+t:"")),g.ERR_DEPRECATED);return t&&!Ot[a]&&(Ot[a]=!0,console.warn(n(a," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(s,a,o):!0}},ae.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function Hn(e,t,r){if(typeof e!="object")throw new g("options must be an object",g.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const a=n[s],o=t[a];if(o){const h=e[a],c=h===void 0||o(h,a,e);if(c!==!0)throw new g("option "+a+" must be "+c,g.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new g("Unknown option "+a,g.ERR_BAD_OPTION)}}const oe={assertOptions:Hn,validators:ae},C=oe.validators;let j=class{constructor(e){this.defaults=e||{},this.interceptors={request:new lt,response:new lt}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const s=n.stack?n.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=` `+s):r.stack=s}catch{}}throw r}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=D(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:s}=t;r!==void 0&&oe.assertOptions(r,{silentJSONParsing:C.transitional(C.boolean),forcedJSONParsing:C.transitional(C.boolean),clarifyTimeoutError:C.transitional(C.boolean)},!1),n!=null&&(l.isFunction(n)?t.paramsSerializer={serialize:n}:oe.assertOptions(n,{encode:C.function,serialize:C.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),oe.assertOptions(t,{baseUrl:C.spelling("baseURL"),withXsrfToken:C.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=s&&l.merge(s.common,s[t.method]);s&&l.forEach(["delete","get","head","post","put","patch","common"],d=>{delete s[d]}),t.headers=A.concat(a,s);const o=[];let h=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(t)===!1||(h=h&&d.synchronous,o.unshift(d.fulfilled,d.rejected))});const c=[];this.interceptors.response.forEach(function(d){c.push(d.fulfilled,d.rejected)});let u,i=0,p;if(!h){const d=[yt.bind(this),void 0];for(d.unshift(...o),d.push(...c),p=d.length,u=Promise.resolve(t);i{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](s);n._listeners=null}),this.promise.then=s=>{let a;const o=new Promise(h=>{n.subscribe(h),a=h}).then(s);return o.cancel=function(){n.unsubscribe(a)},o},t(function(s,a,o){n.reason||(n.reason=new G(s,a,o),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Wt(function(r){t=r}),cancel:t}}};function zn(e){return function(t){return e.apply(null,t)}}function Wn(e){return l.isObject(e)&&e.isAxiosError===!0}const Fe={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(Fe).forEach(([e,t])=>{Fe[t]=e});function Jt(e){const t=new j(e),r=vt(j.prototype.request,t);return l.extend(r,j.prototype,t,{allOwnKeys:!0}),l.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return Jt(D(e,n))},r}const y=Jt(Z);y.Axios=j,y.CanceledError=G,y.CancelToken=Vn,y.isCancel=Mt,y.VERSION=zt,y.toFormData=fe,y.AxiosError=g,y.Cancel=y.CanceledError,y.all=function(e){return Promise.all(e)},y.spread=zn,y.isAxiosError=Wn,y.mergeConfig=D,y.AxiosHeaders=A,y.formToJSON=e=>Bt(l.isHTMLForm(e)?new FormData(e):e),y.getAdapter=Vt.getAdapter,y.HttpStatusCode=Fe,y.default=y;const{Axios:is,AxiosError:as,CanceledError:cs,isCancel:us,CancelToken:ls,VERSION:fs,all:hs,Cancel:ds,isAxiosError:ke,spread:ps,toFormData:Es,AxiosHeaders:ms,HttpStatusCode:gs,formToJSON:bs,getAdapter:Rs,mergeConfig:ws}=y,Kt=y.create({headers:{requesttoken:gr()??"","X-Requested-With":"XMLHttpRequest"}});br(e=>{Kt.defaults.headers.requesttoken=e});const z=Object.assign(Kt,{CancelToken:y.CancelToken,isCancel:y.isCancel}),St=Symbol("csrf-retry");function Jn(e){return async t=>{if(!ke(t))throw t;const{config:r,response:n,request:s}=t,a=s?.responseURL;if(r&&!r[St]&&n?.status===412&&n?.data?.message==="CSRF check failed"){console.warn(`Request to ${a} failed because of a CSRF mismatch. Fetching a new token`);const{data:{token:o}}=await e.get(rr("/csrftoken"));return console.debug(`New request token ${o} fetched`),e.defaults.headers.requesttoken=o,e({...r,headers:{...r.headers,requesttoken:o},[St]:!0})}throw t}}const Ie=Symbol("retryDelay");function Kn(e){return async t=>{if(!ke(t))throw t;const{config:r,response:n,request:s}=t,a=s?.responseURL,o=n?.status,h=n?.headers;let c=typeof r?.[Ie]=="number"?r?.[Ie]:1;if(o===503&&h?.["x-nextcloud-maintenance-mode"]==="1"&&r?.retryIfMaintenanceMode){if(c*=2,c>32)throw console.error("Retry delay exceeded one minute, giving up.",{responseURL:a}),t;return console.warn(`Request to ${a} failed because of maintenance mode. Retrying in ${c}s`),await new Promise(u=>{setTimeout(u,c*1e3)}),e({...r,[Ie]:c})}throw t}}async function Yn(e){if(ke(e)){const{config:t,response:r,request:n}=e,s=n?.responseURL;r?.status===401&&r?.data?.message==="Current user is not logged in"&&t?.reloadExpiredSession&&window?.location&&(console.error(`Request to ${s} failed because the user session expired. Reloading the page …`),window.location.reload())}throw e}z.interceptors.response.use(e=>e,Jn(z)),z.interceptors.response.use(e=>e,Kn(z)),z.interceptors.response.use(e=>e,Yn);export{gr as a,z as c,ss as e,os as g,pr as s,ns as u}; //# sourceMappingURL=index-C0mkXnFg.chunk.mjs.map