@feedmepos/mf-mdm 1.7.1-beta.270 → 1.7.1-beta.271
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.
|
@@ -11211,8 +11211,8 @@ const ya = c.enum([
|
|
|
11211
11211
|
totalMemory: c.number().nullish(),
|
|
11212
11212
|
appMemory: c.number().nullish(),
|
|
11213
11213
|
updatedAt: c.date().nullish()
|
|
11214
|
-
}), Gh = c.object({
|
|
11215
|
-
status:
|
|
11214
|
+
}), Gh = c.enum(["latest", "outdated", "unknown"]), Yh = c.object({
|
|
11215
|
+
status: Gh.nullish(),
|
|
11216
11216
|
latestVersion: c.string().nullish(),
|
|
11217
11217
|
checkedAt: c.date().nullish()
|
|
11218
11218
|
});
|
|
@@ -11235,7 +11235,7 @@ c.object({
|
|
|
11235
11235
|
// check update history
|
|
11236
11236
|
versionHistory: c.record(c.string()).nullish(),
|
|
11237
11237
|
heartbeatInfo: Zh.nullish(),
|
|
11238
|
-
updateStatus:
|
|
11238
|
+
updateStatus: Yh.nullish(),
|
|
11239
11239
|
_rev: c.string().nullish(),
|
|
11240
11240
|
bindAt: c.date().nullish()
|
|
11241
11241
|
}).describe(N.ZodMeta.mongo().repo("Devices").build());
|
|
@@ -11294,7 +11294,7 @@ c.object({
|
|
|
11294
11294
|
})
|
|
11295
11295
|
)
|
|
11296
11296
|
});
|
|
11297
|
-
const
|
|
11297
|
+
const Hh = c.object({
|
|
11298
11298
|
apiToken: c.string(),
|
|
11299
11299
|
restaurantId: c.string(),
|
|
11300
11300
|
businessId: c.string()
|
|
@@ -11302,7 +11302,7 @@ const Yh = c.object({
|
|
|
11302
11302
|
c.object({
|
|
11303
11303
|
device: Ys,
|
|
11304
11304
|
application: Hs,
|
|
11305
|
-
license:
|
|
11305
|
+
license: Hh.nullish()
|
|
11306
11306
|
});
|
|
11307
11307
|
const du = c.object({
|
|
11308
11308
|
enable: c.boolean(),
|
|
@@ -11317,39 +11317,39 @@ const du = c.object({
|
|
|
11317
11317
|
connectTimeout: c.number().nullish(),
|
|
11318
11318
|
receiveTimeout: c.number().nullish(),
|
|
11319
11319
|
sendTimeout: c.number().nullish()
|
|
11320
|
-
}),
|
|
11320
|
+
}), $h = c.object({
|
|
11321
11321
|
url: c.string()
|
|
11322
11322
|
}), lu = c.object({
|
|
11323
11323
|
enable: c.boolean(),
|
|
11324
11324
|
url: c.string().nullish(),
|
|
11325
11325
|
connectionTimeout: c.number().nullish(),
|
|
11326
11326
|
idleTimeout: c.number().nullish()
|
|
11327
|
-
}), $h = c.object({
|
|
11328
|
-
apiToken: c.string()
|
|
11329
11327
|
}), Kh = c.object({
|
|
11328
|
+
apiToken: c.string()
|
|
11329
|
+
}), qh = c.object({
|
|
11330
11330
|
version: c.string(),
|
|
11331
11331
|
mandatory: c.boolean(),
|
|
11332
11332
|
date: c.string(),
|
|
11333
11333
|
description: c.string().nullish(),
|
|
11334
11334
|
downloadUrl: c.string(),
|
|
11335
11335
|
sha512: c.string()
|
|
11336
|
-
}),
|
|
11336
|
+
}), Wh = c.object({
|
|
11337
11337
|
url: c.string(),
|
|
11338
11338
|
keepOldHeartbeat: c.boolean().optional(),
|
|
11339
11339
|
displayAddDeviceButton: c.boolean().optional()
|
|
11340
|
-
}),
|
|
11340
|
+
}), Jh = c.object({
|
|
11341
11341
|
url: c.string(),
|
|
11342
11342
|
apiKey: c.string(),
|
|
11343
11343
|
enableAnalytics: c.boolean()
|
|
11344
11344
|
});
|
|
11345
11345
|
c.object({
|
|
11346
11346
|
logging: du.nullish(),
|
|
11347
|
-
meStore:
|
|
11347
|
+
meStore: $h.nullish(),
|
|
11348
11348
|
telemetry: lu.nullish(),
|
|
11349
|
-
credential:
|
|
11350
|
-
appRelease:
|
|
11351
|
-
mdm:
|
|
11352
|
-
featureFlag:
|
|
11349
|
+
credential: Kh.nullish(),
|
|
11350
|
+
appRelease: qh.nullish(),
|
|
11351
|
+
mdm: Wh.nullish(),
|
|
11352
|
+
featureFlag: Jh.nullish()
|
|
11353
11353
|
});
|
|
11354
11354
|
c.object({
|
|
11355
11355
|
_id: c.string().superRefine(N.isObjectId),
|
|
@@ -11359,7 +11359,7 @@ c.object({
|
|
|
11359
11359
|
createdAt: c.date().nullish(),
|
|
11360
11360
|
updatedAt: c.date().nullish()
|
|
11361
11361
|
}).describe(N.ZodMeta.mongo().repo("DeviceConfigurations").build());
|
|
11362
|
-
const uu = c.enum(["pending", "processing", "completed", "failed"]),
|
|
11362
|
+
const uu = c.enum(["pending", "processing", "completed", "failed"]), Xh = c.object({
|
|
11363
11363
|
requestId: c.string(),
|
|
11364
11364
|
machineId: c.string(),
|
|
11365
11365
|
userId: c.string(),
|
|
@@ -11371,7 +11371,7 @@ const uu = c.enum(["pending", "processing", "completed", "failed"]), Jh = c.obje
|
|
|
11371
11371
|
createdAt: c.date(),
|
|
11372
11372
|
expiresAt: c.date().nullish(),
|
|
11373
11373
|
completedAt: c.date().nullish()
|
|
11374
|
-
}),
|
|
11374
|
+
}), Qh = c.object({
|
|
11375
11375
|
requestId: c.string(),
|
|
11376
11376
|
userId: c.string(),
|
|
11377
11377
|
createdAt: c.date(),
|
|
@@ -11380,7 +11380,7 @@ const uu = c.enum(["pending", "processing", "completed", "failed"]), Jh = c.obje
|
|
|
11380
11380
|
});
|
|
11381
11381
|
c.object({
|
|
11382
11382
|
hasLogRequest: c.boolean(),
|
|
11383
|
-
pendingRequests: c.array(
|
|
11383
|
+
pendingRequests: c.array(Qh.nullish())
|
|
11384
11384
|
});
|
|
11385
11385
|
c.object({
|
|
11386
11386
|
machineId: c.string(),
|
|
@@ -11395,12 +11395,13 @@ c.object({
|
|
|
11395
11395
|
filePath: c.string().nullish()
|
|
11396
11396
|
});
|
|
11397
11397
|
c.object({
|
|
11398
|
-
requests: c.array(
|
|
11398
|
+
requests: c.array(Xh),
|
|
11399
11399
|
totalCount: c.number()
|
|
11400
11400
|
});
|
|
11401
|
-
const cu = c.enum(["windows", "android", "web"]);
|
|
11401
|
+
const cu = c.enum(["windows", "android", "web", "ios"]);
|
|
11402
11402
|
c.object({
|
|
11403
11403
|
appId: c.string(),
|
|
11404
|
+
bundleIds: c.array(c.string()).optional(),
|
|
11404
11405
|
github: c.string(),
|
|
11405
11406
|
tagPrefix: c.string(),
|
|
11406
11407
|
description: c.string().optional(),
|
|
@@ -11421,7 +11422,8 @@ c.object({
|
|
|
11421
11422
|
namespace: c.string().nullish(),
|
|
11422
11423
|
operatingSystem: c.string().nullish(),
|
|
11423
11424
|
deviceType: c.string().nullish(),
|
|
11424
|
-
databaseType: c.string().nullish()
|
|
11425
|
+
databaseType: c.string().nullish(),
|
|
11426
|
+
deviceIdentifier: c.string().nullish()
|
|
11425
11427
|
});
|
|
11426
11428
|
c.object({
|
|
11427
11429
|
required: c.boolean(),
|
|
@@ -11459,24 +11461,24 @@ function mu(e, n) {
|
|
|
11459
11461
|
return e.apply(n, arguments);
|
|
11460
11462
|
};
|
|
11461
11463
|
}
|
|
11462
|
-
const { toString:
|
|
11463
|
-
const t =
|
|
11464
|
+
const { toString: xh } = Object.prototype, { getPrototypeOf: $s } = Object, { iterator: ba, toStringTag: hu } = Symbol, za = ((e) => (n) => {
|
|
11465
|
+
const t = xh.call(n);
|
|
11464
11466
|
return e[t] || (e[t] = t.slice(8, -1).toLowerCase());
|
|
11465
11467
|
})(/* @__PURE__ */ Object.create(null)), gt = (e) => (e = e.toLowerCase(), (n) => za(n) === e), Fa = (e) => (n) => typeof n === e, { isArray: Ai } = Array, fi = Fa("undefined");
|
|
11466
11468
|
function Vr(e) {
|
|
11467
11469
|
return e !== null && !fi(e) && e.constructor !== null && !fi(e.constructor) && qe(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
11468
11470
|
}
|
|
11469
11471
|
const fu = gt("ArrayBuffer");
|
|
11470
|
-
function
|
|
11472
|
+
function ef(e) {
|
|
11471
11473
|
let n;
|
|
11472
11474
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? n = ArrayBuffer.isView(e) : n = e && e.buffer && fu(e.buffer), n;
|
|
11473
11475
|
}
|
|
11474
|
-
const
|
|
11476
|
+
const tf = Fa("string"), qe = Fa("function"), _u = Fa("number"), Zr = (e) => e !== null && typeof e == "object", nf = (e) => e === !0 || e === !1, uo = (e) => {
|
|
11475
11477
|
if (za(e) !== "object")
|
|
11476
11478
|
return !1;
|
|
11477
11479
|
const n = $s(e);
|
|
11478
11480
|
return (n === null || n === Object.prototype || Object.getPrototypeOf(n) === null) && !(hu in e) && !(ba in e);
|
|
11479
|
-
},
|
|
11481
|
+
}, rf = (e) => {
|
|
11480
11482
|
if (!Zr(e) || Vr(e))
|
|
11481
11483
|
return !1;
|
|
11482
11484
|
try {
|
|
@@ -11484,11 +11486,11 @@ const ef = Fa("string"), qe = Fa("function"), _u = Fa("number"), Zr = (e) => e !
|
|
|
11484
11486
|
} catch {
|
|
11485
11487
|
return !1;
|
|
11486
11488
|
}
|
|
11487
|
-
},
|
|
11489
|
+
}, of = gt("Date"), af = gt("File"), sf = gt("Blob"), df = gt("FileList"), lf = (e) => Zr(e) && qe(e.pipe), uf = (e) => {
|
|
11488
11490
|
let n;
|
|
11489
11491
|
return e && (typeof FormData == "function" && e instanceof FormData || qe(e.append) && ((n = za(e)) === "formdata" || // detect form-data instance
|
|
11490
11492
|
n === "object" && qe(e.toString) && e.toString() === "[object FormData]"));
|
|
11491
|
-
},
|
|
11493
|
+
}, cf = gt("URLSearchParams"), [mf, hf, ff, _f] = ["ReadableStream", "Request", "Response", "Headers"].map(gt), gf = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
11492
11494
|
function Gr(e, n, { allOwnKeys: t = !1 } = {}) {
|
|
11493
11495
|
if (e === null || typeof e > "u")
|
|
11494
11496
|
return;
|
|
@@ -11526,13 +11528,13 @@ function es() {
|
|
|
11526
11528
|
arguments[r] && Gr(arguments[r], i);
|
|
11527
11529
|
return t;
|
|
11528
11530
|
}
|
|
11529
|
-
const
|
|
11531
|
+
const yf = (e, n, t, { allOwnKeys: i } = {}) => (Gr(n, (r, o) => {
|
|
11530
11532
|
t && qe(r) ? e[o] = mu(r, t) : e[o] = r;
|
|
11531
|
-
}, { allOwnKeys: i }), e),
|
|
11533
|
+
}, { allOwnKeys: i }), e), bf = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), zf = (e, n, t, i) => {
|
|
11532
11534
|
e.prototype = Object.create(n.prototype, i), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
11533
11535
|
value: n.prototype
|
|
11534
11536
|
}), t && Object.assign(e.prototype, t);
|
|
11535
|
-
},
|
|
11537
|
+
}, Ff = (e, n, t, i) => {
|
|
11536
11538
|
let r, o, a;
|
|
11537
11539
|
const s = {};
|
|
11538
11540
|
if (n = n || {}, e == null)
|
|
@@ -11543,11 +11545,11 @@ const gf = (e, n, t, { allOwnKeys: i } = {}) => (Gr(n, (r, o) => {
|
|
|
11543
11545
|
e = t !== !1 && $s(e);
|
|
11544
11546
|
} while (e && (!t || t(e, n)) && e !== Object.prototype);
|
|
11545
11547
|
return n;
|
|
11546
|
-
},
|
|
11548
|
+
}, Ef = (e, n, t) => {
|
|
11547
11549
|
e = String(e), (t === void 0 || t > e.length) && (t = e.length), t -= n.length;
|
|
11548
11550
|
const i = e.indexOf(n, t);
|
|
11549
11551
|
return i !== -1 && i === t;
|
|
11550
|
-
},
|
|
11552
|
+
}, pf = (e) => {
|
|
11551
11553
|
if (!e)
|
|
11552
11554
|
return null;
|
|
11553
11555
|
if (Ai(e))
|
|
@@ -11559,31 +11561,31 @@ const gf = (e, n, t, { allOwnKeys: i } = {}) => (Gr(n, (r, o) => {
|
|
|
11559
11561
|
for (; n-- > 0; )
|
|
11560
11562
|
t[n] = e[n];
|
|
11561
11563
|
return t;
|
|
11562
|
-
},
|
|
11564
|
+
}, vf = ((e) => (n) => e && n instanceof e)(typeof Uint8Array < "u" && $s(Uint8Array)), If = (e, n) => {
|
|
11563
11565
|
const i = (e && e[ba]).call(e);
|
|
11564
11566
|
let r;
|
|
11565
11567
|
for (; (r = i.next()) && !r.done; ) {
|
|
11566
11568
|
const o = r.value;
|
|
11567
11569
|
n.call(e, o[0], o[1]);
|
|
11568
11570
|
}
|
|
11569
|
-
},
|
|
11571
|
+
}, Tf = (e, n) => {
|
|
11570
11572
|
let t;
|
|
11571
11573
|
const i = [];
|
|
11572
11574
|
for (; (t = e.exec(n)) !== null; )
|
|
11573
11575
|
i.push(t);
|
|
11574
11576
|
return i;
|
|
11575
|
-
},
|
|
11577
|
+
}, Sf = gt("HTMLFormElement"), Rf = (e) => e.toLowerCase().replace(
|
|
11576
11578
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
11577
11579
|
function(t, i, r) {
|
|
11578
11580
|
return i.toUpperCase() + r;
|
|
11579
11581
|
}
|
|
11580
|
-
), bd = (({ hasOwnProperty: e }) => (n, t) => e.call(n, t))(Object.prototype),
|
|
11582
|
+
), bd = (({ hasOwnProperty: e }) => (n, t) => e.call(n, t))(Object.prototype), Of = gt("RegExp"), bu = (e, n) => {
|
|
11581
11583
|
const t = Object.getOwnPropertyDescriptors(e), i = {};
|
|
11582
11584
|
Gr(t, (r, o) => {
|
|
11583
11585
|
let a;
|
|
11584
11586
|
(a = n(r, o, e)) !== !1 && (i[o] = a || r);
|
|
11585
11587
|
}), Object.defineProperties(e, i);
|
|
11586
|
-
},
|
|
11588
|
+
}, Cf = (e) => {
|
|
11587
11589
|
bu(e, (n, t) => {
|
|
11588
11590
|
if (qe(e) && ["arguments", "caller", "callee"].indexOf(t) !== -1)
|
|
11589
11591
|
return !1;
|
|
@@ -11598,19 +11600,19 @@ const gf = (e, n, t, { allOwnKeys: i } = {}) => (Gr(n, (r, o) => {
|
|
|
11598
11600
|
});
|
|
11599
11601
|
}
|
|
11600
11602
|
});
|
|
11601
|
-
},
|
|
11603
|
+
}, Pf = (e, n) => {
|
|
11602
11604
|
const t = {}, i = (r) => {
|
|
11603
11605
|
r.forEach((o) => {
|
|
11604
11606
|
t[o] = !0;
|
|
11605
11607
|
});
|
|
11606
11608
|
};
|
|
11607
11609
|
return Ai(e) ? i(e) : i(String(e).split(n)), t;
|
|
11608
|
-
},
|
|
11609
|
-
},
|
|
11610
|
-
function
|
|
11610
|
+
}, Af = () => {
|
|
11611
|
+
}, Mf = (e, n) => e != null && Number.isFinite(e = +e) ? e : n;
|
|
11612
|
+
function Nf(e) {
|
|
11611
11613
|
return !!(e && qe(e.append) && e[hu] === "FormData" && e[ba]);
|
|
11612
11614
|
}
|
|
11613
|
-
const
|
|
11615
|
+
const Df = (e) => {
|
|
11614
11616
|
const n = new Array(10), t = (i, r) => {
|
|
11615
11617
|
if (Zr(i)) {
|
|
11616
11618
|
if (n.indexOf(i) >= 0)
|
|
@@ -11629,72 +11631,72 @@ const Nf = (e) => {
|
|
|
11629
11631
|
return i;
|
|
11630
11632
|
};
|
|
11631
11633
|
return t(e, 0);
|
|
11632
|
-
},
|
|
11634
|
+
}, jf = gt("AsyncFunction"), Bf = (e) => e && (Zr(e) || qe(e)) && qe(e.then) && qe(e.catch), zu = ((e, n) => e ? setImmediate : n ? ((t, i) => (Mn.addEventListener("message", ({ source: r, data: o }) => {
|
|
11633
11635
|
r === Mn && o === t && i.length && i.shift()();
|
|
11634
11636
|
}, !1), (r) => {
|
|
11635
11637
|
i.push(r), Mn.postMessage(t, "*");
|
|
11636
11638
|
}))(`axios@${Math.random()}`, []) : (t) => setTimeout(t))(
|
|
11637
11639
|
typeof setImmediate == "function",
|
|
11638
11640
|
qe(Mn.postMessage)
|
|
11639
|
-
),
|
|
11641
|
+
), wf = typeof queueMicrotask < "u" ? queueMicrotask.bind(Mn) : typeof process < "u" && process.nextTick || zu, Uf = (e) => e != null && qe(e[ba]), I = {
|
|
11640
11642
|
isArray: Ai,
|
|
11641
11643
|
isArrayBuffer: fu,
|
|
11642
11644
|
isBuffer: Vr,
|
|
11643
|
-
isFormData:
|
|
11644
|
-
isArrayBufferView:
|
|
11645
|
-
isString:
|
|
11645
|
+
isFormData: uf,
|
|
11646
|
+
isArrayBufferView: ef,
|
|
11647
|
+
isString: tf,
|
|
11646
11648
|
isNumber: _u,
|
|
11647
|
-
isBoolean:
|
|
11649
|
+
isBoolean: nf,
|
|
11648
11650
|
isObject: Zr,
|
|
11649
11651
|
isPlainObject: uo,
|
|
11650
|
-
isEmptyObject:
|
|
11651
|
-
isReadableStream:
|
|
11652
|
-
isRequest:
|
|
11653
|
-
isResponse:
|
|
11654
|
-
isHeaders:
|
|
11652
|
+
isEmptyObject: rf,
|
|
11653
|
+
isReadableStream: mf,
|
|
11654
|
+
isRequest: hf,
|
|
11655
|
+
isResponse: ff,
|
|
11656
|
+
isHeaders: _f,
|
|
11655
11657
|
isUndefined: fi,
|
|
11656
|
-
isDate:
|
|
11657
|
-
isFile:
|
|
11658
|
-
isBlob:
|
|
11659
|
-
isRegExp:
|
|
11658
|
+
isDate: of,
|
|
11659
|
+
isFile: af,
|
|
11660
|
+
isBlob: sf,
|
|
11661
|
+
isRegExp: Of,
|
|
11660
11662
|
isFunction: qe,
|
|
11661
|
-
isStream:
|
|
11662
|
-
isURLSearchParams:
|
|
11663
|
-
isTypedArray:
|
|
11664
|
-
isFileList:
|
|
11663
|
+
isStream: lf,
|
|
11664
|
+
isURLSearchParams: cf,
|
|
11665
|
+
isTypedArray: vf,
|
|
11666
|
+
isFileList: df,
|
|
11665
11667
|
forEach: Gr,
|
|
11666
11668
|
merge: es,
|
|
11667
|
-
extend:
|
|
11668
|
-
trim:
|
|
11669
|
-
stripBOM:
|
|
11670
|
-
inherits:
|
|
11671
|
-
toFlatObject:
|
|
11669
|
+
extend: yf,
|
|
11670
|
+
trim: gf,
|
|
11671
|
+
stripBOM: bf,
|
|
11672
|
+
inherits: zf,
|
|
11673
|
+
toFlatObject: Ff,
|
|
11672
11674
|
kindOf: za,
|
|
11673
11675
|
kindOfTest: gt,
|
|
11674
|
-
endsWith:
|
|
11675
|
-
toArray:
|
|
11676
|
-
forEachEntry:
|
|
11677
|
-
matchAll:
|
|
11678
|
-
isHTMLForm:
|
|
11676
|
+
endsWith: Ef,
|
|
11677
|
+
toArray: pf,
|
|
11678
|
+
forEachEntry: If,
|
|
11679
|
+
matchAll: Tf,
|
|
11680
|
+
isHTMLForm: Sf,
|
|
11679
11681
|
hasOwnProperty: bd,
|
|
11680
11682
|
hasOwnProp: bd,
|
|
11681
11683
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
11682
11684
|
reduceDescriptors: bu,
|
|
11683
|
-
freezeMethods:
|
|
11684
|
-
toObjectSet:
|
|
11685
|
-
toCamelCase:
|
|
11686
|
-
noop:
|
|
11687
|
-
toFiniteNumber:
|
|
11685
|
+
freezeMethods: Cf,
|
|
11686
|
+
toObjectSet: Pf,
|
|
11687
|
+
toCamelCase: Rf,
|
|
11688
|
+
noop: Af,
|
|
11689
|
+
toFiniteNumber: Mf,
|
|
11688
11690
|
findKey: gu,
|
|
11689
11691
|
global: Mn,
|
|
11690
11692
|
isContextDefined: yu,
|
|
11691
|
-
isSpecCompliantForm:
|
|
11692
|
-
toJSONObject:
|
|
11693
|
-
isAsyncFn:
|
|
11694
|
-
isThenable:
|
|
11693
|
+
isSpecCompliantForm: Nf,
|
|
11694
|
+
toJSONObject: Df,
|
|
11695
|
+
isAsyncFn: jf,
|
|
11696
|
+
isThenable: Bf,
|
|
11695
11697
|
setImmediate: zu,
|
|
11696
|
-
asap:
|
|
11697
|
-
isIterable:
|
|
11698
|
+
asap: wf,
|
|
11699
|
+
isIterable: Uf
|
|
11698
11700
|
};
|
|
11699
11701
|
function q(e, n, t, i, r) {
|
|
11700
11702
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", n && (this.code = n), t && (this.config = t), i && (this.request = i), r && (this.response = r, this.status = r.status ? r.status : null);
|
|
@@ -11748,7 +11750,7 @@ q.from = (e, n, t, i, r, o) => {
|
|
|
11748
11750
|
const s = e && e.message ? e.message : "Error", m = n == null && e ? e.code : n;
|
|
11749
11751
|
return q.call(a, s, m, t, i, r), e && a.cause == null && Object.defineProperty(a, "cause", { value: e, configurable: !0 }), a.name = e && e.name || "Error", o && Object.assign(a, o), a;
|
|
11750
11752
|
};
|
|
11751
|
-
const
|
|
11753
|
+
const kf = null;
|
|
11752
11754
|
function ts(e) {
|
|
11753
11755
|
return I.isPlainObject(e) || I.isArray(e);
|
|
11754
11756
|
}
|
|
@@ -11760,10 +11762,10 @@ function zd(e, n, t) {
|
|
|
11760
11762
|
return r = pu(r), !t && o ? "[" + r + "]" : r;
|
|
11761
11763
|
}).join(t ? "." : "") : n;
|
|
11762
11764
|
}
|
|
11763
|
-
function
|
|
11765
|
+
function Lf(e) {
|
|
11764
11766
|
return I.isArray(e) && !e.some(ts);
|
|
11765
11767
|
}
|
|
11766
|
-
const
|
|
11768
|
+
const Vf = I.toFlatObject(I, {}, null, function(n) {
|
|
11767
11769
|
return /^is[A-Z]/.test(n);
|
|
11768
11770
|
});
|
|
11769
11771
|
function Ea(e, n, t) {
|
|
@@ -11795,7 +11797,7 @@ function Ea(e, n, t) {
|
|
|
11795
11797
|
if (T && !P && typeof T == "object") {
|
|
11796
11798
|
if (I.endsWith(A, "{}"))
|
|
11797
11799
|
A = i ? A : A.slice(0, -2), T = JSON.stringify(T);
|
|
11798
|
-
else if (I.isArray(T) &&
|
|
11800
|
+
else if (I.isArray(T) && Lf(T) || (I.isFileList(T) || I.endsWith(A, "[]")) && (k = I.toArray(T)))
|
|
11799
11801
|
return A = pu(A), k.forEach(function(te, le) {
|
|
11800
11802
|
!(I.isUndefined(te) || te === null) && n.append(
|
|
11801
11803
|
// eslint-disable-next-line no-nested-ternary
|
|
@@ -11806,7 +11808,7 @@ function Ea(e, n, t) {
|
|
|
11806
11808
|
}
|
|
11807
11809
|
return ts(T) ? !0 : (n.append(zd(P, A, o), u(T)), !1);
|
|
11808
11810
|
}
|
|
11809
|
-
const F = [], R = Object.assign(
|
|
11811
|
+
const F = [], R = Object.assign(Vf, {
|
|
11810
11812
|
defaultVisitor: _,
|
|
11811
11813
|
convertValue: u,
|
|
11812
11814
|
isVisitable: ts
|
|
@@ -11859,13 +11861,13 @@ vu.toString = function(n) {
|
|
|
11859
11861
|
return t(r[0]) + "=" + t(r[1]);
|
|
11860
11862
|
}, "").join("&");
|
|
11861
11863
|
};
|
|
11862
|
-
function
|
|
11864
|
+
function Zf(e) {
|
|
11863
11865
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
11864
11866
|
}
|
|
11865
11867
|
function Iu(e, n, t) {
|
|
11866
11868
|
if (!n)
|
|
11867
11869
|
return e;
|
|
11868
|
-
const i = t && t.encode ||
|
|
11870
|
+
const i = t && t.encode || Zf;
|
|
11869
11871
|
I.isFunction(t) && (t = {
|
|
11870
11872
|
serialize: t
|
|
11871
11873
|
});
|
|
@@ -11877,7 +11879,7 @@ function Iu(e, n, t) {
|
|
|
11877
11879
|
}
|
|
11878
11880
|
return e;
|
|
11879
11881
|
}
|
|
11880
|
-
class
|
|
11882
|
+
class Gf {
|
|
11881
11883
|
constructor() {
|
|
11882
11884
|
this.handlers = [];
|
|
11883
11885
|
}
|
|
@@ -11931,31 +11933,31 @@ class Zf {
|
|
|
11931
11933
|
});
|
|
11932
11934
|
}
|
|
11933
11935
|
}
|
|
11934
|
-
const Ed =
|
|
11936
|
+
const Ed = Gf, Tu = {
|
|
11935
11937
|
silentJSONParsing: !0,
|
|
11936
11938
|
forcedJSONParsing: !0,
|
|
11937
11939
|
clarifyTimeoutError: !1
|
|
11938
|
-
},
|
|
11940
|
+
}, Yf = typeof URLSearchParams < "u" ? URLSearchParams : Ks, Hf = typeof FormData < "u" ? FormData : null, $f = typeof Blob < "u" ? Blob : null, Kf = {
|
|
11939
11941
|
isBrowser: !0,
|
|
11940
11942
|
classes: {
|
|
11941
|
-
URLSearchParams:
|
|
11942
|
-
FormData:
|
|
11943
|
-
Blob:
|
|
11943
|
+
URLSearchParams: Yf,
|
|
11944
|
+
FormData: Hf,
|
|
11945
|
+
Blob: $f
|
|
11944
11946
|
},
|
|
11945
11947
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
11946
|
-
}, qs = typeof window < "u" && typeof document < "u", ns = typeof navigator == "object" && navigator || void 0,
|
|
11947
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(),
|
|
11948
|
+
}, qs = typeof window < "u" && typeof document < "u", ns = typeof navigator == "object" && navigator || void 0, qf = qs && (!ns || ["ReactNative", "NativeScript", "NS"].indexOf(ns.product) < 0), Wf = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
11949
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), Jf = qs && window.location.href || "http://localhost", Xf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11948
11950
|
__proto__: null,
|
|
11949
11951
|
hasBrowserEnv: qs,
|
|
11950
|
-
hasStandardBrowserEnv:
|
|
11951
|
-
hasStandardBrowserWebWorkerEnv:
|
|
11952
|
+
hasStandardBrowserEnv: qf,
|
|
11953
|
+
hasStandardBrowserWebWorkerEnv: Wf,
|
|
11952
11954
|
navigator: ns,
|
|
11953
|
-
origin:
|
|
11955
|
+
origin: Jf
|
|
11954
11956
|
}, Symbol.toStringTag, { value: "Module" })), we = {
|
|
11955
|
-
...
|
|
11956
|
-
|
|
11957
|
+
...Xf,
|
|
11958
|
+
...Kf
|
|
11957
11959
|
};
|
|
11958
|
-
function
|
|
11960
|
+
function Qf(e, n) {
|
|
11959
11961
|
return Ea(e, new we.classes.URLSearchParams(), {
|
|
11960
11962
|
visitor: function(t, i, r, o) {
|
|
11961
11963
|
return we.isNode && I.isBuffer(t) ? (this.append(i, t.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
@@ -11963,10 +11965,10 @@ function Xf(e, n) {
|
|
|
11963
11965
|
...n
|
|
11964
11966
|
});
|
|
11965
11967
|
}
|
|
11966
|
-
function
|
|
11968
|
+
function xf(e) {
|
|
11967
11969
|
return I.matchAll(/\w+|\[(\w*)]/g, e).map((n) => n[0] === "[]" ? "" : n[1] || n[0]);
|
|
11968
11970
|
}
|
|
11969
|
-
function
|
|
11971
|
+
function e_(e) {
|
|
11970
11972
|
const n = {}, t = Object.keys(e);
|
|
11971
11973
|
let i;
|
|
11972
11974
|
const r = t.length;
|
|
@@ -11981,17 +11983,17 @@ function Su(e) {
|
|
|
11981
11983
|
if (a === "__proto__")
|
|
11982
11984
|
return !0;
|
|
11983
11985
|
const s = Number.isFinite(+a), m = o >= t.length;
|
|
11984
|
-
return a = !a && I.isArray(r) ? r.length : a, m ? (I.hasOwnProp(r, a) ? r[a] = [r[a], i] : r[a] = i, !s) : ((!r[a] || !I.isObject(r[a])) && (r[a] = []), n(t, i, r[a], o) && I.isArray(r[a]) && (r[a] =
|
|
11986
|
+
return a = !a && I.isArray(r) ? r.length : a, m ? (I.hasOwnProp(r, a) ? r[a] = [r[a], i] : r[a] = i, !s) : ((!r[a] || !I.isObject(r[a])) && (r[a] = []), n(t, i, r[a], o) && I.isArray(r[a]) && (r[a] = e_(r[a])), !s);
|
|
11985
11987
|
}
|
|
11986
11988
|
if (I.isFormData(e) && I.isFunction(e.entries)) {
|
|
11987
11989
|
const t = {};
|
|
11988
11990
|
return I.forEachEntry(e, (i, r) => {
|
|
11989
|
-
n(
|
|
11991
|
+
n(xf(i), r, t, 0);
|
|
11990
11992
|
}), t;
|
|
11991
11993
|
}
|
|
11992
11994
|
return null;
|
|
11993
11995
|
}
|
|
11994
|
-
function
|
|
11996
|
+
function t_(e, n, t) {
|
|
11995
11997
|
if (I.isString(e))
|
|
11996
11998
|
try {
|
|
11997
11999
|
return (n || JSON.parse)(e), I.trim(e);
|
|
@@ -12017,7 +12019,7 @@ const Ws = {
|
|
|
12017
12019
|
let s;
|
|
12018
12020
|
if (o) {
|
|
12019
12021
|
if (i.indexOf("application/x-www-form-urlencoded") > -1)
|
|
12020
|
-
return
|
|
12022
|
+
return Qf(n, this.formSerializer).toString();
|
|
12021
12023
|
if ((s = I.isFileList(n)) || i.indexOf("multipart/form-data") > -1) {
|
|
12022
12024
|
const m = this.env && this.env.FormData;
|
|
12023
12025
|
return Ea(
|
|
@@ -12027,7 +12029,7 @@ const Ws = {
|
|
|
12027
12029
|
);
|
|
12028
12030
|
}
|
|
12029
12031
|
}
|
|
12030
|
-
return o || r ? (t.setContentType("application/json", !1),
|
|
12032
|
+
return o || r ? (t.setContentType("application/json", !1), t_(n)) : n;
|
|
12031
12033
|
}],
|
|
12032
12034
|
transformResponse: [function(n) {
|
|
12033
12035
|
const t = this.transitional || Ws.transitional, i = t && t.forcedJSONParsing, r = this.responseType === "json";
|
|
@@ -12070,7 +12072,7 @@ const Ws = {
|
|
|
12070
12072
|
I.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
12071
12073
|
Ws.headers[e] = {};
|
|
12072
12074
|
});
|
|
12073
|
-
const Js = Ws,
|
|
12075
|
+
const Js = Ws, n_ = I.toObjectSet([
|
|
12074
12076
|
"age",
|
|
12075
12077
|
"authorization",
|
|
12076
12078
|
"content-length",
|
|
@@ -12088,12 +12090,12 @@ const Js = Ws, t_ = I.toObjectSet([
|
|
|
12088
12090
|
"referer",
|
|
12089
12091
|
"retry-after",
|
|
12090
12092
|
"user-agent"
|
|
12091
|
-
]),
|
|
12093
|
+
]), i_ = (e) => {
|
|
12092
12094
|
const n = {};
|
|
12093
12095
|
let t, i, r;
|
|
12094
12096
|
return e && e.split(`
|
|
12095
12097
|
`).forEach(function(a) {
|
|
12096
|
-
r = a.indexOf(":"), t = a.substring(0, r).trim().toLowerCase(), i = a.substring(r + 1).trim(), !(!t || n[t] &&
|
|
12098
|
+
r = a.indexOf(":"), t = a.substring(0, r).trim().toLowerCase(), i = a.substring(r + 1).trim(), !(!t || n[t] && n_[t]) && (t === "set-cookie" ? n[t] ? n[t].push(i) : n[t] = [i] : n[t] = n[t] ? n[t] + ", " + i : i);
|
|
12097
12099
|
}), n;
|
|
12098
12100
|
}, pd = Symbol("internals");
|
|
12099
12101
|
function Yi(e) {
|
|
@@ -12102,14 +12104,14 @@ function Yi(e) {
|
|
|
12102
12104
|
function co(e) {
|
|
12103
12105
|
return e === !1 || e == null ? e : I.isArray(e) ? e.map(co) : String(e);
|
|
12104
12106
|
}
|
|
12105
|
-
function
|
|
12107
|
+
function r_(e) {
|
|
12106
12108
|
const n = /* @__PURE__ */ Object.create(null), t = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
12107
12109
|
let i;
|
|
12108
12110
|
for (; i = t.exec(e); )
|
|
12109
12111
|
n[i[1]] = i[2];
|
|
12110
12112
|
return n;
|
|
12111
12113
|
}
|
|
12112
|
-
const
|
|
12114
|
+
const o_ = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
12113
12115
|
function ka(e, n, t, i, r) {
|
|
12114
12116
|
if (I.isFunction(i))
|
|
12115
12117
|
return i.call(this, n, t);
|
|
@@ -12120,10 +12122,10 @@ function ka(e, n, t, i, r) {
|
|
|
12120
12122
|
return i.test(n);
|
|
12121
12123
|
}
|
|
12122
12124
|
}
|
|
12123
|
-
function
|
|
12125
|
+
function a_(e) {
|
|
12124
12126
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (n, t, i) => t.toUpperCase() + i);
|
|
12125
12127
|
}
|
|
12126
|
-
function
|
|
12128
|
+
function s_(e, n) {
|
|
12127
12129
|
const t = I.toCamelCase(" " + n);
|
|
12128
12130
|
["get", "set", "has"].forEach((i) => {
|
|
12129
12131
|
Object.defineProperty(e, i + t, {
|
|
@@ -12150,8 +12152,8 @@ let pa = class {
|
|
|
12150
12152
|
const a = (s, m) => I.forEach(s, (u, _) => o(u, _, m));
|
|
12151
12153
|
if (I.isPlainObject(n) || n instanceof this.constructor)
|
|
12152
12154
|
a(n, t);
|
|
12153
|
-
else if (I.isString(n) && (n = n.trim()) && !
|
|
12154
|
-
a(
|
|
12155
|
+
else if (I.isString(n) && (n = n.trim()) && !o_(n))
|
|
12156
|
+
a(i_(n), t);
|
|
12155
12157
|
else if (I.isObject(n) && I.isIterable(n)) {
|
|
12156
12158
|
let s = {}, m, u;
|
|
12157
12159
|
for (const _ of n) {
|
|
@@ -12172,7 +12174,7 @@ let pa = class {
|
|
|
12172
12174
|
if (!t)
|
|
12173
12175
|
return r;
|
|
12174
12176
|
if (t === !0)
|
|
12175
|
-
return
|
|
12177
|
+
return r_(r);
|
|
12176
12178
|
if (I.isFunction(t))
|
|
12177
12179
|
return t.call(this, r, i);
|
|
12178
12180
|
if (I.isRegExp(t))
|
|
@@ -12216,7 +12218,7 @@ let pa = class {
|
|
|
12216
12218
|
t[a] = co(r), delete t[o];
|
|
12217
12219
|
return;
|
|
12218
12220
|
}
|
|
12219
|
-
const s = n ?
|
|
12221
|
+
const s = n ? a_(o) : String(o).trim();
|
|
12220
12222
|
s !== o && delete t[o], t[s] = co(r), i[s] = !0;
|
|
12221
12223
|
}), this;
|
|
12222
12224
|
}
|
|
@@ -12255,7 +12257,7 @@ let pa = class {
|
|
|
12255
12257
|
}).accessors, r = this.prototype;
|
|
12256
12258
|
function o(a) {
|
|
12257
12259
|
const s = Yi(a);
|
|
12258
|
-
i[s] || (
|
|
12260
|
+
i[s] || (s_(r, a), i[s] = !0);
|
|
12259
12261
|
}
|
|
12260
12262
|
return I.isArray(n) ? n.forEach(o) : o(n), this;
|
|
12261
12263
|
}
|
|
@@ -12298,11 +12300,11 @@ function Ou(e, n, t) {
|
|
|
12298
12300
|
t
|
|
12299
12301
|
));
|
|
12300
12302
|
}
|
|
12301
|
-
function
|
|
12303
|
+
function d_(e) {
|
|
12302
12304
|
const n = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
12303
12305
|
return n && n[1] || "";
|
|
12304
12306
|
}
|
|
12305
|
-
function
|
|
12307
|
+
function l_(e, n) {
|
|
12306
12308
|
e = e || 10;
|
|
12307
12309
|
const t = new Array(e), i = new Array(e);
|
|
12308
12310
|
let r = 0, o = 0, a;
|
|
@@ -12318,7 +12320,7 @@ function d_(e, n) {
|
|
|
12318
12320
|
return j ? Math.round(R * 1e3 / j) : void 0;
|
|
12319
12321
|
};
|
|
12320
12322
|
}
|
|
12321
|
-
function
|
|
12323
|
+
function u_(e, n) {
|
|
12322
12324
|
let t = 0, i = 1e3 / n, r, o;
|
|
12323
12325
|
const a = (u, _ = Date.now()) => {
|
|
12324
12326
|
t = _, r = null, o && (clearTimeout(o), o = null), e(...u);
|
|
@@ -12332,8 +12334,8 @@ function l_(e, n) {
|
|
|
12332
12334
|
}
|
|
12333
12335
|
const Oo = (e, n, t = 3) => {
|
|
12334
12336
|
let i = 0;
|
|
12335
|
-
const r =
|
|
12336
|
-
return
|
|
12337
|
+
const r = l_(50, 250);
|
|
12338
|
+
return u_((o) => {
|
|
12337
12339
|
const a = o.loaded, s = o.lengthComputable ? o.total : void 0, m = a - i, u = r(m), _ = a <= s;
|
|
12338
12340
|
i = a;
|
|
12339
12341
|
const F = {
|
|
@@ -12356,10 +12358,10 @@ const Oo = (e, n, t = 3) => {
|
|
|
12356
12358
|
total: e,
|
|
12357
12359
|
loaded: i
|
|
12358
12360
|
}), n[1]];
|
|
12359
|
-
}, Id = (e) => (...n) => I.asap(() => e(...n)),
|
|
12361
|
+
}, Id = (e) => (...n) => I.asap(() => e(...n)), c_ = we.hasStandardBrowserEnv ? ((e, n) => (t) => (t = new URL(t, we.origin), e.protocol === t.protocol && e.host === t.host && (n || e.port === t.port)))(
|
|
12360
12362
|
new URL(we.origin),
|
|
12361
12363
|
we.navigator && /(msie|trident)/i.test(we.navigator.userAgent)
|
|
12362
|
-
) : () => !0,
|
|
12364
|
+
) : () => !0, m_ = we.hasStandardBrowserEnv ? (
|
|
12363
12365
|
// Standard browser envs support document.cookie
|
|
12364
12366
|
{
|
|
12365
12367
|
write(e, n, t, i, r, o) {
|
|
@@ -12386,15 +12388,15 @@ const Oo = (e, n, t = 3) => {
|
|
|
12386
12388
|
}
|
|
12387
12389
|
}
|
|
12388
12390
|
);
|
|
12389
|
-
function
|
|
12391
|
+
function h_(e) {
|
|
12390
12392
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
12391
12393
|
}
|
|
12392
|
-
function
|
|
12394
|
+
function f_(e, n) {
|
|
12393
12395
|
return n ? e.replace(/\/?\/$/, "") + "/" + n.replace(/^\/+/, "") : e;
|
|
12394
12396
|
}
|
|
12395
12397
|
function Cu(e, n, t) {
|
|
12396
|
-
let i = !
|
|
12397
|
-
return e && (i || t == !1) ?
|
|
12398
|
+
let i = !h_(n);
|
|
12399
|
+
return e && (i || t == !1) ? f_(e, n) : n;
|
|
12398
12400
|
}
|
|
12399
12401
|
const Td = (e) => e instanceof mt ? { ...e } : e;
|
|
12400
12402
|
function Hn(e, n) {
|
|
@@ -12479,12 +12481,12 @@ const Pu = (e) => {
|
|
|
12479
12481
|
});
|
|
12480
12482
|
}
|
|
12481
12483
|
}
|
|
12482
|
-
if (we.hasStandardBrowserEnv && (i && I.isFunction(i) && (i = i(n)), i || i !== !1 &&
|
|
12483
|
-
const m = r && o &&
|
|
12484
|
+
if (we.hasStandardBrowserEnv && (i && I.isFunction(i) && (i = i(n)), i || i !== !1 && c_(n.url))) {
|
|
12485
|
+
const m = r && o && m_.read(o);
|
|
12484
12486
|
m && a.set(r, m);
|
|
12485
12487
|
}
|
|
12486
12488
|
return n;
|
|
12487
|
-
},
|
|
12489
|
+
}, __ = typeof XMLHttpRequest < "u", g_ = __ && function(e) {
|
|
12488
12490
|
return new Promise(function(t, i) {
|
|
12489
12491
|
const r = Pu(e);
|
|
12490
12492
|
let o = r.data;
|
|
@@ -12535,14 +12537,14 @@ const Pu = (e) => {
|
|
|
12535
12537
|
}), I.isUndefined(r.withCredentials) || (P.withCredentials = !!r.withCredentials), s && s !== "json" && (P.responseType = r.responseType), u && ([R, T] = Oo(u, !0), P.addEventListener("progress", R)), m && P.upload && ([F, j] = Oo(m), P.upload.addEventListener("progress", F), P.upload.addEventListener("loadend", j)), (r.cancelToken || r.signal) && (_ = (te) => {
|
|
12536
12538
|
P && (i(!te || te.type ? new Mi(null, e, P) : te), P.abort(), P = null);
|
|
12537
12539
|
}, r.cancelToken && r.cancelToken.subscribe(_), r.signal && (r.signal.aborted ? _() : r.signal.addEventListener("abort", _)));
|
|
12538
|
-
const $ =
|
|
12540
|
+
const $ = d_(r.url);
|
|
12539
12541
|
if ($ && we.protocols.indexOf($) === -1) {
|
|
12540
12542
|
i(new q("Unsupported protocol " + $ + ":", q.ERR_BAD_REQUEST, e));
|
|
12541
12543
|
return;
|
|
12542
12544
|
}
|
|
12543
12545
|
P.send(o || null);
|
|
12544
12546
|
});
|
|
12545
|
-
},
|
|
12547
|
+
}, y_ = (e, n) => {
|
|
12546
12548
|
const { length: t } = e = e ? e.filter(Boolean) : [];
|
|
12547
12549
|
if (n || t) {
|
|
12548
12550
|
let i = new AbortController(), r;
|
|
@@ -12565,7 +12567,7 @@ const Pu = (e) => {
|
|
|
12565
12567
|
const { signal: m } = i;
|
|
12566
12568
|
return m.unsubscribe = () => I.asap(s), m;
|
|
12567
12569
|
}
|
|
12568
|
-
},
|
|
12570
|
+
}, b_ = y_, z_ = function* (e, n) {
|
|
12569
12571
|
let t = e.byteLength;
|
|
12570
12572
|
if (!n || t < n) {
|
|
12571
12573
|
yield e;
|
|
@@ -12574,10 +12576,10 @@ const Pu = (e) => {
|
|
|
12574
12576
|
let i = 0, r;
|
|
12575
12577
|
for (; i < t; )
|
|
12576
12578
|
r = i + n, yield e.slice(i, r), i = r;
|
|
12577
|
-
},
|
|
12578
|
-
for await (const t of
|
|
12579
|
-
yield*
|
|
12580
|
-
},
|
|
12579
|
+
}, F_ = async function* (e, n) {
|
|
12580
|
+
for await (const t of E_(e))
|
|
12581
|
+
yield* z_(t, n);
|
|
12582
|
+
}, E_ = async function* (e) {
|
|
12581
12583
|
if (e[Symbol.asyncIterator]) {
|
|
12582
12584
|
yield* e;
|
|
12583
12585
|
return;
|
|
@@ -12594,7 +12596,7 @@ const Pu = (e) => {
|
|
|
12594
12596
|
await n.cancel();
|
|
12595
12597
|
}
|
|
12596
12598
|
}, Sd = (e, n, t, i) => {
|
|
12597
|
-
const r =
|
|
12599
|
+
const r = F_(e, n);
|
|
12598
12600
|
let o = 0, a, s = (m) => {
|
|
12599
12601
|
a || (a = !0, i && i(m));
|
|
12600
12602
|
};
|
|
@@ -12622,7 +12624,7 @@ const Pu = (e) => {
|
|
|
12622
12624
|
}, {
|
|
12623
12625
|
highWaterMark: 2
|
|
12624
12626
|
});
|
|
12625
|
-
}, Rd = 64 * 1024, { isFunction: oo } = I,
|
|
12627
|
+
}, Rd = 64 * 1024, { isFunction: oo } = I, p_ = (({ Request: e, Response: n }) => ({
|
|
12626
12628
|
Request: e,
|
|
12627
12629
|
Response: n
|
|
12628
12630
|
}))(I.global), {
|
|
@@ -12634,10 +12636,10 @@ const Pu = (e) => {
|
|
|
12634
12636
|
} catch {
|
|
12635
12637
|
return !1;
|
|
12636
12638
|
}
|
|
12637
|
-
},
|
|
12639
|
+
}, v_ = (e) => {
|
|
12638
12640
|
e = I.merge.call({
|
|
12639
12641
|
skipUndefined: !0
|
|
12640
|
-
},
|
|
12642
|
+
}, p_, e);
|
|
12641
12643
|
const { fetch: n, Request: t, Response: i } = e, r = n ? oo(n) : typeof fetch == "function", o = oo(t), a = oo(i);
|
|
12642
12644
|
if (!r)
|
|
12643
12645
|
return !1;
|
|
@@ -12696,7 +12698,7 @@ const Pu = (e) => {
|
|
|
12696
12698
|
fetchOptions: bt
|
|
12697
12699
|
} = Pu(T), at = n || fetch;
|
|
12698
12700
|
Ee = Ee ? (Ee + "").toLowerCase() : "text";
|
|
12699
|
-
let oe =
|
|
12701
|
+
let oe = b_([$, te && te.toAbortSignal()], le), Ye = null;
|
|
12700
12702
|
const Ae = oe && oe.unsubscribe && (() => {
|
|
12701
12703
|
oe.unsubscribe();
|
|
12702
12704
|
});
|
|
@@ -12766,22 +12768,22 @@ const Pu = (e) => {
|
|
|
12766
12768
|
) : q.from(Te, Te && Te.code, T, Ye);
|
|
12767
12769
|
}
|
|
12768
12770
|
};
|
|
12769
|
-
},
|
|
12771
|
+
}, I_ = /* @__PURE__ */ new Map(), Au = (e) => {
|
|
12770
12772
|
let n = e ? e.env : {};
|
|
12771
12773
|
const { fetch: t, Request: i, Response: r } = n, o = [
|
|
12772
12774
|
i,
|
|
12773
12775
|
r,
|
|
12774
12776
|
t
|
|
12775
12777
|
];
|
|
12776
|
-
let a = o.length, s = a, m, u, _ =
|
|
12778
|
+
let a = o.length, s = a, m, u, _ = I_;
|
|
12777
12779
|
for (; s--; )
|
|
12778
|
-
m = o[s], u = _.get(m), u === void 0 && _.set(m, u = s ? /* @__PURE__ */ new Map() :
|
|
12780
|
+
m = o[s], u = _.get(m), u === void 0 && _.set(m, u = s ? /* @__PURE__ */ new Map() : v_(n)), _ = u;
|
|
12779
12781
|
return u;
|
|
12780
12782
|
};
|
|
12781
12783
|
Au();
|
|
12782
12784
|
const is = {
|
|
12783
|
-
http:
|
|
12784
|
-
xhr:
|
|
12785
|
+
http: kf,
|
|
12786
|
+
xhr: g_,
|
|
12785
12787
|
fetch: {
|
|
12786
12788
|
get: Au
|
|
12787
12789
|
}
|
|
@@ -12795,7 +12797,7 @@ I.forEach(is, (e, n) => {
|
|
|
12795
12797
|
Object.defineProperty(e, "adapterName", { value: n });
|
|
12796
12798
|
}
|
|
12797
12799
|
});
|
|
12798
|
-
const Ad = (e) => `- ${e}`,
|
|
12800
|
+
const Ad = (e) => `- ${e}`, T_ = (e) => I.isFunction(e) || e === null || e === !1, Mu = {
|
|
12799
12801
|
getAdapter: (e, n) => {
|
|
12800
12802
|
e = I.isArray(e) ? e : [e];
|
|
12801
12803
|
const { length: t } = e;
|
|
@@ -12804,7 +12806,7 @@ const Ad = (e) => `- ${e}`, I_ = (e) => I.isFunction(e) || e === null || e === !
|
|
|
12804
12806
|
for (let a = 0; a < t; a++) {
|
|
12805
12807
|
i = e[a];
|
|
12806
12808
|
let s;
|
|
12807
|
-
if (r = i, !
|
|
12809
|
+
if (r = i, !T_(i) && (r = is[(s = String(i)).toLowerCase()], r === void 0))
|
|
12808
12810
|
throw new q(`Unknown adapter '${s}'`);
|
|
12809
12811
|
if (r && (I.isFunction(r) || (r = r.get(n))))
|
|
12810
12812
|
break;
|
|
@@ -12876,7 +12878,7 @@ va.transitional = function(n, t, i) {
|
|
|
12876
12878
|
va.spelling = function(n) {
|
|
12877
12879
|
return (t, i) => (console.warn(`${i} is likely a misspelling of ${n}`), !0);
|
|
12878
12880
|
};
|
|
12879
|
-
function
|
|
12881
|
+
function S_(e, n, t) {
|
|
12880
12882
|
if (typeof e != "object")
|
|
12881
12883
|
throw new q("options must be an object", q.ERR_BAD_OPTION_VALUE);
|
|
12882
12884
|
const i = Object.keys(e);
|
|
@@ -12894,7 +12896,7 @@ function T_(e, n, t) {
|
|
|
12894
12896
|
}
|
|
12895
12897
|
}
|
|
12896
12898
|
const mo = {
|
|
12897
|
-
assertOptions:
|
|
12899
|
+
assertOptions: S_,
|
|
12898
12900
|
validators: va
|
|
12899
12901
|
}, It = mo.validators;
|
|
12900
12902
|
let Co = class {
|
|
@@ -13022,7 +13024,7 @@ I.forEach(["post", "put", "patch"], function(n) {
|
|
|
13022
13024
|
Co.prototype[n] = t(), Co.prototype[n + "Form"] = t(!0);
|
|
13023
13025
|
});
|
|
13024
13026
|
const ho = Co;
|
|
13025
|
-
let
|
|
13027
|
+
let R_ = class Du {
|
|
13026
13028
|
constructor(n) {
|
|
13027
13029
|
if (typeof n != "function")
|
|
13028
13030
|
throw new TypeError("executor must be a function.");
|
|
@@ -13096,13 +13098,13 @@ let S_ = class Du {
|
|
|
13096
13098
|
};
|
|
13097
13099
|
}
|
|
13098
13100
|
};
|
|
13099
|
-
const
|
|
13100
|
-
function
|
|
13101
|
+
const O_ = R_;
|
|
13102
|
+
function C_(e) {
|
|
13101
13103
|
return function(t) {
|
|
13102
13104
|
return e.apply(null, t);
|
|
13103
13105
|
};
|
|
13104
13106
|
}
|
|
13105
|
-
function
|
|
13107
|
+
function P_(e) {
|
|
13106
13108
|
return I.isObject(e) && e.isAxiosError === !0;
|
|
13107
13109
|
}
|
|
13108
13110
|
const rs = {
|
|
@@ -13173,7 +13175,7 @@ const rs = {
|
|
|
13173
13175
|
Object.entries(rs).forEach(([e, n]) => {
|
|
13174
13176
|
rs[n] = e;
|
|
13175
13177
|
});
|
|
13176
|
-
const
|
|
13178
|
+
const A_ = rs;
|
|
13177
13179
|
function ju(e) {
|
|
13178
13180
|
const n = new ho(e), t = mu(ho.prototype.request, n);
|
|
13179
13181
|
return I.extend(t, ho.prototype, n, { allOwnKeys: !0 }), I.extend(t, n, null, { allOwnKeys: !0 }), t.create = function(r) {
|
|
@@ -13183,7 +13185,7 @@ function ju(e) {
|
|
|
13183
13185
|
const pe = ju(Js);
|
|
13184
13186
|
pe.Axios = ho;
|
|
13185
13187
|
pe.CanceledError = Mi;
|
|
13186
|
-
pe.CancelToken =
|
|
13188
|
+
pe.CancelToken = O_;
|
|
13187
13189
|
pe.isCancel = Ru;
|
|
13188
13190
|
pe.VERSION = Nu;
|
|
13189
13191
|
pe.toFormData = Ea;
|
|
@@ -13192,36 +13194,36 @@ pe.Cancel = pe.CanceledError;
|
|
|
13192
13194
|
pe.all = function(n) {
|
|
13193
13195
|
return Promise.all(n);
|
|
13194
13196
|
};
|
|
13195
|
-
pe.spread =
|
|
13196
|
-
pe.isAxiosError =
|
|
13197
|
+
pe.spread = C_;
|
|
13198
|
+
pe.isAxiosError = P_;
|
|
13197
13199
|
pe.mergeConfig = Hn;
|
|
13198
13200
|
pe.AxiosHeaders = mt;
|
|
13199
13201
|
pe.formToJSON = (e) => Su(I.isHTMLForm(e) ? new FormData(e) : e);
|
|
13200
13202
|
pe.getAdapter = Mu.getAdapter;
|
|
13201
|
-
pe.HttpStatusCode =
|
|
13203
|
+
pe.HttpStatusCode = A_;
|
|
13202
13204
|
pe.default = pe;
|
|
13203
13205
|
const Bu = pe, {
|
|
13204
|
-
Axios:
|
|
13205
|
-
AxiosError:
|
|
13206
|
-
CanceledError:
|
|
13207
|
-
isCancel:
|
|
13208
|
-
CancelToken:
|
|
13209
|
-
VERSION:
|
|
13210
|
-
all:
|
|
13211
|
-
Cancel:
|
|
13212
|
-
isAxiosError:
|
|
13213
|
-
spread:
|
|
13214
|
-
toFormData:
|
|
13215
|
-
AxiosHeaders:
|
|
13216
|
-
HttpStatusCode:
|
|
13217
|
-
formToJSON:
|
|
13218
|
-
getAdapter:
|
|
13219
|
-
mergeConfig:
|
|
13206
|
+
Axios: by,
|
|
13207
|
+
AxiosError: M_,
|
|
13208
|
+
CanceledError: zy,
|
|
13209
|
+
isCancel: Fy,
|
|
13210
|
+
CancelToken: Ey,
|
|
13211
|
+
VERSION: py,
|
|
13212
|
+
all: vy,
|
|
13213
|
+
Cancel: Iy,
|
|
13214
|
+
isAxiosError: Ty,
|
|
13215
|
+
spread: Sy,
|
|
13216
|
+
toFormData: Ry,
|
|
13217
|
+
AxiosHeaders: Oy,
|
|
13218
|
+
HttpStatusCode: Cy,
|
|
13219
|
+
formToJSON: Py,
|
|
13220
|
+
getAdapter: Ay,
|
|
13221
|
+
mergeConfig: My
|
|
13220
13222
|
} = Bu;
|
|
13221
13223
|
function Fe(e) {
|
|
13222
13224
|
return e.data;
|
|
13223
13225
|
}
|
|
13224
|
-
const Ce = () => $i("mdm"),
|
|
13226
|
+
const Ce = () => $i("mdm"), N_ = () => {
|
|
13225
13227
|
var o;
|
|
13226
13228
|
const { namespace: e } = Ji(), t = `https://license.feedme${e.value === "dev" ? "dev" : ""}.cc/api/`, i = ((o = Ji().sessionUser.value) == null ? void 0 : o.token) ?? $n.token;
|
|
13227
13229
|
if (!i)
|
|
@@ -13236,14 +13238,14 @@ const Ce = () => $i("mdm"), M_ = () => {
|
|
|
13236
13238
|
(a) => a,
|
|
13237
13239
|
async (a) => {
|
|
13238
13240
|
var s;
|
|
13239
|
-
if (a instanceof
|
|
13241
|
+
if (a instanceof M_) {
|
|
13240
13242
|
const m = (s = a.response) == null ? void 0 : s.data, u = (m == null ? void 0 : m.message) || (m == null ? void 0 : m.error) || `${a.message}` || `${a}`;
|
|
13241
13243
|
return Promise.reject(u);
|
|
13242
13244
|
}
|
|
13243
13245
|
return Promise.reject(a);
|
|
13244
13246
|
}
|
|
13245
13247
|
), r;
|
|
13246
|
-
},
|
|
13248
|
+
}, D_ = {
|
|
13247
13249
|
async generateDeviceOtp(e) {
|
|
13248
13250
|
return Fe(await $i("").post(`/restaurants/${e}/otp`));
|
|
13249
13251
|
},
|
|
@@ -13326,9 +13328,9 @@ const Ce = () => $i("mdm"), M_ = () => {
|
|
|
13326
13328
|
return Fe(await Ce().delete(`/logs/${e}`));
|
|
13327
13329
|
},
|
|
13328
13330
|
async checkBusinessPlan(e) {
|
|
13329
|
-
return Fe(await
|
|
13331
|
+
return Fe(await N_().get(`restaurant-features/${e}`));
|
|
13330
13332
|
}
|
|
13331
|
-
},
|
|
13333
|
+
}, Ny = Wu("mf-mdm-device", () => {
|
|
13332
13334
|
const e = Xi(!1), n = Xi();
|
|
13333
13335
|
function t() {
|
|
13334
13336
|
var r;
|
|
@@ -13338,7 +13340,7 @@ const Ce = () => $i("mdm"), M_ = () => {
|
|
|
13338
13340
|
var s, m;
|
|
13339
13341
|
if (!((s = n.value) != null && s._id))
|
|
13340
13342
|
throw new Error("Invalid business id");
|
|
13341
|
-
const { businesses: o } = Ji(), a = await
|
|
13343
|
+
const { businesses: o } = Ji(), a = await D_.updateCustomerDisplay((m = n.value) == null ? void 0 : m._id, r);
|
|
13342
13344
|
o.value = o.value.map((u) => u.id === a.id ? a : u), n.value = a;
|
|
13343
13345
|
}
|
|
13344
13346
|
return {
|
|
@@ -13388,7 +13390,7 @@ const wu = function(e) {
|
|
|
13388
13390
|
r < 128 ? n[t++] = r : r < 2048 ? (n[t++] = r >> 6 | 192, n[t++] = r & 63 | 128) : (r & 64512) === 55296 && i + 1 < e.length && (e.charCodeAt(i + 1) & 64512) === 56320 ? (r = 65536 + ((r & 1023) << 10) + (e.charCodeAt(++i) & 1023), n[t++] = r >> 18 | 240, n[t++] = r >> 12 & 63 | 128, n[t++] = r >> 6 & 63 | 128, n[t++] = r & 63 | 128) : (n[t++] = r >> 12 | 224, n[t++] = r >> 6 & 63 | 128, n[t++] = r & 63 | 128);
|
|
13389
13391
|
}
|
|
13390
13392
|
return n;
|
|
13391
|
-
},
|
|
13393
|
+
}, j_ = function(e) {
|
|
13392
13394
|
const n = [];
|
|
13393
13395
|
let t = 0, i = 0;
|
|
13394
13396
|
for (; t < e.length; ) {
|
|
@@ -13492,7 +13494,7 @@ const wu = function(e) {
|
|
|
13492
13494
|
* @return string representing the decoded value.
|
|
13493
13495
|
*/
|
|
13494
13496
|
decodeString(e, n) {
|
|
13495
|
-
return this.HAS_NATIVE_SUPPORT && !n ? atob(e) :
|
|
13497
|
+
return this.HAS_NATIVE_SUPPORT && !n ? atob(e) : j_(this.decodeStringToByteArray(e, n));
|
|
13496
13498
|
},
|
|
13497
13499
|
/**
|
|
13498
13500
|
* Base64-decode a string.
|
|
@@ -13519,7 +13521,7 @@ const wu = function(e) {
|
|
|
13519
13521
|
++r;
|
|
13520
13522
|
const F = r < e.length ? t[e.charAt(r)] : 64;
|
|
13521
13523
|
if (++r, o == null || s == null || u == null || F == null)
|
|
13522
|
-
throw new
|
|
13524
|
+
throw new B_();
|
|
13523
13525
|
const R = o << 2 | s >> 4;
|
|
13524
13526
|
if (i.push(R), u !== 64) {
|
|
13525
13527
|
const j = s << 4 & 240 | u >> 2;
|
|
@@ -13544,17 +13546,17 @@ const wu = function(e) {
|
|
|
13544
13546
|
}
|
|
13545
13547
|
}
|
|
13546
13548
|
};
|
|
13547
|
-
class
|
|
13549
|
+
class B_ extends Error {
|
|
13548
13550
|
constructor() {
|
|
13549
13551
|
super(...arguments), this.name = "DecodeBase64StringError";
|
|
13550
13552
|
}
|
|
13551
13553
|
}
|
|
13552
|
-
const
|
|
13554
|
+
const w_ = function(e) {
|
|
13553
13555
|
const n = wu(e);
|
|
13554
13556
|
return Uu.encodeByteArray(n, !0);
|
|
13555
13557
|
}, Po = function(e) {
|
|
13556
|
-
return
|
|
13557
|
-
},
|
|
13558
|
+
return w_(e).replace(/\./g, "");
|
|
13559
|
+
}, U_ = function(e) {
|
|
13558
13560
|
try {
|
|
13559
13561
|
return Uu.decodeString(e, !0);
|
|
13560
13562
|
} catch (n) {
|
|
@@ -13578,7 +13580,7 @@ const B_ = function(e) {
|
|
|
13578
13580
|
* See the License for the specific language governing permissions and
|
|
13579
13581
|
* limitations under the License.
|
|
13580
13582
|
*/
|
|
13581
|
-
function
|
|
13583
|
+
function k_() {
|
|
13582
13584
|
if (typeof self < "u")
|
|
13583
13585
|
return self;
|
|
13584
13586
|
if (typeof window < "u")
|
|
@@ -13603,13 +13605,13 @@ function U_() {
|
|
|
13603
13605
|
* See the License for the specific language governing permissions and
|
|
13604
13606
|
* limitations under the License.
|
|
13605
13607
|
*/
|
|
13606
|
-
const
|
|
13608
|
+
const L_ = () => k_().__FIREBASE_DEFAULTS__, V_ = () => {
|
|
13607
13609
|
if (typeof process > "u" || typeof process.env > "u")
|
|
13608
13610
|
return;
|
|
13609
13611
|
const e = process.env.__FIREBASE_DEFAULTS__;
|
|
13610
13612
|
if (e)
|
|
13611
13613
|
return JSON.parse(e);
|
|
13612
|
-
},
|
|
13614
|
+
}, Z_ = () => {
|
|
13613
13615
|
if (typeof document > "u")
|
|
13614
13616
|
return;
|
|
13615
13617
|
let e;
|
|
@@ -13618,20 +13620,20 @@ const k_ = () => U_().__FIREBASE_DEFAULTS__, L_ = () => {
|
|
|
13618
13620
|
} catch {
|
|
13619
13621
|
return;
|
|
13620
13622
|
}
|
|
13621
|
-
const n = e &&
|
|
13623
|
+
const n = e && U_(e[1]);
|
|
13622
13624
|
return n && JSON.parse(n);
|
|
13623
13625
|
}, Xs = () => {
|
|
13624
13626
|
try {
|
|
13625
|
-
return
|
|
13627
|
+
return L_() || V_() || Z_();
|
|
13626
13628
|
} catch (e) {
|
|
13627
13629
|
console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);
|
|
13628
13630
|
return;
|
|
13629
13631
|
}
|
|
13630
|
-
},
|
|
13632
|
+
}, G_ = (e) => {
|
|
13631
13633
|
var n, t;
|
|
13632
13634
|
return (t = (n = Xs()) === null || n === void 0 ? void 0 : n.emulatorHosts) === null || t === void 0 ? void 0 : t[e];
|
|
13633
|
-
},
|
|
13634
|
-
const n =
|
|
13635
|
+
}, Dy = (e) => {
|
|
13636
|
+
const n = G_(e);
|
|
13635
13637
|
if (!n)
|
|
13636
13638
|
return;
|
|
13637
13639
|
const t = n.lastIndexOf(":");
|
|
@@ -13642,7 +13644,7 @@ const k_ = () => U_().__FIREBASE_DEFAULTS__, L_ = () => {
|
|
|
13642
13644
|
}, ku = () => {
|
|
13643
13645
|
var e;
|
|
13644
13646
|
return (e = Xs()) === null || e === void 0 ? void 0 : e.config;
|
|
13645
|
-
},
|
|
13647
|
+
}, jy = (e) => {
|
|
13646
13648
|
var n;
|
|
13647
13649
|
return (n = Xs()) === null || n === void 0 ? void 0 : n[`_${e}`];
|
|
13648
13650
|
};
|
|
@@ -13662,7 +13664,7 @@ const k_ = () => U_().__FIREBASE_DEFAULTS__, L_ = () => {
|
|
|
13662
13664
|
* See the License for the specific language governing permissions and
|
|
13663
13665
|
* limitations under the License.
|
|
13664
13666
|
*/
|
|
13665
|
-
class
|
|
13667
|
+
class Y_ {
|
|
13666
13668
|
constructor() {
|
|
13667
13669
|
this.reject = () => {
|
|
13668
13670
|
}, this.resolve = () => {
|
|
@@ -13698,7 +13700,7 @@ class G_ {
|
|
|
13698
13700
|
* See the License for the specific language governing permissions and
|
|
13699
13701
|
* limitations under the License.
|
|
13700
13702
|
*/
|
|
13701
|
-
function
|
|
13703
|
+
function By(e, n) {
|
|
13702
13704
|
if (e.uid)
|
|
13703
13705
|
throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');
|
|
13704
13706
|
const t = {
|
|
@@ -13746,33 +13748,33 @@ function jy(e, n) {
|
|
|
13746
13748
|
function Lu() {
|
|
13747
13749
|
return typeof navigator < "u" && typeof navigator.userAgent == "string" ? navigator.userAgent : "";
|
|
13748
13750
|
}
|
|
13749
|
-
function
|
|
13751
|
+
function wy() {
|
|
13750
13752
|
return typeof window < "u" && // @ts-ignore Setting up an broadly applicable index signature for Window
|
|
13751
13753
|
// just to deal with this case would probably be a bad idea.
|
|
13752
13754
|
!!(window.cordova || window.phonegap || window.PhoneGap) && /ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Lu());
|
|
13753
13755
|
}
|
|
13754
|
-
function
|
|
13756
|
+
function Uy() {
|
|
13755
13757
|
return typeof navigator < "u" && navigator.userAgent === "Cloudflare-Workers";
|
|
13756
13758
|
}
|
|
13757
|
-
function
|
|
13759
|
+
function ky() {
|
|
13758
13760
|
const e = typeof chrome == "object" ? chrome.runtime : typeof browser == "object" ? browser.runtime : void 0;
|
|
13759
13761
|
return typeof e == "object" && e.id !== void 0;
|
|
13760
13762
|
}
|
|
13761
|
-
function
|
|
13763
|
+
function Ly() {
|
|
13762
13764
|
return typeof navigator == "object" && navigator.product === "ReactNative";
|
|
13763
13765
|
}
|
|
13764
|
-
function
|
|
13766
|
+
function Vy() {
|
|
13765
13767
|
const e = Lu();
|
|
13766
13768
|
return e.indexOf("MSIE ") >= 0 || e.indexOf("Trident/") >= 0;
|
|
13767
13769
|
}
|
|
13768
|
-
function
|
|
13770
|
+
function H_() {
|
|
13769
13771
|
try {
|
|
13770
13772
|
return typeof indexedDB == "object";
|
|
13771
13773
|
} catch {
|
|
13772
13774
|
return !1;
|
|
13773
13775
|
}
|
|
13774
13776
|
}
|
|
13775
|
-
function
|
|
13777
|
+
function $_() {
|
|
13776
13778
|
return new Promise((e, n) => {
|
|
13777
13779
|
try {
|
|
13778
13780
|
let t = !0;
|
|
@@ -13806,10 +13808,10 @@ function H_() {
|
|
|
13806
13808
|
* See the License for the specific language governing permissions and
|
|
13807
13809
|
* limitations under the License.
|
|
13808
13810
|
*/
|
|
13809
|
-
const
|
|
13811
|
+
const K_ = "FirebaseError";
|
|
13810
13812
|
class Yr extends Error {
|
|
13811
13813
|
constructor(n, t, i) {
|
|
13812
|
-
super(t), this.code = n, this.customData = i, this.name =
|
|
13814
|
+
super(t), this.code = n, this.customData = i, this.name = K_, Object.setPrototypeOf(this, Yr.prototype), Error.captureStackTrace && Error.captureStackTrace(this, Vu.prototype.create);
|
|
13813
13815
|
}
|
|
13814
13816
|
}
|
|
13815
13817
|
class Vu {
|
|
@@ -13817,18 +13819,18 @@ class Vu {
|
|
|
13817
13819
|
this.service = n, this.serviceName = t, this.errors = i;
|
|
13818
13820
|
}
|
|
13819
13821
|
create(n, ...t) {
|
|
13820
|
-
const i = t[0] || {}, r = `${this.service}/${n}`, o = this.errors[n], a = o ?
|
|
13822
|
+
const i = t[0] || {}, r = `${this.service}/${n}`, o = this.errors[n], a = o ? q_(o, i) : "Error", s = `${this.serviceName}: ${a} (${r}).`;
|
|
13821
13823
|
return new Yr(r, s, i);
|
|
13822
13824
|
}
|
|
13823
13825
|
}
|
|
13824
|
-
function
|
|
13825
|
-
return e.replace(
|
|
13826
|
+
function q_(e, n) {
|
|
13827
|
+
return e.replace(W_, (t, i) => {
|
|
13826
13828
|
const r = n[i];
|
|
13827
13829
|
return r != null ? String(r) : `<${i}?>`;
|
|
13828
13830
|
});
|
|
13829
13831
|
}
|
|
13830
|
-
const
|
|
13831
|
-
function
|
|
13832
|
+
const W_ = /\{\$([^}]+)}/g;
|
|
13833
|
+
function Zy(e) {
|
|
13832
13834
|
for (const n in e)
|
|
13833
13835
|
if (Object.prototype.hasOwnProperty.call(e, n))
|
|
13834
13836
|
return !1;
|
|
@@ -13872,7 +13874,7 @@ function Dd(e) {
|
|
|
13872
13874
|
* See the License for the specific language governing permissions and
|
|
13873
13875
|
* limitations under the License.
|
|
13874
13876
|
*/
|
|
13875
|
-
function
|
|
13877
|
+
function Gy(e) {
|
|
13876
13878
|
const n = [];
|
|
13877
13879
|
for (const [t, i] of Object.entries(e))
|
|
13878
13880
|
Array.isArray(i) ? i.forEach((r) => {
|
|
@@ -13880,11 +13882,11 @@ function Zy(e) {
|
|
|
13880
13882
|
}) : n.push(encodeURIComponent(t) + "=" + encodeURIComponent(i));
|
|
13881
13883
|
return n.length ? "&" + n.join("&") : "";
|
|
13882
13884
|
}
|
|
13883
|
-
function
|
|
13884
|
-
const t = new
|
|
13885
|
+
function Yy(e, n) {
|
|
13886
|
+
const t = new J_(e, n);
|
|
13885
13887
|
return t.subscribe.bind(t);
|
|
13886
13888
|
}
|
|
13887
|
-
class
|
|
13889
|
+
class J_ {
|
|
13888
13890
|
/**
|
|
13889
13891
|
* @param executor Function which can make calls to a single Observer
|
|
13890
13892
|
* as a proxy.
|
|
@@ -13922,7 +13924,7 @@ class W_ {
|
|
|
13922
13924
|
let r;
|
|
13923
13925
|
if (n === void 0 && t === void 0 && i === void 0)
|
|
13924
13926
|
throw new Error("Missing Observer.");
|
|
13925
|
-
|
|
13927
|
+
X_(n, [
|
|
13926
13928
|
"next",
|
|
13927
13929
|
"error",
|
|
13928
13930
|
"complete"
|
|
@@ -13968,7 +13970,7 @@ class W_ {
|
|
|
13968
13970
|
}));
|
|
13969
13971
|
}
|
|
13970
13972
|
}
|
|
13971
|
-
function
|
|
13973
|
+
function X_(e, n) {
|
|
13972
13974
|
if (typeof e != "object" || e === null)
|
|
13973
13975
|
return !1;
|
|
13974
13976
|
for (const t of n)
|
|
@@ -13994,7 +13996,7 @@ function Za() {
|
|
|
13994
13996
|
* See the License for the specific language governing permissions and
|
|
13995
13997
|
* limitations under the License.
|
|
13996
13998
|
*/
|
|
13997
|
-
function
|
|
13999
|
+
function Hy(e) {
|
|
13998
14000
|
return e && e._delegate ? e._delegate : e;
|
|
13999
14001
|
}
|
|
14000
14002
|
class Ao {
|
|
@@ -14053,7 +14055,7 @@ const Pn = "[DEFAULT]";
|
|
|
14053
14055
|
* See the License for the specific language governing permissions and
|
|
14054
14056
|
* limitations under the License.
|
|
14055
14057
|
*/
|
|
14056
|
-
class
|
|
14058
|
+
class Q_ {
|
|
14057
14059
|
constructor(n, t) {
|
|
14058
14060
|
this.name = n, this.container = t, this.component = null, this.instances = /* @__PURE__ */ new Map(), this.instancesDeferred = /* @__PURE__ */ new Map(), this.instancesOptions = /* @__PURE__ */ new Map(), this.onInitCallbacks = /* @__PURE__ */ new Map();
|
|
14059
14061
|
}
|
|
@@ -14064,7 +14066,7 @@ class X_ {
|
|
|
14064
14066
|
get(n) {
|
|
14065
14067
|
const t = this.normalizeInstanceIdentifier(n);
|
|
14066
14068
|
if (!this.instancesDeferred.has(t)) {
|
|
14067
|
-
const i = new
|
|
14069
|
+
const i = new Y_();
|
|
14068
14070
|
if (this.instancesDeferred.set(t, i), this.isInitialized(t) || this.shouldAutoInitialize())
|
|
14069
14071
|
try {
|
|
14070
14072
|
const r = this.getOrInitializeService({
|
|
@@ -14104,7 +14106,7 @@ class X_ {
|
|
|
14104
14106
|
if (this.component)
|
|
14105
14107
|
throw Error(`Component for ${this.name} has already been provided`);
|
|
14106
14108
|
if (this.component = n, !!this.shouldAutoInitialize()) {
|
|
14107
|
-
if (
|
|
14109
|
+
if (eg(n))
|
|
14108
14110
|
try {
|
|
14109
14111
|
this.getOrInitializeService({ instanceIdentifier: Pn });
|
|
14110
14112
|
} catch {
|
|
@@ -14191,7 +14193,7 @@ class X_ {
|
|
|
14191
14193
|
getOrInitializeService({ instanceIdentifier: n, options: t = {} }) {
|
|
14192
14194
|
let i = this.instances.get(n);
|
|
14193
14195
|
if (!i && this.component && (i = this.component.instanceFactory(this.container, {
|
|
14194
|
-
instanceIdentifier:
|
|
14196
|
+
instanceIdentifier: x_(n),
|
|
14195
14197
|
options: t
|
|
14196
14198
|
}), this.instances.set(n, i), this.instancesOptions.set(n, t), this.invokeOnInitCallbacks(i, n), this.component.onInstanceCreated))
|
|
14197
14199
|
try {
|
|
@@ -14207,10 +14209,10 @@ class X_ {
|
|
|
14207
14209
|
return !!this.component && this.component.instantiationMode !== "EXPLICIT";
|
|
14208
14210
|
}
|
|
14209
14211
|
}
|
|
14210
|
-
function
|
|
14212
|
+
function x_(e) {
|
|
14211
14213
|
return e === Pn ? void 0 : e;
|
|
14212
14214
|
}
|
|
14213
|
-
function
|
|
14215
|
+
function eg(e) {
|
|
14214
14216
|
return e.instantiationMode === "EAGER";
|
|
14215
14217
|
}
|
|
14216
14218
|
/**
|
|
@@ -14229,7 +14231,7 @@ function x_(e) {
|
|
|
14229
14231
|
* See the License for the specific language governing permissions and
|
|
14230
14232
|
* limitations under the License.
|
|
14231
14233
|
*/
|
|
14232
|
-
class
|
|
14234
|
+
class tg {
|
|
14233
14235
|
constructor(n) {
|
|
14234
14236
|
this.name = n, this.providers = /* @__PURE__ */ new Map();
|
|
14235
14237
|
}
|
|
@@ -14261,7 +14263,7 @@ class eg {
|
|
|
14261
14263
|
getProvider(n) {
|
|
14262
14264
|
if (this.providers.has(n))
|
|
14263
14265
|
return this.providers.get(n);
|
|
14264
|
-
const t = new
|
|
14266
|
+
const t = new Q_(n, this);
|
|
14265
14267
|
return this.providers.set(n, t), t;
|
|
14266
14268
|
}
|
|
14267
14269
|
getProviders() {
|
|
@@ -14288,29 +14290,29 @@ var _e;
|
|
|
14288
14290
|
(function(e) {
|
|
14289
14291
|
e[e.DEBUG = 0] = "DEBUG", e[e.VERBOSE = 1] = "VERBOSE", e[e.INFO = 2] = "INFO", e[e.WARN = 3] = "WARN", e[e.ERROR = 4] = "ERROR", e[e.SILENT = 5] = "SILENT";
|
|
14290
14292
|
})(_e || (_e = {}));
|
|
14291
|
-
const
|
|
14293
|
+
const ng = {
|
|
14292
14294
|
debug: _e.DEBUG,
|
|
14293
14295
|
verbose: _e.VERBOSE,
|
|
14294
14296
|
info: _e.INFO,
|
|
14295
14297
|
warn: _e.WARN,
|
|
14296
14298
|
error: _e.ERROR,
|
|
14297
14299
|
silent: _e.SILENT
|
|
14298
|
-
},
|
|
14300
|
+
}, ig = _e.INFO, rg = {
|
|
14299
14301
|
[_e.DEBUG]: "log",
|
|
14300
14302
|
[_e.VERBOSE]: "log",
|
|
14301
14303
|
[_e.INFO]: "info",
|
|
14302
14304
|
[_e.WARN]: "warn",
|
|
14303
14305
|
[_e.ERROR]: "error"
|
|
14304
|
-
},
|
|
14306
|
+
}, og = (e, n, ...t) => {
|
|
14305
14307
|
if (n < e.logLevel)
|
|
14306
14308
|
return;
|
|
14307
|
-
const i = (/* @__PURE__ */ new Date()).toISOString(), r =
|
|
14309
|
+
const i = (/* @__PURE__ */ new Date()).toISOString(), r = rg[n];
|
|
14308
14310
|
if (r)
|
|
14309
14311
|
console[r](`[${i}] ${e.name}:`, ...t);
|
|
14310
14312
|
else
|
|
14311
14313
|
throw new Error(`Attempted to log a message with an invalid logType (value: ${n})`);
|
|
14312
14314
|
};
|
|
14313
|
-
class
|
|
14315
|
+
class ag {
|
|
14314
14316
|
/**
|
|
14315
14317
|
* Gives you an instance of a Logger to capture messages according to
|
|
14316
14318
|
* Firebase's logging scheme.
|
|
@@ -14318,7 +14320,7 @@ class og {
|
|
|
14318
14320
|
* @param name The name that the logs will be associated with
|
|
14319
14321
|
*/
|
|
14320
14322
|
constructor(n) {
|
|
14321
|
-
this.name = n, this._logLevel =
|
|
14323
|
+
this.name = n, this._logLevel = ig, this._logHandler = og, this._userLogHandler = null;
|
|
14322
14324
|
}
|
|
14323
14325
|
get logLevel() {
|
|
14324
14326
|
return this._logLevel;
|
|
@@ -14330,7 +14332,7 @@ class og {
|
|
|
14330
14332
|
}
|
|
14331
14333
|
// Workaround for setter/getter having to be the same type.
|
|
14332
14334
|
setLogLevel(n) {
|
|
14333
|
-
this._logLevel = typeof n == "string" ?
|
|
14335
|
+
this._logLevel = typeof n == "string" ? ng[n] : n;
|
|
14334
14336
|
}
|
|
14335
14337
|
get logHandler() {
|
|
14336
14338
|
return this._logHandler;
|
|
@@ -14365,9 +14367,9 @@ class og {
|
|
|
14365
14367
|
this._userLogHandler && this._userLogHandler(this, _e.ERROR, ...n), this._logHandler(this, _e.ERROR, ...n);
|
|
14366
14368
|
}
|
|
14367
14369
|
}
|
|
14368
|
-
const
|
|
14370
|
+
const sg = (e, n) => n.some((t) => e instanceof t);
|
|
14369
14371
|
let jd, Bd;
|
|
14370
|
-
function
|
|
14372
|
+
function dg() {
|
|
14371
14373
|
return jd || (jd = [
|
|
14372
14374
|
IDBDatabase,
|
|
14373
14375
|
IDBObjectStore,
|
|
@@ -14376,7 +14378,7 @@ function sg() {
|
|
|
14376
14378
|
IDBTransaction
|
|
14377
14379
|
]);
|
|
14378
14380
|
}
|
|
14379
|
-
function
|
|
14381
|
+
function lg() {
|
|
14380
14382
|
return Bd || (Bd = [
|
|
14381
14383
|
IDBCursor.prototype.advance,
|
|
14382
14384
|
IDBCursor.prototype.continue,
|
|
@@ -14384,7 +14386,7 @@ function dg() {
|
|
|
14384
14386
|
]);
|
|
14385
14387
|
}
|
|
14386
14388
|
const Zu = /* @__PURE__ */ new WeakMap(), as = /* @__PURE__ */ new WeakMap(), Gu = /* @__PURE__ */ new WeakMap(), Ga = /* @__PURE__ */ new WeakMap(), Qs = /* @__PURE__ */ new WeakMap();
|
|
14387
|
-
function
|
|
14389
|
+
function ug(e) {
|
|
14388
14390
|
const n = new Promise((t, i) => {
|
|
14389
14391
|
const r = () => {
|
|
14390
14392
|
e.removeEventListener("success", o), e.removeEventListener("error", a);
|
|
@@ -14400,7 +14402,7 @@ function lg(e) {
|
|
|
14400
14402
|
}).catch(() => {
|
|
14401
14403
|
}), Qs.set(n, e), n;
|
|
14402
14404
|
}
|
|
14403
|
-
function
|
|
14405
|
+
function cg(e) {
|
|
14404
14406
|
if (as.has(e))
|
|
14405
14407
|
return;
|
|
14406
14408
|
const n = new Promise((t, i) => {
|
|
@@ -14434,32 +14436,32 @@ let ss = {
|
|
|
14434
14436
|
return e instanceof IDBTransaction && (n === "done" || n === "store") ? !0 : n in e;
|
|
14435
14437
|
}
|
|
14436
14438
|
};
|
|
14437
|
-
function
|
|
14439
|
+
function mg(e) {
|
|
14438
14440
|
ss = e(ss);
|
|
14439
14441
|
}
|
|
14440
|
-
function
|
|
14442
|
+
function hg(e) {
|
|
14441
14443
|
return e === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(n, ...t) {
|
|
14442
14444
|
const i = e.call(Ya(this), n, ...t);
|
|
14443
14445
|
return Gu.set(i, n.sort ? n.sort() : [n]), mn(i);
|
|
14444
|
-
} :
|
|
14446
|
+
} : lg().includes(e) ? function(...n) {
|
|
14445
14447
|
return e.apply(Ya(this), n), mn(Zu.get(this));
|
|
14446
14448
|
} : function(...n) {
|
|
14447
14449
|
return mn(e.apply(Ya(this), n));
|
|
14448
14450
|
};
|
|
14449
14451
|
}
|
|
14450
|
-
function
|
|
14451
|
-
return typeof e == "function" ?
|
|
14452
|
+
function fg(e) {
|
|
14453
|
+
return typeof e == "function" ? hg(e) : (e instanceof IDBTransaction && cg(e), sg(e, dg()) ? new Proxy(e, ss) : e);
|
|
14452
14454
|
}
|
|
14453
14455
|
function mn(e) {
|
|
14454
14456
|
if (e instanceof IDBRequest)
|
|
14455
|
-
return
|
|
14457
|
+
return ug(e);
|
|
14456
14458
|
if (Ga.has(e))
|
|
14457
14459
|
return Ga.get(e);
|
|
14458
|
-
const n =
|
|
14460
|
+
const n = fg(e);
|
|
14459
14461
|
return n !== e && (Ga.set(e, n), Qs.set(n, e)), n;
|
|
14460
14462
|
}
|
|
14461
14463
|
const Ya = (e) => Qs.get(e);
|
|
14462
|
-
function
|
|
14464
|
+
function _g(e, n, { blocked: t, upgrade: i, blocking: r, terminated: o } = {}) {
|
|
14463
14465
|
const a = indexedDB.open(e, n), s = mn(a);
|
|
14464
14466
|
return i && a.addEventListener("upgradeneeded", (m) => {
|
|
14465
14467
|
i(mn(a.result), m.oldVersion, m.newVersion, mn(a.transaction), m);
|
|
@@ -14473,16 +14475,16 @@ function fg(e, n, { blocked: t, upgrade: i, blocking: r, terminated: o } = {}) {
|
|
|
14473
14475
|
}).catch(() => {
|
|
14474
14476
|
}), s;
|
|
14475
14477
|
}
|
|
14476
|
-
const
|
|
14478
|
+
const gg = ["get", "getKey", "getAll", "getAllKeys", "count"], yg = ["put", "add", "delete", "clear"], Ha = /* @__PURE__ */ new Map();
|
|
14477
14479
|
function wd(e, n) {
|
|
14478
14480
|
if (!(e instanceof IDBDatabase && !(n in e) && typeof n == "string"))
|
|
14479
14481
|
return;
|
|
14480
14482
|
if (Ha.get(n))
|
|
14481
14483
|
return Ha.get(n);
|
|
14482
|
-
const t = n.replace(/FromIndex$/, ""), i = n !== t, r =
|
|
14484
|
+
const t = n.replace(/FromIndex$/, ""), i = n !== t, r = yg.includes(t);
|
|
14483
14485
|
if (
|
|
14484
14486
|
// Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
|
|
14485
|
-
!(t in (i ? IDBIndex : IDBObjectStore).prototype) || !(r ||
|
|
14487
|
+
!(t in (i ? IDBIndex : IDBObjectStore).prototype) || !(r || gg.includes(t))
|
|
14486
14488
|
)
|
|
14487
14489
|
return;
|
|
14488
14490
|
const o = async function(a, ...s) {
|
|
@@ -14495,7 +14497,7 @@ function wd(e, n) {
|
|
|
14495
14497
|
};
|
|
14496
14498
|
return Ha.set(n, o), o;
|
|
14497
14499
|
}
|
|
14498
|
-
|
|
14500
|
+
mg((e) => ({
|
|
14499
14501
|
...e,
|
|
14500
14502
|
get: (n, t, i) => wd(n, t) || e.get(n, t, i),
|
|
14501
14503
|
has: (n, t) => !!wd(n, t) || e.has(n, t)
|
|
@@ -14516,7 +14518,7 @@ cg((e) => ({
|
|
|
14516
14518
|
* See the License for the specific language governing permissions and
|
|
14517
14519
|
* limitations under the License.
|
|
14518
14520
|
*/
|
|
14519
|
-
class
|
|
14521
|
+
class bg {
|
|
14520
14522
|
constructor(n) {
|
|
14521
14523
|
this.container = n;
|
|
14522
14524
|
}
|
|
@@ -14524,7 +14526,7 @@ class yg {
|
|
|
14524
14526
|
// auth token refresh, and installations will send this string.
|
|
14525
14527
|
getPlatformInfoString() {
|
|
14526
14528
|
return this.container.getProviders().map((t) => {
|
|
14527
|
-
if (
|
|
14529
|
+
if (zg(t)) {
|
|
14528
14530
|
const i = t.getImmediate();
|
|
14529
14531
|
return `${i.library}/${i.version}`;
|
|
14530
14532
|
} else
|
|
@@ -14532,7 +14534,7 @@ class yg {
|
|
|
14532
14534
|
}).filter((t) => t).join(" ");
|
|
14533
14535
|
}
|
|
14534
14536
|
}
|
|
14535
|
-
function
|
|
14537
|
+
function zg(e) {
|
|
14536
14538
|
const n = e.getComponent();
|
|
14537
14539
|
return (n == null ? void 0 : n.type) === "VERSION";
|
|
14538
14540
|
}
|
|
@@ -14553,7 +14555,7 @@ const ds = "@firebase/app", Ud = "0.10.13";
|
|
|
14553
14555
|
* See the License for the specific language governing permissions and
|
|
14554
14556
|
* limitations under the License.
|
|
14555
14557
|
*/
|
|
14556
|
-
const Wt = new
|
|
14558
|
+
const Wt = new ag("@firebase/app"), Fg = "@firebase/app-compat", Eg = "@firebase/analytics-compat", pg = "@firebase/analytics", vg = "@firebase/app-check-compat", Ig = "@firebase/app-check", Tg = "@firebase/auth", Sg = "@firebase/auth-compat", Rg = "@firebase/database", Og = "@firebase/data-connect", Cg = "@firebase/database-compat", Pg = "@firebase/functions", Ag = "@firebase/functions-compat", Mg = "@firebase/installations", Ng = "@firebase/installations-compat", Dg = "@firebase/messaging", jg = "@firebase/messaging-compat", Bg = "@firebase/performance", wg = "@firebase/performance-compat", Ug = "@firebase/remote-config", kg = "@firebase/remote-config-compat", Lg = "@firebase/storage", Vg = "@firebase/storage-compat", Zg = "@firebase/firestore", Gg = "@firebase/vertexai-preview", Yg = "@firebase/firestore-compat", Hg = "firebase", $g = "10.14.1";
|
|
14557
14559
|
/**
|
|
14558
14560
|
* @license
|
|
14559
14561
|
* Copyright 2019 Google LLC
|
|
@@ -14570,35 +14572,35 @@ const Wt = new og("@firebase/app"), zg = "@firebase/app-compat", Fg = "@firebase
|
|
|
14570
14572
|
* See the License for the specific language governing permissions and
|
|
14571
14573
|
* limitations under the License.
|
|
14572
14574
|
*/
|
|
14573
|
-
const ls = "[DEFAULT]",
|
|
14575
|
+
const ls = "[DEFAULT]", Kg = {
|
|
14574
14576
|
[ds]: "fire-core",
|
|
14575
|
-
[
|
|
14576
|
-
[
|
|
14577
|
-
[
|
|
14578
|
-
[
|
|
14579
|
-
[
|
|
14580
|
-
[
|
|
14581
|
-
[
|
|
14582
|
-
[
|
|
14583
|
-
[
|
|
14584
|
-
[
|
|
14585
|
-
[
|
|
14586
|
-
[
|
|
14587
|
-
[
|
|
14588
|
-
[
|
|
14589
|
-
[
|
|
14590
|
-
[
|
|
14591
|
-
[
|
|
14592
|
-
[
|
|
14593
|
-
[
|
|
14594
|
-
[
|
|
14595
|
-
[
|
|
14596
|
-
[
|
|
14597
|
-
[
|
|
14598
|
-
[
|
|
14599
|
-
[
|
|
14577
|
+
[Fg]: "fire-core-compat",
|
|
14578
|
+
[pg]: "fire-analytics",
|
|
14579
|
+
[Eg]: "fire-analytics-compat",
|
|
14580
|
+
[Ig]: "fire-app-check",
|
|
14581
|
+
[vg]: "fire-app-check-compat",
|
|
14582
|
+
[Tg]: "fire-auth",
|
|
14583
|
+
[Sg]: "fire-auth-compat",
|
|
14584
|
+
[Rg]: "fire-rtdb",
|
|
14585
|
+
[Og]: "fire-data-connect",
|
|
14586
|
+
[Cg]: "fire-rtdb-compat",
|
|
14587
|
+
[Pg]: "fire-fn",
|
|
14588
|
+
[Ag]: "fire-fn-compat",
|
|
14589
|
+
[Mg]: "fire-iid",
|
|
14590
|
+
[Ng]: "fire-iid-compat",
|
|
14591
|
+
[Dg]: "fire-fcm",
|
|
14592
|
+
[jg]: "fire-fcm-compat",
|
|
14593
|
+
[Bg]: "fire-perf",
|
|
14594
|
+
[wg]: "fire-perf-compat",
|
|
14595
|
+
[Ug]: "fire-rc",
|
|
14596
|
+
[kg]: "fire-rc-compat",
|
|
14597
|
+
[Lg]: "fire-gcs",
|
|
14598
|
+
[Vg]: "fire-gcs-compat",
|
|
14599
|
+
[Zg]: "fire-fst",
|
|
14600
|
+
[Yg]: "fire-fst-compat",
|
|
14601
|
+
[Gg]: "fire-vertex",
|
|
14600
14602
|
"fire-js": "fire-js",
|
|
14601
|
-
[
|
|
14603
|
+
[Hg]: "fire-js-all"
|
|
14602
14604
|
};
|
|
14603
14605
|
/**
|
|
14604
14606
|
* @license
|
|
@@ -14616,7 +14618,7 @@ const ls = "[DEFAULT]", $g = {
|
|
|
14616
14618
|
* See the License for the specific language governing permissions and
|
|
14617
14619
|
* limitations under the License.
|
|
14618
14620
|
*/
|
|
14619
|
-
const rr = /* @__PURE__ */ new Map(),
|
|
14621
|
+
const rr = /* @__PURE__ */ new Map(), qg = /* @__PURE__ */ new Map(), us = /* @__PURE__ */ new Map();
|
|
14620
14622
|
function kd(e, n) {
|
|
14621
14623
|
try {
|
|
14622
14624
|
e.container.addComponent(n);
|
|
@@ -14631,15 +14633,15 @@ function cs(e) {
|
|
|
14631
14633
|
us.set(n, e);
|
|
14632
14634
|
for (const t of rr.values())
|
|
14633
14635
|
kd(t, e);
|
|
14634
|
-
for (const t of
|
|
14636
|
+
for (const t of qg.values())
|
|
14635
14637
|
kd(t, e);
|
|
14636
14638
|
return !0;
|
|
14637
14639
|
}
|
|
14638
|
-
function
|
|
14640
|
+
function $y(e, n) {
|
|
14639
14641
|
const t = e.container.getProvider("heartbeat").getImmediate({ optional: !0 });
|
|
14640
14642
|
return t && t.triggerHeartbeat(), e.container.getProvider(n);
|
|
14641
14643
|
}
|
|
14642
|
-
function
|
|
14644
|
+
function Ky(e) {
|
|
14643
14645
|
return e.settings !== void 0;
|
|
14644
14646
|
}
|
|
14645
14647
|
/**
|
|
@@ -14658,7 +14660,7 @@ function $y(e) {
|
|
|
14658
14660
|
* See the License for the specific language governing permissions and
|
|
14659
14661
|
* limitations under the License.
|
|
14660
14662
|
*/
|
|
14661
|
-
const
|
|
14663
|
+
const Wg = {
|
|
14662
14664
|
"no-app": "No Firebase App '{$appName}' has been created - call initializeApp() first",
|
|
14663
14665
|
"bad-app-name": "Illegal App name: '{$appName}'",
|
|
14664
14666
|
"duplicate-app": "Firebase App named '{$appName}' already exists with different options or config",
|
|
@@ -14673,7 +14675,7 @@ const qg = {
|
|
|
14673
14675
|
"idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",
|
|
14674
14676
|
"finalization-registry-not-supported": "FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.",
|
|
14675
14677
|
"invalid-server-app-environment": "FirebaseServerApp is not for use in browser environments."
|
|
14676
|
-
}, hn = new Vu("app", "Firebase",
|
|
14678
|
+
}, hn = new Vu("app", "Firebase", Wg);
|
|
14677
14679
|
/**
|
|
14678
14680
|
* @license
|
|
14679
14681
|
* Copyright 2019 Google LLC
|
|
@@ -14690,7 +14692,7 @@ const qg = {
|
|
|
14690
14692
|
* See the License for the specific language governing permissions and
|
|
14691
14693
|
* limitations under the License.
|
|
14692
14694
|
*/
|
|
14693
|
-
class
|
|
14695
|
+
class Jg {
|
|
14694
14696
|
constructor(n, t, i) {
|
|
14695
14697
|
this._isDeleted = !1, this._options = Object.assign({}, n), this._config = Object.assign({}, t), this._name = t.name, this._automaticDataCollectionEnabled = t.automaticDataCollectionEnabled, this._container = i, this.container.addComponent(new Ao(
|
|
14696
14698
|
"app",
|
|
@@ -14748,8 +14750,8 @@ class Wg {
|
|
|
14748
14750
|
* See the License for the specific language governing permissions and
|
|
14749
14751
|
* limitations under the License.
|
|
14750
14752
|
*/
|
|
14751
|
-
const
|
|
14752
|
-
function
|
|
14753
|
+
const qy = $g;
|
|
14754
|
+
function Xg(e, n = {}) {
|
|
14753
14755
|
let t = e;
|
|
14754
14756
|
typeof n != "object" && (n = { name: n });
|
|
14755
14757
|
const i = Object.assign({ name: ls, automaticDataCollectionEnabled: !1 }, n), r = i.name;
|
|
@@ -14768,26 +14770,26 @@ function Jg(e, n = {}) {
|
|
|
14768
14770
|
return o;
|
|
14769
14771
|
throw hn.create("duplicate-app", { appName: r });
|
|
14770
14772
|
}
|
|
14771
|
-
const a = new
|
|
14773
|
+
const a = new tg(r);
|
|
14772
14774
|
for (const m of us.values())
|
|
14773
14775
|
a.addComponent(m);
|
|
14774
|
-
const s = new
|
|
14776
|
+
const s = new Jg(t, i, a);
|
|
14775
14777
|
return rr.set(r, s), s;
|
|
14776
14778
|
}
|
|
14777
|
-
function
|
|
14779
|
+
function Wy(e = ls) {
|
|
14778
14780
|
const n = rr.get(e);
|
|
14779
14781
|
if (!n && e === ls && ku())
|
|
14780
|
-
return
|
|
14782
|
+
return Xg();
|
|
14781
14783
|
if (!n)
|
|
14782
14784
|
throw hn.create("no-app", { appName: e });
|
|
14783
14785
|
return n;
|
|
14784
14786
|
}
|
|
14785
|
-
function
|
|
14787
|
+
function Jy() {
|
|
14786
14788
|
return Array.from(rr.values());
|
|
14787
14789
|
}
|
|
14788
14790
|
function $a(e, n, t) {
|
|
14789
14791
|
var i;
|
|
14790
|
-
let r = (i =
|
|
14792
|
+
let r = (i = Kg[e]) !== null && i !== void 0 ? i : e;
|
|
14791
14793
|
t && (r += `-${t}`);
|
|
14792
14794
|
const o = r.match(/\s|\//), a = n.match(/\s|\//);
|
|
14793
14795
|
if (o || a) {
|
|
@@ -14820,10 +14822,10 @@ function $a(e, n, t) {
|
|
|
14820
14822
|
* See the License for the specific language governing permissions and
|
|
14821
14823
|
* limitations under the License.
|
|
14822
14824
|
*/
|
|
14823
|
-
const
|
|
14825
|
+
const Qg = "firebase-heartbeat-database", xg = 1, or = "firebase-heartbeat-store";
|
|
14824
14826
|
let Ka = null;
|
|
14825
14827
|
function Yu() {
|
|
14826
|
-
return Ka || (Ka =
|
|
14828
|
+
return Ka || (Ka = _g(Qg, xg, {
|
|
14827
14829
|
upgrade: (e, n) => {
|
|
14828
14830
|
switch (n) {
|
|
14829
14831
|
case 0:
|
|
@@ -14840,7 +14842,7 @@ function Yu() {
|
|
|
14840
14842
|
});
|
|
14841
14843
|
})), Ka;
|
|
14842
14844
|
}
|
|
14843
|
-
async function
|
|
14845
|
+
async function ey(e) {
|
|
14844
14846
|
try {
|
|
14845
14847
|
const t = (await Yu()).transaction(or), i = await t.objectStore(or).get(Hu(e));
|
|
14846
14848
|
return await t.done, i;
|
|
@@ -14889,12 +14891,12 @@ function Hu(e) {
|
|
|
14889
14891
|
* See the License for the specific language governing permissions and
|
|
14890
14892
|
* limitations under the License.
|
|
14891
14893
|
*/
|
|
14892
|
-
const
|
|
14893
|
-
class
|
|
14894
|
+
const ty = 1024, ny = 30 * 24 * 60 * 60 * 1e3;
|
|
14895
|
+
class iy {
|
|
14894
14896
|
constructor(n) {
|
|
14895
14897
|
this.container = n, this._heartbeatsCache = null;
|
|
14896
14898
|
const t = this.container.getProvider("app").getImmediate();
|
|
14897
|
-
this._storage = new
|
|
14899
|
+
this._storage = new oy(t), this._heartbeatsCachePromise = this._storage.read().then((i) => (this._heartbeatsCache = i, i));
|
|
14898
14900
|
}
|
|
14899
14901
|
/**
|
|
14900
14902
|
* Called to report a heartbeat. The function will generate
|
|
@@ -14909,7 +14911,7 @@ class ny {
|
|
|
14909
14911
|
const r = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), o = Vd();
|
|
14910
14912
|
return ((n = this._heartbeatsCache) === null || n === void 0 ? void 0 : n.heartbeats) == null && (this._heartbeatsCache = await this._heartbeatsCachePromise, ((t = this._heartbeatsCache) === null || t === void 0 ? void 0 : t.heartbeats) == null) || this._heartbeatsCache.lastSentHeartbeatDate === o || this._heartbeatsCache.heartbeats.some((a) => a.date === o) ? void 0 : (this._heartbeatsCache.heartbeats.push({ date: o, agent: r }), this._heartbeatsCache.heartbeats = this._heartbeatsCache.heartbeats.filter((a) => {
|
|
14911
14913
|
const s = new Date(a.date).valueOf();
|
|
14912
|
-
return Date.now() - s <=
|
|
14914
|
+
return Date.now() - s <= ny;
|
|
14913
14915
|
}), this._storage.overwrite(this._heartbeatsCache));
|
|
14914
14916
|
} catch (i) {
|
|
14915
14917
|
Wt.warn(i);
|
|
@@ -14927,7 +14929,7 @@ class ny {
|
|
|
14927
14929
|
try {
|
|
14928
14930
|
if (this._heartbeatsCache === null && await this._heartbeatsCachePromise, ((n = this._heartbeatsCache) === null || n === void 0 ? void 0 : n.heartbeats) == null || this._heartbeatsCache.heartbeats.length === 0)
|
|
14929
14931
|
return "";
|
|
14930
|
-
const t = Vd(), { heartbeatsToSend: i, unsentEntries: r } =
|
|
14932
|
+
const t = Vd(), { heartbeatsToSend: i, unsentEntries: r } = ry(this._heartbeatsCache.heartbeats), o = Po(JSON.stringify({ version: 2, heartbeats: i }));
|
|
14931
14933
|
return this._heartbeatsCache.lastSentHeartbeatDate = t, r.length > 0 ? (this._heartbeatsCache.heartbeats = r, await this._storage.overwrite(this._heartbeatsCache)) : (this._heartbeatsCache.heartbeats = [], this._storage.overwrite(this._heartbeatsCache)), o;
|
|
14932
14934
|
} catch (t) {
|
|
14933
14935
|
return Wt.warn(t), "";
|
|
@@ -14937,7 +14939,7 @@ class ny {
|
|
|
14937
14939
|
function Vd() {
|
|
14938
14940
|
return (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
|
|
14939
14941
|
}
|
|
14940
|
-
function
|
|
14942
|
+
function ry(e, n = ty) {
|
|
14941
14943
|
const t = [];
|
|
14942
14944
|
let i = e.slice();
|
|
14943
14945
|
for (const r of e) {
|
|
@@ -14961,19 +14963,19 @@ function iy(e, n = ey) {
|
|
|
14961
14963
|
unsentEntries: i
|
|
14962
14964
|
};
|
|
14963
14965
|
}
|
|
14964
|
-
class
|
|
14966
|
+
class oy {
|
|
14965
14967
|
constructor(n) {
|
|
14966
14968
|
this.app = n, this._canUseIndexedDBPromise = this.runIndexedDBEnvironmentCheck();
|
|
14967
14969
|
}
|
|
14968
14970
|
async runIndexedDBEnvironmentCheck() {
|
|
14969
|
-
return
|
|
14971
|
+
return H_() ? $_().then(() => !0).catch(() => !1) : !1;
|
|
14970
14972
|
}
|
|
14971
14973
|
/**
|
|
14972
14974
|
* Read all heartbeats.
|
|
14973
14975
|
*/
|
|
14974
14976
|
async read() {
|
|
14975
14977
|
if (await this._canUseIndexedDBPromise) {
|
|
14976
|
-
const t = await
|
|
14978
|
+
const t = await ey(this.app);
|
|
14977
14979
|
return t != null && t.heartbeats ? t : { heartbeats: [] };
|
|
14978
14980
|
} else
|
|
14979
14981
|
return { heartbeats: [] };
|
|
@@ -15028,20 +15030,20 @@ function Zd(e) {
|
|
|
15028
15030
|
* See the License for the specific language governing permissions and
|
|
15029
15031
|
* limitations under the License.
|
|
15030
15032
|
*/
|
|
15031
|
-
function
|
|
15033
|
+
function ay(e) {
|
|
15032
15034
|
cs(new Ao(
|
|
15033
15035
|
"platform-logger",
|
|
15034
|
-
(n) => new
|
|
15036
|
+
(n) => new bg(n),
|
|
15035
15037
|
"PRIVATE"
|
|
15036
15038
|
/* ComponentType.PRIVATE */
|
|
15037
15039
|
)), cs(new Ao(
|
|
15038
15040
|
"heartbeat",
|
|
15039
|
-
(n) => new
|
|
15041
|
+
(n) => new iy(n),
|
|
15040
15042
|
"PRIVATE"
|
|
15041
15043
|
/* ComponentType.PRIVATE */
|
|
15042
15044
|
)), $a(ds, Ud, e), $a(ds, Ud, "esm2017"), $a("fire-js", "");
|
|
15043
15045
|
}
|
|
15044
|
-
|
|
15046
|
+
ay("");
|
|
15045
15047
|
var ms = { exports: {} };
|
|
15046
15048
|
(function(e, n) {
|
|
15047
15049
|
(function(t, i) {
|
|
@@ -15747,13 +15749,13 @@ Consider loading an EventSource polyfill and making it available globally as Eve
|
|
|
15747
15749
|
}, t.default = Oe, Object.defineProperty(t, "__esModule", { value: !0 });
|
|
15748
15750
|
});
|
|
15749
15751
|
})(ms, ms.exports);
|
|
15750
|
-
var
|
|
15752
|
+
var sy = ms.exports, dy = {
|
|
15751
15753
|
NOT_INITIALIZED: "FeatureFlag not initialized. Call init() first.",
|
|
15752
15754
|
INVALID_CONFIG: "Invalid Flagsmith configuration",
|
|
15753
15755
|
FETCH_FAILED: "Failed to fetch Flagsmith configuration",
|
|
15754
15756
|
NO_USER_CONTEXT: "User context not set. Call setUser() first.",
|
|
15755
15757
|
ALREADY_INITIALIZED: "FeatureFlag is already initialized."
|
|
15756
|
-
}, Gd = "business", Vt,
|
|
15758
|
+
}, Gd = "business", Vt, ly = (Vt = class {
|
|
15757
15759
|
constructor() {
|
|
15758
15760
|
Xr(this, "flagsmithClient", null);
|
|
15759
15761
|
Xr(this, "userContext", null);
|
|
@@ -15763,12 +15765,12 @@ var ay = ms.exports, sy = {
|
|
|
15763
15765
|
}
|
|
15764
15766
|
ensureInitialized() {
|
|
15765
15767
|
if (!this.flagsmithClient)
|
|
15766
|
-
throw new Error(
|
|
15768
|
+
throw new Error(dy.NOT_INITIALIZED);
|
|
15767
15769
|
}
|
|
15768
15770
|
async init(n, t = []) {
|
|
15769
15771
|
if (!this.flagsmithClient)
|
|
15770
15772
|
try {
|
|
15771
|
-
this.flagsmithClient =
|
|
15773
|
+
this.flagsmithClient = sy.createFlagsmithInstance();
|
|
15772
15774
|
const i = t.reduce((r, o) => (r[o.feature.name] = o, r), {});
|
|
15773
15775
|
await this.flagsmithClient.init({
|
|
15774
15776
|
environmentID: n.apiKey,
|
|
@@ -15857,8 +15859,8 @@ var ay = ms.exports, sy = {
|
|
|
15857
15859
|
reset() {
|
|
15858
15860
|
this.flagsmithClient = null, this.userContext = null;
|
|
15859
15861
|
}
|
|
15860
|
-
}, Xr(Vt, "instance"), Vt),
|
|
15861
|
-
function
|
|
15862
|
+
}, Xr(Vt, "instance"), Vt), uy = ly.getInstance(), Hi = Xi(!1), ao = Xi([]), oi = Xi(null);
|
|
15863
|
+
function cy(e = uy) {
|
|
15862
15864
|
const n = () => Hi.value ? !0 : (console.warn("FeatureFlag is not initialized. Using default values."), !1), t = async (_, F = []) => {
|
|
15863
15865
|
if (Hi.value) {
|
|
15864
15866
|
console.warn("FeatureFlag is already initialized.");
|
|
@@ -15923,10 +15925,10 @@ function uy(e = ly) {
|
|
|
15923
15925
|
reset: u
|
|
15924
15926
|
};
|
|
15925
15927
|
}
|
|
15926
|
-
var
|
|
15928
|
+
var Xy = () => cy();
|
|
15927
15929
|
export {
|
|
15928
15930
|
uu as A,
|
|
15929
|
-
|
|
15931
|
+
D_ as B,
|
|
15930
15932
|
Ao as C,
|
|
15931
15933
|
su as D,
|
|
15932
15934
|
Vu as E,
|
|
@@ -15936,32 +15938,32 @@ export {
|
|
|
15936
15938
|
xu as I,
|
|
15937
15939
|
ee as J,
|
|
15938
15940
|
_e as L,
|
|
15939
|
-
|
|
15940
|
-
|
|
15941
|
-
|
|
15941
|
+
qy as S,
|
|
15942
|
+
Ky as _,
|
|
15943
|
+
Ly as a,
|
|
15942
15944
|
cs as b,
|
|
15943
|
-
|
|
15944
|
-
|
|
15945
|
-
|
|
15946
|
-
|
|
15947
|
-
|
|
15948
|
-
|
|
15949
|
-
|
|
15950
|
-
|
|
15945
|
+
$y as c,
|
|
15946
|
+
G_ as d,
|
|
15947
|
+
Wy as e,
|
|
15948
|
+
ky as f,
|
|
15949
|
+
jy as g,
|
|
15950
|
+
Hy as h,
|
|
15951
|
+
wy as i,
|
|
15952
|
+
Yy as j,
|
|
15951
15953
|
os as k,
|
|
15952
15954
|
Lu as l,
|
|
15953
|
-
|
|
15954
|
-
|
|
15955
|
-
|
|
15956
|
-
|
|
15957
|
-
|
|
15955
|
+
ag as m,
|
|
15956
|
+
U_ as n,
|
|
15957
|
+
Vy as o,
|
|
15958
|
+
Uy as p,
|
|
15959
|
+
Gy as q,
|
|
15958
15960
|
$a as r,
|
|
15959
|
-
|
|
15960
|
-
|
|
15961
|
-
|
|
15962
|
-
|
|
15963
|
-
|
|
15964
|
-
|
|
15965
|
-
|
|
15961
|
+
Zy as s,
|
|
15962
|
+
Jy as t,
|
|
15963
|
+
Ny as u,
|
|
15964
|
+
Xg as v,
|
|
15965
|
+
Xy as w,
|
|
15966
|
+
Dy as x,
|
|
15967
|
+
By as y,
|
|
15966
15968
|
ya as z
|
|
15967
15969
|
};
|