@wp-playground/storage 3.0.52 → 3.0.53

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