@opencloud-eu/web-client 4.2.0 → 4.3.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,8 +1,8 @@
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
- import { u as M } from "./toString-XlfBosfh.js";
1
+ import { a as Nr } from "./index-BfIzVKrn.js";
2
+ import { D as st, I as he, J as me, t as xr, l as ue, p as Kt, m as Pr, K as se } from "./functions-BBrAOhdi.js";
3
+ import { u as M } from "./toString-BMC5nz5v.js";
4
4
  import { ocs as Er } from "./web-client/ocs.js";
5
- import { p as oe, g as ve } from "./index-JHVTaNRI.js";
5
+ import { p as oe, g as ve } from "./index-8RyXehLU.js";
6
6
  const we = (r) => encodeURIComponent(r).split("%2F").join("/");
7
7
  class Qt extends Error {
8
8
  response;
@@ -13,8 +13,8 @@ class Qt extends Error {
13
13
  }
14
14
  class Ar extends Qt {
15
15
  errorCode;
16
- constructor(e, t, n, o = null) {
17
- super(e, n, o), this.errorCode = t;
16
+ constructor(e, t, n, a = null) {
17
+ super(e, n, a), this.errorCode = t;
18
18
  }
19
19
  }
20
20
  const re = (r, { fileId: e, path: t, name: n }) => {
@@ -27,13 +27,13 @@ const re = (r, { fileId: e, path: t, name: n }) => {
27
27
  }
28
28
  return r.webDavPath;
29
29
  }, Tr = (r, e) => ({
30
- copyFiles(t, { path: n, fileId: o }, u, {
30
+ copyFiles(t, { path: n, fileId: a }, u, {
31
31
  path: c,
32
32
  parentFolderId: i,
33
33
  name: h
34
- }, { overwrite: a, ...s } = {}) {
34
+ }, { overwrite: o, ...s } = {}) {
35
35
  const f = re(t, {
36
- fileId: o,
36
+ fileId: a,
37
37
  path: n
38
38
  }), l = re(u, {
39
39
  fileId: i,
@@ -41,25 +41,25 @@ const re = (r, { fileId: e, path: t, name: n }) => {
41
41
  name: h
42
42
  });
43
43
  return r.copy(f, l, {
44
- overwrite: a || !1,
44
+ overwrite: o || !1,
45
45
  ...s
46
46
  });
47
47
  }
48
48
  }), Or = (r, e, t) => ({
49
- async createFolder(n, { path: o, parentFolderId: u, folderName: c, fetchFolder: i = !0, ...h }) {
50
- const a = re(n, { fileId: u, path: o, name: c });
51
- if (await r.mkcol(a), i)
52
- return e.getFileInfo(n, { path: o }, h);
49
+ async createFolder(n, { path: a, parentFolderId: u, folderName: c, fetchFolder: i = !0, ...h }) {
50
+ const o = re(n, { fileId: u, path: a, name: c });
51
+ if (await r.mkcol(o), i)
52
+ return e.getFileInfo(n, { path: a }, h);
53
53
  }
54
54
  }), Cr = (r, { axiosClient: e }) => ({
55
- async getFileContents(t, { fileId: n, path: o }, {
55
+ async getFileContents(t, { fileId: n, path: a }, {
56
56
  responseType: u = "text",
57
57
  noCache: c = !0,
58
58
  headers: i,
59
59
  ...h
60
60
  } = {}) {
61
61
  try {
62
- const a = re(t, { fileId: n, path: o }), s = await e.get(r.getFileUrl(a), {
62
+ const o = re(t, { fileId: n, path: a }), s = await e.get(r.getFileUrl(o), {
63
63
  responseType: u,
64
64
  headers: {
65
65
  ...c && { "Cache-Control": "no-cache" },
@@ -76,63 +76,72 @@ const re = (r, { fileId: e, path: t, name: n }) => {
76
76
  "OC-FileId": s.headers["oc-fileid"]
77
77
  }
78
78
  };
79
- } catch (a) {
80
- const { message: s, response: f } = a;
79
+ } catch (o) {
80
+ const { message: s, response: f } = o;
81
81
  throw new Qt(s, f, f.status);
82
82
  }
83
83
  }
84
84
  }), Ir = (r, e) => ({
85
- async getFileInfo(t, n, o) {
85
+ async getFileInfo(t, n, a) {
86
86
  return (await r.listFiles(t, n, {
87
87
  depth: 0,
88
- ...o
88
+ ...a
89
89
  })).resource;
90
90
  }
91
- }), Sr = (r, e, { axiosClient: t, baseUrl: n }) => ({
92
- async getFileUrl(o, u, {
93
- disposition: c = "attachment",
94
- isUrlSigningEnabled: i = !0,
95
- signUrlTimeout: h = 86400,
96
- version: a = null,
97
- doHeadRequest: s = !1,
98
- username: f = "",
99
- ...l
91
+ }), Sr = (r, e, t, { axiosClient: n, baseUrl: a }) => ({
92
+ async getFileUrl(u, c, {
93
+ disposition: i = "attachment",
94
+ isUrlSigningEnabled: h = !0,
95
+ signUrlTimeout: o = 86400,
96
+ version: s = null,
97
+ doHeadRequest: f = !1,
98
+ username: l = "",
99
+ ...g
100
100
  }) {
101
- const g = c === "inline";
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, {
101
+ if (i === "inline") {
102
+ const m = await e.getFileContents(u, c, {
105
103
  responseType: "blob",
106
- ...l
104
+ ...g
107
105
  });
108
- d = URL.createObjectURL(m.body);
109
- }
106
+ return URL.createObjectURL(m.body);
107
+ }
108
+ if (s) {
109
+ if (!l)
110
+ throw new Error("username is required for URL signing");
111
+ const m = r.getFileUrl(M("meta", c.fileId, "v", s));
112
+ return await Er(a, n).signUrl(m, l);
113
+ }
114
+ if (c.downloadURL)
115
+ return c.downloadURL;
116
+ const { downloadURL: d } = await t.getFileInfo(u, c, {
117
+ davProperties: [he.DownloadURL]
118
+ });
110
119
  return d;
111
120
  },
112
- revokeUrl: (o) => {
113
- o && o.startsWith("blob:") && URL.revokeObjectURL(o);
121
+ revokeUrl: (u) => {
122
+ u && u.startsWith("blob:") && URL.revokeObjectURL(u);
114
123
  }
115
124
  }), Fr = (r, e) => ({
116
125
  getPublicFileUrl(t, n) {
117
126
  return r.getFileUrl(M("public-files", n));
118
127
  }
119
128
  }), jr = (r, e, t) => ({
120
- async listFiles(n, { path: o, fileId: u } = {}, { depth: c = 1, davProperties: i, isTrash: h = !1, ...a } = {}) {
129
+ async listFiles(n, { path: a, fileId: u } = {}, { depth: c = 1, davProperties: i, isTrash: h = !1, ...o } = {}) {
121
130
  let s;
122
131
  if (st(n)) {
123
- s = await r.propfind(M(n.webDavPath, o), {
132
+ s = await r.propfind(M(n.webDavPath, a), {
124
133
  depth: c,
125
- properties: i || de.PublicLink,
126
- ...a
134
+ properties: i || me.PublicLink,
135
+ ...o
127
136
  }), s.forEach((d) => {
128
137
  d.filename = d.filename.split("/").slice(1).join("/");
129
- }), s.length === 1 && (s[0].filename = M(n.id, o, {
138
+ }), s.length === 1 && (s[0].filename = M(n.id, a, {
130
139
  leadingSlash: !0
131
140
  })), s.forEach((d) => {
132
141
  d.filename = d.filename.split("/").slice(2).join("/");
133
142
  });
134
143
  const l = n.driveAlias.startsWith("ocm/") ? "ocm" : "public-link";
135
- if ((!o || o === "/") && c > 0 && l === "ocm" && s[0].props[me.PublicLinkItemType] === "file" && (s = [
144
+ if ((!a || a === "/") && c > 0 && l === "ocm" && s[0].props[he.PublicLinkItemType] === "file" && (s = [
136
145
  {
137
146
  basename: n.fileId,
138
147
  type: "directory",
@@ -140,7 +149,7 @@ const re = (r, { fileId: e, path: t, name: n }) => {
140
149
  props: {}
141
150
  },
142
151
  ...s
143
- ]), !o) {
152
+ ]), !a) {
144
153
  const [d, ...m] = s;
145
154
  return {
146
155
  resource: xr({
@@ -162,17 +171,17 @@ const re = (r, { fileId: e, path: t, name: n }) => {
162
171
  };
163
172
  try {
164
173
  let l = "";
165
- if (h ? l = Kt(n.id) : l = re(n, { fileId: u, path: o }), s = await r.propfind(l, {
174
+ if (h ? l = Kt(n.id) : l = re(n, { fileId: u, path: a }), s = await r.propfind(l, {
166
175
  depth: c,
167
- properties: i || de.Default,
168
- ...a
176
+ properties: i || me.Default,
177
+ ...o
169
178
  }), h)
170
179
  return {
171
180
  resource: ue(s[0], r.extraProps),
172
181
  children: s.slice(1).map(Pr)
173
182
  };
174
183
  const g = s.map((m) => ue(m, r.extraProps)), d = u === n.id;
175
- return u && !d && u !== g[0].fileId ? f() : { resource: g[0], children: g.slice(1) };
184
+ return u && !d && g[0].fileId && u !== g[0].fileId ? f() : { resource: g[0], children: g.slice(1) };
176
185
  } catch (l) {
177
186
  if (l.statusCode === 404 && u)
178
187
  return f();
@@ -180,13 +189,13 @@ const re = (r, { fileId: e, path: t, name: n }) => {
180
189
  }
181
190
  }
182
191
  }), $r = (r, e) => ({
183
- moveFiles(t, { path: n, fileId: o }, u, {
192
+ moveFiles(t, { path: n, fileId: a }, u, {
184
193
  path: c,
185
194
  parentFolderId: i,
186
195
  name: h
187
- }, { overwrite: a, ...s } = {}) {
196
+ }, { overwrite: o, ...s } = {}) {
188
197
  const f = re(t, {
189
- fileId: o,
198
+ fileId: a,
190
199
  path: n
191
200
  }), l = re(u, {
192
201
  fileId: i,
@@ -194,24 +203,24 @@ const re = (r, { fileId: e, path: t, name: n }) => {
194
203
  name: h
195
204
  });
196
205
  return r.move(f, l, {
197
- overwrite: a || !1,
206
+ overwrite: o || !1,
198
207
  ...s
199
208
  });
200
209
  }
201
210
  }), Rr = (r, e, t) => ({
202
211
  async putFileContents(n, {
203
- fileName: o,
212
+ fileName: a,
204
213
  path: u,
205
214
  parentFolderId: c,
206
215
  content: i = "",
207
216
  previousEntityTag: h = "",
208
- overwrite: a,
217
+ overwrite: o,
209
218
  onUploadProgress: s = null,
210
219
  ...f
211
220
  }) {
212
- const l = re(n, { fileId: c, name: o, path: u }), { result: g } = await r.put(l, i, {
221
+ const l = re(n, { fileId: c, name: a, path: u }), { result: g } = await r.put(l, i, {
213
222
  previousEntityTag: h,
214
- overwrite: a,
223
+ overwrite: o,
215
224
  onUploadProgress: s,
216
225
  ...f
217
226
  });
@@ -221,41 +230,41 @@ const re = (r, { fileId: e, path: t, name: n }) => {
221
230
  });
222
231
  }
223
232
  }), Lr = (r, e) => ({
224
- deleteFile(t, { path: n, ...o }) {
225
- return r.delete(M(t.webDavPath, n), o);
233
+ deleteFile(t, { path: n, ...a }) {
234
+ return r.delete(M(t.webDavPath, n), a);
226
235
  }
227
236
  }), kr = (r, e) => ({
228
- restoreFile(t, { id: n }, { path: o }, { overwrite: u, ...c } = {}) {
237
+ restoreFile(t, { id: n }, { path: a }, { overwrite: u, ...c } = {}) {
229
238
  if (st(t))
230
239
  return;
231
- const i = M(t.webDavPath, o);
240
+ const i = M(t.webDavPath, a);
232
241
  return r.move(M(t.webDavTrashPath, n), i, {
233
242
  overwrite: u,
234
243
  ...c
235
244
  });
236
245
  }
237
246
  }), Ur = (r, e) => ({
238
- restoreFileVersion(t, { parentFolderId: n, name: o, path: u }, c, i = {}) {
239
- const h = re(t, { path: u, fileId: n, name: o }), a = M("meta", n, "v", c, { leadingSlash: !0 }), s = M("files", h, { leadingSlash: !0 });
240
- return r.copy(a, s, i);
247
+ restoreFileVersion(t, { parentFolderId: n, name: a, path: u }, c, i = {}) {
248
+ const h = re(t, { path: u, fileId: n, name: a }), o = M("meta", n, "v", c, { leadingSlash: !0 }), s = M("files", h, { leadingSlash: !0 });
249
+ return r.copy(o, s, i);
241
250
  }
242
251
  }), _r = (r, e) => ({
243
- clearTrashBin(t, { id: n, ...o } = {}) {
252
+ clearTrashBin(t, { id: n, ...a } = {}) {
244
253
  let u = Kt(t.id);
245
- return n && (u = M(u, n)), r.delete(u, o);
254
+ return n && (u = M(u, n)), r.delete(u, a);
246
255
  }
247
256
  }), Mr = (r, e) => ({
248
- async search(t, { davProperties: n = de.Default, searchLimit: o, ...u }) {
257
+ async search(t, { davProperties: n = me.Default, searchLimit: a, ...u }) {
249
258
  const c = "/spaces/", { range: i, results: h } = await r.report(c, {
250
259
  pattern: t,
251
- limit: o,
260
+ limit: a,
252
261
  properties: n,
253
262
  ...u
254
263
  });
255
264
  return {
256
- resources: h.map((a) => ({
257
- ...ue(a, r.extraProps),
258
- highlights: a.props[me.Highlights] || ""
265
+ resources: h.map((o) => ({
266
+ ...ue(o, r.extraProps),
267
+ highlights: o.props[he.Highlights] || ""
259
268
  })),
260
269
  totalResults: i ? parseInt(i?.split("/")[1]) : null
261
270
  };
@@ -263,34 +272,33 @@ const re = (r, { fileId: e, path: t, name: n }) => {
263
272
  }), Vr = (r, e) => ({
264
273
  async getPathForFileId(t, n = {}) {
265
274
  return (await r.propfind(M("meta", t, { leadingSlash: !0 }), {
266
- properties: [me.MetaPathForUser],
275
+ properties: [he.MetaPathForUser],
267
276
  ...n
268
- }))[0].props[me.MetaPathForUser];
277
+ }))[0].props[he.MetaPathForUser];
269
278
  }
270
279
  });
271
- /*! For license information please see index.js.LICENSE.txt */
272
280
  var Br = { 2: (r) => {
273
- function e(o, u, c) {
274
- o instanceof RegExp && (o = t(o, c)), u instanceof RegExp && (u = t(u, c));
275
- var i = n(o, u, c);
276
- 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) };
281
+ function e(a, u, c) {
282
+ a instanceof RegExp && (a = t(a, c)), u instanceof RegExp && (u = t(u, c));
283
+ var i = n(a, u, c);
284
+ return i && { start: i[0], end: i[1], pre: c.slice(0, i[0]), body: c.slice(i[0] + a.length, i[1]), post: c.slice(i[1] + u.length) };
277
285
  }
278
- function t(o, u) {
279
- var c = u.match(o);
286
+ function t(a, u) {
287
+ var c = u.match(a);
280
288
  return c ? c[0] : null;
281
289
  }
282
- function n(o, u, c) {
283
- var i, h, a, s, f, l = c.indexOf(o), g = c.indexOf(u, l + 1), d = l;
290
+ function n(a, u, c) {
291
+ var i, h, o, s, f, l = c.indexOf(a), g = c.indexOf(u, l + 1), d = l;
284
292
  if (l >= 0 && g > 0) {
285
- 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;
286
- i.length && (f = [a, s]);
293
+ for (i = [], o = c.length; d >= 0 && !f; ) d == l ? (i.push(d), l = c.indexOf(a, d + 1)) : i.length == 1 ? f = [i.pop(), g] : ((h = i.pop()) < o && (o = h, s = g), g = c.indexOf(u, d + 1)), d = l < g && l >= 0 ? l : g;
294
+ i.length && (f = [o, s]);
287
295
  }
288
296
  return f;
289
297
  }
290
298
  r.exports = e, e.range = n;
291
299
  }, 101: function(r, e, t) {
292
300
  var n;
293
- r = t.nmd(r), (function(o) {
301
+ r = t.nmd(r), (function(a) {
294
302
  var u = (r && r.exports, typeof ve == "object" && ve);
295
303
  u.global !== u && u.window;
296
304
  var c = function(f) {
@@ -299,12 +307,12 @@ var Br = { 2: (r) => {
299
307
  (c.prototype = new Error()).name = "InvalidCharacterError";
300
308
  var i = function(f) {
301
309
  throw new c(f);
302
- }, h = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", a = /[\t\n\f\r ]/g, s = { encode: function(f) {
310
+ }, h = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", o = /[\t\n\f\r ]/g, s = { encode: function(f) {
303
311
  f = String(f), /[^\0-\xFF]/.test(f) && i("The string to be encoded contains characters outside of the Latin1 range.");
304
312
  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);
305
313
  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;
306
314
  }, decode: function(f) {
307
- var l = (f = String(f).replace(a, "")).length;
315
+ var l = (f = String(f).replace(o, "")).length;
308
316
  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.");
309
317
  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)));
310
318
  return w;
@@ -316,9 +324,9 @@ var Br = { 2: (r) => {
316
324
  }, 172: (r, e) => {
317
325
  e.d = function(t) {
318
326
  if (!t) return 0;
319
- for (var n = (t = t.toString()).length, o = t.length; o--; ) {
320
- var u = t.charCodeAt(o);
321
- 56320 <= u && u <= 57343 && o--, 127 < u && u <= 2047 ? n++ : 2047 < u && u <= 65535 && (n += 2);
327
+ for (var n = (t = t.toString()).length, a = t.length; a--; ) {
328
+ var u = t.charCodeAt(a);
329
+ 56320 <= u && u <= 57343 && a--, 127 < u && u <= 2047 ? n++ : 2047 < u && u <= 65535 && (n += 2);
322
330
  }
323
331
  return n;
324
332
  };
@@ -328,49 +336,49 @@ var Br = { 2: (r) => {
328
336
  }, bytesToString: function(t) {
329
337
  return decodeURIComponent(escape(e.bin.bytesToString(t)));
330
338
  } }, bin: { stringToBytes: function(t) {
331
- for (var n = [], o = 0; o < t.length; o++) n.push(255 & t.charCodeAt(o));
339
+ for (var n = [], a = 0; a < t.length; a++) n.push(255 & t.charCodeAt(a));
332
340
  return n;
333
341
  }, bytesToString: function(t) {
334
- for (var n = [], o = 0; o < t.length; o++) n.push(String.fromCharCode(t[o]));
342
+ for (var n = [], a = 0; a < t.length; a++) n.push(String.fromCharCode(t[a]));
335
343
  return n.join("");
336
344
  } } };
337
345
  r.exports = e;
338
346
  }, 298: (r) => {
339
347
  var e, t;
340
- e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", t = { rotl: function(n, o) {
341
- return n << o | n >>> 32 - o;
342
- }, rotr: function(n, o) {
343
- return n << 32 - o | n >>> o;
348
+ e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", t = { rotl: function(n, a) {
349
+ return n << a | n >>> 32 - a;
350
+ }, rotr: function(n, a) {
351
+ return n << 32 - a | n >>> a;
344
352
  }, endian: function(n) {
345
353
  if (n.constructor == Number) return 16711935 & t.rotl(n, 8) | 4278255360 & t.rotl(n, 24);
346
- for (var o = 0; o < n.length; o++) n[o] = t.endian(n[o]);
354
+ for (var a = 0; a < n.length; a++) n[a] = t.endian(n[a]);
347
355
  return n;
348
356
  }, randomBytes: function(n) {
349
- for (var o = []; n > 0; n--) o.push(Math.floor(256 * Math.random()));
350
- return o;
357
+ for (var a = []; n > 0; n--) a.push(Math.floor(256 * Math.random()));
358
+ return a;
351
359
  }, bytesToWords: function(n) {
352
- for (var o = [], u = 0, c = 0; u < n.length; u++, c += 8) o[c >>> 5] |= n[u] << 24 - c % 32;
353
- return o;
360
+ for (var a = [], u = 0, c = 0; u < n.length; u++, c += 8) a[c >>> 5] |= n[u] << 24 - c % 32;
361
+ return a;
354
362
  }, wordsToBytes: function(n) {
355
- for (var o = [], u = 0; u < 32 * n.length; u += 8) o.push(n[u >>> 5] >>> 24 - u % 32 & 255);
356
- return o;
363
+ for (var a = [], u = 0; u < 32 * n.length; u += 8) a.push(n[u >>> 5] >>> 24 - u % 32 & 255);
364
+ return a;
357
365
  }, bytesToHex: function(n) {
358
- for (var o = [], u = 0; u < n.length; u++) o.push((n[u] >>> 4).toString(16)), o.push((15 & n[u]).toString(16));
359
- return o.join("");
366
+ for (var a = [], u = 0; u < n.length; u++) a.push((n[u] >>> 4).toString(16)), a.push((15 & n[u]).toString(16));
367
+ return a.join("");
360
368
  }, hexToBytes: function(n) {
361
- for (var o = [], u = 0; u < n.length; u += 2) o.push(parseInt(n.substr(u, 2), 16));
362
- return o;
369
+ for (var a = [], u = 0; u < n.length; u += 2) a.push(parseInt(n.substr(u, 2), 16));
370
+ return a;
363
371
  }, bytesToBase64: function(n) {
364
- 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("=");
365
- return o.join("");
372
+ for (var a = [], 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 ? a.push(e.charAt(c >>> 6 * (3 - i) & 63)) : a.push("=");
373
+ return a.join("");
366
374
  }, base64ToBytes: function(n) {
367
375
  n = n.replace(/[^A-Z0-9+\/]/gi, "");
368
- 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);
369
- return o;
376
+ for (var a = [], u = 0, c = 0; u < n.length; c = ++u % 4) c != 0 && a.push((e.indexOf(n.charAt(u - 1)) & Math.pow(2, -2 * c + 8) - 1) << 2 * c | e.indexOf(n.charAt(u)) >>> 6 - 2 * c);
377
+ return a;
370
378
  } }, r.exports = t;
371
379
  }, 635: (r, e, t) => {
372
- const n = t(31), o = t(338), u = t(221);
373
- r.exports = { XMLParser: o, XMLValidator: n, XMLBuilder: u };
380
+ const n = t(31), a = t(338), u = t(221);
381
+ r.exports = { XMLParser: a, XMLValidator: n, XMLBuilder: u };
374
382
  }, 118: (r) => {
375
383
  r.exports = function(e) {
376
384
  return typeof e == "function" ? e : Array.isArray(e) ? (t) => {
@@ -379,34 +387,34 @@ var Br = { 2: (r) => {
379
387
  } : () => !1;
380
388
  };
381
389
  }, 705: (r, e) => {
382
- 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 + "$");
390
+ 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]*", a = new RegExp("^" + n + "$");
383
391
  e.isExist = function(u) {
384
392
  return u !== void 0;
385
393
  }, e.isEmptyObject = function(u) {
386
394
  return Object.keys(u).length === 0;
387
395
  }, e.merge = function(u, c, i) {
388
396
  if (c) {
389
- const h = Object.keys(c), a = h.length;
390
- for (let s = 0; s < a; s++) u[h[s]] = i === "strict" ? [c[h[s]]] : c[h[s]];
397
+ const h = Object.keys(c), o = h.length;
398
+ for (let s = 0; s < o; s++) u[h[s]] = i === "strict" ? [c[h[s]]] : c[h[s]];
391
399
  }
392
400
  }, e.getValue = function(u) {
393
401
  return e.isExist(u) ? u : "";
394
402
  }, e.isName = function(u) {
395
- return o.exec(u) != null;
403
+ return a.exec(u) != null;
396
404
  }, e.getAllMatches = function(u, c) {
397
405
  const i = [];
398
406
  let h = c.exec(u);
399
407
  for (; h; ) {
400
- const a = [];
401
- a.startIndex = c.lastIndex - h[0].length;
408
+ const o = [];
409
+ o.startIndex = c.lastIndex - h[0].length;
402
410
  const s = h.length;
403
- for (let f = 0; f < s; f++) a.push(h[f]);
404
- i.push(a), h = c.exec(u);
411
+ for (let f = 0; f < s; f++) o.push(h[f]);
412
+ i.push(o), h = c.exec(u);
405
413
  }
406
414
  return i;
407
415
  }, e.nameRegexp = n;
408
416
  }, 31: (r, e, t) => {
409
- const n = t(705), o = { allowBooleanAttributes: !1, unpairedTags: [] };
417
+ const n = t(705), a = { allowBooleanAttributes: !1, unpairedTags: [] };
410
418
  function u(p) {
411
419
  return p === " " || p === " " || p === `
412
420
  ` || p === "\r";
@@ -442,7 +450,7 @@ var Br = { 2: (r) => {
442
450
  return y;
443
451
  }
444
452
  e.validate = function(p, y) {
445
- y = Object.assign({}, o, y);
453
+ y = Object.assign({}, a, y);
446
454
  const A = [];
447
455
  let N = !1, b = !1;
448
456
  p[0] === "\uFEFF" && (p = p.substr(1));
@@ -515,11 +523,11 @@ var Br = { 2: (r) => {
515
523
  var E;
516
524
  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);
517
525
  };
518
- const h = '"', a = "'";
526
+ const h = '"', o = "'";
519
527
  function s(p, y) {
520
528
  let A = "", N = "", b = !1;
521
529
  for (; y < p.length; y++) {
522
- if (p[y] === h || p[y] === a) N === "" ? N = p[y] : N !== p[y] || (N = "");
530
+ if (p[y] === h || p[y] === o) N === "" ? N = p[y] : N !== p[y] || (N = "");
523
531
  else if (p[y] === ">" && N === "") {
524
532
  b = !0;
525
533
  break;
@@ -573,7 +581,7 @@ var Br = { 2: (r) => {
573
581
  return p.startIndex + p[1].length;
574
582
  }
575
583
  }, 221: (r, e, t) => {
576
- 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) {
584
+ const n = t(87), a = 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) {
577
585
  return f;
578
586
  }, attributeValueProcessor: function(s, f) {
579
587
  return f;
@@ -581,7 +589,7 @@ var Br = { 2: (r) => {
581
589
  function c(s) {
582
590
  this.options = Object.assign({}, u, s), this.options.ignoreAttributes === !0 || this.options.attributesGroupName ? this.isAttribute = function() {
583
591
  return !1;
584
- } : (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 = `>
592
+ } : (this.ignoreAttributesFn = a(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = o), this.processTextOrObjNode = i, this.options.format ? (this.indentate = h, this.tagEndChar = `>
585
593
  `, this.newLine = `
586
594
  `) : (this.indentate = function() {
587
595
  return "";
@@ -594,7 +602,7 @@ var Br = { 2: (r) => {
594
602
  function h(s) {
595
603
  return this.options.indentBy.repeat(s);
596
604
  }
597
- function a(s) {
605
+ function o(s) {
598
606
  return !(!s.startsWith(this.options.attributeNamePrefix) || s === this.options.textNodeName) && s.substr(this.attrPrefixLen);
599
607
  }
600
608
  c.prototype.build = function(s) {
@@ -660,7 +668,7 @@ var Br = { 2: (r) => {
660
668
  return s;
661
669
  }, r.exports = c;
662
670
  }, 87: (r) => {
663
- function e(c, i, h, a) {
671
+ function e(c, i, h, o) {
664
672
  let s = "", f = !1;
665
673
  for (let l = 0; l < c.length; l++) {
666
674
  const g = c[l], d = t(g);
@@ -668,55 +676,55 @@ var Br = { 2: (r) => {
668
676
  let m = "";
669
677
  if (m = h.length === 0 ? d : `${h}.${d}`, d === i.textNodeName) {
670
678
  let y = g[d];
671
- o(m, i) || (y = i.tagValueProcessor(d, y), y = u(y, i)), f && (s += a), s += y, f = !1;
679
+ a(m, i) || (y = i.tagValueProcessor(d, y), y = u(y, i)), f && (s += o), s += y, f = !1;
672
680
  continue;
673
681
  }
674
682
  if (d === i.cdataPropName) {
675
- f && (s += a), s += `<![CDATA[${g[d][0][i.textNodeName]}]]>`, f = !1;
683
+ f && (s += o), s += `<![CDATA[${g[d][0][i.textNodeName]}]]>`, f = !1;
676
684
  continue;
677
685
  }
678
686
  if (d === i.commentPropName) {
679
- s += a + `<!--${g[d][0][i.textNodeName]}-->`, f = !0;
687
+ s += o + `<!--${g[d][0][i.textNodeName]}-->`, f = !0;
680
688
  continue;
681
689
  }
682
690
  if (d[0] === "?") {
683
- const y = n(g[":@"], i), A = d === "?xml" ? "" : a;
691
+ const y = n(g[":@"], i), A = d === "?xml" ? "" : o;
684
692
  let N = g[d][0][i.textNodeName];
685
693
  N = N.length !== 0 ? " " + N : "", s += A + `<${d}${N}${y}?>`, f = !0;
686
694
  continue;
687
695
  }
688
- let w = a;
696
+ let w = o;
689
697
  w !== "" && (w += i.indentBy);
690
- const v = a + `<${d}${n(g[":@"], i)}`, p = e(g[d], i, m, w);
691
- i.unpairedTags.indexOf(d) !== -1 ? i.suppressUnpairedNode ? s += v + ">" : s += v + "/>" : p && p.length !== 0 || !i.suppressEmptyNode ? p && p.endsWith(">") ? s += v + `>${p}${a}</${d}>` : (s += v + ">", p && a !== "" && (p.includes("/>") || p.includes("</")) ? s += a + i.indentBy + p + a : s += p, s += `</${d}>`) : s += v + "/>", f = !0;
698
+ const v = o + `<${d}${n(g[":@"], i)}`, p = e(g[d], i, m, w);
699
+ i.unpairedTags.indexOf(d) !== -1 ? i.suppressUnpairedNode ? s += v + ">" : s += v + "/>" : p && p.length !== 0 || !i.suppressEmptyNode ? p && p.endsWith(">") ? s += v + `>${p}${o}</${d}>` : (s += v + ">", p && o !== "" && (p.includes("/>") || p.includes("</")) ? s += o + i.indentBy + p + o : s += p, s += `</${d}>`) : s += v + "/>", f = !0;
692
700
  }
693
701
  return s;
694
702
  }
695
703
  function t(c) {
696
704
  const i = Object.keys(c);
697
705
  for (let h = 0; h < i.length; h++) {
698
- const a = i[h];
699
- if (c.hasOwnProperty(a) && a !== ":@") return a;
706
+ const o = i[h];
707
+ if (c.hasOwnProperty(o) && o !== ":@") return o;
700
708
  }
701
709
  }
702
710
  function n(c, i) {
703
711
  let h = "";
704
- if (c && !i.ignoreAttributes) for (let a in c) {
705
- if (!c.hasOwnProperty(a)) continue;
706
- let s = i.attributeValueProcessor(a, c[a]);
707
- s = u(s, i), s === !0 && i.suppressBooleanAttributes ? h += ` ${a.substr(i.attributeNamePrefix.length)}` : h += ` ${a.substr(i.attributeNamePrefix.length)}="${s}"`;
712
+ if (c && !i.ignoreAttributes) for (let o in c) {
713
+ if (!c.hasOwnProperty(o)) continue;
714
+ let s = i.attributeValueProcessor(o, c[o]);
715
+ s = u(s, i), s === !0 && i.suppressBooleanAttributes ? h += ` ${o.substr(i.attributeNamePrefix.length)}` : h += ` ${o.substr(i.attributeNamePrefix.length)}="${s}"`;
708
716
  }
709
717
  return h;
710
718
  }
711
- function o(c, i) {
719
+ function a(c, i) {
712
720
  let h = (c = c.substr(0, c.length - i.textNodeName.length - 1)).substr(c.lastIndexOf(".") + 1);
713
- for (let a in i.stopNodes) if (i.stopNodes[a] === c || i.stopNodes[a] === "*." + h) return !0;
721
+ for (let o in i.stopNodes) if (i.stopNodes[o] === c || i.stopNodes[o] === "*." + h) return !0;
714
722
  return !1;
715
723
  }
716
724
  function u(c, i) {
717
725
  if (c && c.length > 0 && i.processEntities) for (let h = 0; h < i.entities.length; h++) {
718
- const a = i.entities[h];
719
- c = c.replace(a.regex, a.val);
726
+ const o = i.entities[h];
727
+ c = c.replace(o.regex, o.val);
720
728
  }
721
729
  return c;
722
730
  }
@@ -727,7 +735,7 @@ var Br = { 2: (r) => {
727
735
  };
728
736
  }, 193: (r, e, t) => {
729
737
  const n = t(705);
730
- function o(f, l) {
738
+ function a(f, l) {
731
739
  let g = "";
732
740
  for (; l < f.length && f[l] !== "'" && f[l] !== '"'; l++) g += f[l];
733
741
  if (g = g.trim(), g.indexOf(" ") !== -1) throw new Error("External entites are not supported");
@@ -748,7 +756,7 @@ var Br = { 2: (r) => {
748
756
  function h(f, l) {
749
757
  return f[l + 1] === "!" && f[l + 2] === "A" && f[l + 3] === "T" && f[l + 4] === "T" && f[l + 5] === "L" && f[l + 6] === "I" && f[l + 7] === "S" && f[l + 8] === "T";
750
758
  }
751
- function a(f, l) {
759
+ function o(f, l) {
752
760
  return f[l + 1] === "!" && f[l + 2] === "N" && f[l + 3] === "O" && f[l + 4] === "T" && f[l + 5] === "A" && f[l + 6] === "T" && f[l + 7] === "I" && f[l + 8] === "O" && f[l + 9] === "N";
753
761
  }
754
762
  function s(f) {
@@ -767,10 +775,10 @@ var Br = { 2: (r) => {
767
775
  else {
768
776
  if (m && c(f, l)) {
769
777
  let p, y;
770
- l += 7, [p, y, l] = o(f, l + 1), y.indexOf("&") === -1 && (g[s(p)] = { regx: RegExp(`&${p};`, "g"), val: y });
778
+ l += 7, [p, y, l] = a(f, l + 1), y.indexOf("&") === -1 && (g[s(p)] = { regx: RegExp(`&${p};`, "g"), val: y });
771
779
  } else if (m && i(f, l)) l += 8;
772
780
  else if (m && h(f, l)) l += 8;
773
- else if (m && a(f, l)) l += 9;
781
+ else if (m && o(f, l)) l += 9;
774
782
  else {
775
783
  if (!u) throw new Error("Invalid DOCTYPE");
776
784
  w = !0;
@@ -782,18 +790,18 @@ var Br = { 2: (r) => {
782
790
  return { entities: g, i: l };
783
791
  };
784
792
  }, 63: (r, e) => {
785
- const t = { preserveOrder: !1, attributeNamePrefix: "@_", attributesGroupName: !1, textNodeName: "#text", ignoreAttributes: !0, removeNSPrefix: !1, allowBooleanAttributes: !1, parseTagValue: !0, parseAttributeValue: !1, trimValues: !0, cdataPropName: !1, numberParseOptions: { hex: !0, leadingZeros: !0, eNotation: !0 }, tagValueProcessor: function(n, o) {
786
- return o;
787
- }, attributeValueProcessor: function(n, o) {
788
- return o;
789
- }, stopNodes: [], alwaysCreateTextNode: !1, isArray: () => !1, commentPropName: !1, unpairedTags: [], processEntities: !0, htmlEntities: !1, ignoreDeclaration: !1, ignorePiTags: !1, transformTagName: !1, transformAttributeName: !1, updateTag: function(n, o, u) {
793
+ const t = { preserveOrder: !1, attributeNamePrefix: "@_", attributesGroupName: !1, textNodeName: "#text", ignoreAttributes: !0, removeNSPrefix: !1, allowBooleanAttributes: !1, parseTagValue: !0, parseAttributeValue: !1, trimValues: !0, cdataPropName: !1, numberParseOptions: { hex: !0, leadingZeros: !0, eNotation: !0 }, tagValueProcessor: function(n, a) {
794
+ return a;
795
+ }, attributeValueProcessor: function(n, a) {
796
+ return a;
797
+ }, stopNodes: [], alwaysCreateTextNode: !1, isArray: () => !1, commentPropName: !1, unpairedTags: [], processEntities: !0, htmlEntities: !1, ignoreDeclaration: !1, ignorePiTags: !1, transformTagName: !1, transformAttributeName: !1, updateTag: function(n, a, u) {
790
798
  return n;
791
799
  } };
792
800
  e.buildOptions = function(n) {
793
801
  return Object.assign({}, t, n);
794
802
  }, e.defaultOptions = t;
795
803
  }, 299: (r, e, t) => {
796
- const n = t(705), o = t(365), u = t(193), c = t(494), i = t(118);
804
+ const n = t(705), a = t(365), u = t(193), c = t(494), i = t(118);
797
805
  function h(b) {
798
806
  const E = Object.keys(b);
799
807
  for (let x = 0; x < E.length; x++) {
@@ -801,7 +809,7 @@ var Br = { 2: (r) => {
801
809
  this.lastEntities[T] = { regex: new RegExp("&" + T + ";", "g"), val: b[T] };
802
810
  }
803
811
  }
804
- function a(b, E, x, T, O, I, C) {
812
+ function o(b, E, x, T, O, I, C) {
805
813
  if (b !== void 0 && (this.options.trimValues && !T && (b = b.trim()), b.length > 0)) {
806
814
  C || (b = this.replaceEntitiesValue(b));
807
815
  const P = this.options.tagValueProcessor(E, b, x, O, I);
@@ -841,7 +849,7 @@ var Br = { 2: (r) => {
841
849
  const g = function(b) {
842
850
  b = b.replace(/\r\n?/g, `
843
851
  `);
844
- const E = new o("!xml");
852
+ const E = new a("!xml");
845
853
  let x = E, T = "", O = "";
846
854
  for (let I = 0; I < b.length; I++) if (b[I] === "<") if (b[I + 1] === "/") {
847
855
  const C = p(b, ">", I, "Closing Tag is not closed.");
@@ -859,7 +867,7 @@ var Br = { 2: (r) => {
859
867
  let C = y(b, I, !1, "?>");
860
868
  if (!C) throw new Error("Pi Tag is not closed.");
861
869
  if (T = this.saveTextToParentTag(T, x, O), !(this.options.ignoreDeclaration && C.tagName === "?xml" || this.options.ignorePiTags)) {
862
- const P = new o(C.tagName);
870
+ const P = new a(C.tagName);
863
871
  P.add(this.options.textNodeName, ""), C.tagName !== C.tagExp && C.attrExpPresent && (P[":@"] = this.buildAttributesMap(C.tagExp, O, C.tagName)), this.addChild(x, P, O);
864
872
  }
865
873
  I = C.closeIndex + 1;
@@ -893,15 +901,15 @@ var Br = { 2: (r) => {
893
901
  if (!L) throw new Error(`Unexpected end of ${F}`);
894
902
  I = L.i, $ = L.tagContent;
895
903
  }
896
- const z = new o(P);
904
+ const z = new a(P);
897
905
  P !== S && j && (z[":@"] = this.buildAttributesMap(S, O, P)), $ && ($ = this.parseTextData($, P, O, !0, j, !0, !0)), O = O.substr(0, O.lastIndexOf(".")), z.add(this.options.textNodeName, $), this.addChild(x, z, O);
898
906
  } else {
899
907
  if (S.length > 0 && S.lastIndexOf("/") === S.length - 1) {
900
908
  P[P.length - 1] === "/" ? (P = P.substr(0, P.length - 1), O = O.substr(0, O.length - 1), S = P) : S = S.substr(0, S.length - 1), this.options.transformTagName && (P = this.options.transformTagName(P));
901
- const $ = new o(P);
909
+ const $ = new a(P);
902
910
  P !== S && j && ($[":@"] = this.buildAttributesMap(S, O, P)), this.addChild(x, $, O), O = O.substr(0, O.lastIndexOf("."));
903
911
  } else {
904
- const $ = new o(P);
912
+ const $ = new a(P);
905
913
  this.tagsNodeStack.push(x), P !== S && j && ($[":@"] = this.buildAttributesMap(S, O, P)), this.addChild(x, $, O), x = $;
906
914
  }
907
915
  T = "", I = V;
@@ -998,11 +1006,11 @@ var Br = { 2: (r) => {
998
1006
  }
999
1007
  r.exports = class {
1000
1008
  constructor(b) {
1001
- this.options = b, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "¢" }, pound: { regex: /&(pound|#163);/g, val: "£" }, yen: { regex: /&(yen|#165);/g, val: "¥" }, euro: { regex: /&(euro|#8364);/g, val: "€" }, copyright: { regex: /&(copy|#169);/g, val: "©" }, reg: { regex: /&(reg|#174);/g, val: "®" }, inr: { regex: /&(inr|#8377);/g, val: "₹" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (E, x) => String.fromCharCode(Number.parseInt(x, 10)) }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (E, x) => String.fromCharCode(Number.parseInt(x, 16)) } }, this.addExternalEntities = h, this.parseXml = g, this.parseTextData = a, this.resolveNameSpace = s, this.buildAttributesMap = l, this.isItStopNode = v, this.replaceEntitiesValue = m, this.readStopNodeData = A, this.saveTextToParentTag = w, this.addChild = d, this.ignoreAttributesFn = i(this.options.ignoreAttributes);
1009
+ this.options = b, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "¢" }, pound: { regex: /&(pound|#163);/g, val: "£" }, yen: { regex: /&(yen|#165);/g, val: "¥" }, euro: { regex: /&(euro|#8364);/g, val: "€" }, copyright: { regex: /&(copy|#169);/g, val: "©" }, reg: { regex: /&(reg|#174);/g, val: "®" }, inr: { regex: /&(inr|#8377);/g, val: "₹" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (E, x) => String.fromCharCode(Number.parseInt(x, 10)) }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (E, x) => String.fromCharCode(Number.parseInt(x, 16)) } }, this.addExternalEntities = h, this.parseXml = g, this.parseTextData = o, this.resolveNameSpace = s, this.buildAttributesMap = l, this.isItStopNode = v, this.replaceEntitiesValue = m, this.readStopNodeData = A, this.saveTextToParentTag = w, this.addChild = d, this.ignoreAttributesFn = i(this.options.ignoreAttributes);
1002
1010
  }
1003
1011
  };
1004
1012
  }, 338: (r, e, t) => {
1005
- const { buildOptions: n } = t(63), o = t(299), { prettify: u } = t(728), c = t(31);
1013
+ const { buildOptions: n } = t(63), a = t(299), { prettify: u } = t(728), c = t(31);
1006
1014
  r.exports = class {
1007
1015
  constructor(i) {
1008
1016
  this.externalEntities = {}, this.options = n(i);
@@ -1017,9 +1025,9 @@ var Br = { 2: (r) => {
1017
1025
  const f = c.validate(i, h);
1018
1026
  if (f !== !0) throw Error(`${f.err.msg}:${f.err.line}:${f.err.col}`);
1019
1027
  }
1020
- const a = new o(this.options);
1021
- a.addExternalEntities(this.externalEntities);
1022
- const s = a.parseXml(i);
1028
+ const o = new a(this.options);
1029
+ o.addExternalEntities(this.externalEntities);
1030
+ const s = o.parseXml(i);
1023
1031
  return this.options.preserveOrder || s === void 0 ? s : u(s, this.options);
1024
1032
  }
1025
1033
  addEntity(i, h) {
@@ -1031,42 +1039,42 @@ var Br = { 2: (r) => {
1031
1039
  };
1032
1040
  }, 728: (r, e) => {
1033
1041
  function t(c, i, h) {
1034
- let a;
1042
+ let o;
1035
1043
  const s = {};
1036
1044
  for (let f = 0; f < c.length; f++) {
1037
1045
  const l = c[f], g = n(l);
1038
1046
  let d = "";
1039
- if (d = h === void 0 ? g : h + "." + g, g === i.textNodeName) a === void 0 ? a = l[g] : a += "" + l[g];
1047
+ if (d = h === void 0 ? g : h + "." + g, g === i.textNodeName) o === void 0 ? o = l[g] : o += "" + l[g];
1040
1048
  else {
1041
1049
  if (g === void 0) continue;
1042
1050
  if (l[g]) {
1043
1051
  let m = t(l[g], i, d);
1044
1052
  const w = u(m, i);
1045
- l[":@"] ? o(m, l[":@"], d, i) : Object.keys(m).length !== 1 || m[i.textNodeName] === void 0 || i.alwaysCreateTextNode ? Object.keys(m).length === 0 && (i.alwaysCreateTextNode ? m[i.textNodeName] = "" : m = "") : m = m[i.textNodeName], s[g] !== void 0 && s.hasOwnProperty(g) ? (Array.isArray(s[g]) || (s[g] = [s[g]]), s[g].push(m)) : i.isArray(g, d, w) ? s[g] = [m] : s[g] = m;
1053
+ l[":@"] ? a(m, l[":@"], d, i) : Object.keys(m).length !== 1 || m[i.textNodeName] === void 0 || i.alwaysCreateTextNode ? Object.keys(m).length === 0 && (i.alwaysCreateTextNode ? m[i.textNodeName] = "" : m = "") : m = m[i.textNodeName], s[g] !== void 0 && s.hasOwnProperty(g) ? (Array.isArray(s[g]) || (s[g] = [s[g]]), s[g].push(m)) : i.isArray(g, d, w) ? s[g] = [m] : s[g] = m;
1046
1054
  }
1047
1055
  }
1048
1056
  }
1049
- return typeof a == "string" ? a.length > 0 && (s[i.textNodeName] = a) : a !== void 0 && (s[i.textNodeName] = a), s;
1057
+ return typeof o == "string" ? o.length > 0 && (s[i.textNodeName] = o) : o !== void 0 && (s[i.textNodeName] = o), s;
1050
1058
  }
1051
1059
  function n(c) {
1052
1060
  const i = Object.keys(c);
1053
1061
  for (let h = 0; h < i.length; h++) {
1054
- const a = i[h];
1055
- if (a !== ":@") return a;
1062
+ const o = i[h];
1063
+ if (o !== ":@") return o;
1056
1064
  }
1057
1065
  }
1058
- function o(c, i, h, a) {
1066
+ function a(c, i, h, o) {
1059
1067
  if (i) {
1060
1068
  const s = Object.keys(i), f = s.length;
1061
1069
  for (let l = 0; l < f; l++) {
1062
1070
  const g = s[l];
1063
- a.isArray(g, h + "." + g, !0, !0) ? c[g] = [i[g]] : c[g] = i[g];
1071
+ o.isArray(g, h + "." + g, !0, !0) ? c[g] = [i[g]] : c[g] = i[g];
1064
1072
  }
1065
1073
  }
1066
1074
  }
1067
1075
  function u(c, i) {
1068
- const { textNodeName: h } = i, a = Object.keys(c).length;
1069
- return a === 0 || !(a !== 1 || !c[h] && typeof c[h] != "boolean" && c[h] !== 0);
1076
+ const { textNodeName: h } = i, o = Object.keys(c).length;
1077
+ return o === 0 || !(o !== 1 || !c[h] && typeof c[h] != "boolean" && c[h] !== 0);
1070
1078
  }
1071
1079
  e.prettify = function(c, i) {
1072
1080
  return t(c, i);
@@ -1094,8 +1102,8 @@ var Br = { 2: (r) => {
1094
1102
  };
1095
1103
  }, 542: (r, e, t) => {
1096
1104
  (function() {
1097
- var n = t(298), o = t(526).utf8, u = t(135), c = t(526).bin, i = function(h, a) {
1098
- h.constructor == String ? h = a && a.encoding === "binary" ? c.stringToBytes(h) : o.stringToBytes(h) : u(h) ? h = Array.prototype.slice.call(h, 0) : Array.isArray(h) || h.constructor === Uint8Array || (h = h.toString());
1105
+ var n = t(298), a = t(526).utf8, u = t(135), c = t(526).bin, i = function(h, o) {
1106
+ h.constructor == String ? h = o && o.encoding === "binary" ? c.stringToBytes(h) : a.stringToBytes(h) : u(h) ? h = Array.prototype.slice.call(h, 0) : Array.isArray(h) || h.constructor === Uint8Array || (h = h.toString());
1099
1107
  for (var s = n.bytesToWords(h), f = 8 * h.length, l = 1732584193, g = -271733879, d = -1732584194, m = 271733878, w = 0; w < s.length; w++) s[w] = 16711935 & (s[w] << 8 | s[w] >>> 24) | 4278255360 & (s[w] << 24 | s[w] >>> 8);
1100
1108
  s[f >>> 5] |= 128 << f % 32, s[14 + (f + 64 >>> 9 << 4)] = f;
1101
1109
  var v = i._ff, p = i._gg, y = i._hh, A = i._ii;
@@ -1105,37 +1113,37 @@ var Br = { 2: (r) => {
1105
1113
  }
1106
1114
  return n.endian([l, g, d, m]);
1107
1115
  };
1108
- i._ff = function(h, a, s, f, l, g, d) {
1109
- var m = h + (a & s | ~a & f) + (l >>> 0) + d;
1110
- return (m << g | m >>> 32 - g) + a;
1111
- }, i._gg = function(h, a, s, f, l, g, d) {
1112
- var m = h + (a & f | s & ~f) + (l >>> 0) + d;
1113
- return (m << g | m >>> 32 - g) + a;
1114
- }, i._hh = function(h, a, s, f, l, g, d) {
1115
- var m = h + (a ^ s ^ f) + (l >>> 0) + d;
1116
- return (m << g | m >>> 32 - g) + a;
1117
- }, i._ii = function(h, a, s, f, l, g, d) {
1118
- var m = h + (s ^ (a | ~f)) + (l >>> 0) + d;
1119
- return (m << g | m >>> 32 - g) + a;
1120
- }, i._blocksize = 16, i._digestsize = 16, r.exports = function(h, a) {
1116
+ i._ff = function(h, o, s, f, l, g, d) {
1117
+ var m = h + (o & s | ~o & f) + (l >>> 0) + d;
1118
+ return (m << g | m >>> 32 - g) + o;
1119
+ }, i._gg = function(h, o, s, f, l, g, d) {
1120
+ var m = h + (o & f | s & ~f) + (l >>> 0) + d;
1121
+ return (m << g | m >>> 32 - g) + o;
1122
+ }, i._hh = function(h, o, s, f, l, g, d) {
1123
+ var m = h + (o ^ s ^ f) + (l >>> 0) + d;
1124
+ return (m << g | m >>> 32 - g) + o;
1125
+ }, i._ii = function(h, o, s, f, l, g, d) {
1126
+ var m = h + (s ^ (o | ~f)) + (l >>> 0) + d;
1127
+ return (m << g | m >>> 32 - g) + o;
1128
+ }, i._blocksize = 16, i._digestsize = 16, r.exports = function(h, o) {
1121
1129
  if (h == null) throw new Error("Illegal argument " + h);
1122
- var s = n.wordsToBytes(i(h, a));
1123
- return a && a.asBytes ? s : a && a.asString ? c.bytesToString(s) : n.bytesToHex(s);
1130
+ var s = n.wordsToBytes(i(h, o));
1131
+ return o && o.asBytes ? s : o && o.asString ? c.bytesToString(s) : n.bytesToHex(s);
1124
1132
  };
1125
1133
  })();
1126
1134
  }, 285: (r, e, t) => {
1127
1135
  var n = t(2);
1128
1136
  r.exports = function(v) {
1129
1137
  return v ? (v.substr(0, 2) === "{}" && (v = "\\{\\}" + v.substr(2)), w((function(p) {
1130
- return p.split("\\\\").join(o).split("\\{").join(u).split("\\}").join(c).split("\\,").join(i).split("\\.").join(h);
1138
+ return p.split("\\\\").join(a).split("\\{").join(u).split("\\}").join(c).split("\\,").join(i).split("\\.").join(h);
1131
1139
  })(v), !0).map(s)) : [];
1132
1140
  };
1133
- var o = "\0SLASH" + Math.random() + "\0", u = "\0OPEN" + Math.random() + "\0", c = "\0CLOSE" + Math.random() + "\0", i = "\0COMMA" + Math.random() + "\0", h = "\0PERIOD" + Math.random() + "\0";
1134
- function a(v) {
1141
+ var a = "\0SLASH" + Math.random() + "\0", u = "\0OPEN" + Math.random() + "\0", c = "\0CLOSE" + Math.random() + "\0", i = "\0COMMA" + Math.random() + "\0", h = "\0PERIOD" + Math.random() + "\0";
1142
+ function o(v) {
1135
1143
  return parseInt(v, 10) == v ? parseInt(v, 10) : v.charCodeAt(0);
1136
1144
  }
1137
1145
  function s(v) {
1138
- return v.split(o).join("\\").split(u).join("{").split(c).join("}").split(i).join(",").split(h).join(".");
1146
+ return v.split(a).join("\\").split(u).join("{").split(c).join("}").split(i).join(",").split(h).join(".");
1139
1147
  }
1140
1148
  function f(v) {
1141
1149
  if (!v) return [""];
@@ -1174,7 +1182,7 @@ var Br = { 2: (r) => {
1174
1182
  return A.pre + T[0] + wr;
1175
1183
  }));
1176
1184
  if (P) {
1177
- var S = a(T[0]), j = a(T[1]), V = Math.max(T[0].length, T[1].length), _ = T.length == 3 ? Math.abs(a(T[2])) : 1, $ = d;
1185
+ var S = o(T[0]), j = o(T[1]), V = Math.max(T[0].length, T[1].length), _ = T.length == 3 ? Math.abs(o(T[2])) : 1, $ = d;
1178
1186
  j < S && (_ *= -1, $ = m);
1179
1187
  var z = T.some(g);
1180
1188
  O = [];
@@ -1199,14 +1207,14 @@ var Br = { 2: (r) => {
1199
1207
  return y;
1200
1208
  }
1201
1209
  }, 829: (r) => {
1202
- function e(a) {
1210
+ function e(o) {
1203
1211
  return e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(s) {
1204
1212
  return typeof s;
1205
1213
  } : function(s) {
1206
1214
  return s && typeof Symbol == "function" && s.constructor === Symbol && s !== Symbol.prototype ? "symbol" : typeof s;
1207
- }, e(a);
1215
+ }, e(o);
1208
1216
  }
1209
- function t(a) {
1217
+ function t(o) {
1210
1218
  var s = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
1211
1219
  return t = function(f) {
1212
1220
  if (f === null || (l = f, Function.toString.call(l).indexOf("[native code]") === -1)) return f;
@@ -1219,10 +1227,10 @@ var Br = { 2: (r) => {
1219
1227
  function g() {
1220
1228
  return n(f, arguments, u(this).constructor);
1221
1229
  }
1222
- return g.prototype = Object.create(f.prototype, { constructor: { value: g, enumerable: !1, writable: !0, configurable: !0 } }), o(g, f);
1223
- }, t(a);
1230
+ return g.prototype = Object.create(f.prototype, { constructor: { value: g, enumerable: !1, writable: !0, configurable: !0 } }), a(g, f);
1231
+ }, t(o);
1224
1232
  }
1225
- function n(a, s, f) {
1233
+ function n(o, s, f) {
1226
1234
  return n = (function() {
1227
1235
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
1228
1236
  if (typeof Proxy == "function") return !0;
@@ -1236,20 +1244,20 @@ var Br = { 2: (r) => {
1236
1244
  var m = [null];
1237
1245
  m.push.apply(m, g);
1238
1246
  var w = new (Function.bind.apply(l, m))();
1239
- return d && o(w, d.prototype), w;
1247
+ return d && a(w, d.prototype), w;
1240
1248
  }, n.apply(null, arguments);
1241
1249
  }
1242
- function o(a, s) {
1243
- return o = Object.setPrototypeOf || function(f, l) {
1250
+ function a(o, s) {
1251
+ return a = Object.setPrototypeOf || function(f, l) {
1244
1252
  return f.__proto__ = l, f;
1245
- }, o(a, s);
1253
+ }, a(o, s);
1246
1254
  }
1247
- function u(a) {
1255
+ function u(o) {
1248
1256
  return u = Object.setPrototypeOf ? Object.getPrototypeOf : function(s) {
1249
1257
  return s.__proto__ || Object.getPrototypeOf(s);
1250
- }, u(a);
1258
+ }, u(o);
1251
1259
  }
1252
- var c = (function(a) {
1260
+ var c = (function(o) {
1253
1261
  function s(f) {
1254
1262
  var l;
1255
1263
  return (function(g, d) {
@@ -1263,37 +1271,37 @@ var Br = { 2: (r) => {
1263
1271
  }
1264
1272
  return (function(f, l) {
1265
1273
  if (typeof l != "function" && l !== null) throw new TypeError("Super expression must either be null or a function");
1266
- f.prototype = Object.create(l && l.prototype, { constructor: { value: f, writable: !0, configurable: !0 } }), l && o(f, l);
1267
- })(s, a), s;
1274
+ f.prototype = Object.create(l && l.prototype, { constructor: { value: f, writable: !0, configurable: !0 } }), l && a(f, l);
1275
+ })(s, o), s;
1268
1276
  })(t(Error));
1269
- function i(a, s) {
1277
+ function i(o, s) {
1270
1278
  for (var f = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : function() {
1271
1279
  }, l = s.split("."), g = l.length, d = function(v) {
1272
1280
  var p = l[v];
1273
- if (!a) return { v: void 0 };
1281
+ if (!o) return { v: void 0 };
1274
1282
  if (p === "+") {
1275
- if (Array.isArray(a)) return { v: a.map((function(A, N) {
1283
+ if (Array.isArray(o)) return { v: o.map((function(A, N) {
1276
1284
  var b = l.slice(v + 1);
1277
- return b.length > 0 ? i(A, b.join("."), f) : f(a, N, l, v);
1285
+ return b.length > 0 ? i(A, b.join("."), f) : f(o, N, l, v);
1278
1286
  })) };
1279
1287
  var y = l.slice(0, v).join(".");
1280
1288
  throw new Error("Object at wildcard (".concat(y, ") is not an array"));
1281
1289
  }
1282
- a = f(a, p, l, v);
1290
+ o = f(o, p, l, v);
1283
1291
  }, m = 0; m < g; m++) {
1284
1292
  var w = d(m);
1285
1293
  if (e(w) === "object") return w.v;
1286
1294
  }
1287
- return a;
1295
+ return o;
1288
1296
  }
1289
- function h(a, s) {
1290
- return a.length === s + 1;
1297
+ function h(o, s) {
1298
+ return o.length === s + 1;
1291
1299
  }
1292
- r.exports = { set: function(a, s, f) {
1293
- if (e(a) != "object" || a === null || s === void 0) return a;
1294
- if (typeof s == "number") return a[s] = f, a[s];
1300
+ r.exports = { set: function(o, s, f) {
1301
+ if (e(o) != "object" || o === null || s === void 0) return o;
1302
+ if (typeof s == "number") return o[s] = f, o[s];
1295
1303
  try {
1296
- return i(a, s, (function(l, g, d, m) {
1304
+ return i(o, s, (function(l, g, d, m) {
1297
1305
  if (l === Reflect.getPrototypeOf({})) throw new c("Attempting to mutate Object.prototype");
1298
1306
  if (!l[g]) {
1299
1307
  var w = Number.isInteger(Number(d[m + 1])), v = d[m + 1] === "+";
@@ -1303,39 +1311,39 @@ var Br = { 2: (r) => {
1303
1311
  }));
1304
1312
  } catch (l) {
1305
1313
  if (l instanceof c) throw l;
1306
- return a;
1314
+ return o;
1307
1315
  }
1308
- }, get: function(a, s) {
1309
- if (e(a) != "object" || a === null || s === void 0) return a;
1310
- if (typeof s == "number") return a[s];
1316
+ }, get: function(o, s) {
1317
+ if (e(o) != "object" || o === null || s === void 0) return o;
1318
+ if (typeof s == "number") return o[s];
1311
1319
  try {
1312
- return i(a, s, (function(f, l) {
1320
+ return i(o, s, (function(f, l) {
1313
1321
  return f[l];
1314
1322
  }));
1315
1323
  } catch {
1316
- return a;
1324
+ return o;
1317
1325
  }
1318
- }, has: function(a, s) {
1326
+ }, has: function(o, s) {
1319
1327
  var f = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
1320
- if (e(a) != "object" || a === null || s === void 0) return !1;
1321
- if (typeof s == "number") return s in a;
1328
+ if (e(o) != "object" || o === null || s === void 0) return !1;
1329
+ if (typeof s == "number") return s in o;
1322
1330
  try {
1323
1331
  var l = !1;
1324
- return i(a, s, (function(g, d, m, w) {
1332
+ return i(o, s, (function(g, d, m, w) {
1325
1333
  if (!h(m, w)) return g && g[d];
1326
1334
  l = f.own ? g.hasOwnProperty(d) : d in g;
1327
1335
  })), l;
1328
1336
  } catch {
1329
1337
  return !1;
1330
1338
  }
1331
- }, hasOwn: function(a, s, f) {
1332
- return this.has(a, s, f || { own: !0 });
1333
- }, isIn: function(a, s, f) {
1339
+ }, hasOwn: function(o, s, f) {
1340
+ return this.has(o, s, f || { own: !0 });
1341
+ }, isIn: function(o, s, f) {
1334
1342
  var l = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
1335
- if (e(a) != "object" || a === null || s === void 0) return !1;
1343
+ if (e(o) != "object" || o === null || s === void 0) return !1;
1336
1344
  try {
1337
1345
  var g = !1, d = !1;
1338
- return i(a, s, (function(m, w, v, p) {
1346
+ return i(o, s, (function(m, w, v, p) {
1339
1347
  return g = g || m === f || !!m && m[w] === f, d = h(v, p) && e(m) === "object" && w in m, m && m[w];
1340
1348
  })), l.validPath ? g && d : g;
1341
1349
  } catch {
@@ -1343,72 +1351,72 @@ var Br = { 2: (r) => {
1343
1351
  }
1344
1352
  }, ObjectPrototypeMutationError: c };
1345
1353
  }, 47: (r, e, t) => {
1346
- var n = t(410), o = function(a) {
1347
- return typeof a == "string";
1354
+ var n = t(410), a = function(o) {
1355
+ return typeof o == "string";
1348
1356
  };
1349
- function u(a, s) {
1350
- for (var f = [], l = 0; l < a.length; l++) {
1351
- var g = a[l];
1357
+ function u(o, s) {
1358
+ for (var f = [], l = 0; l < o.length; l++) {
1359
+ var g = o[l];
1352
1360
  g && g !== "." && (g === ".." ? f.length && f[f.length - 1] !== ".." ? f.pop() : s && f.push("..") : f.push(g));
1353
1361
  }
1354
1362
  return f;
1355
1363
  }
1356
1364
  var c = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/, i = {};
1357
- function h(a) {
1358
- return c.exec(a).slice(1);
1365
+ function h(o) {
1366
+ return c.exec(o).slice(1);
1359
1367
  }
1360
1368
  i.resolve = function() {
1361
- for (var a = "", s = !1, f = arguments.length - 1; f >= -1 && !s; f--) {
1369
+ for (var o = "", s = !1, f = arguments.length - 1; f >= -1 && !s; f--) {
1362
1370
  var l = f >= 0 ? arguments[f] : oe.cwd();
1363
- if (!o(l)) throw new TypeError("Arguments to path.resolve must be strings");
1364
- l && (a = l + "/" + a, s = l.charAt(0) === "/");
1365
- }
1366
- return (s ? "/" : "") + (a = u(a.split("/"), !s).join("/")) || ".";
1367
- }, i.normalize = function(a) {
1368
- var s = i.isAbsolute(a), f = a.substr(-1) === "/";
1369
- return (a = u(a.split("/"), !s).join("/")) || s || (a = "."), a && f && (a += "/"), (s ? "/" : "") + a;
1370
- }, i.isAbsolute = function(a) {
1371
- return a.charAt(0) === "/";
1371
+ if (!a(l)) throw new TypeError("Arguments to path.resolve must be strings");
1372
+ l && (o = l + "/" + o, s = l.charAt(0) === "/");
1373
+ }
1374
+ return (s ? "/" : "") + (o = u(o.split("/"), !s).join("/")) || ".";
1375
+ }, i.normalize = function(o) {
1376
+ var s = i.isAbsolute(o), f = o.substr(-1) === "/";
1377
+ return (o = u(o.split("/"), !s).join("/")) || s || (o = "."), o && f && (o += "/"), (s ? "/" : "") + o;
1378
+ }, i.isAbsolute = function(o) {
1379
+ return o.charAt(0) === "/";
1372
1380
  }, i.join = function() {
1373
- for (var a = "", s = 0; s < arguments.length; s++) {
1381
+ for (var o = "", s = 0; s < arguments.length; s++) {
1374
1382
  var f = arguments[s];
1375
- if (!o(f)) throw new TypeError("Arguments to path.join must be strings");
1376
- f && (a += a ? "/" + f : f);
1383
+ if (!a(f)) throw new TypeError("Arguments to path.join must be strings");
1384
+ f && (o += o ? "/" + f : f);
1377
1385
  }
1378
- return i.normalize(a);
1379
- }, i.relative = function(a, s) {
1386
+ return i.normalize(o);
1387
+ }, i.relative = function(o, s) {
1380
1388
  function f(p) {
1381
1389
  for (var y = 0; y < p.length && p[y] === ""; y++) ;
1382
1390
  for (var A = p.length - 1; A >= 0 && p[A] === ""; A--) ;
1383
1391
  return y > A ? [] : p.slice(y, A + 1);
1384
1392
  }
1385
- a = i.resolve(a).substr(1), s = i.resolve(s).substr(1);
1386
- for (var l = f(a.split("/")), g = f(s.split("/")), d = Math.min(l.length, g.length), m = d, w = 0; w < d; w++) if (l[w] !== g[w]) {
1393
+ o = i.resolve(o).substr(1), s = i.resolve(s).substr(1);
1394
+ for (var l = f(o.split("/")), g = f(s.split("/")), d = Math.min(l.length, g.length), m = d, w = 0; w < d; w++) if (l[w] !== g[w]) {
1387
1395
  m = w;
1388
1396
  break;
1389
1397
  }
1390
1398
  var v = [];
1391
1399
  for (w = m; w < l.length; w++) v.push("..");
1392
1400
  return (v = v.concat(g.slice(m))).join("/");
1393
- }, i._makeLong = function(a) {
1394
- return a;
1395
- }, i.dirname = function(a) {
1396
- var s = h(a), f = s[0], l = s[1];
1401
+ }, i._makeLong = function(o) {
1402
+ return o;
1403
+ }, i.dirname = function(o) {
1404
+ var s = h(o), f = s[0], l = s[1];
1397
1405
  return f || l ? (l && (l = l.substr(0, l.length - 1)), f + l) : ".";
1398
- }, i.basename = function(a, s) {
1399
- var f = h(a)[2];
1406
+ }, i.basename = function(o, s) {
1407
+ var f = h(o)[2];
1400
1408
  return s && f.substr(-1 * s.length) === s && (f = f.substr(0, f.length - s.length)), f;
1401
- }, i.extname = function(a) {
1402
- return h(a)[3];
1403
- }, i.format = function(a) {
1404
- if (!n.isObject(a)) throw new TypeError("Parameter 'pathObject' must be an object, not " + typeof a);
1405
- var s = a.root || "";
1406
- if (!o(s)) throw new TypeError("'pathObject.root' must be a string or undefined, not " + typeof a.root);
1407
- return (a.dir ? a.dir + i.sep : "") + (a.base || "");
1408
- }, i.parse = function(a) {
1409
- if (!o(a)) throw new TypeError("Parameter 'pathString' must be a string, not " + typeof a);
1410
- var s = h(a);
1411
- if (!s || s.length !== 4) throw new TypeError("Invalid path '" + a + "'");
1409
+ }, i.extname = function(o) {
1410
+ return h(o)[3];
1411
+ }, i.format = function(o) {
1412
+ if (!n.isObject(o)) throw new TypeError("Parameter 'pathObject' must be an object, not " + typeof o);
1413
+ var s = o.root || "";
1414
+ if (!a(s)) throw new TypeError("'pathObject.root' must be a string or undefined, not " + typeof o.root);
1415
+ return (o.dir ? o.dir + i.sep : "") + (o.base || "");
1416
+ }, i.parse = function(o) {
1417
+ if (!a(o)) throw new TypeError("Parameter 'pathString' must be a string, not " + typeof o);
1418
+ var s = h(o);
1419
+ if (!s || s.length !== 4) throw new TypeError("Invalid path '" + o + "'");
1412
1420
  return s[1] = s[1] || "", s[2] = s[2] || "", s[3] = s[3] || "", { root: s[0], dir: s[0] + s[1].slice(0, s[1].length - 1), base: s[2], ext: s[3], name: s[2].slice(0, s[2].length - s[3].length) };
1413
1421
  }, i.sep = "/", i.delimiter = ":", r.exports = i;
1414
1422
  }, 647: (r, e) => {
@@ -1420,7 +1428,7 @@ var Br = { 2: (r) => {
1420
1428
  return null;
1421
1429
  }
1422
1430
  }
1423
- function o(u) {
1431
+ function a(u) {
1424
1432
  try {
1425
1433
  return encodeURIComponent(u);
1426
1434
  } catch {
@@ -1429,16 +1437,16 @@ var Br = { 2: (r) => {
1429
1437
  }
1430
1438
  e.stringify = function(u, c) {
1431
1439
  c = c || "";
1432
- var i, h, a = [];
1440
+ var i, h, o = [];
1433
1441
  for (h in typeof c != "string" && (c = "?"), u) if (t.call(u, h)) {
1434
- if ((i = u[h]) || i != null && !isNaN(i) || (i = ""), h = o(h), i = o(i), h === null || i === null) continue;
1435
- a.push(h + "=" + i);
1442
+ if ((i = u[h]) || i != null && !isNaN(i) || (i = ""), h = a(h), i = a(i), h === null || i === null) continue;
1443
+ o.push(h + "=" + i);
1436
1444
  }
1437
- return a.length ? c + a.join("&") : "";
1445
+ return o.length ? c + o.join("&") : "";
1438
1446
  }, e.parse = function(u) {
1439
1447
  for (var c, i = /([^=?#&]+)=?([^&]*)/g, h = {}; c = i.exec(u); ) {
1440
- var a = n(c[1]), s = n(c[2]);
1441
- a === null || s === null || a in h || (h[a] = s);
1448
+ var o = n(c[1]), s = n(c[2]);
1449
+ o === null || s === null || o in h || (h[o] = s);
1442
1450
  }
1443
1451
  return h;
1444
1452
  };
@@ -1465,30 +1473,30 @@ var Br = { 2: (r) => {
1465
1473
  const e = /^[-+]?0x[a-fA-F0-9]+$/, t = /^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;
1466
1474
  !Number.parseInt && window.parseInt && (Number.parseInt = window.parseInt), !Number.parseFloat && window.parseFloat && (Number.parseFloat = window.parseFloat);
1467
1475
  const n = { hex: !0, leadingZeros: !0, decimalPoint: ".", eNotation: !0 };
1468
- r.exports = function(o) {
1476
+ r.exports = function(a) {
1469
1477
  let u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1470
- if (u = Object.assign({}, n, u), !o || typeof o != "string") return o;
1471
- let c = o.trim();
1472
- if (u.skipLike !== void 0 && u.skipLike.test(c)) return o;
1478
+ if (u = Object.assign({}, n, u), !a || typeof a != "string") return a;
1479
+ let c = a.trim();
1480
+ if (u.skipLike !== void 0 && u.skipLike.test(c)) return a;
1473
1481
  if (u.hex && e.test(c)) return Number.parseInt(c, 16);
1474
1482
  {
1475
1483
  const h = t.exec(c);
1476
1484
  if (h) {
1477
- const a = h[1], s = h[2];
1485
+ const o = h[1], s = h[2];
1478
1486
  let f = ((i = h[3]) && i.indexOf(".") !== -1 && ((i = i.replace(/0+$/, "")) === "." ? i = "0" : i[0] === "." ? i = "0" + i : i[i.length - 1] === "." && (i = i.substr(0, i.length - 1))), i);
1479
1487
  const l = h[4] || h[6];
1480
- if (!u.leadingZeros && s.length > 0 && a && c[2] !== "." || !u.leadingZeros && s.length > 0 && !a && c[1] !== ".") return o;
1488
+ if (!u.leadingZeros && s.length > 0 && o && c[2] !== "." || !u.leadingZeros && s.length > 0 && !o && c[1] !== ".") return a;
1481
1489
  {
1482
1490
  const g = Number(c), d = "" + g;
1483
- return d.search(/[eE]/) !== -1 || l ? u.eNotation ? g : o : c.indexOf(".") !== -1 ? d === "0" && f === "" || d === f || a && d === "-" + f ? g : o : s ? f === d || a + f === d ? g : o : c === d || c === a + d ? g : o;
1491
+ return d.search(/[eE]/) !== -1 || l ? u.eNotation ? g : a : c.indexOf(".") !== -1 ? d === "0" && f === "" || d === f || o && d === "-" + f ? g : a : s ? f === d || o + f === d ? g : a : c === d || c === o + d ? g : a;
1484
1492
  }
1485
1493
  }
1486
- return o;
1494
+ return a;
1487
1495
  }
1488
1496
  var i;
1489
1497
  };
1490
1498
  }, 737: (r, e, t) => {
1491
- var n = t(670), o = t(647), u = /^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/, c = /[\n\r\t]/g, i = /^[A-Za-z][A-Za-z0-9+-.]*:\/\//, h = /:\d+$/, a = /^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i, s = /^[a-zA-Z]:/;
1499
+ var n = t(670), a = t(647), u = /^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/, c = /[\n\r\t]/g, i = /^[A-Za-z][A-Za-z0-9+-.]*:\/\//, h = /:\d+$/, o = /^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i, s = /^[a-zA-Z]:/;
1492
1500
  function f(p) {
1493
1501
  return (p || "").toString().replace(u, "");
1494
1502
  }
@@ -1510,13 +1518,13 @@ var Br = { 2: (r) => {
1510
1518
  }
1511
1519
  function w(p, y) {
1512
1520
  p = (p = f(p)).replace(c, ""), y = y || {};
1513
- var A, N = a.exec(p), b = N[1] ? N[1].toLowerCase() : "", E = !!N[2], x = !!N[3], T = 0;
1521
+ var A, N = o.exec(p), b = N[1] ? N[1].toLowerCase() : "", E = !!N[2], x = !!N[3], T = 0;
1514
1522
  return E ? x ? (A = N[2] + N[3] + N[4], T = N[2].length + N[3].length) : (A = N[2] + N[4], T = N[2].length) : x ? (A = N[3] + N[4], T = N[3].length) : A = N[4], b === "file:" ? T >= 2 && (A = A.slice(2)) : m(b) ? A = N[4] : b ? E && (A = A.slice(2)) : T >= 2 && m(y.protocol) && (A = N[4]), { protocol: b, slashes: E || m(b), slashesCount: T, rest: A };
1515
1523
  }
1516
1524
  function v(p, y, A) {
1517
1525
  if (p = (p = f(p)).replace(c, ""), !(this instanceof v)) return new v(p, y, A);
1518
1526
  var N, b, E, x, T, O, I = l.slice(), C = typeof y, P = this, F = 0;
1519
- for (C !== "object" && C !== "string" && (A = y, y = null), A && typeof A != "function" && (A = o.parse), N = !(b = w(p || "", y = d(y))).protocol && !b.slashes, P.slashes = b.slashes || N && y.slashes, P.protocol = b.protocol || y.protocol || "", p = b.rest, (b.protocol === "file:" && (b.slashesCount !== 2 || s.test(p)) || !b.slashes && (b.protocol || b.slashesCount < 2 || !m(P.protocol))) && (I[3] = [/(.*)/, "pathname"]); F < I.length; F++) typeof (x = I[F]) != "function" ? (E = x[0], O = x[1], E != E ? P[O] = p : typeof E == "string" ? ~(T = E === "@" ? p.lastIndexOf(E) : p.indexOf(E)) && (typeof x[2] == "number" ? (P[O] = p.slice(0, T), p = p.slice(T + x[2])) : (P[O] = p.slice(T), p = p.slice(0, T))) : (T = E.exec(p)) && (P[O] = T[1], p = p.slice(0, T.index)), P[O] = P[O] || N && x[3] && y[O] || "", x[4] && (P[O] = P[O].toLowerCase())) : p = x(p, P);
1527
+ for (C !== "object" && C !== "string" && (A = y, y = null), A && typeof A != "function" && (A = a.parse), N = !(b = w(p || "", y = d(y))).protocol && !b.slashes, P.slashes = b.slashes || N && y.slashes, P.protocol = b.protocol || y.protocol || "", p = b.rest, (b.protocol === "file:" && (b.slashesCount !== 2 || s.test(p)) || !b.slashes && (b.protocol || b.slashesCount < 2 || !m(P.protocol))) && (I[3] = [/(.*)/, "pathname"]); F < I.length; F++) typeof (x = I[F]) != "function" ? (E = x[0], O = x[1], E != E ? P[O] = p : typeof E == "string" ? ~(T = E === "@" ? p.lastIndexOf(E) : p.indexOf(E)) && (typeof x[2] == "number" ? (P[O] = p.slice(0, T), p = p.slice(T + x[2])) : (P[O] = p.slice(T), p = p.slice(0, T))) : (T = E.exec(p)) && (P[O] = T[1], p = p.slice(0, T.index)), P[O] = P[O] || N && x[3] && y[O] || "", x[4] && (P[O] = P[O].toLowerCase())) : p = x(p, P);
1520
1528
  A && (P.query = A(P.query)), N && y.slashes && P.pathname.charAt(0) !== "/" && (P.pathname !== "" || y.pathname !== "") && (P.pathname = (function(S, j) {
1521
1529
  if (S === "") return j;
1522
1530
  for (var V = (j || "/").split("/").slice(0, -1).concat(S.split("/")), _ = V.length, $ = V[_ - 1], z = !1, L = 0; _--; ) V[_] === "." ? V.splice(_, 1) : V[_] === ".." ? (V.splice(_, 1), L++) : L && (_ === 0 && (z = !0), V.splice(_, 1), L--);
@@ -1527,7 +1535,7 @@ var Br = { 2: (r) => {
1527
1535
  var N = this;
1528
1536
  switch (p) {
1529
1537
  case "query":
1530
- typeof y == "string" && y.length && (y = (A || o.parse)(y)), N[p] = y;
1538
+ typeof y == "string" && y.length && (y = (A || a.parse)(y)), N[p] = y;
1531
1539
  break;
1532
1540
  case "port":
1533
1541
  N[p] = y, n(y, N.protocol) ? y && (N.host = N.hostname + ":" + y) : (N.host = N.hostname, N[p] = "");
@@ -1562,12 +1570,12 @@ var Br = { 2: (r) => {
1562
1570
  }
1563
1571
  return N.auth = N.password ? N.username + ":" + N.password : N.username, N.origin = N.protocol !== "file:" && m(N.protocol) && N.host ? N.protocol + "//" + N.host : "null", N.href = N.toString(), N;
1564
1572
  }, toString: function(p) {
1565
- p && typeof p == "function" || (p = o.stringify);
1573
+ p && typeof p == "function" || (p = a.stringify);
1566
1574
  var y, A = this, N = A.host, b = A.protocol;
1567
1575
  b && b.charAt(b.length - 1) !== ":" && (b += ":");
1568
1576
  var E = b + (A.protocol && A.slashes || m(A.protocol) ? "//" : "");
1569
1577
  return A.username ? (E += A.username, A.password && (E += ":" + A.password), E += "@") : A.password ? (E += ":" + A.password, E += "@") : A.protocol !== "file:" && m(A.protocol) && !N && A.pathname !== "/" && (E += "@"), (N[N.length - 1] === ":" || h.test(A.hostname) && !A.port) && (N += ":"), E += N + A.pathname, (y = typeof A.query == "object" ? p(A.query) : A.query) && (E += y.charAt(0) !== "?" ? "?" + y : y), A.hash && (E += A.hash), E;
1570
- } }, v.extractProtocol = w, v.location = d, v.trimLeft = f, v.qs = o, r.exports = v;
1578
+ } }, v.extractProtocol = w, v.location = d, v.trimLeft = f, v.qs = a, r.exports = v;
1571
1579
  }, 410: () => {
1572
1580
  }, 388: () => {
1573
1581
  }, 805: () => {
@@ -1598,20 +1606,20 @@ function Qe(r) {
1598
1606
  }
1599
1607
  class K extends Error {
1600
1608
  constructor(e, t) {
1601
- const n = [...arguments], { options: o, shortMessage: u } = (function(i) {
1602
- let h, a = "";
1609
+ const n = [...arguments], { options: a, shortMessage: u } = (function(i) {
1610
+ let h, o = "";
1603
1611
  if (i.length === 0) h = {};
1604
- else if (Qe(i[0])) h = { cause: i[0] }, a = i.slice(1).join(" ") || "";
1605
- else if (i[0] && typeof i[0] == "object") h = Object.assign({}, i[0]), a = i.slice(1).join(" ") || "";
1612
+ else if (Qe(i[0])) h = { cause: i[0] }, o = i.slice(1).join(" ") || "";
1613
+ else if (i[0] && typeof i[0] == "object") h = Object.assign({}, i[0]), o = i.slice(1).join(" ") || "";
1606
1614
  else {
1607
1615
  if (typeof i[0] != "string") throw new Error("Invalid arguments passed to Layerr");
1608
- h = {}, a = a = i.join(" ") || "";
1616
+ h = {}, o = o = i.join(" ") || "";
1609
1617
  }
1610
- return { options: h, shortMessage: a };
1618
+ return { options: h, shortMessage: o };
1611
1619
  })(n);
1612
1620
  let c = u;
1613
- if (o.cause && (c = `${c}: ${o.cause.message}`), super(c), this.message = c, o.name && typeof o.name == "string" ? this.name = o.name : this.name = "Layerr", o.cause && Object.defineProperty(this, "_cause", { value: o.cause }), Object.defineProperty(this, "_info", { value: {} }), o.info && typeof o.info == "object" && Object.assign(this._info, o.info), Error.captureStackTrace) {
1614
- const i = o.constructorOpt || this.constructor;
1621
+ if (a.cause && (c = `${c}: ${a.cause.message}`), super(c), this.message = c, a.name && typeof a.name == "string" ? this.name = a.name : this.name = "Layerr", a.cause && Object.defineProperty(this, "_cause", { value: a.cause }), Object.defineProperty(this, "_info", { value: {} }), a.info && typeof a.info == "object" && Object.assign(this._info, a.info), Error.captureStackTrace) {
1622
+ const i = a.constructorOpt || this.constructor;
1615
1623
  Error.captureStackTrace(this, i);
1616
1624
  }
1617
1625
  }
@@ -1659,7 +1667,7 @@ function U() {
1659
1667
  for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) e[t] = arguments[t];
1660
1668
  return (function() {
1661
1669
  return (function(n) {
1662
- var o = [];
1670
+ var a = [];
1663
1671
  if (n.length === 0) return "";
1664
1672
  if (typeof n[0] != "string") throw new TypeError("Url must be a string. Received " + n[0]);
1665
1673
  if (n[0].match(/^[^/:]+:\/*$/) && n.length > 1) {
@@ -1670,20 +1678,20 @@ function U() {
1670
1678
  for (var c = 0; c < n.length; c++) {
1671
1679
  var i = n[c];
1672
1680
  if (typeof i != "string") throw new TypeError("Url must be a string. Received " + i);
1673
- i !== "" && (c > 0 && (i = i.replace(/^[\/]+/, "")), i = c < n.length - 1 ? i.replace(/[\/]+$/, "") : i.replace(/[\/]+$/, "/"), o.push(i));
1681
+ i !== "" && (c > 0 && (i = i.replace(/^[\/]+/, "")), i = c < n.length - 1 ? i.replace(/[\/]+$/, "") : i.replace(/[\/]+$/, "/"), a.push(i));
1674
1682
  }
1675
- var h = o.join("/"), a = (h = h.replace(/\/(\?|&|#[^!])/g, "$1")).split("?");
1676
- return a.shift() + (a.length > 0 ? "?" : "") + a.join("&");
1683
+ var h = a.join("/"), o = (h = h.replace(/\/(\?|&|#[^!])/g, "$1")).split("?");
1684
+ return o.shift() + (o.length > 0 ? "?" : "") + o.join("&");
1677
1685
  })(typeof arguments[0] == "object" ? arguments[0] : [].slice.call(arguments));
1678
- })(e.reduce(((n, o, u) => ((u === 0 || o !== "/" || o === "/" && n[n.length - 1] !== "/") && n.push(o), n)), []));
1686
+ })(e.reduce(((n, a, u) => ((u === 0 || a !== "/" || a === "/" && n[n.length - 1] !== "/") && n.push(a), n)), []));
1679
1687
  }
1680
- var zr = R(542), he = R.n(zr);
1688
+ var zr = R(542), fe = R.n(zr);
1681
1689
  const Hr = "abcdef0123456789";
1682
1690
  function wt(r, e) {
1683
- const t = r.url.replace("//", ""), n = t.indexOf("/") == -1 ? "/" : t.slice(t.indexOf("/")), o = r.method ? r.method.toUpperCase() : "GET", u = !!/(^|,)\s*auth\s*($|,)/.test(e.qop) && "auth", c = `00000000${e.nc}`.slice(-8), i = (function(l, g, d, m, w, v, p) {
1684
- const y = p || he()(`${g}:${d}:${m}`);
1685
- return l && l.toLowerCase() === "md5-sess" ? he()(`${y}:${w}:${v}`) : y;
1686
- })(e.algorithm, e.username, e.realm, e.password, e.nonce, e.cnonce, e.ha1), h = he()(`${o}:${n}`), a = u ? he()(`${i}:${e.nonce}:${c}:${e.cnonce}:${u}:${h}`) : he()(`${i}:${e.nonce}:${h}`), s = { username: e.username, realm: e.realm, nonce: e.nonce, uri: n, qop: u, response: a, nc: c, cnonce: e.cnonce, algorithm: e.algorithm, opaque: e.opaque }, f = [];
1691
+ const t = r.url.replace("//", ""), n = t.indexOf("/") == -1 ? "/" : t.slice(t.indexOf("/")), a = r.method ? r.method.toUpperCase() : "GET", u = !!/(^|,)\s*auth\s*($|,)/.test(e.qop) && "auth", c = `00000000${e.nc}`.slice(-8), i = (function(l, g, d, m, w, v, p) {
1692
+ const y = p || fe()(`${g}:${d}:${m}`);
1693
+ return l && l.toLowerCase() === "md5-sess" ? fe()(`${y}:${w}:${v}`) : y;
1694
+ })(e.algorithm, e.username, e.realm, e.password, e.nonce, e.cnonce, e.ha1), h = fe()(`${a}:${n}`), o = u ? fe()(`${i}:${e.nonce}:${c}:${e.cnonce}:${u}:${h}`) : fe()(`${i}:${e.nonce}:${h}`), s = { username: e.username, realm: e.realm, nonce: e.nonce, uri: n, qop: u, response: o, nc: c, cnonce: e.cnonce, algorithm: e.algorithm, opaque: e.opaque }, f = [];
1687
1695
  for (const l in s) s[l] && (l === "qop" || l === "nc" || l === "algorithm" ? f.push(`${l}=${s[l]}`) : f.push(`${l}="${s[l]}"`));
1688
1696
  return `Digest ${f.join(", ")}`;
1689
1697
  }
@@ -1704,7 +1712,7 @@ let J = (function(r) {
1704
1712
  })({}), ne = (function(r) {
1705
1713
  return r.DataTypeNoLength = "data-type-no-length", r.InvalidAuthType = "invalid-auth-type", r.InvalidOutputFormat = "invalid-output-format", r.LinkUnsupportedAuthType = "link-unsupported-auth", r.InvalidUpdateRange = "invalid-update-range", r.NotSupported = "not-supported", r;
1706
1714
  })({});
1707
- function tr(r, e, t, n, o) {
1715
+ function tr(r, e, t, n, a) {
1708
1716
  switch (r.authType) {
1709
1717
  case J.Auto:
1710
1718
  e && t && (r.headers.Authorization = xt(e, t));
@@ -1712,7 +1720,7 @@ function tr(r, e, t, n, o) {
1712
1720
  case J.Digest:
1713
1721
  r.digest = /* @__PURE__ */ (function(c, i, h) {
1714
1722
  return { username: c, password: i, ha1: h, nc: 0, algorithm: "md5", hasDigestAuth: !1 };
1715
- })(e, t, o);
1723
+ })(e, t, a);
1716
1724
  break;
1717
1725
  case J.None:
1718
1726
  break;
@@ -1755,8 +1763,8 @@ class Dr {
1755
1763
  }
1756
1764
  execute(e) {
1757
1765
  const t = this.get(e) || Qr;
1758
- for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), u = 1; u < n; u++) o[u - 1] = arguments[u];
1759
- return t(...o);
1766
+ for (var n = arguments.length, a = new Array(n > 1 ? n - 1 : 0), u = 1; u < n; u++) a[u - 1] = arguments[u];
1767
+ return t(...a);
1760
1768
  }
1761
1769
  get(e) {
1762
1770
  const t = this.configuration.registry[e];
@@ -1769,14 +1777,14 @@ class Dr {
1769
1777
  throw new Error(`Failed handling request which resulted in an empty method: Invalid empty-action specified: ${this.getEmptyAction}`);
1770
1778
  }
1771
1779
  return (function() {
1772
- for (var n = arguments.length, o = new Array(n), u = 0; u < n; u++) o[u] = arguments[u];
1773
- if (o.length === 0) throw new Error("Failed creating sequence: No functions provided");
1780
+ for (var n = arguments.length, a = new Array(n), u = 0; u < n; u++) a[u] = arguments[u];
1781
+ if (a.length === 0) throw new Error("Failed creating sequence: No functions provided");
1774
1782
  return function() {
1775
1783
  for (var c = arguments.length, i = new Array(c), h = 0; h < c; h++) i[h] = arguments[h];
1776
- let a = i;
1784
+ let o = i;
1777
1785
  const s = this;
1778
- for (; o.length > 0; ) a = [o.shift().apply(s, a)];
1779
- return a[0];
1786
+ for (; a.length > 0; ) o = [a.shift().apply(s, o)];
1787
+ return o[0];
1780
1788
  };
1781
1789
  })(...t.methods);
1782
1790
  }
@@ -1785,10 +1793,10 @@ class Dr {
1785
1793
  }
1786
1794
  patch(e, t) {
1787
1795
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
1788
- const { chain: o = !1 } = n;
1796
+ const { chain: a = !1 } = n;
1789
1797
  if (this.configuration.registry[e] && this.configuration.registry[e].final) throw new Error(`Failed patching '${e}': Method marked as being final`);
1790
1798
  if (typeof t != "function") throw new Error(`Failed patching '${e}': Provided method is not a function`);
1791
- if (o) this.configuration.registry[e] ? this.configuration.registry[e].methods.push(t) : this.configuration.registry[e] = je(t);
1799
+ if (a) this.configuration.registry[e] ? this.configuration.registry[e].methods.push(t) : this.configuration.registry[e] = je(t);
1792
1800
  else if (this.isPatched(e)) {
1793
1801
  const { original: u } = this.configuration.registry[e];
1794
1802
  this.configuration.registry[e] = Object.assign(je(t), { original: u });
@@ -1797,11 +1805,11 @@ class Dr {
1797
1805
  }
1798
1806
  patchInline(e, t) {
1799
1807
  this.isPatched(e) || this.patch(e, t);
1800
- for (var n = arguments.length, o = new Array(n > 2 ? n - 2 : 0), u = 2; u < n; u++) o[u - 2] = arguments[u];
1801
- return this.execute(e, ...o);
1808
+ for (var n = arguments.length, a = new Array(n > 2 ? n - 2 : 0), u = 2; u < n; u++) a[u - 2] = arguments[u];
1809
+ return this.execute(e, ...a);
1802
1810
  }
1803
1811
  plugin(e) {
1804
- for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++) n[o - 1] = arguments[o];
1812
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++) n[a - 1] = arguments[a];
1805
1813
  return n.forEach(((u) => {
1806
1814
  this.patch(e, u, { chain: !0 });
1807
1815
  })), this;
@@ -1831,9 +1839,9 @@ function Ae(r) {
1831
1839
  }
1832
1840
  function Et() {
1833
1841
  for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) e[t] = arguments[t];
1834
- let n = null, o = [...e];
1835
- for (; o.length > 0; ) {
1836
- const u = o.shift();
1842
+ let n = null, a = [...e];
1843
+ for (; a.length > 0; ) {
1844
+ const u = a.shift();
1837
1845
  n = n ? nr(n, u) : Ae(u);
1838
1846
  }
1839
1847
  return n;
@@ -1853,10 +1861,10 @@ function De() {
1853
1861
  for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) e[t] = arguments[t];
1854
1862
  if (e.length === 0) return {};
1855
1863
  const n = {};
1856
- return e.reduce(((o, u) => (Object.keys(u).forEach(((c) => {
1864
+ return e.reduce(((a, u) => (Object.keys(u).forEach(((c) => {
1857
1865
  const i = c.toLowerCase();
1858
- n.hasOwnProperty(i) ? o[n[i]] = u[c] : (n[i] = c, o[c] = u[c]);
1859
- })), o)), {});
1866
+ n.hasOwnProperty(i) ? a[n[i]] = u[c] : (n[i] = c, a[c] = u[c]);
1867
+ })), a)), {});
1860
1868
  }
1861
1869
  R(805);
1862
1870
  const tn = typeof ArrayBuffer == "function", { toString: rn } = Object.prototype;
@@ -1883,21 +1891,21 @@ const or = it((function(r) {
1883
1891
  const e = r._digest;
1884
1892
  return delete r._digest, e.hasDigestAuth && (r = Et(r, { headers: { Authorization: wt(r, e) } })), et(Te(r), (function(t) {
1885
1893
  let n = !1;
1886
- return o = function(c) {
1894
+ return a = function(c) {
1887
1895
  return n ? c : t;
1888
1896
  }, (u = (function() {
1889
1897
  if (t.status == 401) return e.hasDigestAuth = (function(c, i) {
1890
1898
  if (!Dt(c)) return !1;
1891
1899
  const h = /([a-z0-9_-]+)=(?:"([^"]+)"|([a-z0-9_-]+))/gi;
1892
1900
  for (; ; ) {
1893
- const a = c.headers && c.headers.get("www-authenticate") || "", s = h.exec(a);
1901
+ const o = c.headers && c.headers.get("www-authenticate") || "", s = h.exec(o);
1894
1902
  if (!s) break;
1895
1903
  i[s[1]] = s[2] || s[3];
1896
1904
  }
1897
1905
  return i.nc += 1, i.cnonce = (function() {
1898
- let a = "";
1899
- for (let s = 0; s < 32; ++s) a = `${a}${Hr[Math.floor(16 * Math.random())]}`;
1900
- return a;
1906
+ let o = "";
1907
+ for (let s = 0; s < 32; ++s) o = `${o}${Hr[Math.floor(16 * Math.random())]}`;
1908
+ return o;
1901
1909
  })(), !0;
1902
1910
  })(t, e), (function() {
1903
1911
  if (e.hasDigestAuth) return et(Te(r = Et(r, { headers: { Authorization: wt(r, e) } })), (function(c) {
@@ -1905,8 +1913,8 @@ const or = it((function(r) {
1905
1913
  }));
1906
1914
  })();
1907
1915
  e.nc++;
1908
- })()) && u.then ? u.then(o) : o(u);
1909
- var o, u;
1916
+ })()) && u.then ? u.then(a) : a(u);
1917
+ var a, u;
1910
1918
  }));
1911
1919
  })), nn = it((function(r, e) {
1912
1920
  return et(Te(r), (function(t) {
@@ -1922,9 +1930,9 @@ function q(r, e, t) {
1922
1930
  function Te(r) {
1923
1931
  const e = rr();
1924
1932
  return e.patchInline("request", ((t) => e.patchInline("fetch", Jr, t.url, (function(n) {
1925
- let o = {};
1933
+ let a = {};
1926
1934
  const u = { method: n.method };
1927
- if (n.headers && (o = De(o, n.headers)), n.data !== void 0) {
1935
+ if (n.headers && (a = De(a, n.headers)), n.data !== void 0) {
1928
1936
  const [c, i] = (function(h) {
1929
1937
  if (typeof h == "string") return [h, {}];
1930
1938
  if (ir(h)) return [h, {}];
@@ -1932,20 +1940,20 @@ function Te(r) {
1932
1940
  if (h && typeof h == "object") return [JSON.stringify(h), { "content-type": "application/json" }];
1933
1941
  throw new Error("Unable to convert request body: Unexpected body type: " + typeof h);
1934
1942
  })(n.data);
1935
- u.body = c, o = De(o, i);
1943
+ u.body = c, a = De(a, i);
1936
1944
  }
1937
- return n.signal && (u.signal = n.signal), n.withCredentials && (u.credentials = "include"), u.headers = o, u;
1945
+ return n.signal && (u.signal = n.signal), n.withCredentials && (u.credentials = "include"), u.headers = a, u;
1938
1946
  })(t))), r);
1939
1947
  }
1940
1948
  var sn = R(285);
1941
1949
  const Oe = (r) => {
1942
1950
  if (typeof r != "string") throw new TypeError("invalid pattern");
1943
1951
  if (r.length > 65536) throw new TypeError("pattern is too long");
1944
- }, on = { "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", !0], "[:alpha:]": ["\\p{L}\\p{Nl}", !0], "[:ascii:]": ["\\x00-\\x7f", !1], "[:blank:]": ["\\p{Zs}\\t", !0], "[:cntrl:]": ["\\p{Cc}", !0], "[:digit:]": ["\\p{Nd}", !0], "[:graph:]": ["\\p{Z}\\p{C}", !0, !0], "[:lower:]": ["\\p{Ll}", !0], "[:print:]": ["\\p{C}", !0], "[:punct:]": ["\\p{P}", !0], "[:space:]": ["\\p{Z}\\t\\r\\n\\v\\f", !0], "[:upper:]": ["\\p{Lu}", !0], "[:word:]": ["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}", !0], "[:xdigit:]": ["A-Fa-f0-9", !1] }, fe = (r) => r.replace(/[[\]\\-]/g, "\\$&"), At = (r) => r.join(""), an = (r, e) => {
1952
+ }, on = { "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", !0], "[:alpha:]": ["\\p{L}\\p{Nl}", !0], "[:ascii:]": ["\\x00-\\x7f", !1], "[:blank:]": ["\\p{Zs}\\t", !0], "[:cntrl:]": ["\\p{Cc}", !0], "[:digit:]": ["\\p{Nd}", !0], "[:graph:]": ["\\p{Z}\\p{C}", !0, !0], "[:lower:]": ["\\p{Ll}", !0], "[:print:]": ["\\p{C}", !0], "[:punct:]": ["\\p{P}", !0], "[:space:]": ["\\p{Z}\\t\\r\\n\\v\\f", !0], "[:upper:]": ["\\p{Lu}", !0], "[:word:]": ["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}", !0], "[:xdigit:]": ["A-Fa-f0-9", !1] }, pe = (r) => r.replace(/[[\]\\-]/g, "\\$&"), At = (r) => r.join(""), an = (r, e) => {
1945
1953
  const t = e;
1946
1954
  if (r.charAt(t) !== "[") throw new Error("not in a brace expression");
1947
- const n = [], o = [];
1948
- let u = t + 1, c = !1, i = !1, h = !1, a = !1, s = t, f = "";
1955
+ const n = [], a = [];
1956
+ let u = t + 1, c = !1, i = !1, h = !1, o = !1, s = t, f = "";
1949
1957
  e: for (; u < r.length; ) {
1950
1958
  const m = r.charAt(u);
1951
1959
  if (m !== "!" && m !== "^" || u !== t + 1) {
@@ -1957,22 +1965,22 @@ const Oe = (r) => {
1957
1965
  if (m === "[" && !h) {
1958
1966
  for (const [w, [v, p, y]] of Object.entries(on)) if (r.startsWith(w, u)) {
1959
1967
  if (f) return ["$.", !1, r.length - t, !0];
1960
- u += w.length, y ? o.push(v) : n.push(v), i = i || p;
1968
+ u += w.length, y ? a.push(v) : n.push(v), i = i || p;
1961
1969
  continue e;
1962
1970
  }
1963
1971
  }
1964
- h = !1, f ? (m > f ? n.push(fe(f) + "-" + fe(m)) : m === f && n.push(fe(m)), f = "", u++) : r.startsWith("-]", u + 1) ? (n.push(fe(m + "-")), u += 2) : r.startsWith("-", u + 1) ? (f = m, u += 2) : (n.push(fe(m)), u++);
1972
+ h = !1, f ? (m > f ? n.push(pe(f) + "-" + pe(m)) : m === f && n.push(pe(m)), f = "", u++) : r.startsWith("-]", u + 1) ? (n.push(pe(m + "-")), u += 2) : r.startsWith("-", u + 1) ? (f = m, u += 2) : (n.push(pe(m)), u++);
1965
1973
  } else h = !0, u++;
1966
- } else a = !0, u++;
1974
+ } else o = !0, u++;
1967
1975
  }
1968
1976
  if (s < u) return ["", !1, 0, !1];
1969
- if (!n.length && !o.length) return ["$.", !1, r.length - t, !0];
1970
- if (o.length === 0 && n.length === 1 && /^\\?.$/.test(n[0]) && !a)
1977
+ if (!n.length && !a.length) return ["$.", !1, r.length - t, !0];
1978
+ if (a.length === 0 && n.length === 1 && /^\\?.$/.test(n[0]) && !o)
1971
1979
  return [(l = n[0].length === 2 ? n[0].slice(-1) : n[0], l.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&")), !1, s - t, !1];
1972
1980
  var l;
1973
- const g = "[" + (a ? "^" : "") + At(n) + "]", d = "[" + (a ? "" : "^") + At(o) + "]";
1974
- return [n.length && o.length ? "(" + g + "|" + d + ")" : n.length ? g : d, i, s - t, !0];
1975
- }, pe = function(r) {
1981
+ const g = "[" + (o ? "^" : "") + At(n) + "]", d = "[" + (o ? "" : "^") + At(a) + "]";
1982
+ return [n.length && a.length ? "(" + g + "|" + d + ")" : n.length ? g : d, i, s - t, !0];
1983
+ }, ge = function(r) {
1976
1984
  let { windowsPathsNoEscape: e = !1 } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1977
1985
  return e ? r.replace(/\[([^\/\\])\]/g, "$1") : r.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
1978
1986
  }, un = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]), Tt = (r) => un.has(r), Re = "(?!\\.)", ln = /* @__PURE__ */ new Set(["[", "."]), cn = /* @__PURE__ */ new Set(["..", "."]), hn = new Set("().*{}+?[]^$\\!"), ot = "[^/]", Ot = ot + "*?", Ct = ot + "+?";
@@ -2009,9 +2017,9 @@ class Z {
2009
2017
  if (e.type !== "!") continue;
2010
2018
  let t = e, n = t.#t;
2011
2019
  for (; n; ) {
2012
- for (let o = t.#o + 1; !n.type && o < n.#e.length; o++) for (const u of e.#e) {
2020
+ for (let a = t.#o + 1; !n.type && a < n.#e.length; a++) for (const u of e.#e) {
2013
2021
  if (typeof u == "string") throw new Error("string part in extglob AST??");
2014
- u.copyIn(n.#e[o]);
2022
+ u.copyIn(n.#e[a]);
2015
2023
  }
2016
2024
  t = n, n = t.#t;
2017
2025
  }
@@ -2020,9 +2028,9 @@ class Z {
2020
2028
  }
2021
2029
  push() {
2022
2030
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
2023
- for (const o of t) if (o !== "") {
2024
- if (typeof o != "string" && !(o instanceof Z && o.#t === this)) throw new Error("invalid part: " + o);
2025
- this.#e.push(o);
2031
+ for (const a of t) if (a !== "") {
2032
+ if (typeof a != "string" && !(a instanceof Z && a.#t === this)) throw new Error("invalid part: " + a);
2033
+ this.#e.push(a);
2026
2034
  }
2027
2035
  }
2028
2036
  toJSON() {
@@ -2055,7 +2063,7 @@ class Z {
2055
2063
  for (const n of this.#e) t.copyIn(n);
2056
2064
  return t;
2057
2065
  }
2058
- static #c(e, t, n, o) {
2066
+ static #c(e, t, n, a) {
2059
2067
  let u = !1, c = !1, i = -1, h = !1;
2060
2068
  if (t.type === null) {
2061
2069
  let g = n, d = "";
@@ -2063,34 +2071,34 @@ class Z {
2063
2071
  const m = e.charAt(g++);
2064
2072
  if (u || m === "\\") u = !u, d += m;
2065
2073
  else if (c) g === i + 1 ? m !== "^" && m !== "!" || (h = !0) : m !== "]" || g === i + 2 && h || (c = !1), d += m;
2066
- else if (m !== "[") if (o.noext || !Tt(m) || e.charAt(g) !== "(") d += m;
2074
+ else if (m !== "[") if (a.noext || !Tt(m) || e.charAt(g) !== "(") d += m;
2067
2075
  else {
2068
2076
  t.push(d), d = "";
2069
2077
  const w = new Z(m, t);
2070
- g = Z.#c(e, w, g, o), t.push(w);
2078
+ g = Z.#c(e, w, g, a), t.push(w);
2071
2079
  }
2072
2080
  else c = !0, i = g, h = !1, d += m;
2073
2081
  }
2074
2082
  return t.push(d), g;
2075
2083
  }
2076
- let a = n + 1, s = new Z(null, t);
2084
+ let o = n + 1, s = new Z(null, t);
2077
2085
  const f = [];
2078
2086
  let l = "";
2079
- for (; a < e.length; ) {
2080
- const g = e.charAt(a++);
2087
+ for (; o < e.length; ) {
2088
+ const g = e.charAt(o++);
2081
2089
  if (u || g === "\\") u = !u, l += g;
2082
- else if (c) a === i + 1 ? g !== "^" && g !== "!" || (h = !0) : g !== "]" || a === i + 2 && h || (c = !1), l += g;
2083
- else if (g !== "[") if (Tt(g) && e.charAt(a) === "(") {
2090
+ else if (c) o === i + 1 ? g !== "^" && g !== "!" || (h = !0) : g !== "]" || o === i + 2 && h || (c = !1), l += g;
2091
+ else if (g !== "[") if (Tt(g) && e.charAt(o) === "(") {
2084
2092
  s.push(l), l = "";
2085
2093
  const d = new Z(g, s);
2086
- s.push(d), a = Z.#c(e, d, a, o);
2094
+ s.push(d), o = Z.#c(e, d, o, a);
2087
2095
  } else if (g !== "|") {
2088
- if (g === ")") return l === "" && t.#e.length === 0 && (t.#h = !0), s.push(l), l = "", t.push(...f, s), a;
2096
+ if (g === ")") return l === "" && t.#e.length === 0 && (t.#h = !0), s.push(l), l = "", t.push(...f, s), o;
2089
2097
  l += g;
2090
2098
  } else s.push(l), l = "", f.push(s), s = new Z(null, t);
2091
- else c = !0, i = a, h = !1, l += g;
2099
+ else c = !0, i = o, h = !1, l += g;
2092
2100
  }
2093
- return t.type = null, t.#n = void 0, t.#e = [e.substring(n - 1)], a;
2101
+ return t.type = null, t.#n = void 0, t.#e = [e.substring(n - 1)], o;
2094
2102
  }
2095
2103
  static fromGlob(e) {
2096
2104
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
@@ -2099,8 +2107,8 @@ class Z {
2099
2107
  }
2100
2108
  toMMPattern() {
2101
2109
  if (this !== this.#r) return this.#r.toMMPattern();
2102
- const e = this.toString(), [t, n, o, u] = this.toRegExpSource();
2103
- if (!(o || this.#n || this.#s.nocase && !this.#s.nocaseMagicOnly && e.toUpperCase() !== e.toLowerCase())) return n;
2110
+ const e = this.toString(), [t, n, a, u] = this.toRegExpSource();
2111
+ if (!(a || this.#n || this.#s.nocase && !this.#s.nocaseMagicOnly && e.toUpperCase() !== e.toLowerCase())) return n;
2104
2112
  const c = (this.#s.nocase ? "i" : "") + (u ? "u" : "");
2105
2113
  return Object.assign(new RegExp(`^${t}$`, c), { _src: t, _glob: e });
2106
2114
  }
@@ -2110,53 +2118,53 @@ class Z {
2110
2118
  toRegExpSource(e) {
2111
2119
  const t = e ?? !!this.#s.dot;
2112
2120
  if (this.#r === this && this.#p(), !this.type) {
2113
- const h = this.isStart() && this.isEnd(), a = this.#e.map(((l) => {
2121
+ const h = this.isStart() && this.isEnd(), o = this.#e.map(((l) => {
2114
2122
  const [g, d, m, w] = typeof l == "string" ? Z.#g(l, this.#n, h) : l.toRegExpSource(e);
2115
2123
  return this.#n = this.#n || m, this.#i = this.#i || w, g;
2116
2124
  })).join("");
2117
2125
  let s = "";
2118
2126
  if (this.isStart() && typeof this.#e[0] == "string" && (this.#e.length !== 1 || !cn.has(this.#e[0]))) {
2119
- const l = ln, g = t && l.has(a.charAt(0)) || a.startsWith("\\.") && l.has(a.charAt(2)) || a.startsWith("\\.\\.") && l.has(a.charAt(4)), d = !t && !e && l.has(a.charAt(0));
2127
+ const l = ln, g = t && l.has(o.charAt(0)) || o.startsWith("\\.") && l.has(o.charAt(2)) || o.startsWith("\\.\\.") && l.has(o.charAt(4)), d = !t && !e && l.has(o.charAt(0));
2120
2128
  s = g ? "(?!(?:^|/)\\.\\.?(?:$|/))" : d ? Re : "";
2121
2129
  }
2122
2130
  let f = "";
2123
- return this.isEnd() && this.#r.#a && this.#t?.type === "!" && (f = "(?:$|\\/)"), [s + a + f, pe(a), this.#n = !!this.#n, this.#i];
2131
+ return this.isEnd() && this.#r.#a && this.#t?.type === "!" && (f = "(?:$|\\/)"), [s + o + f, ge(o), this.#n = !!this.#n, this.#i];
2124
2132
  }
2125
- const n = this.type === "*" || this.type === "+", o = this.type === "!" ? "(?:(?!(?:" : "(?:";
2133
+ const n = this.type === "*" || this.type === "+", a = this.type === "!" ? "(?:(?!(?:" : "(?:";
2126
2134
  let u = this.#f(t);
2127
2135
  if (this.isStart() && this.isEnd() && !u && this.type !== "!") {
2128
2136
  const h = this.toString();
2129
- return this.#e = [h], this.type = null, this.#n = void 0, [h, pe(this.toString()), !1, !1];
2137
+ return this.#e = [h], this.type = null, this.#n = void 0, [h, ge(this.toString()), !1, !1];
2130
2138
  }
2131
2139
  let c = !n || e || t ? "" : this.#f(!0);
2132
2140
  c === u && (c = ""), c && (u = `(?:${u})(?:${c})*?`);
2133
2141
  let i = "";
2134
- return i = this.type === "!" && this.#h ? (this.isStart() && !t ? Re : "") + Ct : o + u + (this.type === "!" ? "))" + (!this.isStart() || t || e ? "" : Re) + Ot + ")" : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && c ? ")" : this.type === "*" && c ? ")?" : `)${this.type}`), [i, pe(u), this.#n = !!this.#n, this.#i];
2142
+ return i = this.type === "!" && this.#h ? (this.isStart() && !t ? Re : "") + Ct : a + u + (this.type === "!" ? "))" + (!this.isStart() || t || e ? "" : Re) + Ot + ")" : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && c ? ")" : this.type === "*" && c ? ")?" : `)${this.type}`), [i, ge(u), this.#n = !!this.#n, this.#i];
2135
2143
  }
2136
2144
  #f(e) {
2137
2145
  return this.#e.map(((t) => {
2138
2146
  if (typeof t == "string") throw new Error("string type in extglob ast??");
2139
- const [n, o, u, c] = t.toRegExpSource(e);
2147
+ const [n, a, u, c] = t.toRegExpSource(e);
2140
2148
  return this.#i = this.#i || c, n;
2141
2149
  })).filter(((t) => !(this.isStart() && this.isEnd() && !t))).join("|");
2142
2150
  }
2143
2151
  static #g(e, t) {
2144
- let n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], o = !1, u = "", c = !1;
2152
+ let n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], a = !1, u = "", c = !1;
2145
2153
  for (let i = 0; i < e.length; i++) {
2146
2154
  const h = e.charAt(i);
2147
- if (o) o = !1, u += (hn.has(h) ? "\\" : "") + h;
2155
+ if (a) a = !1, u += (hn.has(h) ? "\\" : "") + h;
2148
2156
  else if (h !== "\\") {
2149
2157
  if (h === "[") {
2150
- const [a, s, f, l] = an(e, i);
2158
+ const [o, s, f, l] = an(e, i);
2151
2159
  if (f) {
2152
- u += a, c = c || s, i += f - 1, t = t || l;
2160
+ u += o, c = c || s, i += f - 1, t = t || l;
2153
2161
  continue;
2154
2162
  }
2155
2163
  }
2156
2164
  h !== "*" ? h !== "?" ? u += h.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&") : (u += ot, t = !0) : (u += n && e === "*" ? Ct : Ot, t = !0);
2157
- } else i === e.length - 1 ? u += "\\\\" : o = !0;
2165
+ } else i === e.length - 1 ? u += "\\\\" : a = !0;
2158
2166
  }
2159
- return [u, pe(e), !!t, c];
2167
+ return [u, ge(e), !!t, c];
2160
2168
  }
2161
2169
  }
2162
2170
  const H = function(r, e) {
@@ -2165,19 +2173,19 @@ const H = function(r, e) {
2165
2173
  }, fn = /^\*+([^+@!?\*\[\(]*)$/, pn = (r) => (e) => !e.startsWith(".") && e.endsWith(r), gn = (r) => (e) => e.endsWith(r), dn = (r) => (r = r.toLowerCase(), (e) => !e.startsWith(".") && e.toLowerCase().endsWith(r)), mn = (r) => (r = r.toLowerCase(), (e) => e.toLowerCase().endsWith(r)), bn = /^\*+\.\*+$/, yn = (r) => !r.startsWith(".") && r.includes("."), vn = (r) => r !== "." && r !== ".." && r.includes("."), wn = /^\.\*+$/, Nn = (r) => r !== "." && r !== ".." && r.startsWith("."), xn = /^\*+$/, Pn = (r) => r.length !== 0 && !r.startsWith("."), En = (r) => r.length !== 0 && r !== "." && r !== "..", An = /^\?+([^+@!?\*\[\(]*)?$/, Tn = (r) => {
2166
2174
  let [e, t = ""] = r;
2167
2175
  const n = ar([e]);
2168
- return t ? (t = t.toLowerCase(), (o) => n(o) && o.toLowerCase().endsWith(t)) : n;
2176
+ return t ? (t = t.toLowerCase(), (a) => n(a) && a.toLowerCase().endsWith(t)) : n;
2169
2177
  }, On = (r) => {
2170
2178
  let [e, t = ""] = r;
2171
2179
  const n = ur([e]);
2172
- return t ? (t = t.toLowerCase(), (o) => n(o) && o.toLowerCase().endsWith(t)) : n;
2180
+ return t ? (t = t.toLowerCase(), (a) => n(a) && a.toLowerCase().endsWith(t)) : n;
2173
2181
  }, Cn = (r) => {
2174
2182
  let [e, t = ""] = r;
2175
2183
  const n = ur([e]);
2176
- return t ? (o) => n(o) && o.endsWith(t) : n;
2184
+ return t ? (a) => n(a) && a.endsWith(t) : n;
2177
2185
  }, In = (r) => {
2178
2186
  let [e, t = ""] = r;
2179
2187
  const n = ar([e]);
2180
- return t ? (o) => n(o) && o.endsWith(t) : n;
2188
+ return t ? (a) => n(a) && a.endsWith(t) : n;
2181
2189
  }, ar = (r) => {
2182
2190
  let [e] = r;
2183
2191
  const t = e.length;
@@ -2188,7 +2196,7 @@ const H = function(r, e) {
2188
2196
  return (n) => n.length === t && n !== "." && n !== "..";
2189
2197
  }, lr = typeof oe == "object" && oe ? typeof oe.env == "object" && oe.env && oe.env.__MINIMATCH_TESTING_PLATFORM__ || oe.platform : "posix";
2190
2198
  H.sep = lr === "win32" ? "\\" : "/";
2191
- const D = Symbol("globstar **");
2199
+ const D = /* @__PURE__ */ Symbol("globstar **");
2192
2200
  H.GLOBSTAR = D, H.filter = function(r) {
2193
2201
  let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2194
2202
  return (t) => H(t, r, e);
@@ -2233,8 +2241,8 @@ H.defaults = (r) => {
2233
2241
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2234
2242
  return e.braceExpand(t, Q(r, n));
2235
2243
  }, match: function(t, n) {
2236
- let o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2237
- return e.match(t, n, Q(r, o));
2244
+ let a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2245
+ return e.match(t, n, Q(r, a));
2238
2246
  }, sep: e.sep, GLOBSTAR: D });
2239
2247
  };
2240
2248
  const cr = function(r) {
@@ -2286,22 +2294,22 @@ class Ce {
2286
2294
  }), this.debug(this.pattern, this.globSet);
2287
2295
  const n = this.globSet.map(((u) => this.slashSplit(u)));
2288
2296
  this.globParts = this.preprocess(n), this.debug(this.pattern, this.globParts);
2289
- let o = this.globParts.map(((u, c, i) => {
2297
+ let a = this.globParts.map(((u, c, i) => {
2290
2298
  if (this.isWindows && this.windowsNoMagicRoot) {
2291
- const h = !(u[0] !== "" || u[1] !== "" || u[2] !== "?" && It.test(u[2]) || It.test(u[3])), a = /^[a-z]:/i.test(u[0]);
2299
+ const h = !(u[0] !== "" || u[1] !== "" || u[2] !== "?" && It.test(u[2]) || It.test(u[3])), o = /^[a-z]:/i.test(u[0]);
2292
2300
  if (h) return [...u.slice(0, 4), ...u.slice(4).map(((s) => this.parse(s)))];
2293
- if (a) return [u[0], ...u.slice(1).map(((s) => this.parse(s)))];
2301
+ if (o) return [u[0], ...u.slice(1).map(((s) => this.parse(s)))];
2294
2302
  }
2295
2303
  return u.map(((h) => this.parse(h)));
2296
2304
  }));
2297
- if (this.debug(this.pattern, o), this.set = o.filter(((u) => u.indexOf(!1) === -1)), this.isWindows) for (let u = 0; u < this.set.length; u++) {
2305
+ if (this.debug(this.pattern, a), this.set = a.filter(((u) => u.indexOf(!1) === -1)), this.isWindows) for (let u = 0; u < this.set.length; u++) {
2298
2306
  const c = this.set[u];
2299
2307
  c[0] === "" && c[1] === "" && this.globParts[u][2] === "?" && typeof c[3] == "string" && /^[a-z]:$/i.test(c[3]) && (c[2] = "?");
2300
2308
  }
2301
2309
  this.debug(this.pattern, this.set);
2302
2310
  }
2303
2311
  preprocess(e) {
2304
- if (this.options.noglobstar) for (let n = 0; n < e.length; n++) for (let o = 0; o < e[n].length; o++) e[n][o] === "**" && (e[n][o] = "*");
2312
+ if (this.options.noglobstar) for (let n = 0; n < e.length; n++) for (let a = 0; a < e[n].length; a++) e[n][a] === "**" && (e[n][a] = "*");
2305
2313
  const { optimizationLevel: t = 1 } = this.options;
2306
2314
  return t >= 2 ? (e = this.firstPhasePreProcess(e), e = this.secondPhasePreProcess(e)) : e = t >= 1 ? this.levelOneOptimize(e) : this.adjascentGlobstarOptimize(e), e;
2307
2315
  }
@@ -2309,17 +2317,17 @@ class Ce {
2309
2317
  return e.map(((t) => {
2310
2318
  let n = -1;
2311
2319
  for (; (n = t.indexOf("**", n + 1)) !== -1; ) {
2312
- let o = n;
2313
- for (; t[o + 1] === "**"; ) o++;
2314
- o !== n && t.splice(n, o - n);
2320
+ let a = n;
2321
+ for (; t[a + 1] === "**"; ) a++;
2322
+ a !== n && t.splice(n, a - n);
2315
2323
  }
2316
2324
  return t;
2317
2325
  }));
2318
2326
  }
2319
2327
  levelOneOptimize(e) {
2320
- return e.map(((t) => (t = t.reduce(((n, o) => {
2328
+ return e.map(((t) => (t = t.reduce(((n, a) => {
2321
2329
  const u = n[n.length - 1];
2322
- return o === "**" && u === "**" ? n : o === ".." && u && u !== ".." && u !== "." && u !== "**" ? (n.pop(), n) : (n.push(o), n);
2330
+ return a === "**" && u === "**" ? n : a === ".." && u && u !== ".." && u !== "." && u !== "**" ? (n.pop(), n) : (n.push(a), n);
2323
2331
  }), [])).length === 0 ? [""] : t));
2324
2332
  }
2325
2333
  levelTwoFileOptimize(e) {
@@ -2327,16 +2335,16 @@ class Ce {
2327
2335
  let t = !1;
2328
2336
  do {
2329
2337
  if (t = !1, !this.preserveMultipleSlashes) {
2330
- for (let o = 1; o < e.length - 1; o++) {
2331
- const u = e[o];
2332
- o === 1 && u === "" && e[0] === "" || u !== "." && u !== "" || (t = !0, e.splice(o, 1), o--);
2338
+ for (let a = 1; a < e.length - 1; a++) {
2339
+ const u = e[a];
2340
+ a === 1 && u === "" && e[0] === "" || u !== "." && u !== "" || (t = !0, e.splice(a, 1), a--);
2333
2341
  }
2334
2342
  e[0] !== "." || e.length !== 2 || e[1] !== "." && e[1] !== "" || (t = !0, e.pop());
2335
2343
  }
2336
2344
  let n = 0;
2337
2345
  for (; (n = e.indexOf("..", n + 1)) !== -1; ) {
2338
- const o = e[n - 1];
2339
- o && o !== "." && o !== ".." && o !== "**" && (t = !0, e.splice(n - 1, 2), n -= 2);
2346
+ const a = e[n - 1];
2347
+ a && a !== "." && a !== ".." && a !== "**" && (t = !0, e.splice(n - 1, 2), n -= 2);
2340
2348
  }
2341
2349
  } while (t);
2342
2350
  return e.length === 0 ? [""] : e;
@@ -2346,17 +2354,17 @@ class Ce {
2346
2354
  do {
2347
2355
  t = !1;
2348
2356
  for (let n of e) {
2349
- let o = -1;
2350
- for (; (o = n.indexOf("**", o + 1)) !== -1; ) {
2351
- let c = o;
2357
+ let a = -1;
2358
+ for (; (a = n.indexOf("**", a + 1)) !== -1; ) {
2359
+ let c = a;
2352
2360
  for (; n[c + 1] === "**"; ) c++;
2353
- c > o && n.splice(o + 1, c - o);
2354
- let i = n[o + 1];
2355
- const h = n[o + 2], a = n[o + 3];
2356
- if (i !== ".." || !h || h === "." || h === ".." || !a || a === "." || a === "..") continue;
2357
- t = !0, n.splice(o, 1);
2361
+ c > a && n.splice(a + 1, c - a);
2362
+ let i = n[a + 1];
2363
+ const h = n[a + 2], o = n[a + 3];
2364
+ if (i !== ".." || !h || h === "." || h === ".." || !o || o === "." || o === "..") continue;
2365
+ t = !0, n.splice(a, 1);
2358
2366
  const s = n.slice(0);
2359
- s[o] = "**", e.push(s), o--;
2367
+ s[a] = "**", e.push(s), a--;
2360
2368
  }
2361
2369
  if (!this.preserveMultipleSlashes) {
2362
2370
  for (let c = 1; c < n.length - 1; c++) {
@@ -2380,25 +2388,25 @@ class Ce {
2380
2388
  }
2381
2389
  secondPhasePreProcess(e) {
2382
2390
  for (let t = 0; t < e.length - 1; t++) for (let n = t + 1; n < e.length; n++) {
2383
- const o = this.partsMatch(e[t], e[n], !this.preserveMultipleSlashes);
2384
- if (o) {
2385
- e[t] = [], e[n] = o;
2391
+ const a = this.partsMatch(e[t], e[n], !this.preserveMultipleSlashes);
2392
+ if (a) {
2393
+ e[t] = [], e[n] = a;
2386
2394
  break;
2387
2395
  }
2388
2396
  }
2389
2397
  return e.filter(((t) => t.length));
2390
2398
  }
2391
2399
  partsMatch(e, t) {
2392
- let n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], o = 0, u = 0, c = [], i = "";
2393
- for (; o < e.length && u < t.length; ) if (e[o] === t[u]) c.push(i === "b" ? t[u] : e[o]), o++, u++;
2394
- else if (n && e[o] === "**" && t[u] === e[o + 1]) c.push(e[o]), o++;
2395
- else if (n && t[u] === "**" && e[o] === t[u + 1]) c.push(t[u]), u++;
2396
- else if (e[o] !== "*" || !t[u] || !this.options.dot && t[u].startsWith(".") || t[u] === "**") {
2397
- if (t[u] !== "*" || !e[o] || !this.options.dot && e[o].startsWith(".") || e[o] === "**" || i === "a") return !1;
2398
- i = "b", c.push(t[u]), o++, u++;
2400
+ let n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], a = 0, u = 0, c = [], i = "";
2401
+ for (; a < e.length && u < t.length; ) if (e[a] === t[u]) c.push(i === "b" ? t[u] : e[a]), a++, u++;
2402
+ else if (n && e[a] === "**" && t[u] === e[a + 1]) c.push(e[a]), a++;
2403
+ else if (n && t[u] === "**" && e[a] === t[u + 1]) c.push(t[u]), u++;
2404
+ else if (e[a] !== "*" || !t[u] || !this.options.dot && t[u].startsWith(".") || t[u] === "**") {
2405
+ if (t[u] !== "*" || !e[a] || !this.options.dot && e[a].startsWith(".") || e[a] === "**" || i === "a") return !1;
2406
+ i = "b", c.push(t[u]), a++, u++;
2399
2407
  } else {
2400
2408
  if (i === "b") return !1;
2401
- i = "a", c.push(e[o]), o++, u++;
2409
+ i = "a", c.push(e[a]), a++, u++;
2402
2410
  }
2403
2411
  return e.length === t.length && c;
2404
2412
  }
@@ -2406,12 +2414,12 @@ class Ce {
2406
2414
  if (this.nonegate) return;
2407
2415
  const e = this.pattern;
2408
2416
  let t = !1, n = 0;
2409
- for (let o = 0; o < e.length && e.charAt(o) === "!"; o++) t = !t, n++;
2417
+ for (let a = 0; a < e.length && e.charAt(a) === "!"; a++) t = !t, n++;
2410
2418
  n && (this.pattern = e.slice(n)), this.negate = t;
2411
2419
  }
2412
2420
  matchOne(e, t) {
2413
2421
  let n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2];
2414
- const o = this.options;
2422
+ const a = this.options;
2415
2423
  if (this.isWindows) {
2416
2424
  const m = typeof e[0] == "string" && /^[a-z]:$/i.test(e[0]), w = !m && e[0] === "" && e[1] === "" && e[2] === "?" && /^[a-z]:$/i.test(e[3]), v = typeof t[0] == "string" && /^[a-z]:$/i.test(t[0]), p = w ? 3 : m ? 0 : void 0, y = !v && t[0] === "" && t[1] === "" && t[2] === "?" && typeof t[3] == "string" && /^[a-z]:$/i.test(t[3]) ? 3 : v ? 0 : void 0;
2417
2425
  if (typeof p == "number" && typeof y == "number") {
@@ -2421,22 +2429,22 @@ class Ce {
2421
2429
  }
2422
2430
  const { optimizationLevel: u = 1 } = this.options;
2423
2431
  u >= 2 && (e = this.levelTwoFileOptimize(e)), this.debug("matchOne", this, { file: e, pattern: t }), this.debug("matchOne", e.length, t.length);
2424
- for (var c = 0, i = 0, h = e.length, a = t.length; c < h && i < a; c++, i++) {
2432
+ for (var c = 0, i = 0, h = e.length, o = t.length; c < h && i < o; c++, i++) {
2425
2433
  this.debug("matchOne loop");
2426
2434
  var s = t[i], f = e[c];
2427
2435
  if (this.debug(t, s, f), s === !1) return !1;
2428
2436
  if (s === D) {
2429
2437
  this.debug("GLOBSTAR", [t, s, f]);
2430
2438
  var l = c, g = i + 1;
2431
- if (g === a) {
2432
- for (this.debug("** at the end"); c < h; c++) if (e[c] === "." || e[c] === ".." || !o.dot && e[c].charAt(0) === ".") return !1;
2439
+ if (g === o) {
2440
+ for (this.debug("** at the end"); c < h; c++) if (e[c] === "." || e[c] === ".." || !a.dot && e[c].charAt(0) === ".") return !1;
2433
2441
  return !0;
2434
2442
  }
2435
2443
  for (; l < h; ) {
2436
2444
  var d = e[l];
2437
2445
  if (this.debug(`
2438
2446
  globstar while`, e, l, t, g, d), this.matchOne(e.slice(l), t.slice(g), n)) return this.debug("globstar found match!", l, h, d), !0;
2439
- if (d === "." || d === ".." || !o.dot && d.charAt(0) === ".") {
2447
+ if (d === "." || d === ".." || !a.dot && d.charAt(0) === ".") {
2440
2448
  this.debug("dot detected!", e, l, t, g);
2441
2449
  break;
2442
2450
  }
@@ -2448,9 +2456,9 @@ globstar while`, e, l, t, g, d), this.matchOne(e.slice(l), t.slice(g), n)) retur
2448
2456
  let m;
2449
2457
  if (typeof s == "string" ? (m = f === s, this.debug("string match", s, f, m)) : (m = s.test(f), this.debug("pattern match", s, f, m)), !m) return !1;
2450
2458
  }
2451
- if (c === h && i === a) return !0;
2459
+ if (c === h && i === o) return !0;
2452
2460
  if (c === h) return n;
2453
- if (i === a) return c === h - 1 && e[c] === "";
2461
+ if (i === o) return c === h - 1 && e[c] === "";
2454
2462
  throw new Error("wtf?");
2455
2463
  }
2456
2464
  braceExpand() {
@@ -2461,30 +2469,30 @@ globstar while`, e, l, t, g, d), this.matchOne(e.slice(l), t.slice(g), n)) retur
2461
2469
  const t = this.options;
2462
2470
  if (e === "**") return D;
2463
2471
  if (e === "") return "";
2464
- let n, o = null;
2465
- (n = e.match(xn)) ? o = t.dot ? En : Pn : (n = e.match(fn)) ? o = (t.nocase ? t.dot ? mn : dn : t.dot ? gn : pn)(n[1]) : (n = e.match(An)) ? o = (t.nocase ? t.dot ? On : Tn : t.dot ? Cn : In)(n) : (n = e.match(bn)) ? o = t.dot ? vn : yn : (n = e.match(wn)) && (o = Nn);
2472
+ let n, a = null;
2473
+ (n = e.match(xn)) ? a = t.dot ? En : Pn : (n = e.match(fn)) ? a = (t.nocase ? t.dot ? mn : dn : t.dot ? gn : pn)(n[1]) : (n = e.match(An)) ? a = (t.nocase ? t.dot ? On : Tn : t.dot ? Cn : In)(n) : (n = e.match(bn)) ? a = t.dot ? vn : yn : (n = e.match(wn)) && (a = Nn);
2466
2474
  const u = Z.fromGlob(e, this.options).toMMPattern();
2467
- return o && typeof u == "object" && Reflect.defineProperty(u, "test", { value: o }), u;
2475
+ return a && typeof u == "object" && Reflect.defineProperty(u, "test", { value: a }), u;
2468
2476
  }
2469
2477
  makeRe() {
2470
2478
  if (this.regexp || this.regexp === !1) return this.regexp;
2471
2479
  const e = this.set;
2472
2480
  if (!e.length) return this.regexp = !1, this.regexp;
2473
- const t = this.options, n = t.noglobstar ? "[^/]*?" : t.dot ? "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?" : "(?:(?!(?:\\/|^)\\.).)*?", o = new Set(t.nocase ? ["i"] : []);
2481
+ const t = this.options, n = t.noglobstar ? "[^/]*?" : t.dot ? "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?" : "(?:(?!(?:\\/|^)\\.).)*?", a = new Set(t.nocase ? ["i"] : []);
2474
2482
  let u = e.map(((h) => {
2475
- const a = h.map(((s) => {
2476
- if (s instanceof RegExp) for (const f of s.flags.split("")) o.add(f);
2483
+ const o = h.map(((s) => {
2484
+ if (s instanceof RegExp) for (const f of s.flags.split("")) a.add(f);
2477
2485
  return typeof s == "string" ? s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&") : s === D ? D : s._src;
2478
2486
  }));
2479
- return a.forEach(((s, f) => {
2480
- const l = a[f + 1], g = a[f - 1];
2481
- s === D && g !== D && (g === void 0 ? l !== void 0 && l !== D ? a[f + 1] = "(?:\\/|" + n + "\\/)?" + l : a[f] = n : l === void 0 ? a[f - 1] = g + "(?:\\/|" + n + ")?" : l !== D && (a[f - 1] = g + "(?:\\/|\\/" + n + "\\/)" + l, a[f + 1] = D));
2482
- })), a.filter(((s) => s !== D)).join("/");
2487
+ return o.forEach(((s, f) => {
2488
+ const l = o[f + 1], g = o[f - 1];
2489
+ s === D && g !== D && (g === void 0 ? l !== void 0 && l !== D ? o[f + 1] = "(?:\\/|" + n + "\\/)?" + l : o[f] = n : l === void 0 ? o[f - 1] = g + "(?:\\/|" + n + ")?" : l !== D && (o[f - 1] = g + "(?:\\/|\\/" + n + "\\/)" + l, o[f + 1] = D));
2490
+ })), o.filter(((s) => s !== D)).join("/");
2483
2491
  })).join("|");
2484
2492
  const [c, i] = e.length > 1 ? ["(?:", ")"] : ["", ""];
2485
2493
  u = "^" + c + u + i + "$", this.negate && (u = "^(?!" + u + ").+$");
2486
2494
  try {
2487
- this.regexp = new RegExp(u, [...o].join(""));
2495
+ this.regexp = new RegExp(u, [...a].join(""));
2488
2496
  } catch {
2489
2497
  this.regexp = !1;
2490
2498
  }
@@ -2500,16 +2508,16 @@ globstar while`, e, l, t, g, d), this.matchOne(e.slice(l), t.slice(g), n)) retur
2500
2508
  if (e === "/" && t) return !0;
2501
2509
  const n = this.options;
2502
2510
  this.isWindows && (e = e.split("\\").join("/"));
2503
- const o = this.slashSplit(e);
2504
- this.debug(this.pattern, "split", o);
2511
+ const a = this.slashSplit(e);
2512
+ this.debug(this.pattern, "split", a);
2505
2513
  const u = this.set;
2506
2514
  this.debug(this.pattern, "set", u);
2507
- let c = o[o.length - 1];
2508
- if (!c) for (let i = o.length - 2; !c && i >= 0; i--) c = o[i];
2515
+ let c = a[a.length - 1];
2516
+ if (!c) for (let i = a.length - 2; !c && i >= 0; i--) c = a[i];
2509
2517
  for (let i = 0; i < u.length; i++) {
2510
2518
  const h = u[i];
2511
- let a = o;
2512
- if (n.matchBase && h.length === 1 && (a = [c]), this.matchOne(a, h, t)) return !!n.flipNegate || !this.negate;
2519
+ let o = a;
2520
+ if (n.matchBase && h.length === 1 && (o = [c]), this.matchOne(o, h, t)) return !!n.flipNegate || !this.negate;
2513
2521
  }
2514
2522
  return !n.flipNegate && this.negate;
2515
2523
  }
@@ -2533,13 +2541,13 @@ function ae(r, e) {
2533
2541
  H.AST = Z, H.Minimatch = Ce, H.escape = function(r) {
2534
2542
  let { windowsPathsNoEscape: e = !1 } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2535
2543
  return e ? r.replace(/[?*()[\]]/g, "[$&]") : r.replace(/[?*()[\]\\]/g, "\\$&");
2536
- }, H.unescape = pe;
2544
+ }, H.unescape = ge;
2537
2545
  const Sn = (St = function(r, e, t) {
2538
2546
  let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
2539
- const o = q({ url: U(r.remoteURL, k(e)), method: "COPY", headers: { Destination: U(r.remoteURL, k(t)), Overwrite: n.overwrite === !1 ? "F" : "T", Depth: n.shallow ? "0" : "infinity" } }, r, n);
2547
+ const a = q({ url: U(r.remoteURL, k(e)), method: "COPY", headers: { Destination: U(r.remoteURL, k(t)), Overwrite: n.overwrite === !1 ? "F" : "T", Depth: n.shallow ? "0" : "infinity" } }, r, n);
2540
2548
  return c = function(i) {
2541
2549
  W(r, i);
2542
- }, (u = B(o, r)) && u.then || (u = Promise.resolve(u)), c ? u.then(c) : u;
2550
+ }, (u = B(a, r)) && u.then || (u = Promise.resolve(u)), c ? u.then(c) : u;
2543
2551
  var u, c;
2544
2552
  }, function() {
2545
2553
  for (var r = [], e = 0; e < arguments.length; e++) r[e] = arguments[e];
@@ -2563,20 +2571,20 @@ function ye(r) {
2563
2571
  const { multistatus: n } = t;
2564
2572
  if (n === "") return { multistatus: { response: [] } };
2565
2573
  if (!n) throw new Error("Invalid response: No root multistatus found");
2566
- const o = { multistatus: Array.isArray(n) ? n[0] : n };
2567
- return te().set(o, "multistatus.response", Ne(o, "multistatus.response", le.Array)), te().set(o, "multistatus.response", te().get(o, "multistatus.response").map(((u) => (function(c) {
2574
+ const a = { multistatus: Array.isArray(n) ? n[0] : n };
2575
+ return te().set(a, "multistatus.response", Ne(a, "multistatus.response", le.Array)), te().set(a, "multistatus.response", te().get(a, "multistatus.response").map(((u) => (function(c) {
2568
2576
  const i = Object.assign({}, c);
2569
2577
  return i.status ? te().set(i, "status", Ne(i, "status", le.Object)) : (te().set(i, "propstat", Ne(i, "propstat", le.Object)), te().set(i, "propstat.prop", Ne(i, "propstat.prop", le.Object))), i;
2570
- })(u)))), o;
2571
- })(new ut.XMLParser({ allowBooleanAttributes: !0, attributeNamePrefix: "", textNodeName: "text", ignoreAttributes: !1, removeNSPrefix: !0, numberParseOptions: { hex: !0, leadingZeros: !1 }, attributeValueProcessor: (t, n, o) => n === "true" || n === "false" ? n === "true" : n, tagValueProcessor(t, n, o) {
2572
- if (!o.endsWith("propstat.prop.displayname")) return n;
2578
+ })(u)))), a;
2579
+ })(new ut.XMLParser({ allowBooleanAttributes: !0, attributeNamePrefix: "", textNodeName: "text", ignoreAttributes: !1, removeNSPrefix: !0, numberParseOptions: { hex: !0, leadingZeros: !1 }, attributeValueProcessor: (t, n, a) => n === "true" || n === "false" ? n === "true" : n, tagValueProcessor(t, n, a) {
2580
+ if (!a.endsWith("propstat.prop.displayname")) return n;
2573
2581
  } }).parse(r)));
2574
2582
  }));
2575
2583
  }
2576
2584
  function Se(r, e) {
2577
2585
  let t = arguments.length > 2 && arguments[2] !== void 0 && arguments[2];
2578
- const { getlastmodified: n = null, getcontentlength: o = "0", resourcetype: u = null, getcontenttype: c = null, getetag: i = null } = r, h = u && typeof u == "object" && u.collection !== void 0 ? "directory" : "file", a = { filename: e, basename: Pe().basename(e), lastmod: n, size: parseInt(o, 10), type: h, etag: typeof i == "string" ? i.replace(/"/g, "") : null };
2579
- return h === "file" && (a.mime = c && typeof c == "string" ? c.split(";")[0] : ""), t && (r.displayname !== void 0 && (r.displayname = String(r.displayname)), a.props = r), a;
2586
+ const { getlastmodified: n = null, getcontentlength: a = "0", resourcetype: u = null, getcontenttype: c = null, getetag: i = null } = r, h = u && typeof u == "object" && u.collection !== void 0 ? "directory" : "file", o = { filename: e, basename: Pe().basename(e), lastmod: n, size: parseInt(a, 10), type: h, etag: typeof i == "string" ? i.replace(/"/g, "") : null };
2587
+ return h === "file" && (o.mime = c && typeof c == "string" ? c.split(";")[0] : ""), t && (r.displayname !== void 0 && (r.displayname = String(r.displayname)), o.props = r), o;
2580
2588
  }
2581
2589
  function hr(r, e) {
2582
2590
  let t = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], n = null;
@@ -2585,12 +2593,12 @@ function hr(r, e) {
2585
2593
  } catch {
2586
2594
  }
2587
2595
  if (!n) throw new Error("Failed getting item stat: bad response");
2588
- const { propstat: { prop: o, status: u } } = n, [c, i, h] = u.split(" ", 3), a = parseInt(i, 10);
2589
- if (a >= 400) {
2590
- const s = new Error(`Invalid response: ${a} ${h}`);
2591
- throw s.status = a, s;
2596
+ const { propstat: { prop: a, status: u } } = n, [c, i, h] = u.split(" ", 3), o = parseInt(i, 10);
2597
+ if (o >= 400) {
2598
+ const s = new Error(`Invalid response: ${o} ${h}`);
2599
+ throw s.status = o, s;
2592
2600
  }
2593
- return Se(o, be(e), t);
2601
+ return Se(a, be(e), t);
2594
2602
  }
2595
2603
  function fr(r) {
2596
2604
  switch (String(r)) {
@@ -2617,8 +2625,8 @@ const lt = /* @__PURE__ */ (function(r) {
2617
2625
  };
2618
2626
  })((function(r, e) {
2619
2627
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2620
- const { details: n = !1 } = t, o = q({ url: U(r.remoteURL, k(e)), method: "PROPFIND", headers: { Accept: "text/plain,application/xml", Depth: "0" } }, r, t);
2621
- return Le(B(o, r), (function(u) {
2628
+ const { details: n = !1 } = t, a = q({ url: U(r.remoteURL, k(e)), method: "PROPFIND", headers: { Accept: "text/plain,application/xml", Depth: "0" } }, r, t);
2629
+ return Le(B(a, r), (function(u) {
2622
2630
  return W(r, u), Le(u.text(), (function(c) {
2623
2631
  return Le(ye(c), (function(i) {
2624
2632
  const h = hr(i, e, n);
@@ -2642,21 +2650,21 @@ const jn = gr((function(r, e) {
2642
2650
  return i;
2643
2651
  })(be(e));
2644
2652
  n.sort(((u, c) => u.length > c.length ? 1 : c.length > u.length ? -1 : 0));
2645
- let o = !1;
2653
+ let a = !1;
2646
2654
  return (function(u, c, i) {
2647
2655
  if (typeof u[jt] == "function") {
2648
2656
  let m = function(w) {
2649
2657
  try {
2650
2658
  for (; !(h = f.next()).done; ) if ((w = c(h.value)) && w.then) {
2651
- if (!$t(w)) return void w.then(m, s || (s = Y.bind(null, a = new ce(), 2)));
2659
+ if (!$t(w)) return void w.then(m, s || (s = Y.bind(null, o = new ce(), 2)));
2652
2660
  w = w.v;
2653
2661
  }
2654
- a ? Y(a, 1, w) : a = w;
2662
+ o ? Y(o, 1, w) : o = w;
2655
2663
  } catch (v) {
2656
- Y(a || (a = new ce()), 2, v);
2664
+ Y(o || (o = new ce()), 2, v);
2657
2665
  }
2658
2666
  };
2659
- var h, a, s, f = u[jt]();
2667
+ var h, o, s, f = u[jt]();
2660
2668
  if (m(), f.return) {
2661
2669
  var l = function(w) {
2662
2670
  try {
@@ -2665,12 +2673,12 @@ const jn = gr((function(r, e) {
2665
2673
  }
2666
2674
  return w;
2667
2675
  };
2668
- if (a && a.then) return a.then(l, (function(w) {
2676
+ if (o && o.then) return o.then(l, (function(w) {
2669
2677
  throw l(w);
2670
2678
  }));
2671
2679
  l();
2672
2680
  }
2673
- return a;
2681
+ return o;
2674
2682
  }
2675
2683
  if (!("length" in u)) throw new TypeError("Object is not iterable");
2676
2684
  for (var g = [], d = 0; d < u.length; d++) g.push(u[d]);
@@ -2692,24 +2700,24 @@ const jn = gr((function(r, e) {
2692
2700
  }), i);
2693
2701
  })(n, (function(u) {
2694
2702
  return c = function() {
2695
- return (function(h, a) {
2703
+ return (function(h, o) {
2696
2704
  try {
2697
2705
  var s = pr(lt(r, u), (function(f) {
2698
2706
  if (f.type !== "directory") throw new Error(`Path includes a file: ${e}`);
2699
2707
  }));
2700
2708
  } catch (f) {
2701
- return a(f);
2709
+ return o(f);
2702
2710
  }
2703
- return s && s.then ? s.then(void 0, a) : s;
2711
+ return s && s.then ? s.then(void 0, o) : s;
2704
2712
  })(0, (function(h) {
2705
- const a = h;
2713
+ const o = h;
2706
2714
  return (function() {
2707
- if (a.status === 404) return o = !0, Ft(tt(r, u, { ...t, recursive: !1 }));
2715
+ if (o.status === 404) return a = !0, Ft(tt(r, u, { ...t, recursive: !1 }));
2708
2716
  throw h;
2709
2717
  })();
2710
2718
  }));
2711
2719
  }, (i = (function() {
2712
- if (o) return Ft(tt(r, u, { ...t, recursive: !1 }));
2720
+ if (a) return Ft(tt(r, u, { ...t, recursive: !1 }));
2713
2721
  })()) && i.then ? i.then(c) : c();
2714
2722
  var c, i;
2715
2723
  }), (function() {
@@ -2731,7 +2739,7 @@ function $n() {
2731
2739
  function Ft(r, e) {
2732
2740
  return r && r.then ? r.then($n) : Promise.resolve();
2733
2741
  }
2734
- const jt = typeof Symbol < "u" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
2742
+ const jt = typeof Symbol < "u" ? Symbol.iterator || (Symbol.iterator = /* @__PURE__ */ Symbol("Symbol.iterator")) : "@@iterator";
2735
2743
  function Y(r, e, t) {
2736
2744
  if (!r.s) {
2737
2745
  if (t instanceof ce) {
@@ -2748,9 +2756,9 @@ const ce = (function() {
2748
2756
  function r() {
2749
2757
  }
2750
2758
  return r.prototype.then = function(e, t) {
2751
- const n = new r(), o = this.s;
2752
- if (o) {
2753
- const u = 1 & o ? e : t;
2759
+ const n = new r(), a = this.s;
2760
+ if (a) {
2761
+ const u = 1 & a ? e : t;
2754
2762
  if (u) {
2755
2763
  try {
2756
2764
  Y(n, 1, u(this.v));
@@ -2777,8 +2785,8 @@ function $t(r) {
2777
2785
  const tt = gr((function(r, e) {
2778
2786
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2779
2787
  if (t.recursive === !0) return jn(r, e, t);
2780
- const n = q({ url: U(r.remoteURL, (o = k(e), o.endsWith("/") ? o : o + "/")), method: "MKCOL" }, r, t);
2781
- var o;
2788
+ const n = q({ url: U(r.remoteURL, (a = k(e), a.endsWith("/") ? a : a + "/")), method: "MKCOL" }, r, t);
2789
+ var a;
2782
2790
  return pr(B(n, r), (function(u) {
2783
2791
  W(r, u);
2784
2792
  }));
@@ -2800,7 +2808,7 @@ const Ln = /* @__PURE__ */ (function(r) {
2800
2808
  let i = `bytes=${t.range.start}-`;
2801
2809
  typeof t.range.end == "number" && (i = `${i}${t.range.end}`), n.Range = i;
2802
2810
  }
2803
- const o = q({ url: U(r.remoteURL, k(e)), method: "GET", headers: n }, r, t);
2811
+ const a = q({ url: U(r.remoteURL, k(e)), method: "GET", headers: n }, r, t);
2804
2812
  return c = function(i) {
2805
2813
  if (W(r, i), n.Range && i.status !== 206) {
2806
2814
  const h = new Error(`Invalid response code for partial request: ${i.status}`);
@@ -2809,7 +2817,7 @@ const Ln = /* @__PURE__ */ (function(r) {
2809
2817
  return t.callback && setTimeout((() => {
2810
2818
  t.callback(i);
2811
2819
  }), 0), i.body;
2812
- }, (u = B(o, r)) && u.then || (u = Promise.resolve(u)), c ? u.then(c) : u;
2820
+ }, (u = B(a, r)) && u.then || (u = Promise.resolve(u)), c ? u.then(c) : u;
2813
2821
  var u, c;
2814
2822
  })), kn = () => {
2815
2823
  }, Un = /* @__PURE__ */ (function(r) {
@@ -2826,8 +2834,8 @@ const Ln = /* @__PURE__ */ (function(r) {
2826
2834
  const n = q(t, r, {});
2827
2835
  return u = function(c) {
2828
2836
  return W(r, c), c;
2829
- }, (o = B(n, r)) && o.then || (o = Promise.resolve(o)), u ? o.then(u) : o;
2830
- var o, u;
2837
+ }, (a = B(n, r)) && a.then || (a = Promise.resolve(a)), u ? a.then(u) : a;
2838
+ var a, u;
2831
2839
  })), _n = /* @__PURE__ */ (function(r) {
2832
2840
  return function() {
2833
2841
  for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
@@ -2842,8 +2850,8 @@ const Ln = /* @__PURE__ */ (function(r) {
2842
2850
  const n = q({ url: U(r.remoteURL, k(e)), method: "DELETE" }, r, t);
2843
2851
  return u = function(c) {
2844
2852
  W(r, c);
2845
- }, (o = B(n, r)) && o.then || (o = Promise.resolve(o)), u ? o.then(u) : o;
2846
- var o, u;
2853
+ }, (a = B(n, r)) && a.then || (a = Promise.resolve(a)), u ? a.then(u) : a;
2854
+ var a, u;
2847
2855
  })), Mn = /* @__PURE__ */ (function(r) {
2848
2856
  return function() {
2849
2857
  for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
@@ -2855,16 +2863,16 @@ const Ln = /* @__PURE__ */ (function(r) {
2855
2863
  };
2856
2864
  })((function(r, e) {
2857
2865
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2858
- return (function(n, o) {
2866
+ return (function(n, a) {
2859
2867
  try {
2860
2868
  var u = (c = lt(r, e, t), i = function() {
2861
2869
  return !0;
2862
2870
  }, h ? i ? i(c) : c : (c && c.then || (c = Promise.resolve(c)), i ? c.then(i) : c));
2863
- } catch (a) {
2864
- return o(a);
2871
+ } catch (o) {
2872
+ return a(o);
2865
2873
  }
2866
2874
  var c, i, h;
2867
- return u && u.then ? u.then(void 0, o) : u;
2875
+ return u && u.then ? u.then(void 0, a) : u;
2868
2876
  })(0, (function(n) {
2869
2877
  if (n.status === 404) return !1;
2870
2878
  throw n;
@@ -2885,14 +2893,14 @@ const Vn = /* @__PURE__ */ (function(r) {
2885
2893
  })((function(r, e) {
2886
2894
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2887
2895
  const n = q({ url: U(r.remoteURL, k(e), "/"), method: "PROPFIND", headers: { Accept: "text/plain,application/xml", Depth: t.deep ? "infinity" : "1" } }, r, t);
2888
- return ke(B(n, r), (function(o) {
2889
- return W(r, o), ke(o.text(), (function(u) {
2896
+ return ke(B(n, r), (function(a) {
2897
+ return W(r, a), ke(a.text(), (function(u) {
2890
2898
  if (!u) throw new Error("Failed parsing directory contents: Empty response");
2891
2899
  return ke(ye(u), (function(c) {
2892
2900
  const i = vt(e);
2893
- let h = (function(a, s, f) {
2901
+ let h = (function(o, s, f) {
2894
2902
  let l = arguments.length > 3 && arguments[3] !== void 0 && arguments[3], g = arguments.length > 4 && arguments[4] !== void 0 && arguments[4];
2895
- const d = Pe().join(s, "/"), { multistatus: { response: m } } = a, w = m.map(((v) => {
2903
+ const d = Pe().join(s, "/"), { multistatus: { response: m } } = o, w = m.map(((v) => {
2896
2904
  const p = (function(A) {
2897
2905
  try {
2898
2906
  return A.replace(/^https?:\/\/[^\/]+/, "");
@@ -2904,9 +2912,9 @@ const Vn = /* @__PURE__ */ (function(r) {
2904
2912
  }));
2905
2913
  return g ? w : w.filter(((v) => v.basename && (v.type === "file" || v.filename !== f.replace(/\/$/, ""))));
2906
2914
  })(c, vt(r.remoteBasePath || r.remotePath), i, t.details, t.includeSelf);
2907
- return t.glob && (h = (function(a, s) {
2908
- return a.filter(((f) => H(f.filename, s, { matchBase: !0 })));
2909
- })(h, t.glob)), ae(o, h, t.details);
2915
+ return t.glob && (h = (function(o, s) {
2916
+ return o.filter(((f) => H(f.filename, s, { matchBase: !0 })));
2917
+ })(h, t.glob)), ae(a, h, t.details);
2910
2918
  }));
2911
2919
  }));
2912
2920
  }));
@@ -2924,9 +2932,9 @@ function ct(r) {
2924
2932
  const Bn = ct((function(r, e) {
2925
2933
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2926
2934
  const n = q({ url: U(r.remoteURL, k(e)), method: "GET", headers: { Accept: "text/plain" }, transformResponse: [Xn] }, r, t);
2927
- return Ie(B(n, r), (function(o) {
2928
- return W(r, o), Ie(o.text(), (function(u) {
2929
- return ae(o, u, t.details);
2935
+ return Ie(B(n, r), (function(a) {
2936
+ return W(r, a), Ie(a.text(), (function(u) {
2937
+ return ae(a, u, t.details);
2930
2938
  }));
2931
2939
  }));
2932
2940
  }));
@@ -2936,17 +2944,17 @@ function Ie(r, e, t) {
2936
2944
  const qn = ct((function(r, e) {
2937
2945
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2938
2946
  const n = q({ url: U(r.remoteURL, k(e)), method: "GET" }, r, t);
2939
- return Ie(B(n, r), (function(o) {
2947
+ return Ie(B(n, r), (function(a) {
2940
2948
  let u;
2941
- return W(r, o), (function(c, i) {
2949
+ return W(r, a), (function(c, i) {
2942
2950
  var h = c();
2943
2951
  return h && h.then ? h.then(i) : i();
2944
2952
  })((function() {
2945
- return Ie(o.arrayBuffer(), (function(c) {
2953
+ return Ie(a.arrayBuffer(), (function(c) {
2946
2954
  u = c;
2947
2955
  }));
2948
2956
  }), (function() {
2949
- return ae(o, u, t.details);
2957
+ return ae(a, u, t.details);
2950
2958
  }));
2951
2959
  }));
2952
2960
  })), Wn = ct((function(r, e) {
@@ -2978,18 +2986,18 @@ function mr(r) {
2978
2986
  }
2979
2987
  const zn = mr((function(r, e, t) {
2980
2988
  let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
2981
- const o = q({ url: U(r.remoteURL, k(e)), method: "UNLOCK", headers: { "Lock-Token": t } }, r, n);
2982
- return rt(B(o, r), (function(u) {
2989
+ const a = q({ url: U(r.remoteURL, k(e)), method: "UNLOCK", headers: { "Lock-Token": t } }, r, n);
2990
+ return rt(B(a, r), (function(u) {
2983
2991
  if (W(r, u), u.status !== 204 && u.status !== 200) throw at(u);
2984
2992
  }));
2985
2993
  })), Hn = mr((function(r, e) {
2986
2994
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2987
- const { refreshToken: n, timeout: o = Zn } = t, u = { Accept: "text/plain,application/xml", Timeout: o };
2995
+ const { refreshToken: n, timeout: a = Zn } = t, u = { Accept: "text/plain,application/xml", Timeout: a };
2988
2996
  n && (u.If = n);
2989
2997
  const c = q({ url: U(r.remoteURL, k(e)), method: "LOCK", headers: u, data: Gn(r.contactHref) }, r, t);
2990
2998
  return rt(B(c, r), (function(i) {
2991
2999
  return W(r, i), rt(i.text(), (function(h) {
2992
- const a = (l = h, new ut.XMLParser({ removeNSPrefix: !0, parseAttributeValue: !0, parseTagValue: !0 }).parse(l)), s = te().get(a, "prop.lockdiscovery.activelock.locktoken.href"), f = te().get(a, "prop.lockdiscovery.activelock.timeout");
3000
+ const o = (l = h, new ut.XMLParser({ removeNSPrefix: !0, parseAttributeValue: !0, parseTagValue: !0 }).parse(l)), s = te().get(o, "prop.lockdiscovery.activelock.locktoken.href"), f = te().get(o, "prop.lockdiscovery.activelock.timeout");
2993
3001
  var l;
2994
3002
  if (!s) throw at(i, "No lock token received: ");
2995
3003
  return { token: s, serverTimeout: f };
@@ -3011,18 +3019,18 @@ const Jn = /* @__PURE__ */ (function(r) {
3011
3019
  })((function(r) {
3012
3020
  let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3013
3021
  const t = e.path || "/", n = q({ url: U(r.remoteURL, t), method: "PROPFIND", headers: { Accept: "text/plain,application/xml", Depth: "0" } }, r, e);
3014
- return Ue(B(n, r), (function(o) {
3015
- return W(r, o), Ue(o.text(), (function(u) {
3022
+ return Ue(B(n, r), (function(a) {
3023
+ return W(r, a), Ue(a.text(), (function(u) {
3016
3024
  return Ue(ye(u), (function(c) {
3017
3025
  const i = (function(h) {
3018
3026
  try {
3019
- const [a] = h.multistatus.response, { propstat: { prop: { "quota-used-bytes": s, "quota-available-bytes": f } } } = a;
3027
+ const [o] = h.multistatus.response, { propstat: { prop: { "quota-used-bytes": s, "quota-available-bytes": f } } } = o;
3020
3028
  return s !== void 0 && f !== void 0 ? { used: parseInt(String(s), 10), available: fr(f) } : null;
3021
3029
  } catch {
3022
3030
  }
3023
3031
  return null;
3024
3032
  })(c);
3025
- return ae(o, i, e.details);
3033
+ return ae(a, i, e.details);
3026
3034
  }));
3027
3035
  }));
3028
3036
  }));
@@ -3041,13 +3049,13 @@ const Yn = /* @__PURE__ */ (function(r) {
3041
3049
  };
3042
3050
  })((function(r, e) {
3043
3051
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
3044
- const { details: n = !1 } = t, o = q({ url: U(r.remoteURL, k(e)), method: "SEARCH", headers: { Accept: "text/plain,application/xml", "Content-Type": r.headers["Content-Type"] || "application/xml; charset=utf-8" } }, r, t);
3045
- return _e(B(o, r), (function(u) {
3052
+ const { details: n = !1 } = t, a = q({ url: U(r.remoteURL, k(e)), method: "SEARCH", headers: { Accept: "text/plain,application/xml", "Content-Type": r.headers["Content-Type"] || "application/xml; charset=utf-8" } }, r, t);
3053
+ return _e(B(a, r), (function(u) {
3046
3054
  return W(r, u), _e(u.text(), (function(c) {
3047
3055
  return _e(ye(c), (function(i) {
3048
- const h = (function(a, s, f) {
3056
+ const h = (function(o, s, f) {
3049
3057
  const l = { truncated: !1, results: [] };
3050
- return l.truncated = a.multistatus.response.some(((g) => (g.status || g.propstat?.status).split(" ", 3)?.[1] === "507" && g.href.replace(/\/$/, "").endsWith(k(s).replace(/\/$/, "")))), a.multistatus.response.forEach(((g) => {
3058
+ return l.truncated = o.multistatus.response.some(((g) => (g.status || g.propstat?.status).split(" ", 3)?.[1] === "507" && g.href.replace(/\/$/, "").endsWith(k(s).replace(/\/$/, "")))), o.multistatus.response.forEach(((g) => {
3051
3059
  if (g.propstat === void 0) return;
3052
3060
  const d = g.href.split("/").map(decodeURIComponent).join("/");
3053
3061
  l.results.push(Se(g.propstat.prop, d, f));
@@ -3068,10 +3076,10 @@ const Yn = /* @__PURE__ */ (function(r) {
3068
3076
  };
3069
3077
  })((function(r, e, t) {
3070
3078
  let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
3071
- const o = q({ url: U(r.remoteURL, k(e)), method: "MOVE", headers: { Destination: U(r.remoteURL, k(t)), Overwrite: n.overwrite === !1 ? "F" : "T" } }, r, n);
3079
+ const a = q({ url: U(r.remoteURL, k(e)), method: "MOVE", headers: { Destination: U(r.remoteURL, k(t)), Overwrite: n.overwrite === !1 ? "F" : "T" } }, r, n);
3072
3080
  return c = function(i) {
3073
3081
  W(r, i);
3074
- }, (u = B(o, r)) && u.then || (u = Promise.resolve(u)), c ? u.then(c) : u;
3082
+ }, (u = B(a, r)) && u.then || (u = Promise.resolve(u)), c ? u.then(c) : u;
3075
3083
  var u, c;
3076
3084
  }));
3077
3085
  var Qn = R(172);
@@ -3086,15 +3094,15 @@ const Dn = /* @__PURE__ */ (function(r) {
3086
3094
  };
3087
3095
  })((function(r, e, t) {
3088
3096
  let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
3089
- const { contentLength: o = !0, overwrite: u = !0 } = n, c = { "Content-Type": "application/octet-stream" };
3090
- o === !1 || (c["Content-Length"] = typeof o == "number" ? `${o}` : `${(function(s) {
3097
+ const { contentLength: a = !0, overwrite: u = !0 } = n, c = { "Content-Type": "application/octet-stream" };
3098
+ a === !1 || (c["Content-Length"] = typeof a == "number" ? `${a}` : `${(function(s) {
3091
3099
  if (sr(s)) return s.byteLength;
3092
3100
  if (ir(s)) return s.length;
3093
3101
  if (typeof s == "string") return (0, Qn.d)(s);
3094
3102
  throw new K({ info: { code: ne.DataTypeNoLength } }, "Cannot calculate data length: Invalid type");
3095
3103
  })(t)}`), u || (c["If-None-Match"] = "*");
3096
3104
  const i = q({ url: U(r.remoteURL, k(e)), method: "PUT", headers: c, data: t }, r, n);
3097
- return a = function(s) {
3105
+ return o = function(s) {
3098
3106
  try {
3099
3107
  W(r, s);
3100
3108
  } catch (f) {
@@ -3103,8 +3111,8 @@ const Dn = /* @__PURE__ */ (function(r) {
3103
3111
  return !1;
3104
3112
  }
3105
3113
  return !0;
3106
- }, (h = B(i, r)) && h.then || (h = Promise.resolve(h)), a ? h.then(a) : h;
3107
- var h, a;
3114
+ }, (h = B(i, r)) && h.then || (h = Promise.resolve(h)), o ? h.then(o) : h;
3115
+ var h, o;
3108
3116
  })), br = /* @__PURE__ */ (function(r) {
3109
3117
  return function() {
3110
3118
  for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
@@ -3124,17 +3132,17 @@ const Dn = /* @__PURE__ */ (function(r) {
3124
3132
  throw i;
3125
3133
  }
3126
3134
  return { compliance: (c.headers.get("DAV") ?? "").split(",").map(((i) => i.trim())), server: c.headers.get("Server") ?? "" };
3127
- }, (o = B(n, r)) && o.then || (o = Promise.resolve(o)), u ? o.then(u) : o;
3128
- var o, u;
3135
+ }, (a = B(n, r)) && a.then || (a = Promise.resolve(a)), u ? a.then(u) : a;
3136
+ var a, u;
3129
3137
  }));
3130
- function ge(r, e, t) {
3138
+ function de(r, e, t) {
3131
3139
  return t ? e ? e(r) : r : (r && r.then || (r = Promise.resolve(r)), e ? r.then(e) : r);
3132
3140
  }
3133
- const es = ht((function(r, e, t, n, o) {
3141
+ const es = ht((function(r, e, t, n, a) {
3134
3142
  let u = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {};
3135
3143
  if (t > n || t < 0) throw new K({ info: { code: ne.InvalidUpdateRange } }, `Invalid update range ${t} for partial update`);
3136
- const c = { "Content-Type": "application/octet-stream", "Content-Length": "" + (n - t + 1), "Content-Range": `bytes ${t}-${n}/*` }, i = q({ url: U(r.remoteURL, k(e)), method: "PUT", headers: c, data: o }, r, u);
3137
- return ge(B(i, r), (function(h) {
3144
+ const c = { "Content-Type": "application/octet-stream", "Content-Length": "" + (n - t + 1), "Content-Range": `bytes ${t}-${n}/*` }, i = q({ url: U(r.remoteURL, k(e)), method: "PUT", headers: c, data: a }, r, u);
3145
+ return de(B(i, r), (function(h) {
3138
3146
  W(r, h);
3139
3147
  }));
3140
3148
  }));
@@ -3142,11 +3150,11 @@ function Lt(r, e) {
3142
3150
  var t = r();
3143
3151
  return t && t.then ? t.then(e) : e(t);
3144
3152
  }
3145
- const ts = ht((function(r, e, t, n, o) {
3153
+ const ts = ht((function(r, e, t, n, a) {
3146
3154
  let u = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {};
3147
3155
  if (t > n || t < 0) throw new K({ info: { code: ne.InvalidUpdateRange } }, `Invalid update range ${t} for partial update`);
3148
- const c = { "Content-Type": "application/x-sabredav-partialupdate", "Content-Length": "" + (n - t + 1), "X-Update-Range": `bytes=${t}-${n}` }, i = q({ url: U(r.remoteURL, k(e)), method: "PATCH", headers: c, data: o }, r, u);
3149
- return ge(B(i, r), (function(h) {
3156
+ const c = { "Content-Type": "application/x-sabredav-partialupdate", "Content-Length": "" + (n - t + 1), "X-Update-Range": `bytes=${t}-${n}` }, i = q({ url: U(r.remoteURL, k(e)), method: "PATCH", headers: c, data: a }, r, u);
3157
+ return de(B(i, r), (function(h) {
3150
3158
  W(r, h);
3151
3159
  }));
3152
3160
  }));
@@ -3160,22 +3168,22 @@ function ht(r) {
3160
3168
  }
3161
3169
  };
3162
3170
  }
3163
- const rs = ht((function(r, e, t, n, o) {
3171
+ const rs = ht((function(r, e, t, n, a) {
3164
3172
  let u = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {};
3165
- return ge(br(r, e, u), (function(c) {
3173
+ return de(br(r, e, u), (function(c) {
3166
3174
  let i = !1;
3167
3175
  return Lt((function() {
3168
- if (c.compliance.includes("sabredav-partialupdate")) return ge(ts(r, e, t, n, o, u), (function(h) {
3176
+ if (c.compliance.includes("sabredav-partialupdate")) return de(ts(r, e, t, n, a, u), (function(h) {
3169
3177
  return i = !0, h;
3170
3178
  }));
3171
3179
  }), (function(h) {
3172
- let a = !1;
3180
+ let o = !1;
3173
3181
  return i ? h : Lt((function() {
3174
- if (c.server.includes("Apache") && c.compliance.includes("<http://apache.org/dav/propset/fs/1>")) return ge(es(r, e, t, n, o, u), (function(s) {
3175
- return a = !0, s;
3182
+ if (c.server.includes("Apache") && c.compliance.includes("<http://apache.org/dav/propset/fs/1>")) return de(es(r, e, t, n, a, u), (function(s) {
3183
+ return o = !0, s;
3176
3184
  }));
3177
3185
  }), (function(s) {
3178
- if (a) return s;
3186
+ if (o) return s;
3179
3187
  throw new K({ info: { code: ne.NotSupported } }, "Not supported");
3180
3188
  }));
3181
3189
  }));
@@ -3183,11 +3191,11 @@ const rs = ht((function(r, e, t, n, o) {
3183
3191
  })), ns = "https://github.com/perry-mitchell/webdav-client/blob/master/LOCK_CONTACT.md";
3184
3192
  function ss(r) {
3185
3193
  let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3186
- const { authType: t = null, remoteBasePath: n, contactHref: o = ns, ha1: u, headers: c = {}, httpAgent: i, httpsAgent: h, password: a, token: s, username: f, withCredentials: l } = e;
3194
+ const { authType: t = null, remoteBasePath: n, contactHref: a = ns, ha1: u, headers: c = {}, httpAgent: i, httpsAgent: h, password: o, token: s, username: f, withCredentials: l } = e;
3187
3195
  let g = t;
3188
- g || (g = f || a ? J.Password : J.None);
3189
- const d = { authType: g, remoteBasePath: n, contactHref: o, ha1: u, headers: Object.assign({}, c), httpAgent: i, httpsAgent: h, password: a, remotePath: Gr(r), remoteURL: r, token: s, username: f, withCredentials: l };
3190
- return tr(d, f, a, s, u), { copyFile: (m, w, v) => Sn(d, m, w, v), createDirectory: (m, w) => tt(d, m, w), createReadStream: (m, w) => (function(v, p) {
3196
+ g || (g = f || o ? J.Password : J.None);
3197
+ const d = { authType: g, remoteBasePath: n, contactHref: a, ha1: u, headers: Object.assign({}, c), httpAgent: i, httpsAgent: h, password: o, remotePath: Gr(r), remoteURL: r, token: s, username: f, withCredentials: l };
3198
+ return tr(d, f, o, s, u), { copyFile: (m, w, v) => Sn(d, m, w, v), createDirectory: (m, w) => tt(d, m, w), createReadStream: (m, w) => (function(v, p) {
3191
3199
  let y = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
3192
3200
  const A = new (Rt()).PassThrough();
3193
3201
  return Ln(v, p, y).then(((N) => {
@@ -3281,8 +3289,8 @@ function ps(r, e, t) {
3281
3289
  var Ve = {}, Be = {}, Ut;
3282
3290
  function ft() {
3283
3291
  return Ut || (Ut = 1, (function(r) {
3284
- const e = ":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", t = e + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040", n = "[" + e + "][" + t + "]*", o = new RegExp("^" + n + "$"), u = function(i, h) {
3285
- const a = [];
3292
+ const e = ":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", t = e + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040", n = "[" + e + "][" + t + "]*", a = new RegExp("^" + n + "$"), u = function(i, h) {
3293
+ const o = [];
3286
3294
  let s = h.exec(i);
3287
3295
  for (; s; ) {
3288
3296
  const f = [];
@@ -3290,22 +3298,22 @@ function ft() {
3290
3298
  const l = s.length;
3291
3299
  for (let g = 0; g < l; g++)
3292
3300
  f.push(s[g]);
3293
- a.push(f), s = h.exec(i);
3301
+ o.push(f), s = h.exec(i);
3294
3302
  }
3295
- return a;
3303
+ return o;
3296
3304
  }, c = function(i) {
3297
- const h = o.exec(i);
3305
+ const h = a.exec(i);
3298
3306
  return !(h === null || typeof h > "u");
3299
3307
  };
3300
3308
  r.isExist = function(i) {
3301
3309
  return typeof i < "u";
3302
3310
  }, r.isEmptyObject = function(i) {
3303
3311
  return Object.keys(i).length === 0;
3304
- }, r.merge = function(i, h, a) {
3312
+ }, r.merge = function(i, h, o) {
3305
3313
  if (h) {
3306
3314
  const s = Object.keys(h), f = s.length;
3307
3315
  for (let l = 0; l < f; l++)
3308
- a === "strict" ? i[s[l]] = [h[s[l]]] : i[s[l]] = h[s[l]];
3316
+ o === "strict" ? i[s[l]] = [h[s[l]]] : i[s[l]] = h[s[l]];
3309
3317
  }
3310
3318
  }, r.getValue = function(i) {
3311
3319
  return r.isExist(i) ? i : "";
@@ -3332,7 +3340,7 @@ function yr() {
3332
3340
  } else if (v[b] === "<") {
3333
3341
  let E = b;
3334
3342
  if (b++, v[b] === "!") {
3335
- b = o(v, b);
3343
+ b = a(v, b);
3336
3344
  continue;
3337
3345
  } else {
3338
3346
  let x = !1;
@@ -3352,7 +3360,7 @@ function yr() {
3352
3360
  if (b = O.index, I[I.length - 1] === "/") {
3353
3361
  const C = b - I.length;
3354
3362
  I = I.substring(0, I.length - 1);
3355
- const P = a(I, p);
3363
+ const P = o(I, p);
3356
3364
  if (P === !0)
3357
3365
  A = !0;
3358
3366
  else
@@ -3377,7 +3385,7 @@ function yr() {
3377
3385
  }
3378
3386
  } else return l("InvalidTag", "Closing tag '" + T + "' doesn't have proper closing.", m(v, b));
3379
3387
  else {
3380
- const C = a(I, p);
3388
+ const C = o(I, p);
3381
3389
  if (C !== !0)
3382
3390
  return l(C.err.code, C.err.msg, m(v, b - I.length + C.err.line));
3383
3391
  if (N === !0)
@@ -3387,7 +3395,7 @@ function yr() {
3387
3395
  for (b++; b < v.length; b++)
3388
3396
  if (v[b] === "<")
3389
3397
  if (v[b + 1] === "!") {
3390
- b++, b = o(v, b);
3398
+ b++, b = a(v, b);
3391
3399
  continue;
3392
3400
  } else if (v[b + 1] === "?") {
3393
3401
  if (b = n(v, ++b), b.err) return b;
@@ -3434,7 +3442,7 @@ function yr() {
3434
3442
  }
3435
3443
  return p;
3436
3444
  }
3437
- function o(v, p) {
3445
+ function a(v, p) {
3438
3446
  if (v.length > p + 5 && v[p + 1] === "-" && v[p + 2] === "-") {
3439
3447
  for (p += 3; p < v.length; p++)
3440
3448
  if (v[p] === "-" && v[p + 1] === "-" && v[p + 2] === ">") {
@@ -3476,7 +3484,7 @@ function yr() {
3476
3484
  };
3477
3485
  }
3478
3486
  const h = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
3479
- function a(v, p) {
3487
+ function o(v, p) {
3480
3488
  const y = r.getAllMatches(v, h), A = {};
3481
3489
  for (let N = 0; N < y.length; N++) {
3482
3490
  if (y[N][1].length === 0)
@@ -3591,7 +3599,7 @@ function gs() {
3591
3599
  ignorePiTags: !1,
3592
3600
  transformTagName: !1,
3593
3601
  transformAttributeName: !1,
3594
- updateTag: function(t, n, o) {
3602
+ updateTag: function(t, n, a) {
3595
3603
  return t;
3596
3604
  }
3597
3605
  // skipEmptyListItem: false
@@ -3622,66 +3630,66 @@ function ms() {
3622
3630
  if (Bt) return We;
3623
3631
  Bt = 1;
3624
3632
  const r = ft();
3625
- function e(a, s) {
3633
+ function e(o, s) {
3626
3634
  const f = {};
3627
- if (a[s + 3] === "O" && a[s + 4] === "C" && a[s + 5] === "T" && a[s + 6] === "Y" && a[s + 7] === "P" && a[s + 8] === "E") {
3635
+ if (o[s + 3] === "O" && o[s + 4] === "C" && o[s + 5] === "T" && o[s + 6] === "Y" && o[s + 7] === "P" && o[s + 8] === "E") {
3628
3636
  s = s + 9;
3629
3637
  let l = 1, g = !1, d = !1, m = "";
3630
- for (; s < a.length; s++)
3631
- if (a[s] === "<" && !d) {
3632
- if (g && o(a, s)) {
3638
+ for (; s < o.length; s++)
3639
+ if (o[s] === "<" && !d) {
3640
+ if (g && a(o, s)) {
3633
3641
  s += 7;
3634
3642
  let w, v;
3635
- [w, v, s] = t(a, s + 1), v.indexOf("&") === -1 && (f[h(w)] = {
3643
+ [w, v, s] = t(o, s + 1), v.indexOf("&") === -1 && (f[h(w)] = {
3636
3644
  regx: RegExp(`&${w};`, "g"),
3637
3645
  val: v
3638
3646
  });
3639
- } else if (g && u(a, s)) s += 8;
3640
- else if (g && c(a, s)) s += 8;
3641
- else if (g && i(a, s)) s += 9;
3647
+ } else if (g && u(o, s)) s += 8;
3648
+ else if (g && c(o, s)) s += 8;
3649
+ else if (g && i(o, s)) s += 9;
3642
3650
  else if (n) d = !0;
3643
3651
  else throw new Error("Invalid DOCTYPE");
3644
3652
  l++, m = "";
3645
- } else if (a[s] === ">") {
3646
- if (d ? a[s - 1] === "-" && a[s - 2] === "-" && (d = !1, l--) : l--, l === 0)
3653
+ } else if (o[s] === ">") {
3654
+ if (d ? o[s - 1] === "-" && o[s - 2] === "-" && (d = !1, l--) : l--, l === 0)
3647
3655
  break;
3648
- } else a[s] === "[" ? g = !0 : m += a[s];
3656
+ } else o[s] === "[" ? g = !0 : m += o[s];
3649
3657
  if (l !== 0)
3650
3658
  throw new Error("Unclosed DOCTYPE");
3651
3659
  } else
3652
3660
  throw new Error("Invalid Tag instead of DOCTYPE");
3653
3661
  return { entities: f, i: s };
3654
3662
  }
3655
- function t(a, s) {
3663
+ function t(o, s) {
3656
3664
  let f = "";
3657
- for (; s < a.length && a[s] !== "'" && a[s] !== '"'; s++)
3658
- f += a[s];
3665
+ for (; s < o.length && o[s] !== "'" && o[s] !== '"'; s++)
3666
+ f += o[s];
3659
3667
  if (f = f.trim(), f.indexOf(" ") !== -1) throw new Error("External entites are not supported");
3660
- const l = a[s++];
3668
+ const l = o[s++];
3661
3669
  let g = "";
3662
- for (; s < a.length && a[s] !== l; s++)
3663
- g += a[s];
3670
+ for (; s < o.length && o[s] !== l; s++)
3671
+ g += o[s];
3664
3672
  return [f, g, s];
3665
3673
  }
3666
- function n(a, s) {
3667
- return a[s + 1] === "!" && a[s + 2] === "-" && a[s + 3] === "-";
3674
+ function n(o, s) {
3675
+ return o[s + 1] === "!" && o[s + 2] === "-" && o[s + 3] === "-";
3668
3676
  }
3669
- function o(a, s) {
3670
- return a[s + 1] === "!" && a[s + 2] === "E" && a[s + 3] === "N" && a[s + 4] === "T" && a[s + 5] === "I" && a[s + 6] === "T" && a[s + 7] === "Y";
3677
+ function a(o, s) {
3678
+ return o[s + 1] === "!" && o[s + 2] === "E" && o[s + 3] === "N" && o[s + 4] === "T" && o[s + 5] === "I" && o[s + 6] === "T" && o[s + 7] === "Y";
3671
3679
  }
3672
- function u(a, s) {
3673
- return a[s + 1] === "!" && a[s + 2] === "E" && a[s + 3] === "L" && a[s + 4] === "E" && a[s + 5] === "M" && a[s + 6] === "E" && a[s + 7] === "N" && a[s + 8] === "T";
3680
+ function u(o, s) {
3681
+ return o[s + 1] === "!" && o[s + 2] === "E" && o[s + 3] === "L" && o[s + 4] === "E" && o[s + 5] === "M" && o[s + 6] === "E" && o[s + 7] === "N" && o[s + 8] === "T";
3674
3682
  }
3675
- function c(a, s) {
3676
- return a[s + 1] === "!" && a[s + 2] === "A" && a[s + 3] === "T" && a[s + 4] === "T" && a[s + 5] === "L" && a[s + 6] === "I" && a[s + 7] === "S" && a[s + 8] === "T";
3683
+ function c(o, s) {
3684
+ return o[s + 1] === "!" && o[s + 2] === "A" && o[s + 3] === "T" && o[s + 4] === "T" && o[s + 5] === "L" && o[s + 6] === "I" && o[s + 7] === "S" && o[s + 8] === "T";
3677
3685
  }
3678
- function i(a, s) {
3679
- return a[s + 1] === "!" && a[s + 2] === "N" && a[s + 3] === "O" && a[s + 4] === "T" && a[s + 5] === "A" && a[s + 6] === "T" && a[s + 7] === "I" && a[s + 8] === "O" && a[s + 9] === "N";
3686
+ function i(o, s) {
3687
+ return o[s + 1] === "!" && o[s + 2] === "N" && o[s + 3] === "O" && o[s + 4] === "T" && o[s + 5] === "A" && o[s + 6] === "T" && o[s + 7] === "I" && o[s + 8] === "O" && o[s + 9] === "N";
3680
3688
  }
3681
- function h(a) {
3682
- if (r.isName(a))
3683
- return a;
3684
- throw new Error(`Invalid entity name ${a}`);
3689
+ function h(o) {
3690
+ if (r.isName(o))
3691
+ return o;
3692
+ throw new Error(`Invalid entity name ${o}`);
3685
3693
  }
3686
3694
  return We = e, We;
3687
3695
  }
@@ -3705,19 +3713,19 @@ function bs() {
3705
3713
  if (i.hex && r.test(h))
3706
3714
  return u(h, 16);
3707
3715
  if (h.search(/[eE]/) !== -1) {
3708
- const a = h.match(/^([-\+])?(0*)([0-9]*(\.[0-9]*)?[eE][-\+]?[0-9]+)$/);
3709
- if (a) {
3716
+ const o = h.match(/^([-\+])?(0*)([0-9]*(\.[0-9]*)?[eE][-\+]?[0-9]+)$/);
3717
+ if (o) {
3710
3718
  if (i.leadingZeros)
3711
- h = (a[1] || "") + a[3];
3712
- else if (!(a[2] === "0" && a[3][0] === ".")) return c;
3719
+ h = (o[1] || "") + o[3];
3720
+ else if (!(o[2] === "0" && o[3][0] === ".")) return c;
3713
3721
  return i.eNotation ? Number(h) : c;
3714
3722
  } else
3715
3723
  return c;
3716
3724
  } else {
3717
- const a = e.exec(h);
3718
- if (a) {
3719
- const s = a[1], f = a[2];
3720
- let l = o(a[3]);
3725
+ const o = e.exec(h);
3726
+ if (o) {
3727
+ const s = o[1], f = o[2];
3728
+ let l = a(o[3]);
3721
3729
  if (!i.leadingZeros && f.length > 0 && s && h[2] !== ".") return c;
3722
3730
  if (!i.leadingZeros && f.length > 0 && !s && h[1] !== ".") return c;
3723
3731
  if (i.leadingZeros && f === c) return 0;
@@ -3729,7 +3737,7 @@ function bs() {
3729
3737
  return c;
3730
3738
  }
3731
3739
  }
3732
- function o(c) {
3740
+ function a(c) {
3733
3741
  return c && c.indexOf(".") !== -1 && (c = c.replace(/0+$/, ""), c === "." ? c = "0" : c[0] === "." ? c = "0" + c : c[c.length - 1] === "." && (c = c.substr(0, c.length - 1))), c;
3734
3742
  }
3735
3743
  function u(c, i) {
@@ -3757,7 +3765,7 @@ var ze, Xt;
3757
3765
  function ys() {
3758
3766
  if (Xt) return ze;
3759
3767
  Xt = 1;
3760
- const r = ft(), e = ds(), t = ms(), n = bs(), o = vr();
3768
+ const r = ft(), e = ds(), t = ms(), n = bs(), a = vr();
3761
3769
  class u {
3762
3770
  constructor(b) {
3763
3771
  this.options = b, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = {
@@ -3781,7 +3789,7 @@ function ys() {
3781
3789
  inr: { regex: /&(inr|#8377);/g, val: "₹" },
3782
3790
  num_dec: { regex: /&#([0-9]{1,7});/g, val: (E, x) => String.fromCharCode(Number.parseInt(x, 10)) },
3783
3791
  num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (E, x) => String.fromCharCode(Number.parseInt(x, 16)) }
3784
- }, this.addExternalEntities = c, this.parseXml = f, this.parseTextData = i, this.resolveNameSpace = h, this.buildAttributesMap = s, this.isItStopNode = m, this.replaceEntitiesValue = g, this.readStopNodeData = y, this.saveTextToParentTag = d, this.addChild = l, this.ignoreAttributesFn = o(this.options.ignoreAttributes);
3792
+ }, this.addExternalEntities = c, this.parseXml = f, this.parseTextData = i, this.resolveNameSpace = h, this.buildAttributesMap = s, this.isItStopNode = m, this.replaceEntitiesValue = g, this.readStopNodeData = y, this.saveTextToParentTag = d, this.addChild = l, this.ignoreAttributesFn = a(this.options.ignoreAttributes);
3785
3793
  }
3786
3794
  }
3787
3795
  function c(N) {
@@ -3810,10 +3818,10 @@ function ys() {
3810
3818
  }
3811
3819
  return N;
3812
3820
  }
3813
- const a = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
3821
+ const o = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
3814
3822
  function s(N, b, E) {
3815
3823
  if (this.options.ignoreAttributes !== !0 && typeof N == "string") {
3816
- const x = r.getAllMatches(N, a), T = x.length, O = {};
3824
+ const x = r.getAllMatches(N, o), T = x.length, O = {};
3817
3825
  for (let I = 0; I < T; I++) {
3818
3826
  const C = this.resolveNameSpace(x[I][1]);
3819
3827
  if (this.ignoreAttributesFn(C, b))
@@ -4050,7 +4058,7 @@ function vs() {
4050
4058
  }
4051
4059
  function e(u, c, i) {
4052
4060
  let h;
4053
- const a = {};
4061
+ const o = {};
4054
4062
  for (let s = 0; s < u.length; s++) {
4055
4063
  const f = u[s], l = t(f);
4056
4064
  let g = "";
@@ -4061,12 +4069,12 @@ function vs() {
4061
4069
  continue;
4062
4070
  if (f[l]) {
4063
4071
  let d = e(f[l], c, g);
4064
- const m = o(d, c);
4065
- f[":@"] ? n(d, f[":@"], g, c) : Object.keys(d).length === 1 && d[c.textNodeName] !== void 0 && !c.alwaysCreateTextNode ? d = d[c.textNodeName] : Object.keys(d).length === 0 && (c.alwaysCreateTextNode ? d[c.textNodeName] = "" : d = ""), a[l] !== void 0 && a.hasOwnProperty(l) ? (Array.isArray(a[l]) || (a[l] = [a[l]]), a[l].push(d)) : c.isArray(l, g, m) ? a[l] = [d] : a[l] = d;
4072
+ const m = a(d, c);
4073
+ f[":@"] ? n(d, f[":@"], g, c) : Object.keys(d).length === 1 && d[c.textNodeName] !== void 0 && !c.alwaysCreateTextNode ? d = d[c.textNodeName] : Object.keys(d).length === 0 && (c.alwaysCreateTextNode ? d[c.textNodeName] = "" : d = ""), o[l] !== void 0 && o.hasOwnProperty(l) ? (Array.isArray(o[l]) || (o[l] = [o[l]]), o[l].push(d)) : c.isArray(l, g, m) ? o[l] = [d] : o[l] = d;
4066
4074
  }
4067
4075
  }
4068
4076
  }
4069
- return typeof h == "string" ? h.length > 0 && (a[c.textNodeName] = h) : h !== void 0 && (a[c.textNodeName] = h), a;
4077
+ return typeof h == "string" ? h.length > 0 && (o[c.textNodeName] = h) : h !== void 0 && (o[c.textNodeName] = h), o;
4070
4078
  }
4071
4079
  function t(u) {
4072
4080
  const c = Object.keys(u);
@@ -4077,14 +4085,14 @@ function vs() {
4077
4085
  }
4078
4086
  function n(u, c, i, h) {
4079
4087
  if (c) {
4080
- const a = Object.keys(c), s = a.length;
4088
+ const o = Object.keys(c), s = o.length;
4081
4089
  for (let f = 0; f < s; f++) {
4082
- const l = a[f];
4090
+ const l = o[f];
4083
4091
  h.isArray(l, i + "." + l, !0, !0) ? u[l] = [c[l]] : u[l] = c[l];
4084
4092
  }
4085
4093
  }
4086
4094
  }
4087
- function o(u, c) {
4095
+ function a(u, c) {
4088
4096
  const { textNodeName: i } = c, h = Object.keys(u).length;
4089
4097
  return !!(h === 0 || h === 1 && (u[i] || typeof u[i] == "boolean" || u[i] === 0));
4090
4098
  }
@@ -4095,7 +4103,7 @@ function ws() {
4095
4103
  if (zt) return Ze;
4096
4104
  zt = 1;
4097
4105
  const { buildOptions: r } = gs(), e = ys(), { prettify: t } = vs(), n = yr();
4098
- class o {
4106
+ class a {
4099
4107
  constructor(c) {
4100
4108
  this.externalEntities = {}, this.options = r(c);
4101
4109
  }
@@ -4117,8 +4125,8 @@ function ws() {
4117
4125
  }
4118
4126
  const h = new e(this.options);
4119
4127
  h.addExternalEntities(this.externalEntities);
4120
- const a = h.parseXml(c);
4121
- return this.options.preserveOrder || a === void 0 ? a : t(a, this.options);
4128
+ const o = h.parseXml(c);
4129
+ return this.options.preserveOrder || o === void 0 ? o : t(o, this.options);
4122
4130
  }
4123
4131
  /**
4124
4132
  * Add Entity which is not by default supported by this library
@@ -4135,7 +4143,7 @@ function ws() {
4135
4143
  this.externalEntities[c] = i;
4136
4144
  }
4137
4145
  }
4138
- return Ze = o, Ze;
4146
+ return Ze = a, Ze;
4139
4147
  }
4140
4148
  var Je, Ht;
4141
4149
  function Ns() {
@@ -4144,16 +4152,16 @@ function Ns() {
4144
4152
  const r = `
4145
4153
  `;
4146
4154
  function e(i, h) {
4147
- let a = "";
4148
- return h.format && h.indentBy.length > 0 && (a = r), t(i, h, "", a);
4155
+ let o = "";
4156
+ return h.format && h.indentBy.length > 0 && (o = r), t(i, h, "", o);
4149
4157
  }
4150
- function t(i, h, a, s) {
4158
+ function t(i, h, o, s) {
4151
4159
  let f = "", l = !1;
4152
4160
  for (let g = 0; g < i.length; g++) {
4153
4161
  const d = i[g], m = n(d);
4154
4162
  if (m === void 0) continue;
4155
4163
  let w = "";
4156
- if (a.length === 0 ? w = m : w = `${a}.${m}`, m === h.textNodeName) {
4164
+ if (o.length === 0 ? w = m : w = `${o}.${m}`, m === h.textNodeName) {
4157
4165
  let N = d[m];
4158
4166
  u(w, h) || (N = h.tagValueProcessor(m, N), N = c(N, h)), l && (f += s), f += N, l = !1;
4159
4167
  continue;
@@ -4164,47 +4172,47 @@ function Ns() {
4164
4172
  f += s + `<!--${d[m][0][h.textNodeName]}-->`, l = !0;
4165
4173
  continue;
4166
4174
  } else if (m[0] === "?") {
4167
- const N = o(d[":@"], h), b = m === "?xml" ? "" : s;
4175
+ const N = a(d[":@"], h), b = m === "?xml" ? "" : s;
4168
4176
  let E = d[m][0][h.textNodeName];
4169
4177
  E = E.length !== 0 ? " " + E : "", f += b + `<${m}${E}${N}?>`, l = !0;
4170
4178
  continue;
4171
4179
  }
4172
4180
  let v = s;
4173
4181
  v !== "" && (v += h.indentBy);
4174
- const p = o(d[":@"], h), y = s + `<${m}${p}`, A = t(d[m], h, w, v);
4182
+ const p = a(d[":@"], h), y = s + `<${m}${p}`, A = t(d[m], h, w, v);
4175
4183
  h.unpairedTags.indexOf(m) !== -1 ? h.suppressUnpairedNode ? f += y + ">" : f += y + "/>" : (!A || A.length === 0) && h.suppressEmptyNode ? f += y + "/>" : A && A.endsWith(">") ? f += y + `>${A}${s}</${m}>` : (f += y + ">", A && s !== "" && (A.includes("/>") || A.includes("</")) ? f += s + h.indentBy + A + s : f += A, f += `</${m}>`), l = !0;
4176
4184
  }
4177
4185
  return f;
4178
4186
  }
4179
4187
  function n(i) {
4180
4188
  const h = Object.keys(i);
4181
- for (let a = 0; a < h.length; a++) {
4182
- const s = h[a];
4189
+ for (let o = 0; o < h.length; o++) {
4190
+ const s = h[o];
4183
4191
  if (i.hasOwnProperty(s) && s !== ":@")
4184
4192
  return s;
4185
4193
  }
4186
4194
  }
4187
- function o(i, h) {
4188
- let a = "";
4195
+ function a(i, h) {
4196
+ let o = "";
4189
4197
  if (i && !h.ignoreAttributes)
4190
4198
  for (let s in i) {
4191
4199
  if (!i.hasOwnProperty(s)) continue;
4192
4200
  let f = h.attributeValueProcessor(s, i[s]);
4193
- f = c(f, h), f === !0 && h.suppressBooleanAttributes ? a += ` ${s.substr(h.attributeNamePrefix.length)}` : a += ` ${s.substr(h.attributeNamePrefix.length)}="${f}"`;
4201
+ f = c(f, h), f === !0 && h.suppressBooleanAttributes ? o += ` ${s.substr(h.attributeNamePrefix.length)}` : o += ` ${s.substr(h.attributeNamePrefix.length)}="${f}"`;
4194
4202
  }
4195
- return a;
4203
+ return o;
4196
4204
  }
4197
4205
  function u(i, h) {
4198
4206
  i = i.substr(0, i.length - h.textNodeName.length - 1);
4199
- let a = i.substr(i.lastIndexOf(".") + 1);
4207
+ let o = i.substr(i.lastIndexOf(".") + 1);
4200
4208
  for (let s in h.stopNodes)
4201
- if (h.stopNodes[s] === i || h.stopNodes[s] === "*." + a) return !0;
4209
+ if (h.stopNodes[s] === i || h.stopNodes[s] === "*." + o) return !0;
4202
4210
  return !1;
4203
4211
  }
4204
4212
  function c(i, h) {
4205
4213
  if (i && i.length > 0 && h.processEntities)
4206
- for (let a = 0; a < h.entities.length; a++) {
4207
- const s = h.entities[a];
4214
+ for (let o = 0; o < h.entities.length; o++) {
4215
+ const s = h.entities[o];
4208
4216
  i = i.replace(s.regex, s.val);
4209
4217
  }
4210
4218
  return i;
@@ -4252,7 +4260,7 @@ function xs() {
4252
4260
  function n(i) {
4253
4261
  this.options = Object.assign({}, t, i), this.options.ignoreAttributes === !0 || this.options.attributesGroupName ? this.isAttribute = function() {
4254
4262
  return !1;
4255
- } : (this.ignoreAttributesFn = e(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = c), this.processTextOrObjNode = o, this.options.format ? (this.indentate = u, this.tagEndChar = `>
4263
+ } : (this.ignoreAttributesFn = e(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = c), this.processTextOrObjNode = a, this.options.format ? (this.indentate = u, this.tagEndChar = `>
4256
4264
  `, this.newLine = `
4257
4265
  `) : (this.indentate = function() {
4258
4266
  return "";
@@ -4262,9 +4270,9 @@ function xs() {
4262
4270
  return this.options.preserveOrder ? r(i, this.options) : (Array.isArray(i) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (i = {
4263
4271
  [this.options.arrayNodeName]: i
4264
4272
  }), this.j2x(i, 0, []).val);
4265
- }, n.prototype.j2x = function(i, h, a) {
4273
+ }, n.prototype.j2x = function(i, h, o) {
4266
4274
  let s = "", f = "";
4267
- const l = a.join(".");
4275
+ const l = o.join(".");
4268
4276
  for (let g in i)
4269
4277
  if (Object.prototype.hasOwnProperty.call(i, g))
4270
4278
  if (typeof i[g] > "u")
@@ -4292,10 +4300,10 @@ function xs() {
4292
4300
  g[0] === "?" ? f += this.indentate(h) + "<" + g + "?" + this.tagEndChar : f += this.indentate(h) + "<" + g + "/" + this.tagEndChar;
4293
4301
  else if (typeof p == "object")
4294
4302
  if (this.options.oneListGroup) {
4295
- const y = this.j2x(p, h + 1, a.concat(g));
4303
+ const y = this.j2x(p, h + 1, o.concat(g));
4296
4304
  m += y.val, this.options.attributesGroupName && p.hasOwnProperty(this.options.attributesGroupName) && (w += y.attrStr);
4297
4305
  } else
4298
- m += this.processTextOrObjNode(p, g, h, a);
4306
+ m += this.processTextOrObjNode(p, g, h, o);
4299
4307
  else if (this.options.oneListGroup) {
4300
4308
  let y = this.options.tagValueProcessor(g, p);
4301
4309
  y = this.replaceEntitiesValue(y), m += y;
@@ -4308,41 +4316,41 @@ function xs() {
4308
4316
  for (let w = 0; w < m; w++)
4309
4317
  s += this.buildAttrPairStr(d[w], "" + i[g][d[w]]);
4310
4318
  } else
4311
- f += this.processTextOrObjNode(i[g], g, h, a);
4319
+ f += this.processTextOrObjNode(i[g], g, h, o);
4312
4320
  return { attrStr: s, val: f };
4313
4321
  }, n.prototype.buildAttrPairStr = function(i, h) {
4314
4322
  return h = this.options.attributeValueProcessor(i, "" + h), h = this.replaceEntitiesValue(h), this.options.suppressBooleanAttributes && h === "true" ? " " + i : " " + i + '="' + h + '"';
4315
4323
  };
4316
- function o(i, h, a, s) {
4317
- const f = this.j2x(i, a + 1, s.concat(h));
4318
- return i[this.options.textNodeName] !== void 0 && Object.keys(i).length === 1 ? this.buildTextValNode(i[this.options.textNodeName], h, f.attrStr, a) : this.buildObjectNode(f.val, h, f.attrStr, a);
4324
+ function a(i, h, o, s) {
4325
+ const f = this.j2x(i, o + 1, s.concat(h));
4326
+ return i[this.options.textNodeName] !== void 0 && Object.keys(i).length === 1 ? this.buildTextValNode(i[this.options.textNodeName], h, f.attrStr, o) : this.buildObjectNode(f.val, h, f.attrStr, o);
4319
4327
  }
4320
- n.prototype.buildObjectNode = function(i, h, a, s) {
4328
+ n.prototype.buildObjectNode = function(i, h, o, s) {
4321
4329
  if (i === "")
4322
- return h[0] === "?" ? this.indentate(s) + "<" + h + a + "?" + this.tagEndChar : this.indentate(s) + "<" + h + a + this.closeTag(h) + this.tagEndChar;
4330
+ return h[0] === "?" ? this.indentate(s) + "<" + h + o + "?" + this.tagEndChar : this.indentate(s) + "<" + h + o + this.closeTag(h) + this.tagEndChar;
4323
4331
  {
4324
4332
  let f = "</" + h + this.tagEndChar, l = "";
4325
- return h[0] === "?" && (l = "?", f = ""), (a || a === "") && i.indexOf("<") === -1 ? this.indentate(s) + "<" + h + a + l + ">" + i + f : this.options.commentPropName !== !1 && h === this.options.commentPropName && l.length === 0 ? this.indentate(s) + `<!--${i}-->` + this.newLine : this.indentate(s) + "<" + h + a + l + this.tagEndChar + i + this.indentate(s) + f;
4333
+ return h[0] === "?" && (l = "?", f = ""), (o || o === "") && i.indexOf("<") === -1 ? this.indentate(s) + "<" + h + o + l + ">" + i + f : this.options.commentPropName !== !1 && h === this.options.commentPropName && l.length === 0 ? this.indentate(s) + `<!--${i}-->` + this.newLine : this.indentate(s) + "<" + h + o + l + this.tagEndChar + i + this.indentate(s) + f;
4326
4334
  }
4327
4335
  }, n.prototype.closeTag = function(i) {
4328
4336
  let h = "";
4329
4337
  return this.options.unpairedTags.indexOf(i) !== -1 ? this.options.suppressUnpairedNode || (h = "/") : this.options.suppressEmptyNode ? h = "/" : h = `></${i}`, h;
4330
- }, n.prototype.buildTextValNode = function(i, h, a, s) {
4338
+ }, n.prototype.buildTextValNode = function(i, h, o, s) {
4331
4339
  if (this.options.cdataPropName !== !1 && h === this.options.cdataPropName)
4332
4340
  return this.indentate(s) + `<![CDATA[${i}]]>` + this.newLine;
4333
4341
  if (this.options.commentPropName !== !1 && h === this.options.commentPropName)
4334
4342
  return this.indentate(s) + `<!--${i}-->` + this.newLine;
4335
4343
  if (h[0] === "?")
4336
- return this.indentate(s) + "<" + h + a + "?" + this.tagEndChar;
4344
+ return this.indentate(s) + "<" + h + o + "?" + this.tagEndChar;
4337
4345
  {
4338
4346
  let f = this.options.tagValueProcessor(h, i);
4339
- return f = this.replaceEntitiesValue(f), f === "" ? this.indentate(s) + "<" + h + a + this.closeTag(h) + this.tagEndChar : this.indentate(s) + "<" + h + a + ">" + f + "</" + h + this.tagEndChar;
4347
+ return f = this.replaceEntitiesValue(f), f === "" ? this.indentate(s) + "<" + h + o + this.closeTag(h) + this.tagEndChar : this.indentate(s) + "<" + h + o + ">" + f + "</" + h + this.tagEndChar;
4340
4348
  }
4341
4349
  }, n.prototype.replaceEntitiesValue = function(i) {
4342
4350
  if (i && i.length > 0 && this.options.processEntities)
4343
4351
  for (let h = 0; h < this.options.entities.length; h++) {
4344
- const a = this.options.entities[h];
4345
- i = i.replace(a.regex, a.val);
4352
+ const o = this.options.entities[h];
4353
+ i = i.replace(o.regex, o.val);
4346
4354
  }
4347
4355
  return i;
4348
4356
  };
@@ -4367,16 +4375,16 @@ function Ps() {
4367
4375
  }
4368
4376
  var pt = Ps();
4369
4377
  const nt = (r, e) => Object.fromEntries(
4370
- Object.entries(r).map(([t, n]) => e.includes(t) ? [t, n || ""] : [de.DavNamespace.includes(t) ? `d:${t}` : `oc:${t}`, n || ""])
4378
+ Object.entries(r).map(([t, n]) => e.includes(t) ? [t, n || ""] : [me.DavNamespace.includes(t) ? `d:${t}` : `oc:${t}`, n || ""])
4371
4379
  ), Yt = (r = [], {
4372
4380
  pattern: e,
4373
4381
  filterRules: t,
4374
4382
  limit: n = 0,
4375
- extraProps: o = []
4383
+ extraProps: a = []
4376
4384
  }) => {
4377
4385
  let u = "d:propfind";
4378
4386
  e && (u = "oc:search-files"), t && (u = "oc:filter-files");
4379
- const c = r.reduce((s, f) => Object.assign(s, { [f]: null }), {}), i = nt(c, o), h = {
4387
+ const c = r.reduce((s, f) => Object.assign(s, { [f]: null }), {}), i = nt(c, a), h = {
4380
4388
  [u]: {
4381
4389
  "d:prop": i,
4382
4390
  "@@xmlns:d": "DAV:",
@@ -4414,16 +4422,16 @@ const nt = (r, e) => Object.fromEntries(
4414
4422
  return t ? (e.version = t.split(","), r.get("tus-extension") && (e.extension = r.get("tus-extension").split(",")), r.get("tus-resumable") && (e.resumable = r.get("tus-resumable")), r.get("tus-max-size") && (e.maxSize = parseInt(r.get("tus-max-size"), 10)), e) : null;
4415
4423
  }, Ts = async (r) => {
4416
4424
  const e = (n) => {
4417
- const o = decodeURIComponent(n);
4418
- return n?.startsWith("/remote.php/dav/") ? M(o.replace("/remote.php/dav/", ""), {
4425
+ const a = decodeURIComponent(n);
4426
+ return n?.startsWith("/remote.php/dav/") ? M(a.replace("/remote.php/dav/", ""), {
4419
4427
  leadingSlash: !0,
4420
4428
  trailingSlash: !1
4421
- }) : o;
4429
+ }) : a;
4422
4430
  };
4423
- return (await os(r)).multistatus.response.map(({ href: n, propstat: o }) => {
4431
+ return (await os(r)).multistatus.response.map(({ href: n, propstat: a }) => {
4424
4432
  const u = {
4425
- ...as(o.prop, e(n), !0),
4426
- processing: o.status === "HTTP/1.1 425 TOO EARLY"
4433
+ ...as(a.prop, e(n), !0),
4434
+ processing: a.status === "HTTP/1.1 425 TOO EARLY"
4427
4435
  };
4428
4436
  return u.props.name && (u.props.name = u.props.name.toString()), u;
4429
4437
  });
@@ -4437,12 +4445,12 @@ const nt = (r, e) => Object.fromEntries(
4437
4445
  if (!n["d:error"])
4438
4446
  return t;
4439
4447
  if (n["d:error"]["s:message"]) {
4440
- const o = n["d:error"]["s:message"];
4441
- typeof o == "string" && (t.message = o);
4448
+ const a = n["d:error"]["s:message"];
4449
+ typeof a == "string" && (t.message = a);
4442
4450
  }
4443
4451
  if (n["d:error"]["s:errorcode"]) {
4444
- const o = n["d:error"]["s:errorcode"];
4445
- typeof o == "string" && (t.errorCode = o);
4452
+ const a = n["d:error"]["s:errorcode"];
4453
+ typeof a == "string" && (t.errorCode = a);
4446
4454
  }
4447
4455
  } catch {
4448
4456
  return t;
@@ -4463,10 +4471,10 @@ class Cs {
4463
4471
  async propfind(e, {
4464
4472
  depth: t = 1,
4465
4473
  properties: n = [],
4466
- headers: o = {},
4474
+ headers: a = {},
4467
4475
  ...u
4468
4476
  } = {}) {
4469
- const c = { ...o, Depth: t.toString() }, { body: i, result: h } = await this.request(e, {
4477
+ const c = { ...a, Depth: t.toString() }, { body: i, result: h } = await this.request(e, {
4470
4478
  method: se.propfind,
4471
4479
  data: Yt(n, { extraProps: this.extraProps }),
4472
4480
  headers: c,
@@ -4477,7 +4485,7 @@ class Cs {
4477
4485
  async report(e, {
4478
4486
  pattern: t = "",
4479
4487
  filterRules: n = null,
4480
- limit: o = 30,
4488
+ limit: a = 30,
4481
4489
  properties: u,
4482
4490
  ...c
4483
4491
  } = {}) {
@@ -4486,7 +4494,7 @@ class Cs {
4486
4494
  data: Yt(u, {
4487
4495
  pattern: t,
4488
4496
  filterRules: n,
4489
- limit: o,
4497
+ limit: a,
4490
4498
  extraProps: this.extraProps
4491
4499
  }),
4492
4500
  ...c
@@ -4496,25 +4504,25 @@ class Cs {
4496
4504
  range: h.headers.get("content-range")
4497
4505
  };
4498
4506
  }
4499
- copy(e, t, { overwrite: n = !1, headers: o = {}, ...u } = {}) {
4507
+ copy(e, t, { overwrite: n = !1, headers: a = {}, ...u } = {}) {
4500
4508
  const c = M(this.davPath, we(t));
4501
4509
  return this.request(e, {
4502
4510
  method: se.copy,
4503
- headers: { ...o, Destination: c, overwrite: n ? "T" : "F" },
4511
+ headers: { ...a, Destination: c, overwrite: n ? "T" : "F" },
4504
4512
  ...u
4505
4513
  });
4506
4514
  }
4507
- move(e, t, { overwrite: n = !1, headers: o = {}, ...u } = {}) {
4515
+ move(e, t, { overwrite: n = !1, headers: a = {}, ...u } = {}) {
4508
4516
  const c = M(this.davPath, we(t));
4509
4517
  return this.request(e, {
4510
4518
  method: se.move,
4511
- headers: { ...o, Destination: c, overwrite: n ? "T" : "F" },
4519
+ headers: { ...a, Destination: c, overwrite: n ? "T" : "F" },
4512
4520
  ...u
4513
4521
  });
4514
4522
  }
4515
4523
  put(e, t, {
4516
4524
  headers: n = {},
4517
- onUploadProgress: o,
4525
+ onUploadProgress: a,
4518
4526
  previousEntityTag: u,
4519
4527
  overwrite: c,
4520
4528
  ...i
@@ -4524,7 +4532,7 @@ class Cs {
4524
4532
  method: se.put,
4525
4533
  data: t,
4526
4534
  headers: h,
4527
- onUploadProgress: o,
4535
+ onUploadProgress: a,
4528
4536
  ...i
4529
4537
  });
4530
4538
  }
@@ -4532,8 +4540,8 @@ class Cs {
4532
4540
  return this.request(e, { method: se.delete, ...t });
4533
4541
  }
4534
4542
  propPatch(e, t, n = {}) {
4535
- const o = Es(t);
4536
- return this.request(e, { method: se.proppatch, data: o, ...n });
4543
+ const a = Es(t);
4544
+ return this.request(e, { method: se.proppatch, data: a, ...n });
4537
4545
  }
4538
4546
  getFileUrl(e) {
4539
4547
  return M(this.davPath, we(e));
@@ -4548,13 +4556,13 @@ class Cs {
4548
4556
  };
4549
4557
  }
4550
4558
  async request(e, t) {
4551
- const n = M(this.davPath, we(e), { leadingSlash: !0 }), o = {
4559
+ const n = M(this.davPath, we(e), { leadingSlash: !0 }), a = {
4552
4560
  ...t,
4553
4561
  url: n,
4554
4562
  headers: this.buildHeaders(t.headers || {})
4555
4563
  };
4556
4564
  try {
4557
- const u = await this.client.customRequest("", o);
4565
+ const u = await this.client.customRequest("", a);
4558
4566
  let c;
4559
4567
  if (u.status === 207) {
4560
4568
  const i = await u.text();
@@ -4578,35 +4586,40 @@ class Cs {
4578
4586
  }
4579
4587
  const Is = (r, e) => ({
4580
4588
  async listFileVersions(t, n = {}) {
4581
- const [o, ...u] = await r.propfind(
4589
+ const [a, ...u] = await r.propfind(
4582
4590
  M("meta", t, "v", { leadingSlash: !0 }),
4583
4591
  n
4584
4592
  );
4585
4593
  return u.map((c) => ue(c, r.extraProps));
4586
4594
  }
4587
4595
  }), Ss = (r, e) => ({
4588
- setFavorite(t, { path: n }, o, u = {}) {
4589
- const c = { [me.IsFavorite]: o ? "true" : "false" };
4596
+ setFavorite(t, { path: n }, a, u = {}) {
4597
+ const c = { [he.IsFavorite]: a ? "true" : "false" };
4590
4598
  return r.propPatch(M(t.webDavPath, n), c, u);
4591
4599
  }
4592
4600
  }), Fs = (r, e) => ({
4593
4601
  listFavoriteFiles({
4594
- davProperties: t = de.Default,
4602
+ davProperties: t = me.Default,
4595
4603
  username: n = "",
4596
- ...o
4604
+ ...a
4597
4605
  } = {}) {
4598
4606
  return r.report(M("files", n), {
4599
4607
  properties: t,
4600
4608
  filterRules: { favorite: 1 },
4601
- ...o
4609
+ ...a
4602
4610
  });
4603
4611
  }
4604
4612
  }), Us = (r, e) => {
4605
4613
  const t = Nr.create();
4606
4614
  e && t.interceptors.request.use((P) => (Object.assign(P.headers, e()), P));
4607
- const n = { axiosClient: t, baseUrl: r }, o = new Cs({ baseUrl: r, headers: e }), u = (P) => {
4608
- o.extraProps.push(P);
4609
- }, c = Vr(o), { getPathForFileId: i } = c, h = jr(o, c), { listFiles: a } = h, s = Ir(h), { getFileInfo: f } = s, { createFolder: l } = Or(o, s), g = Cr(o, n), { getFileContents: d } = g, { putFileContents: m } = Rr(o, s), { getFileUrl: w, revokeUrl: v } = Sr(o, g, n), { getPublicFileUrl: p } = Fr(o), { copyFiles: y } = Tr(o), { moveFiles: A } = $r(o), { deleteFile: N } = Lr(o), { restoreFile: b } = kr(o), { listFileVersions: E } = Is(o), { restoreFileVersion: x } = Ur(o), { clearTrashBin: T } = _r(o), { search: O } = Mr(o), { listFavoriteFiles: I } = Fs(o), { setFavorite: C } = Ss(o);
4615
+ const n = { axiosClient: t, baseUrl: r }, a = new Cs({ baseUrl: r, headers: e }), u = (P) => {
4616
+ a.extraProps.push(P);
4617
+ }, c = Vr(a), { getPathForFileId: i } = c, h = jr(a, c), { listFiles: o } = h, s = Ir(h), { getFileInfo: f } = s, { createFolder: l } = Or(a, s), g = Cr(a, n), { getFileContents: d } = g, { putFileContents: m } = Rr(a, s), { getFileUrl: w, revokeUrl: v } = Sr(
4618
+ a,
4619
+ g,
4620
+ s,
4621
+ n
4622
+ ), { getPublicFileUrl: p } = Fr(a), { copyFiles: y } = Tr(a), { moveFiles: A } = $r(a), { deleteFile: N } = Lr(a), { restoreFile: b } = kr(a), { listFileVersions: E } = Is(a), { restoreFileVersion: x } = Ur(a), { clearTrashBin: T } = _r(a), { search: O } = Mr(a), { listFavoriteFiles: I } = Fs(a), { setFavorite: C } = Ss(a);
4610
4623
  return {
4611
4624
  copyFiles: y,
4612
4625
  createFolder: l,
@@ -4618,7 +4631,7 @@ const Is = (r, e) => ({
4618
4631
  getFileUrl: w,
4619
4632
  getPublicFileUrl: p,
4620
4633
  getPathForFileId: i,
4621
- listFiles: a,
4634
+ listFiles: o,
4622
4635
  listFileVersions: E,
4623
4636
  moveFiles: A,
4624
4637
  putFileContents: m,