@wp-playground/storage 3.1.2 → 3.1.3

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.
package/index.js CHANGED
@@ -1,22 +1,22 @@
1
- import { Semaphore as ar, normalizePath as ce, joinPaths as Qr } from "@php-wasm/util";
2
- import { Octokit as tn } from "octokit";
3
- import en from "crc-32";
4
- import fe from "pako";
1
+ import { Semaphore as cr, normalizePath as fe, joinPaths as en } from "@php-wasm/util";
2
+ import { Octokit as rn } from "octokit";
3
+ import nn from "crc-32";
4
+ import ue from "pako";
5
5
  import { StreamedFile as K } from "@php-wasm/stream-compression";
6
- import { ZipReader as _e, BlobReader as $e, BlobWriter as rn } from "@zip.js/zip.js";
7
- function ua(n) {
8
- return new tn({
6
+ import { ZipReader as $e, BlobReader as Ue, BlobWriter as on } from "@zip.js/zip.js";
7
+ function ha(n) {
8
+ return new rn({
9
9
  auth: n
10
10
  });
11
11
  }
12
- function la(n, t = "") {
12
+ function pa(n, t = "") {
13
13
  t.length && !t.endsWith("/") && (t += "/");
14
14
  const e = {};
15
15
  for (const r of n)
16
16
  r.path.startsWith(t) && (e[r.path.substring(t.length)] = r.content);
17
17
  return e;
18
18
  }
19
- async function nn(n, t, e, r, o, c = {}) {
19
+ async function an(n, t, e, r, o, c = {}) {
20
20
  c.progress || (c.progress = {
21
21
  foundFiles: 0,
22
22
  downloadedFiles: 0
@@ -33,9 +33,9 @@ async function nn(n, t, e, r, o, c = {}) {
33
33
  );
34
34
  for (const b of y)
35
35
  b.type === "file" ? (++c.progress.foundFiles, f == null || f(c.progress), s.push(
36
- an(n, t, e, r, b).then((v) => (++c.progress.downloadedFiles, f == null || f(c.progress), v))
36
+ cn(n, t, e, r, b).then((v) => (++c.progress.downloadedFiles, f == null || f(c.progress), v))
37
37
  )) : b.type === "dir" && h.push(
38
- nn(
38
+ an(
39
39
  n,
40
40
  t,
41
41
  e,
@@ -49,9 +49,9 @@ async function nn(n, t, e, r, o, c = {}) {
49
49
  );
50
50
  return [...d, ...w];
51
51
  }
52
- const on = new ar({ concurrency: 15 });
53
- async function an(n, t, e, r, o) {
54
- const c = await on.acquire();
52
+ const sn = new cr({ concurrency: 15 });
53
+ async function cn(n, t, e, r, o) {
54
+ const c = await sn.acquire();
55
55
  try {
56
56
  const { data: f } = await n.rest.repos.getContent({
57
57
  owner: t,
@@ -64,19 +64,19 @@ async function an(n, t, e, r, o) {
64
64
  return {
65
65
  name: o.name,
66
66
  path: o.path,
67
- content: sn(f.content)
67
+ content: fn(f.content)
68
68
  };
69
69
  } finally {
70
70
  c();
71
71
  }
72
72
  }
73
- function sn(n) {
73
+ function fn(n) {
74
74
  const t = window.atob(n), e = t.length, r = new Uint8Array(e);
75
75
  for (let o = 0; o < e; o++)
76
76
  r[o] = t.charCodeAt(o);
77
77
  return r;
78
78
  }
79
- async function ha(n, t, e, r, o) {
79
+ async function da(n, t, e, r, o) {
80
80
  var d;
81
81
  const { data: c } = await n.rest.pulls.get({
82
82
  owner: t,
@@ -99,7 +99,7 @@ async function ha(n, t, e, r, o) {
99
99
  archive_format: "zip"
100
100
  })).data;
101
101
  }
102
- async function pa(n, t, e) {
102
+ async function ya(n, t, e) {
103
103
  var c;
104
104
  const { data: r, headers: o } = await n.request(
105
105
  "GET /repos/{owner}/{repo}",
@@ -110,7 +110,7 @@ async function pa(n, t, e) {
110
110
  );
111
111
  return !(!o["x-oauth-scopes"] || !((c = r.permissions) != null && c.push));
112
112
  }
113
- async function da(n, t, e, r, o) {
113
+ async function wa(n, t, e, r, o) {
114
114
  await n.request("GET /repos/{owner}/{repo}/branches/{branch}", {
115
115
  owner: t,
116
116
  repo: e,
@@ -130,7 +130,7 @@ async function da(n, t, e, r, o) {
130
130
  ref: `refs/heads/${r}`
131
131
  });
132
132
  }
133
- async function ya(n, t, e) {
133
+ async function ga(n, t, e) {
134
134
  const r = await n.request("GET /user");
135
135
  return (await n.request("GET /repos/{owner}/{repo}/forks", {
136
136
  owner: t,
@@ -142,7 +142,7 @@ async function ya(n, t, e) {
142
142
  repo: e
143
143
  }), r.data.login;
144
144
  }
145
- async function wa(n, t, e, r, o, c) {
145
+ async function ma(n, t, e, r, o, c) {
146
146
  const {
147
147
  data: { sha: f }
148
148
  } = await n.request("POST /repos/{owner}/{repo}/git/commits", {
@@ -154,8 +154,8 @@ async function wa(n, t, e, r, o, c) {
154
154
  });
155
155
  return f;
156
156
  }
157
- async function ga(n, t, e, r, o) {
158
- const c = await cn(
157
+ async function ba(n, t, e, r, o) {
158
+ const c = await un(
159
159
  n,
160
160
  t,
161
161
  e,
@@ -174,21 +174,21 @@ async function ga(n, t, e, r, o) {
174
174
  });
175
175
  return f;
176
176
  }
177
- async function cn(n, t, e, r, o) {
177
+ async function un(n, t, e, r, o) {
178
178
  const c = [];
179
179
  for (const [f, s] of o.create)
180
- c.push(Ue(n, t, e, f, s));
180
+ c.push(Pe(n, t, e, f, s));
181
181
  for (const [f, s] of o.update)
182
- c.push(Ue(n, t, e, f, s));
182
+ c.push(Pe(n, t, e, f, s));
183
183
  for (const f of o.delete)
184
- c.push(fn(n, t, e, r, f));
184
+ c.push(ln(n, t, e, r, f));
185
185
  return Promise.all(c).then(
186
186
  (f) => f.filter((s) => !!s)
187
187
  );
188
188
  }
189
- const sr = new ar({ concurrency: 10 });
190
- async function Ue(n, t, e, r, o) {
191
- const c = await sr.acquire();
189
+ const fr = new cr({ concurrency: 10 });
190
+ async function Pe(n, t, e, r, o) {
191
+ const c = await fr.acquire();
192
192
  try {
193
193
  if (ArrayBuffer.isView(o))
194
194
  try {
@@ -207,7 +207,7 @@ async function Ue(n, t, e, r, o) {
207
207
  owner: t,
208
208
  repo: e,
209
209
  encoding: "base64",
210
- content: un(o)
210
+ content: hn(o)
211
211
  });
212
212
  return {
213
213
  path: r,
@@ -225,8 +225,8 @@ async function Ue(n, t, e, r, o) {
225
225
  c();
226
226
  }
227
227
  }
228
- async function fn(n, t, e, r, o) {
229
- const c = await sr.acquire();
228
+ async function ln(n, t, e, r, o) {
229
+ const c = await fr.acquire();
230
230
  try {
231
231
  return await n.request("HEAD /repos/{owner}/{repo}/contents/:path", {
232
232
  owner: t,
@@ -244,14 +244,14 @@ async function fn(n, t, e, r, o) {
244
244
  c();
245
245
  }
246
246
  }
247
- function un(n) {
247
+ function hn(n) {
248
248
  const t = [], e = n.byteLength;
249
249
  for (let r = 0; r < e; r++)
250
250
  t.push(String.fromCharCode(n[r]));
251
251
  return window.btoa(t.join(""));
252
252
  }
253
- async function* ma(n, t, { exceptPaths: e = [] } = {}) {
254
- if (t = ce(t), !await n.isDir(t)) {
253
+ async function* va(n, t, { exceptPaths: e = [] } = {}) {
254
+ if (t = fe(t), !await n.isDir(t)) {
255
255
  await n.fileExists(t) && (yield {
256
256
  path: t,
257
257
  read: async () => await n.readFileAsBuffer(t)
@@ -265,7 +265,7 @@ async function* ma(n, t, { exceptPaths: e = [] } = {}) {
265
265
  return;
266
266
  const c = await n.listFiles(o);
267
267
  for (const f of c) {
268
- const s = Qr(o, f);
268
+ const s = en(o, f);
269
269
  e.includes(s.substring(t.length + 1)) || (await n.isDir(s) ? r.push(s) : yield {
270
270
  path: s,
271
271
  read: async () => await n.readFileAsBuffer(s)
@@ -273,7 +273,7 @@ async function* ma(n, t, { exceptPaths: e = [] } = {}) {
273
273
  }
274
274
  }
275
275
  }
276
- async function ba(n, t) {
276
+ async function Ea(n, t) {
277
277
  const e = {
278
278
  create: /* @__PURE__ */ new Map(),
279
279
  update: /* @__PURE__ */ new Map(),
@@ -282,26 +282,26 @@ async function ba(n, t) {
282
282
  for await (const o of t) {
283
283
  r.add(o.path);
284
284
  const c = n.get(o.path), f = await o.read();
285
- c ? ln(c, f) || e.update.set(o.path, f) : e.create.set(o.path, f);
285
+ c ? pn(c, f) || e.update.set(o.path, f) : e.create.set(o.path, f);
286
286
  }
287
287
  for (const o of n.keys())
288
288
  r.has(o) || e.delete.add(o);
289
289
  return e;
290
290
  }
291
- function ln(n, t) {
291
+ function pn(n, t) {
292
292
  return n.length === t.length && n.every((e, r) => e === t[r]);
293
293
  }
294
- async function hn(n) {
295
- return n.type === "local-fs" ? n.handle : pn(n.path);
294
+ async function dn(n) {
295
+ return n.type === "local-fs" ? n.handle : yn(n.path);
296
296
  }
297
- async function pn(n) {
297
+ async function yn(n) {
298
298
  const t = n.split("/").filter((r) => r.length > 0);
299
299
  let e = await navigator.storage.getDirectory();
300
300
  for (const r of t)
301
301
  e = await e.getDirectoryHandle(r, { create: !0 });
302
302
  return e;
303
303
  }
304
- async function va(n) {
304
+ async function xa(n) {
305
305
  const e = await (await navigator.storage.getDirectory()).resolve(n);
306
306
  if (e === null)
307
307
  throw new DOMException(
@@ -310,14 +310,14 @@ async function va(n) {
310
310
  );
311
311
  return "/" + e.join("/");
312
312
  }
313
- async function Ea(n) {
314
- const t = await hn(n);
313
+ async function Aa(n) {
314
+ const t = await dn(n);
315
315
  for await (const e of t.keys())
316
316
  await t.removeEntry(e, {
317
317
  recursive: !0
318
318
  });
319
319
  }
320
- function dn(n) {
320
+ function wn(n) {
321
321
  let t = [n];
322
322
  return {
323
323
  next() {
@@ -331,14 +331,14 @@ function dn(n) {
331
331
  }
332
332
  };
333
333
  }
334
- function cr(n) {
335
- return n[Symbol.asyncIterator] ? n[Symbol.asyncIterator]() : n[Symbol.iterator] ? n[Symbol.iterator]() : n.next ? n : dn(n);
334
+ function ur(n) {
335
+ return n[Symbol.asyncIterator] ? n[Symbol.asyncIterator]() : n[Symbol.iterator] ? n[Symbol.iterator]() : n.next ? n : wn(n);
336
336
  }
337
- class fr {
337
+ class lr {
338
338
  constructor(t) {
339
339
  if (typeof Buffer > "u")
340
340
  throw new Error("Missing Buffer dependency");
341
- this.stream = cr(t), this.buffer = null, this.cursor = 0, this.undoCursor = 0, this.started = !1, this._ended = !1, this._discardedBytes = 0;
341
+ this.stream = ur(t), this.buffer = null, this.cursor = 0, this.undoCursor = 0, this.started = !1, this._ended = !1, this._discardedBytes = 0;
342
342
  }
343
343
  eof() {
344
344
  return this._ended && this.cursor === this.buffer.length;
@@ -378,7 +378,7 @@ class fr {
378
378
  async _accumulate(t) {
379
379
  if (this._ended) return;
380
380
  const e = [this.buffer];
381
- for (; this.cursor + t > yn(e); ) {
381
+ for (; this.cursor + t > gn(e); ) {
382
382
  const r = await this._next();
383
383
  if (this._ended) break;
384
384
  e.push(r);
@@ -392,10 +392,10 @@ class fr {
392
392
  this.buffer = await this._next();
393
393
  }
394
394
  }
395
- function yn(n) {
395
+ function gn(n) {
396
396
  return n.reduce((t, e) => t + e.length, 0);
397
397
  }
398
- function wn(n, t) {
398
+ function mn(n, t) {
399
399
  const e = t.toString(16);
400
400
  return "0".repeat(n - e.length) + e;
401
401
  }
@@ -408,11 +408,11 @@ class D {
408
408
  }
409
409
  static encode(t) {
410
410
  typeof t == "string" && (t = Buffer.from(t));
411
- const e = t.length + 4, r = wn(4, e);
411
+ const e = t.length + 4, r = mn(4, e);
412
412
  return Buffer.concat([Buffer.from(r, "utf8"), t]);
413
413
  }
414
414
  static streamReader(t) {
415
- const e = new fr(t);
415
+ const e = new lr(t);
416
416
  return async function() {
417
417
  try {
418
418
  let o = await e.read(4);
@@ -467,19 +467,19 @@ class ut extends it {
467
467
  }
468
468
  }
469
469
  ut.code = "UnsafeFilepathError";
470
- function ur(n, t) {
470
+ function hr(n, t) {
471
471
  return -(n < t) || +(n > t);
472
472
  }
473
- function lr(n, t) {
474
- return ur(n.path, t.path);
473
+ function pr(n, t) {
474
+ return hr(n.path, t.path);
475
475
  }
476
- function gn(n, t) {
477
- return ur(Pe(n), Pe(t));
476
+ function bn(n, t) {
477
+ return hr(ke(n), ke(t));
478
478
  }
479
- function Pe(n) {
479
+ function ke(n) {
480
480
  return n.mode === "040000" ? n.path + "/" : n.path;
481
481
  }
482
- function hr(n) {
482
+ function dr(n) {
483
483
  switch (n) {
484
484
  case "040000":
485
485
  return "tree";
@@ -494,7 +494,7 @@ function hr(n) {
494
494
  }
495
495
  throw new I(`Unexpected GitTree entry mode: ${n}`);
496
496
  }
497
- function mn(n) {
497
+ function vn(n) {
498
498
  const t = [];
499
499
  let e = 0;
500
500
  for (; e < n.length; ) {
@@ -510,7 +510,7 @@ function mn(n) {
510
510
  );
511
511
  let c = n.slice(e, r).toString("utf8");
512
512
  c === "40000" && (c = "040000");
513
- const f = hr(c), s = n.slice(r + 1, o).toString("utf8");
513
+ const f = dr(c), s = n.slice(r + 1, o).toString("utf8");
514
514
  if (s.includes("\\") || s.includes("/"))
515
515
  throw new ut(s);
516
516
  const h = n.slice(o + 1, o + 21).toString("hex");
@@ -518,7 +518,7 @@ function mn(n) {
518
518
  }
519
519
  return t;
520
520
  }
521
- function bn(n) {
521
+ function En(n) {
522
522
  if (typeof n == "number" && (n = n.toString(8)), n.match(/^0?4.*/)) return "040000";
523
523
  if (n.match(/^1006.*/)) return "100644";
524
524
  if (n.match(/^1007.*/)) return "100755";
@@ -526,21 +526,21 @@ function bn(n) {
526
526
  if (n.match(/^160.*/)) return "160000";
527
527
  throw new I(`Could not understand file mode: ${n}`);
528
528
  }
529
- function vn(n) {
530
- return !n.oid && n.sha && (n.oid = n.sha), n.mode = bn(n.mode), n.type || (n.type = hr(n.mode)), n;
529
+ function xn(n) {
530
+ return !n.oid && n.sha && (n.oid = n.sha), n.mode = En(n.mode), n.type || (n.type = dr(n.mode)), n;
531
531
  }
532
- class ue {
532
+ class le {
533
533
  constructor(t) {
534
534
  if (Buffer.isBuffer(t))
535
- this._entries = mn(t);
535
+ this._entries = vn(t);
536
536
  else if (Array.isArray(t))
537
- this._entries = t.map(vn);
537
+ this._entries = t.map(xn);
538
538
  else
539
539
  throw new I("invalid type passed to GitTree constructor");
540
- this._entries.sort(lr);
540
+ this._entries.sort(pr);
541
541
  }
542
542
  static from(t) {
543
- return new ue(t);
543
+ return new le(t);
544
544
  }
545
545
  render() {
546
546
  return this._entries.map((t) => `${t.mode} ${t.type} ${t.oid} ${t.path}`).join(`
@@ -548,7 +548,7 @@ class ue {
548
548
  }
549
549
  toObject() {
550
550
  const t = [...this._entries];
551
- return t.sort(gn), Buffer.concat(
551
+ return t.sort(bn), Buffer.concat(
552
552
  t.map((e) => {
553
553
  const r = Buffer.from(e.mode.replace(/^0/, "")), o = Buffer.from(" "), c = Buffer.from(e.path, "utf8"), f = Buffer.from([0]), s = Buffer.from(e.oid, "hex");
554
554
  return Buffer.concat([r, o, c, f, s]);
@@ -566,21 +566,21 @@ class ue {
566
566
  yield t;
567
567
  }
568
568
  }
569
- function re({ name: n, email: t, timestamp: e, timezoneOffset: r }) {
570
- return r = En(r), `${n} <${t}> ${e} ${r}`;
569
+ function ne({ name: n, email: t, timestamp: e, timezoneOffset: r }) {
570
+ return r = An(r), `${n} <${t}> ${e} ${r}`;
571
571
  }
572
- function En(n) {
573
- const t = xn(An(n));
572
+ function An(n) {
573
+ const t = Bn(Sn(n));
574
574
  n = Math.abs(n);
575
575
  const e = Math.floor(n / 60);
576
576
  n -= e * 60;
577
577
  let r = String(e), o = String(n);
578
578
  return r.length < 2 && (r = "0" + r), o.length < 2 && (o = "0" + o), (t === -1 ? "-" : "+") + r + o;
579
579
  }
580
- function xn(n) {
580
+ function Bn(n) {
581
581
  return Math.sign(n) || (Object.is(n, -0) ? -1 : 1);
582
582
  }
583
- function An(n) {
583
+ function Sn(n) {
584
584
  return n === 0 ? n : -n;
585
585
  }
586
586
  function V(n) {
@@ -595,14 +595,14 @@ function Et(n) {
595
595
  name: t,
596
596
  email: e,
597
597
  timestamp: Number(r),
598
- timezoneOffset: Bn(o)
598
+ timezoneOffset: Fn(o)
599
599
  };
600
600
  }
601
- function Bn(n) {
601
+ function Fn(n) {
602
602
  let [, t, e, r] = n.match(/(\+|-)(\d\d)(\d\d)/);
603
- return r = (t === "+" ? 1 : -1) * (Number(e) * 60 + Number(r)), Sn(r);
603
+ return r = (t === "+" ? 1 : -1) * (Number(e) * 60 + Number(r)), In(r);
604
604
  }
605
- function Sn(n) {
605
+ function In(n) {
606
606
  return n === 0 ? n : -n;
607
607
  }
608
608
  class ot {
@@ -625,7 +625,7 @@ class ot {
625
625
  return `object ${t.object}
626
626
  type ${t.type}
627
627
  tag ${t.tag}
628
- tagger ${re(t.tagger)}
628
+ tagger ${ne(t.tagger)}
629
629
 
630
630
  ${t.message}
631
631
  ${t.gpgsig ? t.gpgsig : ""}`;
@@ -699,7 +699,7 @@ function Pt(n) {
699
699
  `) + `
700
700
  `;
701
701
  }
702
- function Fn(n) {
702
+ function _n(n) {
703
703
  return n.split(`
704
704
  `).map((t) => t.replace(/^ /, "")).join(`
705
705
  `);
@@ -777,10 +777,10 @@ gpgsig` + Pt(e) + `
777
777
  `;
778
778
  }
779
779
  const r = t.author;
780
- e += `author ${re(r)}
780
+ e += `author ${ne(r)}
781
781
  `;
782
782
  const o = t.committer || t.author;
783
- return e += `committer ${re(o)}
783
+ return e += `committer ${ne(o)}
784
784
  `, t.gpgsig && (e += "gpgsig" + Pt(t.gpgsig)), e;
785
785
  }
786
786
  static render(t) {
@@ -807,7 +807,7 @@ gpgsig`)), r = t.slice(
807
807
  this._commit.indexOf("-----BEGIN PGP SIGNATURE-----"),
808
808
  this._commit.indexOf("-----END PGP SIGNATURE-----") + 27
809
809
  );
810
- return Fn(t);
810
+ return _n(t);
811
811
  }
812
812
  static async sign(t, e, r) {
813
813
  const o = t.withoutSignature(), c = M.justMessage(t._commit);
@@ -819,7 +819,7 @@ gpgsig` + Pt(f) + `
819
819
  return M.from(h);
820
820
  }
821
821
  }
822
- class In {
822
+ class $n {
823
823
  static wrap({ type: t, object: e }) {
824
824
  return Buffer.concat([
825
825
  Buffer.from(`${t} ${e.byteLength.toString()}\0`),
@@ -892,22 +892,22 @@ class z {
892
892
  return this._start += 4, e;
893
893
  }
894
894
  }
895
- function _n(n, t) {
896
- const e = new z(n), r = ke(e);
895
+ function Un(n, t) {
896
+ const e = new z(n), r = Te(e);
897
897
  if (r !== t.byteLength)
898
898
  throw new I(
899
899
  `applyDelta expected source buffer to be ${r} bytes but the provided buffer was ${t.length} bytes`
900
900
  );
901
- const o = ke(e);
901
+ const o = Te(e);
902
902
  let c;
903
- const f = Oe(e, t);
903
+ const f = Re(e, t);
904
904
  if (f.byteLength === o)
905
905
  c = f;
906
906
  else {
907
907
  c = Buffer.alloc(o);
908
908
  const s = new z(c);
909
909
  for (s.copy(f); !e.eof(); )
910
- s.copy(Oe(e, t));
910
+ s.copy(Re(e, t));
911
911
  const h = s.tell();
912
912
  if (o !== h)
913
913
  throw new I(
@@ -916,30 +916,30 @@ function _n(n, t) {
916
916
  }
917
917
  return c;
918
918
  }
919
- function ke(n) {
919
+ function Te(n) {
920
920
  let t = 0, e = 0, r = null;
921
921
  do
922
922
  r = n.readUInt8(), t |= (r & 127) << e, e += 7;
923
923
  while (r & 128);
924
924
  return t;
925
925
  }
926
- function Te(n, t, e) {
926
+ function Oe(n, t, e) {
927
927
  let r = 0, o = 0;
928
928
  for (; e--; )
929
929
  t & 1 && (r |= n.readUInt8() << o), t >>= 1, o += 8;
930
930
  return r;
931
931
  }
932
- function Oe(n, t) {
932
+ function Re(n, t) {
933
933
  const e = n.readUInt8(), r = 128, o = 15, c = 112;
934
934
  if (e & r) {
935
- const f = Te(n, e & o, 4);
936
- let s = Te(n, (e & c) >> 4, 3);
935
+ const f = Oe(n, e & o, 4);
936
+ let s = Oe(n, (e & c) >> 4, 3);
937
937
  return s === 0 && (s = 65536), t.slice(f, f + s);
938
938
  } else
939
939
  return n.slice(e);
940
940
  }
941
- async function $n(n, t) {
942
- const e = new fr(n);
941
+ async function Pn(n, t) {
942
+ const e = new lr(n);
943
943
  let r = await e.read(4);
944
944
  if (r = r.toString("utf8"), r !== "PACK")
945
945
  throw new I(`Invalid PACK header '${r}'`);
@@ -949,7 +949,7 @@ async function $n(n, t) {
949
949
  let c = await e.read(4);
950
950
  if (c = c.readUInt32BE(0), !(c < 1))
951
951
  for (; !e.eof() && c--; ) {
952
- const f = e.tell(), { type: s, length: h, ofs: y, reference: d } = await Un(e), w = new fe.Inflate();
952
+ const f = e.tell(), { type: s, length: h, ofs: y, reference: d } = await kn(e), w = new ue.Inflate();
953
953
  for (; !w.result; ) {
954
954
  const b = await e.chunk();
955
955
  if (!b) break;
@@ -975,7 +975,7 @@ async function $n(n, t) {
975
975
  }
976
976
  }
977
977
  }
978
- async function Un(n) {
978
+ async function kn(n) {
979
979
  let t = await n.byte();
980
980
  const e = t >> 4 & 7;
981
981
  let r = t & 15;
@@ -997,15 +997,15 @@ async function Un(n) {
997
997
  }
998
998
  return e === 7 && (c = await n.read(20)), { type: e, length: r, ofs: o, reference: c };
999
999
  }
1000
- async function Pn(n) {
1001
- return fe.inflate(n);
1000
+ async function Tn(n) {
1001
+ return ue.inflate(n);
1002
1002
  }
1003
- var pr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1004
- function kn(n) {
1003
+ var yr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1004
+ function On(n) {
1005
1005
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
1006
1006
  }
1007
- var ne = { exports: {} };
1008
- typeof Object.create == "function" ? ne.exports = function(t, e) {
1007
+ var ie = { exports: {} };
1008
+ typeof Object.create == "function" ? ie.exports = function(t, e) {
1009
1009
  e && (t.super_ = e, t.prototype = Object.create(e.prototype, {
1010
1010
  constructor: {
1011
1011
  value: t,
@@ -1014,7 +1014,7 @@ typeof Object.create == "function" ? ne.exports = function(t, e) {
1014
1014
  configurable: !0
1015
1015
  }
1016
1016
  }));
1017
- } : ne.exports = function(t, e) {
1017
+ } : ie.exports = function(t, e) {
1018
1018
  if (e) {
1019
1019
  t.super_ = e;
1020
1020
  var r = function() {
@@ -1022,16 +1022,16 @@ typeof Object.create == "function" ? ne.exports = function(t, e) {
1022
1022
  r.prototype = e.prototype, t.prototype = new r(), t.prototype.constructor = t;
1023
1023
  }
1024
1024
  };
1025
- var Tn = ne.exports, ie = { exports: {} }, le = {}, St = {};
1026
- St.byteLength = Dn;
1027
- St.toByteArray = Nn;
1028
- St.fromByteArray = Ln;
1029
- var W = [], L = [], On = typeof Uint8Array < "u" ? Uint8Array : Array, kt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
1030
- for (var Z = 0, Rn = kt.length; Z < Rn; ++Z)
1025
+ var Rn = ie.exports, oe = { exports: {} }, he = {}, St = {};
1026
+ St.byteLength = Nn;
1027
+ St.toByteArray = Mn;
1028
+ St.fromByteArray = qn;
1029
+ var W = [], L = [], Dn = typeof Uint8Array < "u" ? Uint8Array : Array, kt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
1030
+ for (var Z = 0, jn = kt.length; Z < jn; ++Z)
1031
1031
  W[Z] = kt[Z], L[kt.charCodeAt(Z)] = Z;
1032
1032
  L[45] = 62;
1033
1033
  L[95] = 63;
1034
- function dr(n) {
1034
+ function wr(n) {
1035
1035
  var t = n.length;
1036
1036
  if (t % 4 > 0)
1037
1037
  throw new Error("Invalid string. Length must be a multiple of 4");
@@ -1040,39 +1040,39 @@ function dr(n) {
1040
1040
  var r = e === t ? 0 : 4 - e % 4;
1041
1041
  return [e, r];
1042
1042
  }
1043
- function Dn(n) {
1044
- var t = dr(n), e = t[0], r = t[1];
1043
+ function Nn(n) {
1044
+ var t = wr(n), e = t[0], r = t[1];
1045
1045
  return (e + r) * 3 / 4 - r;
1046
1046
  }
1047
- function jn(n, t, e) {
1047
+ function Cn(n, t, e) {
1048
1048
  return (t + e) * 3 / 4 - e;
1049
1049
  }
1050
- function Nn(n) {
1051
- var t, e = dr(n), r = e[0], o = e[1], c = new On(jn(n, r, o)), f = 0, s = o > 0 ? r - 4 : r, h;
1050
+ function Mn(n) {
1051
+ var t, e = wr(n), r = e[0], o = e[1], c = new Dn(Cn(n, r, o)), f = 0, s = o > 0 ? r - 4 : r, h;
1052
1052
  for (h = 0; h < s; h += 4)
1053
1053
  t = L[n.charCodeAt(h)] << 18 | L[n.charCodeAt(h + 1)] << 12 | L[n.charCodeAt(h + 2)] << 6 | L[n.charCodeAt(h + 3)], c[f++] = t >> 16 & 255, c[f++] = t >> 8 & 255, c[f++] = t & 255;
1054
1054
  return o === 2 && (t = L[n.charCodeAt(h)] << 2 | L[n.charCodeAt(h + 1)] >> 4, c[f++] = t & 255), o === 1 && (t = L[n.charCodeAt(h)] << 10 | L[n.charCodeAt(h + 1)] << 4 | L[n.charCodeAt(h + 2)] >> 2, c[f++] = t >> 8 & 255, c[f++] = t & 255), c;
1055
1055
  }
1056
- function Cn(n) {
1056
+ function Ln(n) {
1057
1057
  return W[n >> 18 & 63] + W[n >> 12 & 63] + W[n >> 6 & 63] + W[n & 63];
1058
1058
  }
1059
- function Mn(n, t, e) {
1059
+ function Gn(n, t, e) {
1060
1060
  for (var r, o = [], c = t; c < e; c += 3)
1061
- r = (n[c] << 16 & 16711680) + (n[c + 1] << 8 & 65280) + (n[c + 2] & 255), o.push(Cn(r));
1061
+ r = (n[c] << 16 & 16711680) + (n[c + 1] << 8 & 65280) + (n[c + 2] & 255), o.push(Ln(r));
1062
1062
  return o.join("");
1063
1063
  }
1064
- function Ln(n) {
1064
+ function qn(n) {
1065
1065
  for (var t, e = n.length, r = e % 3, o = [], c = 16383, f = 0, s = e - r; f < s; f += c)
1066
- o.push(Mn(n, f, f + c > s ? s : f + c));
1066
+ o.push(Gn(n, f, f + c > s ? s : f + c));
1067
1067
  return r === 1 ? (t = n[e - 1], o.push(
1068
1068
  W[t >> 2] + W[t << 4 & 63] + "=="
1069
1069
  )) : r === 2 && (t = (n[e - 2] << 8) + n[e - 1], o.push(
1070
1070
  W[t >> 10] + W[t >> 4 & 63] + W[t << 2 & 63] + "="
1071
1071
  )), o.join("");
1072
1072
  }
1073
- var he = {};
1073
+ var pe = {};
1074
1074
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
1075
- he.read = function(n, t, e, r, o) {
1075
+ pe.read = function(n, t, e, r, o) {
1076
1076
  var c, f, s = o * 8 - r - 1, h = (1 << s) - 1, y = h >> 1, d = -7, w = e ? o - 1 : 0, b = e ? -1 : 1, v = n[t + w];
1077
1077
  for (w += b, c = v & (1 << -d) - 1, v >>= -d, d += s; d > 0; c = c * 256 + n[t + w], w += b, d -= 8)
1078
1078
  ;
@@ -1087,7 +1087,7 @@ he.read = function(n, t, e, r, o) {
1087
1087
  }
1088
1088
  return (v ? -1 : 1) * f * Math.pow(2, c - r);
1089
1089
  };
1090
- he.write = function(n, t, e, r, o, c) {
1090
+ pe.write = function(n, t, e, r, o, c) {
1091
1091
  var f, s, h, y = c * 8 - o - 1, d = (1 << y) - 1, w = d >> 1, b = o === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, v = r ? 0 : c - 1, _ = r ? 1 : -1, P = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
1092
1092
  for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (s = isNaN(t) ? 1 : 0, f = d) : (f = Math.floor(Math.log(t) / Math.LN2), t * (h = Math.pow(2, -f)) < 1 && (f--, h *= 2), f + w >= 1 ? t += b / h : t += b * Math.pow(2, 1 - w), t * h >= 2 && (f++, h /= 2), f + w >= d ? (s = 0, f = d) : f + w >= 1 ? (s = (t * h - 1) * Math.pow(2, o), f = f + w) : (s = t * Math.pow(2, w - 1) * Math.pow(2, o), f = 0)); o >= 8; n[e + v] = s & 255, v += _, s /= 256, o -= 8)
1093
1093
  ;
@@ -1102,7 +1102,7 @@ he.write = function(n, t, e, r, o, c) {
1102
1102
  * @license MIT
1103
1103
  */
1104
1104
  (function(n) {
1105
- var t = St, e = he, r = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
1105
+ var t = St, e = pe, r = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
1106
1106
  n.Buffer = s, n.SlowBuffer = S, n.INSPECT_MAX_BYTES = 50;
1107
1107
  var o = 2147483647;
1108
1108
  n.kMaxLength = o, s.TYPED_ARRAY_SUPPORT = c(), !s.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
@@ -1330,7 +1330,7 @@ he.write = function(n, t, e, r, o, c) {
1330
1330
  case "hex":
1331
1331
  return a >>> 1;
1332
1332
  case "base64":
1333
- return Se(u).length;
1333
+ return Fe(u).length;
1334
1334
  default:
1335
1335
  if (p)
1336
1336
  return l ? -1 : $t(u).length;
@@ -1345,22 +1345,22 @@ he.write = function(n, t, e, r, o, c) {
1345
1345
  for (u || (u = "utf8"); ; )
1346
1346
  switch (u) {
1347
1347
  case "hex":
1348
- return Wr(this, i, a);
1348
+ return Jr(this, i, a);
1349
1349
  case "utf8":
1350
1350
  case "utf-8":
1351
- return ve(this, i, a);
1351
+ return Ee(this, i, a);
1352
1352
  case "ascii":
1353
- return Hr(this, i, a);
1353
+ return Wr(this, i, a);
1354
1354
  case "latin1":
1355
1355
  case "binary":
1356
- return zr(this, i, a);
1356
+ return Vr(this, i, a);
1357
1357
  case "base64":
1358
- return Gr(this, i, a);
1358
+ return Hr(this, i, a);
1359
1359
  case "ucs2":
1360
1360
  case "ucs-2":
1361
1361
  case "utf16le":
1362
1362
  case "utf-16le":
1363
- return Vr(this, i, a);
1363
+ return Yr(this, i, a);
1364
1364
  default:
1365
1365
  if (l) throw new TypeError("Unknown encoding: " + u);
1366
1366
  u = (u + "").toLowerCase(), l = !0;
@@ -1394,7 +1394,7 @@ he.write = function(n, t, e, r, o, c) {
1394
1394
  return this;
1395
1395
  }, s.prototype.toString = function() {
1396
1396
  var i = this.length;
1397
- return i === 0 ? "" : arguments.length === 0 ? ve(this, 0, i) : $.apply(this, arguments);
1397
+ return i === 0 ? "" : arguments.length === 0 ? Ee(this, 0, i) : $.apply(this, arguments);
1398
1398
  }, s.prototype.toLocaleString = s.prototype.toString, s.prototype.equals = function(i) {
1399
1399
  if (!s.isBuffer(i)) throw new TypeError("Argument must be a Buffer");
1400
1400
  return this === i ? !0 : s.compare(this, i) === 0;
@@ -1422,7 +1422,7 @@ he.write = function(n, t, e, r, o, c) {
1422
1422
  }
1423
1423
  return m < F ? -1 : F < m ? 1 : 0;
1424
1424
  };
1425
- function me(u, i, a, l, p) {
1425
+ function be(u, i, a, l, p) {
1426
1426
  if (u.length === 0) return -1;
1427
1427
  if (typeof a == "string" ? (l = a, a = 0) : a > 2147483647 ? a = 2147483647 : a < -2147483648 && (a = -2147483648), a = +a, Ut(a) && (a = p ? 0 : u.length - 1), a < 0 && (a = u.length + a), a >= u.length) {
1428
1428
  if (p) return -1;
@@ -1431,20 +1431,20 @@ he.write = function(n, t, e, r, o, c) {
1431
1431
  if (p) a = 0;
1432
1432
  else return -1;
1433
1433
  if (typeof i == "string" && (i = s.from(i, l)), s.isBuffer(i))
1434
- return i.length === 0 ? -1 : be(u, i, a, l, p);
1434
+ return i.length === 0 ? -1 : ve(u, i, a, l, p);
1435
1435
  if (typeof i == "number")
1436
- return i = i & 255, typeof Uint8Array.prototype.indexOf == "function" ? p ? Uint8Array.prototype.indexOf.call(u, i, a) : Uint8Array.prototype.lastIndexOf.call(u, i, a) : be(u, [i], a, l, p);
1436
+ return i = i & 255, typeof Uint8Array.prototype.indexOf == "function" ? p ? Uint8Array.prototype.indexOf.call(u, i, a) : Uint8Array.prototype.lastIndexOf.call(u, i, a) : ve(u, [i], a, l, p);
1437
1437
  throw new TypeError("val must be string, number or Buffer");
1438
1438
  }
1439
- function be(u, i, a, l, p) {
1439
+ function ve(u, i, a, l, p) {
1440
1440
  var g = 1, m = u.length, F = i.length;
1441
1441
  if (l !== void 0 && (l = String(l).toLowerCase(), l === "ucs2" || l === "ucs-2" || l === "utf16le" || l === "utf-16le")) {
1442
1442
  if (u.length < 2 || i.length < 2)
1443
1443
  return -1;
1444
1444
  g = 2, m /= 2, F /= 2, a /= 2;
1445
1445
  }
1446
- function U(Fe, Ie) {
1447
- return g === 1 ? Fe[Ie] : Fe.readUInt16BE(Ie * g);
1446
+ function U(Ie, _e) {
1447
+ return g === 1 ? Ie[_e] : Ie.readUInt16BE(_e * g);
1448
1448
  }
1449
1449
  var k;
1450
1450
  if (p) {
@@ -1468,11 +1468,11 @@ he.write = function(n, t, e, r, o, c) {
1468
1468
  s.prototype.includes = function(i, a, l) {
1469
1469
  return this.indexOf(i, a, l) !== -1;
1470
1470
  }, s.prototype.indexOf = function(i, a, l) {
1471
- return me(this, i, a, l, !0);
1471
+ return be(this, i, a, l, !0);
1472
1472
  }, s.prototype.lastIndexOf = function(i, a, l) {
1473
- return me(this, i, a, l, !1);
1473
+ return be(this, i, a, l, !1);
1474
1474
  };
1475
- function jr(u, i, a, l) {
1475
+ function Cr(u, i, a, l) {
1476
1476
  a = Number(a) || 0;
1477
1477
  var p = u.length - a;
1478
1478
  l ? (l = Number(l), l > p && (l = p)) : l = p;
@@ -1485,17 +1485,17 @@ he.write = function(n, t, e, r, o, c) {
1485
1485
  }
1486
1486
  return m;
1487
1487
  }
1488
- function Nr(u, i, a, l) {
1488
+ function Mr(u, i, a, l) {
1489
1489
  return gt($t(i, u.length - a), u, a, l);
1490
1490
  }
1491
- function Cr(u, i, a, l) {
1492
- return gt(Xr(i), u, a, l);
1491
+ function Lr(u, i, a, l) {
1492
+ return gt(Zr(i), u, a, l);
1493
1493
  }
1494
- function Mr(u, i, a, l) {
1495
- return gt(Se(i), u, a, l);
1494
+ function Gr(u, i, a, l) {
1495
+ return gt(Fe(i), u, a, l);
1496
1496
  }
1497
- function Lr(u, i, a, l) {
1498
- return gt(Kr(i, u.length - a), u, a, l);
1497
+ function qr(u, i, a, l) {
1498
+ return gt(Qr(i, u.length - a), u, a, l);
1499
1499
  }
1500
1500
  s.prototype.write = function(i, a, l, p) {
1501
1501
  if (a === void 0)
@@ -1515,21 +1515,21 @@ he.write = function(n, t, e, r, o, c) {
1515
1515
  for (var m = !1; ; )
1516
1516
  switch (p) {
1517
1517
  case "hex":
1518
- return jr(this, i, a, l);
1518
+ return Cr(this, i, a, l);
1519
1519
  case "utf8":
1520
1520
  case "utf-8":
1521
- return Nr(this, i, a, l);
1521
+ return Mr(this, i, a, l);
1522
1522
  case "ascii":
1523
1523
  case "latin1":
1524
1524
  case "binary":
1525
- return Cr(this, i, a, l);
1525
+ return Lr(this, i, a, l);
1526
1526
  case "base64":
1527
- return Mr(this, i, a, l);
1527
+ return Gr(this, i, a, l);
1528
1528
  case "ucs2":
1529
1529
  case "ucs-2":
1530
1530
  case "utf16le":
1531
1531
  case "utf-16le":
1532
- return Lr(this, i, a, l);
1532
+ return qr(this, i, a, l);
1533
1533
  default:
1534
1534
  if (m) throw new TypeError("Unknown encoding: " + p);
1535
1535
  p = ("" + p).toLowerCase(), m = !0;
@@ -1540,10 +1540,10 @@ he.write = function(n, t, e, r, o, c) {
1540
1540
  data: Array.prototype.slice.call(this._arr || this, 0)
1541
1541
  };
1542
1542
  };
1543
- function Gr(u, i, a) {
1543
+ function Hr(u, i, a) {
1544
1544
  return i === 0 && a === u.length ? t.fromByteArray(u) : t.fromByteArray(u.slice(i, a));
1545
1545
  }
1546
- function ve(u, i, a) {
1546
+ function Ee(u, i, a) {
1547
1547
  a = Math.min(u.length, a);
1548
1548
  for (var l = [], p = i; p < a; ) {
1549
1549
  var g = u[p], m = null, F = g > 239 ? 4 : g > 223 ? 3 : g > 191 ? 2 : 1;
@@ -1565,42 +1565,42 @@ he.write = function(n, t, e, r, o, c) {
1565
1565
  }
1566
1566
  m === null ? (m = 65533, F = 1) : m > 65535 && (m -= 65536, l.push(m >>> 10 & 1023 | 55296), m = 56320 | m & 1023), l.push(m), p += F;
1567
1567
  }
1568
- return qr(l);
1568
+ return zr(l);
1569
1569
  }
1570
- var Ee = 4096;
1571
- function qr(u) {
1570
+ var xe = 4096;
1571
+ function zr(u) {
1572
1572
  var i = u.length;
1573
- if (i <= Ee)
1573
+ if (i <= xe)
1574
1574
  return String.fromCharCode.apply(String, u);
1575
1575
  for (var a = "", l = 0; l < i; )
1576
1576
  a += String.fromCharCode.apply(
1577
1577
  String,
1578
- u.slice(l, l += Ee)
1578
+ u.slice(l, l += xe)
1579
1579
  );
1580
1580
  return a;
1581
1581
  }
1582
- function Hr(u, i, a) {
1582
+ function Wr(u, i, a) {
1583
1583
  var l = "";
1584
1584
  a = Math.min(u.length, a);
1585
1585
  for (var p = i; p < a; ++p)
1586
1586
  l += String.fromCharCode(u[p] & 127);
1587
1587
  return l;
1588
1588
  }
1589
- function zr(u, i, a) {
1589
+ function Vr(u, i, a) {
1590
1590
  var l = "";
1591
1591
  a = Math.min(u.length, a);
1592
1592
  for (var p = i; p < a; ++p)
1593
1593
  l += String.fromCharCode(u[p]);
1594
1594
  return l;
1595
1595
  }
1596
- function Wr(u, i, a) {
1596
+ function Jr(u, i, a) {
1597
1597
  var l = u.length;
1598
1598
  (!i || i < 0) && (i = 0), (!a || a < 0 || a > l) && (a = l);
1599
1599
  for (var p = "", g = i; g < a; ++g)
1600
- p += Zr[u[g]];
1600
+ p += tn[u[g]];
1601
1601
  return p;
1602
1602
  }
1603
- function Vr(u, i, a) {
1603
+ function Yr(u, i, a) {
1604
1604
  for (var l = u.slice(i, a), p = "", g = 0; g < l.length - 1; g += 2)
1605
1605
  p += String.fromCharCode(l[g] + l[g + 1] * 256);
1606
1606
  return p;
@@ -1730,25 +1730,25 @@ he.write = function(n, t, e, r, o, c) {
1730
1730
  }, s.prototype.writeInt32BE = function(i, a, l) {
1731
1731
  return i = +i, a = a >>> 0, l || C(this, i, a, 4, 2147483647, -2147483648), i < 0 && (i = 4294967295 + i + 1), this[a] = i >>> 24, this[a + 1] = i >>> 16, this[a + 2] = i >>> 8, this[a + 3] = i & 255, a + 4;
1732
1732
  };
1733
- function xe(u, i, a, l, p, g) {
1733
+ function Ae(u, i, a, l, p, g) {
1734
1734
  if (a + l > u.length) throw new RangeError("Index out of range");
1735
1735
  if (a < 0) throw new RangeError("Index out of range");
1736
1736
  }
1737
- function Ae(u, i, a, l, p) {
1738
- return i = +i, a = a >>> 0, p || xe(u, i, a, 4), e.write(u, i, a, l, 23, 4), a + 4;
1737
+ function Be(u, i, a, l, p) {
1738
+ return i = +i, a = a >>> 0, p || Ae(u, i, a, 4), e.write(u, i, a, l, 23, 4), a + 4;
1739
1739
  }
1740
1740
  s.prototype.writeFloatLE = function(i, a, l) {
1741
- return Ae(this, i, a, !0, l);
1741
+ return Be(this, i, a, !0, l);
1742
1742
  }, s.prototype.writeFloatBE = function(i, a, l) {
1743
- return Ae(this, i, a, !1, l);
1743
+ return Be(this, i, a, !1, l);
1744
1744
  };
1745
- function Be(u, i, a, l, p) {
1746
- return i = +i, a = a >>> 0, p || xe(u, i, a, 8), e.write(u, i, a, l, 52, 8), a + 8;
1745
+ function Se(u, i, a, l, p) {
1746
+ return i = +i, a = a >>> 0, p || Ae(u, i, a, 8), e.write(u, i, a, l, 52, 8), a + 8;
1747
1747
  }
1748
1748
  s.prototype.writeDoubleLE = function(i, a, l) {
1749
- return Be(this, i, a, !0, l);
1749
+ return Se(this, i, a, !0, l);
1750
1750
  }, s.prototype.writeDoubleBE = function(i, a, l) {
1751
- return Be(this, i, a, !1, l);
1751
+ return Se(this, i, a, !1, l);
1752
1752
  }, s.prototype.copy = function(i, a, l, p) {
1753
1753
  if (!s.isBuffer(i)) throw new TypeError("argument should be a Buffer");
1754
1754
  if (l || (l = 0), !p && p !== 0 && (p = this.length), a >= i.length && (a = i.length), a || (a = 0), p > 0 && p < l && (p = l), p === l || i.length === 0 || this.length === 0) return 0;
@@ -1792,9 +1792,9 @@ he.write = function(n, t, e, r, o, c) {
1792
1792
  }
1793
1793
  return this;
1794
1794
  };
1795
- var Jr = /[^+/0-9A-Za-z-_]/g;
1796
- function Yr(u) {
1797
- if (u = u.split("=")[0], u = u.trim().replace(Jr, ""), u.length < 2) return "";
1795
+ var Xr = /[^+/0-9A-Za-z-_]/g;
1796
+ function Kr(u) {
1797
+ if (u = u.split("=")[0], u = u.trim().replace(Xr, ""), u.length < 2) return "";
1798
1798
  for (; u.length % 4 !== 0; )
1799
1799
  u = u + "=";
1800
1800
  return u;
@@ -1849,18 +1849,18 @@ he.write = function(n, t, e, r, o, c) {
1849
1849
  }
1850
1850
  return g;
1851
1851
  }
1852
- function Xr(u) {
1852
+ function Zr(u) {
1853
1853
  for (var i = [], a = 0; a < u.length; ++a)
1854
1854
  i.push(u.charCodeAt(a) & 255);
1855
1855
  return i;
1856
1856
  }
1857
- function Kr(u, i) {
1857
+ function Qr(u, i) {
1858
1858
  for (var a, l, p, g = [], m = 0; m < u.length && !((i -= 2) < 0); ++m)
1859
1859
  a = u.charCodeAt(m), l = a >> 8, p = a % 256, g.push(p), g.push(l);
1860
1860
  return g;
1861
1861
  }
1862
- function Se(u) {
1863
- return t.toByteArray(Yr(u));
1862
+ function Fe(u) {
1863
+ return t.toByteArray(Kr(u));
1864
1864
  }
1865
1865
  function gt(u, i, a, l) {
1866
1866
  for (var p = 0; p < l && !(p + a >= i.length || p >= u.length); ++p)
@@ -1873,16 +1873,16 @@ he.write = function(n, t, e, r, o, c) {
1873
1873
  function Ut(u) {
1874
1874
  return u !== u;
1875
1875
  }
1876
- var Zr = function() {
1876
+ var tn = function() {
1877
1877
  for (var u = "0123456789abcdef", i = new Array(256), a = 0; a < 16; ++a)
1878
1878
  for (var l = a * 16, p = 0; p < 16; ++p)
1879
1879
  i[l + p] = u[a] + u[p];
1880
1880
  return i;
1881
1881
  }();
1882
- })(le);
1882
+ })(he);
1883
1883
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
1884
1884
  (function(n, t) {
1885
- var e = le, r = e.Buffer;
1885
+ var e = he, r = e.Buffer;
1886
1886
  function o(f, s) {
1887
1887
  for (var h in f)
1888
1888
  s[h] = f[h];
@@ -1909,14 +1909,14 @@ he.write = function(n, t, e, r, o, c) {
1909
1909
  throw new TypeError("Argument must be a number");
1910
1910
  return e.SlowBuffer(f);
1911
1911
  };
1912
- })(ie, ie.exports);
1913
- var pe = ie.exports, Gn = {}.toString, qn = Array.isArray || function(n) {
1914
- return Gn.call(n) == "[object Array]";
1915
- }, lt = TypeError, yr = Object, Hn = Error, zn = EvalError, Wn = RangeError, Vn = ReferenceError, wr = SyntaxError, Jn = URIError, Yn = Math.abs, Xn = Math.floor, Kn = Math.max, Zn = Math.min, Qn = Math.pow, ti = Math.round, ei = Number.isNaN || function(t) {
1912
+ })(oe, oe.exports);
1913
+ var de = oe.exports, Hn = {}.toString, zn = Array.isArray || function(n) {
1914
+ return Hn.call(n) == "[object Array]";
1915
+ }, lt = TypeError, gr = Object, Wn = Error, Vn = EvalError, Jn = RangeError, Yn = ReferenceError, mr = SyntaxError, Xn = URIError, Kn = Math.abs, Zn = Math.floor, Qn = Math.max, ti = Math.min, ei = Math.pow, ri = Math.round, ni = Number.isNaN || function(t) {
1916
1916
  return t !== t;
1917
- }, ri = ei, ni = function(t) {
1918
- return ri(t) || t === 0 ? t : t < 0 ? -1 : 1;
1919
- }, ii = Object.getOwnPropertyDescriptor, bt = ii;
1917
+ }, ii = ni, oi = function(t) {
1918
+ return ii(t) || t === 0 ? t : t < 0 ? -1 : 1;
1919
+ }, ai = Object.getOwnPropertyDescriptor, bt = ai;
1920
1920
  if (bt)
1921
1921
  try {
1922
1922
  bt([], "length");
@@ -1930,9 +1930,9 @@ if (vt)
1930
1930
  } catch {
1931
1931
  vt = !1;
1932
1932
  }
1933
- var Ft = vt, Tt, Re;
1934
- function gr() {
1935
- return Re || (Re = 1, Tt = function() {
1933
+ var Ft = vt, Tt, De;
1934
+ function br() {
1935
+ return De || (De = 1, Tt = function() {
1936
1936
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
1937
1937
  return !1;
1938
1938
  if (typeof Symbol.iterator == "symbol")
@@ -1960,73 +1960,77 @@ function gr() {
1960
1960
  return !0;
1961
1961
  }), Tt;
1962
1962
  }
1963
- var Ot, De;
1964
- function oi() {
1965
- if (De) return Ot;
1966
- De = 1;
1967
- var n = typeof Symbol < "u" && Symbol, t = gr();
1963
+ var Ot, je;
1964
+ function si() {
1965
+ if (je) return Ot;
1966
+ je = 1;
1967
+ var n = typeof Symbol < "u" && Symbol, t = br();
1968
1968
  return Ot = function() {
1969
1969
  return typeof n != "function" || typeof Symbol != "function" || typeof n("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : t();
1970
1970
  }, Ot;
1971
1971
  }
1972
- var Rt, je;
1973
- function mr() {
1974
- return je || (je = 1, Rt = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Rt;
1972
+ var Rt, Ne;
1973
+ function vr() {
1974
+ return Ne || (Ne = 1, Rt = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Rt;
1975
1975
  }
1976
- var Dt, Ne;
1977
- function br() {
1978
- if (Ne) return Dt;
1979
- Ne = 1;
1980
- var n = yr;
1976
+ var Dt, Ce;
1977
+ function Er() {
1978
+ if (Ce) return Dt;
1979
+ Ce = 1;
1980
+ var n = gr;
1981
1981
  return Dt = n.getPrototypeOf || null, Dt;
1982
1982
  }
1983
- var ai = "Function.prototype.bind called on incompatible ", si = Object.prototype.toString, ci = Math.max, fi = "[object Function]", Ce = function(t, e) {
1983
+ var ci = "Function.prototype.bind called on incompatible ", fi = Object.prototype.toString, ui = Math.max, li = "[object Function]", Me = function(t, e) {
1984
1984
  for (var r = [], o = 0; o < t.length; o += 1)
1985
1985
  r[o] = t[o];
1986
1986
  for (var c = 0; c < e.length; c += 1)
1987
1987
  r[c + t.length] = e[c];
1988
1988
  return r;
1989
- }, ui = function(t, e) {
1989
+ }, hi = function(t, e) {
1990
1990
  for (var r = [], o = e, c = 0; o < t.length; o += 1, c += 1)
1991
1991
  r[c] = t[o];
1992
1992
  return r;
1993
- }, li = function(n, t) {
1993
+ }, pi = function(n, t) {
1994
1994
  for (var e = "", r = 0; r < n.length; r += 1)
1995
1995
  e += n[r], r + 1 < n.length && (e += t);
1996
1996
  return e;
1997
- }, hi = function(t) {
1997
+ }, di = function(t) {
1998
1998
  var e = this;
1999
- if (typeof e != "function" || si.apply(e) !== fi)
2000
- throw new TypeError(ai + e);
2001
- for (var r = ui(arguments, 1), o, c = function() {
1999
+ if (typeof e != "function" || fi.apply(e) !== li)
2000
+ throw new TypeError(ci + e);
2001
+ for (var r = hi(arguments, 1), o, c = function() {
2002
2002
  if (this instanceof o) {
2003
2003
  var d = e.apply(
2004
2004
  this,
2005
- Ce(r, arguments)
2005
+ Me(r, arguments)
2006
2006
  );
2007
2007
  return Object(d) === d ? d : this;
2008
2008
  }
2009
2009
  return e.apply(
2010
2010
  t,
2011
- Ce(r, arguments)
2011
+ Me(r, arguments)
2012
2012
  );
2013
- }, f = ci(0, e.length - r.length), s = [], h = 0; h < f; h++)
2013
+ }, f = ui(0, e.length - r.length), s = [], h = 0; h < f; h++)
2014
2014
  s[h] = "$" + h;
2015
- if (o = Function("binder", "return function (" + li(s, ",") + "){ return binder.apply(this,arguments); }")(c), e.prototype) {
2015
+ if (o = Function("binder", "return function (" + pi(s, ",") + "){ return binder.apply(this,arguments); }")(c), e.prototype) {
2016
2016
  var y = function() {
2017
2017
  };
2018
2018
  y.prototype = e.prototype, o.prototype = new y(), y.prototype = null;
2019
2019
  }
2020
2020
  return o;
2021
- }, pi = hi, pt = Function.prototype.bind || pi, de = Function.prototype.call, ye = Function.prototype.apply, di = typeof Reflect < "u" && Reflect && Reflect.apply, yi = pt, wi = ye, gi = de, mi = di, vr = mi || yi.call(gi, wi), bi = pt, vi = lt, Ei = de, xi = vr, we = function(t) {
2021
+ }, yi = di, pt = Function.prototype.bind || yi, ye = Function.prototype.call, jt, Le;
2022
+ function we() {
2023
+ return Le || (Le = 1, jt = Function.prototype.apply), jt;
2024
+ }
2025
+ var wi = typeof Reflect < "u" && Reflect && Reflect.apply, gi = pt, mi = we(), bi = ye, vi = wi, xr = vi || gi.call(bi, mi), Ei = pt, xi = lt, Ai = ye, Bi = xr, ge = function(t) {
2022
2026
  if (t.length < 1 || typeof t[0] != "function")
2023
- throw new vi("a function is required");
2024
- return xi(bi, Ei, t);
2025
- }, jt, Me;
2026
- function Ai() {
2027
- if (Me) return jt;
2028
- Me = 1;
2029
- var n = we, t = ht, e;
2027
+ throw new xi("a function is required");
2028
+ return Bi(Ei, Ai, t);
2029
+ }, Nt, Ge;
2030
+ function Si() {
2031
+ if (Ge) return Nt;
2032
+ Ge = 1;
2033
+ var n = ge, t = ht, e;
2030
2034
  try {
2031
2035
  e = /** @type {{ __proto__?: typeof Array.prototype }} */
2032
2036
  [].__proto__ === Array.prototype;
@@ -2039,19 +2043,19 @@ function Ai() {
2039
2043
  /** @type {keyof typeof Object.prototype} */
2040
2044
  "__proto__"
2041
2045
  ), o = Object, c = o.getPrototypeOf;
2042
- return jt = r && typeof r.get == "function" ? n([r.get]) : typeof c == "function" ? (
2046
+ return Nt = r && typeof r.get == "function" ? n([r.get]) : typeof c == "function" ? (
2043
2047
  /** @type {import('./get')} */
2044
2048
  function(s) {
2045
2049
  return c(s == null ? s : o(s));
2046
2050
  }
2047
- ) : !1, jt;
2048
- }
2049
- var Nt, Le;
2050
- function Er() {
2051
- if (Le) return Nt;
2052
- Le = 1;
2053
- var n = mr(), t = br(), e = Ai();
2054
- return Nt = n ? function(o) {
2051
+ ) : !1, Nt;
2052
+ }
2053
+ var Ct, qe;
2054
+ function Ar() {
2055
+ if (qe) return Ct;
2056
+ qe = 1;
2057
+ var n = vr(), t = Er(), e = Si();
2058
+ return Ct = n ? function(o) {
2055
2059
  return n(o);
2056
2060
  } : t ? function(o) {
2057
2061
  if (!o || typeof o != "object" && typeof o != "function")
@@ -2059,33 +2063,33 @@ function Er() {
2059
2063
  return t(o);
2060
2064
  } : e ? function(o) {
2061
2065
  return e(o);
2062
- } : null, Nt;
2066
+ } : null, Ct;
2063
2067
  }
2064
- var Ct, Ge;
2065
- function Bi() {
2066
- if (Ge) return Ct;
2067
- Ge = 1;
2068
+ var Mt, He;
2069
+ function Fi() {
2070
+ if (He) return Mt;
2071
+ He = 1;
2068
2072
  var n = Function.prototype.call, t = Object.prototype.hasOwnProperty, e = pt;
2069
- return Ct = e.call(n, t), Ct;
2073
+ return Mt = e.call(n, t), Mt;
2070
2074
  }
2071
- var A, Si = yr, Fi = Hn, Ii = zn, _i = Wn, $i = Vn, rt = wr, et = lt, Ui = Jn, Pi = Yn, ki = Xn, Ti = Kn, Oi = Zn, Ri = Qn, Di = ti, ji = ni, xr = Function, Mt = function(n) {
2075
+ var A, Ii = gr, _i = Wn, $i = Vn, Ui = Jn, Pi = Yn, rt = mr, et = lt, ki = Xn, Ti = Kn, Oi = Zn, Ri = Qn, Di = ti, ji = ei, Ni = ri, Ci = oi, Br = Function, Lt = function(n) {
2072
2076
  try {
2073
- return xr('"use strict"; return (' + n + ").constructor;")();
2077
+ return Br('"use strict"; return (' + n + ").constructor;")();
2074
2078
  } catch {
2075
2079
  }
2076
- }, at = ht, Ni = Ft, Lt = function() {
2080
+ }, at = ht, Mi = Ft, Gt = function() {
2077
2081
  throw new et();
2078
- }, Ci = at ? function() {
2082
+ }, Li = at ? function() {
2079
2083
  try {
2080
- return arguments.callee, Lt;
2084
+ return arguments.callee, Gt;
2081
2085
  } catch {
2082
2086
  try {
2083
2087
  return at(arguments, "callee").get;
2084
2088
  } catch {
2085
- return Lt;
2089
+ return Gt;
2086
2090
  }
2087
2091
  }
2088
- }() : Lt, Q = oi()(), R = Er(), Mi = br(), Li = mr(), Ar = ye, dt = de, tt = {}, Gi = typeof Uint8Array > "u" || !R ? A : R(Uint8Array), Y = {
2092
+ }() : Gt, Q = si()(), R = Ar(), Gi = Er(), qi = vr(), Sr = we(), dt = ye, tt = {}, Hi = typeof Uint8Array > "u" || !R ? A : R(Uint8Array), Y = {
2089
2093
  __proto__: null,
2090
2094
  "%AggregateError%": typeof AggregateError > "u" ? A : AggregateError,
2091
2095
  "%Array%": Array,
@@ -2107,15 +2111,15 @@ var A, Si = yr, Fi = Hn, Ii = zn, _i = Wn, $i = Vn, rt = wr, et = lt, Ui = Jn, P
2107
2111
  "%decodeURIComponent%": decodeURIComponent,
2108
2112
  "%encodeURI%": encodeURI,
2109
2113
  "%encodeURIComponent%": encodeURIComponent,
2110
- "%Error%": Fi,
2114
+ "%Error%": _i,
2111
2115
  "%eval%": eval,
2112
2116
  // eslint-disable-line no-eval
2113
- "%EvalError%": Ii,
2117
+ "%EvalError%": $i,
2114
2118
  "%Float16Array%": typeof Float16Array > "u" ? A : Float16Array,
2115
2119
  "%Float32Array%": typeof Float32Array > "u" ? A : Float32Array,
2116
2120
  "%Float64Array%": typeof Float64Array > "u" ? A : Float64Array,
2117
2121
  "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? A : FinalizationRegistry,
2118
- "%Function%": xr,
2122
+ "%Function%": Br,
2119
2123
  "%GeneratorFunction%": tt,
2120
2124
  "%Int8Array%": typeof Int8Array > "u" ? A : Int8Array,
2121
2125
  "%Int16Array%": typeof Int16Array > "u" ? A : Int16Array,
@@ -2128,14 +2132,14 @@ var A, Si = yr, Fi = Hn, Ii = zn, _i = Wn, $i = Vn, rt = wr, et = lt, Ui = Jn, P
2128
2132
  "%MapIteratorPrototype%": typeof Map > "u" || !Q || !R ? A : R((/* @__PURE__ */ new Map())[Symbol.iterator]()),
2129
2133
  "%Math%": Math,
2130
2134
  "%Number%": Number,
2131
- "%Object%": Si,
2135
+ "%Object%": Ii,
2132
2136
  "%Object.getOwnPropertyDescriptor%": at,
2133
2137
  "%parseFloat%": parseFloat,
2134
2138
  "%parseInt%": parseInt,
2135
2139
  "%Promise%": typeof Promise > "u" ? A : Promise,
2136
2140
  "%Proxy%": typeof Proxy > "u" ? A : Proxy,
2137
- "%RangeError%": _i,
2138
- "%ReferenceError%": $i,
2141
+ "%RangeError%": Ui,
2142
+ "%ReferenceError%": Pi,
2139
2143
  "%Reflect%": typeof Reflect > "u" ? A : Reflect,
2140
2144
  "%RegExp%": RegExp,
2141
2145
  "%Set%": typeof Set > "u" ? A : Set,
@@ -2145,45 +2149,45 @@ var A, Si = yr, Fi = Hn, Ii = zn, _i = Wn, $i = Vn, rt = wr, et = lt, Ui = Jn, P
2145
2149
  "%StringIteratorPrototype%": Q && R ? R(""[Symbol.iterator]()) : A,
2146
2150
  "%Symbol%": Q ? Symbol : A,
2147
2151
  "%SyntaxError%": rt,
2148
- "%ThrowTypeError%": Ci,
2149
- "%TypedArray%": Gi,
2152
+ "%ThrowTypeError%": Li,
2153
+ "%TypedArray%": Hi,
2150
2154
  "%TypeError%": et,
2151
2155
  "%Uint8Array%": typeof Uint8Array > "u" ? A : Uint8Array,
2152
2156
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? A : Uint8ClampedArray,
2153
2157
  "%Uint16Array%": typeof Uint16Array > "u" ? A : Uint16Array,
2154
2158
  "%Uint32Array%": typeof Uint32Array > "u" ? A : Uint32Array,
2155
- "%URIError%": Ui,
2159
+ "%URIError%": ki,
2156
2160
  "%WeakMap%": typeof WeakMap > "u" ? A : WeakMap,
2157
2161
  "%WeakRef%": typeof WeakRef > "u" ? A : WeakRef,
2158
2162
  "%WeakSet%": typeof WeakSet > "u" ? A : WeakSet,
2159
2163
  "%Function.prototype.call%": dt,
2160
- "%Function.prototype.apply%": Ar,
2161
- "%Object.defineProperty%": Ni,
2162
- "%Object.getPrototypeOf%": Mi,
2163
- "%Math.abs%": Pi,
2164
- "%Math.floor%": ki,
2165
- "%Math.max%": Ti,
2166
- "%Math.min%": Oi,
2167
- "%Math.pow%": Ri,
2168
- "%Math.round%": Di,
2169
- "%Math.sign%": ji,
2170
- "%Reflect.getPrototypeOf%": Li
2164
+ "%Function.prototype.apply%": Sr,
2165
+ "%Object.defineProperty%": Mi,
2166
+ "%Object.getPrototypeOf%": Gi,
2167
+ "%Math.abs%": Ti,
2168
+ "%Math.floor%": Oi,
2169
+ "%Math.max%": Ri,
2170
+ "%Math.min%": Di,
2171
+ "%Math.pow%": ji,
2172
+ "%Math.round%": Ni,
2173
+ "%Math.sign%": Ci,
2174
+ "%Reflect.getPrototypeOf%": qi
2171
2175
  };
2172
2176
  if (R)
2173
2177
  try {
2174
2178
  null.error;
2175
2179
  } catch (n) {
2176
- var qi = R(R(n));
2177
- Y["%Error.prototype%"] = qi;
2180
+ var zi = R(R(n));
2181
+ Y["%Error.prototype%"] = zi;
2178
2182
  }
2179
- var Hi = function n(t) {
2183
+ var Wi = function n(t) {
2180
2184
  var e;
2181
2185
  if (t === "%AsyncFunction%")
2182
- e = Mt("async function () {}");
2186
+ e = Lt("async function () {}");
2183
2187
  else if (t === "%GeneratorFunction%")
2184
- e = Mt("function* () {}");
2188
+ e = Lt("function* () {}");
2185
2189
  else if (t === "%AsyncGeneratorFunction%")
2186
- e = Mt("async function* () {}");
2190
+ e = Lt("async function* () {}");
2187
2191
  else if (t === "%AsyncGenerator%") {
2188
2192
  var r = n("%AsyncGeneratorFunction%");
2189
2193
  r && (e = r.prototype);
@@ -2192,7 +2196,7 @@ var Hi = function n(t) {
2192
2196
  o && R && (e = R(o.prototype));
2193
2197
  }
2194
2198
  return Y[t] = e, e;
2195
- }, qe = {
2199
+ }, ze = {
2196
2200
  __proto__: null,
2197
2201
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
2198
2202
  "%ArrayPrototype%": ["Array", "prototype"],
@@ -2245,21 +2249,21 @@ var Hi = function n(t) {
2245
2249
  "%URIErrorPrototype%": ["URIError", "prototype"],
2246
2250
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
2247
2251
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
2248
- }, yt = pt, xt = Bi(), zi = yt.call(dt, Array.prototype.concat), Wi = yt.call(Ar, Array.prototype.splice), He = yt.call(dt, String.prototype.replace), At = yt.call(dt, String.prototype.slice), Vi = yt.call(dt, RegExp.prototype.exec), Ji = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Yi = /\\(\\)?/g, Xi = function(t) {
2252
+ }, yt = pt, xt = Fi(), Vi = yt.call(dt, Array.prototype.concat), Ji = yt.call(Sr, Array.prototype.splice), We = yt.call(dt, String.prototype.replace), At = yt.call(dt, String.prototype.slice), Yi = yt.call(dt, RegExp.prototype.exec), Xi = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Ki = /\\(\\)?/g, Zi = function(t) {
2249
2253
  var e = At(t, 0, 1), r = At(t, -1);
2250
2254
  if (e === "%" && r !== "%")
2251
2255
  throw new rt("invalid intrinsic syntax, expected closing `%`");
2252
2256
  if (r === "%" && e !== "%")
2253
2257
  throw new rt("invalid intrinsic syntax, expected opening `%`");
2254
2258
  var o = [];
2255
- return He(t, Ji, function(c, f, s, h) {
2256
- o[o.length] = s ? He(h, Yi, "$1") : f || c;
2259
+ return We(t, Xi, function(c, f, s, h) {
2260
+ o[o.length] = s ? We(h, Ki, "$1") : f || c;
2257
2261
  }), o;
2258
- }, Ki = function(t, e) {
2262
+ }, Qi = function(t, e) {
2259
2263
  var r = t, o;
2260
- if (xt(qe, r) && (o = qe[r], r = "%" + o[0] + "%"), xt(Y, r)) {
2264
+ if (xt(ze, r) && (o = ze[r], r = "%" + o[0] + "%"), xt(Y, r)) {
2261
2265
  var c = Y[r];
2262
- if (c === tt && (c = Hi(r)), typeof c > "u" && !e)
2266
+ if (c === tt && (c = Wi(r)), typeof c > "u" && !e)
2263
2267
  throw new et("intrinsic " + t + " exists, but is not available. Please file an issue!");
2264
2268
  return {
2265
2269
  alias: o,
@@ -2268,15 +2272,15 @@ var Hi = function n(t) {
2268
2272
  };
2269
2273
  }
2270
2274
  throw new rt("intrinsic " + t + " does not exist!");
2271
- }, Br = function(t, e) {
2275
+ }, Fr = function(t, e) {
2272
2276
  if (typeof t != "string" || t.length === 0)
2273
2277
  throw new et("intrinsic name must be a non-empty string");
2274
2278
  if (arguments.length > 1 && typeof e != "boolean")
2275
2279
  throw new et('"allowMissing" argument must be a boolean');
2276
- if (Vi(/^%?[^%]*%?$/, t) === null)
2280
+ if (Yi(/^%?[^%]*%?$/, t) === null)
2277
2281
  throw new rt("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
2278
- var r = Xi(t), o = r.length > 0 ? r[0] : "", c = Ki("%" + o + "%", e), f = c.name, s = c.value, h = !1, y = c.alias;
2279
- y && (o = y[0], Wi(r, zi([0, 1], y)));
2282
+ var r = Zi(t), o = r.length > 0 ? r[0] : "", c = Qi("%" + o + "%", e), f = c.name, s = c.value, h = !1, y = c.alias;
2283
+ y && (o = y[0], Ji(r, Vi([0, 1], y)));
2280
2284
  for (var d = 1, w = !0; d < r.length; d += 1) {
2281
2285
  var b = r[d], v = At(b, 0, 1), _ = At(b, -1);
2282
2286
  if ((v === '"' || v === "'" || v === "`" || _ === '"' || _ === "'" || _ === "`") && v !== _)
@@ -2298,19 +2302,19 @@ var Hi = function n(t) {
2298
2302
  }
2299
2303
  }
2300
2304
  return s;
2301
- }, Sr = Br, Fr = we, Zi = Fr([Sr("%String.prototype.indexOf%")]), Ir = function(t, e) {
2305
+ }, Ir = Fr, _r = ge, to = _r([Ir("%String.prototype.indexOf%")]), $r = function(t, e) {
2302
2306
  var r = (
2303
2307
  /** @type {(this: unknown, ...args: unknown[]) => unknown} */
2304
- Sr(t, !!e)
2308
+ Ir(t, !!e)
2305
2309
  );
2306
- return typeof r == "function" && Zi(t, ".prototype.") > -1 ? Fr(
2310
+ return typeof r == "function" && to(t, ".prototype.") > -1 ? _r(
2307
2311
  /** @type {const} */
2308
2312
  [r]
2309
2313
  ) : r;
2310
- }, Gt, ze;
2311
- function Qi() {
2312
- if (ze) return Gt;
2313
- ze = 1;
2314
+ }, qt, Ve;
2315
+ function eo() {
2316
+ if (Ve) return qt;
2317
+ Ve = 1;
2314
2318
  var n = Function.prototype.toString, t = typeof Reflect == "object" && Reflect !== null && Reflect.apply, e, r;
2315
2319
  if (typeof t == "function" && typeof Object.defineProperty == "function")
2316
2320
  try {
@@ -2354,7 +2358,7 @@ function Qi() {
2354
2358
  return !1;
2355
2359
  });
2356
2360
  }
2357
- return Gt = t ? function(E) {
2361
+ return qt = t ? function(E) {
2358
2362
  if (B(E))
2359
2363
  return !0;
2360
2364
  if (!E || typeof E != "function" && typeof E != "object")
@@ -2377,13 +2381,13 @@ function Qi() {
2377
2381
  return !1;
2378
2382
  var $ = s.call(E);
2379
2383
  return $ !== y && $ !== d && !/^\[object HTML/.test($) ? !1 : f(E);
2380
- }, Gt;
2384
+ }, qt;
2381
2385
  }
2382
- var qt, We;
2383
- function to() {
2384
- if (We) return qt;
2385
- We = 1;
2386
- var n = Qi(), t = Object.prototype.toString, e = Object.prototype.hasOwnProperty, r = function(h, y, d) {
2386
+ var Ht, Je;
2387
+ function ro() {
2388
+ if (Je) return Ht;
2389
+ Je = 1;
2390
+ var n = eo(), t = Object.prototype.toString, e = Object.prototype.hasOwnProperty, r = function(h, y, d) {
2387
2391
  for (var w = 0, b = h.length; w < b; w++)
2388
2392
  e.call(h, w) && (d == null ? y(h[w], w, h) : y.call(d, h[w], w, h));
2389
2393
  }, o = function(h, y, d) {
@@ -2396,16 +2400,16 @@ function to() {
2396
2400
  function f(s) {
2397
2401
  return t.call(s) === "[object Array]";
2398
2402
  }
2399
- return qt = function(h, y, d) {
2403
+ return Ht = function(h, y, d) {
2400
2404
  if (!n(y))
2401
2405
  throw new TypeError("iterator must be a function");
2402
2406
  var w;
2403
2407
  arguments.length >= 3 && (w = d), f(h) ? r(h, y, w) : typeof h == "string" ? o(h, y, w) : c(h, y, w);
2404
- }, qt;
2408
+ }, Ht;
2405
2409
  }
2406
- var Ht, Ve;
2407
- function eo() {
2408
- return Ve || (Ve = 1, Ht = [
2410
+ var zt, Ye;
2411
+ function no() {
2412
+ return Ye || (Ye = 1, zt = [
2409
2413
  "Float16Array",
2410
2414
  "Float32Array",
2411
2415
  "Float64Array",
@@ -2418,25 +2422,25 @@ function eo() {
2418
2422
  "Uint32Array",
2419
2423
  "BigInt64Array",
2420
2424
  "BigUint64Array"
2421
- ]), Ht;
2425
+ ]), zt;
2422
2426
  }
2423
- var zt, Je;
2424
- function ro() {
2425
- if (Je) return zt;
2426
- Je = 1;
2427
- var n = eo(), t = typeof globalThis > "u" ? pr : globalThis;
2428
- return zt = function() {
2427
+ var Wt, Xe;
2428
+ function io() {
2429
+ if (Xe) return Wt;
2430
+ Xe = 1;
2431
+ var n = no(), t = typeof globalThis > "u" ? yr : globalThis;
2432
+ return Wt = function() {
2429
2433
  for (var r = [], o = 0; o < n.length; o++)
2430
2434
  typeof t[n[o]] == "function" && (r[r.length] = n[o]);
2431
2435
  return r;
2432
- }, zt;
2436
+ }, Wt;
2433
2437
  }
2434
- var Wt = { exports: {} }, Vt, Ye;
2435
- function no() {
2436
- if (Ye) return Vt;
2437
- Ye = 1;
2438
- var n = Ft, t = wr, e = lt, r = ht;
2439
- return Vt = function(c, f, s) {
2438
+ var Vt = { exports: {} }, Jt, Ke;
2439
+ function oo() {
2440
+ if (Ke) return Jt;
2441
+ Ke = 1;
2442
+ var n = Ft, t = mr, e = lt, r = ht;
2443
+ return Jt = function(c, f, s) {
2440
2444
  if (!c || typeof c != "object" && typeof c != "function")
2441
2445
  throw new e("`obj` must be an object or a function`");
2442
2446
  if (typeof f != "string" && typeof f != "symbol")
@@ -2461,12 +2465,12 @@ function no() {
2461
2465
  c[f] = s;
2462
2466
  else
2463
2467
  throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
2464
- }, Vt;
2468
+ }, Jt;
2465
2469
  }
2466
- var Jt, Xe;
2467
- function io() {
2468
- if (Xe) return Jt;
2469
- Xe = 1;
2470
+ var Yt, Ze;
2471
+ function ao() {
2472
+ if (Ze) return Yt;
2473
+ Ze = 1;
2470
2474
  var n = Ft, t = function() {
2471
2475
  return !!n;
2472
2476
  };
@@ -2478,14 +2482,14 @@ function io() {
2478
2482
  } catch {
2479
2483
  return !0;
2480
2484
  }
2481
- }, Jt = t, Jt;
2485
+ }, Yt = t, Yt;
2482
2486
  }
2483
- var Yt, Ke;
2484
- function oo() {
2485
- if (Ke) return Yt;
2486
- Ke = 1;
2487
- var n = Br, t = no(), e = io()(), r = ht, o = lt, c = n("%Math.floor%");
2488
- return Yt = function(s, h) {
2487
+ var Xt, Qe;
2488
+ function so() {
2489
+ if (Qe) return Xt;
2490
+ Qe = 1;
2491
+ var n = Fr, t = oo(), e = ao()(), r = ht, o = lt, c = n("%Math.floor%");
2492
+ return Xt = function(s, h) {
2489
2493
  if (typeof s != "function")
2490
2494
  throw new o("`fn` is not a function");
2491
2495
  if (typeof h != "number" || h < 0 || h > 4294967295 || c(h) !== h)
@@ -2508,21 +2512,21 @@ function oo() {
2508
2512
  "length",
2509
2513
  h
2510
2514
  )), s;
2511
- }, Yt;
2515
+ }, Xt;
2512
2516
  }
2513
- var Xt, Ze;
2514
- function ao() {
2515
- if (Ze) return Xt;
2516
- Ze = 1;
2517
- var n = pt, t = ye, e = vr;
2518
- return Xt = function() {
2517
+ var Kt, tr;
2518
+ function co() {
2519
+ if (tr) return Kt;
2520
+ tr = 1;
2521
+ var n = pt, t = we(), e = xr;
2522
+ return Kt = function() {
2519
2523
  return e(n, t, arguments);
2520
- }, Xt;
2524
+ }, Kt;
2521
2525
  }
2522
- var Qe;
2523
- function so() {
2524
- return Qe || (Qe = 1, function(n) {
2525
- var t = oo(), e = Ft, r = we, o = ao();
2526
+ var er;
2527
+ function fo() {
2528
+ return er || (er = 1, function(n) {
2529
+ var t = so(), e = Ft, r = ge, o = co();
2526
2530
  n.exports = function(f) {
2527
2531
  var s = r(arguments), h = f.length - (arguments.length - 1);
2528
2532
  return t(
@@ -2531,22 +2535,22 @@ function so() {
2531
2535
  !0
2532
2536
  );
2533
2537
  }, e ? e(n.exports, "apply", { value: o }) : n.exports.apply = o;
2534
- }(Wt)), Wt.exports;
2538
+ }(Vt)), Vt.exports;
2535
2539
  }
2536
- var Kt, tr;
2537
- function co() {
2538
- if (tr) return Kt;
2539
- tr = 1;
2540
- var n = gr();
2541
- return Kt = function() {
2540
+ var Zt, rr;
2541
+ function uo() {
2542
+ if (rr) return Zt;
2543
+ rr = 1;
2544
+ var n = br();
2545
+ return Zt = function() {
2542
2546
  return n() && !!Symbol.toStringTag;
2543
- }, Kt;
2547
+ }, Zt;
2544
2548
  }
2545
- var Zt, er;
2546
- function fo() {
2547
- if (er) return Zt;
2548
- er = 1;
2549
- var n = to(), t = ro(), e = so(), r = Ir, o = ht, c = Er(), f = r("Object.prototype.toString"), s = co()(), h = typeof globalThis > "u" ? pr : globalThis, y = t(), d = r("String.prototype.slice"), w = r("Array.prototype.indexOf", !0) || function(B, x) {
2549
+ var Qt, nr;
2550
+ function lo() {
2551
+ if (nr) return Qt;
2552
+ nr = 1;
2553
+ var n = ro(), t = io(), e = fo(), r = $r, o = ht, c = Ar(), f = r("Object.prototype.toString"), s = uo()(), h = typeof globalThis > "u" ? yr : globalThis, y = t(), d = r("String.prototype.slice"), w = r("Array.prototype.indexOf", !0) || function(B, x) {
2550
2554
  for (var S = 0; S < B.length; S += 1)
2551
2555
  if (B[S] === x)
2552
2556
  return S;
@@ -2613,7 +2617,7 @@ function fo() {
2613
2617
  }
2614
2618
  ), x;
2615
2619
  };
2616
- return Zt = function(B) {
2620
+ return Qt = function(B) {
2617
2621
  if (!B || typeof B != "object")
2618
2622
  return !1;
2619
2623
  if (!s) {
@@ -2621,36 +2625,36 @@ function fo() {
2621
2625
  return w(y, x) > -1 ? x : x !== "Object" ? !1 : _(B);
2622
2626
  }
2623
2627
  return o ? v(B) : null;
2624
- }, Zt;
2628
+ }, Qt;
2625
2629
  }
2626
- var Qt, rr;
2627
- function uo() {
2628
- if (rr) return Qt;
2629
- rr = 1;
2630
- var n = fo();
2631
- return Qt = function(e) {
2630
+ var te, ir;
2631
+ function ho() {
2632
+ if (ir) return te;
2633
+ ir = 1;
2634
+ var n = lo();
2635
+ return te = function(e) {
2632
2636
  return !!n(e);
2633
- }, Qt;
2637
+ }, te;
2634
2638
  }
2635
- var lo = lt, ho = Ir, po = ho("TypedArray.prototype.buffer", !0), yo = uo(), wo = po || function(t) {
2636
- if (!yo(t))
2637
- throw new lo("Not a Typed Array");
2639
+ var po = lt, yo = $r, wo = yo("TypedArray.prototype.buffer", !0), go = ho(), mo = wo || function(t) {
2640
+ if (!go(t))
2641
+ throw new po("Not a Typed Array");
2638
2642
  return t.buffer;
2639
- }, G = pe.Buffer, go = qn, mo = wo, bo = ArrayBuffer.isView || function(t) {
2643
+ }, G = de.Buffer, bo = zn, vo = mo, Eo = ArrayBuffer.isView || function(t) {
2640
2644
  try {
2641
- return mo(t), !0;
2645
+ return vo(t), !0;
2642
2646
  } catch {
2643
2647
  return !1;
2644
2648
  }
2645
- }, vo = typeof Uint8Array < "u", _r = typeof ArrayBuffer < "u" && typeof Uint8Array < "u", Eo = _r && (G.prototype instanceof Uint8Array || G.TYPED_ARRAY_SUPPORT), xo = function(t, e) {
2649
+ }, xo = typeof Uint8Array < "u", Ur = typeof ArrayBuffer < "u" && typeof Uint8Array < "u", Ao = Ur && (G.prototype instanceof Uint8Array || G.TYPED_ARRAY_SUPPORT), Bo = function(t, e) {
2646
2650
  if (G.isBuffer(t))
2647
2651
  return t.constructor && !("isBuffer" in t) ? G.from(t) : t;
2648
2652
  if (typeof t == "string")
2649
2653
  return G.from(t, e);
2650
- if (_r && bo(t)) {
2654
+ if (Ur && Eo(t)) {
2651
2655
  if (t.byteLength === 0)
2652
2656
  return G.alloc(0);
2653
- if (Eo) {
2657
+ if (Ao) {
2654
2658
  var r = G.from(t.buffer, t.byteOffset, t.byteLength);
2655
2659
  if (r.byteLength === t.byteLength)
2656
2660
  return r;
@@ -2659,9 +2663,9 @@ var lo = lt, ho = Ir, po = ho("TypedArray.prototype.buffer", !0), yo = uo(), wo
2659
2663
  if (c.length === t.byteLength)
2660
2664
  return c;
2661
2665
  }
2662
- if (vo && t instanceof Uint8Array)
2666
+ if (xo && t instanceof Uint8Array)
2663
2667
  return G.from(t);
2664
- var f = go(t);
2668
+ var f = bo(t);
2665
2669
  if (f)
2666
2670
  for (var s = 0; s < t.length; s += 1) {
2667
2671
  var h = t[s];
@@ -2671,12 +2675,12 @@ var lo = lt, ho = Ir, po = ho("TypedArray.prototype.buffer", !0), yo = uo(), wo
2671
2675
  if (f || G.isBuffer(t) && t.constructor && typeof t.constructor.isBuffer == "function" && t.constructor.isBuffer(t))
2672
2676
  return G.from(t);
2673
2677
  throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.');
2674
- }, Ao = pe.Buffer, Bo = xo;
2678
+ }, So = de.Buffer, Fo = Bo;
2675
2679
  function It(n, t) {
2676
- this._block = Ao.alloc(n), this._finalSize = t, this._blockSize = n, this._len = 0;
2680
+ this._block = So.alloc(n), this._finalSize = t, this._blockSize = n, this._len = 0;
2677
2681
  }
2678
2682
  It.prototype.update = function(n, t) {
2679
- n = Bo(n, t || "utf8");
2683
+ n = Fo(n, t || "utf8");
2680
2684
  for (var e = this._block, r = this._blockSize, o = n.length, c = this._len, f = 0; f < o; ) {
2681
2685
  for (var s = c % r, h = Math.min(o - f, r - s), y = 0; y < h; y++)
2682
2686
  e[s + y] = n[f + y];
@@ -2701,73 +2705,73 @@ It.prototype.digest = function(n) {
2701
2705
  It.prototype._update = function() {
2702
2706
  throw new Error("_update must be implemented by subclass");
2703
2707
  };
2704
- var So = It, Fo = Tn, $r = So, Io = pe.Buffer, _o = [
2708
+ var Io = It, _o = Rn, Pr = Io, $o = de.Buffer, Uo = [
2705
2709
  1518500249,
2706
2710
  1859775393,
2707
2711
  -1894007588,
2708
2712
  -899497514
2709
- ], $o = new Array(80);
2713
+ ], Po = new Array(80);
2710
2714
  function wt() {
2711
- this.init(), this._w = $o, $r.call(this, 64, 56);
2715
+ this.init(), this._w = Po, Pr.call(this, 64, 56);
2712
2716
  }
2713
- Fo(wt, $r);
2717
+ _o(wt, Pr);
2714
2718
  wt.prototype.init = function() {
2715
2719
  return this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520, this;
2716
2720
  };
2717
- function Uo(n) {
2721
+ function ko(n) {
2718
2722
  return n << 1 | n >>> 31;
2719
2723
  }
2720
- function Po(n) {
2724
+ function To(n) {
2721
2725
  return n << 5 | n >>> 27;
2722
2726
  }
2723
- function ko(n) {
2727
+ function Oo(n) {
2724
2728
  return n << 30 | n >>> 2;
2725
2729
  }
2726
- function To(n, t, e, r) {
2730
+ function Ro(n, t, e, r) {
2727
2731
  return n === 0 ? t & e | ~t & r : n === 2 ? t & e | t & r | e & r : t ^ e ^ r;
2728
2732
  }
2729
2733
  wt.prototype._update = function(n) {
2730
2734
  for (var t = this._w, e = this._a | 0, r = this._b | 0, o = this._c | 0, c = this._d | 0, f = this._e | 0, s = 0; s < 16; ++s)
2731
2735
  t[s] = n.readInt32BE(s * 4);
2732
2736
  for (; s < 80; ++s)
2733
- t[s] = Uo(t[s - 3] ^ t[s - 8] ^ t[s - 14] ^ t[s - 16]);
2737
+ t[s] = ko(t[s - 3] ^ t[s - 8] ^ t[s - 14] ^ t[s - 16]);
2734
2738
  for (var h = 0; h < 80; ++h) {
2735
- var y = ~~(h / 20), d = Po(e) + To(y, r, o, c) + f + t[h] + _o[y] | 0;
2736
- f = c, c = o, o = ko(r), r = e, e = d;
2739
+ var y = ~~(h / 20), d = To(e) + Ro(y, r, o, c) + f + t[h] + Uo[y] | 0;
2740
+ f = c, c = o, o = Oo(r), r = e, e = d;
2737
2741
  }
2738
2742
  this._a = e + this._a | 0, this._b = r + this._b | 0, this._c = o + this._c | 0, this._d = c + this._d | 0, this._e = f + this._e | 0;
2739
2743
  };
2740
2744
  wt.prototype._hash = function() {
2741
- var n = Io.allocUnsafe(20);
2745
+ var n = $o.allocUnsafe(20);
2742
2746
  return n.writeInt32BE(this._a | 0, 0), n.writeInt32BE(this._b | 0, 4), n.writeInt32BE(this._c | 0, 8), n.writeInt32BE(this._d | 0, 12), n.writeInt32BE(this._e | 0, 16), n;
2743
2747
  };
2744
- var Oo = wt;
2745
- const Ro = /* @__PURE__ */ kn(Oo);
2746
- function Do(n) {
2748
+ var Do = wt;
2749
+ const jo = /* @__PURE__ */ On(Do);
2750
+ function No(n) {
2747
2751
  let t = "";
2748
2752
  for (const e of new Uint8Array(n))
2749
2753
  e < 16 && (t += "0"), t += e.toString(16);
2750
2754
  return t;
2751
2755
  }
2752
- let te = null;
2756
+ let ee = null;
2753
2757
  async function Bt(n) {
2754
- return te === null && (te = await No()), te ? Ur(n) : jo(n);
2758
+ return ee === null && (ee = await Mo()), ee ? kr(n) : Co(n);
2755
2759
  }
2756
- function jo(n) {
2757
- return new Ro().update(n).digest("hex");
2760
+ function Co(n) {
2761
+ return new jo().update(n).digest("hex");
2758
2762
  }
2759
- async function Ur(n) {
2763
+ async function kr(n) {
2760
2764
  const t = await crypto.subtle.digest("SHA-1", n);
2761
- return Do(t);
2765
+ return No(t);
2762
2766
  }
2763
- async function No() {
2767
+ async function Mo() {
2764
2768
  try {
2765
- if (await Ur(new Uint8Array([])) === "da39a3ee5e6b4b0d3255bfef95601890afd80709") return !0;
2769
+ if (await kr(new Uint8Array([])) === "da39a3ee5e6b4b0d3255bfef95601890afd80709") return !0;
2766
2770
  } catch {
2767
2771
  }
2768
2772
  return !1;
2769
2773
  }
2770
- function Co(n) {
2774
+ function Lo(n) {
2771
2775
  const t = [];
2772
2776
  let e = 0, r = 0;
2773
2777
  do {
@@ -2777,7 +2781,7 @@ function Co(n) {
2777
2781
  } while (r);
2778
2782
  return t.reduce((o, c) => o + 1 << 7 | c, -1);
2779
2783
  }
2780
- function Mo(n, t) {
2784
+ function Go(n, t) {
2781
2785
  let e = t, r = 4, o = null;
2782
2786
  do
2783
2787
  o = n.readUInt8(), e |= (o & 127) << r, r += 7;
@@ -2830,7 +2834,7 @@ class nt {
2830
2834
  7: "ref-delta"
2831
2835
  }, c = {}, f = t.slice(-20).toString("hex"), s = [], h = {}, y = /* @__PURE__ */ new Map();
2832
2836
  let d = null, w = null;
2833
- await $n([t], async ({ data: B, type: x, reference: S, offset: E, num: $ }) => {
2837
+ await Pn([t], async ({ data: B, type: x, reference: S, offset: E, num: $ }) => {
2834
2838
  d === null && (d = $);
2835
2839
  const j = Math.floor(
2836
2840
  (d - $) * 100 / d
@@ -2852,7 +2856,7 @@ class nt {
2852
2856
  });
2853
2857
  const b = Object.keys(c).map(Number);
2854
2858
  for (const [B, x] of b.entries()) {
2855
- const S = B + 1 === b.length ? t.byteLength - 20 : b[B + 1], E = c[x], $ = en.buf(t.slice(x, S)) >>> 0;
2859
+ const S = B + 1 === b.length ? t.byteLength - 20 : b[B + 1], E = c[x], $ = nn.buf(t.slice(x, S)) >>> 0;
2856
2860
  E.end = S, E.crc = $;
2857
2861
  }
2858
2862
  const v = new nt({
@@ -2880,7 +2884,7 @@ class nt {
2880
2884
  v.readDepth = 0, v.externalReadDepth = 0;
2881
2885
  const { type: E, object: $ } = await v.readSlice({ start: B });
2882
2886
  P[v.readDepth] += 1;
2883
- const j = await Bt(In.wrap({ type: E, object: $ }));
2887
+ const j = await Bt($n.wrap({ type: E, object: $ }));
2884
2888
  S.oid = j, s.push(j), y.set(j, B), h[j] = S.crc;
2885
2889
  } catch {
2886
2890
  continue;
@@ -2951,10 +2955,10 @@ class nt {
2951
2955
  throw new I("Unrecognized type: 0b" + f.toString(2));
2952
2956
  const h = c & 15;
2953
2957
  let y = h;
2954
- c & 128 && (y = Mo(o, h));
2958
+ c & 128 && (y = Go(o, h));
2955
2959
  let w = null, b = null;
2956
2960
  if (s === "ofs_delta") {
2957
- const _ = Co(o), P = t - _;
2961
+ const _ = Lo(o), P = t - _;
2958
2962
  ({ object: w, type: s } = await this.readSlice({ start: P }));
2959
2963
  }
2960
2964
  if (s === "ref_delta") {
@@ -2962,11 +2966,11 @@ class nt {
2962
2966
  ({ object: w, type: s } = await this.read({ oid: _ }));
2963
2967
  }
2964
2968
  const v = r.slice(o.tell());
2965
- if (b = Buffer.from(await Pn(v)), b.byteLength !== y)
2969
+ if (b = Buffer.from(await Tn(v)), b.byteLength !== y)
2966
2970
  throw new I(
2967
2971
  `Packfile told us object would have length ${y} but it had length ${b.byteLength}`
2968
2972
  );
2969
- return w && (b = Buffer.from(_n(b, w))), this.readDepth > 3 && (this.offsetCache[t] = { type: s, object: b }), { type: s, format: "content", object: b };
2973
+ return w && (b = Buffer.from(Un(b, w))), this.readDepth > 3 && (this.offsetCache[t] = { type: s, object: b }), { type: s, format: "content", object: b };
2970
2974
  }
2971
2975
  }
2972
2976
  class st extends it {
@@ -2992,27 +2996,27 @@ class _t extends it {
2992
2996
  }
2993
2997
  }
2994
2998
  _t.code = "ObjectTypeError";
2995
- function Lo(n) {
2999
+ function qo(n) {
2996
3000
  let t = n > 0 ? n >> 12 : 0;
2997
3001
  t !== 4 && t !== 8 && t !== 10 && t !== 14 && (t = 8);
2998
3002
  let e = n & 511;
2999
3003
  return e & 73 ? e = 493 : e = 420, t !== 8 && (e = 0), (t << 12) + e;
3000
3004
  }
3001
3005
  const H = 2 ** 32;
3002
- function nr(n, t, e, r) {
3006
+ function or(n, t, e, r) {
3003
3007
  if (n !== void 0 && t !== void 0)
3004
3008
  return [n, t];
3005
3009
  e === void 0 && (e = r.valueOf());
3006
3010
  const o = Math.floor(e / 1e3), c = (e - o * 1e3) * 1e6;
3007
3011
  return [o, c];
3008
3012
  }
3009
- function ir(n) {
3010
- const [t, e] = nr(
3013
+ function ar(n) {
3014
+ const [t, e] = or(
3011
3015
  n.ctimeSeconds,
3012
3016
  n.ctimeNanoseconds,
3013
3017
  n.ctimeMs,
3014
3018
  n.ctime
3015
- ), [r, o] = nr(
3019
+ ), [r, o] = or(
3016
3020
  n.mtimeSeconds,
3017
3021
  n.mtimeNanoseconds,
3018
3022
  n.mtimeMs,
@@ -3025,7 +3029,7 @@ function ir(n) {
3025
3029
  mtimeNanoseconds: o % H,
3026
3030
  dev: n.dev % H,
3027
3031
  ino: n.ino % H,
3028
- mode: Lo(n.mode % H),
3032
+ mode: qo(n.mode % H),
3029
3033
  uid: n.uid % H,
3030
3034
  gid: n.gid % H,
3031
3035
  // size of -1 happens over a BrowserFS HTTP Backend that doesn't serve Content-Length headers
@@ -3033,7 +3037,7 @@ function ir(n) {
3033
3037
  size: n.size > -1 ? n.size % H : 0
3034
3038
  };
3035
3039
  }
3036
- function Go(n) {
3040
+ function Ho(n) {
3037
3041
  return {
3038
3042
  assumeValid: !!(n & 32768),
3039
3043
  extended: !!(n & 16384),
@@ -3041,7 +3045,7 @@ function Go(n) {
3041
3045
  nameLength: n & 4095
3042
3046
  };
3043
3047
  }
3044
- function qo(n) {
3048
+ function zo(n) {
3045
3049
  const t = n.flags;
3046
3050
  return t.extended = !1, t.nameLength = Math.min(Buffer.from(n.path).length, 4095), (t.assumeValid ? 32768 : 0) + (t.extended ? 16384 : 0) + ((t.stage & 3) << 12) + (t.nameLength & 4095);
3047
3051
  }
@@ -3088,7 +3092,7 @@ class J {
3088
3092
  const d = {};
3089
3093
  d.ctimeSeconds = r.readUInt32BE(), d.ctimeNanoseconds = r.readUInt32BE(), d.mtimeSeconds = r.readUInt32BE(), d.mtimeNanoseconds = r.readUInt32BE(), d.dev = r.readUInt32BE(), d.ino = r.readUInt32BE(), d.mode = r.readUInt32BE(), d.uid = r.readUInt32BE(), d.gid = r.readUInt32BE(), d.size = r.readUInt32BE(), d.oid = r.slice(20).toString("hex");
3090
3094
  const w = r.readUInt16BE();
3091
- d.flags = Go(w);
3095
+ d.flags = Ho(w);
3092
3096
  const b = t.indexOf(0, r.tell() + 1) - r.tell();
3093
3097
  if (b < 1)
3094
3098
  throw new I(`Got a path length of: ${b}`);
@@ -3112,7 +3116,7 @@ class J {
3112
3116
  return [...this._unmergedPaths];
3113
3117
  }
3114
3118
  get entries() {
3115
- return [...this._entries.values()].sort(lr);
3119
+ return [...this._entries.values()].sort(pr);
3116
3120
  }
3117
3121
  get entriesMap() {
3118
3122
  return this._entries;
@@ -3136,7 +3140,7 @@ class J {
3136
3140
  uid: 0,
3137
3141
  gid: 0,
3138
3142
  size: 0
3139
- }), e = ir(e);
3143
+ }), e = ar(e);
3140
3144
  const c = Buffer.from(t), f = {
3141
3145
  ctimeSeconds: e.ctimeSeconds,
3142
3146
  ctimeNanoseconds: e.ctimeNanoseconds,
@@ -3182,8 +3186,8 @@ class J {
3182
3186
  `);
3183
3187
  }
3184
3188
  static async _entryToBuffer(t) {
3185
- const e = Buffer.from(t.path), r = Math.ceil((62 + e.length + 1) / 8) * 8, o = Buffer.alloc(r), c = new z(o), f = ir(t);
3186
- return c.writeUInt32BE(f.ctimeSeconds), c.writeUInt32BE(f.ctimeNanoseconds), c.writeUInt32BE(f.mtimeSeconds), c.writeUInt32BE(f.mtimeNanoseconds), c.writeUInt32BE(f.dev), c.writeUInt32BE(f.ino), c.writeUInt32BE(f.mode), c.writeUInt32BE(f.uid), c.writeUInt32BE(f.gid), c.writeUInt32BE(f.size), c.write(t.oid, 20, "hex"), c.writeUInt16BE(qo(t)), c.write(t.path, e.length, "utf8"), o;
3189
+ const e = Buffer.from(t.path), r = Math.ceil((62 + e.length + 1) / 8) * 8, o = Buffer.alloc(r), c = new z(o), f = ar(t);
3190
+ return c.writeUInt32BE(f.ctimeSeconds), c.writeUInt32BE(f.ctimeNanoseconds), c.writeUInt32BE(f.mtimeSeconds), c.writeUInt32BE(f.mtimeNanoseconds), c.writeUInt32BE(f.dev), c.writeUInt32BE(f.ino), c.writeUInt32BE(f.mode), c.writeUInt32BE(f.uid), c.writeUInt32BE(f.gid), c.writeUInt32BE(f.size), c.write(t.oid, 20, "hex"), c.writeUInt16BE(zo(t)), c.write(t.path, e.length, "utf8"), o;
3187
3191
  }
3188
3192
  async toObject() {
3189
3193
  const t = Buffer.alloc(12), e = new z(t);
@@ -3198,8 +3202,8 @@ class J {
3198
3202
  return Buffer.concat([c, Buffer.from(f, "hex")]);
3199
3203
  }
3200
3204
  }
3201
- async function Pr(n, t) {
3202
- const e = cr(n);
3205
+ async function Tr(n, t) {
3206
+ const e = ur(n);
3203
3207
  for (; ; ) {
3204
3208
  const { value: r, done: o } = await e.next();
3205
3209
  if (r && await t(r), o) break;
@@ -3209,7 +3213,7 @@ async function Pr(n, t) {
3209
3213
  async function ct(n) {
3210
3214
  let t = 0;
3211
3215
  const e = [];
3212
- await Pr(n, (c) => {
3216
+ await Tr(n, (c) => {
3213
3217
  e.push(c), t += c.byteLength;
3214
3218
  });
3215
3219
  const r = new Uint8Array(t);
@@ -3218,7 +3222,7 @@ async function ct(n) {
3218
3222
  r.set(c, o), o += c.byteLength;
3219
3223
  return r;
3220
3224
  }
3221
- class ee {
3225
+ class re {
3222
3226
  constructor() {
3223
3227
  this._queue = [];
3224
3228
  }
@@ -3254,9 +3258,9 @@ class ee {
3254
3258
  });
3255
3259
  }
3256
3260
  }
3257
- class Ho {
3261
+ class Wo {
3258
3262
  static demux(t) {
3259
- const e = D.streamReader(t), r = new ee(), o = new ee(), c = new ee(), f = async function() {
3263
+ const e = D.streamReader(t), r = new re(), o = new re(), c = new re(), f = async function() {
3260
3264
  const s = await e();
3261
3265
  if (s === null) return f();
3262
3266
  if (s === !0) {
@@ -3356,11 +3360,11 @@ class Ho {
3356
3360
  // return output
3357
3361
  // }
3358
3362
  }
3359
- async function kr(n) {
3360
- const { packetlines: t, packfile: e, progress: r } = Ho.demux(n), o = [], c = [], f = [];
3363
+ async function Or(n) {
3364
+ const { packetlines: t, packfile: e, progress: r } = Wo.demux(n), o = [], c = [], f = [];
3361
3365
  let s = !1, h = !1;
3362
3366
  return new Promise((y, d) => {
3363
- Pr(t, (w) => {
3367
+ Tr(t, (w) => {
3364
3368
  const b = w.toString("utf8").trim();
3365
3369
  if (b.startsWith("shallow")) {
3366
3370
  const v = b.slice(-41).trim();
@@ -3378,23 +3382,23 @@ async function kr(n) {
3378
3382
  });
3379
3383
  });
3380
3384
  }
3381
- typeof globalThis.Buffer > "u" && (globalThis.Buffer = le.Buffer);
3382
- class ge extends Error {
3385
+ typeof globalThis.Buffer > "u" && (globalThis.Buffer = he.Buffer);
3386
+ class me extends Error {
3383
3387
  constructor(t, e) {
3384
3388
  super(
3385
3389
  `Authentication required to access private repository: ${t}`
3386
3390
  ), this.name = "GitAuthenticationError", this.repoUrl = t, this.status = e;
3387
3391
  }
3388
3392
  }
3389
- async function xa(n, t, e, r) {
3390
- const o = (r == null ? void 0 : r.additionalHeaders) || {}, c = await Or(
3393
+ async function Ba(n, t, e, r) {
3394
+ const o = (r == null ? void 0 : r.additionalHeaders) || {}, c = await Dr(
3391
3395
  n,
3392
3396
  t,
3393
3397
  o
3394
- ), f = await Yo(c.idx, t, e), s = e.map((v) => f[v].oid), h = s.length > 0 ? await Xo(n, s, o) : null, y = {};
3398
+ ), f = await Ko(c.idx, t, e), s = e.map((v) => f[v].oid), h = s.length > 0 ? await Zo(n, s, o) : null, y = {};
3395
3399
  if (await Promise.all(
3396
3400
  e.map(async (v) => {
3397
- h && (y[v] = await Rr(
3401
+ h && (y[v] = await jr(
3398
3402
  h.idx,
3399
3403
  f[v].oid
3400
3404
  ));
@@ -3423,31 +3427,31 @@ async function xa(n, t, e, r) {
3423
3427
  files: y,
3424
3428
  packfiles: d,
3425
3429
  objects: [
3426
- ...await or(c),
3427
- ...await or(h)
3430
+ ...await sr(c),
3431
+ ...await sr(h)
3428
3432
  ],
3429
3433
  fileOids: b
3430
3434
  };
3431
3435
  }
3432
- const zo = /^[0-9a-f]{40}$/i;
3433
- async function Aa(n, t, e = {}) {
3434
- const r = await Or(
3436
+ const Vo = /^[0-9a-f]{40}$/i;
3437
+ async function Sa(n, t, e = {}) {
3438
+ const r = await Dr(
3435
3439
  n,
3436
3440
  t,
3437
3441
  e
3438
- ), o = await Jo(r.idx, t);
3439
- return o != null && o.object ? Tr(o) : [];
3442
+ ), o = await Xo(r.idx, t);
3443
+ return o != null && o.object ? Rr(o) : [];
3440
3444
  }
3441
- async function Ba(n, t, e = {}) {
3442
- const r = await Vo(n, t);
3445
+ async function Fa(n, t, e = {}) {
3446
+ const r = await Yo(n, t);
3443
3447
  if (r.resolvedOid)
3444
3448
  return r.resolvedOid;
3445
- const o = await oe(n, r.refname, e);
3449
+ const o = await ae(n, r.refname, e);
3446
3450
  if (!o)
3447
3451
  throw new Error(`Git ref "${r.refname}" not found at ${n}`);
3448
3452
  return o;
3449
3453
  }
3450
- function Tr(n) {
3454
+ function Rr(n) {
3451
3455
  return n.object.map((t) => {
3452
3456
  if (t.type === "blob")
3453
3457
  return {
@@ -3458,11 +3462,11 @@ function Tr(n) {
3458
3462
  return {
3459
3463
  name: t.path,
3460
3464
  type: "folder",
3461
- children: Tr(t)
3465
+ children: Rr(t)
3462
3466
  };
3463
3467
  }).filter((t) => !!(t != null && t.name));
3464
3468
  }
3465
- async function Wo(n, t, e = {}) {
3469
+ async function Jo(n, t, e = {}) {
3466
3470
  const r = Buffer.from(
3467
3471
  await ct([
3468
3472
  D.encode(`command=ls-refs
@@ -3490,17 +3494,17 @@ async function Wo(n, t, e = {}) {
3490
3494
  body: r
3491
3495
  });
3492
3496
  if (!o.ok)
3493
- throw o.status === 401 || o.status === 403 ? new ge(n, o.status) : new Error(
3497
+ throw o.status === 401 || o.status === 403 ? new me(n, o.status) : new Error(
3494
3498
  `Failed to fetch git refs from ${n}: ${o.status} ${o.statusText}`
3495
3499
  );
3496
3500
  const c = {};
3497
- for await (const f of Ko(o)) {
3501
+ for await (const f of Qo(o)) {
3498
3502
  const s = f.indexOf(" "), h = f.slice(0, s), d = f.slice(s + 1, f.length - 1).split(" ")[0];
3499
3503
  c[d] = h;
3500
3504
  }
3501
3505
  return c;
3502
3506
  }
3503
- async function Vo(n, t) {
3507
+ async function Yo(n, t) {
3504
3508
  switch (t.type ?? "infer") {
3505
3509
  case "commit":
3506
3510
  return {
@@ -3535,20 +3539,20 @@ async function Vo(n, t) {
3535
3539
  kind: "refname",
3536
3540
  refname: r
3537
3541
  };
3538
- if (zo.test(r))
3542
+ if (Vo.test(r))
3539
3543
  return {
3540
3544
  kind: "commit",
3541
3545
  refname: r,
3542
3546
  resolvedOid: r
3543
3547
  };
3544
- const o = `refs/heads/${r}`, c = await oe(n, o);
3548
+ const o = `refs/heads/${r}`, c = await ae(n, o);
3545
3549
  if (c)
3546
3550
  return {
3547
3551
  kind: "refname",
3548
3552
  refname: o,
3549
3553
  resolvedOid: c
3550
3554
  };
3551
- const f = `refs/tags/${r}`, s = await oe(n, f);
3555
+ const f = `refs/tags/${r}`, s = await ae(n, f);
3552
3556
  if (s)
3553
3557
  return {
3554
3558
  kind: "refname",
@@ -3561,8 +3565,8 @@ async function Vo(n, t) {
3561
3565
  throw new Error(`Invalid ref type: ${t.type}`);
3562
3566
  }
3563
3567
  }
3564
- async function oe(n, t, e) {
3565
- const r = await Wo(n, t, e), o = [t, `${t}^{}`];
3568
+ async function ae(n, t, e) {
3569
+ const r = await Jo(n, t, e), o = [t, `${t}^{}`];
3566
3570
  for (const c of o) {
3567
3571
  const f = c.trim();
3568
3572
  if (f in r)
@@ -3570,7 +3574,7 @@ async function oe(n, t, e) {
3570
3574
  }
3571
3575
  return null;
3572
3576
  }
3573
- async function Or(n, t, e) {
3577
+ async function Dr(n, t, e) {
3574
3578
  const r = Buffer.from(
3575
3579
  await ct([
3576
3580
  D.encode(
@@ -3600,10 +3604,10 @@ async function Or(n, t, e) {
3600
3604
  body: r
3601
3605
  });
3602
3606
  if (!o.ok)
3603
- throw o.status === 401 || o.status === 403 ? new ge(n, o.status) : new Error(
3607
+ throw o.status === 401 || o.status === 403 ? new me(n, o.status) : new Error(
3604
3608
  `Failed to fetch git objects from ${n}: ${o.status} ${o.statusText}`
3605
3609
  );
3606
- const c = Dr(o.body), f = await kr(c), s = Buffer.from(await ct(f.packfile)), h = await nt.fromPack({
3610
+ const c = Nr(o.body), f = await Or(c), s = Buffer.from(await ct(f.packfile)), h = await nt.fromPack({
3607
3611
  pack: s
3608
3612
  }), y = h.read;
3609
3613
  return h.read = async function({ oid: d, ...w }) {
@@ -3615,7 +3619,7 @@ async function Or(n, t, e) {
3615
3619
  promisor: !0
3616
3620
  };
3617
3621
  }
3618
- async function Jo(n, t) {
3622
+ async function Xo(n, t) {
3619
3623
  const e = await n.read({
3620
3624
  oid: t
3621
3625
  });
@@ -3629,7 +3633,7 @@ async function Jo(n, t) {
3629
3633
  }
3630
3634
  return r;
3631
3635
  }
3632
- async function or(n) {
3636
+ async function sr(n) {
3633
3637
  if (!n)
3634
3638
  return [];
3635
3639
  const t = [], e = /* @__PURE__ */ new Set();
@@ -3648,7 +3652,7 @@ async function or(n) {
3648
3652
  }
3649
3653
  return t;
3650
3654
  }
3651
- async function Yo(n, t, e) {
3655
+ async function Ko(n, t, e) {
3652
3656
  const r = await n.read({
3653
3657
  oid: t
3654
3658
  });
@@ -3680,7 +3684,7 @@ async function Yo(n, t, e) {
3680
3684
  }
3681
3685
  return c;
3682
3686
  }
3683
- async function Xo(n, t, e) {
3687
+ async function Zo(n, t, e) {
3684
3688
  const r = Buffer.from(
3685
3689
  await ct([
3686
3690
  ...t.map(
@@ -3704,10 +3708,10 @@ async function Xo(n, t, e) {
3704
3708
  body: r
3705
3709
  });
3706
3710
  if (!o.ok)
3707
- throw o.status === 401 || o.status === 403 ? new ge(n, o.status) : new Error(
3711
+ throw o.status === 401 || o.status === 403 ? new me(n, o.status) : new Error(
3708
3712
  `Failed to fetch git objects from ${n}: ${o.status} ${o.statusText}`
3709
3713
  );
3710
- const c = Dr(o.body), f = await kr(c), s = Buffer.from(await ct(f.packfile));
3714
+ const c = Nr(o.body), f = await Or(c), s = Buffer.from(await ct(f.packfile));
3711
3715
  return s.byteLength === 0 ? {
3712
3716
  idx: await nt.fromPack({
3713
3717
  pack: s
@@ -3722,7 +3726,7 @@ async function Xo(n, t, e) {
3722
3726
  promisor: !1
3723
3727
  };
3724
3728
  }
3725
- async function Rr(n, t) {
3729
+ async function jr(n, t) {
3726
3730
  const e = await n.read({ oid: t });
3727
3731
  if (X(e), e.type === "blob")
3728
3732
  return e.object;
@@ -3731,7 +3735,7 @@ async function Rr(n, t) {
3731
3735
  if (f === "blob") {
3732
3736
  const s = await n.read({ oid: c });
3733
3737
  X(s), r[o] = s.object;
3734
- } else f === "tree" && (r[o] = await Rr(n, c));
3738
+ } else f === "tree" && (r[o] = await jr(n, c));
3735
3739
  return r;
3736
3740
  }
3737
3741
  function X(n) {
@@ -3741,7 +3745,7 @@ function X(n) {
3741
3745
  n.object = M.from(n.object).parse();
3742
3746
  break;
3743
3747
  case "tree":
3744
- n.object = ue.from(n.object).entries();
3748
+ n.object = le.from(n.object).entries();
3745
3749
  break;
3746
3750
  case "blob":
3747
3751
  n.object = new Uint8Array(n.object), n.format = "content";
@@ -3757,7 +3761,7 @@ function X(n) {
3757
3761
  );
3758
3762
  }
3759
3763
  }
3760
- async function* Ko(n) {
3764
+ async function* Qo(n) {
3761
3765
  const t = await n.text();
3762
3766
  let e = 0;
3763
3767
  for (; e <= t.length; ) {
@@ -3767,7 +3771,7 @@ async function* Ko(n) {
3767
3771
  yield t.substring(e + 4, e + r), e += r;
3768
3772
  }
3769
3773
  }
3770
- function Dr(n) {
3774
+ function Nr(n) {
3771
3775
  if (n[Symbol.asyncIterator])
3772
3776
  return n;
3773
3777
  const t = n.getReader();
@@ -3786,8 +3790,8 @@ function Dr(n) {
3786
3790
  function ft(n) {
3787
3791
  return n instanceof Uint8Array, Uint8Array.from(n);
3788
3792
  }
3789
- const Zo = fe.deflate, Qo = /^[0-9a-f]{40}$/i;
3790
- async function ta(n) {
3793
+ const ta = ue.deflate, ea = /^[0-9a-f]{40}$/i;
3794
+ async function ra(n) {
3791
3795
  const t = {}, e = new TextEncoder();
3792
3796
  return await Promise.all(
3793
3797
  n.map(async ({ oid: r, type: o, body: c }) => {
@@ -3795,12 +3799,12 @@ async function ta(n) {
3795
3799
  return;
3796
3800
  const f = e.encode(`${o} ${c.length}\0`), s = new Uint8Array(f.length + c.length);
3797
3801
  s.set(f, 0), s.set(c, f.length);
3798
- const h = await Zo(s), y = r.slice(0, 2), d = r.slice(2);
3802
+ const h = await ta(s), y = r.slice(0, 2), d = r.slice(2);
3799
3803
  t[`.git/objects/${y}/${d}`] = h;
3800
3804
  })
3801
3805
  ), t;
3802
3806
  }
3803
- function ea(n, t, e) {
3807
+ function na(n, t, e) {
3804
3808
  const r = (n == null ? void 0 : n.trim()) ?? "";
3805
3809
  let o = null;
3806
3810
  switch (t) {
@@ -3817,7 +3821,7 @@ function ea(n, t, e) {
3817
3821
  o = null;
3818
3822
  break;
3819
3823
  default:
3820
- r.startsWith("refs/") ? o = r : Qo.test(r) ? o = null : r && r !== "HEAD" && (o = `refs/heads/${r}`);
3824
+ r.startsWith("refs/") ? o = r : ea.test(r) ? o = null : r && r !== "HEAD" && (o = `refs/heads/${r}`);
3821
3825
  break;
3822
3826
  }
3823
3827
  const c = o ? `ref: ${o}
@@ -3830,7 +3834,7 @@ function ea(n, t, e) {
3830
3834
  tagName: y
3831
3835
  };
3832
3836
  }
3833
- function ra(n, {
3837
+ function ia(n, {
3834
3838
  branchName: t,
3835
3839
  partialCloneFilter: e
3836
3840
  }) {
@@ -3855,7 +3859,7 @@ function ra(n, {
3855
3859
  `) + `
3856
3860
  `;
3857
3861
  }
3858
- async function Sa({
3862
+ async function Ia({
3859
3863
  repoUrl: n,
3860
3864
  commitHash: t,
3861
3865
  ref: e,
@@ -3864,8 +3868,8 @@ async function Sa({
3864
3868
  fileOids: c,
3865
3869
  pathPrefix: f
3866
3870
  }) {
3867
- const s = {}, h = ea(e, r, t);
3868
- s[".git/HEAD"] = h.headContent, s[".git/config"] = ra(n, {
3871
+ const s = {}, h = na(e, r, t);
3872
+ s[".git/HEAD"] = h.headContent, s[".git/config"] = ia(n, {
3869
3873
  branchName: h.branchName
3870
3874
  }), s[".git/description"] = `WordPress Playground clone
3871
3875
  `, s[".git/shallow"] = `${t}
@@ -3874,7 +3878,7 @@ async function Sa({
3874
3878
  `, s[`.git/refs/remotes/origin/${h.branchName}`] = `${t}
3875
3879
  `, s[".git/refs/remotes/origin/HEAD"] = `ref: refs/remotes/origin/${h.branchName}
3876
3880
  `), h.tagName && (s[`.git/refs/tags/${h.tagName}`] = `${t}
3877
- `), Object.assign(s, await ta(o));
3881
+ `), Object.assign(s, await ra(o));
3878
3882
  const y = new J();
3879
3883
  for (const [w, b] of Object.entries(c)) {
3880
3884
  const v = w.substring(f.length).replace(/^\/+/, "");
@@ -3899,8 +3903,8 @@ async function Sa({
3899
3903
  const d = await y.toObject();
3900
3904
  return s[".git/index"] = Uint8Array.from(d), s;
3901
3905
  }
3902
- function Fa(n, t) {
3903
- t = ce(t);
3906
+ function _a(n, t) {
3907
+ t = fe(t);
3904
3908
  const e = ["", ".", "/"].includes(t);
3905
3909
  let r = n;
3906
3910
  if (e)
@@ -3929,10 +3933,10 @@ function Fa(n, t) {
3929
3933
  }
3930
3934
  return o;
3931
3935
  }
3932
- function Ia(n, t) {
3936
+ function $a(n, t) {
3933
3937
  return n.startsWith(t) ? n.substring(t.length) : n;
3934
3938
  }
3935
- async function _a(n, t) {
3939
+ async function Ua(n, t) {
3936
3940
  await t.clear();
3937
3941
  const e = async (r) => {
3938
3942
  const o = await n.listFiles(r);
@@ -3948,7 +3952,7 @@ async function _a(n, t) {
3948
3952
  };
3949
3953
  await e("/");
3950
3954
  }
3951
- class $a extends EventTarget {
3955
+ class Pa extends EventTarget {
3952
3956
  constructor(t) {
3953
3957
  super(), this.encoder = new TextEncoder(), this.decoder = new TextDecoder(), this.backend = t;
3954
3958
  }
@@ -3988,7 +3992,7 @@ class $a extends EventTarget {
3988
3992
  await this.backend.clear(), this.dispatchEvent(new Event("change"));
3989
3993
  }
3990
3994
  }
3991
- class Ua {
3995
+ class ka {
3992
3996
  constructor(t) {
3993
3997
  this.fileTree = t;
3994
3998
  }
@@ -4020,24 +4024,24 @@ class Ua {
4020
4024
  throw new Error(`File not found at ${t}`);
4021
4025
  }
4022
4026
  }
4023
- class ae {
4027
+ class se {
4024
4028
  constructor(t) {
4025
4029
  this.entries = /* @__PURE__ */ new Map(), this.zipReader = t;
4026
4030
  }
4027
4031
  static fromStream(t) {
4028
- const e = new _e(
4029
- new $e(new K(t, "archive.zip"))
4032
+ const e = new $e(
4033
+ new Ue(new K(t, "archive.zip"))
4030
4034
  );
4031
- return new ae(e);
4035
+ return new se(e);
4032
4036
  }
4033
4037
  static fromArrayBuffer(t) {
4034
- const e = new _e(
4035
- new $e(new Blob([t]))
4038
+ const e = new $e(
4039
+ new Ue(new Blob([t]))
4036
4040
  );
4037
- return new ae(e);
4041
+ return new se(e);
4038
4042
  }
4039
4043
  async read(t) {
4040
- const e = await this.getEntry(t), r = await e.getData(new rn());
4044
+ const e = await this.getEntry(t), r = await e.getData(new on());
4041
4045
  return new K(r.stream(), t, {
4042
4046
  filesize: e.uncompressedSize
4043
4047
  });
@@ -4057,7 +4061,7 @@ class ae {
4057
4061
  return this.entries;
4058
4062
  }
4059
4063
  }
4060
- class Pa {
4064
+ class Ta {
4061
4065
  /**
4062
4066
  * Creates a new OverlayFilesystem.
4063
4067
  *
@@ -4097,7 +4101,7 @@ class Pa {
4097
4101
  );
4098
4102
  }
4099
4103
  }
4100
- class ka {
4104
+ class Oa {
4101
4105
  constructor(t) {
4102
4106
  if (this.baseUrl = "", this.options = t, this.isDataUrl = t.baseUrl.startsWith("data:"), this.isDataUrl)
4103
4107
  return;
@@ -4113,7 +4117,7 @@ class ka {
4113
4117
  throw new Error(
4114
4118
  "FetchFilesystem cannot fetch files from data URLs"
4115
4119
  );
4116
- t = ce(t);
4120
+ t = fe(t);
4117
4121
  const e = t.replace(/^\//, ""), r = new URL(e, this.baseUrl).toString();
4118
4122
  if (!r.startsWith(this.baseUrl))
4119
4123
  throw new Error(
@@ -4128,7 +4132,7 @@ class ka {
4128
4132
  return new K(c.body, t, { filesize: f });
4129
4133
  }
4130
4134
  }
4131
- class Ta {
4135
+ class Ra {
4132
4136
  constructor(t) {
4133
4137
  this.root = t;
4134
4138
  }
@@ -4165,7 +4169,7 @@ class Ta {
4165
4169
  )
4166
4170
  ) : e(
4167
4171
  new K(
4168
- na(c),
4172
+ oa(c),
4169
4173
  t,
4170
4174
  {
4171
4175
  filesize: s.size
@@ -4176,14 +4180,14 @@ class Ta {
4176
4180
  });
4177
4181
  }
4178
4182
  }
4179
- function na(n) {
4183
+ function oa(n) {
4180
4184
  return new ReadableStream({
4181
4185
  start(e) {
4182
4186
  n.on("data", (r) => e.enqueue(r)), n.on("end", () => e.close());
4183
4187
  }
4184
4188
  });
4185
4189
  }
4186
- class se {
4190
+ class ce {
4187
4191
  constructor(t) {
4188
4192
  this.opfsRoot = t;
4189
4193
  }
@@ -4191,7 +4195,7 @@ class se {
4191
4195
  * Create a backend for a specific OPFS directory handle.
4192
4196
  */
4193
4197
  static fromDirectoryHandle(t) {
4194
- return new se(t);
4198
+ return new ce(t);
4195
4199
  }
4196
4200
  /**
4197
4201
  * Create a backend for a specific path in OPFS.
@@ -4207,7 +4211,7 @@ class se {
4207
4211
  const o = t.split("/").filter(Boolean);
4208
4212
  for (const c of o)
4209
4213
  r = await r.getDirectoryHandle(c, { create: e });
4210
- return new se(r);
4214
+ return new ce(r);
4211
4215
  }
4212
4216
  async clear() {
4213
4217
  for await (const [t] of this.opfsRoot.entries())
@@ -4344,7 +4348,7 @@ class se {
4344
4348
  }
4345
4349
  }
4346
4350
  }
4347
- class Oa {
4351
+ class Da {
4348
4352
  constructor(t = {}) {
4349
4353
  this.root = { type: "dir", children: {} };
4350
4354
  for (const [e, r] of Object.entries(t))
@@ -4481,40 +4485,40 @@ class Oa {
4481
4485
  }
4482
4486
  }
4483
4487
  export {
4484
- $a as EventedFilesystem,
4485
- ka as FetchFilesystem,
4486
- ge as GitAuthenticationError,
4487
- Ua as InMemoryFilesystem,
4488
- Oa as InMemoryFilesystemBackend,
4489
- Ta as NodeJsFilesystem,
4490
- se as OpfsFilesystemBackend,
4491
- Pa as OverlayFilesystem,
4492
- ae as ZipFilesystem,
4493
- ba as changeset,
4494
- Ea as clearContentsFromMountDevice,
4495
- _a as copyFilesystem,
4496
- ua as createClient,
4497
- wa as createCommit,
4498
- Sa as createDotGitDirectory,
4499
- da as createOrUpdateBranch,
4500
- ga as createTree,
4501
- Ue as createTreeNode,
4502
- cn as createTreeNodes,
4503
- fn as deleteFile,
4504
- hn as directoryHandleFromMountDevice,
4505
- va as directoryHandleToOpfsPath,
4506
- la as filesListToObject,
4507
- ya as fork,
4508
- ha as getArtifact,
4509
- nn as getFilesFromDirectory,
4510
- ma as iterateFiles,
4511
- Fa as listDescendantFiles,
4512
- Aa as listGitFiles,
4513
- Wo as listGitRefs,
4514
- pa as mayPush,
4515
- pn as opfsPathToDirectoryHandle,
4516
- Ia as removePathPrefix,
4517
- Ba as resolveCommitHash,
4518
- xa as sparseCheckout
4488
+ Pa as EventedFilesystem,
4489
+ Oa as FetchFilesystem,
4490
+ me as GitAuthenticationError,
4491
+ ka as InMemoryFilesystem,
4492
+ Da as InMemoryFilesystemBackend,
4493
+ Ra as NodeJsFilesystem,
4494
+ ce as OpfsFilesystemBackend,
4495
+ Ta as OverlayFilesystem,
4496
+ se as ZipFilesystem,
4497
+ Ea as changeset,
4498
+ Aa as clearContentsFromMountDevice,
4499
+ Ua as copyFilesystem,
4500
+ ha as createClient,
4501
+ ma as createCommit,
4502
+ Ia as createDotGitDirectory,
4503
+ wa as createOrUpdateBranch,
4504
+ ba as createTree,
4505
+ Pe as createTreeNode,
4506
+ un as createTreeNodes,
4507
+ ln as deleteFile,
4508
+ dn as directoryHandleFromMountDevice,
4509
+ xa as directoryHandleToOpfsPath,
4510
+ pa as filesListToObject,
4511
+ ga as fork,
4512
+ da as getArtifact,
4513
+ an as getFilesFromDirectory,
4514
+ va as iterateFiles,
4515
+ _a as listDescendantFiles,
4516
+ Sa as listGitFiles,
4517
+ Jo as listGitRefs,
4518
+ ya as mayPush,
4519
+ yn as opfsPathToDirectoryHandle,
4520
+ $a as removePathPrefix,
4521
+ Fa as resolveCommitHash,
4522
+ Ba as sparseCheckout
4519
4523
  };
4520
4524
  //# sourceMappingURL=index.js.map