@opencloud-eu/web-client 4.0.0 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { UserApiFactory as N, UsersApiFactory as E, MeUserApiFactory as x, MeChangepasswordApiFactory as L, UserAppRoleAssignmentApiFactory as O, GroupApiFactory as z, GroupsApiFactory as W, ApplicationsApiFactory as V, DrivesApiFactory as j, MeDrivesApi as H, DrivesGetDrivesApi as Y, DriveItemApiFactory as _, DrivesRootApiFactory as R, MeDriveApiFactory as J, TagsApiFactory as Q, ActivitiesApiFactory as Z, RoleManagementApiFactory as $, DrivesPermissionsApiFactory as K, MePhotoApiFactory as X, UserPhotoApiFactory as q, Configuration as C } from "./web-client/graph/generated.js";
2
- import { u as F, g as I, r as ee } from "./toString-XlfBosfh.js";
3
- import { D as ae, E as te, F as re, d as T, n as h, o as U, h as k, e as B, G as g, u as A } from "./functions-DnZZKUk0.js";
2
+ import { u as v, g as I, r as ee } from "./toString-XlfBosfh.js";
3
+ import { E as ae, F as te, H as re, d as T, n as h, o as U, h as k, e as B, G as g, v as A } from "./functions-DK4H9weO.js";
4
4
  const se = ({ axiosClient: e, config: s }) => {
5
5
  const o = N(s, s.basePath, e), c = E(s, s.basePath, e), i = x(s, s.basePath, e), a = L(
6
6
  s,
@@ -109,7 +109,7 @@ const se = ({ axiosClient: e, config: s }) => {
109
109
  async addMember(i, a, t) {
110
110
  await o.addMember(
111
111
  i,
112
- { "@odata.id": F(s.basePath, "v1.0", "users", a) },
112
+ { "@odata.id": v(s.basePath, "v1.0", "users", a) },
113
113
  t
114
114
  );
115
115
  },
@@ -137,15 +137,15 @@ const se = ({ axiosClient: e, config: s }) => {
137
137
  };
138
138
  function oe() {
139
139
  }
140
- var v = I(ee, "Set");
140
+ var F = I(ee, "Set");
141
141
  function M(e) {
142
142
  var s = -1, o = Array(e.size);
143
143
  return e.forEach(function(c) {
144
144
  o[++s] = c;
145
145
  }), o;
146
146
  }
147
- var ce = 1 / 0, le = v && 1 / M(new v([, -0]))[1] == ce ? function(e) {
148
- return new v(e);
147
+ var ce = 1 / 0, le = F && 1 / M(new F([, -0]))[1] == ce ? function(e) {
148
+ return new F(e);
149
149
  } : oe, ue = 200;
150
150
  function de(e, s, o) {
151
151
  var c = -1, i = te, a = e.length, t = !0, r = [], n = r;
@@ -171,7 +171,7 @@ function de(e, s, o) {
171
171
  function pe(e) {
172
172
  return e && e.length ? de(e) : [];
173
173
  }
174
- const G = (e) => Object.hasOwn(e, "sharedWith"), ve = (e) => G(e) && e.outgoing, fe = (e) => G(e) && !e.outgoing, Re = (e) => Object.hasOwn(e, "role"), Te = (e) => !Object.hasOwn(e, "role"), ye = ({
174
+ const G = (e) => Object.hasOwn(e, "sharedWith"), Fe = (e) => G(e) && e.outgoing, fe = (e) => G(e) && !e.outgoing, Re = (e) => Object.hasOwn(e, "role"), Te = (e) => !Object.hasOwn(e, "role"), ye = ({
175
175
  driveItem: e,
176
176
  graphRoles: s
177
177
  }) => e.remoteItem?.permissions.reduce((o, c) => (c.roles?.forEach((i) => {
@@ -239,7 +239,7 @@ function Ue({
239
239
  shareRoles: u,
240
240
  sharePermissions: l,
241
241
  outgoing: !1,
242
- privateLink: F(o, "f", e.remoteItem.id),
242
+ privateLink: v(o, "f", e.remoteItem.id),
243
243
  hasPreview: () => !!e.thumbnails,
244
244
  canRename: () => e["@client.synchronize"],
245
245
  canDownload: () => l.includes(g.readContent),
@@ -250,7 +250,6 @@ function Ue({
250
250
  isMounted: () => !1,
251
251
  isReceivedShare: () => !0,
252
252
  canShare: () => !1,
253
- canDeny: () => !1,
254
253
  getDomSelector: () => B(e.id)
255
254
  };
256
255
  return d.extension = k(d), d;
@@ -260,7 +259,7 @@ function ke({
260
259
  user: s,
261
260
  serverUrl: o
262
261
  }) {
263
- const c = T(e.id), i = F(e.parentReference.path, e.name), a = {
262
+ const c = T(e.id), i = v(e.parentReference.path, e.name), a = {
264
263
  id: e.id,
265
264
  driveId: e.parentReference?.driveId,
266
265
  path: i,
@@ -289,7 +288,7 @@ function ke({
289
288
  type: e.folder ? "folder" : "file",
290
289
  mimeType: e.file?.mimeType || "httpd/unix-directory",
291
290
  outgoing: !0,
292
- privateLink: F(o, "f", e.id),
291
+ privateLink: v(o, "f", e.id),
293
292
  hasPreview: () => !!e.thumbnails,
294
293
  canRename: () => !0,
295
294
  canDownload: () => !0,
@@ -300,7 +299,6 @@ function ke({
300
299
  isMounted: () => !1,
301
300
  isReceivedShare: () => !0,
302
301
  canShare: () => !0,
303
- canDeny: () => !0,
304
302
  getDomSelector: () => B(e.id)
305
303
  };
306
304
  return a.extension = k(a), a;
@@ -325,7 +323,7 @@ function S({
325
323
  expirationDateTime: e.expirationDateTime
326
324
  };
327
325
  }
328
- function D({
326
+ function P({
329
327
  graphPermission: e,
330
328
  resourceId: s,
331
329
  indirect: o = !1
@@ -350,7 +348,7 @@ function D({
350
348
  function b({ link: e, grantedToV2: s }) {
351
349
  return e ? h.link.value : s?.group ? h.group.value : s?.user?.["@libre.graph.userType"] === "Federated" ? h.remote.value : h.user.value;
352
350
  }
353
- const P = (e) => new URL(e.webUrl).origin, we = ({ axiosClient: e, config: s }) => {
351
+ const D = (e) => new URL(e.webUrl).origin, we = ({ axiosClient: e, config: s }) => {
354
352
  const o = j(s, s.basePath, e), c = new H(s, s.basePath, e), i = new Y(s, s.basePath, e);
355
353
  return {
356
354
  async getDrive(a, t, r) {
@@ -359,15 +357,15 @@ const P = (e) => new URL(e.webUrl).origin, we = ({ axiosClient: e, config: s })
359
357
  t?.select ? /* @__PURE__ */ new Set([...t.select]) : null,
360
358
  r
361
359
  );
362
- return A({ ...n, serverUrl: P(n) });
360
+ return A({ ...n, serverUrl: D(n) });
363
361
  },
364
362
  async createDrive(a, t) {
365
363
  const { data: r } = await o.createDrive(a, t);
366
- return A({ ...r, serverUrl: P(r) });
364
+ return A({ ...r, serverUrl: D(r) });
367
365
  },
368
366
  async updateDrive(a, t, r) {
369
367
  const { data: n } = await o.updateDrive(a, t, r);
370
- return A({ ...n, serverUrl: P(n) });
368
+ return A({ ...n, serverUrl: D(n) });
371
369
  },
372
370
  async disableDrive(a, t, r) {
373
371
  await o.deleteDrive(a, t, r);
@@ -391,7 +389,7 @@ const P = (e) => new URL(e.webUrl).origin, we = ({ axiosClient: e, config: s })
391
389
  a?.select ? /* @__PURE__ */ new Set([...a.select]) : null,
392
390
  t
393
391
  );
394
- return r.map((n) => A({ ...n, serverUrl: P(n) }));
392
+ return r.map((n) => A({ ...n, serverUrl: D(n) }));
395
393
  },
396
394
  async listAllDrives(a, t) {
397
395
  const {
@@ -403,7 +401,7 @@ const P = (e) => new URL(e.webUrl).origin, we = ({ axiosClient: e, config: s })
403
401
  a?.select ? /* @__PURE__ */ new Set([...a.select]) : null,
404
402
  t
405
403
  );
406
- return r.map((n) => A({ ...n, serverUrl: P(n) }));
404
+ return r.map((n) => A({ ...n, serverUrl: D(n) }));
407
405
  }
408
406
  };
409
407
  }, me = ({
@@ -474,7 +472,7 @@ const P = (e) => new URL(e.webUrl).origin, we = ({ axiosClient: e, config: s })
474
472
  return a || [];
475
473
  }
476
474
  };
477
- }, De = ({
475
+ }, Pe = ({
478
476
  axiosClient: e,
479
477
  config: s
480
478
  }) => {
@@ -491,7 +489,7 @@ const P = (e) => new URL(e.webUrl).origin, we = ({ axiosClient: e, config: s })
491
489
  r,
492
490
  u
493
491
  );
494
- return l.link ? D({ graphPermission: l, resourceId: t }) : S({
492
+ return l.link ? P({ graphPermission: l, resourceId: t }) : S({
495
493
  graphPermission: l,
496
494
  resourceId: t,
497
495
  graphRoles: n || {}
@@ -522,7 +520,7 @@ const P = (e) => new URL(e.webUrl).origin, we = ({ axiosClient: e, config: s })
522
520
  l = y;
523
521
  }
524
522
  const d = l.value || [], p = l["@libre.graph.permissions.actions.allowedValues"], w = l["@libre.graph.permissions.roles.allowedValues"], m = l["@odata.count"];
525
- return { shares: d.map((y) => y.link ? D({ graphPermission: y, resourceId: t }) : S({
523
+ return { shares: d.map((y) => y.link ? P({ graphPermission: y, resourceId: t }) : S({
526
524
  graphPermission: y,
527
525
  resourceId: t,
528
526
  graphRoles: r || {}
@@ -548,7 +546,7 @@ const P = (e) => new URL(e.webUrl).origin, we = ({ axiosClient: e, config: s })
548
546
  );
549
547
  d = p;
550
548
  }
551
- return d.link ? D({ graphPermission: d, resourceId: t }) : S({
549
+ return d.link ? P({ graphPermission: d, resourceId: t }) : S({
552
550
  graphPermission: d,
553
551
  resourceId: t,
554
552
  graphRoles: u || {}
@@ -605,7 +603,7 @@ const P = (e) => new URL(e.webUrl).origin, we = ({ axiosClient: e, config: s })
605
603
  );
606
604
  u = l;
607
605
  }
608
- return D({ graphPermission: u, resourceId: t });
606
+ return P({ graphPermission: u, resourceId: t });
609
607
  },
610
608
  async setPermissionPassword(a, t, r, n, u) {
611
609
  let l;
@@ -627,14 +625,14 @@ const P = (e) => new URL(e.webUrl).origin, we = ({ axiosClient: e, config: s })
627
625
  );
628
626
  l = d;
629
627
  }
630
- return D({ graphPermission: l, resourceId: t });
628
+ return P({ graphPermission: l, resourceId: t });
631
629
  },
632
630
  async listRoleDefinitions(a) {
633
631
  const { data: t } = await c.listPermissionRoleDefinitions(a);
634
632
  return t;
635
633
  }
636
634
  };
637
- }, Pe = ({ axiosClient: e, config: s }) => {
635
+ }, De = ({ axiosClient: e, config: s }) => {
638
636
  const o = X(s, s.basePath, e), c = q(s, s.basePath, e);
639
637
  return {
640
638
  async getOwnUserPhoto(i) {
@@ -668,12 +666,12 @@ const P = (e) => new URL(e.webUrl).origin, we = ({ axiosClient: e, config: s })
668
666
  driveItems: me({ axiosClient: s, config: c }),
669
667
  users: se({ axiosClient: s, config: c }),
670
668
  groups: ne({ axiosClient: s, config: c }),
671
- permissions: De({ axiosClient: s, config: c }),
672
- photos: Pe({ axiosClient: s, config: c })
669
+ permissions: Pe({ axiosClient: s, config: c }),
670
+ photos: De({ axiosClient: s, config: c })
673
671
  };
674
672
  };
675
673
  export {
676
- ve as a,
674
+ Fe as a,
677
675
  fe as b,
678
676
  Re as c,
679
677
  Te as d,
@@ -684,5 +682,5 @@ export {
684
682
  G as i,
685
683
  ke as j,
686
684
  S as k,
687
- D as l
685
+ P as l
688
686
  };
@@ -1,5 +1,5 @@
1
- import { a as Nr } from "./index-BIL0cW_q.js";
2
- import { C as st, H as de, I as me, s as xr, l as ue, p as Kt, m as Pr, J as se } from "./functions-DnZZKUk0.js";
1
+ import { a as Nr } from "./index-2zDycGQj.js";
2
+ import { D as st, I as de, J as me, t as xr, l as ue, p as Kt, m as Pr, K as se } from "./functions-DK4H9weO.js";
3
3
  import { u as M } from "./toString-XlfBosfh.js";
4
4
  import { ocs as Er } from "./web-client/ocs.js";
5
5
  import { p as oe, g as ve } from "./index-JHVTaNRI.js";
@@ -91,7 +91,7 @@ const re = (r, { fileId: e, path: t, name: n }) => {
91
91
  }), Sr = (r, e, { axiosClient: t, baseUrl: n }) => ({
92
92
  async getFileUrl(o, u, {
93
93
  disposition: c = "attachment",
94
- isUrlSigningEnabled: i = !1,
94
+ isUrlSigningEnabled: i = !0,
95
95
  signUrlTimeout: h = 86400,
96
96
  version: a = null,
97
97
  doHeadRequest: s = !1,
@@ -99,13 +99,13 @@ const re = (r, { fileId: e, path: t, name: n }) => {
99
99
  ...l
100
100
  }) {
101
101
  const g = c === "inline";
102
- let { downloadURL: d } = u, m = !0;
103
- if (!d && !g && (d = a ? r.getFileUrl(M("meta", u.fileId, "v", a)) : r.getFileUrl(u.webDavPath), f && s && await t.head(d), i && f ? d = await Er(n, t).signUrl(d, f) : m = !1), !m || g) {
104
- const w = await e.getFileContents(o, u, {
102
+ let { downloadURL: d } = u;
103
+ if (!d && !g && (d = a ? r.getFileUrl(M("meta", u.fileId, "v", a)) : r.getFileUrl(u.webDavPath), f && (s && await t.head(d), d = await Er(n, t).signUrl(d, f))), g) {
104
+ const m = await e.getFileContents(o, u, {
105
105
  responseType: "blob",
106
106
  ...l
107
107
  });
108
- d = URL.createObjectURL(w.body);
108
+ d = URL.createObjectURL(m.body);
109
109
  }
110
110
  return d;
111
111
  },
@@ -4428,7 +4428,10 @@ const nt = (r, e) => Object.fromEntries(
4428
4428
  return u.props.name && (u.props.name = u.props.name.toString()), u;
4429
4429
  });
4430
4430
  }, Os = (r) => {
4431
- const e = new pt.XMLParser(), t = { message: "Unknown error", errorCode: void 0 };
4431
+ const e = new pt.XMLParser(), t = {
4432
+ message: "Unknown error",
4433
+ errorCode: void 0
4434
+ };
4432
4435
  try {
4433
4436
  const n = e.parse(r);
4434
4437
  if (!n["d:error"])
@@ -1,4 +1,4 @@
1
- "use strict";const mr=require("./index-DAa_DzDf.cjs"),R=require("./functions-DP8s29Wg.cjs"),V=require("./toString-CgHWCW2N.cjs"),br=require("./web-client/ocs.cjs"),re=require("./index-D_NPkUGY.cjs"),fe=r=>encodeURIComponent(r).split("%2F").join("/");class et extends Error{response;statusCode;constructor(e,t,n=null){super(e),this.response=t,this.statusCode=n}}class Jt extends et{errorCode;constructor(e,t,n,o=null){super(e,n,o),this.errorCode=t}}const se=(r,{fileId:e,path:t,name:n})=>{if(t!==void 0)return V.urlJoin(r.webDavPath,t);if(e!==void 0){if(R.isPublicSpaceResource(r))throw new Error("public spaces need a path provided");return V.urlJoin("spaces",e,n||"")}return r.webDavPath},yr=(r,e)=>({copyFiles(t,{path:n,fileId:o},u,{path:c,parentFolderId:i,name:h},{overwrite:a,...s}={}){const f=se(t,{fileId:o,path:n}),l=se(u,{fileId:i,path:c,name:h});return r.copy(f,l,{overwrite:a||!1,...s})}}),vr=(r,e,t)=>({async createFolder(n,{path:o,parentFolderId:u,folderName:c,fetchFolder:i=!0,...h}){const a=se(n,{fileId:u,path:o,name:c});if(await r.mkcol(a),i)return e.getFileInfo(n,{path:o},h)}}),wr=(r,{axiosClient:e})=>({async getFileContents(t,{fileId:n,path:o},{responseType:u="text",noCache:c=!0,headers:i,...h}={}){try{const a=se(t,{fileId:n,path:o}),s=await e.get(r.getFileUrl(a),{responseType:u,headers:{...c&&{"Cache-Control":"no-cache"},...i||{}},...h});return{response:s,body:s.data,headers:{ETag:s.headers.etag,"OC-ETag":s.headers["oc-etag"],"OC-FileId":s.headers["oc-fileid"]}}}catch(a){const{message:s,response:f}=a;throw new et(s,f,f.status)}}}),Nr=(r,e)=>({async getFileInfo(t,n,o){return(await r.listFiles(t,n,{depth:0,...o})).resource}}),xr=(r,e,{axiosClient:t,baseUrl:n})=>({async getFileUrl(o,u,{disposition:c="attachment",isUrlSigningEnabled:i=!1,signUrlTimeout:h=86400,version:a=null,doHeadRequest:s=!1,username:f="",...l}){const g=c==="inline";let{downloadURL:d}=u,m=!0;if(!d&&!g&&(d=a?r.getFileUrl(V.urlJoin("meta",u.fileId,"v",a)):r.getFileUrl(u.webDavPath),f&&s&&await t.head(d),i&&f?d=await br.ocs(n,t).signUrl(d,f):m=!1),!m||g){const w=await e.getFileContents(o,u,{responseType:"blob",...l});d=URL.createObjectURL(w.body)}return d},revokeUrl:o=>{o&&o.startsWith("blob:")&&URL.revokeObjectURL(o)}}),Pr=(r,e)=>({getPublicFileUrl(t,n){return r.getFileUrl(V.urlJoin("public-files",n))}}),Er=(r,e,t)=>({async listFiles(n,{path:o,fileId:u}={},{depth:c=1,davProperties:i,isTrash:h=!1,...a}={}){let s;if(R.isPublicSpaceResource(n)){s=await r.propfind(V.urlJoin(n.webDavPath,o),{depth:c,properties:i||R.DavProperties.PublicLink,...a}),s.forEach(d=>{d.filename=d.filename.split("/").slice(1).join("/")}),s.length===1&&(s[0].filename=V.urlJoin(n.id,o,{leadingSlash:!0})),s.forEach(d=>{d.filename=d.filename.split("/").slice(2).join("/")});const l=n.driveAlias.startsWith("ocm/")?"ocm":"public-link";if((!o||o==="/")&&c>0&&l==="ocm"&&s[0].props[R.DavProperty.PublicLinkItemType]==="file"&&(s=[{basename:n.fileId,type:"directory",filename:"",props:{}},...s]),!o){const[d,...m]=s;return{resource:R.buildPublicSpaceResource({...d,id:n.id,driveAlias:n.driveAlias,webDavPath:n.webDavPath,publicLinkType:l}),children:m.map(w=>R.buildResource(w,r.extraProps))}}const g=s.map(d=>R.buildResource(d,r.extraProps));return{resource:g[0],children:g.slice(1)}}const f=async()=>{const l=await e.getPathForFileId(u);return this.listFiles(n,{path:l},{depth:c,davProperties:i})};try{let l="";if(h?l=R.buildWebDavSpacesTrashPath(n.id):l=se(n,{fileId:u,path:o}),s=await r.propfind(l,{depth:c,properties:i||R.DavProperties.Default,...a}),h)return{resource:R.buildResource(s[0],r.extraProps),children:s.slice(1).map(R.buildDeletedResource)};const g=s.map(m=>R.buildResource(m,r.extraProps)),d=u===n.id;return u&&!d&&u!==g[0].fileId?f():{resource:g[0],children:g.slice(1)}}catch(l){if(l.statusCode===404&&u)return f();throw l}}}),Ar=(r,e)=>({moveFiles(t,{path:n,fileId:o},u,{path:c,parentFolderId:i,name:h},{overwrite:a,...s}={}){const f=se(t,{fileId:o,path:n}),l=se(u,{fileId:i,path:c,name:h});return r.move(f,l,{overwrite:a||!1,...s})}}),Tr=(r,e,t)=>({async putFileContents(n,{fileName:o,path:u,parentFolderId:c,content:i="",previousEntityTag:h="",overwrite:a,onUploadProgress:s=null,...f}){const l=se(n,{fileId:c,name:o,path:u}),{result:g}=await r.put(l,i,{previousEntityTag:h,overwrite:a,onUploadProgress:s,...f});return e.getFileInfo(n,{fileId:g.headers.get("Oc-Fileid"),path:u})}}),Or=(r,e)=>({deleteFile(t,{path:n,...o}){return r.delete(V.urlJoin(t.webDavPath,n),o)}}),Cr=(r,e)=>({restoreFile(t,{id:n},{path:o},{overwrite:u,...c}={}){if(R.isPublicSpaceResource(t))return;const i=V.urlJoin(t.webDavPath,o);return r.move(V.urlJoin(t.webDavTrashPath,n),i,{overwrite:u,...c})}}),Ir=(r,e)=>({restoreFileVersion(t,{parentFolderId:n,name:o,path:u},c,i={}){const h=se(t,{path:u,fileId:n,name:o}),a=V.urlJoin("meta",n,"v",c,{leadingSlash:!0}),s=V.urlJoin("files",h,{leadingSlash:!0});return r.copy(a,s,i)}}),Sr=(r,e)=>({clearTrashBin(t,{id:n,...o}={}){let u=R.buildWebDavSpacesTrashPath(t.id);return n&&(u=V.urlJoin(u,n)),r.delete(u,o)}}),Fr=(r,e)=>({async search(t,{davProperties:n=R.DavProperties.Default,searchLimit:o,...u}){const c="/spaces/",{range:i,results:h}=await r.report(c,{pattern:t,limit:o,properties:n,...u});return{resources:h.map(a=>({...R.buildResource(a,r.extraProps),highlights:a.props[R.DavProperty.Highlights]||""})),totalResults:i?parseInt(i?.split("/")[1]):null}}}),$r=(r,e)=>({async getPathForFileId(t,n={}){return(await r.propfind(V.urlJoin("meta",t,{leadingSlash:!0}),{properties:[R.DavProperty.MetaPathForUser],...n}))[0].props[R.DavProperty.MetaPathForUser]}});/*! For license information please see index.js.LICENSE.txt */var jr={2:r=>{function e(o,u,c){o instanceof RegExp&&(o=t(o,c)),u instanceof RegExp&&(u=t(u,c));var i=n(o,u,c);return i&&{start:i[0],end:i[1],pre:c.slice(0,i[0]),body:c.slice(i[0]+o.length,i[1]),post:c.slice(i[1]+u.length)}}function t(o,u){var c=u.match(o);return c?c[0]:null}function n(o,u,c){var i,h,a,s,f,l=c.indexOf(o),g=c.indexOf(u,l+1),d=l;if(l>=0&&g>0){for(i=[],a=c.length;d>=0&&!f;)d==l?(i.push(d),l=c.indexOf(o,d+1)):i.length==1?f=[i.pop(),g]:((h=i.pop())<a&&(a=h,s=g),g=c.indexOf(u,d+1)),d=l<g&&l>=0?l:g;i.length&&(f=[a,s])}return f}r.exports=e,e.range=n},101:function(r,e,t){var n;r=t.nmd(r),(function(o){var u=(r&&r.exports,typeof re.global=="object"&&re.global);u.global!==u&&u.window;var c=function(f){this.message=f};(c.prototype=new Error).name="InvalidCharacterError";var i=function(f){throw new c(f)},h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=/[\t\n\f\r ]/g,s={encode:function(f){f=String(f),/[^\0-\xFF]/.test(f)&&i("The string to be encoded contains characters outside of the Latin1 range.");for(var l,g,d,m,w=f.length%3,v="",p=-1,y=f.length-w;++p<y;)l=f.charCodeAt(p)<<16,g=f.charCodeAt(++p)<<8,d=f.charCodeAt(++p),v+=h.charAt((m=l+g+d)>>18&63)+h.charAt(m>>12&63)+h.charAt(m>>6&63)+h.charAt(63&m);return w==2?(l=f.charCodeAt(p)<<8,g=f.charCodeAt(++p),v+=h.charAt((m=l+g)>>10)+h.charAt(m>>4&63)+h.charAt(m<<2&63)+"="):w==1&&(m=f.charCodeAt(p),v+=h.charAt(m>>2)+h.charAt(m<<4&63)+"=="),v},decode:function(f){var l=(f=String(f).replace(a,"")).length;l%4==0&&(l=(f=f.replace(/==?$/,"")).length),(l%4==1||/[^+a-zA-Z0-9/]/.test(f))&&i("Invalid character: the string to be decoded is not correctly encoded.");for(var g,d,m=0,w="",v=-1;++v<l;)d=h.indexOf(f.charAt(v)),g=m%4?64*g+d:d,m++%4&&(w+=String.fromCharCode(255&g>>(-2*m&6)));return w},version:"1.0.0"};(n=(function(){return s}).call(e,t,e,r))===void 0||(r.exports=n)})()},172:(r,e)=>{e.d=function(t){if(!t)return 0;for(var n=(t=t.toString()).length,o=t.length;o--;){var u=t.charCodeAt(o);56320<=u&&u<=57343&&o--,127<u&&u<=2047?n++:2047<u&&u<=65535&&(n+=2)}return n}},526:r=>{var e={utf8:{stringToBytes:function(t){return e.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(e.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var n=[],o=0;o<t.length;o++)n.push(255&t.charCodeAt(o));return n},bytesToString:function(t){for(var n=[],o=0;o<t.length;o++)n.push(String.fromCharCode(t[o]));return n.join("")}}};r.exports=e},298:r=>{var e,t;e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(n,o){return n<<o|n>>>32-o},rotr:function(n,o){return n<<32-o|n>>>o},endian:function(n){if(n.constructor==Number)return 16711935&t.rotl(n,8)|4278255360&t.rotl(n,24);for(var o=0;o<n.length;o++)n[o]=t.endian(n[o]);return n},randomBytes:function(n){for(var o=[];n>0;n--)o.push(Math.floor(256*Math.random()));return o},bytesToWords:function(n){for(var o=[],u=0,c=0;u<n.length;u++,c+=8)o[c>>>5]|=n[u]<<24-c%32;return o},wordsToBytes:function(n){for(var o=[],u=0;u<32*n.length;u+=8)o.push(n[u>>>5]>>>24-u%32&255);return o},bytesToHex:function(n){for(var o=[],u=0;u<n.length;u++)o.push((n[u]>>>4).toString(16)),o.push((15&n[u]).toString(16));return o.join("")},hexToBytes:function(n){for(var o=[],u=0;u<n.length;u+=2)o.push(parseInt(n.substr(u,2),16));return o},bytesToBase64:function(n){for(var o=[],u=0;u<n.length;u+=3)for(var c=n[u]<<16|n[u+1]<<8|n[u+2],i=0;i<4;i++)8*u+6*i<=8*n.length?o.push(e.charAt(c>>>6*(3-i)&63)):o.push("=");return o.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/gi,"");for(var o=[],u=0,c=0;u<n.length;c=++u%4)c!=0&&o.push((e.indexOf(n.charAt(u-1))&Math.pow(2,-2*c+8)-1)<<2*c|e.indexOf(n.charAt(u))>>>6-2*c);return o}},r.exports=t},635:(r,e,t)=>{const n=t(31),o=t(338),u=t(221);r.exports={XMLParser:o,XMLValidator:n,XMLBuilder:u}},118:r=>{r.exports=function(e){return typeof e=="function"?e:Array.isArray(e)?t=>{for(const n of e)if(typeof n=="string"&&t===n||n instanceof RegExp&&n.test(t))return!0}:()=>!1}},705:(r,e)=>{const t=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",n="["+t+"]["+t+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",o=new RegExp("^"+n+"$");e.isExist=function(u){return u!==void 0},e.isEmptyObject=function(u){return Object.keys(u).length===0},e.merge=function(u,c,i){if(c){const h=Object.keys(c),a=h.length;for(let s=0;s<a;s++)u[h[s]]=i==="strict"?[c[h[s]]]:c[h[s]]}},e.getValue=function(u){return e.isExist(u)?u:""},e.isName=function(u){return o.exec(u)!=null},e.getAllMatches=function(u,c){const i=[];let h=c.exec(u);for(;h;){const a=[];a.startIndex=c.lastIndex-h[0].length;const s=h.length;for(let f=0;f<s;f++)a.push(h[f]);i.push(a),h=c.exec(u)}return i},e.nameRegexp=n},31:(r,e,t)=>{const n=t(705),o={allowBooleanAttributes:!1,unpairedTags:[]};function u(p){return p===" "||p===" "||p===`
1
+ "use strict";const mr=require("./index-w54SVXTg.cjs"),R=require("./functions-Bp-DjU7_.cjs"),V=require("./toString-CgHWCW2N.cjs"),br=require("./web-client/ocs.cjs"),re=require("./index-D_NPkUGY.cjs"),fe=r=>encodeURIComponent(r).split("%2F").join("/");class et extends Error{response;statusCode;constructor(e,t,n=null){super(e),this.response=t,this.statusCode=n}}class Jt extends et{errorCode;constructor(e,t,n,o=null){super(e,n,o),this.errorCode=t}}const se=(r,{fileId:e,path:t,name:n})=>{if(t!==void 0)return V.urlJoin(r.webDavPath,t);if(e!==void 0){if(R.isPublicSpaceResource(r))throw new Error("public spaces need a path provided");return V.urlJoin("spaces",e,n||"")}return r.webDavPath},yr=(r,e)=>({copyFiles(t,{path:n,fileId:o},u,{path:c,parentFolderId:i,name:h},{overwrite:a,...s}={}){const f=se(t,{fileId:o,path:n}),l=se(u,{fileId:i,path:c,name:h});return r.copy(f,l,{overwrite:a||!1,...s})}}),vr=(r,e,t)=>({async createFolder(n,{path:o,parentFolderId:u,folderName:c,fetchFolder:i=!0,...h}){const a=se(n,{fileId:u,path:o,name:c});if(await r.mkcol(a),i)return e.getFileInfo(n,{path:o},h)}}),wr=(r,{axiosClient:e})=>({async getFileContents(t,{fileId:n,path:o},{responseType:u="text",noCache:c=!0,headers:i,...h}={}){try{const a=se(t,{fileId:n,path:o}),s=await e.get(r.getFileUrl(a),{responseType:u,headers:{...c&&{"Cache-Control":"no-cache"},...i||{}},...h});return{response:s,body:s.data,headers:{ETag:s.headers.etag,"OC-ETag":s.headers["oc-etag"],"OC-FileId":s.headers["oc-fileid"]}}}catch(a){const{message:s,response:f}=a;throw new et(s,f,f.status)}}}),Nr=(r,e)=>({async getFileInfo(t,n,o){return(await r.listFiles(t,n,{depth:0,...o})).resource}}),xr=(r,e,{axiosClient:t,baseUrl:n})=>({async getFileUrl(o,u,{disposition:c="attachment",isUrlSigningEnabled:i=!0,signUrlTimeout:h=86400,version:a=null,doHeadRequest:s=!1,username:f="",...l}){const g=c==="inline";let{downloadURL:d}=u;if(!d&&!g&&(d=a?r.getFileUrl(V.urlJoin("meta",u.fileId,"v",a)):r.getFileUrl(u.webDavPath),f&&(s&&await t.head(d),d=await br.ocs(n,t).signUrl(d,f))),g){const m=await e.getFileContents(o,u,{responseType:"blob",...l});d=URL.createObjectURL(m.body)}return d},revokeUrl:o=>{o&&o.startsWith("blob:")&&URL.revokeObjectURL(o)}}),Pr=(r,e)=>({getPublicFileUrl(t,n){return r.getFileUrl(V.urlJoin("public-files",n))}}),Er=(r,e,t)=>({async listFiles(n,{path:o,fileId:u}={},{depth:c=1,davProperties:i,isTrash:h=!1,...a}={}){let s;if(R.isPublicSpaceResource(n)){s=await r.propfind(V.urlJoin(n.webDavPath,o),{depth:c,properties:i||R.DavProperties.PublicLink,...a}),s.forEach(d=>{d.filename=d.filename.split("/").slice(1).join("/")}),s.length===1&&(s[0].filename=V.urlJoin(n.id,o,{leadingSlash:!0})),s.forEach(d=>{d.filename=d.filename.split("/").slice(2).join("/")});const l=n.driveAlias.startsWith("ocm/")?"ocm":"public-link";if((!o||o==="/")&&c>0&&l==="ocm"&&s[0].props[R.DavProperty.PublicLinkItemType]==="file"&&(s=[{basename:n.fileId,type:"directory",filename:"",props:{}},...s]),!o){const[d,...m]=s;return{resource:R.buildPublicSpaceResource({...d,id:n.id,driveAlias:n.driveAlias,webDavPath:n.webDavPath,publicLinkType:l}),children:m.map(w=>R.buildResource(w,r.extraProps))}}const g=s.map(d=>R.buildResource(d,r.extraProps));return{resource:g[0],children:g.slice(1)}}const f=async()=>{const l=await e.getPathForFileId(u);return this.listFiles(n,{path:l},{depth:c,davProperties:i})};try{let l="";if(h?l=R.buildWebDavSpacesTrashPath(n.id):l=se(n,{fileId:u,path:o}),s=await r.propfind(l,{depth:c,properties:i||R.DavProperties.Default,...a}),h)return{resource:R.buildResource(s[0],r.extraProps),children:s.slice(1).map(R.buildDeletedResource)};const g=s.map(m=>R.buildResource(m,r.extraProps)),d=u===n.id;return u&&!d&&u!==g[0].fileId?f():{resource:g[0],children:g.slice(1)}}catch(l){if(l.statusCode===404&&u)return f();throw l}}}),Ar=(r,e)=>({moveFiles(t,{path:n,fileId:o},u,{path:c,parentFolderId:i,name:h},{overwrite:a,...s}={}){const f=se(t,{fileId:o,path:n}),l=se(u,{fileId:i,path:c,name:h});return r.move(f,l,{overwrite:a||!1,...s})}}),Tr=(r,e,t)=>({async putFileContents(n,{fileName:o,path:u,parentFolderId:c,content:i="",previousEntityTag:h="",overwrite:a,onUploadProgress:s=null,...f}){const l=se(n,{fileId:c,name:o,path:u}),{result:g}=await r.put(l,i,{previousEntityTag:h,overwrite:a,onUploadProgress:s,...f});return e.getFileInfo(n,{fileId:g.headers.get("Oc-Fileid"),path:u})}}),Or=(r,e)=>({deleteFile(t,{path:n,...o}){return r.delete(V.urlJoin(t.webDavPath,n),o)}}),Cr=(r,e)=>({restoreFile(t,{id:n},{path:o},{overwrite:u,...c}={}){if(R.isPublicSpaceResource(t))return;const i=V.urlJoin(t.webDavPath,o);return r.move(V.urlJoin(t.webDavTrashPath,n),i,{overwrite:u,...c})}}),Ir=(r,e)=>({restoreFileVersion(t,{parentFolderId:n,name:o,path:u},c,i={}){const h=se(t,{path:u,fileId:n,name:o}),a=V.urlJoin("meta",n,"v",c,{leadingSlash:!0}),s=V.urlJoin("files",h,{leadingSlash:!0});return r.copy(a,s,i)}}),Sr=(r,e)=>({clearTrashBin(t,{id:n,...o}={}){let u=R.buildWebDavSpacesTrashPath(t.id);return n&&(u=V.urlJoin(u,n)),r.delete(u,o)}}),Fr=(r,e)=>({async search(t,{davProperties:n=R.DavProperties.Default,searchLimit:o,...u}){const c="/spaces/",{range:i,results:h}=await r.report(c,{pattern:t,limit:o,properties:n,...u});return{resources:h.map(a=>({...R.buildResource(a,r.extraProps),highlights:a.props[R.DavProperty.Highlights]||""})),totalResults:i?parseInt(i?.split("/")[1]):null}}}),$r=(r,e)=>({async getPathForFileId(t,n={}){return(await r.propfind(V.urlJoin("meta",t,{leadingSlash:!0}),{properties:[R.DavProperty.MetaPathForUser],...n}))[0].props[R.DavProperty.MetaPathForUser]}});/*! For license information please see index.js.LICENSE.txt */var jr={2:r=>{function e(o,u,c){o instanceof RegExp&&(o=t(o,c)),u instanceof RegExp&&(u=t(u,c));var i=n(o,u,c);return i&&{start:i[0],end:i[1],pre:c.slice(0,i[0]),body:c.slice(i[0]+o.length,i[1]),post:c.slice(i[1]+u.length)}}function t(o,u){var c=u.match(o);return c?c[0]:null}function n(o,u,c){var i,h,a,s,f,l=c.indexOf(o),g=c.indexOf(u,l+1),d=l;if(l>=0&&g>0){for(i=[],a=c.length;d>=0&&!f;)d==l?(i.push(d),l=c.indexOf(o,d+1)):i.length==1?f=[i.pop(),g]:((h=i.pop())<a&&(a=h,s=g),g=c.indexOf(u,d+1)),d=l<g&&l>=0?l:g;i.length&&(f=[a,s])}return f}r.exports=e,e.range=n},101:function(r,e,t){var n;r=t.nmd(r),(function(o){var u=(r&&r.exports,typeof re.global=="object"&&re.global);u.global!==u&&u.window;var c=function(f){this.message=f};(c.prototype=new Error).name="InvalidCharacterError";var i=function(f){throw new c(f)},h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=/[\t\n\f\r ]/g,s={encode:function(f){f=String(f),/[^\0-\xFF]/.test(f)&&i("The string to be encoded contains characters outside of the Latin1 range.");for(var l,g,d,m,w=f.length%3,v="",p=-1,y=f.length-w;++p<y;)l=f.charCodeAt(p)<<16,g=f.charCodeAt(++p)<<8,d=f.charCodeAt(++p),v+=h.charAt((m=l+g+d)>>18&63)+h.charAt(m>>12&63)+h.charAt(m>>6&63)+h.charAt(63&m);return w==2?(l=f.charCodeAt(p)<<8,g=f.charCodeAt(++p),v+=h.charAt((m=l+g)>>10)+h.charAt(m>>4&63)+h.charAt(m<<2&63)+"="):w==1&&(m=f.charCodeAt(p),v+=h.charAt(m>>2)+h.charAt(m<<4&63)+"=="),v},decode:function(f){var l=(f=String(f).replace(a,"")).length;l%4==0&&(l=(f=f.replace(/==?$/,"")).length),(l%4==1||/[^+a-zA-Z0-9/]/.test(f))&&i("Invalid character: the string to be decoded is not correctly encoded.");for(var g,d,m=0,w="",v=-1;++v<l;)d=h.indexOf(f.charAt(v)),g=m%4?64*g+d:d,m++%4&&(w+=String.fromCharCode(255&g>>(-2*m&6)));return w},version:"1.0.0"};(n=(function(){return s}).call(e,t,e,r))===void 0||(r.exports=n)})()},172:(r,e)=>{e.d=function(t){if(!t)return 0;for(var n=(t=t.toString()).length,o=t.length;o--;){var u=t.charCodeAt(o);56320<=u&&u<=57343&&o--,127<u&&u<=2047?n++:2047<u&&u<=65535&&(n+=2)}return n}},526:r=>{var e={utf8:{stringToBytes:function(t){return e.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(e.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var n=[],o=0;o<t.length;o++)n.push(255&t.charCodeAt(o));return n},bytesToString:function(t){for(var n=[],o=0;o<t.length;o++)n.push(String.fromCharCode(t[o]));return n.join("")}}};r.exports=e},298:r=>{var e,t;e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(n,o){return n<<o|n>>>32-o},rotr:function(n,o){return n<<32-o|n>>>o},endian:function(n){if(n.constructor==Number)return 16711935&t.rotl(n,8)|4278255360&t.rotl(n,24);for(var o=0;o<n.length;o++)n[o]=t.endian(n[o]);return n},randomBytes:function(n){for(var o=[];n>0;n--)o.push(Math.floor(256*Math.random()));return o},bytesToWords:function(n){for(var o=[],u=0,c=0;u<n.length;u++,c+=8)o[c>>>5]|=n[u]<<24-c%32;return o},wordsToBytes:function(n){for(var o=[],u=0;u<32*n.length;u+=8)o.push(n[u>>>5]>>>24-u%32&255);return o},bytesToHex:function(n){for(var o=[],u=0;u<n.length;u++)o.push((n[u]>>>4).toString(16)),o.push((15&n[u]).toString(16));return o.join("")},hexToBytes:function(n){for(var o=[],u=0;u<n.length;u+=2)o.push(parseInt(n.substr(u,2),16));return o},bytesToBase64:function(n){for(var o=[],u=0;u<n.length;u+=3)for(var c=n[u]<<16|n[u+1]<<8|n[u+2],i=0;i<4;i++)8*u+6*i<=8*n.length?o.push(e.charAt(c>>>6*(3-i)&63)):o.push("=");return o.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/gi,"");for(var o=[],u=0,c=0;u<n.length;c=++u%4)c!=0&&o.push((e.indexOf(n.charAt(u-1))&Math.pow(2,-2*c+8)-1)<<2*c|e.indexOf(n.charAt(u))>>>6-2*c);return o}},r.exports=t},635:(r,e,t)=>{const n=t(31),o=t(338),u=t(221);r.exports={XMLParser:o,XMLValidator:n,XMLBuilder:u}},118:r=>{r.exports=function(e){return typeof e=="function"?e:Array.isArray(e)?t=>{for(const n of e)if(typeof n=="string"&&t===n||n instanceof RegExp&&n.test(t))return!0}:()=>!1}},705:(r,e)=>{const t=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",n="["+t+"]["+t+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",o=new RegExp("^"+n+"$");e.isExist=function(u){return u!==void 0},e.isEmptyObject=function(u){return Object.keys(u).length===0},e.merge=function(u,c,i){if(c){const h=Object.keys(c),a=h.length;for(let s=0;s<a;s++)u[h[s]]=i==="strict"?[c[h[s]]]:c[h[s]]}},e.getValue=function(u){return e.isExist(u)?u:""},e.isName=function(u){return o.exec(u)!=null},e.getAllMatches=function(u,c){const i=[];let h=c.exec(u);for(;h;){const a=[];a.startIndex=c.lastIndex-h[0].length;const s=h.length;for(let f=0;f<s;f++)a.push(h[f]);i.push(a),h=c.exec(u)}return i},e.nameRegexp=n},31:(r,e,t)=>{const n=t(705),o={allowBooleanAttributes:!1,unpairedTags:[]};function u(p){return p===" "||p===" "||p===`
2
2
  `||p==="\r"}function c(p,y){const A=y;for(;y<p.length;y++)if(!(p[y]!="?"&&p[y]!=" ")){const N=p.substr(A,y-A);if(y>5&&N==="xml")return d("InvalidXml","XML declaration allowed only at the start of the document.",w(p,y));if(p[y]=="?"&&p[y+1]==">"){y++;break}}return y}function i(p,y){if(p.length>y+5&&p[y+1]==="-"&&p[y+2]==="-"){for(y+=3;y<p.length;y++)if(p[y]==="-"&&p[y+1]==="-"&&p[y+2]===">"){y+=2;break}}else if(p.length>y+8&&p[y+1]==="D"&&p[y+2]==="O"&&p[y+3]==="C"&&p[y+4]==="T"&&p[y+5]==="Y"&&p[y+6]==="P"&&p[y+7]==="E"){let A=1;for(y+=8;y<p.length;y++)if(p[y]==="<")A++;else if(p[y]===">"&&(A--,A===0))break}else if(p.length>y+9&&p[y+1]==="["&&p[y+2]==="C"&&p[y+3]==="D"&&p[y+4]==="A"&&p[y+5]==="T"&&p[y+6]==="A"&&p[y+7]==="["){for(y+=8;y<p.length;y++)if(p[y]==="]"&&p[y+1]==="]"&&p[y+2]===">"){y+=2;break}}return y}e.validate=function(p,y){y=Object.assign({},o,y);const A=[];let N=!1,b=!1;p[0]==="\uFEFF"&&(p=p.substr(1));for(let x=0;x<p.length;x++)if(p[x]==="<"&&p[x+1]==="?"){if(x+=2,x=c(p,x),x.err)return x}else{if(p[x]!=="<"){if(u(p[x]))continue;return d("InvalidChar","char '"+p[x]+"' is not expected.",w(p,x))}{let T=x;if(x++,p[x]==="!"){x=i(p,x);continue}{let O=!1;p[x]==="/"&&(O=!0,x++);let I="";for(;x<p.length&&p[x]!==">"&&p[x]!==" "&&p[x]!==" "&&p[x]!==`
3
3
  `&&p[x]!=="\r";x++)I+=p[x];if(I=I.trim(),I[I.length-1]==="/"&&(I=I.substring(0,I.length-1),x--),E=I,!n.isName(E)){let F;return F=I.trim().length===0?"Invalid space after '<'.":"Tag '"+I+"' is an invalid name.",d("InvalidTag",F,w(p,x))}const C=s(p,x);if(C===!1)return d("InvalidAttr","Attributes for '"+I+"' have open quote.",w(p,x));let P=C.value;if(x=C.index,P[P.length-1]==="/"){const F=x-P.length;P=P.substring(0,P.length-1);const S=l(P,y);if(S!==!0)return d(S.err.code,S.err.msg,w(p,F+S.err.line));N=!0}else if(O){if(!C.tagClosed)return d("InvalidTag","Closing tag '"+I+"' doesn't have proper closing.",w(p,x));if(P.trim().length>0)return d("InvalidTag","Closing tag '"+I+"' can't have attributes or invalid starting.",w(p,T));if(A.length===0)return d("InvalidTag","Closing tag '"+I+"' has not been opened.",w(p,T));{const F=A.pop();if(I!==F.tagName){let S=w(p,F.tagStartPos);return d("InvalidTag","Expected closing tag '"+F.tagName+"' (opened in line "+S.line+", col "+S.col+") instead of closing tag '"+I+"'.",w(p,T))}A.length==0&&(b=!0)}}else{const F=l(P,y);if(F!==!0)return d(F.err.code,F.err.msg,w(p,x-P.length+F.err.line));if(b===!0)return d("InvalidXml","Multiple possible root nodes found.",w(p,x));y.unpairedTags.indexOf(I)!==-1||A.push({tagName:I,tagStartPos:T}),N=!0}for(x++;x<p.length;x++)if(p[x]==="<"){if(p[x+1]==="!"){x++,x=i(p,x);continue}if(p[x+1]!=="?")break;if(x=c(p,++x),x.err)return x}else if(p[x]==="&"){const F=g(p,x);if(F==-1)return d("InvalidChar","char '&' is not expected.",w(p,x));x=F}else if(b===!0&&!u(p[x]))return d("InvalidXml","Extra text at the end",w(p,x));p[x]==="<"&&x--}}}var E;return N?A.length==1?d("InvalidTag","Unclosed tag '"+A[0].tagName+"'.",w(p,A[0].tagStartPos)):!(A.length>0)||d("InvalidXml","Invalid '"+JSON.stringify(A.map((x=>x.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):d("InvalidXml","Start tag expected.",1)};const h='"',a="'";function s(p,y){let A="",N="",b=!1;for(;y<p.length;y++){if(p[y]===h||p[y]===a)N===""?N=p[y]:N!==p[y]||(N="");else if(p[y]===">"&&N===""){b=!0;break}A+=p[y]}return N===""&&{value:A,index:y,tagClosed:b}}const f=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function l(p,y){const A=n.getAllMatches(p,f),N={};for(let b=0;b<A.length;b++){if(A[b][1].length===0)return d("InvalidAttr","Attribute '"+A[b][2]+"' has no space in starting.",v(A[b]));if(A[b][3]!==void 0&&A[b][4]===void 0)return d("InvalidAttr","Attribute '"+A[b][2]+"' is without value.",v(A[b]));if(A[b][3]===void 0&&!y.allowBooleanAttributes)return d("InvalidAttr","boolean attribute '"+A[b][2]+"' is not allowed.",v(A[b]));const E=A[b][2];if(!m(E))return d("InvalidAttr","Attribute '"+E+"' is an invalid name.",v(A[b]));if(N.hasOwnProperty(E))return d("InvalidAttr","Attribute '"+E+"' is repeated.",v(A[b]));N[E]=1}return!0}function g(p,y){if(p[++y]===";")return-1;if(p[y]==="#")return(function(N,b){let E=/\d/;for(N[b]==="x"&&(b++,E=/[\da-fA-F]/);b<N.length;b++){if(N[b]===";")return b;if(!N[b].match(E))break}return-1})(p,++y);let A=0;for(;y<p.length;y++,A++)if(!(p[y].match(/\w/)&&A<20)){if(p[y]===";")break;return-1}return y}function d(p,y,A){return{err:{code:p,msg:y,line:A.line||A,col:A.col}}}function m(p){return n.isName(p)}function w(p,y){const A=p.substring(0,y).split(/\r?\n/);return{line:A.length,col:A[A.length-1].length+1}}function v(p){return p.startIndex+p[1].length}},221:(r,e,t)=>{const n=t(87),o=t(118),u={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(s,f){return f},attributeValueProcessor:function(s,f){return f},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function c(s){this.options=Object.assign({},u,s),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=o(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=a),this.processTextOrObjNode=i,this.options.format?(this.indentate=h,this.tagEndChar=`>
4
4
  `,this.newLine=`
@@ -1,6 +1,6 @@
1
- "use strict";const ne=require("./index-D_NPkUGY.cjs");function Je(e,t){return function(){return e.apply(t,arguments)}}const{toString:mt}=Object.prototype,{getPrototypeOf:Ee}=Object,{iterator:se,toStringTag:Ve}=Symbol,oe=(e=>t=>{const n=mt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),P=e=>(e=e.toLowerCase(),t=>oe(t)===e),ie=e=>t=>typeof t===e,{isArray:M}=Array,I=ie("undefined");function V(e){return e!==null&&!I(e)&&e.constructor!==null&&!I(e.constructor)&&T(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const We=P("ArrayBuffer");function yt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&We(e.buffer),t}const bt=ie("string"),T=ie("function"),Ke=ie("number"),W=e=>e!==null&&typeof e=="object",wt=e=>e===!0||e===!1,Y=e=>{if(oe(e)!=="object")return!1;const t=Ee(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Ve in e)&&!(se in e)},Et=e=>{if(!W(e)||V(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},gt=P("Date"),Rt=P("File"),St=P("Blob"),Ot=P("FileList"),Tt=e=>W(e)&&T(e.pipe),At=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||T(e.append)&&((t=oe(e))==="formdata"||t==="object"&&T(e.toString)&&e.toString()==="[object FormData]"))},xt=P("URLSearchParams"),[Ct,Nt,Pt,Ft]=["ReadableStream","Request","Response","Headers"].map(P),_t=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function K(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),M(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(V(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let c;for(r=0;r<o;r++)c=i[r],t.call(null,e[c],c,e)}}function ve(e,t){if(V(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const D=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:ne.global,Xe=e=>!I(e)&&e!==D;function he(){const{caseless:e,skipUndefined:t}=Xe(this)&&this||{},n={},r=(s,i)=>{const o=e&&ve(n,i)||i;Y(n[o])&&Y(s)?n[o]=he(n[o],s):Y(s)?n[o]=he({},s):M(s)?n[o]=s.slice():(!t||!I(s))&&(n[o]=s)};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&K(arguments[s],r);return n}const Ut=(e,t,n,{allOwnKeys:r}={})=>(K(t,(s,i)=>{n&&T(s)?e[i]=Je(s,n):e[i]=s},{allOwnKeys:r}),e),Lt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Bt=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},kt=(e,t,n,r)=>{let s,i,o;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)o=s[i],(!r||r(o,e,t))&&!c[o]&&(t[o]=e[o],c[o]=!0);e=n!==!1&&Ee(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Dt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},jt=e=>{if(!e)return null;if(M(e))return e;let t=e.length;if(!Ke(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},qt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ee(Uint8Array)),Ht=(e,t)=>{const r=(e&&e[se]).call(e);let s;for(;(s=r.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},It=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Mt=P("HTMLFormElement"),$t=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Ne=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),zt=P("RegExp"),Ge=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};K(n,(s,i)=>{let o;(o=t(s,i,e))!==!1&&(r[i]=o||s)}),Object.defineProperties(e,r)},Jt=e=>{Ge(e,(t,n)=>{if(T(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(T(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Vt=(e,t)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return M(e)?r(e):r(String(e).split(t)),n},Wt=()=>{},Kt=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function vt(e){return!!(e&&T(e.append)&&e[Ve]==="FormData"&&e[se])}const Xt=e=>{const t=new Array(10),n=(r,s)=>{if(W(r)){if(t.indexOf(r)>=0)return;if(V(r))return r;if(!("toJSON"in r)){t[s]=r;const i=M(r)?[]:{};return K(r,(o,c)=>{const d=n(o,s+1);!I(d)&&(i[c]=d)}),t[s]=void 0,i}}return r};return n(e,0)},Gt=P("AsyncFunction"),Qt=e=>e&&(W(e)||T(e))&&T(e.then)&&T(e.catch),Qe=((e,t)=>e?setImmediate:t?((n,r)=>(D.addEventListener("message",({source:s,data:i})=>{s===D&&i===n&&r.length&&r.shift()()},!1),s=>{r.push(s),D.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",T(D.postMessage)),Zt=typeof queueMicrotask<"u"?queueMicrotask.bind(D):typeof ne.process$1<"u"&&ne.process$1.nextTick||Qe,Yt=e=>e!=null&&T(e[se]),a={isArray:M,isArrayBuffer:We,isBuffer:V,isFormData:At,isArrayBufferView:yt,isString:bt,isNumber:Ke,isBoolean:wt,isObject:W,isPlainObject:Y,isEmptyObject:Et,isReadableStream:Ct,isRequest:Nt,isResponse:Pt,isHeaders:Ft,isUndefined:I,isDate:gt,isFile:Rt,isBlob:St,isRegExp:zt,isFunction:T,isStream:Tt,isURLSearchParams:xt,isTypedArray:qt,isFileList:Ot,forEach:K,merge:he,extend:Ut,trim:_t,stripBOM:Lt,inherits:Bt,toFlatObject:kt,kindOf:oe,kindOfTest:P,endsWith:Dt,toArray:jt,forEachEntry:Ht,matchAll:It,isHTMLForm:Mt,hasOwnProperty:Ne,hasOwnProp:Ne,reduceDescriptors:Ge,freezeMethods:Jt,toObjectSet:Vt,toCamelCase:$t,noop:Wt,toFiniteNumber:Kt,findKey:ve,global:D,isContextDefined:Xe,isSpecCompliantForm:vt,toJSONObject:Xt,isAsyncFn:Gt,isThenable:Qt,setImmediate:Qe,asap:Zt,isIterable:Yt};function y(e,t,n,r,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),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(y,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:a.toJSONObject(this.config),code:this.code,status:this.status}}});const Ze=y.prototype,Ye={};["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=>{Ye[e]={value:e}});Object.defineProperties(y,Ye);Object.defineProperty(Ze,"isAxiosError",{value:!0});y.from=(e,t,n,r,s,i)=>{const o=Object.create(Ze);a.toFlatObject(e,o,function(l){return l!==Error.prototype},f=>f!=="isAxiosError");const c=e&&e.message?e.message:"Error",d=t==null&&e?e.code:t;return y.call(o,c,d,n,r,s),e&&o.cause==null&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",i&&Object.assign(o,i),o};const en=null;function me(e){return a.isPlainObject(e)||a.isArray(e)}function et(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Pe(e,t,n){return e?e.concat(t).map(function(s,i){return s=et(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function tn(e){return a.isArray(e)&&!e.some(me)}const nn=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function ae(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,p){return!a.isUndefined(p[m])});const r=n.metaTokens,s=n.visitor||l,i=n.dots,o=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function f(u){if(u===null)return"";if(a.isDate(u))return u.toISOString();if(a.isBoolean(u))return u.toString();if(!d&&a.isBlob(u))throw new y("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(u)||a.isTypedArray(u)?d&&typeof Blob=="function"?new Blob([u]):ne.Buffer.from(u):u}function l(u,m,p){let E=u;if(u&&!p&&typeof u=="object"){if(a.endsWith(m,"{}"))m=r?m:m.slice(0,-2),u=JSON.stringify(u);else if(a.isArray(u)&&tn(u)||(a.isFileList(u)||a.endsWith(m,"[]"))&&(E=a.toArray(u)))return m=et(m),E.forEach(function(g,O){!(a.isUndefined(g)||g===null)&&t.append(o===!0?Pe([m],O,i):o===null?m:m+"[]",f(g))}),!1}return me(u)?!0:(t.append(Pe(p,m,i),f(u)),!1)}const h=[],b=Object.assign(nn,{defaultVisitor:l,convertValue:f,isVisitable:me});function R(u,m){if(!a.isUndefined(u)){if(h.indexOf(u)!==-1)throw Error("Circular reference detected in "+m.join("."));h.push(u),a.forEach(u,function(E,x){(!(a.isUndefined(E)||E===null)&&s.call(t,E,a.isString(x)?x.trim():x,m,b))===!0&&R(E,m?m.concat(x):[x])}),h.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return R(e),t}function Fe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ge(e,t){this._pairs=[],e&&ae(e,this,t)}const tt=ge.prototype;tt.append=function(t,n){this._pairs.push([t,n])};tt.toString=function(t){const n=t?function(r){return t.call(this,r,Fe)}:Fe;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function rn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function nt(e,t,n){if(!t)return e;const r=n&&n.encode||rn;a.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let i;if(s?i=s(t,n):i=a.isURLSearchParams(t)?t.toString():new ge(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class _e{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const rt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},sn=typeof URLSearchParams<"u"?URLSearchParams:ge,on=typeof FormData<"u"?FormData:null,an=typeof Blob<"u"?Blob:null,cn={isBrowser:!0,classes:{URLSearchParams:sn,FormData:on,Blob:an},protocols:["http","https","file","blob","url","data"]},Re=typeof window<"u"&&typeof document<"u",ye=typeof navigator=="object"&&navigator||void 0,ln=Re&&(!ye||["ReactNative","NativeScript","NS"].indexOf(ye.product)<0),un=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fn=Re&&window.location.href||"http://localhost",dn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Re,hasStandardBrowserEnv:ln,hasStandardBrowserWebWorkerEnv:un,navigator:ye,origin:fn},Symbol.toStringTag,{value:"Module"})),S={...dn,...cn};function pn(e,t){return ae(e,new S.classes.URLSearchParams,{visitor:function(n,r,s,i){return S.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function hn(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function mn(e){const t={},n=Object.keys(e);let r;const s=n.length;let i;for(r=0;r<s;r++)i=n[r],t[i]=e[i];return t}function st(e){function t(n,r,s,i){let o=n[i++];if(o==="__proto__")return!0;const c=Number.isFinite(+o),d=i>=n.length;return o=!o&&a.isArray(s)?s.length:o,d?(a.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!c):((!s[o]||!a.isObject(s[o]))&&(s[o]=[]),t(n,r,s[o],i)&&a.isArray(s[o])&&(s[o]=mn(s[o])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(hn(r),s,n,0)}),n}return null}function yn(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const v={transitional:rt,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=a.isObject(t);if(i&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(st(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return pn(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return ae(c?{"files[]":t}:t,d&&new d,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),yn(t)):t}],transformResponse:[function(t){const n=this.transitional||v.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(c){if(o)throw c.name==="SyntaxError"?y.from(c,y.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:S.classes.FormData,Blob:S.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{v.headers[e]={}});const bn=a.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"]),wn=e=>{const t={};let n,r,s;return e&&e.split(`
2
- `).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&bn[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ue=Symbol("internals");function J(e){return e&&String(e).trim().toLowerCase()}function ee(e){return e===!1||e==null?e:a.isArray(e)?e.map(ee):String(e)}function En(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const gn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function fe(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function Rn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Sn(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,i,o){return this[r].call(this,t,s,i,o)},configurable:!0})})}let A=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function i(c,d,f){const l=J(d);if(!l)throw new Error("header name must be a non-empty string");const h=a.findKey(s,l);(!h||s[h]===void 0||f===!0||f===void 0&&s[h]!==!1)&&(s[h||d]=ee(c))}const o=(c,d)=>a.forEach(c,(f,l)=>i(f,l,d));if(a.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(a.isString(t)&&(t=t.trim())&&!gn(t))o(wn(t),n);else if(a.isObject(t)&&a.isIterable(t)){let c={},d,f;for(const l of t){if(!a.isArray(l))throw TypeError("Object iterator must return a key-value pair");c[f=l[0]]=(d=c[f])?a.isArray(d)?[...d,l[1]]:[d,l[1]]:l[1]}o(c,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=J(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return En(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=J(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||fe(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function i(o){if(o=J(o),o){const c=a.findKey(r,o);c&&(!n||fe(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!t||fe(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,i)=>{const o=a.findKey(r,i);if(o){n[o]=ee(s),delete n[i];return}const c=t?Rn(i):String(i).trim();c!==i&&delete n[i],n[c]=ee(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
3
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Ue]=this[Ue]={accessors:{}}).accessors,s=this.prototype;function i(o){const c=J(o);r[c]||(Sn(s,o),r[c]=!0)}return a.isArray(t)?t.forEach(i):i(t),this}};A.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(A.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(A);function de(e,t){const n=this||v,r=t||n,s=A.from(r.headers);let i=r.data;return a.forEach(e,function(c){i=c.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function ot(e){return!!(e&&e.__CANCEL__)}function $(e,t,n){y.call(this,e??"canceled",y.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits($,y,{__CANCEL__:!0});function it(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new y("Request failed with status code "+n.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function On(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Tn(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(d){const f=Date.now(),l=r[i];o||(o=f),n[s]=d,r[s]=f;let h=i,b=0;for(;h!==s;)b+=n[h++],h=h%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),f-o<t)return;const R=l&&f-l;return R?Math.round(b*1e3/R):void 0}}function An(e,t){let n=0,r=1e3/t,s,i;const o=(f,l=Date.now())=>{n=l,s=null,i&&(clearTimeout(i),i=null),e(...f)};return[(...f)=>{const l=Date.now(),h=l-n;h>=r?o(f,l):(s=f,i||(i=setTimeout(()=>{i=null,o(s)},r-h)))},()=>s&&o(s)]}const re=(e,t,n=3)=>{let r=0;const s=Tn(50,250);return An(i=>{const o=i.loaded,c=i.lengthComputable?i.total:void 0,d=o-r,f=s(d),l=o<=c;r=o;const h={loaded:o,total:c,progress:c?o/c:void 0,bytes:d,rate:f||void 0,estimated:f&&c&&l?(c-o)/f:void 0,event:i,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(h)},n)},Le=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Be=e=>(...t)=>a.asap(()=>e(...t)),xn=S.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,S.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(S.origin),S.navigator&&/(msie|trident)/i.test(S.navigator.userAgent)):()=>!0,Cn=S.hasStandardBrowserEnv?{write(e,t,n,r,s,i){const o=[e+"="+encodeURIComponent(t)];a.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),a.isString(r)&&o.push("path="+r),a.isString(s)&&o.push("domain="+s),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Nn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Pn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function at(e,t,n){let r=!Nn(t);return e&&(r||n==!1)?Pn(e,t):t}const ke=e=>e instanceof A?{...e}:e;function q(e,t){t=t||{};const n={};function r(f,l,h,b){return a.isPlainObject(f)&&a.isPlainObject(l)?a.merge.call({caseless:b},f,l):a.isPlainObject(l)?a.merge({},l):a.isArray(l)?l.slice():l}function s(f,l,h,b){if(a.isUndefined(l)){if(!a.isUndefined(f))return r(void 0,f,h,b)}else return r(f,l,h,b)}function i(f,l){if(!a.isUndefined(l))return r(void 0,l)}function o(f,l){if(a.isUndefined(l)){if(!a.isUndefined(f))return r(void 0,f)}else return r(void 0,l)}function c(f,l,h){if(h in t)return r(f,l);if(h in e)return r(void 0,f)}const d={url:i,method:i,data:i,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:c,headers:(f,l,h)=>s(ke(f),ke(l),h,!0)};return a.forEach(Object.keys({...e,...t}),function(l){const h=d[l]||s,b=h(e[l],t[l],l);a.isUndefined(b)&&h!==c||(n[l]=b)}),n}const ct=e=>{const t=q({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:i,headers:o,auth:c}=t;if(t.headers=o=A.from(o),t.url=nt(at(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&o.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),a.isFormData(n)){if(S.hasStandardBrowserEnv||S.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(a.isFunction(n.getHeaders)){const d=n.getHeaders(),f=["content-type","content-length"];Object.entries(d).forEach(([l,h])=>{f.includes(l.toLowerCase())&&o.set(l,h)})}}if(S.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&xn(t.url))){const d=s&&i&&Cn.read(i);d&&o.set(s,d)}return t},Fn=typeof XMLHttpRequest<"u",_n=Fn&&function(e){return new Promise(function(n,r){const s=ct(e);let i=s.data;const o=A.from(s.headers).normalize();let{responseType:c,onUploadProgress:d,onDownloadProgress:f}=s,l,h,b,R,u;function m(){R&&R(),u&&u(),s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let p=new XMLHttpRequest;p.open(s.method.toUpperCase(),s.url,!0),p.timeout=s.timeout;function E(){if(!p)return;const g=A.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),N={data:!c||c==="text"||c==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:g,config:e,request:p};it(function(C){n(C),m()},function(C){r(C),m()},N),p=null}"onloadend"in p?p.onloadend=E:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(E)},p.onabort=function(){p&&(r(new y("Request aborted",y.ECONNABORTED,e,p)),p=null)},p.onerror=function(O){const N=O&&O.message?O.message:"Network Error",B=new y(N,y.ERR_NETWORK,e,p);B.event=O||null,r(B),p=null},p.ontimeout=function(){let O=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const N=s.transitional||rt;s.timeoutErrorMessage&&(O=s.timeoutErrorMessage),r(new y(O,N.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,e,p)),p=null},i===void 0&&o.setContentType(null),"setRequestHeader"in p&&a.forEach(o.toJSON(),function(O,N){p.setRequestHeader(N,O)}),a.isUndefined(s.withCredentials)||(p.withCredentials=!!s.withCredentials),c&&c!=="json"&&(p.responseType=s.responseType),f&&([b,u]=re(f,!0),p.addEventListener("progress",b)),d&&p.upload&&([h,R]=re(d),p.upload.addEventListener("progress",h),p.upload.addEventListener("loadend",R)),(s.cancelToken||s.signal)&&(l=g=>{p&&(r(!g||g.type?new $(null,e,p):g),p.abort(),p=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const x=On(s.url);if(x&&S.protocols.indexOf(x)===-1){r(new y("Unsupported protocol "+x+":",y.ERR_BAD_REQUEST,e));return}p.send(i||null)})},Un=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const i=function(f){if(!s){s=!0,c();const l=f instanceof Error?f:this.reason;r.abort(l instanceof y?l:new $(l instanceof Error?l.message:l))}};let o=t&&setTimeout(()=>{o=null,i(new y(`timeout ${t} of ms exceeded`,y.ETIMEDOUT))},t);const c=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(i):f.removeEventListener("abort",i)}),e=null)};e.forEach(f=>f.addEventListener("abort",i));const{signal:d}=r;return d.unsubscribe=()=>a.asap(c),d}},Ln=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},Bn=async function*(e,t){for await(const n of kn(e))yield*Ln(n,t)},kn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},De=(e,t,n,r)=>{const s=Bn(e,t);let i=0,o,c=d=>{o||(o=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:f,value:l}=await s.next();if(f){c(),d.close();return}let h=l.byteLength;if(n){let b=i+=h;n(b)}d.enqueue(new Uint8Array(l))}catch(f){throw c(f),f}},cancel(d){return c(d),s.return()}},{highWaterMark:2})},je=64*1024,{isFunction:Z}=a,Dn=(({Request:e,Response:t})=>({Request:e,Response:t}))(a.global),{ReadableStream:qe,TextEncoder:He}=a.global,Ie=(e,...t)=>{try{return!!e(...t)}catch{return!1}},jn=e=>{e=a.merge.call({skipUndefined:!0},Dn,e);const{fetch:t,Request:n,Response:r}=e,s=t?Z(t):typeof fetch=="function",i=Z(n),o=Z(r);if(!s)return!1;const c=s&&Z(qe),d=s&&(typeof He=="function"?(u=>m=>u.encode(m))(new He):async u=>new Uint8Array(await new n(u).arrayBuffer())),f=i&&c&&Ie(()=>{let u=!1;const m=new n(S.origin,{body:new qe,method:"POST",get duplex(){return u=!0,"half"}}).headers.has("Content-Type");return u&&!m}),l=o&&c&&Ie(()=>a.isReadableStream(new r("").body)),h={stream:l&&(u=>u.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(u=>{!h[u]&&(h[u]=(m,p)=>{let E=m&&m[u];if(E)return E.call(m);throw new y(`Response type '${u}' is not supported`,y.ERR_NOT_SUPPORT,p)})});const b=async u=>{if(u==null)return 0;if(a.isBlob(u))return u.size;if(a.isSpecCompliantForm(u))return(await new n(S.origin,{method:"POST",body:u}).arrayBuffer()).byteLength;if(a.isArrayBufferView(u)||a.isArrayBuffer(u))return u.byteLength;if(a.isURLSearchParams(u)&&(u=u+""),a.isString(u))return(await d(u)).byteLength},R=async(u,m)=>{const p=a.toFiniteNumber(u.getContentLength());return p??b(m)};return async u=>{let{url:m,method:p,data:E,signal:x,cancelToken:g,timeout:O,onDownloadProgress:N,onUploadProgress:B,responseType:C,headers:le,withCredentials:X="same-origin",fetchOptions:Se}=ct(u),Oe=t||fetch;C=C?(C+"").toLowerCase():"text";let G=Un([x,g&&g.toAbortSignal()],O),z=null;const k=G&&G.unsubscribe&&(()=>{G.unsubscribe()});let Te;try{if(B&&f&&p!=="get"&&p!=="head"&&(Te=await R(le,E))!==0){let L=new n(m,{method:"POST",body:E,duplex:"half"}),H;if(a.isFormData(E)&&(H=L.headers.get("content-type"))&&le.setContentType(H),L.body){const[ue,Q]=Le(Te,re(Be(B)));E=De(L.body,je,ue,Q)}}a.isString(X)||(X=X?"include":"omit");const F=i&&"credentials"in n.prototype,Ae={...Se,signal:G,method:p.toUpperCase(),headers:le.normalize().toJSON(),body:E,duplex:"half",credentials:F?X:void 0};z=i&&new n(m,Ae);let U=await(i?Oe(z,Se):Oe(m,Ae));const xe=l&&(C==="stream"||C==="response");if(l&&(N||xe&&k)){const L={};["status","statusText","headers"].forEach(Ce=>{L[Ce]=U[Ce]});const H=a.toFiniteNumber(U.headers.get("content-length")),[ue,Q]=N&&Le(H,re(Be(N),!0))||[];U=new r(De(U.body,je,ue,()=>{Q&&Q(),k&&k()}),L)}C=C||"text";let ht=await h[a.findKey(h,C)||"text"](U,u);return!xe&&k&&k(),await new Promise((L,H)=>{it(L,H,{data:ht,headers:A.from(U.headers),status:U.status,statusText:U.statusText,config:u,request:z})})}catch(F){throw k&&k(),F&&F.name==="TypeError"&&/Load failed|fetch/i.test(F.message)?Object.assign(new y("Network Error",y.ERR_NETWORK,u,z),{cause:F.cause||F}):y.from(F,F&&F.code,u,z)}}},qn=new Map,lt=e=>{let t=e?e.env:{};const{fetch:n,Request:r,Response:s}=t,i=[r,s,n];let o=i.length,c=o,d,f,l=qn;for(;c--;)d=i[c],f=l.get(d),f===void 0&&l.set(d,f=c?new Map:jn(t)),l=f;return f};lt();const be={http:en,xhr:_n,fetch:{get:lt}};a.forEach(be,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Me=e=>`- ${e}`,Hn=e=>a.isFunction(e)||e===null||e===!1,ut={getAdapter:(e,t)=>{e=a.isArray(e)?e:[e];const{length:n}=e;let r,s;const i={};for(let o=0;o<n;o++){r=e[o];let c;if(s=r,!Hn(r)&&(s=be[(c=String(r)).toLowerCase()],s===void 0))throw new y(`Unknown adapter '${c}'`);if(s&&(a.isFunction(s)||(s=s.get(t))))break;i[c||"#"+o]=s}if(!s){const o=Object.entries(i).map(([d,f])=>`adapter ${d} `+(f===!1?"is not supported by the environment":"is not available in the build"));let c=n?o.length>1?`since :
1
+ "use strict";const ne=require("./index-D_NPkUGY.cjs");function Je(e,t){return function(){return e.apply(t,arguments)}}const{toString:mt}=Object.prototype,{getPrototypeOf:we}=Object,{iterator:se,toStringTag:Ve}=Symbol,oe=(e=>t=>{const n=mt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),P=e=>(e=e.toLowerCase(),t=>oe(t)===e),ie=e=>t=>typeof t===e,{isArray:M}=Array,I=ie("undefined");function V(e){return e!==null&&!I(e)&&e.constructor!==null&&!I(e.constructor)&&T(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const We=P("ArrayBuffer");function yt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&We(e.buffer),t}const bt=ie("string"),T=ie("function"),Ke=ie("number"),W=e=>e!==null&&typeof e=="object",wt=e=>e===!0||e===!1,Y=e=>{if(oe(e)!=="object")return!1;const t=we(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Ve in e)&&!(se in e)},Et=e=>{if(!W(e)||V(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},gt=P("Date"),St=P("File"),Rt=P("Blob"),Ot=P("FileList"),Tt=e=>W(e)&&T(e.pipe),At=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||T(e.append)&&((t=oe(e))==="formdata"||t==="object"&&T(e.toString)&&e.toString()==="[object FormData]"))},xt=P("URLSearchParams"),[Ct,Nt,Pt,Ft]=["ReadableStream","Request","Response","Headers"].map(P),_t=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function K(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),M(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(V(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let c;for(r=0;r<o;r++)c=i[r],t.call(null,e[c],c,e)}}function ve(e,t){if(V(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const D=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:ne.global,Xe=e=>!I(e)&&e!==D;function he(){const{caseless:e,skipUndefined:t}=Xe(this)&&this||{},n={},r=(s,i)=>{const o=e&&ve(n,i)||i;Y(n[o])&&Y(s)?n[o]=he(n[o],s):Y(s)?n[o]=he({},s):M(s)?n[o]=s.slice():(!t||!I(s))&&(n[o]=s)};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&K(arguments[s],r);return n}const Ut=(e,t,n,{allOwnKeys:r}={})=>(K(t,(s,i)=>{n&&T(s)?e[i]=Je(s,n):e[i]=s},{allOwnKeys:r}),e),Lt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Bt=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},kt=(e,t,n,r)=>{let s,i,o;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)o=s[i],(!r||r(o,e,t))&&!c[o]&&(t[o]=e[o],c[o]=!0);e=n!==!1&&we(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Dt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},jt=e=>{if(!e)return null;if(M(e))return e;let t=e.length;if(!Ke(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},qt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&we(Uint8Array)),Ht=(e,t)=>{const r=(e&&e[se]).call(e);let s;for(;(s=r.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},It=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Mt=P("HTMLFormElement"),$t=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Ne=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),zt=P("RegExp"),Ge=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};K(n,(s,i)=>{let o;(o=t(s,i,e))!==!1&&(r[i]=o||s)}),Object.defineProperties(e,r)},Jt=e=>{Ge(e,(t,n)=>{if(T(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(T(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Vt=(e,t)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return M(e)?r(e):r(String(e).split(t)),n},Wt=()=>{},Kt=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function vt(e){return!!(e&&T(e.append)&&e[Ve]==="FormData"&&e[se])}const Xt=e=>{const t=new Array(10),n=(r,s)=>{if(W(r)){if(t.indexOf(r)>=0)return;if(V(r))return r;if(!("toJSON"in r)){t[s]=r;const i=M(r)?[]:{};return K(r,(o,c)=>{const d=n(o,s+1);!I(d)&&(i[c]=d)}),t[s]=void 0,i}}return r};return n(e,0)},Gt=P("AsyncFunction"),Qt=e=>e&&(W(e)||T(e))&&T(e.then)&&T(e.catch),Qe=((e,t)=>e?setImmediate:t?((n,r)=>(D.addEventListener("message",({source:s,data:i})=>{s===D&&i===n&&r.length&&r.shift()()},!1),s=>{r.push(s),D.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",T(D.postMessage)),Zt=typeof queueMicrotask<"u"?queueMicrotask.bind(D):typeof ne.process$1<"u"&&ne.process$1.nextTick||Qe,Yt=e=>e!=null&&T(e[se]),a={isArray:M,isArrayBuffer:We,isBuffer:V,isFormData:At,isArrayBufferView:yt,isString:bt,isNumber:Ke,isBoolean:wt,isObject:W,isPlainObject:Y,isEmptyObject:Et,isReadableStream:Ct,isRequest:Nt,isResponse:Pt,isHeaders:Ft,isUndefined:I,isDate:gt,isFile:St,isBlob:Rt,isRegExp:zt,isFunction:T,isStream:Tt,isURLSearchParams:xt,isTypedArray:qt,isFileList:Ot,forEach:K,merge:he,extend:Ut,trim:_t,stripBOM:Lt,inherits:Bt,toFlatObject:kt,kindOf:oe,kindOfTest:P,endsWith:Dt,toArray:jt,forEachEntry:Ht,matchAll:It,isHTMLForm:Mt,hasOwnProperty:Ne,hasOwnProp:Ne,reduceDescriptors:Ge,freezeMethods:Jt,toObjectSet:Vt,toCamelCase:$t,noop:Wt,toFiniteNumber:Kt,findKey:ve,global:D,isContextDefined:Xe,isSpecCompliantForm:vt,toJSONObject:Xt,isAsyncFn:Gt,isThenable:Qt,setImmediate:Qe,asap:Zt,isIterable:Yt};function y(e,t,n,r,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),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(y,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:a.toJSONObject(this.config),code:this.code,status:this.status}}});const Ze=y.prototype,Ye={};["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=>{Ye[e]={value:e}});Object.defineProperties(y,Ye);Object.defineProperty(Ze,"isAxiosError",{value:!0});y.from=(e,t,n,r,s,i)=>{const o=Object.create(Ze);a.toFlatObject(e,o,function(l){return l!==Error.prototype},f=>f!=="isAxiosError");const c=e&&e.message?e.message:"Error",d=t==null&&e?e.code:t;return y.call(o,c,d,n,r,s),e&&o.cause==null&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",i&&Object.assign(o,i),o};const en=null;function me(e){return a.isPlainObject(e)||a.isArray(e)}function et(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Pe(e,t,n){return e?e.concat(t).map(function(s,i){return s=et(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function tn(e){return a.isArray(e)&&!e.some(me)}const nn=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function ae(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,p){return!a.isUndefined(p[m])});const r=n.metaTokens,s=n.visitor||l,i=n.dots,o=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function f(u){if(u===null)return"";if(a.isDate(u))return u.toISOString();if(a.isBoolean(u))return u.toString();if(!d&&a.isBlob(u))throw new y("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(u)||a.isTypedArray(u)?d&&typeof Blob=="function"?new Blob([u]):ne.Buffer.from(u):u}function l(u,m,p){let E=u;if(u&&!p&&typeof u=="object"){if(a.endsWith(m,"{}"))m=r?m:m.slice(0,-2),u=JSON.stringify(u);else if(a.isArray(u)&&tn(u)||(a.isFileList(u)||a.endsWith(m,"[]"))&&(E=a.toArray(u)))return m=et(m),E.forEach(function(g,O){!(a.isUndefined(g)||g===null)&&t.append(o===!0?Pe([m],O,i):o===null?m:m+"[]",f(g))}),!1}return me(u)?!0:(t.append(Pe(p,m,i),f(u)),!1)}const h=[],b=Object.assign(nn,{defaultVisitor:l,convertValue:f,isVisitable:me});function S(u,m){if(!a.isUndefined(u)){if(h.indexOf(u)!==-1)throw Error("Circular reference detected in "+m.join("."));h.push(u),a.forEach(u,function(E,x){(!(a.isUndefined(E)||E===null)&&s.call(t,E,a.isString(x)?x.trim():x,m,b))===!0&&S(E,m?m.concat(x):[x])}),h.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return S(e),t}function Fe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ee(e,t){this._pairs=[],e&&ae(e,this,t)}const tt=Ee.prototype;tt.append=function(t,n){this._pairs.push([t,n])};tt.toString=function(t){const n=t?function(r){return t.call(this,r,Fe)}:Fe;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function rn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function nt(e,t,n){if(!t)return e;const r=n&&n.encode||rn;a.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let i;if(s?i=s(t,n):i=a.isURLSearchParams(t)?t.toString():new Ee(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class _e{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const rt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},sn=typeof URLSearchParams<"u"?URLSearchParams:Ee,on=typeof FormData<"u"?FormData:null,an=typeof Blob<"u"?Blob:null,cn={isBrowser:!0,classes:{URLSearchParams:sn,FormData:on,Blob:an},protocols:["http","https","file","blob","url","data"]},ge=typeof window<"u"&&typeof document<"u",ye=typeof navigator=="object"&&navigator||void 0,ln=ge&&(!ye||["ReactNative","NativeScript","NS"].indexOf(ye.product)<0),un=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fn=ge&&window.location.href||"http://localhost",dn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ge,hasStandardBrowserEnv:ln,hasStandardBrowserWebWorkerEnv:un,navigator:ye,origin:fn},Symbol.toStringTag,{value:"Module"})),R={...dn,...cn};function pn(e,t){return ae(e,new R.classes.URLSearchParams,{visitor:function(n,r,s,i){return R.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function hn(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function mn(e){const t={},n=Object.keys(e);let r;const s=n.length;let i;for(r=0;r<s;r++)i=n[r],t[i]=e[i];return t}function st(e){function t(n,r,s,i){let o=n[i++];if(o==="__proto__")return!0;const c=Number.isFinite(+o),d=i>=n.length;return o=!o&&a.isArray(s)?s.length:o,d?(a.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!c):((!s[o]||!a.isObject(s[o]))&&(s[o]=[]),t(n,r,s[o],i)&&a.isArray(s[o])&&(s[o]=mn(s[o])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(hn(r),s,n,0)}),n}return null}function yn(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const v={transitional:rt,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=a.isObject(t);if(i&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(st(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return pn(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return ae(c?{"files[]":t}:t,d&&new d,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),yn(t)):t}],transformResponse:[function(t){const n=this.transitional||v.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(c){if(o)throw c.name==="SyntaxError"?y.from(c,y.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:R.classes.FormData,Blob:R.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{v.headers[e]={}});const bn=a.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"]),wn=e=>{const t={};let n,r,s;return e&&e.split(`
2
+ `).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&bn[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ue=Symbol("internals");function J(e){return e&&String(e).trim().toLowerCase()}function ee(e){return e===!1||e==null?e:a.isArray(e)?e.map(ee):String(e)}function En(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const gn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function fe(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function Sn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Rn(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,i,o){return this[r].call(this,t,s,i,o)},configurable:!0})})}let A=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function i(c,d,f){const l=J(d);if(!l)throw new Error("header name must be a non-empty string");const h=a.findKey(s,l);(!h||s[h]===void 0||f===!0||f===void 0&&s[h]!==!1)&&(s[h||d]=ee(c))}const o=(c,d)=>a.forEach(c,(f,l)=>i(f,l,d));if(a.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(a.isString(t)&&(t=t.trim())&&!gn(t))o(wn(t),n);else if(a.isObject(t)&&a.isIterable(t)){let c={},d,f;for(const l of t){if(!a.isArray(l))throw TypeError("Object iterator must return a key-value pair");c[f=l[0]]=(d=c[f])?a.isArray(d)?[...d,l[1]]:[d,l[1]]:l[1]}o(c,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=J(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return En(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=J(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||fe(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function i(o){if(o=J(o),o){const c=a.findKey(r,o);c&&(!n||fe(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!t||fe(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,i)=>{const o=a.findKey(r,i);if(o){n[o]=ee(s),delete n[i];return}const c=t?Sn(i):String(i).trim();c!==i&&delete n[i],n[c]=ee(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
3
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Ue]=this[Ue]={accessors:{}}).accessors,s=this.prototype;function i(o){const c=J(o);r[c]||(Rn(s,o),r[c]=!0)}return a.isArray(t)?t.forEach(i):i(t),this}};A.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(A.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(A);function de(e,t){const n=this||v,r=t||n,s=A.from(r.headers);let i=r.data;return a.forEach(e,function(c){i=c.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function ot(e){return!!(e&&e.__CANCEL__)}function $(e,t,n){y.call(this,e??"canceled",y.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits($,y,{__CANCEL__:!0});function it(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new y("Request failed with status code "+n.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function On(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Tn(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(d){const f=Date.now(),l=r[i];o||(o=f),n[s]=d,r[s]=f;let h=i,b=0;for(;h!==s;)b+=n[h++],h=h%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),f-o<t)return;const S=l&&f-l;return S?Math.round(b*1e3/S):void 0}}function An(e,t){let n=0,r=1e3/t,s,i;const o=(f,l=Date.now())=>{n=l,s=null,i&&(clearTimeout(i),i=null),e(...f)};return[(...f)=>{const l=Date.now(),h=l-n;h>=r?o(f,l):(s=f,i||(i=setTimeout(()=>{i=null,o(s)},r-h)))},()=>s&&o(s)]}const re=(e,t,n=3)=>{let r=0;const s=Tn(50,250);return An(i=>{const o=i.loaded,c=i.lengthComputable?i.total:void 0,d=o-r,f=s(d),l=o<=c;r=o;const h={loaded:o,total:c,progress:c?o/c:void 0,bytes:d,rate:f||void 0,estimated:f&&c&&l?(c-o)/f:void 0,event:i,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(h)},n)},Le=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Be=e=>(...t)=>a.asap(()=>e(...t)),xn=R.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,R.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(R.origin),R.navigator&&/(msie|trident)/i.test(R.navigator.userAgent)):()=>!0,Cn=R.hasStandardBrowserEnv?{write(e,t,n,r,s,i,o){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];a.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),a.isString(r)&&c.push(`path=${r}`),a.isString(s)&&c.push(`domain=${s}`),i===!0&&c.push("secure"),a.isString(o)&&c.push(`SameSite=${o}`),document.cookie=c.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 Nn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Pn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function at(e,t,n){let r=!Nn(t);return e&&(r||n==!1)?Pn(e,t):t}const ke=e=>e instanceof A?{...e}:e;function q(e,t){t=t||{};const n={};function r(f,l,h,b){return a.isPlainObject(f)&&a.isPlainObject(l)?a.merge.call({caseless:b},f,l):a.isPlainObject(l)?a.merge({},l):a.isArray(l)?l.slice():l}function s(f,l,h,b){if(a.isUndefined(l)){if(!a.isUndefined(f))return r(void 0,f,h,b)}else return r(f,l,h,b)}function i(f,l){if(!a.isUndefined(l))return r(void 0,l)}function o(f,l){if(a.isUndefined(l)){if(!a.isUndefined(f))return r(void 0,f)}else return r(void 0,l)}function c(f,l,h){if(h in t)return r(f,l);if(h in e)return r(void 0,f)}const d={url:i,method:i,data:i,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:c,headers:(f,l,h)=>s(ke(f),ke(l),h,!0)};return a.forEach(Object.keys({...e,...t}),function(l){const h=d[l]||s,b=h(e[l],t[l],l);a.isUndefined(b)&&h!==c||(n[l]=b)}),n}const ct=e=>{const t=q({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:i,headers:o,auth:c}=t;if(t.headers=o=A.from(o),t.url=nt(at(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&o.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),a.isFormData(n)){if(R.hasStandardBrowserEnv||R.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(a.isFunction(n.getHeaders)){const d=n.getHeaders(),f=["content-type","content-length"];Object.entries(d).forEach(([l,h])=>{f.includes(l.toLowerCase())&&o.set(l,h)})}}if(R.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&xn(t.url))){const d=s&&i&&Cn.read(i);d&&o.set(s,d)}return t},Fn=typeof XMLHttpRequest<"u",_n=Fn&&function(e){return new Promise(function(n,r){const s=ct(e);let i=s.data;const o=A.from(s.headers).normalize();let{responseType:c,onUploadProgress:d,onDownloadProgress:f}=s,l,h,b,S,u;function m(){S&&S(),u&&u(),s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let p=new XMLHttpRequest;p.open(s.method.toUpperCase(),s.url,!0),p.timeout=s.timeout;function E(){if(!p)return;const g=A.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),N={data:!c||c==="text"||c==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:g,config:e,request:p};it(function(C){n(C),m()},function(C){r(C),m()},N),p=null}"onloadend"in p?p.onloadend=E:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(E)},p.onabort=function(){p&&(r(new y("Request aborted",y.ECONNABORTED,e,p)),p=null)},p.onerror=function(O){const N=O&&O.message?O.message:"Network Error",B=new y(N,y.ERR_NETWORK,e,p);B.event=O||null,r(B),p=null},p.ontimeout=function(){let O=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const N=s.transitional||rt;s.timeoutErrorMessage&&(O=s.timeoutErrorMessage),r(new y(O,N.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,e,p)),p=null},i===void 0&&o.setContentType(null),"setRequestHeader"in p&&a.forEach(o.toJSON(),function(O,N){p.setRequestHeader(N,O)}),a.isUndefined(s.withCredentials)||(p.withCredentials=!!s.withCredentials),c&&c!=="json"&&(p.responseType=s.responseType),f&&([b,u]=re(f,!0),p.addEventListener("progress",b)),d&&p.upload&&([h,S]=re(d),p.upload.addEventListener("progress",h),p.upload.addEventListener("loadend",S)),(s.cancelToken||s.signal)&&(l=g=>{p&&(r(!g||g.type?new $(null,e,p):g),p.abort(),p=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const x=On(s.url);if(x&&R.protocols.indexOf(x)===-1){r(new y("Unsupported protocol "+x+":",y.ERR_BAD_REQUEST,e));return}p.send(i||null)})},Un=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const i=function(f){if(!s){s=!0,c();const l=f instanceof Error?f:this.reason;r.abort(l instanceof y?l:new $(l instanceof Error?l.message:l))}};let o=t&&setTimeout(()=>{o=null,i(new y(`timeout ${t} of ms exceeded`,y.ETIMEDOUT))},t);const c=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(i):f.removeEventListener("abort",i)}),e=null)};e.forEach(f=>f.addEventListener("abort",i));const{signal:d}=r;return d.unsubscribe=()=>a.asap(c),d}},Ln=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},Bn=async function*(e,t){for await(const n of kn(e))yield*Ln(n,t)},kn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},De=(e,t,n,r)=>{const s=Bn(e,t);let i=0,o,c=d=>{o||(o=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:f,value:l}=await s.next();if(f){c(),d.close();return}let h=l.byteLength;if(n){let b=i+=h;n(b)}d.enqueue(new Uint8Array(l))}catch(f){throw c(f),f}},cancel(d){return c(d),s.return()}},{highWaterMark:2})},je=64*1024,{isFunction:Z}=a,Dn=(({Request:e,Response:t})=>({Request:e,Response:t}))(a.global),{ReadableStream:qe,TextEncoder:He}=a.global,Ie=(e,...t)=>{try{return!!e(...t)}catch{return!1}},jn=e=>{e=a.merge.call({skipUndefined:!0},Dn,e);const{fetch:t,Request:n,Response:r}=e,s=t?Z(t):typeof fetch=="function",i=Z(n),o=Z(r);if(!s)return!1;const c=s&&Z(qe),d=s&&(typeof He=="function"?(u=>m=>u.encode(m))(new He):async u=>new Uint8Array(await new n(u).arrayBuffer())),f=i&&c&&Ie(()=>{let u=!1;const m=new n(R.origin,{body:new qe,method:"POST",get duplex(){return u=!0,"half"}}).headers.has("Content-Type");return u&&!m}),l=o&&c&&Ie(()=>a.isReadableStream(new r("").body)),h={stream:l&&(u=>u.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(u=>{!h[u]&&(h[u]=(m,p)=>{let E=m&&m[u];if(E)return E.call(m);throw new y(`Response type '${u}' is not supported`,y.ERR_NOT_SUPPORT,p)})});const b=async u=>{if(u==null)return 0;if(a.isBlob(u))return u.size;if(a.isSpecCompliantForm(u))return(await new n(R.origin,{method:"POST",body:u}).arrayBuffer()).byteLength;if(a.isArrayBufferView(u)||a.isArrayBuffer(u))return u.byteLength;if(a.isURLSearchParams(u)&&(u=u+""),a.isString(u))return(await d(u)).byteLength},S=async(u,m)=>{const p=a.toFiniteNumber(u.getContentLength());return p??b(m)};return async u=>{let{url:m,method:p,data:E,signal:x,cancelToken:g,timeout:O,onDownloadProgress:N,onUploadProgress:B,responseType:C,headers:le,withCredentials:X="same-origin",fetchOptions:Re}=ct(u),Oe=t||fetch;C=C?(C+"").toLowerCase():"text";let G=Un([x,g&&g.toAbortSignal()],O),z=null;const k=G&&G.unsubscribe&&(()=>{G.unsubscribe()});let Te;try{if(B&&f&&p!=="get"&&p!=="head"&&(Te=await S(le,E))!==0){let L=new n(m,{method:"POST",body:E,duplex:"half"}),H;if(a.isFormData(E)&&(H=L.headers.get("content-type"))&&le.setContentType(H),L.body){const[ue,Q]=Le(Te,re(Be(B)));E=De(L.body,je,ue,Q)}}a.isString(X)||(X=X?"include":"omit");const F=i&&"credentials"in n.prototype,Ae={...Re,signal:G,method:p.toUpperCase(),headers:le.normalize().toJSON(),body:E,duplex:"half",credentials:F?X:void 0};z=i&&new n(m,Ae);let U=await(i?Oe(z,Re):Oe(m,Ae));const xe=l&&(C==="stream"||C==="response");if(l&&(N||xe&&k)){const L={};["status","statusText","headers"].forEach(Ce=>{L[Ce]=U[Ce]});const H=a.toFiniteNumber(U.headers.get("content-length")),[ue,Q]=N&&Le(H,re(Be(N),!0))||[];U=new r(De(U.body,je,ue,()=>{Q&&Q(),k&&k()}),L)}C=C||"text";let ht=await h[a.findKey(h,C)||"text"](U,u);return!xe&&k&&k(),await new Promise((L,H)=>{it(L,H,{data:ht,headers:A.from(U.headers),status:U.status,statusText:U.statusText,config:u,request:z})})}catch(F){throw k&&k(),F&&F.name==="TypeError"&&/Load failed|fetch/i.test(F.message)?Object.assign(new y("Network Error",y.ERR_NETWORK,u,z),{cause:F.cause||F}):y.from(F,F&&F.code,u,z)}}},qn=new Map,lt=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:s}=t,i=[r,s,n];let o=i.length,c=o,d,f,l=qn;for(;c--;)d=i[c],f=l.get(d),f===void 0&&l.set(d,f=c?new Map:jn(t)),l=f;return f};lt();const Se={http:en,xhr:_n,fetch:{get:lt}};a.forEach(Se,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Me=e=>`- ${e}`,Hn=e=>a.isFunction(e)||e===null||e===!1;function In(e,t){e=a.isArray(e)?e:[e];const{length:n}=e;let r,s;const i={};for(let o=0;o<n;o++){r=e[o];let c;if(s=r,!Hn(r)&&(s=Se[(c=String(r)).toLowerCase()],s===void 0))throw new y(`Unknown adapter '${c}'`);if(s&&(a.isFunction(s)||(s=s.get(t))))break;i[c||"#"+o]=s}if(!s){const o=Object.entries(i).map(([d,f])=>`adapter ${d} `+(f===!1?"is not supported by the environment":"is not available in the build"));let c=n?o.length>1?`since :
4
4
  `+o.map(Me).join(`
5
- `):" "+Me(o[0]):"as no adapter specified";throw new y("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s},adapters:be};function pe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $(null,e)}function $e(e){return pe(e),e.headers=A.from(e.headers),e.data=de.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ut.getAdapter(e.adapter||v.adapter,e)(e).then(function(r){return pe(e),r.data=de.call(e,e.transformResponse,r),r.headers=A.from(r.headers),r},function(r){return ot(r)||(pe(e),r&&r.response&&(r.response.data=de.call(e,e.transformResponse,r.response),r.response.headers=A.from(r.response.headers))),Promise.reject(r)})}const ft="1.12.2",ce={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ce[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ze={};ce.transitional=function(t,n,r){function s(i,o){return"[Axios v"+ft+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,c)=>{if(t===!1)throw new y(s(o," has been removed"+(n?" in "+n:"")),y.ERR_DEPRECATED);return n&&!ze[o]&&(ze[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,c):!0}};ce.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function In(e,t,n){if(typeof e!="object")throw new y("options must be an object",y.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const i=r[s],o=t[i];if(o){const c=e[i],d=c===void 0||o(c,i,e);if(d!==!0)throw new y("option "+i+" must be "+d,y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new y("Unknown option "+i,y.ERR_BAD_OPTION)}}const te={assertOptions:In,validators:ce},_=te.validators;let j=class{constructor(t){this.defaults=t||{},this.interceptors={request:new _e,response:new _e}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
6
- `+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=q(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&te.assertOptions(r,{silentJSONParsing:_.transitional(_.boolean),forcedJSONParsing:_.transitional(_.boolean),clarifyTimeoutError:_.transitional(_.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:te.assertOptions(s,{encode:_.function,serialize:_.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),te.assertOptions(n,{baseUrl:_.spelling("baseURL"),withXsrfToken:_.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&a.merge(i.common,i[n.method]);i&&a.forEach(["delete","get","head","post","put","patch","common"],u=>{delete i[u]}),n.headers=A.concat(o,i);const c=[];let d=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(d=d&&m.synchronous,c.unshift(m.fulfilled,m.rejected))});const f=[];this.interceptors.response.forEach(function(m){f.push(m.fulfilled,m.rejected)});let l,h=0,b;if(!d){const u=[$e.bind(this),void 0];for(u.unshift(...c),u.push(...f),b=u.length,l=Promise.resolve(n);h<b;)l=l.then(u[h++],u[h++]);return l}b=c.length;let R=n;for(;h<b;){const u=c[h++],m=c[h++];try{R=u(R)}catch(p){m.call(this,p);break}}try{l=$e.call(this,R)}catch(u){return Promise.reject(u)}for(h=0,b=f.length;h<b;)l=l.then(f[h++],f[h++]);return l}getUri(t){t=q(this.defaults,t);const n=at(t.baseURL,t.url,t.allowAbsoluteUrls);return nt(n,t.params,t.paramsSerializer)}};a.forEach(["delete","get","head","options"],function(t){j.prototype[t]=function(n,r){return this.request(q(r||{},{method:t,url:n,data:(r||{}).data}))}});a.forEach(["post","put","patch"],function(t){function n(r){return function(i,o,c){return this.request(q(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}j.prototype[t]=n(),j.prototype[t+"Form"]=n(!0)});let Mn=class dt{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(s=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(c=>{r.subscribe(c),i=c}).then(s);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,c){r.reason||(r.reason=new $(i,o,c),n(r.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 n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new dt(function(s){t=s}),cancel:t}}};function $n(e){return function(n){return e.apply(null,n)}}function zn(e){return a.isObject(e)&&e.isAxiosError===!0}const we={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};Object.entries(we).forEach(([e,t])=>{we[t]=e});function pt(e){const t=new j(e),n=Je(j.prototype.request,t);return a.extend(n,j.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return pt(q(e,s))},n}const w=pt(v);w.Axios=j;w.CanceledError=$;w.CancelToken=Mn;w.isCancel=ot;w.VERSION=ft;w.toFormData=ae;w.AxiosError=y;w.Cancel=w.CanceledError;w.all=function(t){return Promise.all(t)};w.spread=$n;w.isAxiosError=zn;w.mergeConfig=q;w.AxiosHeaders=A;w.formToJSON=e=>st(a.isHTMLForm(e)?new FormData(e):e);w.getAdapter=ut.getAdapter;w.HttpStatusCode=we;w.default=w;const{Axios:Wn,AxiosError:Kn,CanceledError:vn,isCancel:Xn,CancelToken:Gn,VERSION:Qn,all:Zn,Cancel:Yn,isAxiosError:er,spread:tr,toFormData:nr,AxiosHeaders:rr,HttpStatusCode:sr,formToJSON:or,getAdapter:ir,mergeConfig:ar}=w;exports.axios=w;
5
+ `):" "+Me(o[0]):"as no adapter specified";throw new y("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s}const ut={getAdapter:In,adapters:Se};function pe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $(null,e)}function $e(e){return pe(e),e.headers=A.from(e.headers),e.data=de.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ut.getAdapter(e.adapter||v.adapter,e)(e).then(function(r){return pe(e),r.data=de.call(e,e.transformResponse,r),r.headers=A.from(r.headers),r},function(r){return ot(r)||(pe(e),r&&r.response&&(r.response.data=de.call(e,e.transformResponse,r.response),r.response.headers=A.from(r.response.headers))),Promise.reject(r)})}const ft="1.13.1",ce={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ce[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ze={};ce.transitional=function(t,n,r){function s(i,o){return"[Axios v"+ft+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,c)=>{if(t===!1)throw new y(s(o," has been removed"+(n?" in "+n:"")),y.ERR_DEPRECATED);return n&&!ze[o]&&(ze[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,c):!0}};ce.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Mn(e,t,n){if(typeof e!="object")throw new y("options must be an object",y.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const i=r[s],o=t[i];if(o){const c=e[i],d=c===void 0||o(c,i,e);if(d!==!0)throw new y("option "+i+" must be "+d,y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new y("Unknown option "+i,y.ERR_BAD_OPTION)}}const te={assertOptions:Mn,validators:ce},_=te.validators;let j=class{constructor(t){this.defaults=t||{},this.interceptors={request:new _e,response:new _e}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
6
+ `+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=q(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&te.assertOptions(r,{silentJSONParsing:_.transitional(_.boolean),forcedJSONParsing:_.transitional(_.boolean),clarifyTimeoutError:_.transitional(_.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:te.assertOptions(s,{encode:_.function,serialize:_.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),te.assertOptions(n,{baseUrl:_.spelling("baseURL"),withXsrfToken:_.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&a.merge(i.common,i[n.method]);i&&a.forEach(["delete","get","head","post","put","patch","common"],u=>{delete i[u]}),n.headers=A.concat(o,i);const c=[];let d=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(d=d&&m.synchronous,c.unshift(m.fulfilled,m.rejected))});const f=[];this.interceptors.response.forEach(function(m){f.push(m.fulfilled,m.rejected)});let l,h=0,b;if(!d){const u=[$e.bind(this),void 0];for(u.unshift(...c),u.push(...f),b=u.length,l=Promise.resolve(n);h<b;)l=l.then(u[h++],u[h++]);return l}b=c.length;let S=n;for(;h<b;){const u=c[h++],m=c[h++];try{S=u(S)}catch(p){m.call(this,p);break}}try{l=$e.call(this,S)}catch(u){return Promise.reject(u)}for(h=0,b=f.length;h<b;)l=l.then(f[h++],f[h++]);return l}getUri(t){t=q(this.defaults,t);const n=at(t.baseURL,t.url,t.allowAbsoluteUrls);return nt(n,t.params,t.paramsSerializer)}};a.forEach(["delete","get","head","options"],function(t){j.prototype[t]=function(n,r){return this.request(q(r||{},{method:t,url:n,data:(r||{}).data}))}});a.forEach(["post","put","patch"],function(t){function n(r){return function(i,o,c){return this.request(q(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}j.prototype[t]=n(),j.prototype[t+"Form"]=n(!0)});let $n=class dt{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(s=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(c=>{r.subscribe(c),i=c}).then(s);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,c){r.reason||(r.reason=new $(i,o,c),n(r.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 n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new dt(function(s){t=s}),cancel:t}}};function zn(e){return function(n){return e.apply(null,n)}}function Jn(e){return a.isObject(e)&&e.isAxiosError===!0}const be={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(be).forEach(([e,t])=>{be[t]=e});function pt(e){const t=new j(e),n=Je(j.prototype.request,t);return a.extend(n,j.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return pt(q(e,s))},n}const w=pt(v);w.Axios=j;w.CanceledError=$;w.CancelToken=$n;w.isCancel=ot;w.VERSION=ft;w.toFormData=ae;w.AxiosError=y;w.Cancel=w.CanceledError;w.all=function(t){return Promise.all(t)};w.spread=zn;w.isAxiosError=Jn;w.mergeConfig=q;w.AxiosHeaders=A;w.formToJSON=e=>st(a.isHTMLForm(e)?new FormData(e):e);w.getAdapter=ut.getAdapter;w.HttpStatusCode=be;w.default=w;const{Axios:Kn,AxiosError:vn,CanceledError:Xn,isCancel:Gn,CancelToken:Qn,VERSION:Zn,all:Yn,Cancel:er,isAxiosError:tr,spread:nr,toFormData:rr,AxiosHeaders:sr,HttpStatusCode:or,formToJSON:ir,getAdapter:ar,mergeConfig:cr}=w;exports.axios=w;
@@ -3,9 +3,6 @@ import { Drive, DriveUpdate, ListMyDrivesBetaSelectEnum } from '../generated';
3
3
  import { GraphRequestOptions } from '../types';
4
4
  export interface GraphDrives {
5
5
  getDrive: (id: string, options?: {
6
- orderBy?: string;
7
- filter?: string;
8
- expand?: string;
9
6
  select?: Array<ListMyDrivesBetaSelectEnum>;
10
7
  }, requestOptions?: GraphRequestOptions) => Promise<SpaceResource>;
11
8
  createDrive: (data: Drive, requestOptions?: GraphRequestOptions) => Promise<SpaceResource>;
@@ -59,7 +59,6 @@ export interface Resource {
59
59
  user?: User;
60
60
  ability?: Ability;
61
61
  }): boolean;
62
- canDeny?(): boolean;
63
62
  canEditTags?(): boolean;
64
63
  getDomSelector?(): string;
65
64
  isReceivedShare?(): boolean;
@@ -34,7 +34,7 @@ export interface OutgoingShareResource extends ShareResource {
34
34
  export interface IncomingShareResource extends ShareResource {
35
35
  hidden: boolean;
36
36
  syncEnabled: boolean;
37
- shareRoles: UnifiedRoleDefinition[];
37
+ shareRoles: ShareRole[];
38
38
  sharePermissions: GraphSharePermission[];
39
39
  }
40
40
  export interface ShareRole extends UnifiedRoleDefinition {
@@ -1,11 +1,12 @@
1
1
  import { Resource } from '../resource';
2
2
  import { PublicSpaceResource, ShareSpaceResource, SpaceResource } from './types';
3
3
  import { Drive } from '@opencloud-eu/web-client/graph/generated';
4
- import { CollaboratorShare } from '../share';
4
+ import { CollaboratorShare, ShareRole } from '../share';
5
5
  export declare function buildWebDavSpacesPath(storageId: string, path?: string): string;
6
6
  export declare function buildWebDavSpacesTrashPath(storageId: string, path?: string): string;
7
7
  export declare function getRelativeSpecialFolderSpacePath(space: SpaceResource, type: 'image' | 'readme'): string;
8
8
  export declare function isManager(share: CollaboratorShare): boolean;
9
+ export declare const getSpaceManagers: (space: SpaceResource, graphRoles: Record<string, ShareRole>) => import('../../graph/generated').Permission[];
9
10
  export type PublicLinkType = 'ocm' | 'public-link';
10
11
  export declare function buildPublicSpaceResource(data: any & {
11
12
  publicLinkType: PublicLinkType;
@@ -78,6 +78,7 @@ export interface Capabilities {
78
78
  version?: string;
79
79
  versionstring?: string;
80
80
  };
81
+ 'check-for-updates'?: boolean;
81
82
  'support-sse'?: boolean;
82
83
  'support-url-signing'?: boolean;
83
84
  'webdav-root'?: string;
@@ -5,7 +5,9 @@ import { DAV, DAVRequestOptions } from './client';
5
5
  export declare const GetFileUrlFactory: (dav: DAV, getFileContentsFactory: ReturnType<typeof GetFileContentsFactory>, { axiosClient, baseUrl }: WebDavOptions) => {
6
6
  getFileUrl(space: SpaceResource, resource: Resource, { disposition, isUrlSigningEnabled, signUrlTimeout, version, doHeadRequest, username, ...opts }: {
7
7
  disposition?: "inline" | "attachment";
8
+ /** @deprecated no need to specify, the server always supports this */
8
9
  isUrlSigningEnabled?: boolean;
10
+ /** @deprecated this has no effect */
9
11
  signUrlTimeout?: number;
10
12
  version?: string;
11
13
  doHeadRequest?: boolean;
@@ -43,5 +43,5 @@ export interface WebDAV {
43
43
  search: ReturnType<typeof SearchFactory>['search'];
44
44
  listFavoriteFiles: ReturnType<typeof ListFavoriteFilesFactory>['listFavoriteFiles'];
45
45
  setFavorite: ReturnType<typeof SetFavoriteFactory>['setFavorite'];
46
- registerExtraProp(name: string): any;
46
+ registerExtraProp(name: string): void;
47
47
  }