@feedmepos/mf-settings 0.0.64-prod → 0.0.65

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.
Files changed (26) hide show
  1. package/dist/{App-dadb8bf9.js → App-58466af2.js} +9442 -9104
  2. package/dist/Business-4c140fb5.js +3948 -0
  3. package/dist/{CreateBusiness-8145d5b6.js → CreateBusiness-af1ec0c0.js} +3 -3
  4. package/dist/{FoodCourt-859c83b2.js → FoodCourt-c9b603d6.js} +19836 -19409
  5. package/dist/{ReasonTemplate-06a053d7.js → ReasonTemplate-c39df454.js} +2 -2
  6. package/dist/{Tagging-e96d855e.js → Tagging-7c0e3126.js} +7 -6
  7. package/dist/TemplateBuilder-54a34178.js +27 -0
  8. package/dist/{app-9c6363b3.js → app-b0e8ba91.js} +110 -78
  9. package/dist/app.js +6 -5
  10. package/dist/apps/mf-settings/src/app.d.ts +2 -1339
  11. package/dist/apps/mf-settings/src/extensions/business.d.ts +1 -1
  12. package/dist/apps/mf-settings/src/extensions/profile.d.ts +1 -1
  13. package/dist/apps/mf-settings/src/router/shared.d.ts +2 -1
  14. package/dist/apps/mf-settings/src/types/reasonTemplate.d.ts +1 -1
  15. package/dist/apps/mf-settings/src/types/restaurant.d.ts +1 -1
  16. package/dist/apps/mf-settings/tsconfig.app.tsbuildinfo +1 -1
  17. package/dist/{business-b5512a2c.js → business-7684bcec.js} +1 -1
  18. package/dist/{dayjs.min-1dcf0c5a.js → dayjs.min-6eec923a.js} +1 -1
  19. package/dist/index-3f4c8817.js +2395 -0
  20. package/dist/{index-79b36905.js → index-b9ef9a01.js} +2972 -2797
  21. package/dist/{map-54b71412.js → map-695afd6f.js} +410 -527
  22. package/dist/packages/shared/src/permission/posPermission.d.ts +6 -0
  23. package/package.json +4 -3
  24. package/dist/Business-eafcd130.js +0 -12070
  25. package/dist/TemplateBuilder-3e34e9e8.js +0 -27
  26. package/dist/index-f1179ebc.js +0 -8424
@@ -1,117 +1,4 @@
1
1
  import { ref as ot } from "vue";
2
- function Zr(t, e) {
3
- var n = {};
4
- for (var r in t)
5
- Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
6
- if (t != null && typeof Object.getOwnPropertySymbols == "function")
7
- for (var s = 0, r = Object.getOwnPropertySymbols(t); s < r.length; s++)
8
- e.indexOf(r[s]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[s]) && (n[r[s]] = t[r[s]]);
9
- return n;
10
- }
11
- function Qr(t, e, n, r) {
12
- function s(o) {
13
- return o instanceof n ? o : new n(function(i) {
14
- i(o);
15
- });
16
- }
17
- return new (n || (n = Promise))(function(o, i) {
18
- function c(u) {
19
- try {
20
- a(r.next(u));
21
- } catch (p) {
22
- i(p);
23
- }
24
- }
25
- function l(u) {
26
- try {
27
- a(r.throw(u));
28
- } catch (p) {
29
- i(p);
30
- }
31
- }
32
- function a(u) {
33
- u.done ? o(u.value) : s(u.value).then(c, l);
34
- }
35
- a((r = r.apply(t, e || [])).next());
36
- });
37
- }
38
- function es(t, e) {
39
- var n = { label: 0, sent: function() {
40
- if (o[0] & 1)
41
- throw o[1];
42
- return o[1];
43
- }, trys: [], ops: [] }, r, s, o, i = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
44
- return i.next = c(0), i.throw = c(1), i.return = c(2), typeof Symbol == "function" && (i[Symbol.iterator] = function() {
45
- return this;
46
- }), i;
47
- function c(a) {
48
- return function(u) {
49
- return l([a, u]);
50
- };
51
- }
52
- function l(a) {
53
- if (r)
54
- throw new TypeError("Generator is already executing.");
55
- for (; i && (i = 0, a[0] && (n = 0)), n; )
56
- try {
57
- if (r = 1, s && (o = a[0] & 2 ? s.return : a[0] ? s.throw || ((o = s.return) && o.call(s), 0) : s.next) && !(o = o.call(s, a[1])).done)
58
- return o;
59
- switch (s = 0, o && (a = [a[0] & 2, o.value]), a[0]) {
60
- case 0:
61
- case 1:
62
- o = a;
63
- break;
64
- case 4:
65
- return n.label++, { value: a[1], done: !1 };
66
- case 5:
67
- n.label++, s = a[1], a = [0];
68
- continue;
69
- case 7:
70
- a = n.ops.pop(), n.trys.pop();
71
- continue;
72
- default:
73
- if (o = n.trys, !(o = o.length > 0 && o[o.length - 1]) && (a[0] === 6 || a[0] === 2)) {
74
- n = 0;
75
- continue;
76
- }
77
- if (a[0] === 3 && (!o || a[1] > o[0] && a[1] < o[3])) {
78
- n.label = a[1];
79
- break;
80
- }
81
- if (a[0] === 6 && n.label < o[1]) {
82
- n.label = o[1], o = a;
83
- break;
84
- }
85
- if (o && n.label < o[2]) {
86
- n.label = o[2], n.ops.push(a);
87
- break;
88
- }
89
- o[2] && n.ops.pop(), n.trys.pop();
90
- continue;
91
- }
92
- a = e.call(t, n);
93
- } catch (u) {
94
- a = [6, u], s = 0;
95
- } finally {
96
- r = o = 0;
97
- }
98
- if (a[0] & 5)
99
- throw a[1];
100
- return { value: a[0] ? a[1] : void 0, done: !0 };
101
- }
102
- }
103
- function ts(t) {
104
- var e = typeof Symbol == "function" && Symbol.iterator, n = e && t[e], r = 0;
105
- if (n)
106
- return n.call(t);
107
- if (t && typeof t.length == "number")
108
- return {
109
- next: function() {
110
- return t && r >= t.length && (t = void 0), { value: t && t[r++], done: !t };
111
- }
112
- };
113
- throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
114
- }
115
2
  /**
116
3
  * @license
117
4
  * Copyright 2017 Google LLC
@@ -163,8 +50,8 @@ const Be = function(t) {
163
50
  const o = t[n++];
164
51
  e[r++] = String.fromCharCode((s & 31) << 6 | o & 63);
165
52
  } else if (s > 239 && s < 365) {
166
- const o = t[n++], i = t[n++], c = t[n++], l = ((s & 7) << 18 | (o & 63) << 12 | (i & 63) << 6 | c & 63) - 65536;
167
- e[r++] = String.fromCharCode(55296 + (l >> 10)), e[r++] = String.fromCharCode(56320 + (l & 1023));
53
+ const o = t[n++], i = t[n++], a = t[n++], c = ((s & 7) << 18 | (o & 63) << 12 | (i & 63) << 6 | a & 63) - 65536;
54
+ e[r++] = String.fromCharCode(55296 + (c >> 10)), e[r++] = String.fromCharCode(56320 + (c & 1023));
168
55
  } else {
169
56
  const o = t[n++], i = t[n++];
170
57
  e[r++] = String.fromCharCode((s & 15) << 12 | (o & 63) << 6 | i & 63);
@@ -230,9 +117,9 @@ const Be = function(t) {
230
117
  this.init_();
231
118
  const n = e ? this.byteToCharMapWebSafe_ : this.byteToCharMap_, r = [];
232
119
  for (let s = 0; s < t.length; s += 3) {
233
- const o = t[s], i = s + 1 < t.length, c = i ? t[s + 1] : 0, l = s + 2 < t.length, a = l ? t[s + 2] : 0, u = o >> 2, p = (o & 3) << 4 | c >> 4;
234
- let g = (c & 15) << 2 | a >> 6, m = a & 63;
235
- l || (m = 64, i || (g = 64)), r.push(n[u], n[p], n[g], n[m]);
120
+ const o = t[s], i = s + 1 < t.length, a = i ? t[s + 1] : 0, c = s + 2 < t.length, l = c ? t[s + 2] : 0, g = o >> 2, f = (o & 3) << 4 | a >> 4;
121
+ let p = (a & 15) << 2 | l >> 6, m = l & 63;
122
+ c || (m = 64, i || (p = 64)), r.push(n[g], n[f], n[p], n[m]);
236
123
  }
237
124
  return r.join("");
238
125
  },
@@ -277,19 +164,19 @@ const Be = function(t) {
277
164
  this.init_();
278
165
  const n = e ? this.charToByteMapWebSafe_ : this.charToByteMap_, r = [];
279
166
  for (let s = 0; s < t.length; ) {
280
- const o = n[t.charAt(s++)], c = s < t.length ? n[t.charAt(s)] : 0;
167
+ const o = n[t.charAt(s++)], a = s < t.length ? n[t.charAt(s)] : 0;
281
168
  ++s;
282
- const a = s < t.length ? n[t.charAt(s)] : 64;
169
+ const l = s < t.length ? n[t.charAt(s)] : 64;
283
170
  ++s;
284
- const p = s < t.length ? n[t.charAt(s)] : 64;
285
- if (++s, o == null || c == null || a == null || p == null)
171
+ const f = s < t.length ? n[t.charAt(s)] : 64;
172
+ if (++s, o == null || a == null || l == null || f == null)
286
173
  throw new at();
287
- const g = o << 2 | c >> 4;
288
- if (r.push(g), a !== 64) {
289
- const m = c << 4 & 240 | a >> 2;
290
- if (r.push(m), p !== 64) {
291
- const E = a << 6 & 192 | p;
292
- r.push(E);
174
+ const p = o << 2 | a >> 4;
175
+ if (r.push(p), l !== 64) {
176
+ const m = a << 4 & 240 | l >> 2;
177
+ if (r.push(m), f !== 64) {
178
+ const w = l << 6 & 192 | f;
179
+ r.push(w);
293
180
  }
294
181
  }
295
182
  }
@@ -403,10 +290,10 @@ const ht = () => ut().__FIREBASE_DEFAULTS__, dt = () => {
403
290
  throw new Error(`Invalid host ${e} with no separate hostname and port!`);
404
291
  const r = parseInt(e.substring(n + 1), 10);
405
292
  return e[0] === "[" ? [e.substring(1, n - 1), r] : [e.substring(0, n), r];
406
- }, Pe = () => {
293
+ }, Ue = () => {
407
294
  var t;
408
295
  return (t = K()) === null || t === void 0 ? void 0 : t.config;
409
- }, ns = (t) => {
296
+ }, Zr = (t) => {
410
297
  var e;
411
298
  return (e = K()) === null || e === void 0 ? void 0 : e[`_${t}`];
412
299
  };
@@ -462,7 +349,7 @@ class mt {
462
349
  * See the License for the specific language governing permissions and
463
350
  * limitations under the License.
464
351
  */
465
- function bt(t, e) {
352
+ function _t(t, e) {
466
353
  if (t.uid)
467
354
  throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');
468
355
  const n = {
@@ -484,11 +371,11 @@ function bt(t, e) {
484
371
  sign_in_provider: "custom",
485
372
  identities: {}
486
373
  }
487
- }, t), c = "";
374
+ }, t), a = "";
488
375
  return [
489
376
  q(JSON.stringify(n)),
490
377
  q(JSON.stringify(i)),
491
- c
378
+ a
492
379
  ].join(".");
493
380
  }
494
381
  /**
@@ -507,15 +394,15 @@ function bt(t, e) {
507
394
  * See the License for the specific language governing permissions and
508
395
  * limitations under the License.
509
396
  */
510
- function Ue() {
397
+ function Pe() {
511
398
  return typeof navigator < "u" && typeof navigator.userAgent == "string" ? navigator.userAgent : "";
512
399
  }
513
- function rs() {
400
+ function Qr() {
514
401
  return typeof window < "u" && // @ts-ignore Setting up an broadly applicable index signature for Window
515
402
  // just to deal with this case would probably be a bad idea.
516
- !!(window.cordova || window.phonegap || window.PhoneGap) && /ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Ue());
403
+ !!(window.cordova || window.phonegap || window.PhoneGap) && /ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Pe());
517
404
  }
