@feedmepos/mf-settings 0.0.50-prod → 0.0.52
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/dist/{App-ccc37fd9.js → App-22950de9.js} +152 -143
- package/dist/Business-c9b59843.js +3893 -0
- package/dist/{CreateBusiness-ec365db8.js → CreateBusiness-0850150d.js} +86 -86
- package/dist/{FoodCourt-652c44f9.js → FoodCourt-ad9640e4.js} +60 -61
- package/dist/{actionButton-cc6bcf01.js → FormSection.vue_vue_type_script_setup_true_lang-6aab82f2.js} +25 -25
- package/dist/{ResponsiveFabButton.vue_vue_type_script_setup_true_lang-977372d5.js → RestaurantSelector.vue_vue_type_script_setup_true_lang-e9712a4d.js} +63 -63
- package/dist/{Tagging-798e2bb7.js → Tagging-55538d2b.js} +6402 -6404
- package/dist/TemplateBuilder-54a34178.js +27 -0
- package/dist/{app-bd3cfc9c.js → app-b66ea7e1.js} +358 -40
- package/dist/app.js +2 -2
- package/dist/apps/mf-settings/src/api/foodCourt.d.ts +1 -1
- package/dist/apps/mf-settings/src/api/restaurant.d.ts +2 -2
- package/dist/apps/mf-settings/src/app.d.ts +1 -0
- package/dist/apps/mf-settings/src/components/business/RestaurantForm.vue.d.ts +1 -1
- package/dist/apps/mf-settings/src/components/foodcourt/foodCourt.d.ts +1 -1
- package/dist/apps/mf-settings/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{business-93826a8c.js → business-906742ba.js} +1 -1
- package/dist/{loading-6ee8ebc9.js → index-72d7bc88.js} +465 -466
- package/dist/{tslib.es6-449ce8af.js → map-695afd6f.js} +444 -561
- package/dist/{createForm-681e977a.js → object-8ac0c0d8.js} +18 -19
- package/dist/packages/shared/src/components/form/DynamicSheet.vue.d.ts +19 -0
- package/dist/packages/shared/src/components/layout/ListLayout.vue.d.ts +2 -0
- package/dist/packages/shared/src/composable/prompt.d.ts +9 -0
- package/dist/packages/shared/src/composable/sheet.d.ts +17 -0
- package/dist/packages/shared/src/helpers/browser.d.ts +1 -0
- package/dist/packages/shared/src/helpers/string.d.ts +12 -0
- package/package.json +3 -3
- package/dist/Business-edf5bd92.js +0 -11975
- package/dist/TemplateBuilder-3e34e9e8.js +0 -27
|
@@ -1,25 +1,4 @@
|
|
|
1
1
|
import { ref as ot } from "vue";
|
|
2
|
-
const oe = ot(null), Zr = () => oe.value;
|
|
3
|
-
function Qr(t) {
|
|
4
|
-
oe.value || (oe.value = t);
|
|
5
|
-
}
|
|
6
|
-
const es = Object.freeze({
|
|
7
|
-
jb: {
|
|
8
|
-
lat: 1.492659,
|
|
9
|
-
lng: 103.7413591
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
function ts(t) {
|
|
13
|
-
return [t.lng, t.lat];
|
|
14
|
-
}
|
|
15
|
-
function ns(t) {
|
|
16
|
-
if (t.length !== 2)
|
|
17
|
-
throw Error("Invalid coordinate array");
|
|
18
|
-
return {
|
|
19
|
-
lat: t[1],
|
|
20
|
-
lng: t[0]
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
2
|
/**
|
|
24
3
|
* @license
|
|
25
4
|
* Copyright 2017 Google LLC
|
|
@@ -71,8 +50,8 @@ const Be = function(t) {
|
|
|
71
50
|
const o = t[n++];
|
|
72
51
|
e[r++] = String.fromCharCode((s & 31) << 6 | o & 63);
|
|
73
52
|
} else if (s > 239 && s < 365) {
|
|
74
|
-
const o = t[n++], i = t[n++],
|
|
75
|
-
e[r++] = String.fromCharCode(55296 + (
|
|
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));
|
|
76
55
|
} else {
|
|
77
56
|
const o = t[n++], i = t[n++];
|
|
78
57
|
e[r++] = String.fromCharCode((s & 15) << 12 | (o & 63) << 6 | i & 63);
|
|
@@ -138,9 +117,9 @@ const Be = function(t) {
|
|
|
138
117
|
this.init_();
|
|
139
118
|
const n = e ? this.byteToCharMapWebSafe_ : this.byteToCharMap_, r = [];
|
|
140
119
|
for (let s = 0; s < t.length; s += 3) {
|
|
141
|
-
const o = t[s], i = s + 1 < t.length,
|
|
142
|
-
let
|
|
143
|
-
|
|
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]);
|
|
144
123
|
}
|
|
145
124
|
return r.join("");
|
|
146
125
|
},
|
|
@@ -185,19 +164,19 @@ const Be = function(t) {
|
|
|
185
164
|
this.init_();
|
|
186
165
|
const n = e ? this.charToByteMapWebSafe_ : this.charToByteMap_, r = [];
|
|
187
166
|
for (let s = 0; s < t.length; ) {
|
|
188
|
-
const o = n[t.charAt(s++)],
|
|
167
|
+
const o = n[t.charAt(s++)], a = s < t.length ? n[t.charAt(s)] : 0;
|
|
189
168
|
++s;
|
|
190
|
-
const
|
|
169
|
+
const l = s < t.length ? n[t.charAt(s)] : 64;
|
|
191
170
|
++s;
|
|
192
|
-
const
|
|
193
|
-
if (++s, o == null ||
|
|
171
|
+
const f = s < t.length ? n[t.charAt(s)] : 64;
|
|
172
|
+
if (++s, o == null || a == null || l == null || f == null)
|
|
194
173
|
throw new at();
|
|
195
|
-
const
|
|
196
|
-
if (r.push(
|
|
197
|
-
const m =
|
|
198
|
-
if (r.push(m),
|
|
199
|
-
const
|
|
200
|
-
r.push(
|
|
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);
|
|
201
180
|
}
|
|
202
181
|
}
|
|
203
182
|
}
|
|
@@ -311,10 +290,10 @@ const ht = () => ut().__FIREBASE_DEFAULTS__, dt = () => {
|
|
|
311
290
|
throw new Error(`Invalid host ${e} with no separate hostname and port!`);
|
|
312
291
|
const r = parseInt(e.substring(n + 1), 10);
|
|
313
292
|
return e[0] === "[" ? [e.substring(1, n - 1), r] : [e.substring(0, n), r];
|
|
314
|
-
},
|
|
293
|
+
}, Ue = () => {
|
|
315
294
|
var t;
|
|
316
295
|
return (t = K()) === null || t === void 0 ? void 0 : t.config;
|
|
317
|
-
},
|
|
296
|
+
}, Zr = (t) => {
|
|
318
297
|
var e;
|
|
319
298
|
return (e = K()) === null || e === void 0 ? void 0 : e[`_${t}`];
|
|
320
299
|
};
|
|
@@ -370,7 +349,7 @@ class mt {
|
|
|
370
349
|
* See the License for the specific language governing permissions and
|
|
371
350
|
* limitations under the License.
|
|
372
351
|
*/
|
|
373
|
-
function
|
|
352
|
+
function _t(t, e) {
|
|
374
353
|
if (t.uid)
|
|
375
354
|
throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');
|
|
376
355
|
const n = {
|
|
@@ -392,11 +371,11 @@ function bt(t, e) {
|
|
|
392
371
|
sign_in_provider: "custom",
|
|
393
372
|
identities: {}
|
|
394
373
|
}
|
|
395
|
-
}, t),
|
|
374
|
+
}, t), a = "";
|
|
396
375
|
return [
|
|
397
376
|
q(JSON.stringify(n)),
|
|
398
377
|
q(JSON.stringify(i)),
|
|
399
|
-
|
|
378
|
+
a
|
|
400
379
|
].join(".");
|
|
401
380
|
}
|
|
402
381
|
/**
|
|
@@ -415,15 +394,15 @@ function bt(t, e) {
|
|
|
415
394
|
* See the License for the specific language governing permissions and
|
|
416
395
|
* limitations under the License.
|
|
417
396
|
*/
|
|
418
|
-
function
|
|
397
|
+
function Pe() {
|
|
419
398
|
return typeof navigator < "u" && typeof navigator.userAgent == "string" ? navigator.userAgent : "";
|
|
420
399
|
}
|
|
421
|
-
function
|
|
400
|
+
function Qr() {
|
|
422
401
|
return typeof window < "u" && // @ts-ignore Setting up an broadly applicable index signature for Window
|
|
423
402
|
// just to deal with this case would probably be a bad idea.
|
|
424
|
-
!!(window.cordova || window.phonegap || window.PhoneGap) && /ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(
|
|
403
|
+
!!(window.cordova || window.phonegap || window.PhoneGap) && /ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Pe());
|
|
425
404
|
}
|
|
426
|
-
function
|
|
405
|
+
function bt() {
|
|
427
406
|
var t;
|
|
428
407
|
const e = (t = K()) === null || t === void 0 ? void 0 : t.forceEnvironment;
|
|
429
408
|
if (e === "node")
|
|
@@ -436,15 +415,15 @@ function _t() {
|
|
|
436
415
|
return !1;
|
|
437
416
|
}
|
|
438
417
|
}
|
|
439
|
-
function
|
|
418
|
+
function es() {
|
|
440
419
|
const t = typeof chrome == "object" ? chrome.runtime : typeof browser == "object" ? browser.runtime : void 0;
|
|
441
420
|
return typeof t == "object" && t.id !== void 0;
|
|
442
421
|
}
|
|
443
|
-
function
|
|
422
|
+
function ts() {
|
|
444
423
|
return typeof navigator == "object" && navigator.product === "ReactNative";
|
|
445
424
|
}
|
|
446
|
-
function
|
|
447
|
-
const t =
|
|
425
|
+
function ns() {
|
|
426
|
+
const t = Pe();
|
|
448
427
|
return t.indexOf("MSIE ") >= 0 || t.indexOf("Trident/") >= 0;
|
|
449
428
|
}
|
|
450
429
|
function yt() {
|
|
@@ -454,7 +433,7 @@ function yt() {
|
|
|
454
433
|
return !1;
|
|
455
434
|
}
|
|
456
435
|
}
|
|
457
|
-
function
|
|
436
|
+
function Et() {
|
|
458
437
|
return new Promise((t, e) => {
|
|
459
438
|
try {
|
|
460
439
|
let n = !0;
|
|
@@ -488,10 +467,10 @@ function wt() {
|
|
|
488
467
|
* See the License for the specific language governing permissions and
|
|
489
468
|
* limitations under the License.
|
|
490
469
|
*/
|
|
491
|
-
const
|
|
470
|
+
const wt = "FirebaseError";
|
|
492
471
|
class x extends Error {
|
|
493
472
|
constructor(e, n, r) {
|
|
494
|
-
super(n), this.code = e, this.customData = r, this.name =
|
|
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);
|
|
495
474
|
}
|
|
496
475
|
}
|
|
497
476
|
class Le {
|
|
@@ -499,24 +478,24 @@ class Le {
|
|
|
499
478
|
this.service = e, this.serviceName = n, this.errors = r;
|
|
500
479
|
}
|
|
501
480
|
create(e, ...n) {
|
|
502
|
-
const r = n[0] || {}, s = `${this.service}/${e}`, o = this.errors[e], i = o ? It(o, r) : "Error",
|
|
503
|
-
return new x(s,
|
|
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);
|
|
504
483
|
}
|
|
505
484
|
}
|
|
506
485
|
function It(t, e) {
|
|
507
|
-
return t.replace(
|
|
486
|
+
return t.replace(Rt, (n, r) => {
|
|
508
487
|
const s = e[r];
|
|
509
488
|
return s != null ? String(s) : `<${r}?>`;
|
|
510
489
|
});
|
|
511
490
|
}
|
|
512
|
-
const
|
|
513
|
-
function
|
|
491
|
+
const Rt = /\{\$([^}]+)}/g;
|
|
492
|
+
function rs(t) {
|
|
514
493
|
for (const e in t)
|
|
515
494
|
if (Object.prototype.hasOwnProperty.call(t, e))
|
|
516
495
|
return !1;
|
|
517
496
|
return !0;
|
|
518
497
|
}
|
|
519
|
-
function
|
|
498
|
+
function oe(t, e) {
|
|
520
499
|
if (t === e)
|
|
521
500
|
return !0;
|
|
522
501
|
const n = Object.keys(t), r = Object.keys(e);
|
|
@@ -524,8 +503,8 @@ function ie(t, e) {
|
|
|
524
503
|
if (!r.includes(s))
|
|
525
504
|
return !1;
|
|
526
505
|
const o = t[s], i = e[s];
|
|
527
|
-
if (
|
|
528
|
-
if (!
|
|
506
|
+
if (Ee(o) && Ee(i)) {
|
|
507
|
+
if (!oe(o, i))
|
|
529
508
|
return !1;
|
|
530
509
|
} else if (o !== i)
|
|
531
510
|
return !1;
|
|
@@ -535,7 +514,7 @@ function ie(t, e) {
|
|
|
535
514
|
return !1;
|
|
536
515
|
return !0;
|
|
537
516
|
}
|
|
538
|
-
function
|
|
517
|
+
function Ee(t) {
|
|
539
518
|
return t !== null && typeof t == "object";
|
|
540
519
|
}
|
|
541
520
|
/**
|
|
@@ -554,7 +533,7 @@ function we(t) {
|
|
|
554
533
|
* See the License for the specific language governing permissions and
|
|
555
534
|
* limitations under the License.
|
|
556
535
|
*/
|
|
557
|
-
function
|
|
536
|
+
function ss(t) {
|
|
558
537
|
const e = [];
|
|
559
538
|
for (const [n, r] of Object.entries(t))
|
|
560
539
|
Array.isArray(r) ? r.forEach((s) => {
|
|
@@ -562,7 +541,7 @@ function ls(t) {
|
|
|
562
541
|
}) : e.push(encodeURIComponent(n) + "=" + encodeURIComponent(r));
|
|
563
542
|
return e.length ? "&" + e.join("&") : "";
|
|
564
543
|
}
|
|
565
|
-
function
|
|
544
|
+
function os(t, e) {
|
|
566
545
|
const n = new Tt(t, e);
|
|
567
546
|
return n.subscribe.bind(n);
|
|
568
547
|
}
|
|
@@ -604,7 +583,7 @@ class Tt {
|
|
|
604
583
|
let s;
|
|
605
584
|
if (e === void 0 && n === void 0 && r === void 0)
|
|
606
585
|
throw new Error("Missing Observer.");
|
|
607
|
-
|
|
586
|
+
At(e, [
|
|
608
587
|
"next",
|
|
609
588
|
"error",
|
|
610
589
|
"complete"
|
|
@@ -650,7 +629,7 @@ class Tt {
|
|
|
650
629
|
}));
|
|
651
630
|
}
|
|
652
631
|
}
|
|
653
|
-
function
|
|
632
|
+
function At(t, e) {
|
|
654
633
|
if (typeof t != "object" || t === null)
|
|
655
634
|
return !1;
|
|
656
635
|
for (const n of e)
|
|
@@ -676,7 +655,7 @@ function Z() {
|
|
|
676
655
|
* See the License for the specific language governing permissions and
|
|
677
656
|
* limitations under the License.
|
|
678
657
|
*/
|
|
679
|
-
function
|
|
658
|
+
function U(t) {
|
|
680
659
|
return t && t._delegate ? t._delegate : t;
|
|
681
660
|
}
|
|
682
661
|
class $ {
|
|
@@ -718,7 +697,7 @@ class $ {
|
|
|
718
697
|
* See the License for the specific language governing permissions and
|
|
719
698
|
* limitations under the License.
|
|
720
699
|
*/
|
|
721
|
-
const
|
|
700
|
+
const C = "[DEFAULT]";
|
|
722
701
|
/**
|
|
723
702
|
* @license
|
|
724
703
|
* Copyright 2019 Google LLC
|
|
@@ -735,7 +714,7 @@ const O = "[DEFAULT]";
|
|
|
735
714
|
* See the License for the specific language governing permissions and
|
|
736
715
|
* limitations under the License.
|
|
737
716
|
*/
|
|
738
|
-
class
|
|
717
|
+
class vt {
|
|
739
718
|
constructor(e, n) {
|
|
740
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();
|
|
741
720
|
}
|
|
@@ -786,9 +765,9 @@ class At {
|
|
|
786
765
|
if (this.component)
|
|
787
766
|
throw Error(`Component for ${this.name} has already been provided`);
|
|
788
767
|
if (this.component = e, !!this.shouldAutoInitialize()) {
|
|
789
|
-
if (
|
|
768
|
+
if (Ct(e))
|
|
790
769
|
try {
|
|
791
|
-
this.getOrInitializeService({ instanceIdentifier:
|
|
770
|
+
this.getOrInitializeService({ instanceIdentifier: C });
|
|
792
771
|
} catch {
|
|
793
772
|
}
|
|
794
773
|
for (const [n, r] of this.instancesDeferred.entries()) {
|
|
@@ -803,7 +782,7 @@ class At {
|
|
|
803
782
|
}
|
|
804
783
|
}
|
|
805
784
|
}
|
|
806
|
-
clearInstance(e =
|
|
785
|
+
clearInstance(e = C) {
|
|
807
786
|
this.instancesDeferred.delete(e), this.instancesOptions.delete(e), this.instances.delete(e);
|
|
808
787
|
}
|
|
809
788
|
// app.delete() will call this method on every provider to delete the services
|
|
@@ -818,10 +797,10 @@ class At {
|
|
|
818
797
|
isComponentSet() {
|
|
819
798
|
return this.component != null;
|
|
820
799
|
}
|
|
821
|
-
isInitialized(e =
|
|
800
|
+
isInitialized(e = C) {
|
|
822
801
|
return this.instances.has(e);
|
|
823
802
|
}
|
|
824
|
-
getOptions(e =
|
|
803
|
+
getOptions(e = C) {
|
|
825
804
|
return this.instancesOptions.get(e) || {};
|
|
826
805
|
}
|
|
827
806
|
initialize(e = {}) {
|
|
@@ -835,8 +814,8 @@ class At {
|
|
|
835
814
|
options: n
|
|
836
815
|
});
|
|
837
816
|
for (const [o, i] of this.instancesDeferred.entries()) {
|
|
838
|
-
const
|
|
839
|
-
r ===
|
|
817
|
+
const a = this.normalizeInstanceIdentifier(o);
|
|
818
|
+
r === a && i.resolve(s);
|
|
840
819
|
}
|
|
841
820
|
return s;
|
|
842
821
|
}
|
|
@@ -882,17 +861,17 @@ class At {
|
|
|
882
861
|
}
|
|
883
862
|
return r || null;
|
|
884
863
|
}
|
|
885
|
-
normalizeInstanceIdentifier(e =
|
|
886
|
-
return this.component ? this.component.multipleInstances ? e :
|
|
864
|
+
normalizeInstanceIdentifier(e = C) {
|
|
865
|
+
return this.component ? this.component.multipleInstances ? e : C : e;
|
|
887
866
|
}
|
|
888
867
|
shouldAutoInitialize() {
|
|
889
868
|
return !!this.component && this.component.instantiationMode !== "EXPLICIT";
|
|
890
869
|
}
|
|
891
870
|
}
|
|
892
871
|
function Dt(t) {
|
|
893
|
-
return t ===
|
|
872
|
+
return t === C ? void 0 : t;
|
|
894
873
|
}
|
|
895
|
-
function
|
|
874
|
+
function Ct(t) {
|
|
896
875
|
return t.instantiationMode === "EAGER";
|
|
897
876
|
}
|
|
898
877
|
/**
|
|
@@ -911,7 +890,7 @@ function Ot(t) {
|
|
|
911
890
|
* See the License for the specific language governing permissions and
|
|
912
891
|
* limitations under the License.
|
|
913
892
|
*/
|
|
914
|
-
class
|
|
893
|
+
class Ot {
|
|
915
894
|
constructor(e) {
|
|
916
895
|
this.name = e, this.providers = /* @__PURE__ */ new Map();
|
|
917
896
|
}
|
|
@@ -943,7 +922,7 @@ class Ct {
|
|
|
943
922
|
getProvider(e) {
|
|
944
923
|
if (this.providers.has(e))
|
|
945
924
|
return this.providers.get(e);
|
|
946
|
-
const n = new
|
|
925
|
+
const n = new vt(e, this);
|
|
947
926
|
return this.providers.set(e, n), n;
|
|
948
927
|
}
|
|
949
928
|
getProviders() {
|
|
@@ -966,27 +945,27 @@ class Ct {
|
|
|
966
945
|
* See the License for the specific language governing permissions and
|
|
967
946
|
* limitations under the License.
|
|
968
947
|
*/
|
|
969
|
-
var
|
|
948
|
+
var u;
|
|
970
949
|
(function(t) {
|
|
971
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";
|
|
972
|
-
})(
|
|
951
|
+
})(u || (u = {}));
|
|
973
952
|
const St = {
|
|
974
|
-
debug:
|
|
975
|
-
verbose:
|
|
976
|
-
info:
|
|
977
|
-
warn:
|
|
978
|
-
error:
|
|
979
|
-
silent:
|
|
980
|
-
},
|
|
981
|
-
[
|
|
982
|
-
[
|
|
983
|
-
[
|
|
984
|
-
[
|
|
985
|
-
[
|
|
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"
|
|
986
965
|
}, Bt = (t, e, ...n) => {
|
|
987
966
|
if (e < t.logLevel)
|
|
988
967
|
return;
|
|
989
|
-
const r = (/* @__PURE__ */ new Date()).toISOString(), s =
|
|
968
|
+
const r = (/* @__PURE__ */ new Date()).toISOString(), s = kt[e];
|
|
990
969
|
if (s)
|
|
991
970
|
console[s](`[${r}] ${t.name}:`, ...n);
|
|
992
971
|
else
|
|
@@ -1000,13 +979,13 @@ class xt {
|
|
|
1000
979
|
* @param name The name that the logs will be associated with
|
|
1001
980
|
*/
|
|
1002
981
|
constructor(e) {
|
|
1003
|
-
this.name = e, this._logLevel =
|
|
982
|
+
this.name = e, this._logLevel = Nt, this._logHandler = Bt, this._userLogHandler = null;
|
|
1004
983
|
}
|
|
1005
984
|
get logLevel() {
|
|
1006
985
|
return this._logLevel;
|
|
1007
986
|
}
|
|
1008
987
|
set logLevel(e) {
|
|
1009
|
-
if (!(e in
|
|
988
|
+
if (!(e in u))
|
|
1010
989
|
throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);
|
|
1011
990
|
this._logLevel = e;
|
|
1012
991
|
}
|
|
@@ -1032,25 +1011,25 @@ class xt {
|
|
|
1032
1011
|
* The functions below are all based on the `console` interface
|
|
1033
1012
|
*/
|
|
1034
1013
|
debug(...e) {
|
|
1035
|
-
this._userLogHandler && this._userLogHandler(this,
|
|
1014
|
+
this._userLogHandler && this._userLogHandler(this, u.DEBUG, ...e), this._logHandler(this, u.DEBUG, ...e);
|
|
1036
1015
|
}
|
|
1037
1016
|
log(...e) {
|
|
1038
|
-
this._userLogHandler && this._userLogHandler(this,
|
|
1017
|
+
this._userLogHandler && this._userLogHandler(this, u.VERBOSE, ...e), this._logHandler(this, u.VERBOSE, ...e);
|
|
1039
1018
|
}
|
|
1040
1019
|
info(...e) {
|
|
1041
|
-
this._userLogHandler && this._userLogHandler(this,
|
|
1020
|
+
this._userLogHandler && this._userLogHandler(this, u.INFO, ...e), this._logHandler(this, u.INFO, ...e);
|
|
1042
1021
|
}
|
|
1043
1022
|
warn(...e) {
|
|
1044
|
-
this._userLogHandler && this._userLogHandler(this,
|
|
1023
|
+
this._userLogHandler && this._userLogHandler(this, u.WARN, ...e), this._logHandler(this, u.WARN, ...e);
|
|
1045
1024
|
}
|
|
1046
1025
|
error(...e) {
|
|
1047
|
-
this._userLogHandler && this._userLogHandler(this,
|
|
1026
|
+
this._userLogHandler && this._userLogHandler(this, u.ERROR, ...e), this._logHandler(this, u.ERROR, ...e);
|
|
1048
1027
|
}
|
|
1049
1028
|
}
|
|
1050
|
-
const
|
|
1051
|
-
let
|
|
1052
|
-
function
|
|
1053
|
-
return
|
|
1029
|
+
const Ut = (t, e) => e.some((n) => t instanceof n);
|
|
1030
|
+
let we, Ie;
|
|
1031
|
+
function Pt() {
|
|
1032
|
+
return we || (we = [
|
|
1054
1033
|
IDBDatabase,
|
|
1055
1034
|
IDBObjectStore,
|
|
1056
1035
|
IDBIndex,
|
|
@@ -1065,13 +1044,13 @@ function Lt() {
|
|
|
1065
1044
|
IDBCursor.prototype.continuePrimaryKey
|
|
1066
1045
|
]);
|
|
1067
1046
|
}
|
|
1068
|
-
const Me = /* @__PURE__ */ new WeakMap(),
|
|
1047
|
+
const Me = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakMap(), fe = /* @__PURE__ */ new WeakMap();
|
|
1069
1048
|
function Mt(t) {
|
|
1070
1049
|
const e = new Promise((n, r) => {
|
|
1071
1050
|
const s = () => {
|
|
1072
1051
|
t.removeEventListener("success", o), t.removeEventListener("error", i);
|
|
1073
1052
|
}, o = () => {
|
|
1074
|
-
n(
|
|
1053
|
+
n(A(t.result)), s();
|
|
1075
1054
|
}, i = () => {
|
|
1076
1055
|
r(t.error), s();
|
|
1077
1056
|
};
|
|
@@ -1083,7 +1062,7 @@ function Mt(t) {
|
|
|
1083
1062
|
}), fe.set(e, t), e;
|
|
1084
1063
|
}
|
|
1085
1064
|
function $t(t) {
|
|
1086
|
-
if (
|
|
1065
|
+
if (ie.has(t))
|
|
1087
1066
|
return;
|
|
1088
1067
|
const e = new Promise((n, r) => {
|
|
1089
1068
|
const s = () => {
|
|
@@ -1095,19 +1074,19 @@ function $t(t) {
|
|
|
1095
1074
|
};
|
|
1096
1075
|
t.addEventListener("complete", o), t.addEventListener("error", i), t.addEventListener("abort", i);
|
|
1097
1076
|
});
|
|
1098
|
-
|
|
1077
|
+
ie.set(t, e);
|
|
1099
1078
|
}
|
|
1100
|
-
let
|
|
1079
|
+
let ae = {
|
|
1101
1080
|
get(t, e, n) {
|
|
1102
1081
|
if (t instanceof IDBTransaction) {
|
|
1103
1082
|
if (e === "done")
|
|
1104
|
-
return
|
|
1083
|
+
return ie.get(t);
|
|
1105
1084
|
if (e === "objectStoreNames")
|
|
1106
1085
|
return t.objectStoreNames || $e.get(t);
|
|
1107
1086
|
if (e === "store")
|
|
1108
1087
|
return n.objectStoreNames[1] ? void 0 : n.objectStore(n.objectStoreNames[0]);
|
|
1109
1088
|
}
|
|
1110
|
-
return
|
|
1089
|
+
return A(t[e]);
|
|
1111
1090
|
},
|
|
1112
1091
|
set(t, e, n) {
|
|
1113
1092
|
return t[e] = n, !0;
|
|
@@ -1116,23 +1095,23 @@ let ce = {
|
|
|
1116
1095
|
return t instanceof IDBTransaction && (e === "done" || e === "store") ? !0 : e in t;
|
|
1117
1096
|
}
|
|
1118
1097
|
};
|
|
1119
|
-
function Ht(t) {
|
|
1120
|
-
ce = t(ce);
|
|
1121
|
-
}
|
|
1122
1098
|
function Ft(t) {
|
|
1099
|
+
ae = t(ae);
|
|
1100
|
+
}
|
|
1101
|
+
function Ht(t) {
|
|
1123
1102
|
return t === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...n) {
|
|
1124
1103
|
const r = t.call(ee(this), e, ...n);
|
|
1125
|
-
return $e.set(r, e.sort ? e.sort() : [e]),
|
|
1104
|
+
return $e.set(r, e.sort ? e.sort() : [e]), A(r);
|
|
1126
1105
|
} : Lt().includes(t) ? function(...e) {
|
|
1127
|
-
return t.apply(ee(this), e),
|
|
1106
|
+
return t.apply(ee(this), e), A(Me.get(this));
|
|
1128
1107
|
} : function(...e) {
|
|
1129
|
-
return
|
|
1108
|
+
return A(t.apply(ee(this), e));
|
|
1130
1109
|
};
|
|
1131
1110
|
}
|
|
1132
1111
|
function jt(t) {
|
|
1133
|
-
return typeof t == "function" ?
|
|
1112
|
+
return typeof t == "function" ? Ht(t) : (t instanceof IDBTransaction && $t(t), Ut(t, Pt()) ? new Proxy(t, ae) : t);
|
|
1134
1113
|
}
|
|
1135
|
-
function
|
|
1114
|
+
function A(t) {
|
|
1136
1115
|
if (t instanceof IDBRequest)
|
|
1137
1116
|
return Mt(t);
|
|
1138
1117
|
if (Q.has(t))
|
|
@@ -1142,21 +1121,21 @@ function R(t) {
|
|
|
1142
1121
|
}
|
|
1143
1122
|
const ee = (t) => fe.get(t);
|
|
1144
1123
|
function Vt(t, e, { blocked: n, upgrade: r, blocking: s, terminated: o } = {}) {
|
|
1145
|
-
const i = indexedDB.open(t, e),
|
|
1146
|
-
return r && i.addEventListener("upgradeneeded", (
|
|
1147
|
-
r(
|
|
1148
|
-
}), n && i.addEventListener("blocked", (
|
|
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(
|
|
1149
1128
|
// Casting due to https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1405
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
)),
|
|
1154
|
-
o &&
|
|
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));
|
|
1155
1134
|
}).catch(() => {
|
|
1156
|
-
}),
|
|
1135
|
+
}), a;
|
|
1157
1136
|
}
|
|
1158
1137
|
const zt = ["get", "getKey", "getAll", "getAllKeys", "count"], Wt = ["put", "add", "delete", "clear"], te = /* @__PURE__ */ new Map();
|
|
1159
|
-
function
|
|
1138
|
+
function Re(t, e) {
|
|
1160
1139
|
if (!(t instanceof IDBDatabase && !(e in t) && typeof e == "string"))
|
|
1161
1140
|
return;
|
|
1162
1141
|
if (te.get(e))
|
|
@@ -1167,20 +1146,20 @@ function ve(t, e) {
|
|
|
1167
1146
|
!(n in (r ? IDBIndex : IDBObjectStore).prototype) || !(s || zt.includes(n))
|
|
1168
1147
|
)
|
|
1169
1148
|
return;
|
|
1170
|
-
const o = async function(i, ...
|
|
1171
|
-
const
|
|
1172
|
-
let
|
|
1173
|
-
return r && (
|
|
1174
|
-
|
|
1175
|
-
s &&
|
|
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
|
|
1176
1155
|
]))[0];
|
|
1177
1156
|
};
|
|
1178
1157
|
return te.set(e, o), o;
|
|
1179
1158
|
}
|
|
1180
|
-
|
|
1159
|
+
Ft((t) => ({
|
|
1181
1160
|
...t,
|
|
1182
|
-
get: (e, n, r) =>
|
|
1183
|
-
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)
|
|
1184
1163
|
}));
|
|
1185
1164
|
/**
|
|
1186
1165
|
* @license
|
|
@@ -1218,7 +1197,7 @@ function Gt(t) {
|
|
|
1218
1197
|
const e = t.getComponent();
|
|
1219
1198
|
return (e == null ? void 0 : e.type) === "VERSION";
|
|
1220
1199
|
}
|
|
1221
|
-
const
|
|
1200
|
+
const ce = "@firebase/app", Te = "0.9.13";
|
|
1222
1201
|
/**
|
|
1223
1202
|
* @license
|
|
1224
1203
|
* Copyright 2019 Google LLC
|
|
@@ -1235,7 +1214,7 @@ const le = "@firebase/app", Te = "0.9.13";
|
|
|
1235
1214
|
* See the License for the specific language governing permissions and
|
|
1236
1215
|
* limitations under the License.
|
|
1237
1216
|
*/
|
|
1238
|
-
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",
|
|
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";
|
|
1239
1218
|
/**
|
|
1240
1219
|
* @license
|
|
1241
1220
|
* Copyright 2019 Google LLC
|
|
@@ -1252,8 +1231,8 @@ const S = new xt("@firebase/app"), Kt = "@firebase/app-compat", Xt = "@firebase/
|
|
|
1252
1231
|
* See the License for the specific language governing permissions and
|
|
1253
1232
|
* limitations under the License.
|
|
1254
1233
|
*/
|
|
1255
|
-
const
|
|
1256
|
-
[
|
|
1234
|
+
const le = "[DEFAULT]", En = {
|
|
1235
|
+
[ce]: "fire-core",
|
|
1257
1236
|
[Kt]: "fire-core-compat",
|
|
1258
1237
|
[Jt]: "fire-analytics",
|
|
1259
1238
|
[Xt]: "fire-analytics-compat",
|
|
@@ -1276,9 +1255,9 @@ const ue = "[DEFAULT]", wn = {
|
|
|
1276
1255
|
[pn]: "fire-gcs",
|
|
1277
1256
|
[gn]: "fire-gcs-compat",
|
|
1278
1257
|
[mn]: "fire-fst",
|
|
1279
|
-
[
|
|
1258
|
+
[_n]: "fire-fst-compat",
|
|
1280
1259
|
"fire-js": "fire-js",
|
|
1281
|
-
[
|
|
1260
|
+
[bn]: "fire-js-all"
|
|
1282
1261
|
};
|
|
1283
1262
|
/**
|
|
1284
1263
|
* @license
|
|
@@ -1296,8 +1275,8 @@ const ue = "[DEFAULT]", wn = {
|
|
|
1296
1275
|
* See the License for the specific language governing permissions and
|
|
1297
1276
|
* limitations under the License.
|
|
1298
1277
|
*/
|
|
1299
|
-
const
|
|
1300
|
-
function
|
|
1278
|
+
const F = /* @__PURE__ */ new Map(), ue = /* @__PURE__ */ new Map();
|
|
1279
|
+
function wn(t, e) {
|
|
1301
1280
|
try {
|
|
1302
1281
|
t.container.addComponent(e);
|
|
1303
1282
|
} catch (n) {
|
|
@@ -1306,11 +1285,11 @@ function En(t, e) {
|
|
|
1306
1285
|
}
|
|
1307
1286
|
function G(t) {
|
|
1308
1287
|
const e = t.name;
|
|
1309
|
-
if (
|
|
1288
|
+
if (ue.has(e))
|
|
1310
1289
|
return S.debug(`There were multiple attempts to register component ${e}.`), !1;
|
|
1311
|
-
|
|
1312
|
-
for (const n of
|
|
1313
|
-
|
|
1290
|
+
ue.set(e, t);
|
|
1291
|
+
for (const n of F.values())
|
|
1292
|
+
wn(n, t);
|
|
1314
1293
|
return !0;
|
|
1315
1294
|
}
|
|
1316
1295
|
function In(t, e) {
|
|
@@ -1333,7 +1312,7 @@ function In(t, e) {
|
|
|
1333
1312
|
* See the License for the specific language governing permissions and
|
|
1334
1313
|
* limitations under the License.
|
|
1335
1314
|
*/
|
|
1336
|
-
const
|
|
1315
|
+
const Rn = {
|
|
1337
1316
|
"no-app": "No Firebase App '{$appName}' has been created - call initializeApp() first",
|
|
1338
1317
|
"bad-app-name": "Illegal App name: '{$appName}",
|
|
1339
1318
|
"duplicate-app": "Firebase App named '{$appName}' already exists with different options or config",
|
|
@@ -1345,7 +1324,7 @@ const vn = {
|
|
|
1345
1324
|
"idb-get": "Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.",
|
|
1346
1325
|
"idb-set": "Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.",
|
|
1347
1326
|
"idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."
|
|
1348
|
-
},
|
|
1327
|
+
}, v = new Le("app", "Firebase", Rn);
|
|
1349
1328
|
/**
|
|
1350
1329
|
* @license
|
|
1351
1330
|
* Copyright 2019 Google LLC
|
|
@@ -1401,7 +1380,7 @@ class Tn {
|
|
|
1401
1380
|
*/
|
|
1402
1381
|
checkDestroyed() {
|
|
1403
1382
|
if (this.isDeleted)
|
|
1404
|
-
throw
|
|
1383
|
+
throw v.create("app-deleted", { appName: this._name });
|
|
1405
1384
|
}
|
|
1406
1385
|
}
|
|
1407
1386
|
/**
|
|
@@ -1420,53 +1399,53 @@ class Tn {
|
|
|
1420
1399
|
* See the License for the specific language governing permissions and
|
|
1421
1400
|
* limitations under the License.
|
|
1422
1401
|
*/
|
|
1423
|
-
const
|
|
1424
|
-
function
|
|
1402
|
+
const An = yn;
|
|
1403
|
+
function vn(t, e = {}) {
|
|
1425
1404
|
let n = t;
|
|
1426
1405
|
typeof e != "object" && (e = { name: e });
|
|
1427
|
-
const r = Object.assign({ name:
|
|
1406
|
+
const r = Object.assign({ name: le, automaticDataCollectionEnabled: !1 }, e), s = r.name;
|
|
1428
1407
|
if (typeof s != "string" || !s)
|
|
1429
|
-
throw
|
|
1408
|
+
throw v.create("bad-app-name", {
|
|
1430
1409
|
appName: String(s)
|
|
1431
1410
|
});
|
|
1432
|
-
if (n || (n =
|
|
1433
|
-
throw
|
|
1411
|
+
if (n || (n = Ue()), !n)
|
|
1412
|
+
throw v.create(
|
|
1434
1413
|
"no-options"
|
|
1435
1414
|
/* AppError.NO_OPTIONS */
|
|
1436
1415
|
);
|
|
1437
|
-
const o =
|
|
1416
|
+
const o = F.get(s);
|
|
1438
1417
|
if (o) {
|
|
1439
|
-
if (
|
|
1418
|
+
if (oe(n, o.options) && oe(r, o.config))
|
|
1440
1419
|
return o;
|
|
1441
|
-
throw
|
|
1442
|
-
}
|
|
1443
|
-
const i = new
|
|
1444
|
-
for (const
|
|
1445
|
-
i.addComponent(
|
|
1446
|
-
const
|
|
1447
|
-
return
|
|
1448
|
-
}
|
|
1449
|
-
function Dn(t =
|
|
1450
|
-
const e =
|
|
1451
|
-
if (!e && t ===
|
|
1452
|
-
return
|
|
1420
|
+
throw v.create("duplicate-app", { appName: s });
|
|
1421
|
+
}
|
|
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;
|
|
1427
|
+
}
|
|
1428
|
+
function Dn(t = le) {
|
|
1429
|
+
const e = F.get(t);
|
|
1430
|
+
if (!e && t === le && Ue())
|
|
1431
|
+
return vn();
|
|
1453
1432
|
if (!e)
|
|
1454
|
-
throw
|
|
1433
|
+
throw v.create("no-app", { appName: t });
|
|
1455
1434
|
return e;
|
|
1456
1435
|
}
|
|
1457
|
-
function
|
|
1458
|
-
return Array.from(
|
|
1436
|
+
function is() {
|
|
1437
|
+
return Array.from(F.values());
|
|
1459
1438
|
}
|
|
1460
1439
|
function L(t, e, n) {
|
|
1461
1440
|
var r;
|
|
1462
|
-
let s = (r =
|
|
1441
|
+
let s = (r = En[t]) !== null && r !== void 0 ? r : t;
|
|
1463
1442
|
n && (s += `-${n}`);
|
|
1464
1443
|
const o = s.match(/\s|\//), i = e.match(/\s|\//);
|
|
1465
1444
|
if (o || i) {
|
|
1466
|
-
const
|
|
1445
|
+
const a = [
|
|
1467
1446
|
`Unable to register library "${s}" with version "${e}":`
|
|
1468
1447
|
];
|
|
1469
|
-
o &&
|
|
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(" "));
|
|
1470
1449
|
return;
|
|
1471
1450
|
}
|
|
1472
1451
|
G(new $(
|
|
@@ -1492,52 +1471,52 @@ function L(t, e, n) {
|
|
|
1492
1471
|
* See the License for the specific language governing permissions and
|
|
1493
1472
|
* limitations under the License.
|
|
1494
1473
|
*/
|
|
1495
|
-
const
|
|
1474
|
+
const Cn = "firebase-heartbeat-database", On = 1, H = "firebase-heartbeat-store";
|
|
1496
1475
|
let ne = null;
|
|
1497
|
-
function
|
|
1498
|
-
return ne || (ne = Vt(
|
|
1476
|
+
function Fe() {
|
|
1477
|
+
return ne || (ne = Vt(Cn, On, {
|
|
1499
1478
|
upgrade: (t, e) => {
|
|
1500
1479
|
switch (e) {
|
|
1501
1480
|
case 0:
|
|
1502
|
-
t.createObjectStore(
|
|
1481
|
+
t.createObjectStore(H);
|
|
1503
1482
|
}
|
|
1504
1483
|
}
|
|
1505
1484
|
}).catch((t) => {
|
|
1506
|
-
throw
|
|
1485
|
+
throw v.create("idb-open", {
|
|
1507
1486
|
originalErrorMessage: t.message
|
|
1508
1487
|
});
|
|
1509
1488
|
})), ne;
|
|
1510
1489
|
}
|
|
1511
1490
|
async function Sn(t) {
|
|
1512
1491
|
try {
|
|
1513
|
-
return await (await
|
|
1492
|
+
return await (await Fe()).transaction(H).objectStore(H).get(He(t));
|
|
1514
1493
|
} catch (e) {
|
|
1515
1494
|
if (e instanceof x)
|
|
1516
1495
|
S.warn(e.message);
|
|
1517
1496
|
else {
|
|
1518
|
-
const n =
|
|
1497
|
+
const n = v.create("idb-get", {
|
|
1519
1498
|
originalErrorMessage: e == null ? void 0 : e.message
|
|
1520
1499
|
});
|
|
1521
1500
|
S.warn(n.message);
|
|
1522
1501
|
}
|
|
1523
1502
|
}
|
|
1524
1503
|
}
|
|
1525
|
-
async function
|
|
1504
|
+
async function Ae(t, e) {
|
|
1526
1505
|
try {
|
|
1527
|
-
const r = (await
|
|
1528
|
-
await r.objectStore(
|
|
1506
|
+
const r = (await Fe()).transaction(H, "readwrite");
|
|
1507
|
+
await r.objectStore(H).put(e, He(t)), await r.done;
|
|
1529
1508
|
} catch (n) {
|
|
1530
1509
|
if (n instanceof x)
|
|
1531
1510
|
S.warn(n.message);
|
|
1532
1511
|
else {
|
|
1533
|
-
const r =
|
|
1512
|
+
const r = v.create("idb-set", {
|
|
1534
1513
|
originalErrorMessage: n == null ? void 0 : n.message
|
|
1535
1514
|
});
|
|
1536
1515
|
S.warn(r.message);
|
|
1537
1516
|
}
|
|
1538
1517
|
}
|
|
1539
1518
|
}
|
|
1540
|
-
function
|
|
1519
|
+
function He(t) {
|
|
1541
1520
|
return `${t.name}!${t.options.appId}`;
|
|
1542
1521
|
}
|
|
1543
1522
|
/**
|
|
@@ -1556,12 +1535,12 @@ function Fe(t) {
|
|
|
1556
1535
|
* See the License for the specific language governing permissions and
|
|
1557
1536
|
* limitations under the License.
|
|
1558
1537
|
*/
|
|
1559
|
-
const
|
|
1538
|
+
const Nn = 1024, kn = 30 * 24 * 60 * 60 * 1e3;
|
|
1560
1539
|
class Bn {
|
|
1561
1540
|
constructor(e) {
|
|
1562
1541
|
this.container = e, this._heartbeatsCache = null;
|
|
1563
1542
|
const n = this.container.getProvider("app").getImmediate();
|
|
1564
|
-
this._storage = new
|
|
1543
|
+
this._storage = new Un(n), this._heartbeatsCachePromise = this._storage.read().then((r) => (this._heartbeatsCache = r, r));
|
|
1565
1544
|
}
|
|
1566
1545
|
/**
|
|
1567
1546
|
* Called to report a heartbeat. The function will generate
|
|
@@ -1571,11 +1550,11 @@ class Bn {
|
|
|
1571
1550
|
* already logged, subsequent calls to this function in the same day will be ignored.
|
|
1572
1551
|
*/
|
|
1573
1552
|
async triggerHeartbeat() {
|
|
1574
|
-
const n = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), r =
|
|
1553
|
+
const n = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), r = ve();
|
|
1575
1554
|
if (this._heartbeatsCache === null && (this._heartbeatsCache = await this._heartbeatsCachePromise), !(this._heartbeatsCache.lastSentHeartbeatDate === r || this._heartbeatsCache.heartbeats.some((s) => s.date === r)))
|
|
1576
1555
|
return this._heartbeatsCache.heartbeats.push({ date: r, agent: n }), this._heartbeatsCache.heartbeats = this._heartbeatsCache.heartbeats.filter((s) => {
|
|
1577
1556
|
const o = new Date(s.date).valueOf();
|
|
1578
|
-
return Date.now() - o <=
|
|
1557
|
+
return Date.now() - o <= kn;
|
|
1579
1558
|
}), this._storage.overwrite(this._heartbeatsCache);
|
|
1580
1559
|
}
|
|
1581
1560
|
/**
|
|
@@ -1588,14 +1567,14 @@ class Bn {
|
|
|
1588
1567
|
async getHeartbeatsHeader() {
|
|
1589
1568
|
if (this._heartbeatsCache === null && await this._heartbeatsCachePromise, this._heartbeatsCache === null || this._heartbeatsCache.heartbeats.length === 0)
|
|
1590
1569
|
return "";
|
|
1591
|
-
const e =
|
|
1570
|
+
const e = ve(), { heartbeatsToSend: n, unsentEntries: r } = xn(this._heartbeatsCache.heartbeats), s = q(JSON.stringify({ version: 2, heartbeats: n }));
|
|
1592
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;
|
|
1593
1572
|
}
|
|
1594
1573
|
}
|
|
1595
|
-
function
|
|
1574
|
+
function ve() {
|
|
1596
1575
|
return (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
|
|
1597
1576
|
}
|
|
1598
|
-
function xn(t, e =
|
|
1577
|
+
function xn(t, e = Nn) {
|
|
1599
1578
|
const n = [];
|
|
1600
1579
|
let r = t.slice();
|
|
1601
1580
|
for (const s of t) {
|
|
@@ -1619,12 +1598,12 @@ function xn(t, e = kn) {
|
|
|
1619
1598
|
unsentEntries: r
|
|
1620
1599
|
};
|
|
1621
1600
|
}
|
|
1622
|
-
class
|
|
1601
|
+
class Un {
|
|
1623
1602
|
constructor(e) {
|
|
1624
1603
|
this.app = e, this._canUseIndexedDBPromise = this.runIndexedDBEnvironmentCheck();
|
|
1625
1604
|
}
|
|
1626
1605
|
async runIndexedDBEnvironmentCheck() {
|
|
1627
|
-
return yt() ?
|
|
1606
|
+
return yt() ? Et().then(() => !0).catch(() => !1) : !1;
|
|
1628
1607
|
}
|
|
1629
1608
|
/**
|
|
1630
1609
|
* Read all heartbeats.
|
|
@@ -1637,7 +1616,7 @@ class Pn {
|
|
|
1637
1616
|
var n;
|
|
1638
1617
|
if (await this._canUseIndexedDBPromise) {
|
|
1639
1618
|
const s = await this.read();
|
|
1640
|
-
return
|
|
1619
|
+
return Ae(this.app, {
|
|
1641
1620
|
lastSentHeartbeatDate: (n = e.lastSentHeartbeatDate) !== null && n !== void 0 ? n : s.lastSentHeartbeatDate,
|
|
1642
1621
|
heartbeats: e.heartbeats
|
|
1643
1622
|
});
|
|
@@ -1649,7 +1628,7 @@ class Pn {
|
|
|
1649
1628
|
var n;
|
|
1650
1629
|
if (await this._canUseIndexedDBPromise) {
|
|
1651
1630
|
const s = await this.read();
|
|
1652
|
-
return
|
|
1631
|
+
return Ae(this.app, {
|
|
1653
1632
|
lastSentHeartbeatDate: (n = e.lastSentHeartbeatDate) !== null && n !== void 0 ? n : s.lastSentHeartbeatDate,
|
|
1654
1633
|
heartbeats: [
|
|
1655
1634
|
...s.heartbeats,
|
|
@@ -1682,7 +1661,7 @@ function De(t) {
|
|
|
1682
1661
|
* See the License for the specific language governing permissions and
|
|
1683
1662
|
* limitations under the License.
|
|
1684
1663
|
*/
|
|
1685
|
-
function
|
|
1664
|
+
function Pn(t) {
|
|
1686
1665
|
G(new $(
|
|
1687
1666
|
"platform-logger",
|
|
1688
1667
|
(e) => new qt(e),
|
|
@@ -1693,9 +1672,9 @@ function Un(t) {
|
|
|
1693
1672
|
(e) => new Bn(e),
|
|
1694
1673
|
"PRIVATE"
|
|
1695
1674
|
/* ComponentType.PRIVATE */
|
|
1696
|
-
)), L(
|
|
1675
|
+
)), L(ce, Te, t), L(ce, Te, "esm2017"), L("fire-js", "");
|
|
1697
1676
|
}
|
|
1698
|
-
|
|
1677
|
+
Pn("");
|
|
1699
1678
|
/**
|
|
1700
1679
|
* @license
|
|
1701
1680
|
* Copyright 2017 Google LLC
|
|
@@ -1729,7 +1708,7 @@ const je = "firebasestorage.googleapis.com", Ve = "storageBucket", Ln = 2 * 60 *
|
|
|
1729
1708
|
* See the License for the specific language governing permissions and
|
|
1730
1709
|
* limitations under the License.
|
|
1731
1710
|
*/
|
|
1732
|
-
class
|
|
1711
|
+
class d extends x {
|
|
1733
1712
|
/**
|
|
1734
1713
|
* @param code - A `StorageErrorCode` string to be prefixed with 'storage/' and
|
|
1735
1714
|
* added to the end of the message.
|
|
@@ -1737,7 +1716,7 @@ class f extends x {
|
|
|
1737
1716
|
* @param status_ - Corresponding HTTP Status Code
|
|
1738
1717
|
*/
|
|
1739
1718
|
constructor(e, n, r = 0) {
|
|
1740
|
-
super(re(e), `Firebase Storage: ${n} (${re(e)})`), this.status_ = r, this.customData = { serverResponse: null }, this._baseMessage = this.message, Object.setPrototypeOf(this,
|
|
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);
|
|
1741
1720
|
}
|
|
1742
1721
|
get status() {
|
|
1743
1722
|
return this.status_;
|
|
@@ -1762,71 +1741,71 @@ class f extends x {
|
|
|
1762
1741
|
${this.customData.serverResponse}` : this.message = this._baseMessage;
|
|
1763
1742
|
}
|
|
1764
1743
|
}
|
|
1765
|
-
var
|
|
1744
|
+
var h;
|
|
1766
1745
|
(function(t) {
|
|
1767
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";
|
|
1768
|
-
})(
|
|
1747
|
+
})(h || (h = {}));
|
|
1769
1748
|
function re(t) {
|
|
1770
1749
|
return "storage/" + t;
|
|
1771
1750
|
}
|
|
1772
1751
|
function pe() {
|
|
1773
1752
|
const t = "An unknown error occurred, please check the error payload for server response.";
|
|
1774
|
-
return new
|
|
1753
|
+
return new d(h.UNKNOWN, t);
|
|
1775
1754
|
}
|
|
1776
1755
|
function $n(t) {
|
|
1777
|
-
return new
|
|
1756
|
+
return new d(h.OBJECT_NOT_FOUND, "Object '" + t + "' does not exist.");
|
|
1778
1757
|
}
|
|
1779
|
-
function
|
|
1780
|
-
return new
|
|
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/.");
|
|
1781
1760
|
}
|
|
1782
|
-
function
|
|
1761
|
+
function Hn() {
|
|
1783
1762
|
const t = "User is not authenticated, please authenticate using Firebase Authentication and try again.";
|
|
1784
|
-
return new
|
|
1763
|
+
return new d(h.UNAUTHENTICATED, t);
|
|
1785
1764
|
}
|
|
1786
1765
|
function jn() {
|
|
1787
|
-
return new
|
|
1766
|
+
return new d(h.UNAUTHORIZED_APP, "This app does not have permission to access Firebase Storage on this project.");
|
|
1788
1767
|
}
|
|
1789
1768
|
function Vn(t) {
|
|
1790
|
-
return new
|
|
1769
|
+
return new d(h.UNAUTHORIZED, "User does not have permission to access '" + t + "'.");
|
|
1791
1770
|
}
|
|
1792
1771
|
function zn() {
|
|
1793
|
-
return new
|
|
1772
|
+
return new d(h.RETRY_LIMIT_EXCEEDED, "Max retry time for operation exceeded, please try again.");
|
|
1794
1773
|
}
|
|
1795
1774
|
function Wn() {
|
|
1796
|
-
return new
|
|
1775
|
+
return new d(h.CANCELED, "User canceled the upload/download.");
|
|
1797
1776
|
}
|
|
1798
1777
|
function qn(t) {
|
|
1799
|
-
return new
|
|
1778
|
+
return new d(h.INVALID_URL, "Invalid URL '" + t + "'.");
|
|
1800
1779
|
}
|
|
1801
1780
|
function Gn(t) {
|
|
1802
|
-
return new
|
|
1781
|
+
return new d(h.INVALID_DEFAULT_BUCKET, "Invalid default bucket '" + t + "'.");
|
|
1803
1782
|
}
|
|
1804
1783
|
function Kn() {
|
|
1805
|
-
return new
|
|
1784
|
+
return new d(h.NO_DEFAULT_BUCKET, "No default bucket found. Did you set the '" + Ve + "' property when initializing the app?");
|
|
1806
1785
|
}
|
|
1807
1786
|
function Xn() {
|
|
1808
|
-
return new
|
|
1787
|
+
return new d(h.CANNOT_SLICE_BLOB, "Cannot slice blob for upload. Please retry the upload.");
|
|
1809
1788
|
}
|
|
1810
1789
|
function Jn() {
|
|
1811
|
-
return new
|
|
1790
|
+
return new d(h.NO_DOWNLOAD_URL, "The given file does not have any download URLs.");
|
|
1812
1791
|
}
|
|
1813
1792
|
function Yn(t) {
|
|
1814
|
-
return new
|
|
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.`);
|
|
1815
1794
|
}
|
|
1816
|
-
function
|
|
1817
|
-
return new
|
|
1795
|
+
function he(t) {
|
|
1796
|
+
return new d(h.INVALID_ARGUMENT, t);
|
|
1818
1797
|
}
|
|
1819
1798
|
function ze() {
|
|
1820
|
-
return new
|
|
1799
|
+
return new d(h.APP_DELETED, "The Firebase app was deleted.");
|
|
1821
1800
|
}
|
|
1822
1801
|
function Zn(t) {
|
|
1823
|
-
return new
|
|
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').");
|
|
1824
1803
|
}
|
|
1825
1804
|
function M(t, e) {
|
|
1826
|
-
return new
|
|
1805
|
+
return new d(h.INVALID_FORMAT, "String does not match format '" + t + "': " + e);
|
|
1827
1806
|
}
|
|
1828
|
-
function
|
|
1829
|
-
throw new
|
|
1807
|
+
function P(t) {
|
|
1808
|
+
throw new d(h.INTERNAL_ERROR, "Internal error: " + t);
|
|
1830
1809
|
}
|
|
1831
1810
|
/**
|
|
1832
1811
|
* @license
|
|
@@ -1844,7 +1823,7 @@ function U(t) {
|
|
|
1844
1823
|
* See the License for the specific language governing permissions and
|
|
1845
1824
|
* limitations under the License.
|
|
1846
1825
|
*/
|
|
1847
|
-
class
|
|
1826
|
+
class E {
|
|
1848
1827
|
constructor(e, n) {
|
|
1849
1828
|
this.bucket = e, this.path_ = n;
|
|
1850
1829
|
}
|
|
@@ -1864,9 +1843,9 @@ class w {
|
|
|
1864
1843
|
static makeFromBucketSpec(e, n) {
|
|
1865
1844
|
let r;
|
|
1866
1845
|
try {
|
|
1867
|
-
r =
|
|
1846
|
+
r = E.makeFromUrl(e, n);
|
|
1868
1847
|
} catch {
|
|
1869
|
-
return new
|
|
1848
|
+
return new E(e, "");
|
|
1870
1849
|
}
|
|
1871
1850
|
if (r.path === "")
|
|
1872
1851
|
return r;
|
|
@@ -1878,21 +1857,21 @@ class w {
|
|
|
1878
1857
|
function o(y) {
|
|
1879
1858
|
y.path.charAt(y.path.length - 1) === "/" && (y.path_ = y.path_.slice(0, -1));
|
|
1880
1859
|
}
|
|
1881
|
-
const i = "(/(.*))?$",
|
|
1882
|
-
function
|
|
1860
|
+
const i = "(/(.*))?$", a = new RegExp("^gs://" + s + i, "i"), c = { bucket: 1, path: 3 };
|
|
1861
|
+
function l(y) {
|
|
1883
1862
|
y.path_ = decodeURIComponent(y.path);
|
|
1884
1863
|
}
|
|
1885
|
-
const
|
|
1886
|
-
{ regex:
|
|
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 },
|
|
1887
1866
|
{
|
|
1888
1867
|
regex: m,
|
|
1889
|
-
indices:
|
|
1890
|
-
postModify:
|
|
1868
|
+
indices: w,
|
|
1869
|
+
postModify: l
|
|
1891
1870
|
},
|
|
1892
1871
|
{
|
|
1893
1872
|
regex: B,
|
|
1894
1873
|
indices: { bucket: 1, path: 2 },
|
|
1895
|
-
postModify:
|
|
1874
|
+
postModify: l
|
|
1896
1875
|
}
|
|
1897
1876
|
];
|
|
1898
1877
|
for (let y = 0; y < I.length; y++) {
|
|
@@ -1900,7 +1879,7 @@ class w {
|
|
|
1900
1879
|
if (J) {
|
|
1901
1880
|
const st = J[V.indices.bucket];
|
|
1902
1881
|
let Y = J[V.indices.path];
|
|
1903
|
-
Y || (Y = ""), r = new
|
|
1882
|
+
Y || (Y = ""), r = new E(st, Y), V.postModify(r);
|
|
1904
1883
|
break;
|
|
1905
1884
|
}
|
|
1906
1885
|
}
|
|
@@ -1938,46 +1917,46 @@ class Qn {
|
|
|
1938
1917
|
* limitations under the License.
|
|
1939
1918
|
*/
|
|
1940
1919
|
function er(t, e, n) {
|
|
1941
|
-
let r = 1, s = null, o = null, i = !1,
|
|
1942
|
-
function
|
|
1943
|
-
return
|
|
1920
|
+
let r = 1, s = null, o = null, i = !1, a = 0;
|
|
1921
|
+
function c() {
|
|
1922
|
+
return a === 2;
|
|
1944
1923
|
}
|
|
1945
|
-
let
|
|
1946
|
-
function
|
|
1947
|
-
|
|
1924
|
+
let l = !1;
|
|
1925
|
+
function g(...b) {
|
|
1926
|
+
l || (l = !0, e.apply(null, b));
|
|
1948
1927
|
}
|
|
1949
|
-
function
|
|
1928
|
+
function f(b) {
|
|
1950
1929
|
s = setTimeout(() => {
|
|
1951
|
-
s = null, t(m,
|
|
1952
|
-
},
|
|
1930
|
+
s = null, t(m, c());
|
|
1931
|
+
}, b);
|
|
1953
1932
|
}
|
|
1954
|
-
function
|
|
1933
|
+
function p() {
|
|
1955
1934
|
o && clearTimeout(o);
|
|
1956
1935
|
}
|
|
1957
|
-
function m(
|
|
1958
|
-
if (
|
|
1959
|
-
|
|
1936
|
+
function m(b, ...B) {
|
|
1937
|
+
if (l) {
|
|
1938
|
+
p();
|
|
1960
1939
|
return;
|
|
1961
1940
|
}
|
|
1962
|
-
if (
|
|
1963
|
-
|
|
1941
|
+
if (b) {
|
|
1942
|
+
p(), g.call(null, b, ...B);
|
|
1964
1943
|
return;
|
|
1965
1944
|
}
|
|
1966
|
-
if (
|
|
1967
|
-
|
|
1945
|
+
if (c() || i) {
|
|
1946
|
+
p(), g.call(null, b, ...B);
|
|
1968
1947
|
return;
|
|
1969
1948
|
}
|
|
1970
1949
|
r < 64 && (r *= 2);
|
|
1971
1950
|
let I;
|
|
1972
|
-
|
|
1951
|
+
a === 1 ? (a = 2, I = 0) : I = (r + Math.random()) * 1e3, f(I);
|
|
1973
1952
|
}
|
|
1974
|
-
let
|
|
1975
|
-
function
|
|
1976
|
-
|
|
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)));
|
|
1977
1956
|
}
|
|
1978
|
-
return
|
|
1979
|
-
i = !0,
|
|
1980
|
-
}, n),
|
|
1957
|
+
return f(0), o = setTimeout(() => {
|
|
1958
|
+
i = !0, k(!0);
|
|
1959
|
+
}, n), k;
|
|
1981
1960
|
}
|
|
1982
1961
|
function tr(t) {
|
|
1983
1962
|
t(!1);
|
|
@@ -2007,17 +1986,17 @@ function rr(t) {
|
|
|
2007
1986
|
function ge(t) {
|
|
2008
1987
|
return typeof t == "string" || t instanceof String;
|
|
2009
1988
|
}
|
|
2010
|
-
function
|
|
1989
|
+
function Ce(t) {
|
|
2011
1990
|
return me() && t instanceof Blob;
|
|
2012
1991
|
}
|
|
2013
1992
|
function me() {
|
|
2014
|
-
return typeof Blob < "u" && !
|
|
1993
|
+
return typeof Blob < "u" && !bt();
|
|
2015
1994
|
}
|
|
2016
|
-
function
|
|
1995
|
+
function Oe(t, e, n, r) {
|
|
2017
1996
|
if (r < e)
|
|
2018
|
-
throw
|
|
1997
|
+
throw he(`Invalid value for '${t}'. Expected ${e} or greater.`);
|
|
2019
1998
|
if (r > n)
|
|
2020
|
-
throw
|
|
1999
|
+
throw he(`Invalid value for '${t}'. Expected ${n} or less.`);
|
|
2021
2000
|
}
|
|
2022
2001
|
/**
|
|
2023
2002
|
* @license
|
|
@@ -2065,10 +2044,10 @@ function We(t) {
|
|
|
2065
2044
|
* See the License for the specific language governing permissions and
|
|
2066
2045
|
* limitations under the License.
|
|
2067
2046
|
*/
|
|
2068
|
-
var
|
|
2047
|
+
var O;
|
|
2069
2048
|
(function(t) {
|
|
2070
2049
|
t[t.NO_ERROR = 0] = "NO_ERROR", t[t.NETWORK_ERROR = 1] = "NETWORK_ERROR", t[t.ABORT = 2] = "ABORT";
|
|
2071
|
-
})(
|
|
2050
|
+
})(O || (O = {}));
|
|
2072
2051
|
/**
|
|
2073
2052
|
* @license
|
|
2074
2053
|
* Copyright 2022 Google LLC
|
|
@@ -2111,9 +2090,9 @@ function sr(t, e) {
|
|
|
2111
2090
|
* limitations under the License.
|
|
2112
2091
|
*/
|
|
2113
2092
|
class or {
|
|
2114
|
-
constructor(e, n, r, s, o, i, c, l,
|
|
2115
|
-
this.url_ = e, this.method_ = n, this.headers_ = r, this.body_ = s, this.successCodes_ = o, this.additionalRetryCodes_ = i, this.callback_ =
|
|
2116
|
-
this.resolve_ = m, this.reject_ =
|
|
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_();
|
|
2117
2096
|
});
|
|
2118
2097
|
}
|
|
2119
2098
|
/**
|
|
@@ -2127,39 +2106,39 @@ class or {
|
|
|
2127
2106
|
}
|
|
2128
2107
|
const o = this.connectionFactory_();
|
|
2129
2108
|
this.pendingConnection_ = o;
|
|
2130
|
-
const i = (
|
|
2131
|
-
const
|
|
2132
|
-
this.progressCallback_ !== null && this.progressCallback_(
|
|
2109
|
+
const i = (a) => {
|
|
2110
|
+
const c = a.loaded, l = a.lengthComputable ? a.total : -1;
|
|
2111
|
+
this.progressCallback_ !== null && this.progressCallback_(c, l);
|
|
2133
2112
|
};
|
|
2134
2113
|
this.progressCallback_ !== null && o.addUploadProgressListener(i), o.send(this.url_, this.method_, this.body_, this.headers_).then(() => {
|
|
2135
2114
|
this.progressCallback_ !== null && o.removeUploadProgressListener(i), this.pendingConnection_ = null;
|
|
2136
|
-
const
|
|
2137
|
-
if (!
|
|
2138
|
-
const
|
|
2139
|
-
r(!1, new z(!1, null,
|
|
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));
|
|
2140
2119
|
return;
|
|
2141
2120
|
}
|
|
2142
|
-
const
|
|
2143
|
-
r(!0, new z(
|
|
2121
|
+
const l = this.successCodes_.indexOf(c) !== -1;
|
|
2122
|
+
r(!0, new z(l, o));
|
|
2144
2123
|
});
|
|
2145
2124
|
}, n = (r, s) => {
|
|
2146
|
-
const o = this.resolve_, i = this.reject_,
|
|
2125
|
+
const o = this.resolve_, i = this.reject_, a = s.connection;
|
|
2147
2126
|
if (s.wasSuccessCode)
|
|
2148
2127
|
try {
|
|
2149
|
-
const
|
|
2150
|
-
nr(
|
|
2151
|
-
} catch (
|
|
2152
|
-
i(
|
|
2128
|
+
const c = this.callback_(a, a.getResponse());
|
|
2129
|
+
nr(c) ? o(c) : o();
|
|
2130
|
+
} catch (c) {
|
|
2131
|
+
i(c);
|
|
2153
2132
|
}
|
|
2154
|
-
else if (
|
|
2155
|
-
const
|
|
2156
|
-
|
|
2133
|
+
else if (a !== null) {
|
|
2134
|
+
const c = pe();
|
|
2135
|
+
c.serverResponse = a.getErrorText(), this.errorCallback_ ? i(this.errorCallback_(a, c)) : i(c);
|
|
2157
2136
|
} else if (s.canceled) {
|
|
2158
|
-
const
|
|
2159
|
-
i(
|
|
2137
|
+
const c = this.appDelete_ ? ze() : Wn();
|
|
2138
|
+
i(c);
|
|
2160
2139
|
} else {
|
|
2161
|
-
const
|
|
2162
|
-
i(
|
|
2140
|
+
const c = zn();
|
|
2141
|
+
i(c);
|
|
2163
2142
|
}
|
|
2164
2143
|
};
|
|
2165
2144
|
this.canceled_ ? n(!1, new z(!1, null, !0)) : this.backoffId_ = er(e, n, this.timeout_);
|
|
@@ -2191,8 +2170,8 @@ function lr(t, e) {
|
|
|
2191
2170
|
e !== null && (t["X-Firebase-AppCheck"] = e);
|
|
2192
2171
|
}
|
|
2193
2172
|
function ur(t, e, n, r, s, o, i = !0) {
|
|
2194
|
-
const
|
|
2195
|
-
return cr(
|
|
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);
|
|
2196
2175
|
}
|
|
2197
2176
|
/**
|
|
2198
2177
|
* @license
|
|
@@ -2223,7 +2202,7 @@ function dr(...t) {
|
|
|
2223
2202
|
} else {
|
|
2224
2203
|
if (me())
|
|
2225
2204
|
return new Blob(t);
|
|
2226
|
-
throw new
|
|
2205
|
+
throw new d(h.UNSUPPORTED_ENVIRONMENT, "This browser doesn't seem to support creating Blobs");
|
|
2227
2206
|
}
|
|
2228
2207
|
}
|
|
2229
2208
|
function fr(t, e, n) {
|
|
@@ -2266,7 +2245,7 @@ function pr(t) {
|
|
|
2266
2245
|
* See the License for the specific language governing permissions and
|
|
2267
2246
|
* limitations under the License.
|
|
2268
2247
|
*/
|
|
2269
|
-
const
|
|
2248
|
+
const R = {
|
|
2270
2249
|
/**
|
|
2271
2250
|
* Indicates the string should be interpreted "raw", that is, as normal text.
|
|
2272
2251
|
* The string will be interpreted as UTF-16, then uploaded as a UTF-8 byte
|
|
@@ -2307,13 +2286,13 @@ class se {
|
|
|
2307
2286
|
}
|
|
2308
2287
|
function gr(t, e) {
|
|
2309
2288
|
switch (t) {
|
|
2310
|
-
case
|
|
2289
|
+
case R.RAW:
|
|
2311
2290
|
return new se(qe(e));
|
|
2312
|
-
case
|
|
2313
|
-
case
|
|
2291
|
+
case R.BASE64:
|
|
2292
|
+
case R.BASE64URL:
|
|
2314
2293
|
return new se(Ge(t, e));
|
|
2315
|
-
case
|
|
2316
|
-
return new se(
|
|
2294
|
+
case R.DATA_URL:
|
|
2295
|
+
return new se(_r(e), br(e));
|
|
2317
2296
|
}
|
|
2318
2297
|
throw pe();
|
|
2319
2298
|
}
|
|
@@ -2342,19 +2321,19 @@ function mr(t) {
|
|
|
2342
2321
|
try {
|
|
2343
2322
|
e = decodeURIComponent(t);
|
|
2344
2323
|
} catch {
|
|
2345
|
-
throw M(
|
|
2324
|
+
throw M(R.DATA_URL, "Malformed data URL.");
|
|
2346
2325
|
}
|
|
2347
2326
|
return qe(e);
|
|
2348
2327
|
}
|
|
2349
2328
|
function Ge(t, e) {
|
|
2350
2329
|
switch (t) {
|
|
2351
|
-
case
|
|
2330
|
+
case R.BASE64: {
|
|
2352
2331
|
const s = e.indexOf("-") !== -1, o = e.indexOf("_") !== -1;
|
|
2353
2332
|
if (s || o)
|
|
2354
2333
|
throw M(t, "Invalid character '" + (s ? "-" : "_") + "' found: is it base64url encoded?");
|
|
2355
2334
|
break;
|
|
2356
2335
|
}
|
|
2357
|
-
case
|
|
2336
|
+
case R.BASE64URL: {
|
|
2358
2337
|
const s = e.indexOf("+") !== -1, o = e.indexOf("/") !== -1;
|
|
2359
2338
|
if (s || o)
|
|
2360
2339
|
throw M(t, "Invalid character '" + (s ? "+" : "/") + "' found: is it base64 encoded?");
|
|
@@ -2378,16 +2357,16 @@ class Ke {
|
|
|
2378
2357
|
this.base64 = !1, this.contentType = null;
|
|
2379
2358
|
const n = e.match(/^data:([^,]+)?,/);
|
|
2380
2359
|
if (n === null)
|
|
2381
|
-
throw M(
|
|
2360
|
+
throw M(R.DATA_URL, "Must be formatted 'data:[<mediatype>][;base64],<data>");
|
|
2382
2361
|
const r = n[1] || null;
|
|
2383
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);
|
|
2384
2363
|
}
|
|
2385
2364
|
}
|
|
2386
|
-
function
|
|
2365
|
+
function _r(t) {
|
|
2387
2366
|
const e = new Ke(t);
|
|
2388
|
-
return e.base64 ? Ge(
|
|
2367
|
+
return e.base64 ? Ge(R.BASE64, e.rest) : mr(e.rest);
|
|
2389
2368
|
}
|
|
2390
|
-
function
|
|
2369
|
+
function br(t) {
|
|
2391
2370
|
return new Ke(t).contentType;
|
|
2392
2371
|
}
|
|
2393
2372
|
function yr(t, e) {
|
|
@@ -2412,7 +2391,7 @@ function yr(t, e) {
|
|
|
2412
2391
|
class T {
|
|
2413
2392
|
constructor(e, n) {
|
|
2414
2393
|
let r = 0, s = "";
|
|
2415
|
-
|
|
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;
|
|
2416
2395
|
}
|
|
2417
2396
|
size() {
|
|
2418
2397
|
return this.size_;
|
|
@@ -2421,7 +2400,7 @@ class T {
|
|
|
2421
2400
|
return this.type_;
|
|
2422
2401
|
}
|
|
2423
2402
|
slice(e, n) {
|
|
2424
|
-
if (
|
|
2403
|
+
if (Ce(this.data_)) {
|
|
2425
2404
|
const r = this.data_, s = fr(r, e, n);
|
|
2426
2405
|
return s === null ? null : new T(s);
|
|
2427
2406
|
} else {
|
|
@@ -2434,7 +2413,7 @@ class T {
|
|
|
2434
2413
|
const n = e.map((r) => r instanceof T ? r.data_ : r);
|
|
2435
2414
|
return new T(dr.apply(null, n));
|
|
2436
2415
|
} else {
|
|
2437
|
-
const n = e.map((i) => ge(i) ? gr(
|
|
2416
|
+
const n = e.map((i) => ge(i) ? gr(R.RAW, i).data : i.data_);
|
|
2438
2417
|
let r = 0;
|
|
2439
2418
|
n.forEach((i) => {
|
|
2440
2419
|
r += i.byteLength;
|
|
@@ -2442,8 +2421,8 @@ class T {
|
|
|
2442
2421
|
const s = new Uint8Array(r);
|
|
2443
2422
|
let o = 0;
|
|
2444
2423
|
return n.forEach((i) => {
|
|
2445
|
-
for (let
|
|
2446
|
-
s[o++] = i[
|
|
2424
|
+
for (let a = 0; a < i.length; a++)
|
|
2425
|
+
s[o++] = i[a];
|
|
2447
2426
|
}), new T(s, !0);
|
|
2448
2427
|
}
|
|
2449
2428
|
}
|
|
@@ -2492,13 +2471,13 @@ function Xe(t) {
|
|
|
2492
2471
|
* See the License for the specific language governing permissions and
|
|
2493
2472
|
* limitations under the License.
|
|
2494
2473
|
*/
|
|
2495
|
-
function
|
|
2474
|
+
function Er(t) {
|
|
2496
2475
|
if (t.length === 0)
|
|
2497
2476
|
return null;
|
|
2498
2477
|
const e = t.lastIndexOf("/");
|
|
2499
2478
|
return e === -1 ? "" : t.slice(0, e);
|
|
2500
2479
|
}
|
|
2501
|
-
function
|
|
2480
|
+
function wr(t, e) {
|
|
2502
2481
|
const n = e.split("/").filter((r) => r.length > 0).join("/");
|
|
2503
2482
|
return t.length === 0 ? n : t + "/" + n;
|
|
2504
2483
|
}
|
|
@@ -2525,39 +2504,39 @@ function Je(t) {
|
|
|
2525
2504
|
function Ir(t, e) {
|
|
2526
2505
|
return e;
|
|
2527
2506
|
}
|
|
2528
|
-
class
|
|
2507
|
+
class _ {
|
|
2529
2508
|
constructor(e, n, r, s) {
|
|
2530
2509
|
this.server = e, this.local = n || e, this.writable = !!r, this.xform = s || Ir;
|
|
2531
2510
|
}
|
|
2532
2511
|
}
|
|
2533
2512
|
let W = null;
|
|
2534
|
-
function
|
|
2513
|
+
function Rr(t) {
|
|
2535
2514
|
return !ge(t) || t.length < 2 ? t : Je(t);
|
|
2536
2515
|
}
|
|
2537
2516
|
function Ye() {
|
|
2538
2517
|
if (W)
|
|
2539
2518
|
return W;
|
|
2540
2519
|
const t = [];
|
|
2541
|
-
t.push(new
|
|
2520
|
+
t.push(new _("bucket")), t.push(new _("generation")), t.push(new _("metageneration")), t.push(new _("name", "fullPath", !0));
|
|
2542
2521
|
function e(o, i) {
|
|
2543
|
-
return
|
|
2522
|
+
return Rr(i);
|
|
2544
2523
|
}
|
|
2545
|
-
const n = new
|
|
2524
|
+
const n = new _("name");
|
|
2546
2525
|
n.xform = e, t.push(n);
|
|
2547
2526
|
function r(o, i) {
|
|
2548
2527
|
return i !== void 0 ? Number(i) : i;
|
|
2549
2528
|
}
|
|
2550
|
-
const s = new
|
|
2551
|
-
return s.xform = r, t.push(s), t.push(new
|
|
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;
|
|
2552
2531
|
}
|
|
2553
2532
|
function Tr(t, e) {
|
|
2554
2533
|
function n() {
|
|
2555
|
-
const r = t.bucket, s = t.fullPath, o = new
|
|
2534
|
+
const r = t.bucket, s = t.fullPath, o = new E(r, s);
|
|
2556
2535
|
return e._makeStorageReference(o);
|
|
2557
2536
|
}
|
|
2558
2537
|
Object.defineProperty(t, "ref", { get: n });
|
|
2559
2538
|
}
|
|
2560
|
-
function
|
|
2539
|
+
function Ar(t, e, n) {
|
|
2561
2540
|
const r = {};
|
|
2562
2541
|
r.type = "file";
|
|
2563
2542
|
const s = n.length;
|
|
@@ -2569,9 +2548,9 @@ function Rr(t, e, n) {
|
|
|
2569
2548
|
}
|
|
2570
2549
|
function Ze(t, e, n) {
|
|
2571
2550
|
const r = Xe(e);
|
|
2572
|
-
return r === null ? null :
|
|
2551
|
+
return r === null ? null : Ar(t, r, n);
|
|
2573
2552
|
}
|
|
2574
|
-
function
|
|
2553
|
+
function vr(t, e, n, r) {
|
|
2575
2554
|
const s = Xe(e);
|
|
2576
2555
|
if (s === null || !ge(s.downloadTokens))
|
|
2577
2556
|
return null;
|
|
@@ -2579,12 +2558,12 @@ function Ar(t, e, n, r) {
|
|
|
2579
2558
|
if (o.length === 0)
|
|
2580
2559
|
return null;
|
|
2581
2560
|
const i = encodeURIComponent;
|
|
2582
|
-
return o.split(",").map((
|
|
2583
|
-
const
|
|
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({
|
|
2584
2563
|
alt: "media",
|
|
2585
|
-
token:
|
|
2564
|
+
token: l
|
|
2586
2565
|
});
|
|
2587
|
-
return m +
|
|
2566
|
+
return m + w;
|
|
2588
2567
|
})[0];
|
|
2589
2568
|
}
|
|
2590
2569
|
function Dr(t, e) {
|
|
@@ -2620,28 +2599,28 @@ function Qe(t) {
|
|
|
2620
2599
|
if (!t)
|
|
2621
2600
|
throw pe();
|
|
2622
2601
|
}
|
|
2623
|
-
function
|
|
2602
|
+
function Cr(t, e) {
|
|
2624
2603
|
function n(r, s) {
|
|
2625
2604
|
const o = Ze(t, s, e);
|
|
2626
2605
|
return Qe(o !== null), o;
|
|
2627
2606
|
}
|
|
2628
2607
|
return n;
|
|
2629
2608
|
}
|
|
2630
|
-
function
|
|
2609
|
+
function Or(t, e) {
|
|
2631
2610
|
function n(r, s) {
|
|
2632
2611
|
const o = Ze(t, s, e);
|
|
2633
|
-
return Qe(o !== null),
|
|
2612
|
+
return Qe(o !== null), vr(o, s, t.host, t._protocol);
|
|
2634
2613
|
}
|
|
2635
2614
|
return n;
|
|
2636
2615
|
}
|
|
2637
2616
|
function et(t) {
|
|
2638
2617
|
function e(n, r) {
|
|
2639
2618
|
let s;
|
|
2640
|
-
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 =
|
|
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;
|
|
2641
2620
|
}
|
|
2642
2621
|
return e;
|
|
2643
2622
|
}
|
|
2644
|
-
function
|
|
2623
|
+
function _e(t) {
|
|
2645
2624
|
const e = et(t);
|
|
2646
2625
|
function n(r, s) {
|
|
2647
2626
|
let o = e(r, s);
|
|
@@ -2650,23 +2629,23 @@ function be(t) {
|
|
|
2650
2629
|
return n;
|
|
2651
2630
|
}
|
|
2652
2631
|
function Sr(t, e, n) {
|
|
2653
|
-
const r = e.fullServerUrl(), s = j(r, t.host, t._protocol) + "?alt=media", o = "GET", i = t.maxOperationRetryTime,
|
|
2654
|
-
return
|
|
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 = [
|
|
2655
2634
|
200,
|
|
2656
2635
|
206
|
|
2657
2636
|
/* Partial Content */
|
|
2658
|
-
]),
|
|
2637
|
+
]), a;
|
|
2659
2638
|
}
|
|
2660
|
-
function
|
|
2661
|
-
const r = e.fullServerUrl(), s = j(r, t.host, t._protocol), o = "GET", i = t.maxOperationRetryTime,
|
|
2662
|
-
return
|
|
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;
|
|
2663
2642
|
}
|
|
2664
|
-
function
|
|
2643
|
+
function kr(t, e) {
|
|
2665
2644
|
const n = e.fullServerUrl(), r = j(n, t.host, t._protocol), s = "DELETE", o = t.maxOperationRetryTime;
|
|
2666
|
-
function i(
|
|
2645
|
+
function i(c, l) {
|
|
2667
2646
|
}
|
|
2668
|
-
const
|
|
2669
|
-
return
|
|
2647
|
+
const a = new X(r, s, i, o);
|
|
2648
|
+
return a.successCodes = [200, 204], a.errorHandler = _e(e), a;
|
|
2670
2649
|
}
|
|
2671
2650
|
function Br(t, e) {
|
|
2672
2651
|
return t && t.contentType || e && e.type() || "application/octet-stream";
|
|
@@ -2675,39 +2654,39 @@ function xr(t, e, n) {
|
|
|
2675
2654
|
const r = Object.assign({}, n);
|
|
2676
2655
|
return r.fullPath = t.path, r.size = e.size(), r.contentType || (r.contentType = Br(null, e)), r;
|
|
2677
2656
|
}
|
|
2678
|
-
function
|
|
2657
|
+
function Ur(t, e, n, r, s) {
|
|
2679
2658
|
const o = e.bucketOnlyServerUrl(), i = {
|
|
2680
2659
|
"X-Goog-Upload-Protocol": "multipart"
|
|
2681
2660
|
};
|
|
2682
|
-
function
|
|
2661
|
+
function a() {
|
|
2683
2662
|
let I = "";
|
|
2684
2663
|
for (let y = 0; y < 2; y++)
|
|
2685
2664
|
I = I + Math.random().toString().slice(2);
|
|
2686
2665
|
return I;
|
|
2687
2666
|
}
|
|
2688
|
-
const
|
|
2689
|
-
i["Content-Type"] = "multipart/related; boundary=" +
|
|
2690
|
-
const
|
|
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
|
|
2691
2670
|
Content-Type: application/json; charset=utf-8\r
|
|
2692
2671
|
\r
|
|
2693
|
-
` +
|
|
2694
|
-
--` +
|
|
2695
|
-
Content-Type: ` +
|
|
2672
|
+
` + g + `\r
|
|
2673
|
+
--` + c + `\r
|
|
2674
|
+
Content-Type: ` + l.contentType + `\r
|
|
2696
2675
|
\r
|
|
2697
|
-
`,
|
|
2698
|
-
--` +
|
|
2676
|
+
`, p = `\r
|
|
2677
|
+
--` + c + "--", m = T.getBlob(f, r, p);
|
|
2699
2678
|
if (m === null)
|
|
2700
2679
|
throw Xn();
|
|
2701
|
-
const
|
|
2702
|
-
return D.urlParams =
|
|
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;
|
|
2703
2682
|
}
|
|
2704
2683
|
class tt {
|
|
2705
2684
|
constructor() {
|
|
2706
|
-
this.sent_ = !1, this.xhr_ = new XMLHttpRequest(), this.initXhr(), this.errorCode_ =
|
|
2685
|
+
this.sent_ = !1, this.xhr_ = new XMLHttpRequest(), this.initXhr(), this.errorCode_ = O.NO_ERROR, this.sendPromise_ = new Promise((e) => {
|
|
2707
2686
|
this.xhr_.addEventListener("abort", () => {
|
|
2708
|
-
this.errorCode_ =
|
|
2687
|
+
this.errorCode_ = O.ABORT, e();
|
|
2709
2688
|
}), this.xhr_.addEventListener("error", () => {
|
|
2710
|
-
this.errorCode_ =
|
|
2689
|
+
this.errorCode_ = O.NETWORK_ERROR, e();
|
|
2711
2690
|
}), this.xhr_.addEventListener("load", () => {
|
|
2712
2691
|
e();
|
|
2713
2692
|
});
|
|
@@ -2715,7 +2694,7 @@ class tt {
|
|
|
2715
2694
|
}
|
|
2716
2695
|
send(e, n, r, s) {
|
|
2717
2696
|
if (this.sent_)
|
|
2718
|
-
throw
|
|
2697
|
+
throw P("cannot .send() more than once");
|
|
2719
2698
|
if (this.sent_ = !0, this.xhr_.open(n, e, !0), s !== void 0)
|
|
2720
2699
|
for (const o in s)
|
|
2721
2700
|
s.hasOwnProperty(o) && this.xhr_.setRequestHeader(o, s[o].toString());
|
|
@@ -2723,12 +2702,12 @@ class tt {
|
|
|
2723
2702
|
}
|
|
2724
2703
|
getErrorCode() {
|
|
2725
2704
|
if (!this.sent_)
|
|
2726
|
-
throw
|
|
2705
|
+
throw P("cannot .getErrorCode() before sending");
|
|
2727
2706
|
return this.errorCode_;
|
|
2728
2707
|
}
|
|
2729
2708
|
getStatus() {
|
|
2730
2709
|
if (!this.sent_)
|
|
2731
|
-
throw
|
|
2710
|
+
throw P("cannot .getStatus() before sending");
|
|
2732
2711
|
try {
|
|
2733
2712
|
return this.xhr_.status;
|
|
2734
2713
|
} catch {
|
|
@@ -2737,12 +2716,12 @@ class tt {
|
|
|
2737
2716
|
}
|
|
2738
2717
|
getResponse() {
|
|
2739
2718
|
if (!this.sent_)
|
|
2740
|
-
throw
|
|
2719
|
+
throw P("cannot .getResponse() before sending");
|
|
2741
2720
|
return this.xhr_.response;
|
|
2742
2721
|
}
|
|
2743
2722
|
getErrorText() {
|
|
2744
2723
|
if (!this.sent_)
|
|
2745
|
-
throw
|
|
2724
|
+
throw P("cannot .getErrorText() before sending");
|
|
2746
2725
|
return this.xhr_.statusText;
|
|
2747
2726
|
}
|
|
2748
2727
|
/** Aborts the request. */
|
|
@@ -2759,13 +2738,13 @@ class tt {
|
|
|
2759
2738
|
this.xhr_.upload != null && this.xhr_.upload.removeEventListener("progress", e);
|
|
2760
2739
|
}
|
|
2761
2740
|
}
|
|
2762
|
-
class
|
|
2741
|
+
class Pr extends tt {
|
|
2763
2742
|
initXhr() {
|
|
2764
2743
|
this.xhr_.responseType = "text";
|
|
2765
2744
|
}
|
|
2766
2745
|
}
|
|
2767
|
-
function
|
|
2768
|
-
return new
|
|
2746
|
+
function be() {
|
|
2747
|
+
return new Pr();
|
|
2769
2748
|
}
|
|
2770
2749
|
class Lr extends tt {
|
|
2771
2750
|
initXhr() {
|
|
@@ -2791,9 +2770,9 @@ function Mr() {
|
|
|
2791
2770
|
* See the License for the specific language governing permissions and
|
|
2792
2771
|
* limitations under the License.
|
|
2793
2772
|
*/
|
|
2794
|
-
class
|
|
2773
|
+
class N {
|
|
2795
2774
|
constructor(e, n) {
|
|
2796
|
-
this._service = e, n instanceof
|
|
2775
|
+
this._service = e, n instanceof E ? this._location = n : this._location = E.makeFromUrl(n, e.host);
|
|
2797
2776
|
}
|
|
2798
2777
|
/**
|
|
2799
2778
|
* Returns the URL for the bucket and path this object references,
|
|
@@ -2804,13 +2783,13 @@ class k {
|
|
|
2804
2783
|
return "gs://" + this._location.bucket + "/" + this._location.path;
|
|
2805
2784
|
}
|
|
2806
2785
|
_newRef(e, n) {
|
|
2807
|
-
return new
|
|
2786
|
+
return new N(e, n);
|
|
2808
2787
|
}
|
|
2809
2788
|
/**
|
|
2810
2789
|
* A reference to the root of this object's bucket.
|
|
2811
2790
|
*/
|
|
2812
2791
|
get root() {
|
|
2813
|
-
const e = new
|
|
2792
|
+
const e = new E(this._location.bucket, "");
|
|
2814
2793
|
return this._newRef(this._service, e);
|
|
2815
2794
|
}
|
|
2816
2795
|
/**
|
|
@@ -2843,11 +2822,11 @@ class k {
|
|
|
2843
2822
|
* this reference is the root.
|
|
2844
2823
|
*/
|
|
2845
2824
|
get parent() {
|
|
2846
|
-
const e =
|
|
2825
|
+
const e = Er(this._location.path);
|
|
2847
2826
|
if (e === null)
|
|
2848
2827
|
return null;
|
|
2849
|
-
const n = new
|
|
2850
|
-
return new
|
|
2828
|
+
const n = new E(this._location.bucket, e);
|
|
2829
|
+
return new N(this._service, n);
|
|
2851
2830
|
}
|
|
2852
2831
|
/**
|
|
2853
2832
|
* Utility function to throw an error in methods that do not accept a root reference.
|
|
@@ -2865,18 +2844,18 @@ function $r(t, e) {
|
|
|
2865
2844
|
r.slice(0, e)
|
|
2866
2845
|
) : r);
|
|
2867
2846
|
}
|
|
2868
|
-
function
|
|
2847
|
+
function Fr(t, e, n) {
|
|
2869
2848
|
t._throwIfRoot("uploadBytes");
|
|
2870
|
-
const r =
|
|
2871
|
-
return t.storage.makeRequestWithTokens(r,
|
|
2849
|
+
const r = Ur(t.storage, t._location, Ye(), new T(e, !0), n);
|
|
2850
|
+
return t.storage.makeRequestWithTokens(r, be).then((s) => ({
|
|
2872
2851
|
metadata: s,
|
|
2873
2852
|
ref: t
|
|
2874
2853
|
}));
|
|
2875
2854
|
}
|
|
2876
|
-
function
|
|
2855
|
+
function Hr(t) {
|
|
2877
2856
|
t._throwIfRoot("getDownloadURL");
|
|
2878
|
-
const e =
|
|
2879
|
-
return t.storage.makeRequestWithTokens(e,
|
|
2857
|
+
const e = Nr(t.storage, t._location, Ye());
|
|
2858
|
+
return t.storage.makeRequestWithTokens(e, be).then((n) => {
|
|
2880
2859
|
if (n === null)
|
|
2881
2860
|
throw Jn();
|
|
2882
2861
|
return n;
|
|
@@ -2884,12 +2863,12 @@ function Fr(t) {
|
|
|
2884
2863
|
}
|
|
2885
2864
|
function jr(t) {
|
|
2886
2865
|
t._throwIfRoot("deleteObject");
|
|
2887
|
-
const e =
|
|
2888
|
-
return t.storage.makeRequestWithTokens(e,
|
|
2866
|
+
const e = kr(t.storage, t._location);
|
|
2867
|
+
return t.storage.makeRequestWithTokens(e, be);
|
|
2889
2868
|
}
|
|
2890
2869
|
function Vr(t, e) {
|
|
2891
|
-
const n =
|
|
2892
|
-
return new
|
|
2870
|
+
const n = wr(t._location.path, e), r = new E(t._location.bucket, n);
|
|
2871
|
+
return new N(t.storage, r);
|
|
2893
2872
|
}
|
|
2894
2873
|
/**
|
|
2895
2874
|
* @license
|
|
@@ -2911,14 +2890,14 @@ function zr(t) {
|
|
|
2911
2890
|
return /^[A-Za-z]+:\/\//.test(t);
|
|
2912
2891
|
}
|
|
2913
2892
|
function Wr(t, e) {
|
|
2914
|
-
return new
|
|
2893
|
+
return new N(t, e);
|
|
2915
2894
|
}
|
|
2916
2895
|
function nt(t, e) {
|
|
2917
2896
|
if (t instanceof ye) {
|
|
2918
2897
|
const n = t;
|
|
2919
2898
|
if (n._bucket == null)
|
|
2920
2899
|
throw Kn();
|
|
2921
|
-
const r = new
|
|
2900
|
+
const r = new N(n, n._bucket);
|
|
2922
2901
|
return e != null ? nt(r, e) : r;
|
|
2923
2902
|
} else
|
|
2924
2903
|
return e !== void 0 ? Vr(t, e) : t;
|
|
@@ -2927,22 +2906,22 @@ function qr(t, e) {
|
|
|
2927
2906
|
if (e && zr(e)) {
|
|
2928
2907
|
if (t instanceof ye)
|
|
2929
2908
|
return Wr(t, e);
|
|
2930
|
-
throw
|
|
2909
|
+
throw he("To use ref(service, url), the first argument must be a Storage instance.");
|
|
2931
2910
|
} else
|
|
2932
2911
|
return nt(t, e);
|
|
2933
2912
|
}
|
|
2934
2913
|
function Se(t, e) {
|
|
2935
2914
|
const n = e == null ? void 0 : e[Ve];
|
|
2936
|
-
return n == null ? null :
|
|
2915
|
+
return n == null ? null : E.makeFromBucketSpec(n, t);
|
|
2937
2916
|
}
|
|
2938
2917
|
function Gr(t, e, n, r = {}) {
|
|
2939
2918
|
t.host = `${e}:${n}`, t._protocol = "http";
|
|
2940
2919
|
const { mockUserToken: s } = r;
|
|
2941
|
-
s && (t._overrideAuthToken = typeof s == "string" ? s :
|
|
2920
|
+
s && (t._overrideAuthToken = typeof s == "string" ? s : _t(s, t.app.options.projectId));
|
|
2942
2921
|
}
|
|
2943
2922
|
class ye {
|
|
2944
2923
|
constructor(e, n, r, s, o) {
|
|
2945
|
-
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 =
|
|
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);
|
|
2946
2925
|
}
|
|
2947
2926
|
/**
|
|
2948
2927
|
* The host string for this service, in the form of `host` or
|
|
@@ -2952,7 +2931,7 @@ class ye {
|
|
|
2952
2931
|
return this._host;
|
|
2953
2932
|
}
|
|
2954
2933
|
set host(e) {
|
|
2955
|
-
this._host = e, this._url != null ? this._bucket =
|
|
2934
|
+
this._host = e, this._url != null ? this._bucket = E.makeFromBucketSpec(this._url, e) : this._bucket = Se(e, this.app.options);
|
|
2956
2935
|
}
|
|
2957
2936
|
/**
|
|
2958
2937
|
* The maximum time to retry uploads in milliseconds.
|
|
@@ -2961,7 +2940,7 @@ class ye {
|
|
|
2961
2940
|
return this._maxUploadRetryTime;
|
|
2962
2941
|
}
|
|
2963
2942
|
set maxUploadRetryTime(e) {
|
|
2964
|
-
|
|
2943
|
+
Oe(
|
|
2965
2944
|
"time",
|
|
2966
2945
|
/* minValue=*/
|
|
2967
2946
|
0,
|
|
@@ -2978,7 +2957,7 @@ class ye {
|
|
|
2978
2957
|
return this._maxOperationRetryTime;
|
|
2979
2958
|
}
|
|
2980
2959
|
set maxOperationRetryTime(e) {
|
|
2981
|
-
|
|
2960
|
+
Oe(
|
|
2982
2961
|
"time",
|
|
2983
2962
|
/* minValue=*/
|
|
2984
2963
|
0,
|
|
@@ -3013,7 +2992,7 @@ class ye {
|
|
|
3013
2992
|
* at the given Location.
|
|
3014
2993
|
*/
|
|
3015
2994
|
_makeStorageReference(e) {
|
|
3016
|
-
return new
|
|
2995
|
+
return new N(this, e);
|
|
3017
2996
|
}
|
|
3018
2997
|
/**
|
|
3019
2998
|
* @param requestInfo - HTTP RequestInfo object
|
|
@@ -3035,7 +3014,7 @@ class ye {
|
|
|
3035
3014
|
return this._makeRequest(e, n, r, s).getPromise();
|
|
3036
3015
|
}
|
|
3037
3016
|
}
|
|
3038
|
-
const
|
|
3017
|
+
const Ne = "@firebase/storage", ke = "0.11.2";
|
|
3039
3018
|
/**
|
|
3040
3019
|
* @license
|
|
3041
3020
|
* Copyright 2020 Google LLC
|
|
@@ -3053,20 +3032,20 @@ const ke = "@firebase/storage", Ne = "0.11.2";
|
|
|
3053
3032
|
* limitations under the License.
|
|
3054
3033
|
*/
|
|
3055
3034
|
const rt = "storage";
|
|
3056
|
-
function
|
|
3057
|
-
return t =
|
|
3035
|
+
function as(t, e, n) {
|
|
3036
|
+
return t = U(t), Fr(t, e, n);
|
|
3058
3037
|
}
|
|
3059
|
-
function
|
|
3060
|
-
return t =
|
|
3038
|
+
function cs(t) {
|
|
3039
|
+
return t = U(t), Hr(t);
|
|
3061
3040
|
}
|
|
3062
|
-
function
|
|
3063
|
-
return t =
|
|
3041
|
+
function ls(t) {
|
|
3042
|
+
return t = U(t), jr(t);
|
|
3064
3043
|
}
|
|
3065
|
-
function
|
|
3066
|
-
return t =
|
|
3044
|
+
function us(t, e) {
|
|
3045
|
+
return t = U(t), qr(t, e);
|
|
3067
3046
|
}
|
|
3068
|
-
function
|
|
3069
|
-
t =
|
|
3047
|
+
function hs(t = Dn(), e) {
|
|
3048
|
+
t = U(t);
|
|
3070
3049
|
const r = In(t, rt).getImmediate({
|
|
3071
3050
|
identifier: e
|
|
3072
3051
|
}), s = gt("storage");
|
|
@@ -3091,12 +3070,12 @@ function Kr(t, e, n, r = {}) {
|
|
|
3091
3070
|
* See the License for the specific language governing permissions and
|
|
3092
3071
|
* limitations under the License.
|
|
3093
3072
|
*/
|
|
3094
|
-
function
|
|
3095
|
-
return t =
|
|
3073
|
+
function ds(t, e) {
|
|
3074
|
+
return t = U(t), $r(t, e);
|
|
3096
3075
|
}
|
|
3097
3076
|
function Xr(t, { instanceIdentifier: e }) {
|
|
3098
3077
|
const n = t.getProvider("app").getImmediate(), r = t.getProvider("auth-internal"), s = t.getProvider("app-check-internal");
|
|
3099
|
-
return new ye(n, r, s, e,
|
|
3078
|
+
return new ye(n, r, s, e, An);
|
|
3100
3079
|
}
|
|
3101
3080
|
function Jr() {
|
|
3102
3081
|
G(new $(
|
|
@@ -3104,161 +3083,65 @@ function Jr() {
|
|
|
3104
3083
|
Xr,
|
|
3105
3084
|
"PUBLIC"
|
|
3106
3085
|
/* ComponentType.PUBLIC */
|
|
3107
|
-
).setMultipleInstances(!0)), L(
|
|
3086
|
+
).setMultipleInstances(!0)), L(Ne, ke, ""), L(Ne, ke, "esm2017");
|
|
3108
3087
|
}
|
|
3109
3088
|
Jr();
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
|
|
3114
|
-
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
3115
|
-
for (var s = 0, r = Object.getOwnPropertySymbols(t); s < r.length; s++)
|
|
3116
|
-
e.indexOf(r[s]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[s]) && (n[r[s]] = t[r[s]]);
|
|
3117
|
-
return n;
|
|
3089
|
+
const de = ot(null), fs = () => de.value;
|
|
3090
|
+
function ps(t) {
|
|
3091
|
+
de.value || (de.value = t);
|
|
3118
3092
|
}
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
});
|
|
3093
|
+
const gs = Object.freeze({
|
|
3094
|
+
jb: {
|
|
3095
|
+
lat: 1.492659,
|
|
3096
|
+
lng: 103.7413591
|
|
3124
3097
|
}
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
a(r.next(u));
|
|
3129
|
-
} catch (p) {
|
|
3130
|
-
i(p);
|
|
3131
|
-
}
|
|
3132
|
-
}
|
|
3133
|
-
function l(u) {
|
|
3134
|
-
try {
|
|
3135
|
-
a(r.throw(u));
|
|
3136
|
-
} catch (p) {
|
|
3137
|
-
i(p);
|
|
3138
|
-
}
|
|
3139
|
-
}
|
|
3140
|
-
function a(u) {
|
|
3141
|
-
u.done ? o(u.value) : s(u.value).then(c, l);
|
|
3142
|
-
}
|
|
3143
|
-
a((r = r.apply(t, e || [])).next());
|
|
3144
|
-
});
|
|
3098
|
+
});
|
|
3099
|
+
function ms(t) {
|
|
3100
|
+
return [t.lng, t.lat];
|
|
3145
3101
|
}
|
|
3146
|
-
function
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
return this;
|
|
3154
|
-
}), i;
|
|
3155
|
-
function c(a) {
|
|
3156
|
-
return function(u) {
|
|
3157
|
-
return l([a, u]);
|
|
3158
|
-
};
|
|
3159
|
-
}
|
|
3160
|
-
function l(a) {
|
|
3161
|
-
if (r)
|
|
3162
|
-
throw new TypeError("Generator is already executing.");
|
|
3163
|
-
for (; i && (i = 0, a[0] && (n = 0)), n; )
|
|
3164
|
-
try {
|
|
3165
|
-
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)
|
|
3166
|
-
return o;
|
|
3167
|
-
switch (s = 0, o && (a = [a[0] & 2, o.value]), a[0]) {
|
|
3168
|
-
case 0:
|
|
3169
|
-
case 1:
|
|
3170
|
-
o = a;
|
|
3171
|
-
break;
|
|
3172
|
-
case 4:
|
|
3173
|
-
return n.label++, { value: a[1], done: !1 };
|
|
3174
|
-
case 5:
|
|
3175
|
-
n.label++, s = a[1], a = [0];
|
|
3176
|
-
continue;
|
|
3177
|
-
case 7:
|
|
3178
|
-
a = n.ops.pop(), n.trys.pop();
|
|
3179
|
-
continue;
|
|
3180
|
-
default:
|
|
3181
|
-
if (o = n.trys, !(o = o.length > 0 && o[o.length - 1]) && (a[0] === 6 || a[0] === 2)) {
|
|
3182
|
-
n = 0;
|
|
3183
|
-
continue;
|
|
3184
|
-
}
|
|
3185
|
-
if (a[0] === 3 && (!o || a[1] > o[0] && a[1] < o[3])) {
|
|
3186
|
-
n.label = a[1];
|
|
3187
|
-
break;
|
|
3188
|
-
}
|
|
3189
|
-
if (a[0] === 6 && n.label < o[1]) {
|
|
3190
|
-
n.label = o[1], o = a;
|
|
3191
|
-
break;
|
|
3192
|
-
}
|
|
3193
|
-
if (o && n.label < o[2]) {
|
|
3194
|
-
n.label = o[2], n.ops.push(a);
|
|
3195
|
-
break;
|
|
3196
|
-
}
|
|
3197
|
-
o[2] && n.ops.pop(), n.trys.pop();
|
|
3198
|
-
continue;
|
|
3199
|
-
}
|
|
3200
|
-
a = e.call(t, n);
|
|
3201
|
-
} catch (u) {
|
|
3202
|
-
a = [6, u], s = 0;
|
|
3203
|
-
} finally {
|
|
3204
|
-
r = o = 0;
|
|
3205
|
-
}
|
|
3206
|
-
if (a[0] & 5)
|
|
3207
|
-
throw a[1];
|
|
3208
|
-
return { value: a[0] ? a[1] : void 0, done: !0 };
|
|
3209
|
-
}
|
|
3210
|
-
}
|
|
3211
|
-
function Es(t) {
|
|
3212
|
-
var e = typeof Symbol == "function" && Symbol.iterator, n = e && t[e], r = 0;
|
|
3213
|
-
if (n)
|
|
3214
|
-
return n.call(t);
|
|
3215
|
-
if (t && typeof t.length == "number")
|
|
3216
|
-
return {
|
|
3217
|
-
next: function() {
|
|
3218
|
-
return t && r >= t.length && (t = void 0), { value: t && t[r++], done: !t };
|
|
3219
|
-
}
|
|
3220
|
-
};
|
|
3221
|
-
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
3102
|
+
function _s(t) {
|
|
3103
|
+
if (t.length !== 2)
|
|
3104
|
+
throw Error("Invalid coordinate array");
|
|
3105
|
+
return {
|
|
3106
|
+
lat: t[1],
|
|
3107
|
+
lng: t[0]
|
|
3108
|
+
};
|
|
3222
3109
|
}
|
|
3223
3110
|
export {
|
|
3224
|
-
|
|
3225
|
-
|
|
3111
|
+
ls as A,
|
|
3112
|
+
gs as B,
|
|
3226
3113
|
$ as C,
|
|
3227
|
-
|
|
3114
|
+
_s as D,
|
|
3228
3115
|
Le as E,
|
|
3229
3116
|
x as F,
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
fs as J,
|
|
3234
|
-
ps 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
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
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
|
-
|
|
3127
|
+
Zr as g,
|
|
3245
3128
|
Dn as h,
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
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
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
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
|
};
|