518
- function _t() {
405
+ function bt() {
519
406
  var t;
520
407
  const e = (t = K()) === null || t === void 0 ? void 0 : t.forceEnvironment;
521
408
  if (e === "node")
@@ -528,15 +415,15 @@ function _t() {
528
415
  return !1;
529
416
  }
530
417
  }
531
- function ss() {
418
+ function es() {
532
419
  const t = typeof chrome == "object" ? chrome.runtime : typeof browser == "object" ? browser.runtime : void 0;
533
420
  return typeof t == "object" && t.id !== void 0;
534
421
  }
535
- function os() {
422
+ function ts() {
536
423
  return typeof navigator == "object" && navigator.product === "ReactNative";
537
424
  }
538
- function is() {
539
- const t = Ue();
425
+ function ns() {
426
+ const t = Pe();
540
427
  return t.indexOf("MSIE ") >= 0 || t.indexOf("Trident/") >= 0;
541
428
  }
542
429
  function yt() {
@@ -546,7 +433,7 @@ function yt() {
546
433
  return !1;
547
434
  }
548
435
  }
549
- function wt() {
436
+ function Et() {
550
437
  return new Promise((t, e) => {
551
438
  try {
552
439
  let n = !0;
@@ -580,10 +467,10 @@ function wt() {
580
467
  * See the License for the specific language governing permissions and
581
468
  * limitations under the License.
582
469
  */
583
- const Et = "FirebaseError";
470
+ const wt = "FirebaseError";
584
471
  class x extends Error {
585
472
  constructor(e, n, r) {
586
- super(n), this.code = e, this.customData = r, this.name = Et, Object.setPrototypeOf(this, x.prototype), Error.captureStackTrace && Error.captureStackTrace(this, Le.prototype.create);
473
+ super(n), this.code = e, this.customData = r, this.name = wt, Object.setPrototypeOf(this, x.prototype), Error.captureStackTrace && Error.captureStackTrace(this, Le.prototype.create);
587
474
  }
588
475
  }
589
476
  class Le {
@@ -591,18 +478,18 @@ class Le {
591
478
  this.service = e, this.serviceName = n, this.errors = r;
592
479
  }
593
480
  create(e, ...n) {
594
- const r = n[0] || {}, s = `${this.service}/${e}`, o = this.errors[e], i = o ? It(o, r) : "Error", c = `${this.serviceName}: ${i} (${s}).`;
595
- return new x(s, c, r);
481
+ const r = n[0] || {}, s = `${this.service}/${e}`, o = this.errors[e], i = o ? It(o, r) : "Error", a = `${this.serviceName}: ${i} (${s}).`;
482
+ return new x(s, a, r);
596
483
  }
597
484
  }
598
485
  function It(t, e) {
599
- return t.replace(vt, (n, r) => {
486
+ return t.replace(Rt, (n, r) => {
600
487
  const s = e[r];
601
488
  return s != null ? String(s) : `<${r}?>`;
602
489
  });
603
490
  }
604
- const vt = /\{\$([^}]+)}/g;
605
- function as(t) {
491
+ const Rt = /\{\$([^}]+)}/g;
492
+ function rs(t) {
606
493
  for (const e in t)
607
494
  if (Object.prototype.hasOwnProperty.call(t, e))
608
495
  return !1;
@@ -616,7 +503,7 @@ function oe(t, e) {
616
503
  if (!r.includes(s))
617
504
  return !1;
618
505
  const o = t[s], i = e[s];
619
- if (we(o) && we(i)) {
506
+ if (Ee(o) && Ee(i)) {
620
507
  if (!oe(o, i))
621
508
  return !1;
622
509
  } else if (o !== i)
@@ -627,7 +514,7 @@ function oe(t, e) {
627
514
  return !1;
628
515
  return !0;
629
516
  }
630
- function we(t) {
517
+ function Ee(t) {
631
518
  return t !== null && typeof t == "object";
632
519
  }
633
520
  /**
@@ -646,7 +533,7 @@ function we(t) {
646
533
  * See the License for the specific language governing permissions and
647
534
  * limitations under the License.
648
535
  */
649
- function cs(t) {
536
+ function ss(t) {
650
537
  const e = [];
651
538
  for (const [n, r] of Object.entries(t))
652
539
  Array.isArray(r) ? r.forEach((s) => {
@@ -654,7 +541,7 @@ function cs(t) {
654
541
  }) : e.push(encodeURIComponent(n) + "=" + encodeURIComponent(r));
655
542
  return e.length ? "&" + e.join("&") : "";
656
543
  }
657
- function ls(t, e) {
544
+ function os(t, e) {
658
545
  const n = new Tt(t, e);
659
546
  return n.subscribe.bind(n);
660
547
  }
@@ -696,7 +583,7 @@ class Tt {
696
583
  let s;
697
584
  if (e === void 0 && n === void 0 && r === void 0)
698
585
  throw new Error("Missing Observer.");
699
- Rt(e, [
586
+ At(e, [
700
587
  "next",
701
588
  "error",
702
589
  "complete"
@@ -742,7 +629,7 @@ class Tt {
742
629
  }));
743
630
  }
744
631
  }
745
- function Rt(t, e) {
632
+ function At(t, e) {
746
633
  if (typeof t != "object" || t === null)
747
634
  return !1;
748
635
  for (const n of e)
@@ -768,7 +655,7 @@ function Z() {
768
655
  * See the License for the specific language governing permissions and
769
656
  * limitations under the License.
770
657
  */
771
- function P(t) {
658
+ function U(t) {
772
659
  return t && t._delegate ? t._delegate : t;
773
660
  }
774
661
  class $ {
@@ -810,7 +697,7 @@ class $ {
810
697
  * See the License for the specific language governing permissions and
811
698
  * limitations under the License.
812
699
  */
813
- const O = "[DEFAULT]";
700
+ const C = "[DEFAULT]";
814
701
  /**
815
702
  * @license
816
703
  * Copyright 2019 Google LLC
@@ -827,7 +714,7 @@ const O = "[DEFAULT]";
827
714
  * See the License for the specific language governing permissions and
828
715
  * limitations under the License.
829
716
  */
830
- class At {
717
+ class vt {
831
718
  constructor(e, n) {
832
719
  this.name = e, this.container = n, this.component = null, this.instances = /* @__PURE__ */ new Map(), this.instancesDeferred = /* @__PURE__ */ new Map(), this.instancesOptions = /* @__PURE__ */ new Map(), this.onInitCallbacks = /* @__PURE__ */ new Map();
833
720
  }
@@ -878,9 +765,9 @@ class At {
878
765
  if (this.component)
879
766
  throw Error(`Component for ${this.name} has already been provided`);
880
767
  if (this.component = e, !!this.shouldAutoInitialize()) {
881
- if (Ot(e))
768
+ if (Ct(e))
882
769
  try {
883
- this.getOrInitializeService({ instanceIdentifier: O });
770
+ this.getOrInitializeService({ instanceIdentifier: C });
884
771
  } catch {
885
772
  }
886
773
  for (const [n, r] of this.instancesDeferred.entries()) {
@@ -895,7 +782,7 @@ class At {
895
782
  }
896
783
  }
897
784
  }
898
- clearInstance(e = O) {
785
+ clearInstance(e = C) {
899
786
  this.instancesDeferred.delete(e), this.instancesOptions.delete(e), this.instances.delete(e);
900
787
  }
901
788
  // app.delete() will call this method on every provider to delete the services
@@ -910,10 +797,10 @@ class At {
910
797
  isComponentSet() {
911
798
  return this.component != null;
912
799
  }
913
- isInitialized(e = O) {
800
+ isInitialized(e = C) {
914
801
  return this.instances.has(e);
915
802
  }
916
- getOptions(e = O) {
803
+ getOptions(e = C) {
917
804
  return this.instancesOptions.get(e) || {};
918
805
  }
919
806
  initialize(e = {}) {
@@ -927,8 +814,8 @@ class At {
927
814
  options: n
928
815
  });
929
816
  for (const [o, i] of this.instancesDeferred.entries()) {
930
- const c = this.normalizeInstanceIdentifier(o);
931
- r === c && i.resolve(s);
817
+ const a = this.normalizeInstanceIdentifier(o);
818
+ r === a && i.resolve(s);
932
819
  }
933
820
  return s;
934
821
  }
@@ -974,17 +861,17 @@ class At {
974
861
  }
975
862
  return r || null;
976
863
  }
977
- normalizeInstanceIdentifier(e = O) {
978
- return this.component ? this.component.multipleInstances ? e : O : e;
864
+ normalizeInstanceIdentifier(e = C) {
865
+ return this.component ? this.component.multipleInstances ? e : C : e;
979
866
  }
980
867
  shouldAutoInitialize() {
981
868
  return !!this.component && this.component.instantiationMode !== "EXPLICIT";
982
869
  }
983
870
  }
984
871
  function Dt(t) {
985
- return t === O ? void 0 : t;
872
+ return t === C ? void 0 : t;
986
873
  }
987
- function Ot(t) {
874
+ function Ct(t) {
988
875
  return t.instantiationMode === "EAGER";
989
876
  }
990
877
  /**
@@ -1003,7 +890,7 @@ function Ot(t) {
1003
890
  * See the License for the specific language governing permissions and
1004
891
  * limitations under the License.
1005
892
  */
1006
- class Ct {
893
+ class Ot {
1007
894
  constructor(e) {
1008
895
  this.name = e, this.providers = /* @__PURE__ */ new Map();
1009
896
  }
@@ -1035,7 +922,7 @@ class Ct {
1035
922
  getProvider(e) {
1036
923
  if (this.providers.has(e))
1037
924
  return this.providers.get(e);
1038
- const n = new At(e, this);
925
+ const n = new vt(e, this);
1039
926
  return this.providers.set(e, n), n;
1040
927
  }
1041
928
  getProviders() {
@@ -1058,27 +945,27 @@ class Ct {
1058
945
  * See the License for the specific language governing permissions and
1059
946
  * limitations under the License.
1060
947
  */
1061
- var h;
948
+ var u;
1062
949
  (function(t) {
1063
950
  t[t.DEBUG = 0] = "DEBUG", t[t.VERBOSE = 1] = "VERBOSE", t[t.INFO = 2] = "INFO", t[t.WARN = 3] = "WARN", t[t.ERROR = 4] = "ERROR", t[t.SILENT = 5] = "SILENT";
1064
- })(h || (h = {}));
951
+ })(u || (u = {}));
1065
952
  const St = {
1066
- debug: h.DEBUG,
1067
- verbose: h.VERBOSE,
1068
- info: h.INFO,
1069
- warn: h.WARN,
1070
- error: h.ERROR,
1071
- silent: h.SILENT
1072
- }, kt = h.INFO, Nt = {
1073
- [h.DEBUG]: "log",
1074
- [h.VERBOSE]: "log",
1075
- [h.INFO]: "info",
1076
- [h.WARN]: "warn",
1077
- [h.ERROR]: "error"
953
+ debug: u.DEBUG,
954
+ verbose: u.VERBOSE,
955
+ info: u.INFO,
956
+ warn: u.WARN,
957
+ error: u.ERROR,
958
+ silent: u.SILENT
959
+ }, Nt = u.INFO, kt = {
960
+ [u.DEBUG]: "log",
961
+ [u.VERBOSE]: "log",
962
+ [u.INFO]: "info",
963
+ [u.WARN]: "warn",
964
+ [u.ERROR]: "error"
1078
965
  }, Bt = (t, e, ...n) => {
1079
966
  if (e < t.logLevel)
1080
967
  return;
1081
- const r = (/* @__PURE__ */ new Date()).toISOString(), s = Nt[e];
968
+ const r = (/* @__PURE__ */ new Date()).toISOString(), s = kt[e];
1082
969
  if (s)
1083
970
  console[s](`[${r}] ${t.name}:`, ...n);
1084
971
  else
@@ -1092,13 +979,13 @@ class xt {
1092
979
  * @param name The name that the logs will be associated with
1093
980
  */
1094
981
  constructor(e) {
1095
- this.name = e, this._logLevel = kt, this._logHandler = Bt, this._userLogHandler = null;
982
+ this.name = e, this._logLevel = Nt, this._logHandler = Bt, this._userLogHandler = null;
1096
983
  }
1097
984
  get logLevel() {
1098
985
  return this._logLevel;
1099
986
  }
1100
987
  set logLevel(e) {
1101
- if (!(e in h))
988
+ if (!(e in u))
1102
989
  throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);
1103
990
  this._logLevel = e;
1104
991
  }
@@ -1124,25 +1011,25 @@ class xt {
1124
1011
  * The functions below are all based on the `console` interface
1125
1012
  */
1126
1013
  debug(...e) {
1127
- this._userLogHandler && this._userLogHandler(this, h.DEBUG, ...e), this._logHandler(this, h.DEBUG, ...e);
1014
+ this._userLogHandler && this._userLogHandler(this, u.DEBUG, ...e), this._logHandler(this, u.DEBUG, ...e);
1128
1015
  }
1129
1016
  log(...e) {
1130
- this._userLogHandler && this._userLogHandler(this, h.VERBOSE, ...e), this._logHandler(this, h.VERBOSE, ...e);
1017
+ this._userLogHandler && this._userLogHandler(this, u.VERBOSE, ...e), this._logHandler(this, u.VERBOSE, ...e);
1131
1018
  }
1132
1019
  info(...e) {
1133
- this._userLogHandler && this._userLogHandler(this, h.INFO, ...e), this._logHandler(this, h.INFO, ...e);
1020
+ this._userLogHandler && this._userLogHandler(this, u.INFO, ...e), this._logHandler(this, u.INFO, ...e);
1134
1021
  }
1135
1022
  warn(...e) {
1136
- this._userLogHandler && this._userLogHandler(this, h.WARN, ...e), this._logHandler(this, h.WARN, ...e);
1023
+ this._userLogHandler && this._userLogHandler(this, u.WARN, ...e), this._logHandler(this, u.WARN, ...e);
1137
1024
  }
1138
1025
  error(...e) {
1139
- this._userLogHandler && this._userLogHandler(this, h.ERROR, ...e), this._logHandler(this, h.ERROR, ...e);
1026
+ this._userLogHandler && this._userLogHandler(this, u.ERROR, ...e), this._logHandler(this, u.ERROR, ...e);
1140
1027
  }
1141
1028
  }
1142
- const Pt = (t, e) => e.some((n) => t instanceof n);
1143
- let Ee, Ie;
1144
- function Ut() {
1145
- return Ee || (Ee = [
1029
+ const Ut = (t, e) => e.some((n) => t instanceof n);
1030
+ let we, Ie;
1031
+ function Pt() {
1032
+ return we || (we = [
1146
1033
  IDBDatabase,
1147
1034
  IDBObjectStore,
1148
1035
  IDBIndex,
@@ -1163,7 +1050,7 @@ function Mt(t) {
1163
1050
  const s = () => {
1164
1051
  t.removeEventListener("success", o), t.removeEventListener("error", i);
1165
1052
  }, o = () => {
1166
- n(R(t.result)), s();
1053
+ n(A(t.result)), s();
1167
1054
  }, i = () => {
1168
1055
  r(t.error), s();
1169
1056
  };
@@ -1199,7 +1086,7 @@ let ae = {
1199
1086
  if (e === "store")
1200
1087
  return n.objectStoreNames[1] ? void 0 : n.objectStore(n.objectStoreNames[0]);
1201
1088
  }
1202
- return R(t[e]);
1089
+ return A(t[e]);
1203
1090
  },
1204
1091
  set(t, e, n) {
1205
1092
  return t[e] = n, !0;
@@ -1208,23 +1095,23 @@ let ae = {
1208
1095
  return t instanceof IDBTransaction && (e === "done" || e === "store") ? !0 : e in t;
1209
1096
  }
1210
1097
  };
1211
- function Ht(t) {
1098
+ function Ft(t) {
1212
1099
  ae = t(ae);
1213
1100
  }
1214
- function Ft(t) {
1101
+ function Ht(t) {
1215
1102
  return t === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...n) {
1216
1103
  const r = t.call(ee(this), e, ...n);
1217
- return $e.set(r, e.sort ? e.sort() : [e]), R(r);
1104
+ return $e.set(r, e.sort ? e.sort() : [e]), A(r);
1218
1105
  } : Lt().includes(t) ? function(...e) {
1219
- return t.apply(ee(this), e), R(Me.get(this));
1106
+ return t.apply(ee(this), e), A(Me.get(this));
1220
1107
  } : function(...e) {
1221
- return R(t.apply(ee(this), e));
1108
+ return A(t.apply(ee(this), e));
1222
1109
  };
1223
1110
  }
1224
1111
  function jt(t) {
1225
- return typeof t == "function" ? Ft(t) : (t instanceof IDBTransaction && $t(t), Pt(t, Ut()) ? new Proxy(t, ae) : t);
1112
+ return typeof t == "function" ? Ht(t) : (t instanceof IDBTransaction && $t(t), Ut(t, Pt()) ? new Proxy(t, ae) : t);
1226
1113
  }
1227
- function R(t) {
1114
+ function A(t) {
1228
1115
  if (t instanceof IDBRequest)
1229
1116
  return Mt(t);
1230
1117
  if (Q.has(t))
@@ -1234,21 +1121,21 @@ function R(t) {
1234
1121
  }
1235
1122
  const ee = (t) => fe.get(t);
1236
1123
  function Vt(t, e, { blocked: n, upgrade: r, blocking: s, terminated: o } = {}) {
1237
- const i = indexedDB.open(t, e), c = R(i);
1238
- return r && i.addEventListener("upgradeneeded", (l) => {
1239
- r(R(i.result), l.oldVersion, l.newVersion, R(i.transaction), l);
1240
- }), n && i.addEventListener("blocked", (l) => n(
1124
+ const i = indexedDB.open(t, e), a = A(i);
1125
+ return r && i.addEventListener("upgradeneeded", (c) => {
1126
+ r(A(i.result), c.oldVersion, c.newVersion, A(i.transaction), c);
1127
+ }), n && i.addEventListener("blocked", (c) => n(
1241
1128
  // Casting due to https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1405
1242
- l.oldVersion,
1243
- l.newVersion,
1244
- l
1245
- )), c.then((l) => {
1246
- o && l.addEventListener("close", () => o()), s && l.addEventListener("versionchange", (a) => s(a.oldVersion, a.newVersion, a));
1129
+ c.oldVersion,
1130
+ c.newVersion,
1131
+ c
1132
+ )), a.then((c) => {
1133
+ o && c.addEventListener("close", () => o()), s && c.addEventListener("versionchange", (l) => s(l.oldVersion, l.newVersion, l));
1247
1134
  }).catch(() => {
1248
- }), c;
1135
+ }), a;
1249
1136
  }
1250
1137
  const zt = ["get", "getKey", "getAll", "getAllKeys", "count"], Wt = ["put", "add", "delete", "clear"], te = /* @__PURE__ */ new Map();
1251
- function ve(t, e) {
1138
+ function Re(t, e) {
1252
1139
  if (!(t instanceof IDBDatabase && !(e in t) && typeof e == "string"))
1253
1140
  return;
1254
1141
  if (te.get(e))
@@ -1259,20 +1146,20 @@ function ve(t, e) {
1259
1146
  !(n in (r ? IDBIndex : IDBObjectStore).prototype) || !(s || zt.includes(n))
1260
1147
  )
1261
1148
  return;
1262
- const o = async function(i, ...c) {
1263
- const l = this.transaction(i, s ? "readwrite" : "readonly");
1264
- let a = l.store;
1265
- return r && (a = a.index(c.shift())), (await Promise.all([
1266
- a[n](...c),
1267
- s && l.done
1149
+ const o = async function(i, ...a) {
1150
+ const c = this.transaction(i, s ? "readwrite" : "readonly");
1151
+ let l = c.store;
1152
+ return r && (l = l.index(a.shift())), (await Promise.all([
1153
+ l[n](...a),
1154
+ s && c.done
1268
1155
  ]))[0];
1269
1156
  };
1270
1157
  return te.set(e, o), o;
1271
1158
  }
1272
- Ht((t) => ({
1159
+ Ft((t) => ({
1273
1160
  ...t,
1274
- get: (e, n, r) => ve(e, n) || t.get(e, n, r),
1275
- has: (e, n) => !!ve(e, n) || t.has(e, n)
1161
+ get: (e, n, r) => Re(e, n) || t.get(e, n, r),
1162
+ has: (e, n) => !!Re(e, n) || t.has(e, n)
1276
1163
  }));
1277
1164
  /**
1278
1165
  * @license
@@ -1327,7 +1214,7 @@ const ce = "@firebase/app", Te = "0.9.13";
1327
1214
  * See the License for the specific language governing permissions and
1328
1215
  * limitations under the License.
1329
1216
  */
1330
- const S = new xt("@firebase/app"), Kt = "@firebase/app-compat", Xt = "@firebase/analytics-compat", Jt = "@firebase/analytics", Yt = "@firebase/app-check-compat", Zt = "@firebase/app-check", Qt = "@firebase/auth", en = "@firebase/auth-compat", tn = "@firebase/database", nn = "@firebase/database-compat", rn = "@firebase/functions", sn = "@firebase/functions-compat", on = "@firebase/installations", an = "@firebase/installations-compat", cn = "@firebase/messaging", ln = "@firebase/messaging-compat", un = "@firebase/performance", hn = "@firebase/performance-compat", dn = "@firebase/remote-config", fn = "@firebase/remote-config-compat", pn = "@firebase/storage", gn = "@firebase/storage-compat", mn = "@firebase/firestore", bn = "@firebase/firestore-compat", _n = "firebase", yn = "9.23.0";
1217
+ const S = new xt("@firebase/app"), Kt = "@firebase/app-compat", Xt = "@firebase/analytics-compat", Jt = "@firebase/analytics", Yt = "@firebase/app-check-compat", Zt = "@firebase/app-check", Qt = "@firebase/auth", en = "@firebase/auth-compat", tn = "@firebase/database", nn = "@firebase/database-compat", rn = "@firebase/functions", sn = "@firebase/functions-compat", on = "@firebase/installations", an = "@firebase/installations-compat", cn = "@firebase/messaging", ln = "@firebase/messaging-compat", un = "@firebase/performance", hn = "@firebase/performance-compat", dn = "@firebase/remote-config", fn = "@firebase/remote-config-compat", pn = "@firebase/storage", gn = "@firebase/storage-compat", mn = "@firebase/firestore", _n = "@firebase/firestore-compat", bn = "firebase", yn = "9.23.0";
1331
1218
  /**
1332
1219
  * @license
1333
1220
  * Copyright 2019 Google LLC
@@ -1344,7 +1231,7 @@ const S = new xt("@firebase/app"), Kt = "@firebase/app-compat", Xt = "@firebase/
1344
1231
  * See the License for the specific language governing permissions and
1345
1232
  * limitations under the License.
1346
1233
  */
1347
- const le = "[DEFAULT]", wn = {
1234
+ const le = "[DEFAULT]", En = {
1348
1235
  [ce]: "fire-core",
1349
1236
  [Kt]: "fire-core-compat",
1350
1237
  [Jt]: "fire-analytics",
@@ -1368,9 +1255,9 @@ const le = "[DEFAULT]", wn = {
1368
1255
  [pn]: "fire-gcs",
1369
1256
  [gn]: "fire-gcs-compat",
1370
1257
  [mn]: "fire-fst",
1371
- [bn]: "fire-fst-compat",
1258
+ [_n]: "fire-fst-compat",
1372
1259
  "fire-js": "fire-js",
1373
- [_n]: "fire-js-all"
1260
+ [bn]: "fire-js-all"
1374
1261
  };
1375
1262
  /**
1376
1263
  * @license
@@ -1388,8 +1275,8 @@ const le = "[DEFAULT]", wn = {
1388
1275
  * See the License for the specific language governing permissions and
1389
1276
  * limitations under the License.
1390
1277
  */
1391
- const H = /* @__PURE__ */ new Map(), ue = /* @__PURE__ */ new Map();
1392
- function En(t, e) {
1278
+ const F = /* @__PURE__ */ new Map(), ue = /* @__PURE__ */ new Map();
1279
+ function wn(t, e) {
1393
1280
  try {
1394
1281
  t.container.addComponent(e);
1395
1282
  } catch (n) {
@@ -1401,8 +1288,8 @@ function G(t) {
1401
1288
  if (ue.has(e))
1402
1289
  return S.debug(`There were multiple attempts to register component ${e}.`), !1;
1403
1290
  ue.set(e, t);
1404
- for (const n of H.values())
1405
- En(n, t);
1291
+ for (const n of F.values())
1292
+ wn(n, t);
1406
1293
  return !0;
1407
1294
  }
1408
1295
  function In(t, e) {
@@ -1425,7 +1312,7 @@ function In(t, e) {
1425
1312
  * See the License for the specific language governing permissions and
1426
1313
  * limitations under the License.
1427
1314
  */
1428
- const vn = {
1315
+ const Rn = {
1429
1316
  "no-app": "No Firebase App '{$appName}' has been created - call initializeApp() first",
1430
1317
  "bad-app-name": "Illegal App name: '{$appName}",
1431
1318
  "duplicate-app": "Firebase App named '{$appName}' already exists with different options or config",
@@ -1437,7 +1324,7 @@ const vn = {
1437
1324
  "idb-get": "Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.",
1438
1325
  "idb-set": "Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.",
1439
1326
  "idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."
1440
- }, A = new Le("app", "Firebase", vn);
1327
+ }, v = new Le("app", "Firebase", Rn);
1441
1328
  /**
1442
1329
  * @license
1443
1330
  * Copyright 2019 Google LLC
@@ -1493,7 +1380,7 @@ class Tn {
1493
1380
  */
1494
1381
  checkDestroyed() {
1495
1382
  if (this.isDeleted)
1496
- throw A.create("app-deleted", { appName: this._name });
1383
+ throw v.create("app-deleted", { appName: this._name });
1497
1384
  }
1498
1385
  }
1499
1386
  /**
@@ -1512,53 +1399,53 @@ class Tn {
1512
1399
  * See the License for the specific language governing permissions and
1513
1400
  * limitations under the License.
1514
1401
  */
1515
- const Rn = yn;
1516
- function An(t, e = {}) {
1402
+ const An = yn;
1403
+ function vn(t, e = {}) {
1517
1404
  let n = t;
1518
1405
  typeof e != "object" && (e = { name: e });
1519
1406
  const r = Object.assign({ name: le, automaticDataCollectionEnabled: !1 }, e), s = r.name;
1520
1407
  if (typeof s != "string" || !s)
1521
- throw A.create("bad-app-name", {
1408
+ throw v.create("bad-app-name", {
1522
1409
  appName: String(s)
1523
1410
  });
1524
- if (n || (n = Pe()), !n)
1525
- throw A.create(
1411
+ if (n || (n = Ue()), !n)
1412
+ throw v.create(
1526
1413
  "no-options"
1527
1414
  /* AppError.NO_OPTIONS */
1528
1415
  );
1529
- const o = H.get(s);
1416
+ const o = F.get(s);
1530
1417
  if (o) {
1531
1418
  if (oe(n, o.options) && oe(r, o.config))
1532
1419
  return o;
1533
- throw A.create("duplicate-app", { appName: s });
1420
+ throw v.create("duplicate-app", { appName: s });
1534
1421
  }
1535
- const i = new Ct(s);
1536
- for (const l of ue.values())
1537
- i.addComponent(l);
1538
- const c = new Tn(n, r, i);
1539
- return H.set(s, c), c;
1422
+ const i = new Ot(s);
1423
+ for (const c of ue.values())
1424
+ i.addComponent(c);
1425
+ const a = new Tn(n, r, i);
1426
+ return F.set(s, a), a;
1540
1427
  }
1541
1428
  function Dn(t = le) {
1542
- const e = H.get(t);
1543
- if (!e && t === le && Pe())
1544
- return An();
1429
+ const e = F.get(t);
1430
+ if (!e && t === le && Ue())
1431
+ return vn();
1545
1432
  if (!e)
1546
- throw A.create("no-app", { appName: t });
1433
+ throw v.create("no-app", { appName: t });
1547
1434
  return e;
1548
1435
  }
1549
- function us() {
1550
- return Array.from(H.values());
1436
+ function is() {
1437
+ return Array.from(F.values());
1551
1438
  }
1552
1439
  function L(t, e, n) {
1553
1440
  var r;
1554
- let s = (r = wn[t]) !== null && r !== void 0 ? r : t;
1441
+ let s = (r = En[t]) !== null && r !== void 0 ? r : t;
1555
1442
  n && (s += `-${n}`);
1556
1443
  const o = s.match(/\s|\//), i = e.match(/\s|\//);
1557
1444
  if (o || i) {
1558
- const c = [
1445
+ const a = [
1559
1446
  `Unable to register library "${s}" with version "${e}":`
1560
1447
  ];
1561
- o && c.push(`library name "${s}" contains illegal characters (whitespace or "/")`), o && i && c.push("and"), i && c.push(`version name "${e}" contains illegal characters (whitespace or "/")`), S.warn(c.join(" "));
1448
+ o && a.push(`library name "${s}" contains illegal characters (whitespace or "/")`), o && i && a.push("and"), i && a.push(`version name "${e}" contains illegal characters (whitespace or "/")`), S.warn(a.join(" "));
1562
1449
  return;
1563
1450
  }
1564
1451
  G(new $(
@@ -1584,52 +1471,52 @@ function L(t, e, n) {
1584
1471
  * See the License for the specific language governing permissions and
1585
1472
  * limitations under the License.
1586
1473
  */
1587
- const On = "firebase-heartbeat-database", Cn = 1, F = "firebase-heartbeat-store";
1474
+ const Cn = "firebase-heartbeat-database", On = 1, H = "firebase-heartbeat-store";
1588
1475
  let ne = null;
1589
- function He() {
1590
- return ne || (ne = Vt(On, Cn, {
1476
+ function Fe() {
1477
+ return ne || (ne = Vt(Cn, On, {
1591
1478
  upgrade: (t, e) => {
1592
1479
  switch (e) {
1593
1480
  case 0:
1594
- t.createObjectStore(F);
1481
+ t.createObjectStore(H);
1595
1482
  }
1596
1483
  }
1597
1484
  }).catch((t) => {
1598
- throw A.create("idb-open", {
1485
+ throw v.create("idb-open", {
1599
1486
  originalErrorMessage: t.message
1600
1487
  });
1601
1488
  })), ne;
1602
1489
  }
1603
1490
  async function Sn(t) {
1604
1491
  try {
1605
- return await (await He()).transaction(F).objectStore(F).get(Fe(t));
1492
+ return await (await Fe()).transaction(H).objectStore(H).get(He(t));
1606
1493
  } catch (e) {
1607
1494
  if (e instanceof x)
1608
1495
  S.warn(e.message);
1609
1496
  else {
1610
- const n = A.create("idb-get", {
1497
+ const n = v.create("idb-get", {
1611
1498
  originalErrorMessage: e == null ? void 0 : e.message
1612
1499
  });
1613
1500
  S.warn(n.message);
1614
1501
  }
1615
1502
  }
1616
1503
  }
1617
- async function Re(t, e) {
1504
+ async function Ae(t, e) {
1618
1505
  try {
1619
- const r = (await He()).transaction(F, "readwrite");
1620
- await r.objectStore(F).put(e, Fe(t)), await r.done;
1506
+ const r = (await Fe()).transaction(H, "readwrite");
1507
+ await r.objectStore(H).put(e, He(t)), await r.done;
1621
1508
  } catch (n) {
1622
1509
  if (n instanceof x)
1623
1510
  S.warn(n.message);
1624
1511
  else {
1625
- const r = A.create("idb-set", {
1512
+ const r = v.create("idb-set", {
1626
1513
  originalErrorMessage: n == null ? void 0 : n.message
1627
1514
  });
1628
1515
  S.warn(r.message);
1629
1516
  }
1630
1517
  }
1631
1518
  }
1632
- function Fe(t) {
1519
+ function He(t) {
1633
1520
  return `${t.name}!${t.options.appId}`;
1634
1521
  }
1635
1522
  /**
@@ -1648,12 +1535,12 @@ function Fe(t) {
1648
1535
  * See the License for the specific language governing permissions and
1649
1536
  * limitations under the License.
1650
1537
  */
1651
- const kn = 1024, Nn = 30 * 24 * 60 * 60 * 1e3;
1538
+ const Nn = 1024, kn = 30 * 24 * 60 * 60 * 1e3;
1652
1539
  class Bn {
1653
1540
  constructor(e) {
1654
1541
  this.container = e, this._heartbeatsCache = null;
1655
1542
  const n = this.container.getProvider("app").getImmediate();
1656
- this._storage = new Pn(n), this._heartbeatsCachePromise = this._storage.read().then((r) => (this._heartbeatsCache = r, r));
1543
+ this._storage = new Un(n), this._heartbeatsCachePromise = this._storage.read().then((r) => (this._heartbeatsCache = r, r));
1657
1544
  }
1658
1545
  /**
1659
1546
  * Called to report a heartbeat. The function will generate
@@ -1663,11 +1550,11 @@ class Bn {
1663
1550
  * already logged, subsequent calls to this function in the same day will be ignored.
1664
1551
  */
1665
1552
  async triggerHeartbeat() {
1666
- const n = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), r = Ae();
1553
+ const n = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), r = ve();
1667
1554
  if (this._heartbeatsCache === null && (this._heartbeatsCache = await this._heartbeatsCachePromise), !(this._heartbeatsCache.lastSentHeartbeatDate === r || this._heartbeatsCache.heartbeats.some((s) => s.date === r)))
1668
1555
  return this._heartbeatsCache.heartbeats.push({ date: r, agent: n }), this._heartbeatsCache.heartbeats = this._heartbeatsCache.heartbeats.filter((s) => {
1669
1556
  const o = new Date(s.date).valueOf();
1670
- return Date.now() - o <= Nn;
1557
+ return Date.now() - o <= kn;
1671
1558
  }), this._storage.overwrite(this._heartbeatsCache);
1672
1559
  }
1673
1560
  /**
@@ -1680,14 +1567,14 @@ class Bn {
1680
1567
  async getHeartbeatsHeader() {
1681
1568
  if (this._heartbeatsCache === null && await this._heartbeatsCachePromise, this._heartbeatsCache === null || this._heartbeatsCache.heartbeats.length === 0)
1682
1569
  return "";
1683
- const e = Ae(), { heartbeatsToSend: n, unsentEntries: r } = xn(this._heartbeatsCache.heartbeats), s = q(JSON.stringify({ version: 2, heartbeats: n }));
1570
+ const e = ve(), { heartbeatsToSend: n, unsentEntries: r } = xn(this._heartbeatsCache.heartbeats), s = q(JSON.stringify({ version: 2, heartbeats: n }));
1684
1571
  return this._heartbeatsCache.lastSentHeartbeatDate = e, r.length > 0 ? (this._heartbeatsCache.heartbeats = r, await this._storage.overwrite(this._heartbeatsCache)) : (this._heartbeatsCache.heartbeats = [], this._storage.overwrite(this._heartbeatsCache)), s;
1685
1572
  }
1686
1573
  }
1687
- function Ae() {
1574
+ function ve() {
1688
1575
  return (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
1689
1576
  }
1690
- function xn(t, e = kn) {
1577
+ function xn(t, e = Nn) {
1691
1578
  const n = [];
1692
1579
  let r = t.slice();
1693
1580
  for (const s of t) {
@@ -1711,12 +1598,12 @@ function xn(t, e = kn) {
1711
1598
  unsentEntries: r
1712
1599
  };
1713
1600
  }
1714
- class Pn {
1601
+ class Un {
1715
1602
  constructor(e) {
1716
1603
  this.app = e, this._canUseIndexedDBPromise = this.runIndexedDBEnvironmentCheck();
1717
1604
  }
1718
1605
  async runIndexedDBEnvironmentCheck() {
1719
- return yt() ? wt().then(() => !0).catch(() => !1) : !1;
1606
+ return yt() ? Et().then(() => !0).catch(() => !1) : !1;
1720
1607
  }
1721
1608
  /**
1722
1609
  * Read all heartbeats.
@@ -1729,7 +1616,7 @@ class Pn {
1729
1616
  var n;
1730
1617
  if (await this._canUseIndexedDBPromise) {
1731
1618
  const s = await this.read();
1732
- return Re(this.app, {
1619
+ return Ae(this.app, {
1733
1620
  lastSentHeartbeatDate: (n = e.lastSentHeartbeatDate) !== null && n !== void 0 ? n : s.lastSentHeartbeatDate,
1734
1621
  heartbeats: e.heartbeats
1735
1622
  });
@@ -1741,7 +1628,7 @@ class Pn {
1741
1628
  var n;
1742
1629
  if (await this._canUseIndexedDBPromise) {
1743
1630
  const s = await this.read();
1744
- return Re(this.app, {
1631
+ return Ae(this.app, {
1745
1632
  lastSentHeartbeatDate: (n = e.lastSentHeartbeatDate) !== null && n !== void 0 ? n : s.lastSentHeartbeatDate,
1746
1633
  heartbeats: [
1747
1634
  ...s.heartbeats,
@@ -1774,7 +1661,7 @@ function De(t) {
1774
1661
  * See the License for the specific language governing permissions and
1775
1662
  * limitations under the License.
1776
1663
  */
1777
- function Un(t) {
1664
+ function Pn(t) {
1778
1665
  G(new $(
1779
1666
  "platform-logger",
1780
1667
  (e) => new qt(e),
@@ -1787,7 +1674,7 @@ function Un(t) {
1787
1674
  /* ComponentType.PRIVATE */
1788
1675
  )), L(ce, Te, t), L(ce, Te, "esm2017"), L("fire-js", "");
1789
1676
  }
1790
- Un("");
1677
+ Pn("");
1791
1678
  /**
1792
1679
  * @license
1793
1680
  * Copyright 2017 Google LLC
@@ -1821,7 +1708,7 @@ const je = "firebasestorage.googleapis.com", Ve = "storageBucket", Ln = 2 * 60 *
1821
1708
  * See the License for the specific language governing permissions and
1822
1709
  * limitations under the License.
1823
1710
  */
1824
- class f extends x {
1711
+ class d extends x {
1825
1712
  /**
1826
1713
  * @param code - A `StorageErrorCode` string to be prefixed with 'storage/' and
1827
1714
  * added to the end of the message.
@@ -1829,7 +1716,7 @@ class f extends x {
1829
1716
  * @param status_ - Corresponding HTTP Status Code
1830
1717
  */
1831
1718
  constructor(e, n, r = 0) {
1832
- super(re(e), `Firebase Storage: ${n} (${re(e)})`), this.status_ = r, this.customData = { serverResponse: null }, this._baseMessage = this.message, Object.setPrototypeOf(this, f.prototype);
1719
+ super(re(e), `Firebase Storage: ${n} (${re(e)})`), this.status_ = r, this.customData = { serverResponse: null }, this._baseMessage = this.message, Object.setPrototypeOf(this, d.prototype);
1833
1720
  }
1834
1721
  get status() {
1835
1722
  return this.status_;
@@ -1854,71 +1741,71 @@ class f extends x {
1854
1741
  ${this.customData.serverResponse}` : this.message = this._baseMessage;
1855
1742
  }
1856
1743
  }
1857
- var d;
1744
+ var h;
1858
1745
  (function(t) {
1859
1746
  t.UNKNOWN = "unknown", t.OBJECT_NOT_FOUND = "object-not-found", t.BUCKET_NOT_FOUND = "bucket-not-found", t.PROJECT_NOT_FOUND = "project-not-found", t.QUOTA_EXCEEDED = "quota-exceeded", t.UNAUTHENTICATED = "unauthenticated", t.UNAUTHORIZED = "unauthorized", t.UNAUTHORIZED_APP = "unauthorized-app", t.RETRY_LIMIT_EXCEEDED = "retry-limit-exceeded", t.INVALID_CHECKSUM = "invalid-checksum", t.CANCELED = "canceled", t.INVALID_EVENT_NAME = "invalid-event-name", t.INVALID_URL = "invalid-url", t.INVALID_DEFAULT_BUCKET = "invalid-default-bucket", t.NO_DEFAULT_BUCKET = "no-default-bucket", t.CANNOT_SLICE_BLOB = "cannot-slice-blob", t.SERVER_FILE_WRONG_SIZE = "server-file-wrong-size", t.NO_DOWNLOAD_URL = "no-download-url", t.INVALID_ARGUMENT = "invalid-argument", t.INVALID_ARGUMENT_COUNT = "invalid-argument-count", t.APP_DELETED = "app-deleted", t.INVALID_ROOT_OPERATION = "invalid-root-operation", t.INVALID_FORMAT = "invalid-format", t.INTERNAL_ERROR = "internal-error", t.UNSUPPORTED_ENVIRONMENT = "unsupported-environment";
1860
- })(d || (d = {}));
1747
+ })(h || (h = {}));
1861
1748
  function re(t) {
1862
1749
  return "storage/" + t;
1863
1750
  }
1864
1751
  function pe() {
1865
1752
  const t = "An unknown error occurred, please check the error payload for server response.";
1866
- return new f(d.UNKNOWN, t);
1753
+ return new d(h.UNKNOWN, t);
1867
1754
  }
1868
1755
  function $n(t) {
1869
- return new f(d.OBJECT_NOT_FOUND, "Object '" + t + "' does not exist.");
1756
+ return new d(h.OBJECT_NOT_FOUND, "Object '" + t + "' does not exist.");
1870
1757
  }
1871
- function Hn(t) {
1872
- return new f(d.QUOTA_EXCEEDED, "Quota for bucket '" + t + "' exceeded, please view quota on https://firebase.google.com/pricing/.");
1758
+ function Fn(t) {
1759
+ return new d(h.QUOTA_EXCEEDED, "Quota for bucket '" + t + "' exceeded, please view quota on https://firebase.google.com/pricing/.");
1873
1760
  }
1874
- function Fn() {
1761
+ function Hn() {
1875
1762
  const t = "User is not authenticated, please authenticate using Firebase Authentication and try again.";
1876
- return new f(d.UNAUTHENTICATED, t);
1763
+ return new d(h.UNAUTHENTICATED, t);
1877
1764
  }
1878
1765
  function jn() {
1879
- return new f(d.UNAUTHORIZED_APP, "This app does not have permission to access Firebase Storage on this project.");
1766
+ return new d(h.UNAUTHORIZED_APP, "This app does not have permission to access Firebase Storage on this project.");
1880
1767
  }
1881
1768
  function Vn(t) {
1882
- return new f(d.UNAUTHORIZED, "User does not have permission to access '" + t + "'.");
1769
+ return new d(h.UNAUTHORIZED, "User does not have permission to access '" + t + "'.");
1883
1770
  }
1884
1771
  function zn() {
1885
- return new f(d.RETRY_LIMIT_EXCEEDED, "Max retry time for operation exceeded, please try again.");
1772
+ return new d(h.RETRY_LIMIT_EXCEEDED, "Max retry time for operation exceeded, please try again.");
1886
1773
  }
1887
1774
  function Wn() {
1888
- return new f(d.CANCELED, "User canceled the upload/download.");
1775
+ return new d(h.CANCELED, "User canceled the upload/download.");
1889
1776
  }
1890
1777
  function qn(t) {
1891
- return new f(d.INVALID_URL, "Invalid URL '" + t + "'.");
1778
+ return new d(h.INVALID_URL, "Invalid URL '" + t + "'.");
1892
1779
  }
1893
1780
  function Gn(t) {
1894
- return new f(d.INVALID_DEFAULT_BUCKET, "Invalid default bucket '" + t + "'.");
1781
+ return new d(h.INVALID_DEFAULT_BUCKET, "Invalid default bucket '" + t + "'.");
1895
1782
  }
1896
1783
  function Kn() {
1897
- return new f(d.NO_DEFAULT_BUCKET, "No default bucket found. Did you set the '" + Ve + "' property when initializing the app?");
1784
+ return new d(h.NO_DEFAULT_BUCKET, "No default bucket found. Did you set the '" + Ve + "' property when initializing the app?");
1898
1785
  }
1899
1786
  function Xn() {
1900
- return new f(d.CANNOT_SLICE_BLOB, "Cannot slice blob for upload. Please retry the upload.");
1787
+ return new d(h.CANNOT_SLICE_BLOB, "Cannot slice blob for upload. Please retry the upload.");
1901
1788
  }
1902
1789
  function Jn() {
1903
- return new f(d.NO_DOWNLOAD_URL, "The given file does not have any download URLs.");
1790
+ return new d(h.NO_DOWNLOAD_URL, "The given file does not have any download URLs.");
1904
1791
  }
1905
1792
  function Yn(t) {
1906
- return new f(d.UNSUPPORTED_ENVIRONMENT, `${t} is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.`);
1793
+ return new d(h.UNSUPPORTED_ENVIRONMENT, `${t} is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.`);
1907
1794
  }
1908
1795
  function he(t) {
1909
- return new f(d.INVALID_ARGUMENT, t);
1796
+ return new d(h.INVALID_ARGUMENT, t);
1910
1797
  }
1911
1798
  function ze() {
1912
- return new f(d.APP_DELETED, "The Firebase app was deleted.");
1799
+ return new d(h.APP_DELETED, "The Firebase app was deleted.");
1913
1800
  }
1914
1801
  function Zn(t) {
1915
- return new f(d.INVALID_ROOT_OPERATION, "The operation '" + t + "' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').");
1802
+ return new d(h.INVALID_ROOT_OPERATION, "The operation '" + t + "' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').");
1916
1803
  }
1917
1804
  function M(t, e) {
1918
- return new f(d.INVALID_FORMAT, "String does not match format '" + t + "': " + e);
1805
+ return new d(h.INVALID_FORMAT, "String does not match format '" + t + "': " + e);
1919
1806
  }
1920
- function U(t) {
1921
- throw new f(d.INTERNAL_ERROR, "Internal error: " + t);
1807
+ function P(t) {
1808
+ throw new d(h.INTERNAL_ERROR, "Internal error: " + t);
1922
1809
  }
1923
1810
  /**
1924
1811
  * @license
@@ -1936,7 +1823,7 @@ function U(t) {
1936
1823
  * See the License for the specific language governing permissions and
1937
1824
  * limitations under the License.
1938
1825
  */
1939
- class w {
1826
+ class E {
1940
1827
  constructor(e, n) {
1941
1828
  this.bucket = e, this.path_ = n;
1942
1829
  }
@@ -1956,9 +1843,9 @@ class w {
1956
1843
  static makeFromBucketSpec(e, n) {
1957
1844
  let r;
1958
1845
  try {
1959
- r = w.makeFromUrl(e, n);
1846
+ r = E.makeFromUrl(e, n);
1960
1847
  } catch {
1961
- return new w(e, "");
1848
+ return new E(e, "");
1962
1849
  }
1963
1850
  if (r.path === "")
1964
1851
  return r;
@@ -1970,21 +1857,21 @@ class w {
1970
1857
  function o(y) {
1971
1858
  y.path.charAt(y.path.length - 1) === "/" && (y.path_ = y.path_.slice(0, -1));
1972
1859
  }
1973
- const i = "(/(.*))?$", c = new RegExp("^gs://" + s + i, "i"), l = { bucket: 1, path: 3 };
1974
- function a(y) {
1860
+ const i = "(/(.*))?$", a = new RegExp("^gs://" + s + i, "i"), c = { bucket: 1, path: 3 };
1861
+ function l(y) {
1975
1862
  y.path_ = decodeURIComponent(y.path);
1976
1863
  }
1977
- const u = "v[A-Za-z0-9_]+", p = n.replace(/[.]/g, "\\."), g = "(/([^?#]*).*)?$", m = new RegExp(`^https?://${p}/${u}/b/${s}/o${g}`, "i"), E = { bucket: 1, path: 3 }, N = n === je ? "(?:storage.googleapis.com|storage.cloud.google.com)" : n, _ = "([^?#]*)", B = new RegExp(`^https?://${N}/${s}/${_}`, "i"), I = [
1978
- { regex: c, indices: l, postModify: o },
1864
+ const g = "v[A-Za-z0-9_]+", f = n.replace(/[.]/g, "\\."), p = "(/([^?#]*).*)?$", m = new RegExp(`^https?://${f}/${g}/b/${s}/o${p}`, "i"), w = { bucket: 1, path: 3 }, k = n === je ? "(?:storage.googleapis.com|storage.cloud.google.com)" : n, b = "([^?#]*)", B = new RegExp(`^https?://${k}/${s}/${b}`, "i"), I = [
1865
+ { regex: a, indices: c, postModify: o },
1979
1866
  {
1980
1867
  regex: m,
1981
- indices: E,
1982
- postModify: a
1868
+ indices: w,
1869
+ postModify: l
1983
1870
  },
1984
1871
  {
1985
1872
  regex: B,
1986
1873
  indices: { bucket: 1, path: 2 },
1987
- postModify: a
1874
+ postModify: l
1988
1875
  }
1989
1876
  ];
1990
1877
  for (let y = 0; y < I.length; y++) {
@@ -1992,7 +1879,7 @@ class w {
1992
1879
  if (J) {
1993
1880
  const st = J[V.indices.bucket];
1994
1881
  let Y = J[V.indices.path];
1995
- Y || (Y = ""), r = new w(st, Y), V.postModify(r);
1882
+ Y || (Y = ""), r = new E(st, Y), V.postModify(r);
1996
1883
  break;
1997
1884
  }
1998
1885
  }
@@ -2030,46 +1917,46 @@ class Qn {
2030
1917
  * limitations under the License.
2031
1918
  */
2032
1919
  function er(t, e, n) {
2033
- let r = 1, s = null, o = null, i = !1, c = 0;
2034
- function l() {
2035
- return c === 2;
1920
+ let r = 1, s = null, o = null, i = !1, a = 0;
1921
+ function c() {
1922
+ return a === 2;
2036
1923
  }
2037
- let a = !1;
2038
- function u(..._) {
2039
- a || (a = !0, e.apply(null, _));
1924
+ let l = !1;
1925
+ function g(...b) {
1926
+ l || (l = !0, e.apply(null, b));
2040
1927
  }
2041
- function p(_) {
1928
+ function f(b) {
2042
1929
  s = setTimeout(() => {
2043
- s = null, t(m, l());
2044
- }, _);
1930
+ s = null, t(m, c());
1931
+ }, b);
2045
1932
  }
2046
- function g() {
1933
+ function p() {
2047
1934
  o && clearTimeout(o);
2048
1935
  }
2049
- function m(_, ...B) {
2050
- if (a) {
2051
- g();
1936
+ function m(b, ...B) {
1937
+ if (l) {
1938
+ p();
2052
1939
  return;
2053
1940
  }
2054
- if (_) {
2055
- g(), u.call(null, _, ...B);
1941
+ if (b) {
1942
+ p(), g.call(null, b, ...B);
2056
1943
  return;
2057
1944
  }
2058
- if (l() || i) {
2059
- g(), u.call(null, _, ...B);
1945
+ if (c() || i) {
1946
+ p(), g.call(null, b, ...B);
2060
1947
  return;
2061
1948
  }
2062
1949
  r < 64 && (r *= 2);
2063
1950
  let I;
2064
- c === 1 ? (c = 2, I = 0) : I = (r + Math.random()) * 1e3, p(I);
1951
+ a === 1 ? (a = 2, I = 0) : I = (r + Math.random()) * 1e3, f(I);
2065
1952
  }
2066
- let E = !1;
2067
- function N(_) {
2068
- E || (E = !0, g(), !a && (s !== null ? (_ || (c = 2), clearTimeout(s), p(0)) : _ || (c = 1)));
1953
+ let w = !1;
1954
+ function k(b) {
1955
+ w || (w = !0, p(), !l && (s !== null ? (b || (a = 2), clearTimeout(s), f(0)) : b || (a = 1)));
2069
1956
  }
2070
- return p(0), o = setTimeout(() => {
2071
- i = !0, N(!0);
2072
- }, n), N;
1957
+ return f(0), o = setTimeout(() => {
1958
+ i = !0, k(!0);
1959
+ }, n), k;
2073
1960
  }
2074
1961
  function tr(t) {
2075
1962
  t(!1);
@@ -2099,13 +1986,13 @@ function rr(t) {
2099
1986
  function ge(t) {
2100
1987
  return typeof t == "string" || t instanceof String;
2101
1988
  }
2102
- function Oe(t) {
1989
+ function Ce(t) {
2103
1990
  return me() && t instanceof Blob;
2104
1991
  }
2105
1992
  function me() {
2106
- return typeof Blob < "u" && !_t();
1993
+ return typeof Blob < "u" && !bt();
2107
1994
  }
2108
- function Ce(t, e, n, r) {
1995
+ function Oe(t, e, n, r) {
2109
1996
  if (r < e)
2110
1997
  throw he(`Invalid value for '${t}'. Expected ${e} or greater.`);
2111
1998
  if (r > n)
@@ -2157,10 +2044,10 @@ function We(t) {
2157
2044
  * See the License for the specific language governing permissions and
2158
2045
  * limitations under the License.
2159
2046
  */
2160
- var C;
2047
+ var O;
2161
2048
  (function(t) {
2162
2049
  t[t.NO_ERROR = 0] = "NO_ERROR", t[t.NETWORK_ERROR = 1] = "NETWORK_ERROR", t[t.ABORT = 2] = "ABORT";
2163
- })(C || (C = {}));
2050
+ })(O || (O = {}));
2164
2051
  /**
2165
2052
  * @license
2166
2053
  * Copyright 2022 Google LLC
@@ -2203,9 +2090,9 @@ function sr(t, e) {
2203
2090
  * limitations under the License.
2204
2091
  */
2205
2092
  class or {
2206
- constructor(e, n, r, s, o, i, c, l, a, u, p, g = !0) {
2207
- this.url_ = e, this.method_ = n, this.headers_ = r, this.body_ = s, this.successCodes_ = o, this.additionalRetryCodes_ = i, this.callback_ = c, this.errorCallback_ = l, this.timeout_ = a, this.progressCallback_ = u, this.connectionFactory_ = p, this.retry = g, this.pendingConnection_ = null, this.backoffId_ = null, this.canceled_ = !1, this.appDelete_ = !1, this.promise_ = new Promise((m, E) => {
2208
- this.resolve_ = m, this.reject_ = E, this.start_();
2093
+ constructor(e, n, r, s, o, i, a, c, l, g, f, p = !0) {
2094
+ this.url_ = e, this.method_ = n, this.headers_ = r, this.body_ = s, this.successCodes_ = o, this.additionalRetryCodes_ = i, this.callback_ = a, this.errorCallback_ = c, this.timeout_ = l, this.progressCallback_ = g, this.connectionFactory_ = f, this.retry = p, this.pendingConnection_ = null, this.backoffId_ = null, this.canceled_ = !1, this.appDelete_ = !1, this.promise_ = new Promise((m, w) => {
2095
+ this.resolve_ = m, this.reject_ = w, this.start_();
2209
2096
  });
2210
2097
  }
2211
2098
  /**
@@ -2219,39 +2106,39 @@ class or {
2219
2106
  }
2220
2107
  const o = this.connectionFactory_();
2221
2108
  this.pendingConnection_ = o;
2222
- const i = (c) => {
2223
- const l = c.loaded, a = c.lengthComputable ? c.total : -1;
2224
- this.progressCallback_ !== null && this.progressCallback_(l, a);
2109
+ const i = (a) => {
2110
+ const c = a.loaded, l = a.lengthComputable ? a.total : -1;
2111
+ this.progressCallback_ !== null && this.progressCallback_(c, l);
2225
2112
  };
2226
2113
  this.progressCallback_ !== null && o.addUploadProgressListener(i), o.send(this.url_, this.method_, this.body_, this.headers_).then(() => {
2227
2114
  this.progressCallback_ !== null && o.removeUploadProgressListener(i), this.pendingConnection_ = null;
2228
- const c = o.getErrorCode() === C.NO_ERROR, l = o.getStatus();
2229
- if (!c || sr(l, this.additionalRetryCodes_) && this.retry) {
2230
- const u = o.getErrorCode() === C.ABORT;
2231
- r(!1, new z(!1, null, u));
2115
+ const a = o.getErrorCode() === O.NO_ERROR, c = o.getStatus();
2116
+ if (!a || sr(c, this.additionalRetryCodes_) && this.retry) {
2117
+ const g = o.getErrorCode() === O.ABORT;
2118
+ r(!1, new z(!1, null, g));
2232
2119
  return;
2233
2120
  }
2234
- const a = this.successCodes_.indexOf(l) !== -1;
2235
- r(!0, new z(a, o));
2121
+ const l = this.successCodes_.indexOf(c) !== -1;
2122
+ r(!0, new z(l, o));
2236
2123
  });
2237
2124
  }, n = (r, s) => {
2238
- const o = this.resolve_, i = this.reject_, c = s.connection;
2125
+ const o = this.resolve_, i = this.reject_, a = s.connection;
2239
2126
  if (s.wasSuccessCode)
2240
2127
  try {
2241
- const l = this.callback_(c, c.getResponse());
2242
- nr(l) ? o(l) : o();
2243
- } catch (l) {
2244
- i(l);
2128
+ const c = this.callback_(a, a.getResponse());
2129
+ nr(c) ? o(c) : o();
2130
+ } catch (c) {
2131
+ i(c);
2245
2132
  }
2246
- else if (c !== null) {
2247
- const l = pe();
2248
- l.serverResponse = c.getErrorText(), this.errorCallback_ ? i(this.errorCallback_(c, l)) : i(l);
2133
+ else if (a !== null) {
2134
+ const c = pe();
2135
+ c.serverResponse = a.getErrorText(), this.errorCallback_ ? i(this.errorCallback_(a, c)) : i(c);
2249
2136
  } else if (s.canceled) {
2250
- const l = this.appDelete_ ? ze() : Wn();
2251
- i(l);
2137
+ const c = this.appDelete_ ? ze() : Wn();
2138
+ i(c);
2252
2139
  } else {
2253
- const l = zn();
2254
- i(l);
2140
+ const c = zn();
2141
+ i(c);
2255
2142
  }
2256
2143
  };
2257
2144
  this.canceled_ ? n(!1, new z(!1, null, !0)) : this.backoffId_ = er(e, n, this.timeout_);
@@ -2283,8 +2170,8 @@ function lr(t, e) {
2283
2170
  e !== null && (t["X-Firebase-AppCheck"] = e);
2284
2171
  }
2285
2172
  function ur(t, e, n, r, s, o, i = !0) {
2286
- const c = We(t.urlParams), l = t.url + c, a = Object.assign({}, t.headers);
2287
- return cr(a, e), ir(a, n), ar(a, o), lr(a, r), new or(l, t.method, a, t.body, t.successCodes, t.additionalRetryCodes, t.handler, t.errorHandler, t.timeout, t.progressCallback, s, i);
2173
+ const a = We(t.urlParams), c = t.url + a, l = Object.assign({}, t.headers);
2174
+ return cr(l, e), ir(l, n), ar(l, o), lr(l, r), new or(c, t.method, l, t.body, t.successCodes, t.additionalRetryCodes, t.handler, t.errorHandler, t.timeout, t.progressCallback, s, i);
2288
2175
  }
2289
2176
  /**
2290
2177
  * @license
@@ -2315,7 +2202,7 @@ function dr(...t) {
2315
2202
  } else {
2316
2203
  if (me())
2317
2204
  return new Blob(t);
2318
- throw new f(d.UNSUPPORTED_ENVIRONMENT, "This browser doesn't seem to support creating Blobs");
2205
+ throw new d(h.UNSUPPORTED_ENVIRONMENT, "This browser doesn't seem to support creating Blobs");
2319
2206
  }
2320
2207
  }
2321
2208
  function fr(t, e, n) {
@@ -2358,7 +2245,7 @@ function pr(t) {
2358
2245
  * See the License for the specific language governing permissions and
2359
2246
  * limitations under the License.
2360
2247
  */
2361
- const v = {
2248
+ const R = {
2362
2249
  /**
2363
2250
  * Indicates the string should be interpreted "raw", that is, as normal text.
2364
2251
  * The string will be interpreted as UTF-16, then uploaded as a UTF-8 byte
@@ -2399,13 +2286,13 @@ class se {
2399
2286
  }
2400
2287
  function gr(t, e) {
2401
2288
  switch (t) {
2402
- case v.RAW:
2289
+ case R.RAW:
2403
2290
  return new se(qe(e));
2404
- case v.BASE64:
2405
- case v.BASE64URL:
2291
+ case R.BASE64:
2292
+ case R.BASE64URL:
2406
2293
  return new se(Ge(t, e));
2407
- case v.DATA_URL:
2408
- return new se(br(e), _r(e));
2294
+ case R.DATA_URL:
2295
+ return new se(_r(e), br(e));
2409
2296
  }
2410
2297
  throw pe();
2411
2298
  }
@@ -2434,19 +2321,19 @@ function mr(t) {
2434
2321
  try {
2435
2322
  e = decodeURIComponent(t);
2436
2323
  } catch {
2437
- throw M(v.DATA_URL, "Malformed data URL.");
2324
+ throw M(R.DATA_URL, "Malformed data URL.");
2438
2325
  }
2439
2326
  return qe(e);
2440
2327
  }
2441
2328
  function Ge(t, e) {
2442
2329
  switch (t) {
2443
- case v.BASE64: {
2330
+ case R.BASE64: {
2444
2331
  const s = e.indexOf("-") !== -1, o = e.indexOf("_") !== -1;
2445
2332
  if (s || o)
2446
2333
  throw M(t, "Invalid character '" + (s ? "-" : "_") + "' found: is it base64url encoded?");
2447
2334
  break;
2448
2335
  }
2449
- case v.BASE64URL: {
2336
+ case R.BASE64URL: {
2450
2337
  const s = e.indexOf("+") !== -1, o = e.indexOf("/") !== -1;
2451
2338
  if (s || o)
2452
2339
  throw M(t, "Invalid character '" + (s ? "+" : "/") + "' found: is it base64 encoded?");
@@ -2470,16 +2357,16 @@ class Ke {
2470
2357
  this.base64 = !1, this.contentType = null;
2471
2358
  const n = e.match(/^data:([^,]+)?,/);
2472
2359
  if (n === null)
2473
- throw M(v.DATA_URL, "Must be formatted 'data:[<mediatype>][;base64],<data>");
2360
+ throw M(R.DATA_URL, "Must be formatted 'data:[<mediatype>][;base64],<data>");
2474
2361
  const r = n[1] || null;
2475
2362
  r != null && (this.base64 = yr(r, ";base64"), this.contentType = this.base64 ? r.substring(0, r.length - 7) : r), this.rest = e.substring(e.indexOf(",") + 1);
2476
2363
  }
2477
2364
  }
2478
- function br(t) {
2365
+ function _r(t) {
2479
2366
  const e = new Ke(t);
2480
- return e.base64 ? Ge(v.BASE64, e.rest) : mr(e.rest);
2367
+ return e.base64 ? Ge(R.BASE64, e.rest) : mr(e.rest);
2481
2368
  }
2482
- function _r(t) {
2369
+ function br(t) {
2483
2370
  return new Ke(t).contentType;
2484
2371
  }
2485
2372
  function yr(t, e) {
@@ -2504,7 +2391,7 @@ function yr(t, e) {
2504
2391
  class T {
2505
2392
  constructor(e, n) {
2506
2393
  let r = 0, s = "";
2507
- Oe(e) ? (this.data_ = e, r = e.size, s = e.type) : e instanceof ArrayBuffer ? (n ? this.data_ = new Uint8Array(e) : (this.data_ = new Uint8Array(e.byteLength), this.data_.set(new Uint8Array(e))), r = this.data_.length) : e instanceof Uint8Array && (n ? this.data_ = e : (this.data_ = new Uint8Array(e.length), this.data_.set(e)), r = e.length), this.size_ = r, this.type_ = s;
2394
+ Ce(e) ? (this.data_ = e, r = e.size, s = e.type) : e instanceof ArrayBuffer ? (n ? this.data_ = new Uint8Array(e) : (this.data_ = new Uint8Array(e.byteLength), this.data_.set(new Uint8Array(e))), r = this.data_.length) : e instanceof Uint8Array && (n ? this.data_ = e : (this.data_ = new Uint8Array(e.length), this.data_.set(e)), r = e.length), this.size_ = r, this.type_ = s;
2508
2395
  }
2509
2396
  size() {
2510
2397
  return this.size_;
@@ -2513,7 +2400,7 @@ class T {
2513
2400
  return this.type_;
2514
2401
  }
2515
2402
  slice(e, n) {
2516
- if (Oe(this.data_)) {
2403
+ if (Ce(this.data_)) {
2517
2404
  const r = this.data_, s = fr(r, e, n);
2518
2405
  return s === null ? null : new T(s);
2519
2406
  } else {
@@ -2526,7 +2413,7 @@ class T {
2526
2413
  const n = e.map((r) => r instanceof T ? r.data_ : r);
2527
2414
  return new T(dr.apply(null, n));
2528
2415
  } else {
2529
- const n = e.map((i) => ge(i) ? gr(v.RAW, i).data : i.data_);
2416
+ const n = e.map((i) => ge(i) ? gr(R.RAW, i).data : i.data_);
2530
2417
  let r = 0;
2531
2418
  n.forEach((i) => {
2532
2419
  r += i.byteLength;
@@ -2534,8 +2421,8 @@ class T {
2534
2421
  const s = new Uint8Array(r);
2535
2422
  let o = 0;
2536
2423
  return n.forEach((i) => {
2537
- for (let c = 0; c < i.length; c++)
2538
- s[o++] = i[c];
2424
+ for (let a = 0; a < i.length; a++)
2425
+ s[o++] = i[a];
2539
2426
  }), new T(s, !0);
2540
2427
  }
2541
2428
  }
@@ -2584,13 +2471,13 @@ function Xe(t) {
2584
2471
  * See the License for the specific language governing permissions and
2585
2472
  * limitations under the License.
2586
2473
  */
2587
- function wr(t) {
2474
+ function Er(t) {
2588
2475
  if (t.length === 0)
2589
2476
  return null;
2590
2477
  const e = t.lastIndexOf("/");
2591
2478
  return e === -1 ? "" : t.slice(0, e);
2592
2479
  }
2593
- function Er(t, e) {
2480
+ function wr(t, e) {
2594
2481
  const n = e.split("/").filter((r) => r.length > 0).join("/");
2595
2482
  return t.length === 0 ? n : t + "/" + n;
2596
2483
  }
@@ -2617,39 +2504,39 @@ function Je(t) {
2617
2504
  function Ir(t, e) {
2618
2505
  return e;
2619
2506
  }
2620
- class b {
2507
+ class _ {
2621
2508
  constructor(e, n, r, s) {
2622
2509
  this.server = e, this.local = n || e, this.writable = !!r, this.xform = s || Ir;
2623
2510
  }
2624
2511
  }
2625
2512
  let W = null;
2626
- function vr(t) {
2513
+ function Rr(t) {
2627
2514
  return !ge(t) || t.length < 2 ? t : Je(t);
2628
2515
  }
2629
2516
  function Ye() {
2630
2517
  if (W)
2631
2518
  return W;
2632
2519
  const t = [];
2633
- t.push(new b("bucket")), t.push(new b("generation")), t.push(new b("metageneration")), t.push(new b("name", "fullPath", !0));
2520
+ t.push(new _("bucket")), t.push(new _("generation")), t.push(new _("metageneration")), t.push(new _("name", "fullPath", !0));
2634
2521
  function e(o, i) {
2635
- return vr(i);
2522
+ return Rr(i);
2636
2523
  }
2637
- const n = new b("name");
2524
+ const n = new _("name");
2638
2525
  n.xform = e, t.push(n);
2639
2526
  function r(o, i) {
2640
2527
  return i !== void 0 ? Number(i) : i;
2641
2528
  }
2642
- const s = new b("size");
2643
- return s.xform = r, t.push(s), t.push(new b("timeCreated")), t.push(new b("updated")), t.push(new b("md5Hash", null, !0)), t.push(new b("cacheControl", null, !0)), t.push(new b("contentDisposition", null, !0)), t.push(new b("contentEncoding", null, !0)), t.push(new b("contentLanguage", null, !0)), t.push(new b("contentType", null, !0)), t.push(new b("metadata", "customMetadata", !0)), W = t, W;
2529
+ const s = new _("size");
2530
+ return s.xform = r, t.push(s), t.push(new _("timeCreated")), t.push(new _("updated")), t.push(new _("md5Hash", null, !0)), t.push(new _("cacheControl", null, !0)), t.push(new _("contentDisposition", null, !0)), t.push(new _("contentEncoding", null, !0)), t.push(new _("contentLanguage", null, !0)), t.push(new _("contentType", null, !0)), t.push(new _("metadata", "customMetadata", !0)), W = t, W;
2644
2531
  }
2645
2532
  function Tr(t, e) {
2646
2533
  function n() {
2647
- const r = t.bucket, s = t.fullPath, o = new w(r, s);
2534
+ const r = t.bucket, s = t.fullPath, o = new E(r, s);
2648
2535
  return e._makeStorageReference(o);
2649
2536
  }
2650
2537
  Object.defineProperty(t, "ref", { get: n });
2651
2538
  }
2652
- function Rr(t, e, n) {
2539
+ function Ar(t, e, n) {
2653
2540
  const r = {};
2654
2541
  r.type = "file";
2655
2542
  const s = n.length;
@@ -2661,9 +2548,9 @@ function Rr(t, e, n) {
2661
2548
  }
2662
2549
  function Ze(t, e, n) {
2663
2550
  const r = Xe(e);
2664
- return r === null ? null : Rr(t, r, n);
2551
+ return r === null ? null : Ar(t, r, n);
2665
2552
  }
2666
- function Ar(t, e, n, r) {
2553
+ function vr(t, e, n, r) {
2667
2554
  const s = Xe(e);
2668
2555
  if (s === null || !ge(s.downloadTokens))
2669
2556
  return null;
@@ -2671,12 +2558,12 @@ function Ar(t, e, n, r) {
2671
2558
  if (o.length === 0)
2672
2559
  return null;
2673
2560
  const i = encodeURIComponent;
2674
- return o.split(",").map((a) => {
2675
- const u = t.bucket, p = t.fullPath, g = "/b/" + i(u) + "/o/" + i(p), m = j(g, n, r), E = We({
2561
+ return o.split(",").map((l) => {
2562
+ const g = t.bucket, f = t.fullPath, p = "/b/" + i(g) + "/o/" + i(f), m = j(p, n, r), w = We({
2676
2563
  alt: "media",
2677
- token: a
2564
+ token: l
2678
2565
  });
2679
- return m + E;
2566
+ return m + w;
2680
2567
  })[0];
2681
2568
  }
2682
2569
  function Dr(t, e) {
@@ -2712,28 +2599,28 @@ function Qe(t) {
2712
2599
  if (!t)
2713
2600
  throw pe();
2714
2601
  }
2715
- function Or(t, e) {
2602
+ function Cr(t, e) {
2716
2603
  function n(r, s) {
2717
2604
  const o = Ze(t, s, e);
2718
2605
  return Qe(o !== null), o;
2719
2606
  }
2720
2607
  return n;
2721
2608
  }
2722
- function Cr(t, e) {
2609
+ function Or(t, e) {
2723
2610
  function n(r, s) {
2724
2611
  const o = Ze(t, s, e);
2725
- return Qe(o !== null), Ar(o, s, t.host, t._protocol);
2612
+ return Qe(o !== null), vr(o, s, t.host, t._protocol);
2726
2613
  }
2727
2614
  return n;
2728
2615
  }
2729
2616
  function et(t) {
2730
2617
  function e(n, r) {
2731
2618
  let s;
2732
- return n.getStatus() === 401 ? /* This exact message string is the only consistent part of the */ /* server's error response that identifies it as an App Check error. */ n.getErrorText().includes("Firebase App Check token is invalid") ? s = jn() : s = Fn() : n.getStatus() === 402 ? s = Hn(t.bucket) : n.getStatus() === 403 ? s = Vn(t.path) : s = r, s.status = n.getStatus(), s.serverResponse = r.serverResponse, s;
2619
+ return n.getStatus() === 401 ? /* This exact message string is the only consistent part of the */ /* server's error response that identifies it as an App Check error. */ n.getErrorText().includes("Firebase App Check token is invalid") ? s = jn() : s = Hn() : n.getStatus() === 402 ? s = Fn(t.bucket) : n.getStatus() === 403 ? s = Vn(t.path) : s = r, s.status = n.getStatus(), s.serverResponse = r.serverResponse, s;
2733
2620
  }
2734
2621
  return e;
2735
2622
  }
2736
- function be(t) {
2623
+ function _e(t) {
2737
2624
  const e = et(t);
2738
2625
  function n(r, s) {
2739
2626
  let o = e(r, s);
@@ -2742,23 +2629,23 @@ function be(t) {
2742
2629
  return n;
2743
2630
  }
2744
2631
  function Sr(t, e, n) {
2745
- const r = e.fullServerUrl(), s = j(r, t.host, t._protocol) + "?alt=media", o = "GET", i = t.maxOperationRetryTime, c = new X(s, o, (l, a) => a, i);
2746
- return c.errorHandler = be(e), n !== void 0 && (c.headers.Range = `bytes=0-${n}`, c.successCodes = [
2632
+ const r = e.fullServerUrl(), s = j(r, t.host, t._protocol) + "?alt=media", o = "GET", i = t.maxOperationRetryTime, a = new X(s, o, (c, l) => l, i);
2633
+ return a.errorHandler = _e(e), n !== void 0 && (a.headers.Range = `bytes=0-${n}`, a.successCodes = [
2747
2634
  200,
2748
2635
  206
2749
2636
  /* Partial Content */
2750
- ]), c;
2637
+ ]), a;
2751
2638
  }
2752
- function kr(t, e, n) {
2753
- const r = e.fullServerUrl(), s = j(r, t.host, t._protocol), o = "GET", i = t.maxOperationRetryTime, c = new X(s, o, Cr(t, n), i);
2754
- return c.errorHandler = be(e), c;
2639
+ function Nr(t, e, n) {
2640
+ const r = e.fullServerUrl(), s = j(r, t.host, t._protocol), o = "GET", i = t.maxOperationRetryTime, a = new X(s, o, Or(t, n), i);
2641
+ return a.errorHandler = _e(e), a;
2755
2642
  }
2756
- function Nr(t, e) {
2643
+ function kr(t, e) {
2757
2644
  const n = e.fullServerUrl(), r = j(n, t.host, t._protocol), s = "DELETE", o = t.maxOperationRetryTime;
2758
- function i(l, a) {
2645
+ function i(c, l) {
2759
2646
  }
2760
- const c = new X(r, s, i, o);
2761
- return c.successCodes = [200, 204], c.errorHandler = be(e), c;
2647
+ const a = new X(r, s, i, o);
2648
+ return a.successCodes = [200, 204], a.errorHandler = _e(e), a;
2762
2649
  }
2763
2650
  function Br(t, e) {
2764
2651
  return t && t.contentType || e && e.type() || "application/octet-stream";
@@ -2767,39 +2654,39 @@ function xr(t, e, n) {
2767
2654
  const r = Object.assign({}, n);
2768
2655
  return r.fullPath = t.path, r.size = e.size(), r.contentType || (r.contentType = Br(null, e)), r;
2769
2656
  }
2770
- function Pr(t, e, n, r, s) {
2657
+ function Ur(t, e, n, r, s) {
2771
2658
  const o = e.bucketOnlyServerUrl(), i = {
2772
2659
  "X-Goog-Upload-Protocol": "multipart"
2773
2660
  };
2774
- function c() {
2661
+ function a() {
2775
2662
  let I = "";
2776
2663
  for (let y = 0; y < 2; y++)
2777
2664
  I = I + Math.random().toString().slice(2);
2778
2665
  return I;
2779
2666
  }
2780
- const l = c();
2781
- i["Content-Type"] = "multipart/related; boundary=" + l;
2782
- const a = xr(e, r, s), u = Dr(a, n), p = "--" + l + `\r
2667
+ const c = a();
2668
+ i["Content-Type"] = "multipart/related; boundary=" + c;
2669
+ const l = xr(e, r, s), g = Dr(l, n), f = "--" + c + `\r
2783
2670
  Content-Type: application/json; charset=utf-8\r
2784
2671
  \r
2785
- ` + u + `\r
2786
- --` + l + `\r
2787
- Content-Type: ` + a.contentType + `\r
2672
+ ` + g + `\r
2673
+ --` + c + `\r
2674
+ Content-Type: ` + l.contentType + `\r
2788
2675
  \r
2789
- `, g = `\r
2790
- --` + l + "--", m = T.getBlob(p, r, g);
2676
+ `, p = `\r
2677
+ --` + c + "--", m = T.getBlob(f, r, p);
2791
2678
  if (m === null)
2792
2679
  throw Xn();
2793
- const E = { name: a.fullPath }, N = j(o, t.host, t._protocol), _ = "POST", B = t.maxUploadRetryTime, D = new X(N, _, Or(t, n), B);
2794
- return D.urlParams = E, D.headers = i, D.body = m.uploadData(), D.errorHandler = et(e), D;
2680
+ const w = { name: l.fullPath }, k = j(o, t.host, t._protocol), b = "POST", B = t.maxUploadRetryTime, D = new X(k, b, Cr(t, n), B);
2681
+ return D.urlParams = w, D.headers = i, D.body = m.uploadData(), D.errorHandler = et(e), D;
2795
2682
  }
2796
2683
  class tt {
2797
2684
  constructor() {
2798
- this.sent_ = !1, this.xhr_ = new XMLHttpRequest(), this.initXhr(), this.errorCode_ = C.NO_ERROR, this.sendPromise_ = new Promise((e) => {
2685
+ this.sent_ = !1, this.xhr_ = new XMLHttpRequest(), this.initXhr(), this.errorCode_ = O.NO_ERROR, this.sendPromise_ = new Promise((e) => {
2799
2686
  this.xhr_.addEventListener("abort", () => {
2800
- this.errorCode_ = C.ABORT, e();
2687
+ this.errorCode_ = O.ABORT, e();
2801
2688
  }), this.xhr_.addEventListener("error", () => {
2802
- this.errorCode_ = C.NETWORK_ERROR, e();
2689
+ this.errorCode_ = O.NETWORK_ERROR, e();
2803
2690
  }), this.xhr_.addEventListener("load", () => {
2804
2691
  e();
2805
2692
  });
@@ -2807,7 +2694,7 @@ class tt {
2807
2694
  }
2808
2695
  send(e, n, r, s) {
2809
2696
  if (this.sent_)
2810
- throw U("cannot .send() more than once");
2697
+ throw P("cannot .send() more than once");
2811
2698
  if (this.sent_ = !0, this.xhr_.open(n, e, !0), s !== void 0)
2812
2699
  for (const o in s)
2813
2700
  s.hasOwnProperty(o) && this.xhr_.setRequestHeader(o, s[o].toString());
@@ -2815,12 +2702,12 @@ class tt {
2815
2702
  }
2816
2703
  getErrorCode() {
2817
2704
  if (!this.sent_)
2818
- throw U("cannot .getErrorCode() before sending");
2705
+ throw P("cannot .getErrorCode() before sending");
2819
2706
  return this.errorCode_;
2820
2707
  }
2821
2708
  getStatus() {
2822
2709
  if (!this.sent_)
2823
- throw U("cannot .getStatus() before sending");
2710
+ throw P("cannot .getStatus() before sending");
2824
2711
  try {
2825
2712
  return this.xhr_.status;
2826
2713
  } catch {
@@ -2829,12 +2716,12 @@ class tt {
2829
2716
  }
2830
2717
  getResponse() {
2831
2718
  if (!this.sent_)
2832
- throw U("cannot .getResponse() before sending");
2719
+ throw P("cannot .getResponse() before sending");
2833
2720
  return this.xhr_.response;
2834
2721
  }
2835
2722
  getErrorText() {
2836
2723
  if (!this.sent_)
2837
- throw U("cannot .getErrorText() before sending");
2724
+ throw P("cannot .getErrorText() before sending");
2838
2725
  return this.xhr_.statusText;
2839
2726
  }
2840
2727
  /** Aborts the request. */
@@ -2851,13 +2738,13 @@ class tt {
2851
2738
  this.xhr_.upload != null && this.xhr_.upload.removeEventListener("progress", e);
2852
2739
  }
2853
2740
  }
2854
- class Ur extends tt {
2741
+ class Pr extends tt {
2855
2742
  initXhr() {
2856
2743
  this.xhr_.responseType = "text";
2857
2744
  }
2858
2745
  }
2859
- function _e() {
2860
- return new Ur();
2746
+ function be() {
2747
+ return new Pr();
2861
2748
  }
2862
2749
  class Lr extends tt {
2863
2750
  initXhr() {
@@ -2883,9 +2770,9 @@ function Mr() {
2883
2770
  * See the License for the specific language governing permissions and
2884
2771
  * limitations under the License.
2885
2772
  */
2886
- class k {
2773
+ class N {
2887
2774
  constructor(e, n) {
2888
- this._service = e, n instanceof w ? this._location = n : this._location = w.makeFromUrl(n, e.host);
2775
+ this._service = e, n instanceof E ? this._location = n : this._location = E.makeFromUrl(n, e.host);
2889
2776
  }
2890
2777
  /**
2891
2778
  * Returns the URL for the bucket and path this object references,
@@ -2896,13 +2783,13 @@ class k {
2896
2783
  return "gs://" + this._location.bucket + "/" + this._location.path;
2897
2784
  }
2898
2785
  _newRef(e, n) {
2899
- return new k(e, n);
2786
+ return new N(e, n);
2900
2787
  }
2901
2788
  /**
2902
2789
  * A reference to the root of this object's bucket.
2903
2790
  */
2904
2791
  get root() {
2905
- const e = new w(this._location.bucket, "");
2792
+ const e = new E(this._location.bucket, "");
2906
2793
  return this._newRef(this._service, e);
2907
2794
  }
2908
2795
  /**
@@ -2935,11 +2822,11 @@ class k {
2935
2822
  * this reference is the root.
2936
2823
  */
2937
2824
  get parent() {
2938
- const e = wr(this._location.path);
2825
+ const e = Er(this._location.path);
2939
2826
  if (e === null)
2940
2827
  return null;
2941
- const n = new w(this._location.bucket, e);
2942
- return new k(this._service, n);
2828
+ const n = new E(this._location.bucket, e);
2829
+ return new N(this._service, n);
2943
2830
  }
2944
2831
  /**
2945
2832
  * Utility function to throw an error in methods that do not accept a root reference.
@@ -2957,18 +2844,18 @@ function $r(t, e) {
2957
2844
  r.slice(0, e)
2958
2845
  ) : r);
2959
2846
  }
2960
- function Hr(t, e, n) {
2847
+ function Fr(t, e, n) {
2961
2848
  t._throwIfRoot("uploadBytes");
2962
- const r = Pr(t.storage, t._location, Ye(), new T(e, !0), n);
2963
- return t.storage.makeRequestWithTokens(r, _e).then((s) => ({
2849
+ const r = Ur(t.storage, t._location, Ye(), new T(e, !0), n);
2850
+ return t.storage.makeRequestWithTokens(r, be).then((s) => ({
2964
2851
  metadata: s,
2965
2852
  ref: t
2966
2853
  }));
2967
2854
  }
2968
- function Fr(t) {
2855
+ function Hr(t) {
2969
2856
  t._throwIfRoot("getDownloadURL");
2970
- const e = kr(t.storage, t._location, Ye());
2971
- return t.storage.makeRequestWithTokens(e, _e).then((n) => {
2857
+ const e = Nr(t.storage, t._location, Ye());
2858
+ return t.storage.makeRequestWithTokens(e, be).then((n) => {
2972
2859
  if (n === null)
2973
2860
  throw Jn();
2974
2861
  return n;
@@ -2976,12 +2863,12 @@ function Fr(t) {
2976
2863
  }
2977
2864
  function jr(t) {
2978
2865
  t._throwIfRoot("deleteObject");
2979
- const e = Nr(t.storage, t._location);
2980
- return t.storage.makeRequestWithTokens(e, _e);
2866
+ const e = kr(t.storage, t._location);
2867
+ return t.storage.makeRequestWithTokens(e, be);
2981
2868
  }
2982
2869
  function Vr(t, e) {
2983
- const n = Er(t._location.path, e), r = new w(t._location.bucket, n);
2984
- return new k(t.storage, r);
2870
+ const n = wr(t._location.path, e), r = new E(t._location.bucket, n);
2871
+ return new N(t.storage, r);
2985
2872
  }
2986
2873
  /**
2987
2874
  * @license
@@ -3003,14 +2890,14 @@ function zr(t) {
3003
2890
  return /^[A-Za-z]+:\/\//.test(t);
3004
2891
  }
3005
2892
  function Wr(t, e) {
3006
- return new k(t, e);
2893
+ return new N(t, e);
3007
2894
  }
3008
2895
  function nt(t, e) {
3009
2896
  if (t instanceof ye) {
3010
2897
  const n = t;
3011
2898
  if (n._bucket == null)
3012
2899
  throw Kn();
3013
- const r = new k(n, n._bucket);
2900
+ const r = new N(n, n._bucket);
3014
2901
  return e != null ? nt(r, e) : r;
3015
2902
  } else
3016
2903
  return e !== void 0 ? Vr(t, e) : t;
@@ -3025,16 +2912,16 @@ function qr(t, e) {
3025
2912
  }
3026
2913
  function Se(t, e) {
3027
2914
  const n = e == null ? void 0 : e[Ve];
3028
- return n == null ? null : w.makeFromBucketSpec(n, t);
2915
+ return n == null ? null : E.makeFromBucketSpec(n, t);
3029
2916
  }
3030
2917
  function Gr(t, e, n, r = {}) {
3031
2918
  t.host = `${e}:${n}`, t._protocol = "http";
3032
2919
  const { mockUserToken: s } = r;
3033
- s && (t._overrideAuthToken = typeof s == "string" ? s : bt(s, t.app.options.projectId));
2920
+ s && (t._overrideAuthToken = typeof s == "string" ? s : _t(s, t.app.options.projectId));
3034
2921
  }
3035
2922
  class ye {
3036
2923
  constructor(e, n, r, s, o) {
3037
- this.app = e, this._authProvider = n, this._appCheckProvider = r, this._url = s, this._firebaseVersion = o, this._bucket = null, this._host = je, this._protocol = "https", this._appId = null, this._deleted = !1, this._maxOperationRetryTime = Ln, this._maxUploadRetryTime = Mn, this._requests = /* @__PURE__ */ new Set(), s != null ? this._bucket = w.makeFromBucketSpec(s, this._host) : this._bucket = Se(this._host, this.app.options);
2924
+ this.app = e, this._authProvider = n, this._appCheckProvider = r, this._url = s, this._firebaseVersion = o, this._bucket = null, this._host = je, this._protocol = "https", this._appId = null, this._deleted = !1, this._maxOperationRetryTime = Ln, this._maxUploadRetryTime = Mn, this._requests = /* @__PURE__ */ new Set(), s != null ? this._bucket = E.makeFromBucketSpec(s, this._host) : this._bucket = Se(this._host, this.app.options);
3038
2925
  }
3039
2926
  /**
3040
2927
  * The host string for this service, in the form of `host` or
@@ -3044,7 +2931,7 @@ class ye {
3044
2931
  return this._host;
3045
2932
  }
3046
2933
  set host(e) {
3047
- this._host = e, this._url != null ? this._bucket = w.makeFromBucketSpec(this._url, e) : this._bucket = Se(e, this.app.options);
2934
+ this._host = e, this._url != null ? this._bucket = E.makeFromBucketSpec(this._url, e) : this._bucket = Se(e, this.app.options);
3048
2935
  }
3049
2936
  /**
3050
2937
  * The maximum time to retry uploads in milliseconds.
@@ -3053,7 +2940,7 @@ class ye {
3053
2940
  return this._maxUploadRetryTime;
3054
2941
  }
3055
2942
  set maxUploadRetryTime(e) {
3056
- Ce(
2943
+ Oe(
3057
2944
  "time",
3058
2945
  /* minValue=*/
3059
2946
  0,
@@ -3070,7 +2957,7 @@ class ye {
3070
2957
  return this._maxOperationRetryTime;
3071
2958
  }
3072
2959
  set maxOperationRetryTime(e) {
3073
- Ce(
2960
+ Oe(
3074
2961
  "time",
3075
2962
  /* minValue=*/
3076
2963
  0,
@@ -3105,7 +2992,7 @@ class ye {
3105
2992
  * at the given Location.
3106
2993
  */
3107
2994
  _makeStorageReference(e) {
3108
- return new k(this, e);
2995
+ return new N(this, e);
3109
2996
  }
3110
2997
  /**
3111
2998
  * @param requestInfo - HTTP RequestInfo object
@@ -3127,7 +3014,7 @@ class ye {
3127
3014
  return this._makeRequest(e, n, r, s).getPromise();
3128
3015
  }
3129
3016
  }
3130
- const ke = "@firebase/storage", Ne = "0.11.2";
3017
+ const Ne = "@firebase/storage", ke = "0.11.2";
3131
3018
  /**
3132
3019
  * @license
3133
3020
  * Copyright 2020 Google LLC
@@ -3145,20 +3032,20 @@ const ke = "@firebase/storage", Ne = "0.11.2";
3145
3032
  * limitations under the License.
3146
3033
  */
3147
3034
  const rt = "storage";
3148
- function hs(t, e, n) {
3149
- return t = P(t), Hr(t, e, n);
3035
+ function as(t, e, n) {
3036
+ return t = U(t), Fr(t, e, n);
3150
3037
  }
3151
- function ds(t) {
3152
- return t = P(t), Fr(t);
3038
+ function cs(t) {
3039
+ return t = U(t), Hr(t);
3153
3040
  }
3154
- function fs(t) {
3155
- return t = P(t), jr(t);
3041
+ function ls(t) {
3042
+ return t = U(t), jr(t);
3156
3043
  }
3157
- function ps(t, e) {
3158
- return t = P(t), qr(t, e);
3044
+ function us(t, e) {
3045
+ return t = U(t), qr(t, e);
3159
3046
  }
3160
- function gs(t = Dn(), e) {
3161
- t = P(t);
3047
+ function hs(t = Dn(), e) {
3048
+ t = U(t);
3162
3049
  const r = In(t, rt).getImmediate({
3163
3050
  identifier: e
3164
3051
  }), s = gt("storage");
@@ -3183,12 +3070,12 @@ function Kr(t, e, n, r = {}) {
3183
3070
  * See the License for the specific language governing permissions and
3184
3071
  * limitations under the License.
3185
3072
  */
3186
- function ms(t, e) {
3187
- return t = P(t), $r(t, e);
3073
+ function ds(t, e) {
3074
+ return t = U(t), $r(t, e);
3188
3075
  }
3189
3076
  function Xr(t, { instanceIdentifier: e }) {
3190
3077
  const n = t.getProvider("app").getImmediate(), r = t.getProvider("auth-internal"), s = t.getProvider("app-check-internal");
3191
- return new ye(n, r, s, e, Rn);
3078
+ return new ye(n, r, s, e, An);
3192
3079
  }
3193
3080
  function Jr() {
3194
3081
  G(new $(
@@ -3196,23 +3083,23 @@ function Jr() {
3196
3083
  Xr,
3197
3084
  "PUBLIC"
3198
3085
  /* ComponentType.PUBLIC */
3199
- ).setMultipleInstances(!0)), L(ke, Ne, ""), L(ke, Ne, "esm2017");
3086
+ ).setMultipleInstances(!0)), L(Ne, ke, ""), L(Ne, ke, "esm2017");
3200
3087
  }
3201
3088
  Jr();
3202
- const de = ot(null), bs = () => de.value;
3203
- function _s(t) {
3089
+ const de = ot(null), fs = () => de.value;
3090
+ function ps(t) {
3204
3091
  de.value || (de.value = t);
3205
3092
  }
3206
- const ys = Object.freeze({
3093
+ const gs = Object.freeze({
3207
3094
  jb: {
3208
3095
  lat: 1.492659,
3209
3096
  lng: 103.7413591
3210
3097
  }
3211
3098
  });
3212
- function ws(t) {
3099
+ function ms(t) {
3213
3100
  return [t.lng, t.lat];
3214
3101
  }
3215
- function Es(t) {
3102
+ function _s(t) {
3216
3103
  if (t.length !== 2)
3217
3104
  throw Error("Invalid coordinate array");
3218
3105
  return {
@@ -3221,44 +3108,40 @@ function Es(t) {
3221
3108
  };
3222
3109
  }
3223
3110
  export {
3224
- ps as A,
3225
- ms as B,
3111
+ ls as A,
3112
+ gs as B,
3226
3113
  $ as C,
3227
- hs as D,
3114
+ _s as D,
3228
3115
  Le as E,
3229
3116
  x as F,
3230
- ds as G,
3231
- fs as H,
3232
- ys as I,
3233
- Es as J,
3234
- ws as K,
3235
- h as L,
3236
- Rn as S,
3117
+ ms as G,
3118
+ u as L,
3119
+ An as S,
3237
3120
  G as _,
3238
- os as a,
3239
- ss as b,
3240
- P as c,
3241
- ls as d,
3121
+ ts as a,
3122
+ es as b,
3123
+ U as c,
3124
+ os as d,
3242
3125
  In as e,
3243
3126
  pt as f,
3244
- ns as g,
3127
+ Zr as g,
3245
3128
  Dn as h,
3246
- rs as i,
3247
- Zr as j,
3248
- Ue as k,
3249
- oe as l,
3250
- xt as m,
3251
- lt as n,
3252
- is as o,
3253
- as as p,
3254
- cs as q,
3129
+ Qr as i,
3130
+ Pe as j,
3131
+ oe as k,
3132
+ xt as l,
3133
+ lt as m,
3134
+ ns as n,
3135
+ rs as o,
3136
+ is as p,
3137
+ ss as q,
3255
3138
  L as r,
3256
- us as s,
3257
- An as t,
3258
- gs as u,
3259
- bs as v,
3260
- _s as w,
3261
- Qr as x,
3262
- es as y,
3263
- ts as z
3139
+ vn as s,
3140
+ hs as t,
3141
+ fs as u,
3142
+ ps as v,
3143
+ us as w,
3144
+ ds as x,
3145
+ as as y,
3146
+ cs as z
3264
3147
  };