@esri/solutions-components 5.1.0-next.94 → 5.1.0-next.95
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/cdn/2ID55IJB.js +2 -0
- package/dist/cdn/2SGR44DX.js +2 -0
- package/dist/cdn/{C4UB6MNN.js → 3J47AYBV.js} +97 -97
- package/dist/cdn/{VOF34LDF.js → 4B7NJE47.js} +1 -1
- package/dist/cdn/{YVDSW2OQ.js → 5LTIZSXG.js} +1 -1
- package/dist/cdn/74MDW73I.js +2 -0
- package/dist/cdn/ADPYDJG6.js +2 -0
- package/dist/cdn/{FDE2V7FU.js → AJZHT4GA.js} +1 -1
- package/dist/cdn/{JQXKQHAG.js → DI7PQSFH.js} +1 -1
- package/dist/cdn/FVXS4LF5.js +2 -0
- package/dist/cdn/IRRMUFW7.js +2 -0
- package/dist/cdn/ITLTQWCX.js +2 -0
- package/dist/cdn/IYUTLV2O.js +2 -0
- package/dist/cdn/{3XGF3ZJO.js → KW6YOUWC.js} +1 -1
- package/dist/cdn/{LUZYJVG5.js → KYFNXHOH.js} +1 -1
- package/dist/cdn/{NXL2QN3P.js → R3MCMOLS.js} +1 -1
- package/dist/cdn/R4VHCXKS.js +2 -0
- package/dist/cdn/{5Z45KDQY.js → UHPN75WT.js} +1 -1
- package/dist/cdn/VESARS2D.js +7 -0
- package/dist/cdn/{D4GI6KPZ.js → WVRKV5SS.js} +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/solution-item-accordion/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/solutions-deployed-list/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/solutions-deployed-list/t9n/messages.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/converter.js +82 -86
- package/dist/chunks/get.js +387 -0
- package/dist/components/arcgis-solutions-assistant/customElement.js +5766 -5676
- package/dist/components/consent-manager/customElement.js +609 -638
- package/dist/components/solution-configure-titles/customElement.js +31 -28
- package/dist/components/solution-delete-dialog/customElement.js +57 -54
- package/dist/components/solution-deployed-card-panel/customElement.js +40 -37
- package/dist/components/solution-details-card/customElement.d.ts +4 -0
- package/dist/components/solution-details-card/customElement.js +45 -29
- package/dist/components/solution-details-card/index.js +1 -0
- package/dist/components/solution-item-accordion/customElement.d.ts +3 -2
- package/dist/components/solution-item-accordion/customElement.js +52 -35
- package/dist/components/solution-item-accordion/index.js +2 -0
- package/dist/components/solutions-all-panel/customElement.js +11 -11
- package/dist/components/solutions-deployed-list/customElement.d.ts +33 -0
- package/dist/components/solutions-deployed-list/customElement.js +38 -0
- package/dist/components/solutions-deployed-list/index.d.ts +1 -0
- package/dist/components/solutions-deployed-list/index.js +1 -0
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/loader.js +3 -2
- package/dist/solutions-components_commit.txt +7 -7
- package/dist/types/lumina.d.ts +6 -0
- package/dist/types/preact.d.ts +7 -0
- package/dist/types/react.d.ts +8 -0
- package/dist/types/stencil.d.ts +6 -0
- package/dist/utils/getRelatedInfos.d.ts +4 -0
- package/dist/utils/interfaces.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cdn/2L3RREZ4.js +0 -2
- package/dist/cdn/2WHAF4H7.js +0 -2
- package/dist/cdn/AKKTG2RD.js +0 -2
- package/dist/cdn/DLH53PYM.js +0 -7
- package/dist/cdn/P24CZ4HM.js +0 -2
- package/dist/cdn/R2G4DDRZ.js +0 -2
- package/dist/cdn/SO3S3WP4.js +0 -2
- package/dist/cdn/UBLDT5XD.js +0 -2
- package/dist/cdn/ZONXYZVU.js +0 -2
- package/dist/chunks/get-portal-url.js +0 -345
|
@@ -1,51 +1,22 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { g as
|
|
4
|
-
import { u as
|
|
5
|
-
import { LitElement as
|
|
6
|
-
import { css as
|
|
7
|
-
function fi(t) {
|
|
8
|
-
return t.owner ? Promise.resolve(t.owner) : t.item && t.item.owner ? Promise.resolve(t.item.owner) : t.authentication && t.authentication.getUsername ? t.authentication.getUsername() : Promise.reject(new Error("Could not determine the owner of this item. Pass the `owner`, `item.owner`, or `authentication` option."));
|
|
9
|
-
}
|
|
10
|
-
function di(t) {
|
|
11
|
-
return Array.isArray(t) && Array.isArray(t[0]) && Array.isArray(t[1]);
|
|
12
|
-
}
|
|
13
|
-
function pi(t) {
|
|
14
|
-
return t.join(",");
|
|
15
|
-
}
|
|
16
|
-
function dn(t, e, r) {
|
|
17
|
-
if (!t)
|
|
18
|
-
return t;
|
|
19
|
-
let n = null;
|
|
20
|
-
return typeof t.thumbnail == "string" && (n = `${e}/content/items/${t.id}/info/${t.thumbnail}`, n && t.access !== "public" && r && (n += `?${r}`)), Object.assign(Object.assign({}, t), n ? { thumbnailUrl: n } : {});
|
|
21
|
-
}
|
|
2
|
+
import { c as ii } from "../../chunks/runtime.js";
|
|
3
|
+
import { d as ai, g as ot, i as si, b as oi, a as ui, r as ci, _ as cn, c as ln, e as fn } from "../../chunks/get.js";
|
|
4
|
+
import { u as li } from "../../chunks/useT9n.js";
|
|
5
|
+
import { LitElement as fi, createEvent as di } from "@arcgis/lumina";
|
|
6
|
+
import { css as pi } from "lit";
|
|
22
7
|
function gi(t) {
|
|
23
|
-
return
|
|
24
|
-
const r = t.folderId ? `${
|
|
25
|
-
t.params = Object.assign(Object.assign({}, t.params), t.item), t.params.extent &&
|
|
26
|
-
const n =
|
|
27
|
-
return typeof i.thumbnailUrl == "string" && typeof s == "string" && i.thumbnailUrl.split("?")[0] === s.split("?")[0] && delete t.params.thumbnailUrl,
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
function pn(t, e) {
|
|
31
|
-
const r = hi(t, e), n = Object.assign({ httpMethod: "GET" }, e);
|
|
32
|
-
return cn(r, n).then(async (i) => {
|
|
33
|
-
const s = e?.portal || $e(e);
|
|
34
|
-
let a;
|
|
35
|
-
if (e?.authentication && typeof e.authentication != "string" && i.access !== "public")
|
|
36
|
-
try {
|
|
37
|
-
a = await e.authentication.getToken(r);
|
|
38
|
-
} catch {
|
|
39
|
-
}
|
|
40
|
-
return dn(i, s, a);
|
|
8
|
+
return ai(t).then((e) => {
|
|
9
|
+
const r = t.folderId ? `${ot(t)}/content/users/${e}/${t.folderId}/items/${t.item.id}/update` : `${ot(t)}/content/users/${e}/items/${t.item.id}/update`;
|
|
10
|
+
t.params = Object.assign(Object.assign({}, t.params), t.item), t.params.extent && si(t.params.extent) && (t.params.extent = oi(t.params.extent));
|
|
11
|
+
const n = ot(t), i = ui(Object.assign(Object.assign({}, t.item), { access: t.item.access }), n), s = t.params.thumbnailUrl;
|
|
12
|
+
return typeof i.thumbnailUrl == "string" && typeof s == "string" && i.thumbnailUrl.split("?")[0] === s.split("?")[0] && delete t.params.thumbnailUrl, ci(r, t);
|
|
41
13
|
});
|
|
42
14
|
}
|
|
43
|
-
|
|
44
|
-
function mi() {
|
|
15
|
+
function hi() {
|
|
45
16
|
var t;
|
|
46
17
|
return !!(!((t = window?.navigator) === null || t === void 0) && t.globalPrivacyControl);
|
|
47
18
|
}
|
|
48
|
-
function
|
|
19
|
+
function mi(t = {}) {
|
|
49
20
|
const { disabled: e, portal: r, requireConsent: n, userPrivacySettings: i } = t;
|
|
50
21
|
if (n)
|
|
51
22
|
if (i?.accepted) {
|
|
@@ -56,19 +27,19 @@ function vi(t = {}) {
|
|
|
56
27
|
return (
|
|
57
28
|
// if accepted were false, it would mean that the user didn't actually deny these, just that they have not made a selection
|
|
58
29
|
// so we only pay attention to functional, performance, and targeting if accepted is true
|
|
59
|
-
i?.accepted === !0 && i?.functional === !1 && i?.performance === !1 && i?.targeting === !1 || e || r?.eueiEnabled === !1 ||
|
|
30
|
+
i?.accepted === !0 && i?.functional === !1 && i?.performance === !1 && i?.targeting === !1 || e || r?.eueiEnabled === !1 || hi() ? !0 : !(!r || vi(r) || yi(r) || bi(r))
|
|
60
31
|
);
|
|
61
32
|
}
|
|
62
|
-
function
|
|
33
|
+
function vi(t) {
|
|
63
34
|
return t.eueiEnabled && t.user && t.user.orgId === t.id;
|
|
64
35
|
}
|
|
65
|
-
function
|
|
36
|
+
function yi(t) {
|
|
66
37
|
return t.user && !t.user.orgId && t.ipCntryCode === "US";
|
|
67
38
|
}
|
|
68
|
-
function
|
|
39
|
+
function bi(t) {
|
|
69
40
|
return !t.user && t.ipCntryCode === "US";
|
|
70
41
|
}
|
|
71
|
-
const
|
|
42
|
+
const $e = {
|
|
72
43
|
storage: {},
|
|
73
44
|
memory: !0,
|
|
74
45
|
get(t) {
|
|
@@ -102,25 +73,25 @@ const Ce = {
|
|
|
102
73
|
this.memory || (console.error("setting local storage failed, falling back to in-memory storage"), this.memory = !0), delete this.storage[t];
|
|
103
74
|
}
|
|
104
75
|
}
|
|
105
|
-
},
|
|
106
|
-
function
|
|
76
|
+
}, dn = "esri-telemetry";
|
|
77
|
+
function wi(t) {
|
|
107
78
|
return new Promise((r, n) => {
|
|
108
|
-
t.onload = r, t.onerror = n, (!
|
|
79
|
+
t.onload = r, t.onerror = n, (!Ei(t) || t.body) && r();
|
|
109
80
|
});
|
|
110
81
|
}
|
|
111
|
-
function
|
|
82
|
+
function Si(t) {
|
|
112
83
|
const { id: e, dataAttribute: r } = t;
|
|
113
|
-
return !!document.getElementById(e) || !!document.querySelector(`[data-${
|
|
84
|
+
return !!document.getElementById(e) || !!document.querySelector(`[data-${dn}="${r}"]`);
|
|
114
85
|
}
|
|
115
|
-
function
|
|
86
|
+
function Ei(t) {
|
|
116
87
|
const { body: e, src: r, id: n, dataAttribute: i, section: s = "body", type: a = "text/javascript", async: o = !1, defer: u = !1, onload: l, onerror: f } = t;
|
|
117
88
|
if (typeof window > "u")
|
|
118
|
-
throw new
|
|
119
|
-
if (
|
|
89
|
+
throw new pn("Window is undefined: Cannot add script element.");
|
|
90
|
+
if (Si(t)) {
|
|
120
91
|
console.log(`script (${n || i}) is already present, skipping`);
|
|
121
92
|
return;
|
|
122
93
|
}
|
|
123
|
-
const p =
|
|
94
|
+
const p = Ii({
|
|
124
95
|
id: n,
|
|
125
96
|
dataAttribute: i,
|
|
126
97
|
type: a,
|
|
@@ -133,13 +104,13 @@ function Ii(t) {
|
|
|
133
104
|
});
|
|
134
105
|
return s === "body" ? document.body.appendChild(p) : document.head.appendChild(p);
|
|
135
106
|
}
|
|
136
|
-
class
|
|
107
|
+
class pn extends Error {
|
|
137
108
|
}
|
|
138
|
-
function
|
|
109
|
+
function Ii({ id: t, dataAttribute: e, type: r, async: n, defer: i, body: s, src: a, onload: o, onerror: u }) {
|
|
139
110
|
const l = document.createElement("script");
|
|
140
|
-
return t && (l.id = t), e && l.setAttribute(`data-${
|
|
111
|
+
return t && (l.id = t), e && l.setAttribute(`data-${dn}`, e), a && (l.src = a), s && (l.innerText = s), l.type = r, l.async = n, l.defer = i, o && (l.onload = o), u && (l.onerror = u), l;
|
|
141
112
|
}
|
|
142
|
-
function
|
|
113
|
+
function Ai(t) {
|
|
143
114
|
return t.map((e) => {
|
|
144
115
|
const r = [];
|
|
145
116
|
return ["src", "id", "dataAttribute", "type"].forEach((n) => {
|
|
@@ -173,7 +144,7 @@ const Oi = [
|
|
|
173
144
|
"esriitalia.it",
|
|
174
145
|
"esri.pl"
|
|
175
146
|
];
|
|
176
|
-
class
|
|
147
|
+
class Pi {
|
|
177
148
|
constructor(e) {
|
|
178
149
|
var r, n, i;
|
|
179
150
|
this.trackers = [], this.options = e, this.debug = e.debug, this.suppressDisabledWarnings = e.suppressDisabledWarnings, this.logger = e.logger || console, e.userPrivacySettings && (this._userPrivacySettings = e.userPrivacySettings), e.requireConsent && !e.userPrivacySettings && (this._userPrivacySettings = {
|
|
@@ -181,9 +152,9 @@ class xi {
|
|
|
181
152
|
performance: !1,
|
|
182
153
|
targeting: !1,
|
|
183
154
|
functional: !1,
|
|
184
|
-
id:
|
|
155
|
+
id: ki(),
|
|
185
156
|
timestamp: Date.now()
|
|
186
|
-
}, e.userPrivacySettings = this._userPrivacySettings), this.disabled =
|
|
157
|
+
}, e.userPrivacySettings = this._userPrivacySettings), this.disabled = mi(e), this.disabled && !this.suppressDisabledWarnings && this.logger.info("Telemetry Disabled");
|
|
187
158
|
const s = ((r = e.portal) === null || r === void 0 ? void 0 : r.user) || e.user;
|
|
188
159
|
s && this.setUser(s, (i = (n = e.portal) === null || n === void 0 ? void 0 : n.subscriptionInfo) === null || i === void 0 ? void 0 : i.type), this.disabled || this.initializeTrackers();
|
|
189
160
|
}
|
|
@@ -286,7 +257,7 @@ class xi {
|
|
|
286
257
|
this.logWorkflow(n);
|
|
287
258
|
}
|
|
288
259
|
getWorkflow(e) {
|
|
289
|
-
const r =
|
|
260
|
+
const r = $e.get(`TELEMETRY-WORKFLOW:${e}`);
|
|
290
261
|
if (r) {
|
|
291
262
|
const n = Date.now() - r.start, i = 1800 * 1e3;
|
|
292
263
|
if (n < i)
|
|
@@ -295,10 +266,10 @@ class xi {
|
|
|
295
266
|
}
|
|
296
267
|
}
|
|
297
268
|
saveWorkflow(e) {
|
|
298
|
-
|
|
269
|
+
$e.set(`TELEMETRY-WORKFLOW:${e.name}`, e);
|
|
299
270
|
}
|
|
300
271
|
deleteWorkflow(e) {
|
|
301
|
-
|
|
272
|
+
$e.delete(`TELEMETRY-WORKFLOW:${e.name}`);
|
|
302
273
|
}
|
|
303
274
|
logWorkflow(e = {}) {
|
|
304
275
|
e = this.preProcess(e);
|
|
@@ -323,7 +294,7 @@ class xi {
|
|
|
323
294
|
userSince: this.user.created,
|
|
324
295
|
internalUser: this.user.internalUser || !1,
|
|
325
296
|
accountType: this.user.accountType
|
|
326
|
-
}), Object.entries(Object.assign(Object.assign({}, e), n)).reduce(
|
|
297
|
+
}), Object.entries(Object.assign(Object.assign({}, e), n)).reduce(xi(r.omitComplexData, this.logger), {});
|
|
327
298
|
}
|
|
328
299
|
/**
|
|
329
300
|
* Disable all configured trackers. This does not deterministically unload
|
|
@@ -361,21 +332,21 @@ class xi {
|
|
|
361
332
|
n && !n.hasError && (n.disabled = !1, (r = n.enable) === null || r === void 0 || r.call(n));
|
|
362
333
|
}
|
|
363
334
|
}
|
|
364
|
-
function
|
|
335
|
+
function xi(t, e) {
|
|
365
336
|
return function(r, [n, i]) {
|
|
366
|
-
return
|
|
337
|
+
return Ti(i) ? r[n] = i : t || (e.warn(`You are trying to log a non-primitive value, ${n}:${JSON.stringify(i)}. This will get logged as [object Object]`), r[n] = i), r;
|
|
367
338
|
};
|
|
368
339
|
}
|
|
369
|
-
function
|
|
340
|
+
function Ti(t) {
|
|
370
341
|
return ["string", "number", "boolean", "undefined"].includes(typeof t) || t && typeof t.valueOf() == "string";
|
|
371
342
|
}
|
|
372
|
-
function
|
|
343
|
+
function ki() {
|
|
373
344
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(t) {
|
|
374
345
|
const e = Math.random() * 16 | 0;
|
|
375
346
|
return (t === "x" ? e : e & 3 | 8).toString(16);
|
|
376
347
|
});
|
|
377
348
|
}
|
|
378
|
-
class
|
|
349
|
+
class ji {
|
|
379
350
|
constructor(e) {
|
|
380
351
|
var r;
|
|
381
352
|
if (this.name = "googleAnalytics", this.dimensions = {}, this.metrics = {}, this.isInitialized = !1, typeof window < "u" && !(!((r = e?.measurementIds) === null || r === void 0) && r.length))
|
|
@@ -392,13 +363,13 @@ class Ni {
|
|
|
392
363
|
];
|
|
393
364
|
}
|
|
394
365
|
getScriptTags() {
|
|
395
|
-
return
|
|
366
|
+
return Ai(this._getScripts());
|
|
396
367
|
}
|
|
397
368
|
async init() {
|
|
398
369
|
if (!this.isInitialized) {
|
|
399
370
|
if (typeof window > "u")
|
|
400
|
-
throw new
|
|
401
|
-
await Promise.all(this._getScripts().map((e) =>
|
|
371
|
+
throw new pn("Window is undefined: Cannot add script element.");
|
|
372
|
+
await Promise.all(this._getScripts().map((e) => wi(e))), this.injectConfig(), this.isInitialized = !0;
|
|
402
373
|
}
|
|
403
374
|
}
|
|
404
375
|
// we log page views manually, even though ga4 can do so automatically for pages now
|
|
@@ -407,7 +378,7 @@ class Ni {
|
|
|
407
378
|
return window.gtag("event", "page_view", i), !0;
|
|
408
379
|
}
|
|
409
380
|
logEvent(e) {
|
|
410
|
-
let { action: r } = e, n =
|
|
381
|
+
let { action: r } = e, n = cn(e, ["action"]);
|
|
411
382
|
const i = r || "other", s = this.buildCustomParams(n);
|
|
412
383
|
return window.gtag("event", i, s), !0;
|
|
413
384
|
}
|
|
@@ -470,9 +441,9 @@ class Ni {
|
|
|
470
441
|
}
|
|
471
442
|
}
|
|
472
443
|
const ar = "TELEMETRY_COGNITO_CREDENTIALS";
|
|
473
|
-
function
|
|
444
|
+
function Ni(t, e = {}) {
|
|
474
445
|
const n = `https://cognito-identity${e.fips === !0 ? "-fips" : ""}.us-east-1.amazonaws.com/`;
|
|
475
|
-
let i =
|
|
446
|
+
let i = $e.get(ar);
|
|
476
447
|
if (i && Date.now() / 1e3 < i.Expiration)
|
|
477
448
|
return Promise.resolve(i);
|
|
478
449
|
const s = {
|
|
@@ -501,39 +472,39 @@ function Mi(t, e = {}) {
|
|
|
501
472
|
if (!a.ok)
|
|
502
473
|
throw new Error(a.statusText);
|
|
503
474
|
return a.json();
|
|
504
|
-
}).then(({ Credentials: a }) => (
|
|
475
|
+
}).then(({ Credentials: a }) => ($e.set(ar, a), a));
|
|
505
476
|
}
|
|
506
|
-
function
|
|
477
|
+
function gn({ telemetryData: t, dimensionLookup: e = {}, excludeKeys: r = [] }) {
|
|
507
478
|
return Object.keys(t).filter((n) => !r.includes(n)).map((n) => e[n] ? {
|
|
508
|
-
key:
|
|
479
|
+
key: $i(e, n),
|
|
509
480
|
value: t[n]
|
|
510
481
|
} : {
|
|
511
482
|
key: n,
|
|
512
|
-
value:
|
|
483
|
+
value: Mi(t, n)
|
|
513
484
|
}).reduce((n, { key: i, value: s }) => (n[i] = s, n), {});
|
|
514
485
|
}
|
|
515
|
-
function
|
|
486
|
+
function Mi(t, e) {
|
|
516
487
|
return e === "json" ? t[e] ? JSON.stringify(t[e]) : "null" : t[e] === void 0 ? "null" : t[e].toString();
|
|
517
488
|
}
|
|
518
|
-
function
|
|
489
|
+
function $i(t, e) {
|
|
519
490
|
return `dimension${t[e]}`;
|
|
520
491
|
}
|
|
521
|
-
const
|
|
522
|
-
function
|
|
523
|
-
return Object.keys(t).filter((r) => e[r] ||
|
|
524
|
-
key:
|
|
492
|
+
const Ci = ["size", "duration", "position", "number", "count"];
|
|
493
|
+
function hn(t, e = {}) {
|
|
494
|
+
return Object.keys(t).filter((r) => e[r] || Ci.includes(r)).map((r) => e[r] ? {
|
|
495
|
+
key: _i(e, r),
|
|
525
496
|
value: t[r]
|
|
526
497
|
} : {
|
|
527
498
|
key: r,
|
|
528
499
|
value: t[r]
|
|
529
500
|
}).reduce((r, { key: n, value: i }) => (r[n] = i, r), {});
|
|
530
501
|
}
|
|
531
|
-
function
|
|
502
|
+
function _i(t, e) {
|
|
532
503
|
return `metric${t[e]}`;
|
|
533
504
|
}
|
|
534
|
-
function
|
|
505
|
+
function Di({ event: t = {}, dimensionLookup: e = {}, metricLookup: r = {} }) {
|
|
535
506
|
var n, i;
|
|
536
|
-
const { pathname: s, eventType: a = "other" } = t, o =
|
|
507
|
+
const { pathname: s, eventType: a = "other" } = t, o = hn(t, r), u = gn({
|
|
537
508
|
telemetryData: Object.assign({ eventType: a }, t),
|
|
538
509
|
dimensionLookup: e,
|
|
539
510
|
excludeKeys: [
|
|
@@ -546,7 +517,7 @@ function Ui({ event: t = {}, dimensionLookup: e = {}, metricLookup: r = {} }) {
|
|
|
546
517
|
return typeof document < "u" && document.referrer && (l.referrer = document.referrer), typeof window < "u" && !l.hostname && (l.hostname = (n = window.location) === null || n === void 0 ? void 0 : n.hostname), l.path = typeof window < "u" && window.location.pathname ? (i = window.location) === null || i === void 0 ? void 0 : i.pathname : s, l;
|
|
547
518
|
}
|
|
548
519
|
function Ri({ page: t, previousPage: e = {}, options: r = {}, dimensionLookup: n = {}, metricLookup: i = {} }) {
|
|
549
|
-
const s =
|
|
520
|
+
const s = hn(r, i), a = gn({
|
|
550
521
|
telemetryData: r,
|
|
551
522
|
dimensionLookup: n,
|
|
552
523
|
excludeKeys: [
|
|
@@ -570,84 +541,84 @@ function sr(t, e, r, n, i) {
|
|
|
570
541
|
for (e = e.split ? e.split(".") : e, n = 0; n < e.length; n++) t = t ? t[e[n]] : i;
|
|
571
542
|
return t === i ? r : t;
|
|
572
543
|
}
|
|
573
|
-
var
|
|
574
|
-
},
|
|
575
|
-
|
|
544
|
+
var Ui = "function", zi = "string", te = "undefined", Vi = "boolean", Ge = "object", Li = "array", Wi = "number", Hi = "symbol", Ki = "null", qi = function() {
|
|
545
|
+
}, mn = "any", vn = "*", ye = "__", Gi = "form", Fi = "input", Bi = "button", Yi = "select", Fe = typeof process !== te ? process : {};
|
|
546
|
+
Fe.env && Fe.env.NODE_ENV;
|
|
576
547
|
var Q = typeof document !== te;
|
|
577
|
-
|
|
548
|
+
Fe.versions != null && Fe.versions.node != null;
|
|
578
549
|
typeof Deno !== te && Deno.core;
|
|
579
550
|
Q && window.name === "nodejs" || typeof navigator !== te && typeof navigator.userAgent !== te && (navigator.userAgent.includes("Node.js") || navigator.userAgent.includes("jsdom"));
|
|
580
|
-
function
|
|
551
|
+
function yn(t, e) {
|
|
581
552
|
return e.charAt(0)[t]() + e.slice(1);
|
|
582
553
|
}
|
|
583
|
-
var
|
|
584
|
-
function
|
|
585
|
-
return
|
|
554
|
+
var Xi = yn.bind(null, "toUpperCase"), Ji = yn.bind(null, "toLowerCase");
|
|
555
|
+
function Qi(t) {
|
|
556
|
+
return bn(t) ? Xi(Ki) : typeof t === Ge ? ra(t) : Object.prototype.toString.call(t).slice(8, -1);
|
|
586
557
|
}
|
|
587
|
-
function
|
|
558
|
+
function Be(t, e) {
|
|
588
559
|
e === void 0 && (e = !0);
|
|
589
|
-
var r =
|
|
590
|
-
return e ?
|
|
560
|
+
var r = Qi(t);
|
|
561
|
+
return e ? Ji(r) : r;
|
|
591
562
|
}
|
|
592
563
|
function Re(t, e) {
|
|
593
564
|
return typeof e === t;
|
|
594
565
|
}
|
|
595
|
-
var Z = Re.bind(null,
|
|
596
|
-
Re.bind(null,
|
|
597
|
-
function
|
|
566
|
+
var Z = Re.bind(null, Ui), ce = Re.bind(null, zi), we = Re.bind(null, te), Zi = Re.bind(null, Vi);
|
|
567
|
+
Re.bind(null, Hi);
|
|
568
|
+
function bn(t) {
|
|
598
569
|
return t === null;
|
|
599
570
|
}
|
|
600
|
-
function
|
|
601
|
-
return
|
|
571
|
+
function ea(t) {
|
|
572
|
+
return Be(t) === Wi && !isNaN(t);
|
|
602
573
|
}
|
|
603
|
-
function
|
|
604
|
-
return
|
|
574
|
+
function wn(t) {
|
|
575
|
+
return Be(t) === Li;
|
|
605
576
|
}
|
|
606
577
|
function J(t) {
|
|
607
|
-
if (!
|
|
578
|
+
if (!ta(t)) return !1;
|
|
608
579
|
for (var e = t; Object.getPrototypeOf(e) !== null; ) e = Object.getPrototypeOf(e);
|
|
609
580
|
return Object.getPrototypeOf(t) === e;
|
|
610
581
|
}
|
|
611
|
-
function
|
|
612
|
-
return t && (typeof t ===
|
|
582
|
+
function ta(t) {
|
|
583
|
+
return t && (typeof t === Ge || t !== null);
|
|
613
584
|
}
|
|
614
|
-
function
|
|
585
|
+
function ra(t) {
|
|
615
586
|
return Z(t.constructor) ? t.constructor.name : null;
|
|
616
587
|
}
|
|
617
|
-
function
|
|
618
|
-
return t instanceof Error || ce(t.message) && t.constructor &&
|
|
588
|
+
function na(t) {
|
|
589
|
+
return t instanceof Error || ce(t.message) && t.constructor && ea(t.constructor.stackTraceLimit);
|
|
619
590
|
}
|
|
620
|
-
function
|
|
621
|
-
if (typeof e != "object" ||
|
|
591
|
+
function Sn(t, e) {
|
|
592
|
+
if (typeof e != "object" || bn(e)) return !1;
|
|
622
593
|
if (e instanceof t) return !0;
|
|
623
|
-
var r =
|
|
624
|
-
if (
|
|
625
|
-
if (
|
|
594
|
+
var r = Be(new t(""));
|
|
595
|
+
if (na(e)) for (; e; ) {
|
|
596
|
+
if (Be(e) === r) return !0;
|
|
626
597
|
e = Object.getPrototypeOf(e);
|
|
627
598
|
}
|
|
628
599
|
return !1;
|
|
629
600
|
}
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
function
|
|
601
|
+
Sn.bind(null, TypeError);
|
|
602
|
+
Sn.bind(null, SyntaxError);
|
|
603
|
+
function Je(t, e) {
|
|
633
604
|
var r = t instanceof Element || t instanceof HTMLDocument;
|
|
634
|
-
return r && e ?
|
|
605
|
+
return r && e ? ia(t, e) : r;
|
|
635
606
|
}
|
|
636
|
-
function
|
|
607
|
+
function ia(t, e) {
|
|
637
608
|
return e === void 0 && (e = ""), t && t.nodeName === e.toUpperCase();
|
|
638
609
|
}
|
|
639
|
-
function
|
|
610
|
+
function Qe(t) {
|
|
640
611
|
var e = [].slice.call(arguments, 1);
|
|
641
612
|
return function() {
|
|
642
613
|
return t.apply(void 0, [].slice.call(arguments).concat(e));
|
|
643
614
|
};
|
|
644
615
|
}
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
function
|
|
650
|
-
return t ?
|
|
616
|
+
Qe(Je, Gi);
|
|
617
|
+
Qe(Je, Bi);
|
|
618
|
+
Qe(Je, Fi);
|
|
619
|
+
Qe(Je, Yi);
|
|
620
|
+
function aa(t) {
|
|
621
|
+
return t ? wn(t) ? t : [t] : [];
|
|
651
622
|
}
|
|
652
623
|
function or(t) {
|
|
653
624
|
try {
|
|
@@ -656,19 +627,19 @@ function or(t) {
|
|
|
656
627
|
return null;
|
|
657
628
|
}
|
|
658
629
|
}
|
|
659
|
-
function
|
|
630
|
+
function sa() {
|
|
660
631
|
if (Q) {
|
|
661
632
|
var t = navigator, e = t.languages;
|
|
662
633
|
return t.userLanguage || (e && e.length ? e[0] : t.language);
|
|
663
634
|
}
|
|
664
635
|
}
|
|
665
|
-
function
|
|
636
|
+
function oa() {
|
|
666
637
|
try {
|
|
667
638
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
668
639
|
} catch {
|
|
669
640
|
}
|
|
670
641
|
}
|
|
671
|
-
function
|
|
642
|
+
function ua(t) {
|
|
672
643
|
return (function(e) {
|
|
673
644
|
for (var r, n = /* @__PURE__ */ Object.create(null), i = /([^&=]+)=?([^&]*)/g; r = i.exec(e); ) {
|
|
674
645
|
var s = or(r[1]), a = or(r[2]);
|
|
@@ -679,7 +650,7 @@ function ca(t) {
|
|
|
679
650
|
}
|
|
680
651
|
for (var u in n) {
|
|
681
652
|
var l = u.split("[");
|
|
682
|
-
l.length > 1 && (
|
|
653
|
+
l.length > 1 && (ca(n, l.map(function(f) {
|
|
683
654
|
return f.replace(/[?[\]\\ ]/g, "");
|
|
684
655
|
}), n[u]), delete n[u]);
|
|
685
656
|
}
|
|
@@ -688,7 +659,7 @@ function ca(t) {
|
|
|
688
659
|
return Q && window.location.search.substring(1);
|
|
689
660
|
})());
|
|
690
661
|
}
|
|
691
|
-
function
|
|
662
|
+
function ca(t, e, r) {
|
|
692
663
|
for (var n = e.length - 1, i = 0; i < n; ++i) {
|
|
693
664
|
var s = e[i];
|
|
694
665
|
if (s === "__proto__" || s === "constructor") break;
|
|
@@ -703,15 +674,15 @@ function be() {
|
|
|
703
674
|
}
|
|
704
675
|
return t;
|
|
705
676
|
}
|
|
706
|
-
var ge = "global",
|
|
677
|
+
var ge = "global", Oe = ye + ge + ye, Pe = typeof self === Ge && self.self === self && self || typeof global === Ge && global[ge] === global && global || void 0;
|
|
707
678
|
function fe(t) {
|
|
708
|
-
return Oe
|
|
679
|
+
return Pe[Oe][t];
|
|
709
680
|
}
|
|
710
681
|
function de(t, e) {
|
|
711
|
-
return Oe
|
|
682
|
+
return Pe[Oe][t] = e;
|
|
712
683
|
}
|
|
713
684
|
function Te(t) {
|
|
714
|
-
delete Oe
|
|
685
|
+
delete Pe[Oe][t];
|
|
715
686
|
}
|
|
716
687
|
function ke(t, e, r) {
|
|
717
688
|
var n;
|
|
@@ -724,17 +695,17 @@ function ke(t, e, r) {
|
|
|
724
695
|
}
|
|
725
696
|
return n || r;
|
|
726
697
|
}
|
|
727
|
-
Oe
|
|
728
|
-
var
|
|
698
|
+
Pe[Oe] || (Pe[Oe] = {});
|
|
699
|
+
var ze = {};
|
|
729
700
|
function Kt(t) {
|
|
730
|
-
if (typeof
|
|
701
|
+
if (typeof ze[t] !== te) return ze[t];
|
|
731
702
|
try {
|
|
732
703
|
var e = window[t];
|
|
733
704
|
e.setItem(te, te), e.removeItem(te);
|
|
734
705
|
} catch {
|
|
735
|
-
return
|
|
706
|
+
return ze[t] = !1;
|
|
736
707
|
}
|
|
737
|
-
return
|
|
708
|
+
return ze[t] = !0;
|
|
738
709
|
}
|
|
739
710
|
function N() {
|
|
740
711
|
return N = Object.assign ? Object.assign.bind() : function(t) {
|
|
@@ -745,16 +716,16 @@ function N() {
|
|
|
745
716
|
return t;
|
|
746
717
|
}, N.apply(null, arguments);
|
|
747
718
|
}
|
|
748
|
-
var ue = "function", ie = "undefined",
|
|
719
|
+
var ue = "function", ie = "undefined", Ce = "reducer", En = "@@redux/", kt = En + "INIT", la = En + Math.random().toString(36), ur = /* @__PURE__ */ (function() {
|
|
749
720
|
return typeof Symbol === ue && Symbol.observable || "@@observable";
|
|
750
|
-
})(),
|
|
751
|
-
function
|
|
721
|
+
})(), Ve = " != " + ue;
|
|
722
|
+
function In(t, e, r) {
|
|
752
723
|
var n;
|
|
753
724
|
if (typeof e === ue && typeof r === ie && (r = e, e = void 0), typeof r !== ie) {
|
|
754
|
-
if (typeof r !== ue) throw new Error("enhancer" +
|
|
755
|
-
return r(
|
|
725
|
+
if (typeof r !== ue) throw new Error("enhancer" + Ve);
|
|
726
|
+
return r(In)(t, e);
|
|
756
727
|
}
|
|
757
|
-
if (typeof t !== ue) throw new Error(
|
|
728
|
+
if (typeof t !== ue) throw new Error(Ce + Ve);
|
|
758
729
|
var i = t, s = e, a = [], o = a, u = !1;
|
|
759
730
|
function l() {
|
|
760
731
|
o === a && (o = a.slice());
|
|
@@ -763,7 +734,7 @@ function Pn(t, e, r) {
|
|
|
763
734
|
return s;
|
|
764
735
|
}
|
|
765
736
|
function p(b) {
|
|
766
|
-
if (typeof b !== ue) throw new Error("Listener" +
|
|
737
|
+
if (typeof b !== ue) throw new Error("Listener" + Ve);
|
|
767
738
|
var S = !0;
|
|
768
739
|
return l(), o.push(b), function() {
|
|
769
740
|
if (S) {
|
|
@@ -776,7 +747,7 @@ function Pn(t, e, r) {
|
|
|
776
747
|
function g(b) {
|
|
777
748
|
if (!J(b)) throw new Error("Act != obj");
|
|
778
749
|
if (typeof b.type === ie) throw new Error("ActType " + ie);
|
|
779
|
-
if (u) throw new Error("Dispatch in " +
|
|
750
|
+
if (u) throw new Error("Dispatch in " + Ce);
|
|
780
751
|
try {
|
|
781
752
|
u = !0, s = i(s, b);
|
|
782
753
|
} finally {
|
|
@@ -786,7 +757,7 @@ function Pn(t, e, r) {
|
|
|
786
757
|
return b;
|
|
787
758
|
}
|
|
788
759
|
return g({ type: kt }), (n = { dispatch: g, subscribe: p, getState: f, replaceReducer: function(b) {
|
|
789
|
-
if (typeof b !== ue) throw new Error("next " +
|
|
760
|
+
if (typeof b !== ue) throw new Error("next " + Ce + Ve);
|
|
790
761
|
i = b, g({ type: kt });
|
|
791
762
|
} })[ur] = function() {
|
|
792
763
|
var b, S = p;
|
|
@@ -801,9 +772,9 @@ function Pn(t, e, r) {
|
|
|
801
772
|
}, b;
|
|
802
773
|
}, n;
|
|
803
774
|
}
|
|
804
|
-
function
|
|
775
|
+
function fa(t, e) {
|
|
805
776
|
var r = e && e.type;
|
|
806
|
-
return "action " + (r && r.toString() || "?") +
|
|
777
|
+
return "action " + (r && r.toString() || "?") + Ce + " " + t + " returns " + ie;
|
|
807
778
|
}
|
|
808
779
|
function xe() {
|
|
809
780
|
var t = [].slice.call(arguments);
|
|
@@ -815,7 +786,7 @@ function xe() {
|
|
|
815
786
|
};
|
|
816
787
|
});
|
|
817
788
|
}
|
|
818
|
-
function
|
|
789
|
+
function da() {
|
|
819
790
|
var t = arguments;
|
|
820
791
|
return function(e) {
|
|
821
792
|
return function(r, n, i) {
|
|
@@ -828,14 +799,14 @@ function pa() {
|
|
|
828
799
|
};
|
|
829
800
|
};
|
|
830
801
|
}
|
|
831
|
-
var le = ye + "anon_id", he = ye + "user_id", Ee = ye + "user_traits", jt = "analytics", oe = "userId", Se = "anonymousId",
|
|
802
|
+
var le = ye + "anon_id", he = ye + "user_id", Ee = ye + "user_traits", jt = "analytics", oe = "userId", Se = "anonymousId", Ke = ["bootstrap", "params", "campaign", "initializeStart", "initialize", "initializeEnd", "ready", "resetStart", "reset", "resetEnd", "pageStart", "page", "pageEnd", "pageAborted", "trackStart", "track", "trackEnd", "trackAborted", "identifyStart", "identify", "identifyEnd", "identifyAborted", "userIdChanged", "registerPlugins", "enablePlugin", "disablePlugin", "online", "offline", "setItemStart", "setItem", "setItemEnd", "setItemAborted", "removeItemStart", "removeItem", "removeItemEnd", "removeItemAborted"], Nt = ["name", "EVENTS", "config", "loaded"], j = Ke.reduce(function(t, e) {
|
|
832
803
|
return t[e] = e, t;
|
|
833
804
|
}, { registerPluginType: function(t) {
|
|
834
805
|
return "registerPlugin:" + t;
|
|
835
806
|
}, pluginReadyType: function(t) {
|
|
836
807
|
return "ready:" + t;
|
|
837
808
|
} }), cr = /^utm_/, lr = /^an_prop_/, fr = /^an_trait_/;
|
|
838
|
-
function
|
|
809
|
+
function pa(t) {
|
|
839
810
|
var e = t.storage.setItem;
|
|
840
811
|
return function(r) {
|
|
841
812
|
return function(n) {
|
|
@@ -864,7 +835,7 @@ function ga(t) {
|
|
|
864
835
|
};
|
|
865
836
|
};
|
|
866
837
|
}
|
|
867
|
-
function
|
|
838
|
+
function ga(t) {
|
|
868
839
|
return function(e, r) {
|
|
869
840
|
if (e === void 0 && (e = {}), r === void 0 && (r = {}), r.type === j.setItemEnd) {
|
|
870
841
|
if (r.key === le) return N({}, e, { anonymousId: r.value });
|
|
@@ -888,7 +859,7 @@ function dr(t) {
|
|
|
888
859
|
var Mt = function(t) {
|
|
889
860
|
return ye + "TEMP" + ye + t;
|
|
890
861
|
};
|
|
891
|
-
function
|
|
862
|
+
function ha(t) {
|
|
892
863
|
var e = t.storage, r = e.setItem, n = e.removeItem, i = e.getItem;
|
|
893
864
|
return function(s) {
|
|
894
865
|
return function(a) {
|
|
@@ -912,19 +883,19 @@ var Me = {};
|
|
|
912
883
|
function pr(t, e) {
|
|
913
884
|
Me[t] && Z(Me[t]) && (Me[t](e), delete Me[t]);
|
|
914
885
|
}
|
|
915
|
-
function
|
|
886
|
+
function An(t, e, r) {
|
|
916
887
|
return new Promise(function(n, i) {
|
|
917
888
|
return e() ? n(t) : r < 1 ? i(N({}, t, { queue: !0 })) : new Promise(function(s) {
|
|
918
889
|
return setTimeout(s, 10);
|
|
919
890
|
}).then(function(s) {
|
|
920
|
-
return
|
|
891
|
+
return An(t, e, r - 10).then(n, i);
|
|
921
892
|
});
|
|
922
893
|
});
|
|
923
894
|
}
|
|
924
|
-
function
|
|
895
|
+
function ma(t) {
|
|
925
896
|
return { abort: t };
|
|
926
897
|
}
|
|
927
|
-
function
|
|
898
|
+
function On(t, e, r) {
|
|
928
899
|
var n = {}, i = e(), s = t.getState(), a = s.plugins, o = s.queue, u = s.user;
|
|
929
900
|
if (!s.context.offline && o && o.actions && o.actions.length) {
|
|
930
901
|
var l = o.actions.reduce(function(p, g, b) {
|
|
@@ -939,7 +910,7 @@ function xn(t, e, r) {
|
|
|
939
910
|
return v.hasOwnProperty(x) && m[x] && m[x] !== v[x] && (T[x] = m[x]), T;
|
|
940
911
|
}, v);
|
|
941
912
|
})(g.payload, u), d = n[y.meta.rid];
|
|
942
|
-
if (!d && (w = I({ payload: y, config: a[b].config, instance: r, abort:
|
|
913
|
+
if (!d && (w = I({ payload: y, config: a[b].config, instance: r, abort: ma })) && J(w) && w.abort) return void (n[y.meta.rid] = !0);
|
|
943
914
|
if (!d) {
|
|
944
915
|
var E = S + ":" + b;
|
|
945
916
|
t.dispatch(N({}, y, { type: E, _: { called: E, from: "queueDrain" } }));
|
|
@@ -967,17 +938,17 @@ var ut = function(t) {
|
|
|
967
938
|
var m = E.config, T = E.name, x = T + "." + d.type;
|
|
968
939
|
v && (x = v.event);
|
|
969
940
|
var A = d.type.match(Ie) ? /* @__PURE__ */ (function($, k, _, z, V) {
|
|
970
|
-
return function(C,
|
|
971
|
-
var W = z ? z.name : $,
|
|
972
|
-
if (z && (!(
|
|
973
|
-
return N({}, V, { abort: { reason: C, plugins:
|
|
941
|
+
return function(C, O) {
|
|
942
|
+
var W = z ? z.name : $, R = O && _e(O) ? O : _;
|
|
943
|
+
if (z && (!(R = O && _e(O) ? O : [$]).includes($) || R.length !== 1)) throw new Error("Method " + k + " can only abort " + $ + " plugin. " + JSON.stringify(R) + " input valid");
|
|
944
|
+
return N({}, V, { abort: { reason: C, plugins: R, caller: k, _: W } });
|
|
974
945
|
};
|
|
975
946
|
})(T, x, y, v, d) : /* @__PURE__ */ (function($, k) {
|
|
976
947
|
return function() {
|
|
977
948
|
throw new Error($.type + " action not cancellable. Remove abort in " + k);
|
|
978
949
|
};
|
|
979
950
|
})(d, x);
|
|
980
|
-
return { payload:
|
|
951
|
+
return { payload: va(d), instance: w, config: m || {}, abort: A };
|
|
981
952
|
};
|
|
982
953
|
})(n, b), I = e.exact.reduce(function(w, y) {
|
|
983
954
|
var d = y.pluginName, E = y.methodName, v = !1;
|
|
@@ -992,18 +963,18 @@ var ut = function(t) {
|
|
|
992
963
|
var T = (function() {
|
|
993
964
|
if (e.namespaced && e.namespaced[E]) return Promise.resolve(e.namespaced[E].reduce(function(x, A, $) {
|
|
994
965
|
return Promise.resolve(x).then(function(k) {
|
|
995
|
-
return A.method && Z(A.method) ? ((function(C,
|
|
966
|
+
return A.method && Z(A.method) ? ((function(C, O) {
|
|
996
967
|
var W = wr(C);
|
|
997
|
-
if (W && W.name ===
|
|
998
|
-
var
|
|
999
|
-
throw new Error([
|
|
968
|
+
if (W && W.name === O) {
|
|
969
|
+
var R = wr(W.method);
|
|
970
|
+
throw new Error([O + " plugin is calling method " + C, "Plugins cant call self", "Use " + W.method + " " + (R ? "or " + R.method : "") + " in " + O + " plugin insteadof " + C].join(`
|
|
1000
971
|
`));
|
|
1001
972
|
}
|
|
1002
|
-
})(A.methodName, A.pluginName), Promise.resolve(A.method({ payload: k, instance: n, abort: (_ = k, z = E, V = A.pluginName, function(C,
|
|
1003
|
-
return N({}, _, { abort: { reason: C, plugins:
|
|
973
|
+
})(A.methodName, A.pluginName), Promise.resolve(A.method({ payload: k, instance: n, abort: (_ = k, z = E, V = A.pluginName, function(C, O) {
|
|
974
|
+
return N({}, _, { abort: { reason: C, plugins: O || [z], caller: p, from: V || z } });
|
|
1004
975
|
}), config: mr(A.pluginName, l, s), plugins: l })).then(function(C) {
|
|
1005
|
-
var
|
|
1006
|
-
return Promise.resolve(N({}, k,
|
|
976
|
+
var O = J(C) ? C : {};
|
|
977
|
+
return Promise.resolve(N({}, k, O));
|
|
1007
978
|
})) : k;
|
|
1008
979
|
var _, z, V;
|
|
1009
980
|
});
|
|
@@ -1041,7 +1012,7 @@ var ut = function(t) {
|
|
|
1041
1012
|
if (!(p.match(Ie) || p.match(/^registerPlugin/) || p.match(hr) || p.match(gr) || p.match(/^params/) || p.match(/^userIdChanged/))) {
|
|
1042
1013
|
if (u.plugins.includes(p), y._ && y._.originalAction === p) return y;
|
|
1043
1014
|
var d = N({}, y, { _: { originalAction: y.type, called: y.type, from: "engineEnd" } });
|
|
1044
|
-
|
|
1015
|
+
Pn(y, e.exact.length) && !p.match(/End$/) && (d = N({}, d, { type: y.type + "Aborted" })), o.dispatch(d);
|
|
1045
1016
|
}
|
|
1046
1017
|
return y;
|
|
1047
1018
|
});
|
|
@@ -1071,29 +1042,29 @@ function lt(t, e) {
|
|
|
1071
1042
|
var r = t.abort;
|
|
1072
1043
|
return !!r && (r === !0 || br(r, e) || r && br(r.plugins, e));
|
|
1073
1044
|
}
|
|
1074
|
-
function
|
|
1045
|
+
function Pn(t, e) {
|
|
1075
1046
|
var r = t.abort;
|
|
1076
1047
|
if (!r) return !1;
|
|
1077
1048
|
if (r === !0 || ce(r)) return !0;
|
|
1078
1049
|
var n = r.plugins;
|
|
1079
|
-
return
|
|
1050
|
+
return _e(r) && r.length === e || _e(n) && n.length === e;
|
|
1080
1051
|
}
|
|
1081
|
-
function
|
|
1052
|
+
function _e(t) {
|
|
1082
1053
|
return Array.isArray(t);
|
|
1083
1054
|
}
|
|
1084
1055
|
function br(t, e) {
|
|
1085
|
-
return !(!t || !
|
|
1056
|
+
return !(!t || !_e(t)) && t.includes(e);
|
|
1086
1057
|
}
|
|
1087
1058
|
function wr(t) {
|
|
1088
1059
|
var e = t.match(/(.*):(.*)/);
|
|
1089
1060
|
return !!e && { method: e[1], name: e[2] };
|
|
1090
1061
|
}
|
|
1091
|
-
function
|
|
1062
|
+
function va(t) {
|
|
1092
1063
|
return Object.keys(t).reduce(function(e, r) {
|
|
1093
1064
|
return r === "type" || (e[r] = J(t[r]) ? Object.assign({}, t[r]) : t[r]), e;
|
|
1094
1065
|
}, {});
|
|
1095
1066
|
}
|
|
1096
|
-
function
|
|
1067
|
+
function ya(t, e, r) {
|
|
1097
1068
|
var n = {};
|
|
1098
1069
|
return function(i) {
|
|
1099
1070
|
return function(s) {
|
|
@@ -1112,7 +1083,7 @@ function ba(t, e, r) {
|
|
|
1112
1083
|
return g[v];
|
|
1113
1084
|
}), I = [], w = [], y = a.disabled, d = S.map(function(v) {
|
|
1114
1085
|
var m = v.loaded, T = v.name, x = v.config;
|
|
1115
|
-
return
|
|
1086
|
+
return An(v, function() {
|
|
1116
1087
|
return m({ config: x });
|
|
1117
1088
|
}, 1e4).then(function(A) {
|
|
1118
1089
|
return n[T] || (i.dispatch({ type: j.pluginReadyType(T), name: T, events: Object.keys(v).filter(function($) {
|
|
@@ -1132,14 +1103,14 @@ function ba(t, e, r) {
|
|
|
1132
1103
|
}
|
|
1133
1104
|
var E = (function() {
|
|
1134
1105
|
if (l !== j.bootstrap) return /^ready:([^:]*)$/.test(l) && setTimeout(function() {
|
|
1135
|
-
return
|
|
1106
|
+
return On(i, e, t);
|
|
1136
1107
|
}, 0), Promise.resolve((function(v, m, T, x, A) {
|
|
1137
1108
|
try {
|
|
1138
1109
|
var $ = Z(m) ? m() : m, k = v.type, _ = k.replace(Ie, "");
|
|
1139
1110
|
if (v._ && v._.called) return Promise.resolve(v);
|
|
1140
|
-
var z = T.getState(), V = (W = $, (
|
|
1141
|
-
var h =
|
|
1142
|
-
return
|
|
1111
|
+
var z = T.getState(), V = (W = $, (R = z.plugins) === void 0 && (R = {}), (q = v.options) === void 0 && (q = {}), Object.keys(W).filter(function(c) {
|
|
1112
|
+
var h = q.plugins || {};
|
|
1113
|
+
return Zi(h[c]) ? h[c] : h.all !== !1 && (!R[c] || R[c].enabled !== !1);
|
|
1143
1114
|
}).map(function(c) {
|
|
1144
1115
|
return W[c];
|
|
1145
1116
|
}));
|
|
@@ -1151,41 +1122,41 @@ function ba(t, e, r) {
|
|
|
1151
1122
|
}));
|
|
1152
1123
|
var C = V.map(function(c) {
|
|
1153
1124
|
return c.name;
|
|
1154
|
-
}),
|
|
1155
|
-
var
|
|
1125
|
+
}), O = (function(c, h) {
|
|
1126
|
+
var P = yr(c).map(function(M) {
|
|
1156
1127
|
return vr(M, h);
|
|
1157
1128
|
});
|
|
1158
|
-
return h.reduce(function(M,
|
|
1159
|
-
var D =
|
|
1129
|
+
return h.reduce(function(M, U) {
|
|
1130
|
+
var D = U.name, B = yr(c, D).map(function(ne) {
|
|
1160
1131
|
return vr(ne, h);
|
|
1161
|
-
}), H =
|
|
1162
|
-
return H.length && (M.beforeNS[D] = H),
|
|
1163
|
-
}, { before:
|
|
1132
|
+
}), H = B[0], G = B[1], L = B[2];
|
|
1133
|
+
return H.length && (M.beforeNS[D] = H), G.length && (M.duringNS[D] = G), L.length && (M.afterNS[D] = L), M;
|
|
1134
|
+
}, { before: P[0], beforeNS: {}, during: P[1], duringNS: {}, after: P[2], afterNS: {} });
|
|
1164
1135
|
})(k, V);
|
|
1165
|
-
return Promise.resolve(ut({ action: v, data: { exact:
|
|
1136
|
+
return Promise.resolve(ut({ action: v, data: { exact: O.before, namespaced: O.beforeNS }, state: z, allPlugins: $, allMatches: O, instance: T, store: x, EVENTS: A })).then(function(c) {
|
|
1166
1137
|
function h() {
|
|
1167
|
-
var
|
|
1168
|
-
if (k.match(Ie)) return Promise.resolve(ut({ action: N({},
|
|
1138
|
+
var U = (function() {
|
|
1139
|
+
if (k.match(Ie)) return Promise.resolve(ut({ action: N({}, P, { type: _ + "End" }), data: { exact: O.after, namespaced: O.afterNS }, state: z, allPlugins: $, allMatches: O, instance: T, store: x, EVENTS: A })).then(function(D) {
|
|
1169
1140
|
D.meta && D.meta.hasCallback && pr(D.meta.rid, { payload: D });
|
|
1170
1141
|
});
|
|
1171
1142
|
})();
|
|
1172
|
-
return
|
|
1143
|
+
return U && U.then ? U.then(function() {
|
|
1173
1144
|
return c;
|
|
1174
1145
|
}) : c;
|
|
1175
1146
|
}
|
|
1176
|
-
if (
|
|
1177
|
-
var
|
|
1178
|
-
if (k !== _) return Promise.resolve(ut({ action: N({}, c, { type: _ }), data: { exact:
|
|
1179
|
-
|
|
1147
|
+
if (Pn(c, C.length)) return c;
|
|
1148
|
+
var P, M = (function() {
|
|
1149
|
+
if (k !== _) return Promise.resolve(ut({ action: N({}, c, { type: _ }), data: { exact: O.during, namespaced: O.duringNS }, state: z, allPlugins: $, allMatches: O, instance: T, store: x, EVENTS: A })).then(function(U) {
|
|
1150
|
+
P = U;
|
|
1180
1151
|
});
|
|
1181
|
-
|
|
1152
|
+
P = c;
|
|
1182
1153
|
})();
|
|
1183
1154
|
return M && M.then ? M.then(h) : h();
|
|
1184
1155
|
});
|
|
1185
1156
|
} catch (c) {
|
|
1186
1157
|
return Promise.reject(c);
|
|
1187
1158
|
}
|
|
1188
|
-
var W,
|
|
1159
|
+
var W, R, q;
|
|
1189
1160
|
})(a, e, t, i, r)).then(function(v) {
|
|
1190
1161
|
var m = s(v);
|
|
1191
1162
|
return o = 1, m;
|
|
@@ -1199,7 +1170,7 @@ function ba(t, e, r) {
|
|
|
1199
1170
|
};
|
|
1200
1171
|
};
|
|
1201
1172
|
}
|
|
1202
|
-
function
|
|
1173
|
+
function ba(t) {
|
|
1203
1174
|
return function(e) {
|
|
1204
1175
|
return function(r) {
|
|
1205
1176
|
return function(n) {
|
|
@@ -1213,7 +1184,7 @@ function wa(t) {
|
|
|
1213
1184
|
};
|
|
1214
1185
|
};
|
|
1215
1186
|
}
|
|
1216
|
-
var
|
|
1187
|
+
var wa = function() {
|
|
1217
1188
|
var t = this;
|
|
1218
1189
|
this.before = [], this.after = [], this.addMiddleware = function(e, r) {
|
|
1219
1190
|
t[r] = t[r].concat(e);
|
|
@@ -1237,7 +1208,7 @@ var Sa = function() {
|
|
|
1237
1208
|
};
|
|
1238
1209
|
};
|
|
1239
1210
|
};
|
|
1240
|
-
function
|
|
1211
|
+
function Sa(t) {
|
|
1241
1212
|
return function(e, r) {
|
|
1242
1213
|
e === void 0 && (e = {});
|
|
1243
1214
|
var n = {};
|
|
@@ -1271,26 +1242,26 @@ function Er(t, e, r) {
|
|
|
1271
1242
|
return n[i] = N({}, r[i], { enabled: e }), n;
|
|
1272
1243
|
}, r);
|
|
1273
1244
|
}
|
|
1274
|
-
function
|
|
1245
|
+
function xn(t) {
|
|
1275
1246
|
try {
|
|
1276
1247
|
return JSON.parse(JSON.stringify(t));
|
|
1277
1248
|
} catch {
|
|
1278
1249
|
}
|
|
1279
1250
|
return t;
|
|
1280
1251
|
}
|
|
1281
|
-
var
|
|
1282
|
-
function
|
|
1283
|
-
t === void 0 && (t =
|
|
1252
|
+
var Ea = { last: {}, history: [] };
|
|
1253
|
+
function Ia(t, e) {
|
|
1254
|
+
t === void 0 && (t = Ea);
|
|
1284
1255
|
var r = e.options, n = e.meta;
|
|
1285
1256
|
if (e.type === j.track) {
|
|
1286
|
-
var i =
|
|
1257
|
+
var i = xn(N({ event: e.event, properties: e.properties }, Object.keys(r).length && { options: r }, { meta: n }));
|
|
1287
1258
|
return N({}, t, { last: i, history: t.history.concat(i) });
|
|
1288
1259
|
}
|
|
1289
1260
|
return t;
|
|
1290
1261
|
}
|
|
1291
|
-
var
|
|
1262
|
+
var Aa = { actions: [] };
|
|
1292
1263
|
function Oa(t, e) {
|
|
1293
|
-
t === void 0 && (t =
|
|
1264
|
+
t === void 0 && (t = Aa);
|
|
1294
1265
|
var r = e.payload;
|
|
1295
1266
|
switch (e.type) {
|
|
1296
1267
|
case "queue":
|
|
@@ -1302,12 +1273,12 @@ function Oa(t, e) {
|
|
|
1302
1273
|
return t;
|
|
1303
1274
|
}
|
|
1304
1275
|
}
|
|
1305
|
-
var
|
|
1306
|
-
function
|
|
1276
|
+
var Tn = /#.*$/;
|
|
1277
|
+
function Pa(t) {
|
|
1307
1278
|
var e = /(http[s]?:\/\/)?([^\/\s]+\/)(.*)/g.exec(t);
|
|
1308
|
-
return "/" + (e && e[3] ? e[3].split("?")[0].replace(
|
|
1279
|
+
return "/" + (e && e[3] ? e[3].split("?")[0].replace(Tn, "") : "");
|
|
1309
1280
|
}
|
|
1310
|
-
var
|
|
1281
|
+
var kn, jn, Nn, Mn, xa = function(t) {
|
|
1311
1282
|
if (t === void 0 && (t = {}), !Q) return t;
|
|
1312
1283
|
var e = document, r = e.title, n = e.referrer, i = window, s = i.location, a = i.innerWidth, o = i.innerHeight, u = s.hash, l = s.search, f = (function(g) {
|
|
1313
1284
|
var b = (function() {
|
|
@@ -1315,26 +1286,26 @@ var Nn, Mn, $n, Cn, Ta = function(t) {
|
|
|
1315
1286
|
for (var S, I = document.getElementsByTagName("link"), w = 0; S = I[w]; w++) if (S.getAttribute("rel") === "canonical") return S.getAttribute("href");
|
|
1316
1287
|
}
|
|
1317
1288
|
})();
|
|
1318
|
-
return b ? b.match(/\?/) ? b : b + g : window.location.href.replace(
|
|
1319
|
-
})(l), p = { title: r, url: f, path:
|
|
1289
|
+
return b ? b.match(/\?/) ? b : b + g : window.location.href.replace(Tn, "");
|
|
1290
|
+
})(l), p = { title: r, url: f, path: Pa(f), hash: u, search: l, width: a, height: o };
|
|
1320
1291
|
return n && n !== "" && (p.referrer = n), N({}, p, t);
|
|
1321
|
-
},
|
|
1322
|
-
function
|
|
1323
|
-
t === void 0 && (t =
|
|
1292
|
+
}, Ta = { last: {}, history: [] };
|
|
1293
|
+
function ka(t, e) {
|
|
1294
|
+
t === void 0 && (t = Ta);
|
|
1324
1295
|
var r = e.options;
|
|
1325
1296
|
if (e.type === j.page) {
|
|
1326
|
-
var n =
|
|
1297
|
+
var n = xn(N({ properties: e.properties, meta: e.meta }, Object.keys(r).length && { options: r }));
|
|
1327
1298
|
return N({}, t, { last: n, history: t.history.concat(n) });
|
|
1328
1299
|
}
|
|
1329
1300
|
return t;
|
|
1330
1301
|
}
|
|
1331
|
-
|
|
1302
|
+
kn = (function() {
|
|
1332
1303
|
if (!Q) return !1;
|
|
1333
1304
|
var t = navigator.appVersion;
|
|
1334
1305
|
return ~t.indexOf("Win") ? "Windows" : ~t.indexOf("Mac") ? "MacOS" : ~t.indexOf("X11") ? "UNIX" : ~t.indexOf("Linux") ? "Linux" : "Unknown OS";
|
|
1335
|
-
})(),
|
|
1336
|
-
var Ir = { initialized: !1, sessionId: be(), app: null, version: null, debug: !1, offline: !!Q && !navigator.onLine, os: { name:
|
|
1337
|
-
function
|
|
1306
|
+
})(), jn = Q ? document.referrer : null, Nn = sa(), Mn = oa();
|
|
1307
|
+
var Ir = { initialized: !1, sessionId: be(), app: null, version: null, debug: !1, offline: !!Q && !navigator.onLine, os: { name: kn }, userAgent: Q ? navigator.userAgent : "node", library: { name: jt, version: "0.13.1" }, timezone: Mn, locale: Nn, campaign: {}, referrer: jn };
|
|
1308
|
+
function ja(t, e) {
|
|
1338
1309
|
t === void 0 && (t = Ir);
|
|
1339
1310
|
var r = t.initialized, n = e.campaign;
|
|
1340
1311
|
switch (e.type) {
|
|
@@ -1348,8 +1319,8 @@ function Na(t, e) {
|
|
|
1348
1319
|
return r ? t : N({}, Ir, t, { initialized: !0 });
|
|
1349
1320
|
}
|
|
1350
1321
|
}
|
|
1351
|
-
var
|
|
1352
|
-
function
|
|
1322
|
+
var Na = ["plugins", "reducers", "storage"];
|
|
1323
|
+
function Ma(t, e, r) {
|
|
1353
1324
|
if (Q) {
|
|
1354
1325
|
var n = window[(r ? "add" : "remove") + "EventListener"];
|
|
1355
1326
|
t.split(" ").forEach(function(i) {
|
|
@@ -1357,33 +1328,33 @@ function $a(t, e, r) {
|
|
|
1357
1328
|
});
|
|
1358
1329
|
}
|
|
1359
1330
|
}
|
|
1360
|
-
function
|
|
1361
|
-
var e =
|
|
1331
|
+
function $a(t) {
|
|
1332
|
+
var e = Ma.bind(null, "online offline", function(r) {
|
|
1362
1333
|
return Promise.resolve(!navigator.onLine).then(t);
|
|
1363
1334
|
});
|
|
1364
1335
|
return e(!0), function(r) {
|
|
1365
1336
|
return e(!1);
|
|
1366
1337
|
};
|
|
1367
1338
|
}
|
|
1368
|
-
function
|
|
1339
|
+
function $n() {
|
|
1369
1340
|
return de(jt, []), function(t) {
|
|
1370
1341
|
return function(e, r, n) {
|
|
1371
1342
|
var i = t(e, r, n), s = i.dispatch;
|
|
1372
1343
|
return Object.assign(i, { dispatch: function(a) {
|
|
1373
|
-
return Oe
|
|
1344
|
+
return Pe[Oe][jt].push(a.action || a), s(a);
|
|
1374
1345
|
} });
|
|
1375
1346
|
};
|
|
1376
1347
|
};
|
|
1377
1348
|
}
|
|
1378
1349
|
function Ar(t) {
|
|
1379
1350
|
return function() {
|
|
1380
|
-
return xe(xe.apply(null, arguments),
|
|
1351
|
+
return xe(xe.apply(null, arguments), $n());
|
|
1381
1352
|
};
|
|
1382
1353
|
}
|
|
1383
1354
|
function ft(t) {
|
|
1384
|
-
return t ?
|
|
1355
|
+
return t ? wn(t) ? t : [t] : [];
|
|
1385
1356
|
}
|
|
1386
|
-
function
|
|
1357
|
+
function Or(t, e, r) {
|
|
1387
1358
|
t === void 0 && (t = {});
|
|
1388
1359
|
var n, i, s = be();
|
|
1389
1360
|
return e && (Me[s] = (n = e, i = (function(a) {
|
|
@@ -1396,76 +1367,76 @@ function Pr(t, e, r) {
|
|
|
1396
1367
|
i && i(a), n(a);
|
|
1397
1368
|
})), N({}, t, { rid: s, ts: (/* @__PURE__ */ new Date()).getTime() }, e ? { hasCallback: !0 } : {});
|
|
1398
1369
|
}
|
|
1399
|
-
function
|
|
1370
|
+
function Ca(t) {
|
|
1400
1371
|
t === void 0 && (t = {});
|
|
1401
1372
|
var e = t.reducers || {}, r = t.initialUser || {}, n = (t.plugins || []).reduce(function(c, h) {
|
|
1402
1373
|
if (Z(h)) return c.middlewares = c.middlewares.concat(h), c;
|
|
1403
1374
|
if (h.NAMESPACE && (h.name = h.NAMESPACE), !h.name) throw new Error("https://lytics.dev/errors/1");
|
|
1404
1375
|
h.config || (h.config = {});
|
|
1405
|
-
var
|
|
1376
|
+
var P = h.EVENTS ? Object.keys(h.EVENTS).map(function(D) {
|
|
1406
1377
|
return h.EVENTS[D];
|
|
1407
1378
|
}) : [];
|
|
1408
|
-
c.pluginEnabled[h.name] = !(h.enabled === !1 || h.config.enabled === !1), delete h.enabled, h.methods && (c.methods[h.name] = Object.keys(h.methods).reduce(function(D,
|
|
1379
|
+
c.pluginEnabled[h.name] = !(h.enabled === !1 || h.config.enabled === !1), delete h.enabled, h.methods && (c.methods[h.name] = Object.keys(h.methods).reduce(function(D, B) {
|
|
1409
1380
|
var H;
|
|
1410
|
-
return D[
|
|
1411
|
-
for (var
|
|
1381
|
+
return D[B] = (H = h.methods[B], function() {
|
|
1382
|
+
for (var G = Array.prototype.slice.call(arguments), L = new Array(H.length), ne = 0; ne < G.length; ne++) L[ne] = G[ne];
|
|
1412
1383
|
return L[L.length] = m, H.apply({ instance: m }, L);
|
|
1413
1384
|
}), D;
|
|
1414
1385
|
}, {}), delete h.methods);
|
|
1415
|
-
var M = Object.keys(h).concat(
|
|
1416
|
-
if (c.events = Array.from(
|
|
1386
|
+
var M = Object.keys(h).concat(P), U = new Set(c.events.concat(M));
|
|
1387
|
+
if (c.events = Array.from(U), c.pluginsArray = c.pluginsArray.concat(h), c.plugins[h.name]) throw new Error(h.name + "AlreadyLoaded");
|
|
1417
1388
|
return c.plugins[h.name] = h, c.plugins[h.name].loaded || (c.plugins[h.name].loaded = function() {
|
|
1418
1389
|
return !0;
|
|
1419
1390
|
}), c;
|
|
1420
1391
|
}, { plugins: {}, pluginEnabled: {}, methods: {}, pluginsArray: [], middlewares: [], events: [] }), i = t.storage ? t.storage : { getItem: fe, setItem: de, removeItem: Te }, s = /* @__PURE__ */ (function(c) {
|
|
1421
|
-
return function(h,
|
|
1422
|
-
return
|
|
1392
|
+
return function(h, P, M) {
|
|
1393
|
+
return P.getState("user")[h] || (M && J(M) && M[h] ? M[h] : dr(c)[h] || fe(Mt(h)) || null);
|
|
1423
1394
|
};
|
|
1424
1395
|
})(i), a = n.plugins, o = n.events.filter(function(c) {
|
|
1425
1396
|
return !Nt.includes(c);
|
|
1426
|
-
}).sort(), u = new Set(o.concat(
|
|
1397
|
+
}).sort(), u = new Set(o.concat(Ke).filter(function(c) {
|
|
1427
1398
|
return !Nt.includes(c);
|
|
1428
1399
|
})), l = Array.from(u).sort(), f = function() {
|
|
1429
1400
|
return a;
|
|
1430
|
-
}, p = new
|
|
1401
|
+
}, p = new wa(), g = p.addMiddleware, b = p.removeMiddleware, S = p.dynamicMiddlewares, I = function() {
|
|
1431
1402
|
throw new Error("Abort disabled inListener");
|
|
1432
|
-
}, w =
|
|
1403
|
+
}, w = ua(), y = dr(i), d = N({}, y, r, w.an_uid ? { userId: w.an_uid } : {}, w.an_aid ? { anonymousId: w.an_aid } : {});
|
|
1433
1404
|
d.anonymousId || (d.anonymousId = be());
|
|
1434
1405
|
var E = N({ enable: function(c, h) {
|
|
1435
|
-
return new Promise(function(
|
|
1436
|
-
|
|
1406
|
+
return new Promise(function(P) {
|
|
1407
|
+
O.dispatch({ type: j.enablePlugin, plugins: ft(c), _: { originalAction: j.enablePlugin } }, P, [h]);
|
|
1437
1408
|
});
|
|
1438
1409
|
}, disable: function(c, h) {
|
|
1439
|
-
return new Promise(function(
|
|
1440
|
-
|
|
1410
|
+
return new Promise(function(P) {
|
|
1411
|
+
O.dispatch({ type: j.disablePlugin, plugins: ft(c), _: { originalAction: j.disablePlugin } }, P, [h]);
|
|
1441
1412
|
});
|
|
1442
|
-
} }, n.methods), v = !1, m = { identify: function(c, h,
|
|
1413
|
+
} }, n.methods), v = !1, m = { identify: function(c, h, P, M) {
|
|
1443
1414
|
try {
|
|
1444
|
-
var
|
|
1445
|
-
de(Mt(oe),
|
|
1446
|
-
var
|
|
1415
|
+
var U = ce(c) ? c : null, D = J(c) ? c : h, B = P || {}, H = m.user();
|
|
1416
|
+
de(Mt(oe), U);
|
|
1417
|
+
var G = U || D.userId || s(oe, m, D);
|
|
1447
1418
|
return Promise.resolve(new Promise(function(L) {
|
|
1448
|
-
|
|
1419
|
+
O.dispatch(N({ type: j.identifyStart, userId: G, traits: D || {}, options: B, anonymousId: H.anonymousId }, H.id && H.id !== U && { previousId: H.id }), L, [h, P, M]);
|
|
1449
1420
|
}));
|
|
1450
1421
|
} catch (L) {
|
|
1451
1422
|
return Promise.reject(L);
|
|
1452
1423
|
}
|
|
1453
|
-
}, track: function(c, h,
|
|
1424
|
+
}, track: function(c, h, P, M) {
|
|
1454
1425
|
try {
|
|
1455
|
-
var
|
|
1456
|
-
if (!
|
|
1457
|
-
var D = J(c) ? c : h || {},
|
|
1426
|
+
var U = J(c) ? c.event : c;
|
|
1427
|
+
if (!U || !ce(U)) throw new Error("EventMissing");
|
|
1428
|
+
var D = J(c) ? c : h || {}, B = J(P) ? P : {};
|
|
1458
1429
|
return Promise.resolve(new Promise(function(H) {
|
|
1459
|
-
|
|
1430
|
+
O.dispatch({ type: j.trackStart, event: U, properties: D, options: B, userId: s(oe, m, h), anonymousId: s(Se, m, h) }, H, [h, P, M]);
|
|
1460
1431
|
}));
|
|
1461
1432
|
} catch (H) {
|
|
1462
1433
|
return Promise.reject(H);
|
|
1463
1434
|
}
|
|
1464
|
-
}, page: function(c, h,
|
|
1435
|
+
}, page: function(c, h, P) {
|
|
1465
1436
|
try {
|
|
1466
|
-
var M = J(c) ? c : {},
|
|
1437
|
+
var M = J(c) ? c : {}, U = J(h) ? h : {};
|
|
1467
1438
|
return Promise.resolve(new Promise(function(D) {
|
|
1468
|
-
|
|
1439
|
+
O.dispatch({ type: j.pageStart, properties: xa(M), options: U, userId: s(oe, m, M), anonymousId: s(Se, m, M) }, D, [c, h, P]);
|
|
1469
1440
|
}));
|
|
1470
1441
|
} catch (D) {
|
|
1471
1442
|
return Promise.reject(D);
|
|
@@ -1477,7 +1448,7 @@ function _a(t) {
|
|
|
1477
1448
|
return c ? sr(h, c) : h;
|
|
1478
1449
|
}, reset: function(c) {
|
|
1479
1450
|
return new Promise(function(h) {
|
|
1480
|
-
|
|
1451
|
+
O.dispatch({ type: j.resetStart }, h, c);
|
|
1481
1452
|
});
|
|
1482
1453
|
}, ready: function(c) {
|
|
1483
1454
|
return v && c({ plugins: E, instance: m }), m.on(j.ready, function(h) {
|
|
@@ -1486,148 +1457,148 @@ function _a(t) {
|
|
|
1486
1457
|
}, on: function(c, h) {
|
|
1487
1458
|
if (!c || !Z(h)) return !1;
|
|
1488
1459
|
if (c === j.bootstrap) throw new Error(".on disabled for " + c);
|
|
1489
|
-
var
|
|
1460
|
+
var P = /Start$|Start:/;
|
|
1490
1461
|
if (c === "*") {
|
|
1491
1462
|
var M = function(H) {
|
|
1492
|
-
return function(
|
|
1463
|
+
return function(G) {
|
|
1493
1464
|
return function(L) {
|
|
1494
|
-
return L.type.match(
|
|
1465
|
+
return L.type.match(P) && h({ payload: L, instance: m, plugins: a }), G(L);
|
|
1495
1466
|
};
|
|
1496
1467
|
};
|
|
1497
|
-
},
|
|
1498
|
-
return function(
|
|
1468
|
+
}, U = function(H) {
|
|
1469
|
+
return function(G) {
|
|
1499
1470
|
return function(L) {
|
|
1500
|
-
return L.type.match(
|
|
1471
|
+
return L.type.match(P) || h({ payload: L, instance: m, plugins: a }), G(L);
|
|
1501
1472
|
};
|
|
1502
1473
|
};
|
|
1503
1474
|
};
|
|
1504
|
-
return g(M,
|
|
1505
|
-
b(M,
|
|
1475
|
+
return g(M, Le), g(U, We), function() {
|
|
1476
|
+
b(M, Le), b(U, We);
|
|
1506
1477
|
};
|
|
1507
1478
|
}
|
|
1508
|
-
var D = c.match(
|
|
1509
|
-
return function(
|
|
1479
|
+
var D = c.match(P) ? Le : We, B = function(H) {
|
|
1480
|
+
return function(G) {
|
|
1510
1481
|
return function(L) {
|
|
1511
|
-
return L.type === c && h({ payload: L, instance: m, plugins: a, abort: I }),
|
|
1482
|
+
return L.type === c && h({ payload: L, instance: m, plugins: a, abort: I }), G(L);
|
|
1512
1483
|
};
|
|
1513
1484
|
};
|
|
1514
1485
|
};
|
|
1515
|
-
return g(
|
|
1516
|
-
return b(
|
|
1486
|
+
return g(B, D), function() {
|
|
1487
|
+
return b(B, D);
|
|
1517
1488
|
};
|
|
1518
1489
|
}, once: function(c, h) {
|
|
1519
1490
|
if (!c || !Z(h)) return !1;
|
|
1520
1491
|
if (c === j.bootstrap) throw new Error(".once disabled for " + c);
|
|
1521
|
-
var
|
|
1522
|
-
h({ payload: M.payload, instance: m, plugins: a, abort: I }),
|
|
1492
|
+
var P = m.on(c, function(M) {
|
|
1493
|
+
h({ payload: M.payload, instance: m, plugins: a, abort: I }), P();
|
|
1523
1494
|
});
|
|
1524
|
-
return
|
|
1495
|
+
return P;
|
|
1525
1496
|
}, getState: function(c) {
|
|
1526
|
-
var h =
|
|
1497
|
+
var h = O.getState();
|
|
1527
1498
|
return c ? sr(h, c) : Object.assign({}, h);
|
|
1528
1499
|
}, dispatch: function(c) {
|
|
1529
1500
|
var h = ce(c) ? { type: c } : c;
|
|
1530
|
-
if (
|
|
1531
|
-
var
|
|
1532
|
-
|
|
1533
|
-
}, enablePlugin: E.enable, disablePlugin: E.disable, plugins: E, storage: { getItem: i.getItem, setItem: function(c, h,
|
|
1534
|
-
|
|
1501
|
+
if (Ke.includes(h.type)) throw new Error("reserved action " + h.type);
|
|
1502
|
+
var P = N({}, h, { _: N({ originalAction: h.type }, c._ || {}) });
|
|
1503
|
+
O.dispatch(P);
|
|
1504
|
+
}, enablePlugin: E.enable, disablePlugin: E.disable, plugins: E, storage: { getItem: i.getItem, setItem: function(c, h, P) {
|
|
1505
|
+
O.dispatch({ type: j.setItemStart, key: c, value: h, options: P });
|
|
1535
1506
|
}, removeItem: function(c, h) {
|
|
1536
|
-
|
|
1507
|
+
O.dispatch({ type: j.removeItemStart, key: c, options: h });
|
|
1537
1508
|
} }, setAnonymousId: function(c, h) {
|
|
1538
1509
|
m.storage.setItem(le, c, h);
|
|
1539
|
-
}, events: { core:
|
|
1510
|
+
}, events: { core: Ke, plugins: o } }, T = n.middlewares.concat([function(c) {
|
|
1540
1511
|
return function(h) {
|
|
1541
|
-
return function(
|
|
1542
|
-
return
|
|
1512
|
+
return function(P) {
|
|
1513
|
+
return P.meta || (P.meta = Or()), h(P);
|
|
1543
1514
|
};
|
|
1544
1515
|
};
|
|
1545
|
-
}, S(
|
|
1516
|
+
}, S(Le), ya(m, f, { all: l, plugins: o }), ba(i), pa(m), ha(m), S(We)]), x = { context: ja, user: ga(i), page: ka, track: Ia, plugins: Sa(f), queue: Oa }, A = xe, $ = xe;
|
|
1546
1517
|
if (Q && t.debug) {
|
|
1547
1518
|
var k = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__;
|
|
1548
1519
|
k && (A = k({ trace: !0, traceLimit: 25 })), $ = function() {
|
|
1549
|
-
return arguments.length === 0 ?
|
|
1520
|
+
return arguments.length === 0 ? $n() : J(typeof arguments[0]) ? Ar() : Ar().apply(null, arguments);
|
|
1550
1521
|
};
|
|
1551
1522
|
}
|
|
1552
1523
|
var _, z = (function(c) {
|
|
1553
|
-
return Object.keys(c).reduce(function(h,
|
|
1554
|
-
return
|
|
1524
|
+
return Object.keys(c).reduce(function(h, P) {
|
|
1525
|
+
return Na.includes(P) || (h[P] = c[P]), h;
|
|
1555
1526
|
}, {});
|
|
1556
1527
|
})(t), V = n.pluginsArray.reduce(function(c, h) {
|
|
1557
|
-
var
|
|
1558
|
-
return c[
|
|
1559
|
-
}, {}), C = { context: z, user: d, plugins: V },
|
|
1560
|
-
for (var h = Object.keys(c),
|
|
1561
|
-
var
|
|
1562
|
-
typeof c[
|
|
1528
|
+
var P = h.name, M = h.config, U = h.loaded, D = n.pluginEnabled[P];
|
|
1529
|
+
return c[P] = { enabled: D, initialized: !!D && !h.initialize, loaded: !!U({ config: M }), config: M }, c;
|
|
1530
|
+
}, {}), C = { context: z, user: d, plugins: V }, O = In((function(c) {
|
|
1531
|
+
for (var h = Object.keys(c), P = {}, M = 0; M < h.length; M++) {
|
|
1532
|
+
var U = h[M];
|
|
1533
|
+
typeof c[U] === ue && (P[U] = c[U]);
|
|
1563
1534
|
}
|
|
1564
|
-
var D,
|
|
1535
|
+
var D, B = Object.keys(P);
|
|
1565
1536
|
try {
|
|
1566
1537
|
(function(H) {
|
|
1567
|
-
Object.keys(H).forEach(function(
|
|
1568
|
-
var L = H[
|
|
1569
|
-
if (typeof L(void 0, { type: kt }) === ie || typeof L(void 0, { type:
|
|
1538
|
+
Object.keys(H).forEach(function(G) {
|
|
1539
|
+
var L = H[G];
|
|
1540
|
+
if (typeof L(void 0, { type: kt }) === ie || typeof L(void 0, { type: la }) === ie) throw new Error(Ce + " " + G + " " + ie);
|
|
1570
1541
|
});
|
|
1571
|
-
})(
|
|
1542
|
+
})(P);
|
|
1572
1543
|
} catch (H) {
|
|
1573
1544
|
D = H;
|
|
1574
1545
|
}
|
|
1575
|
-
return function(H,
|
|
1546
|
+
return function(H, G) {
|
|
1576
1547
|
if (H === void 0 && (H = {}), D) throw D;
|
|
1577
|
-
for (var L = !1, ne = {},
|
|
1578
|
-
var
|
|
1579
|
-
if (typeof
|
|
1580
|
-
var
|
|
1581
|
-
throw new Error(
|
|
1548
|
+
for (var L = !1, ne = {}, at = 0; at < B.length; at++) {
|
|
1549
|
+
var Ue = B[at], ir = H[Ue], st = (0, P[Ue])(ir, G);
|
|
1550
|
+
if (typeof st === ie) {
|
|
1551
|
+
var ni = fa(Ue, G);
|
|
1552
|
+
throw new Error(ni);
|
|
1582
1553
|
}
|
|
1583
|
-
ne[
|
|
1554
|
+
ne[Ue] = st, L = L || st !== ir;
|
|
1584
1555
|
}
|
|
1585
1556
|
return L ? ne : H;
|
|
1586
1557
|
};
|
|
1587
|
-
})(N({}, x, e)), C, $(A(
|
|
1588
|
-
|
|
1589
|
-
var M = N({}, c, { meta:
|
|
1558
|
+
})(N({}, x, e)), C, $(A(da.apply(void 0, T))));
|
|
1559
|
+
O.dispatch = (_ = O.dispatch, function(c, h, P) {
|
|
1560
|
+
var M = N({}, c, { meta: Or(c.meta, h, ft(P)) });
|
|
1590
1561
|
return _.apply(null, [M]);
|
|
1591
1562
|
});
|
|
1592
1563
|
var W = Object.keys(a);
|
|
1593
|
-
|
|
1594
|
-
var
|
|
1564
|
+
O.dispatch({ type: j.bootstrap, plugins: W, config: z, params: w, user: d, initialUser: r, persistedUser: y });
|
|
1565
|
+
var R = W.filter(function(c) {
|
|
1595
1566
|
return n.pluginEnabled[c];
|
|
1596
|
-
}),
|
|
1567
|
+
}), q = W.filter(function(c) {
|
|
1597
1568
|
return !n.pluginEnabled[c];
|
|
1598
1569
|
});
|
|
1599
|
-
return
|
|
1600
|
-
var
|
|
1601
|
-
|
|
1602
|
-
}),
|
|
1603
|
-
|
|
1604
|
-
}), (function(c, h,
|
|
1570
|
+
return O.dispatch({ type: j.registerPlugins, plugins: W, enabled: n.pluginEnabled }), n.pluginsArray.map(function(c, h) {
|
|
1571
|
+
var P = c.bootstrap, M = c.config, U = c.name;
|
|
1572
|
+
P && Z(P) && P({ instance: m, config: M, payload: c }), O.dispatch({ type: j.registerPluginType(U), name: U, enabled: n.pluginEnabled[U], plugin: c }), n.pluginsArray.length === h + 1 && O.dispatch({ type: j.initializeStart, plugins: R, disabled: q });
|
|
1573
|
+
}), $a(function(c) {
|
|
1574
|
+
O.dispatch({ type: c ? j.offline : j.online });
|
|
1575
|
+
}), (function(c, h, P) {
|
|
1605
1576
|
setInterval(function() {
|
|
1606
|
-
return
|
|
1577
|
+
return On(c, h, P);
|
|
1607
1578
|
}, 3e3);
|
|
1608
|
-
})(
|
|
1579
|
+
})(O, f, m), m;
|
|
1609
1580
|
}
|
|
1610
|
-
var
|
|
1611
|
-
function
|
|
1612
|
-
return pe ?
|
|
1581
|
+
var Le = "before", We = "after", me = "cookie", pe = Dn(), qt = Ze, Cn = Ze;
|
|
1582
|
+
function _n(t) {
|
|
1583
|
+
return pe ? Ze(t, "", -1) : Te(t);
|
|
1613
1584
|
}
|
|
1614
|
-
function
|
|
1585
|
+
function Dn() {
|
|
1615
1586
|
if (pe !== void 0) return pe;
|
|
1616
1587
|
var t = me + me;
|
|
1617
1588
|
try {
|
|
1618
|
-
|
|
1589
|
+
Ze(t, t), pe = document.cookie.indexOf(t) !== -1, _n(t);
|
|
1619
1590
|
} catch {
|
|
1620
1591
|
pe = !1;
|
|
1621
1592
|
}
|
|
1622
1593
|
return pe;
|
|
1623
1594
|
}
|
|
1624
|
-
function
|
|
1595
|
+
function Ze(t, e, r, n, i, s) {
|
|
1625
1596
|
if (typeof window < "u") {
|
|
1626
1597
|
var a = arguments.length > 1;
|
|
1627
1598
|
return pe === !1 && (a ? de(t, e) : fe(t)), a ? document.cookie = t + "=" + encodeURIComponent(e) + (r ? "; expires=" + new Date(+/* @__PURE__ */ new Date() + 1e3 * r).toUTCString() + (n ? "; path=" + n : "") + (i ? "; domain=" + i : "") + (s ? "; secure" : "") : "") : decodeURIComponent((("; " + document.cookie).split("; " + t + "=")[1] || "").split(";")[0]);
|
|
1628
1599
|
}
|
|
1629
1600
|
}
|
|
1630
|
-
var ae = "localStorage",
|
|
1601
|
+
var ae = "localStorage", _a = Kt.bind(null, ae), Gt = ke(ae, "getItem", fe), Da = ke(ae, "setItem", de), Rn = ke(ae, "removeItem", Te), se = "sessionStorage", Ra = Kt.bind(null, se), Ua = ke(se, "getItem", fe), za = ke(se, "setItem", de);
|
|
1631
1602
|
ke(se, "removeItem", Te);
|
|
1632
1603
|
function Ae(t) {
|
|
1633
1604
|
var e = t;
|
|
@@ -1640,12 +1611,12 @@ function Ae(t) {
|
|
|
1640
1611
|
}
|
|
1641
1612
|
if (e !== null && e !== "") return e;
|
|
1642
1613
|
}
|
|
1643
|
-
var
|
|
1644
|
-
function
|
|
1614
|
+
var Va = _a(), La = Ra(), Wa = Dn();
|
|
1615
|
+
function Un(t, e) {
|
|
1645
1616
|
if (t) {
|
|
1646
|
-
var r =
|
|
1617
|
+
var r = Ft(e), n = !Jt(r), i = Bt(r) ? Ae(localStorage.getItem(t)) : void 0;
|
|
1647
1618
|
if (n && !we(i)) return i;
|
|
1648
|
-
var s = Yt(r) ? Ae(
|
|
1619
|
+
var s = Yt(r) ? Ae(qt(t)) : void 0;
|
|
1649
1620
|
if (n && s) return s;
|
|
1650
1621
|
var a = Xt(r) ? Ae(sessionStorage.getItem(t)) : void 0;
|
|
1651
1622
|
if (n && a) return a;
|
|
@@ -1653,41 +1624,41 @@ function Vn(t, e) {
|
|
|
1653
1624
|
return n ? o : { localStorage: i, sessionStorage: a, cookie: s, global: o };
|
|
1654
1625
|
}
|
|
1655
1626
|
}
|
|
1656
|
-
function
|
|
1627
|
+
function Ha(t, e, r) {
|
|
1657
1628
|
if (t && !we(e)) {
|
|
1658
|
-
var n = {}, i =
|
|
1659
|
-
return
|
|
1629
|
+
var n = {}, i = Ft(r), s = JSON.stringify(e), a = !Jt(i);
|
|
1630
|
+
return Bt(i) && (n[ae] = He(ae, e, Ae(localStorage.getItem(t))), localStorage.setItem(t, s), a) ? n[ae] : Yt(i) && (n[me] = He(me, e, Ae(qt(t))), Cn(t, s), a) ? n[me] : Xt(i) && (n[se] = He(se, e, Ae(sessionStorage.getItem(t))), sessionStorage.setItem(t, s), a) ? n[se] : (n[ge] = He(ge, e, fe(t)), de(t, e), a ? n[ge] : n);
|
|
1660
1631
|
}
|
|
1661
1632
|
}
|
|
1662
|
-
function
|
|
1633
|
+
function Ka(t, e) {
|
|
1663
1634
|
if (t) {
|
|
1664
|
-
var r =
|
|
1665
|
-
return !we(n.localStorage) &&
|
|
1635
|
+
var r = Ft(e), n = Un(t, vn), i = {};
|
|
1636
|
+
return !we(n.localStorage) && Bt(r) && (localStorage.removeItem(t), i[ae] = n.localStorage), !we(n.cookie) && Yt(r) && (_n(t), i[me] = n.cookie), !we(n.sessionStorage) && Xt(r) && (sessionStorage.removeItem(t), i[se] = n.sessionStorage), !we(n.global) && et(r, ge) && (Te(t), i[ge] = n.global), i;
|
|
1666
1637
|
}
|
|
1667
1638
|
}
|
|
1668
|
-
function
|
|
1669
|
-
return t ? ce(t) ? t : t.storage :
|
|
1639
|
+
function Ft(t) {
|
|
1640
|
+
return t ? ce(t) ? t : t.storage : mn;
|
|
1670
1641
|
}
|
|
1671
|
-
function
|
|
1672
|
-
return
|
|
1642
|
+
function Bt(t) {
|
|
1643
|
+
return Va && et(t, ae);
|
|
1673
1644
|
}
|
|
1674
1645
|
function Yt(t) {
|
|
1675
|
-
return
|
|
1646
|
+
return Wa && et(t, me);
|
|
1676
1647
|
}
|
|
1677
1648
|
function Xt(t) {
|
|
1678
|
-
return
|
|
1649
|
+
return La && et(t, se);
|
|
1679
1650
|
}
|
|
1680
1651
|
function Jt(t) {
|
|
1681
|
-
return t ===
|
|
1652
|
+
return t === vn || t === "all";
|
|
1682
1653
|
}
|
|
1683
|
-
function
|
|
1684
|
-
return t ===
|
|
1654
|
+
function et(t, e) {
|
|
1655
|
+
return t === mn || t === e || Jt(t);
|
|
1685
1656
|
}
|
|
1686
|
-
function
|
|
1657
|
+
function He(t, e, r) {
|
|
1687
1658
|
return { location: t, current: e, previous: r };
|
|
1688
1659
|
}
|
|
1689
|
-
var
|
|
1690
|
-
function
|
|
1660
|
+
var qa = { setItem: Ha, getItem: Un, removeItem: Ka };
|
|
1661
|
+
function Ga(t, e, r) {
|
|
1691
1662
|
return e in t ? Object.defineProperty(t, e, {
|
|
1692
1663
|
value: r,
|
|
1693
1664
|
enumerable: !0,
|
|
@@ -1695,7 +1666,7 @@ function Ba(t, e, r) {
|
|
|
1695
1666
|
writable: !0
|
|
1696
1667
|
}) : t[e] = r, t;
|
|
1697
1668
|
}
|
|
1698
|
-
function
|
|
1669
|
+
function Pr(t, e) {
|
|
1699
1670
|
var r = Object.keys(t);
|
|
1700
1671
|
if (Object.getOwnPropertySymbols) {
|
|
1701
1672
|
var n = Object.getOwnPropertySymbols(t);
|
|
@@ -1708,19 +1679,19 @@ function Or(t, e) {
|
|
|
1708
1679
|
function xr(t) {
|
|
1709
1680
|
for (var e = 1; e < arguments.length; e++) {
|
|
1710
1681
|
var r = arguments[e] != null ? arguments[e] : {};
|
|
1711
|
-
e % 2 ?
|
|
1712
|
-
|
|
1713
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) :
|
|
1682
|
+
e % 2 ? Pr(Object(r), !0).forEach(function(n) {
|
|
1683
|
+
Ga(t, n, r[n]);
|
|
1684
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : Pr(Object(r)).forEach(function(n) {
|
|
1714
1685
|
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
|
|
1715
1686
|
});
|
|
1716
1687
|
}
|
|
1717
1688
|
return t;
|
|
1718
1689
|
}
|
|
1719
|
-
function
|
|
1690
|
+
function Fa() {
|
|
1720
1691
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = {
|
|
1721
|
-
storage:
|
|
1692
|
+
storage: qa
|
|
1722
1693
|
};
|
|
1723
|
-
return
|
|
1694
|
+
return Ca(xr(xr({}, e), t));
|
|
1724
1695
|
}
|
|
1725
1696
|
function ee(t) {
|
|
1726
1697
|
"@babel/helpers - typeof";
|
|
@@ -1730,7 +1701,7 @@ function ee(t) {
|
|
|
1730
1701
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1731
1702
|
}, ee(t);
|
|
1732
1703
|
}
|
|
1733
|
-
function
|
|
1704
|
+
function Ba(t, e) {
|
|
1734
1705
|
if (ee(t) != "object" || !t) return t;
|
|
1735
1706
|
var r = t[Symbol.toPrimitive];
|
|
1736
1707
|
if (r !== void 0) {
|
|
@@ -1740,12 +1711,12 @@ function Ya(t, e) {
|
|
|
1740
1711
|
}
|
|
1741
1712
|
return (e === "string" ? String : Number)(t);
|
|
1742
1713
|
}
|
|
1743
|
-
function
|
|
1744
|
-
var e =
|
|
1714
|
+
function Ya(t) {
|
|
1715
|
+
var e = Ba(t, "string");
|
|
1745
1716
|
return ee(e) == "symbol" ? e : e + "";
|
|
1746
1717
|
}
|
|
1747
1718
|
function Qt(t, e, r) {
|
|
1748
|
-
return (e =
|
|
1719
|
+
return (e = Ya(e)) in t ? Object.defineProperty(t, e, {
|
|
1749
1720
|
value: r,
|
|
1750
1721
|
enumerable: !0,
|
|
1751
1722
|
configurable: !0,
|
|
@@ -1762,7 +1733,7 @@ function Tr(t, e) {
|
|
|
1762
1733
|
}
|
|
1763
1734
|
return r;
|
|
1764
1735
|
}
|
|
1765
|
-
function
|
|
1736
|
+
function F(t) {
|
|
1766
1737
|
for (var e = 1; e < arguments.length; e++) {
|
|
1767
1738
|
var r = arguments[e] != null ? arguments[e] : {};
|
|
1768
1739
|
e % 2 ? Tr(Object(r), !0).forEach(function(n) {
|
|
@@ -1774,7 +1745,7 @@ function B(t) {
|
|
|
1774
1745
|
return t;
|
|
1775
1746
|
}
|
|
1776
1747
|
var dt = { exports: {} }, pt = { exports: {} }, kr;
|
|
1777
|
-
function
|
|
1748
|
+
function zn() {
|
|
1778
1749
|
return kr || (kr = 1, (function(t) {
|
|
1779
1750
|
function e(r, n) {
|
|
1780
1751
|
this.v = r, this.k = n;
|
|
@@ -1783,7 +1754,7 @@ function Ln() {
|
|
|
1783
1754
|
})(pt)), pt.exports;
|
|
1784
1755
|
}
|
|
1785
1756
|
var gt = { exports: {} }, ht = { exports: {} }, jr;
|
|
1786
|
-
function
|
|
1757
|
+
function Vn() {
|
|
1787
1758
|
return jr || (jr = 1, (function(t) {
|
|
1788
1759
|
function e(r, n, i, s) {
|
|
1789
1760
|
var a = Object.defineProperty;
|
|
@@ -1810,45 +1781,45 @@ function Wn() {
|
|
|
1810
1781
|
})(ht)), ht.exports;
|
|
1811
1782
|
}
|
|
1812
1783
|
var Nr;
|
|
1813
|
-
function
|
|
1784
|
+
function Ln() {
|
|
1814
1785
|
return Nr || (Nr = 1, (function(t) {
|
|
1815
|
-
var e =
|
|
1786
|
+
var e = Vn();
|
|
1816
1787
|
function r() {
|
|
1817
1788
|
var n, i, s = typeof Symbol == "function" ? Symbol : {}, a = s.iterator || "@@iterator", o = s.toStringTag || "@@toStringTag";
|
|
1818
1789
|
function u(w, y, d, E) {
|
|
1819
1790
|
var v = y && y.prototype instanceof f ? y : f, m = Object.create(v.prototype);
|
|
1820
1791
|
return e(m, "_invoke", (function(T, x, A) {
|
|
1821
|
-
var $, k, _, z = 0, V = A || [], C = !1,
|
|
1792
|
+
var $, k, _, z = 0, V = A || [], C = !1, O = {
|
|
1822
1793
|
p: 0,
|
|
1823
1794
|
n: 0,
|
|
1824
1795
|
v: n,
|
|
1825
1796
|
a: W,
|
|
1826
1797
|
f: W.bind(n, 4),
|
|
1827
|
-
d: function(
|
|
1828
|
-
return $ =
|
|
1798
|
+
d: function(q, c) {
|
|
1799
|
+
return $ = q, k = 0, _ = n, O.n = c, l;
|
|
1829
1800
|
}
|
|
1830
1801
|
};
|
|
1831
|
-
function W(
|
|
1832
|
-
for (k =
|
|
1833
|
-
var c, h = V[i],
|
|
1834
|
-
|
|
1802
|
+
function W(R, q) {
|
|
1803
|
+
for (k = R, _ = q, i = 0; !C && z && !c && i < V.length; i++) {
|
|
1804
|
+
var c, h = V[i], P = O.p, M = h[2];
|
|
1805
|
+
R > 3 ? (c = M === q) && (_ = h[(k = h[4]) ? 5 : (k = 3, 3)], h[4] = h[5] = n) : h[0] <= P && ((c = R < 2 && P < h[1]) ? (k = 0, O.v = q, O.n = h[1]) : P < M && (c = R < 3 || h[0] > q || q > M) && (h[4] = R, h[5] = q, O.n = M, k = 0));
|
|
1835
1806
|
}
|
|
1836
|
-
if (c ||
|
|
1837
|
-
throw C = !0,
|
|
1807
|
+
if (c || R > 1) return l;
|
|
1808
|
+
throw C = !0, q;
|
|
1838
1809
|
}
|
|
1839
|
-
return function(
|
|
1810
|
+
return function(R, q, c) {
|
|
1840
1811
|
if (z > 1) throw TypeError("Generator is already running");
|
|
1841
|
-
for (C &&
|
|
1842
|
-
$ || (k ? k < 3 ? (k > 1 && (
|
|
1812
|
+
for (C && q === 1 && W(q, c), k = q, _ = c; (i = k < 2 ? n : _) || !C; ) {
|
|
1813
|
+
$ || (k ? k < 3 ? (k > 1 && (O.n = -1), W(k, _)) : O.n = _ : O.v = _);
|
|
1843
1814
|
try {
|
|
1844
1815
|
if (z = 2, $) {
|
|
1845
|
-
if (k || (
|
|
1816
|
+
if (k || (R = "next"), i = $[R]) {
|
|
1846
1817
|
if (!(i = i.call($, _))) throw TypeError("iterator result is not an object");
|
|
1847
1818
|
if (!i.done) return i;
|
|
1848
1819
|
_ = i.value, k < 2 && (k = 0);
|
|
1849
|
-
} else k === 1 && (i = $.return) && i.call($), k < 2 && (_ = TypeError("The iterator does not provide a '" +
|
|
1820
|
+
} else k === 1 && (i = $.return) && i.call($), k < 2 && (_ = TypeError("The iterator does not provide a '" + R + "' method"), k = 1);
|
|
1850
1821
|
$ = n;
|
|
1851
|
-
} else if ((i = (C =
|
|
1822
|
+
} else if ((i = (C = O.n < 0) ? _ : T.call(x, O)) !== l) break;
|
|
1852
1823
|
} catch (h) {
|
|
1853
1824
|
$ = n, k = 1, _ = h;
|
|
1854
1825
|
} finally {
|
|
@@ -1891,9 +1862,9 @@ function Hn() {
|
|
|
1891
1862
|
})(gt)), gt.exports;
|
|
1892
1863
|
}
|
|
1893
1864
|
var mt = { exports: {} }, vt = { exports: {} }, yt = { exports: {} }, Mr;
|
|
1894
|
-
function
|
|
1865
|
+
function Wn() {
|
|
1895
1866
|
return Mr || (Mr = 1, (function(t) {
|
|
1896
|
-
var e =
|
|
1867
|
+
var e = zn(), r = Vn();
|
|
1897
1868
|
function n(i, s) {
|
|
1898
1869
|
function a(u, l, f, p) {
|
|
1899
1870
|
try {
|
|
@@ -1927,9 +1898,9 @@ function Kn() {
|
|
|
1927
1898
|
})(yt)), yt.exports;
|
|
1928
1899
|
}
|
|
1929
1900
|
var $r;
|
|
1930
|
-
function
|
|
1901
|
+
function Hn() {
|
|
1931
1902
|
return $r || ($r = 1, (function(t) {
|
|
1932
|
-
var e =
|
|
1903
|
+
var e = Ln(), r = Wn();
|
|
1933
1904
|
function n(i, s, a, o, u) {
|
|
1934
1905
|
return new r(e().w(i, s, a, o), u || Promise);
|
|
1935
1906
|
}
|
|
@@ -1937,9 +1908,9 @@ function Gn() {
|
|
|
1937
1908
|
})(vt)), vt.exports;
|
|
1938
1909
|
}
|
|
1939
1910
|
var Cr;
|
|
1940
|
-
function
|
|
1911
|
+
function Xa() {
|
|
1941
1912
|
return Cr || (Cr = 1, (function(t) {
|
|
1942
|
-
var e =
|
|
1913
|
+
var e = Hn();
|
|
1943
1914
|
function r(n, i, s, a, o) {
|
|
1944
1915
|
var u = e(n, i, s, a, o);
|
|
1945
1916
|
return u.next().then(function(l) {
|
|
@@ -1950,7 +1921,7 @@ function Ja() {
|
|
|
1950
1921
|
})(mt)), mt.exports;
|
|
1951
1922
|
}
|
|
1952
1923
|
var bt = { exports: {} }, _r;
|
|
1953
|
-
function
|
|
1924
|
+
function Ja() {
|
|
1954
1925
|
return _r || (_r = 1, (function(t) {
|
|
1955
1926
|
function e(r) {
|
|
1956
1927
|
var n = Object(r), i = [];
|
|
@@ -1964,7 +1935,7 @@ function Qa() {
|
|
|
1964
1935
|
})(bt)), bt.exports;
|
|
1965
1936
|
}
|
|
1966
1937
|
var wt = { exports: {} }, St = { exports: {} }, Dr;
|
|
1967
|
-
function
|
|
1938
|
+
function Qa() {
|
|
1968
1939
|
return Dr || (Dr = 1, (function(t) {
|
|
1969
1940
|
function e(r) {
|
|
1970
1941
|
"@babel/helpers - typeof";
|
|
@@ -1977,10 +1948,10 @@ function Za() {
|
|
|
1977
1948
|
t.exports = e, t.exports.__esModule = !0, t.exports.default = t.exports;
|
|
1978
1949
|
})(St)), St.exports;
|
|
1979
1950
|
}
|
|
1980
|
-
var
|
|
1981
|
-
function
|
|
1982
|
-
return
|
|
1983
|
-
var e =
|
|
1951
|
+
var Rr;
|
|
1952
|
+
function Za() {
|
|
1953
|
+
return Rr || (Rr = 1, (function(t) {
|
|
1954
|
+
var e = Qa().default;
|
|
1984
1955
|
function r(n) {
|
|
1985
1956
|
if (n != null) {
|
|
1986
1957
|
var i = n[typeof Symbol == "function" && Symbol.iterator || "@@iterator"], s = 0;
|
|
@@ -2000,10 +1971,10 @@ function es() {
|
|
|
2000
1971
|
t.exports = r, t.exports.__esModule = !0, t.exports.default = t.exports;
|
|
2001
1972
|
})(wt)), wt.exports;
|
|
2002
1973
|
}
|
|
2003
|
-
var
|
|
2004
|
-
function
|
|
2005
|
-
return
|
|
2006
|
-
var e =
|
|
1974
|
+
var Ur;
|
|
1975
|
+
function es() {
|
|
1976
|
+
return Ur || (Ur = 1, (function(t) {
|
|
1977
|
+
var e = zn(), r = Ln(), n = Xa(), i = Hn(), s = Wn(), a = Ja(), o = Za();
|
|
2007
1978
|
function u() {
|
|
2008
1979
|
var l = r(), f = l.m(u), p = (Object.getPrototypeOf ? Object.getPrototypeOf(f) : f.__proto__).constructor;
|
|
2009
1980
|
function g(I) {
|
|
@@ -2073,10 +2044,10 @@ function ts() {
|
|
|
2073
2044
|
})(dt)), dt.exports;
|
|
2074
2045
|
}
|
|
2075
2046
|
var Et, zr;
|
|
2076
|
-
function
|
|
2047
|
+
function ts() {
|
|
2077
2048
|
if (zr) return Et;
|
|
2078
2049
|
zr = 1;
|
|
2079
|
-
var t =
|
|
2050
|
+
var t = es()();
|
|
2080
2051
|
Et = t;
|
|
2081
2052
|
try {
|
|
2082
2053
|
regeneratorRuntime = t;
|
|
@@ -2085,8 +2056,8 @@ function rs() {
|
|
|
2085
2056
|
}
|
|
2086
2057
|
return Et;
|
|
2087
2058
|
}
|
|
2088
|
-
var
|
|
2089
|
-
const K = /* @__PURE__ */
|
|
2059
|
+
var rs = ts();
|
|
2060
|
+
const K = /* @__PURE__ */ ln(rs);
|
|
2090
2061
|
function Vr(t, e, r, n, i, s, a) {
|
|
2091
2062
|
try {
|
|
2092
2063
|
var o = t[s](a), u = o.value;
|
|
@@ -2112,7 +2083,7 @@ function re(t) {
|
|
|
2112
2083
|
}
|
|
2113
2084
|
var Lr = function() {
|
|
2114
2085
|
};
|
|
2115
|
-
function
|
|
2086
|
+
function ns(t, e) {
|
|
2116
2087
|
var r, n, i, s = (e = e || {}).initial || [], a = e.max || 1 / 0, o = e.interval || 1e4, u = e.onEmpty || Lr, l = e.onPause || Lr;
|
|
2117
2088
|
function f(g) {
|
|
2118
2089
|
clearInterval(r);
|
|
@@ -2132,19 +2103,19 @@ function is(t, e) {
|
|
|
2132
2103
|
g && f(), clearInterval(r), i = !1, l(s);
|
|
2133
2104
|
} };
|
|
2134
2105
|
}
|
|
2135
|
-
var
|
|
2106
|
+
var qe = "__", tt = "session", Kn = qe + tt, qn = "page", Wr = ["id", "createdAt", "created"];
|
|
2136
2107
|
function $t(t) {
|
|
2137
2108
|
var e = t ? new Date(t) : /* @__PURE__ */ new Date();
|
|
2138
2109
|
return [e.toISOString(), e.getTime()];
|
|
2139
2110
|
}
|
|
2140
|
-
function
|
|
2111
|
+
function Gn() {
|
|
2141
2112
|
var t = $t(), e = t[0], r = t[1];
|
|
2142
2113
|
return { id: be(), created: r, createdAt: e };
|
|
2143
2114
|
}
|
|
2144
|
-
var
|
|
2145
|
-
function
|
|
2146
|
-
for (var r =
|
|
2147
|
-
var l = Wr[u], f =
|
|
2115
|
+
var is = { session: [Ua, za], page: [fe, de] };
|
|
2116
|
+
function rt(t, e) {
|
|
2117
|
+
for (var r = is[t], n = r[0], i = r[1], s = Gn(), a = !1, o = {}, u = 0; u < Wr.length; u++) {
|
|
2118
|
+
var l = Wr[u], f = qe + t + qe + tt + qe + l, p = n(f);
|
|
2148
2119
|
a = e || !p, (e || !e && !p) && i(f, s[l]);
|
|
2149
2120
|
var g = p && !e ? p : s[l], b = l !== "created" ? g : Number(g);
|
|
2150
2121
|
o[l] = b;
|
|
@@ -2155,34 +2126,34 @@ function Zt(t, e) {
|
|
|
2155
2126
|
var r = Date.now();
|
|
2156
2127
|
return t.elapsed = r - t.created, t.expires && (t.remaining = Math.max(t.expires - r, 0), t.isExpired = t.remaining === 0), t.isNew = e, t;
|
|
2157
2128
|
}
|
|
2158
|
-
function
|
|
2129
|
+
function De(t, e) {
|
|
2159
2130
|
t === void 0 && (t = 30);
|
|
2160
|
-
var r =
|
|
2131
|
+
var r = qt(Kn), n = r ? JSON.parse(r) : Ye(t);
|
|
2161
2132
|
return e ? n : Zt(n, !r);
|
|
2162
2133
|
}
|
|
2163
|
-
function
|
|
2134
|
+
function Ye(t, e, r) {
|
|
2164
2135
|
t === void 0 && (t = 30);
|
|
2165
|
-
var n = r ?
|
|
2136
|
+
var n = r ? De(t, !0) : Gn(), i = 60 * t, s = n.created;
|
|
2166
2137
|
if (r) {
|
|
2167
2138
|
var a = $t(), o = a[0], u = a[1];
|
|
2168
2139
|
n.modified = u, n.modifiedAt = o, s = u;
|
|
2169
2140
|
}
|
|
2170
2141
|
var l = $t(s + 1e3 * i), f = l[0];
|
|
2171
|
-
return n.expires = l[1], n.expiresAt = f, n.duration = 1e3 * i, e && (n = Object.assign(n, e)),
|
|
2142
|
+
return n.expires = l[1], n.expiresAt = f, n.duration = 1e3 * i, e && (n = Object.assign(n, e)), Cn(Kn, JSON.stringify(n), i), Zt(n, !r);
|
|
2172
2143
|
}
|
|
2173
|
-
var
|
|
2174
|
-
return
|
|
2175
|
-
},
|
|
2176
|
-
function
|
|
2144
|
+
var as = function(t, e) {
|
|
2145
|
+
return Ye(t, e, !0);
|
|
2146
|
+
}, Fn = rt.bind(null, tt), ss = rt.bind(null, tt, !0), er = rt.bind(null, qn), Hr = rt.bind(null, qn, !0), ve = typeof window < "u";
|
|
2147
|
+
function os(t) {
|
|
2177
2148
|
return typeof t == "string";
|
|
2178
2149
|
}
|
|
2179
2150
|
function Kr(t) {
|
|
2180
2151
|
return typeof t == "boolean";
|
|
2181
2152
|
}
|
|
2182
|
-
var It,
|
|
2183
|
-
function
|
|
2184
|
-
if (
|
|
2185
|
-
|
|
2153
|
+
var It, qr;
|
|
2154
|
+
function us() {
|
|
2155
|
+
if (qr) return It;
|
|
2156
|
+
qr = 1;
|
|
2186
2157
|
var t = function(d) {
|
|
2187
2158
|
return e(d) && !r(d);
|
|
2188
2159
|
};
|
|
@@ -2255,9 +2226,9 @@ function cs() {
|
|
|
2255
2226
|
var w = I;
|
|
2256
2227
|
return It = w, It;
|
|
2257
2228
|
}
|
|
2258
|
-
var
|
|
2259
|
-
const
|
|
2260
|
-
const Ct = new TextEncoder(),
|
|
2229
|
+
var cs = us();
|
|
2230
|
+
const ls = /* @__PURE__ */ ln(cs);
|
|
2231
|
+
const Ct = new TextEncoder(), fs = {
|
|
2261
2232
|
appstream2: "appstream",
|
|
2262
2233
|
cloudhsmv2: "cloudhsm",
|
|
2263
2234
|
email: "ses",
|
|
@@ -2268,7 +2239,7 @@ const Ct = new TextEncoder(), ds = {
|
|
|
2268
2239
|
"git-codecommit": "codecommit",
|
|
2269
2240
|
"mturk-requester-sandbox": "mturk-requester",
|
|
2270
2241
|
"personalize-runtime": "personalize"
|
|
2271
|
-
},
|
|
2242
|
+
}, ds = /* @__PURE__ */ new Set([
|
|
2272
2243
|
"authorization",
|
|
2273
2244
|
"content-type",
|
|
2274
2245
|
"content-length",
|
|
@@ -2279,7 +2250,7 @@ const Ct = new TextEncoder(), ds = {
|
|
|
2279
2250
|
"range",
|
|
2280
2251
|
"connection"
|
|
2281
2252
|
]);
|
|
2282
|
-
class
|
|
2253
|
+
class ps {
|
|
2283
2254
|
constructor({ accessKeyId: e, secretAccessKey: r, sessionToken: n, service: i, region: s, cache: a, retries: o, initRetryMs: u }) {
|
|
2284
2255
|
if (e == null) throw new TypeError("accessKeyId is a required option");
|
|
2285
2256
|
if (r == null) throw new TypeError("secretAccessKey is a required option");
|
|
@@ -2290,7 +2261,7 @@ class gs {
|
|
|
2290
2261
|
const { method: s, url: a, headers: o, body: u } = e;
|
|
2291
2262
|
r = Object.assign({ method: s, url: a, headers: o }, r), r.body == null && o.has("Content-Type") && (r.body = u != null && o.has("X-Amz-Content-Sha256") ? u : await e.clone().arrayBuffer()), e = a;
|
|
2292
2263
|
}
|
|
2293
|
-
const n = new
|
|
2264
|
+
const n = new gs(Object.assign({ url: e.toString() }, r, this, r && r.aws)), i = Object.assign({}, r, await n.sign());
|
|
2294
2265
|
delete i.aws;
|
|
2295
2266
|
try {
|
|
2296
2267
|
return new Request(i.url.toString(), i);
|
|
@@ -2313,16 +2284,16 @@ class gs {
|
|
|
2313
2284
|
throw new Error("An unknown error occurred, ensure retries is not negative");
|
|
2314
2285
|
}
|
|
2315
2286
|
}
|
|
2316
|
-
class
|
|
2287
|
+
class gs {
|
|
2317
2288
|
constructor({ method: e, url: r, headers: n, body: i, accessKeyId: s, secretAccessKey: a, sessionToken: o, service: u, region: l, cache: f, datetime: p, signQuery: g, appendSessionToken: b, allHeaders: S, singleEncode: I }) {
|
|
2318
2289
|
if (r == null) throw new TypeError("url is a required option");
|
|
2319
2290
|
if (s == null) throw new TypeError("accessKeyId is a required option");
|
|
2320
2291
|
if (a == null) throw new TypeError("secretAccessKey is a required option");
|
|
2321
2292
|
this.method = e || (i ? "POST" : "GET"), this.url = new URL(r), this.headers = new Headers(n || {}), this.body = i, this.accessKeyId = s, this.secretAccessKey = a, this.sessionToken = o;
|
|
2322
2293
|
let w, y;
|
|
2323
|
-
(!u || !l) && ([w, y] =
|
|
2294
|
+
(!u || !l) && ([w, y] = hs(this.url, this.headers)), this.service = u || w || "", this.region = l || y || "us-east-1", this.cache = f || /* @__PURE__ */ new Map(), this.datetime = p || (/* @__PURE__ */ new Date()).toISOString().replace(/[:-]|\.\d{3}/g, ""), this.signQuery = g, this.appendSessionToken = b || this.service === "iotdevicegateway", this.headers.delete("Host"), this.service === "s3" && !this.signQuery && !this.headers.has("X-Amz-Content-Sha256") && this.headers.set("X-Amz-Content-Sha256", "UNSIGNED-PAYLOAD");
|
|
2324
2295
|
const d = this.signQuery ? this.url.searchParams : this.headers;
|
|
2325
|
-
if (d.set("X-Amz-Date", this.datetime), this.sessionToken && !this.appendSessionToken && d.set("X-Amz-Security-Token", this.sessionToken), this.signableHeaders = ["host", ...this.headers.keys()].filter((v) => S || !
|
|
2296
|
+
if (d.set("X-Amz-Date", this.datetime), this.sessionToken && !this.appendSessionToken && d.set("X-Amz-Security-Token", this.sessionToken), this.signableHeaders = ["host", ...this.headers.keys()].filter((v) => S || !ds.has(v)).sort(), this.signedHeaders = this.signableHeaders.join(";"), this.canonicalHeaders = this.signableHeaders.map((v) => v + ":" + (v === "host" ? this.url.host : (this.headers.get(v) || "").replace(/\s+/g, " "))).join(`
|
|
2326
2297
|
`), this.credentialString = [this.datetime.slice(0, 8), this.region, this.service, "aws4_request"].join("/"), this.signQuery && (this.service === "s3" && !d.has("X-Amz-Expires") && d.set("X-Amz-Expires", "86400"), d.set("X-Amz-Algorithm", "AWS4-HMAC-SHA256"), d.set("X-Amz-Credential", this.accessKeyId + "/" + this.credentialString), d.set("X-Amz-SignedHeaders", this.signedHeaders)), this.service === "s3")
|
|
2327
2298
|
try {
|
|
2328
2299
|
this.encodedPath = decodeURIComponent(this.url.pathname.replace(/\+/g, " "));
|
|
@@ -2331,7 +2302,7 @@ class hs {
|
|
|
2331
2302
|
}
|
|
2332
2303
|
else
|
|
2333
2304
|
this.encodedPath = this.url.pathname.replace(/\/+/g, "/");
|
|
2334
|
-
I || (this.encodedPath = encodeURIComponent(this.encodedPath).replace(/%2F/g, "/")), this.encodedPath =
|
|
2305
|
+
I || (this.encodedPath = encodeURIComponent(this.encodedPath).replace(/%2F/g, "/")), this.encodedPath = Br(this.encodedPath);
|
|
2335
2306
|
const E = /* @__PURE__ */ new Set();
|
|
2336
2307
|
this.encodedSearch = [...this.url.searchParams].filter(([v]) => {
|
|
2337
2308
|
if (!v) return !1;
|
|
@@ -2340,7 +2311,7 @@ class hs {
|
|
|
2340
2311
|
E.add(v);
|
|
2341
2312
|
}
|
|
2342
2313
|
return !0;
|
|
2343
|
-
}).map((v) => v.map((m) =>
|
|
2314
|
+
}).map((v) => v.map((m) => Br(encodeURIComponent(m)))).sort(([v, m], [T, x]) => v < T ? -1 : v > T ? 1 : m < x ? -1 : m > x ? 1 : 0).map((v) => v.join("=")).join("&");
|
|
2344
2315
|
}
|
|
2345
2316
|
async sign() {
|
|
2346
2317
|
return this.signQuery ? (this.url.searchParams.set("X-Amz-Signature", await this.signature()), this.sessionToken && this.appendSessionToken && this.url.searchParams.set("X-Amz-Security-Token", this.sessionToken)) : this.headers.set("Authorization", await this.authHeader()), {
|
|
@@ -2371,7 +2342,7 @@ class hs {
|
|
|
2371
2342
|
"AWS4-HMAC-SHA256",
|
|
2372
2343
|
this.datetime,
|
|
2373
2344
|
this.credentialString,
|
|
2374
|
-
At(await
|
|
2345
|
+
At(await Gr(await this.canonicalString()))
|
|
2375
2346
|
].join(`
|
|
2376
2347
|
`);
|
|
2377
2348
|
}
|
|
@@ -2392,7 +2363,7 @@ class hs {
|
|
|
2392
2363
|
if (e == null) {
|
|
2393
2364
|
if (this.body && typeof this.body != "string" && !("byteLength" in this.body))
|
|
2394
2365
|
throw new Error("body must be a string, ArrayBuffer or ArrayBufferView, unless you include the X-Amz-Content-Sha256 header");
|
|
2395
|
-
e = At(await
|
|
2366
|
+
e = At(await Gr(this.body || ""));
|
|
2396
2367
|
}
|
|
2397
2368
|
return e;
|
|
2398
2369
|
}
|
|
@@ -2407,23 +2378,23 @@ async function je(t, e) {
|
|
|
2407
2378
|
);
|
|
2408
2379
|
return crypto.subtle.sign("HMAC", r, Ct.encode(e));
|
|
2409
2380
|
}
|
|
2410
|
-
async function
|
|
2381
|
+
async function Gr(t) {
|
|
2411
2382
|
return crypto.subtle.digest("SHA-256", typeof t == "string" ? Ct.encode(t) : t);
|
|
2412
2383
|
}
|
|
2413
|
-
const
|
|
2384
|
+
const Fr = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"];
|
|
2414
2385
|
function At(t) {
|
|
2415
2386
|
const e = new Uint8Array(t);
|
|
2416
2387
|
let r = "";
|
|
2417
2388
|
for (let n = 0; n < e.length; n++) {
|
|
2418
2389
|
const i = e[n];
|
|
2419
|
-
r +=
|
|
2390
|
+
r += Fr[i >>> 4 & 15], r += Fr[i & 15];
|
|
2420
2391
|
}
|
|
2421
2392
|
return r;
|
|
2422
2393
|
}
|
|
2423
|
-
function
|
|
2394
|
+
function Br(t) {
|
|
2424
2395
|
return t.replace(/[!'()*]/g, (e) => "%" + e.charCodeAt(0).toString(16).toUpperCase());
|
|
2425
2396
|
}
|
|
2426
|
-
function
|
|
2397
|
+
function hs(t, e) {
|
|
2427
2398
|
const { hostname: r, pathname: n } = t;
|
|
2428
2399
|
if (r.endsWith(".on.aws")) {
|
|
2429
2400
|
const o = r.match(/^[^.]{1,63}\.lambda-url\.([^.]{1,63})\.on\.aws$/);
|
|
@@ -2447,14 +2418,14 @@ function ms(t, e) {
|
|
|
2447
2418
|
const o = (e.get("X-Amz-Target") || "").split(".")[0];
|
|
2448
2419
|
o === "AnyScaleFrontendService" ? s = "application-autoscaling" : o === "AnyScaleScalingPlannerFrontendService" && (s = "autoscaling-plans");
|
|
2449
2420
|
} else a == null && s.startsWith("s3-") ? (a = s.slice(3).replace(/^fips-|^external-1/, ""), s = "s3") : s.endsWith("-fips") ? s = s.slice(0, -5) : a && /-\d$/.test(s) && !/-\d$/.test(a) && ([s, a] = [a, s]);
|
|
2450
|
-
return [
|
|
2421
|
+
return [fs[s] || s, a || ""];
|
|
2451
2422
|
}
|
|
2452
2423
|
var tr = "Event", Yr = tr + "Listener";
|
|
2453
|
-
function
|
|
2424
|
+
function ms(t) {
|
|
2454
2425
|
return function(e, r, n, i) {
|
|
2455
|
-
var s = n ||
|
|
2426
|
+
var s = n || qi, a = i || !1;
|
|
2456
2427
|
if (!Q) return s;
|
|
2457
|
-
var o =
|
|
2428
|
+
var o = Xe(r), u = Xe(e, !0);
|
|
2458
2429
|
if (!u.length) throw new Error("noElements");
|
|
2459
2430
|
if (!o.length) throw new Error("no" + tr);
|
|
2460
2431
|
var l = [];
|
|
@@ -2462,15 +2433,15 @@ function vs(t) {
|
|
|
2462
2433
|
p && (l = []);
|
|
2463
2434
|
for (var g = p ? "add" + Yr : "remove" + Yr, b = 0; b < u.length; b++) {
|
|
2464
2435
|
var S = u[b];
|
|
2465
|
-
l[b] = p ? a && a.once ?
|
|
2436
|
+
l[b] = p ? a && a.once ? vs(s) : s : l[b] || s;
|
|
2466
2437
|
for (var I = 0; I < o.length; I++) S[g] ? S["on" + o[I]] = p ? l[b] : null : S[g](o[I], l[b], a);
|
|
2467
2438
|
}
|
|
2468
2439
|
return f.bind(null, !p);
|
|
2469
2440
|
})(t);
|
|
2470
2441
|
};
|
|
2471
2442
|
}
|
|
2472
|
-
function
|
|
2473
|
-
if (ce(t)) return e ?
|
|
2443
|
+
function Xe(t, e) {
|
|
2444
|
+
if (ce(t)) return e ? Xe(document.querySelectorAll(t)) : (r = t).split(r.indexOf(",") > -1 ? "," : " ").map(function(a) {
|
|
2474
2445
|
return a.trim();
|
|
2475
2446
|
});
|
|
2476
2447
|
var r;
|
|
@@ -2478,30 +2449,30 @@ function Je(t, e) {
|
|
|
2478
2449
|
for (var n = [], i = t.length >>> 0; i--; ) n[i] = t[i];
|
|
2479
2450
|
return n;
|
|
2480
2451
|
}
|
|
2481
|
-
var s =
|
|
2452
|
+
var s = aa(t);
|
|
2482
2453
|
return e ? s.map(function(a) {
|
|
2483
|
-
return ce(a) ?
|
|
2454
|
+
return ce(a) ? Xe(a, !0) : a;
|
|
2484
2455
|
}).flat() : s;
|
|
2485
2456
|
}
|
|
2486
|
-
function
|
|
2457
|
+
function vs(t, e) {
|
|
2487
2458
|
var r;
|
|
2488
2459
|
return function() {
|
|
2489
2460
|
return t && (r = t.apply(this, arguments), t = null), r;
|
|
2490
2461
|
};
|
|
2491
2462
|
}
|
|
2492
|
-
var
|
|
2493
|
-
function
|
|
2463
|
+
var Ot = ms(tr);
|
|
2464
|
+
function Bn(t, e) {
|
|
2494
2465
|
return Q && Z(window[t]) ? (r = window[t], n = e, (i = window) === void 0 && (i = null), Z(r) ? function() {
|
|
2495
2466
|
r.apply(i, arguments), n.apply(i, arguments);
|
|
2496
2467
|
} : n) : window[t] = e;
|
|
2497
2468
|
var r, n, i;
|
|
2498
2469
|
}
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
var
|
|
2502
|
-
function
|
|
2503
|
-
if (
|
|
2504
|
-
var e =
|
|
2470
|
+
Bn.bind(null, "onerror");
|
|
2471
|
+
Bn.bind(null, "onload");
|
|
2472
|
+
var Yn = typeof window > "u", Xr = "hidden";
|
|
2473
|
+
function ys(t) {
|
|
2474
|
+
if (Yn) return !1;
|
|
2475
|
+
var e = bs(), r = "".concat(e.replace(/[H|h]idden/, ""), "visibilitychange"), n = function() {
|
|
2505
2476
|
return t(!!document[e]);
|
|
2506
2477
|
}, i = function() {
|
|
2507
2478
|
return document.addEventListener(r, n);
|
|
@@ -2510,15 +2481,15 @@ function bs(t) {
|
|
|
2510
2481
|
return document.removeEventListener(r, n), i;
|
|
2511
2482
|
};
|
|
2512
2483
|
}
|
|
2513
|
-
function
|
|
2484
|
+
function bs() {
|
|
2514
2485
|
var t = ["webkit", "moz", "ms", "o"];
|
|
2515
|
-
return
|
|
2486
|
+
return Yn || Xr in document ? Xr : t.reduce(function(e, r) {
|
|
2516
2487
|
var n = r + "Hidden";
|
|
2517
2488
|
return !e && n in document ? n : e;
|
|
2518
2489
|
}, null);
|
|
2519
2490
|
}
|
|
2520
|
-
var
|
|
2521
|
-
function
|
|
2491
|
+
var ws = ["mousemove", "mousedown", "touchmove", "touchstart", "touchend", "keydown"];
|
|
2492
|
+
function Ss(t, e) {
|
|
2522
2493
|
e === void 0 && (e = {});
|
|
2523
2494
|
var r = /* @__PURE__ */ (function(a, o) {
|
|
2524
2495
|
var u = this, l = !1;
|
|
@@ -2529,12 +2500,12 @@ function Es(t, e) {
|
|
|
2529
2500
|
};
|
|
2530
2501
|
})(t, e.throttle || 1e4), n = [];
|
|
2531
2502
|
function i() {
|
|
2532
|
-
var a =
|
|
2503
|
+
var a = ys(function(o) {
|
|
2533
2504
|
o || r({ type: "tabVisible" });
|
|
2534
2505
|
});
|
|
2535
|
-
return n = [a].concat(
|
|
2536
|
-
return
|
|
2537
|
-
})).concat(
|
|
2506
|
+
return n = [a].concat(ws.map(function(o) {
|
|
2507
|
+
return Ot(document, o, r);
|
|
2508
|
+
})).concat(Ot(window, "load", r)).concat(Ot(window, "scroll", r, { capture: !0, passive: !0 })), s;
|
|
2538
2509
|
}
|
|
2539
2510
|
function s() {
|
|
2540
2511
|
n.map(function(a) {
|
|
@@ -2545,7 +2516,7 @@ function Es(t, e) {
|
|
|
2545
2516
|
return s(), i;
|
|
2546
2517
|
};
|
|
2547
2518
|
}
|
|
2548
|
-
function
|
|
2519
|
+
function Es(t) {
|
|
2549
2520
|
var e, r, n = t.onIdle, i = t.onWakeUp, s = t.onHeartbeat, a = t.timeout, o = a, u = t.throttle, l = u, f = !1, p = !1, g = /* @__PURE__ */ new Date(), b = function() {
|
|
2550
2521
|
return clearTimeout(e);
|
|
2551
2522
|
};
|
|
@@ -2554,7 +2525,7 @@ function Is(t) {
|
|
|
2554
2525
|
f = !0, n && (r = /* @__PURE__ */ new Date(), n(Ne(g), w));
|
|
2555
2526
|
}, o);
|
|
2556
2527
|
}
|
|
2557
|
-
var I =
|
|
2528
|
+
var I = Ss(S, { throttle: l });
|
|
2558
2529
|
return { disable: function() {
|
|
2559
2530
|
p = !0, f = !1, b();
|
|
2560
2531
|
var w = I();
|
|
@@ -2568,7 +2539,7 @@ function Is(t) {
|
|
|
2568
2539
|
function Ne(t, e) {
|
|
2569
2540
|
return e ? 0 : Math.round((/* @__PURE__ */ new Date() - t) / 1e3);
|
|
2570
2541
|
}
|
|
2571
|
-
var
|
|
2542
|
+
var Xn = "object", Is = "string", Jr = "?", Y = "name", X = "version", As = "", Qr = "function", Os = "undefined", Ps = "BlackBerry", xs = "Chrome", Ts = "Firefox", Zr = {
|
|
2572
2543
|
ME: "4.90",
|
|
2573
2544
|
"NT 3.11": "NT3.51",
|
|
2574
2545
|
"NT 4.0": "NT4.0",
|
|
@@ -2580,7 +2551,7 @@ var Qn = "object", As = "string", Jr = "?", Y = "name", X = "version", Ps = "",
|
|
|
2580
2551
|
"8.1": "NT 6.3",
|
|
2581
2552
|
10: ["NT 6.4", "NT 10.0"],
|
|
2582
2553
|
RT: "ARM"
|
|
2583
|
-
},
|
|
2554
|
+
}, ks = [
|
|
2584
2555
|
[
|
|
2585
2556
|
/* Windows */
|
|
2586
2557
|
// Windows (iTunes)
|
|
@@ -2621,17 +2592,17 @@ var Qn = "object", As = "string", Jr = "?", Y = "name", X = "version", Ps = "",
|
|
|
2621
2592
|
[Y, X],
|
|
2622
2593
|
// BlackBerry 10
|
|
2623
2594
|
[/\(bb(10);/i],
|
|
2624
|
-
[X, [Y,
|
|
2595
|
+
[X, [Y, Ps]],
|
|
2625
2596
|
// Firefox OS
|
|
2626
2597
|
[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],
|
|
2627
|
-
[X, [Y,
|
|
2598
|
+
[X, [Y, Ts + " OS"]],
|
|
2628
2599
|
// WebOS
|
|
2629
2600
|
[/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],
|
|
2630
2601
|
[X, [Y, "webOS"]],
|
|
2631
2602
|
// Google Chromecast
|
|
2632
2603
|
[/crkey\/([\d\.]+)/i],
|
|
2633
2604
|
// Google Chromecast
|
|
2634
|
-
[X, [Y,
|
|
2605
|
+
[X, [Y, xs + "cast"]],
|
|
2635
2606
|
// Chromium OS
|
|
2636
2607
|
[/(cros) [\w]+ ([\w\.]+\w)/i],
|
|
2637
2608
|
[[Y, "Chromium OS"], X],
|
|
@@ -2650,19 +2621,19 @@ var Qn = "object", As = "string", Jr = "?", Y = "name", X = "version", Ps = "",
|
|
|
2650
2621
|
],
|
|
2651
2622
|
[Y, X]
|
|
2652
2623
|
];
|
|
2653
|
-
function
|
|
2624
|
+
function js(t, e) {
|
|
2654
2625
|
for (var r = 0, n, i, s, a, o, u; r < e.length && !o; ) {
|
|
2655
2626
|
var l = e[r], f = e[r + 1];
|
|
2656
2627
|
for (n = i = 0; n < l.length && !o; )
|
|
2657
2628
|
if (o = l[n++].exec(t), o)
|
|
2658
2629
|
for (s = 0; s < f.length; s++)
|
|
2659
|
-
u = o[++i], a = f[s], ee(a) ===
|
|
2630
|
+
u = o[++i], a = f[s], ee(a) === Xn && a.length > 0 ? a.length == 2 ? ee(a[1]) == Qr ? this[a[0]] = a[1].call(this, u) : this[a[0]] = a[1] : a.length == 3 ? ee(a[1]) === Qr && !(a[1].exec && a[1].test) ? this[a[0]] = u ? a[1].call(this, u, a[2]) : void 0 : this[a[0]] = u ? u.replace(a[1], a[2]) : void 0 : a.length == 4 && (this[a[0]] = u ? a[3].call(this, u.replace(a[1], a[2])) : void 0) : this[a] = u || void 0;
|
|
2660
2631
|
r += 2;
|
|
2661
2632
|
}
|
|
2662
2633
|
}
|
|
2663
2634
|
function en(t, e) {
|
|
2664
2635
|
for (var r in e)
|
|
2665
|
-
if (ee(e[r]) ===
|
|
2636
|
+
if (ee(e[r]) === Xn && e[r].length > 0) {
|
|
2666
2637
|
for (var n = 0; n < e[r].length; n++)
|
|
2667
2638
|
if (tn(e[r][n], t))
|
|
2668
2639
|
return r === Jr ? void 0 : r;
|
|
@@ -2671,43 +2642,43 @@ function en(t, e) {
|
|
|
2671
2642
|
return t;
|
|
2672
2643
|
}
|
|
2673
2644
|
function tn(t, e) {
|
|
2674
|
-
return ee(t) ===
|
|
2645
|
+
return ee(t) === Is ? rn(e).indexOf(rn(t)) !== -1 : !1;
|
|
2675
2646
|
}
|
|
2676
2647
|
function rn(t) {
|
|
2677
2648
|
return t.toLowerCase();
|
|
2678
2649
|
}
|
|
2679
|
-
function
|
|
2680
|
-
var e = (typeof window > "u" ? "undefined" : ee(window)) !== Os && window.navigator && window.navigator.userAgent ? window.navigator.userAgent :
|
|
2681
|
-
return r[Y] = void 0, r[X] = void 0,
|
|
2650
|
+
function Ns(t) {
|
|
2651
|
+
var e = (typeof window > "u" ? "undefined" : ee(window)) !== Os && window.navigator && window.navigator.userAgent ? window.navigator.userAgent : As, r = {};
|
|
2652
|
+
return r[Y] = void 0, r[X] = void 0, js.call(r, e, ks), r;
|
|
2682
2653
|
}
|
|
2683
|
-
var
|
|
2654
|
+
var Jn = "Brave";
|
|
2684
2655
|
function rr() {
|
|
2685
2656
|
if (typeof window > "u")
|
|
2686
2657
|
return {};
|
|
2687
2658
|
if (!window.navigator)
|
|
2688
2659
|
return {};
|
|
2689
|
-
var t = window.navigator, e = t.platform, r = t.product, n = t.vendor, i =
|
|
2660
|
+
var t = window.navigator, e = t.platform, r = t.product, n = t.vendor, i = Cs(window.navigator), s = i.type, a = i.version, o = s === Jn ? s : (n || "").split(" ")[0];
|
|
2690
2661
|
return {
|
|
2691
2662
|
platform: e,
|
|
2692
|
-
os:
|
|
2663
|
+
os: Ns(),
|
|
2693
2664
|
make: o || r,
|
|
2694
2665
|
// product always gecko
|
|
2695
2666
|
model: s,
|
|
2696
2667
|
version: a,
|
|
2697
2668
|
name: [s, a].join("/"),
|
|
2698
|
-
language:
|
|
2699
|
-
timezone:
|
|
2669
|
+
language: Ms(),
|
|
2670
|
+
timezone: $s()
|
|
2700
2671
|
};
|
|
2701
2672
|
}
|
|
2702
|
-
function
|
|
2673
|
+
function Ms() {
|
|
2703
2674
|
var t = window.navigator, e = t.language, r = t.browserLanguage, n = t.languages;
|
|
2704
2675
|
return (e || r || (n || ["en_US"])[0]).toLowerCase().replace("-", "_");
|
|
2705
2676
|
}
|
|
2706
|
-
function
|
|
2677
|
+
function $s() {
|
|
2707
2678
|
var t = /\(([A-Za-z\s].*)\)/.exec((/* @__PURE__ */ new Date()).toString());
|
|
2708
2679
|
return t && t[1] || "";
|
|
2709
2680
|
}
|
|
2710
|
-
function
|
|
2681
|
+
function Cs(t) {
|
|
2711
2682
|
var e = t.userAgent, r = /.+(Opera[\s[A-Z]*|OPR[\sA-Z]*)\/([0-9\.]+).*/i.exec(e);
|
|
2712
2683
|
if (r)
|
|
2713
2684
|
return {
|
|
@@ -2730,7 +2701,7 @@ function _s(t) {
|
|
|
2730
2701
|
if (s) {
|
|
2731
2702
|
var a = t.brave && t.brave.isBrave || !1;
|
|
2732
2703
|
return {
|
|
2733
|
-
type: a ?
|
|
2704
|
+
type: a ? Jn : s[1],
|
|
2734
2705
|
version: s[2]
|
|
2735
2706
|
};
|
|
2736
2707
|
}
|
|
@@ -2752,7 +2723,7 @@ function _s(t) {
|
|
|
2752
2723
|
version: f[2]
|
|
2753
2724
|
};
|
|
2754
2725
|
}
|
|
2755
|
-
function
|
|
2726
|
+
function _s(t) {
|
|
2756
2727
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2757
2728
|
return e[t] || t;
|
|
2758
2729
|
}
|
|
@@ -2772,9 +2743,9 @@ function Dt() {
|
|
|
2772
2743
|
f.next = 13;
|
|
2773
2744
|
break;
|
|
2774
2745
|
}
|
|
2775
|
-
return i = f.t1.value, s = Array.isArray(e[i]) ? e[i] : [e[i]], a = r ? s : s[0], f.next = 9,
|
|
2746
|
+
return i = f.t1.value, s = Array.isArray(e[i]) ? e[i] : [e[i]], a = r ? s : s[0], f.next = 9, Zn(a, Ds);
|
|
2776
2747
|
case 9:
|
|
2777
|
-
o = f.sent,
|
|
2748
|
+
o = f.sent, ei(o) || (n[i] = o), f.next = 3;
|
|
2778
2749
|
break;
|
|
2779
2750
|
case 13:
|
|
2780
2751
|
return f.abrupt("return", n);
|
|
@@ -2785,11 +2756,11 @@ function Dt() {
|
|
|
2785
2756
|
}, t);
|
|
2786
2757
|
})), Dt.apply(this, arguments);
|
|
2787
2758
|
}
|
|
2788
|
-
function
|
|
2789
|
-
return
|
|
2759
|
+
function Qn(t) {
|
|
2760
|
+
return Rt.apply(this, arguments);
|
|
2790
2761
|
}
|
|
2791
|
-
function
|
|
2792
|
-
return
|
|
2762
|
+
function Rt() {
|
|
2763
|
+
return Rt = re(/* @__PURE__ */ K.mark(function t(e) {
|
|
2793
2764
|
var r, n;
|
|
2794
2765
|
return K.wrap(function(s) {
|
|
2795
2766
|
for (; ; )
|
|
@@ -2801,7 +2772,7 @@ function Ut() {
|
|
|
2801
2772
|
s.next = 9;
|
|
2802
2773
|
break;
|
|
2803
2774
|
}
|
|
2804
|
-
return n = s.t1.value, s.next = 6,
|
|
2775
|
+
return n = s.t1.value, s.next = 6, Zn(e[n], Rs);
|
|
2805
2776
|
case 6:
|
|
2806
2777
|
r[n] = s.sent, s.next = 2;
|
|
2807
2778
|
break;
|
|
@@ -2812,13 +2783,13 @@ function Ut() {
|
|
|
2812
2783
|
return s.stop();
|
|
2813
2784
|
}
|
|
2814
2785
|
}, t);
|
|
2815
|
-
})),
|
|
2786
|
+
})), Rt.apply(this, arguments);
|
|
2816
2787
|
}
|
|
2817
|
-
function
|
|
2818
|
-
return
|
|
2788
|
+
function Zn(t, e) {
|
|
2789
|
+
return Ut.apply(this, arguments);
|
|
2819
2790
|
}
|
|
2820
|
-
function
|
|
2821
|
-
return
|
|
2791
|
+
function Ut() {
|
|
2792
|
+
return Ut = re(/* @__PURE__ */ K.mark(function t(e, r) {
|
|
2822
2793
|
return K.wrap(function(i) {
|
|
2823
2794
|
for (; ; )
|
|
2824
2795
|
switch (i.prev = i.next) {
|
|
@@ -2837,36 +2808,36 @@ function Rt() {
|
|
|
2837
2808
|
return i.stop();
|
|
2838
2809
|
}
|
|
2839
2810
|
}, t);
|
|
2840
|
-
})),
|
|
2811
|
+
})), Ut.apply(this, arguments);
|
|
2841
2812
|
}
|
|
2842
|
-
function
|
|
2813
|
+
function Ds(t) {
|
|
2843
2814
|
if (t != null)
|
|
2844
|
-
return Array.isArray(t) ? t.filter(
|
|
2815
|
+
return Array.isArray(t) ? t.filter(Us).map(function(e) {
|
|
2845
2816
|
return e.toString();
|
|
2846
|
-
}) :
|
|
2817
|
+
}) : ei(t) ? t : t.toString();
|
|
2847
2818
|
}
|
|
2848
2819
|
function Rs(t) {
|
|
2849
2820
|
return parseFloat(Number(Array.isArray(t) ? t[0] : t));
|
|
2850
2821
|
}
|
|
2851
|
-
function
|
|
2822
|
+
function Us(t) {
|
|
2852
2823
|
return t !== null && typeof t < "u";
|
|
2853
2824
|
}
|
|
2854
|
-
function
|
|
2825
|
+
function ei(t) {
|
|
2855
2826
|
return t == null;
|
|
2856
2827
|
}
|
|
2857
|
-
var zt = "_session.start",
|
|
2858
|
-
function
|
|
2828
|
+
var zt = "_session.start", nt = "_session.stop", ti = "pageView";
|
|
2829
|
+
function zs(t) {
|
|
2859
2830
|
return Vt.apply(this, arguments);
|
|
2860
2831
|
}
|
|
2861
2832
|
function Vt() {
|
|
2862
2833
|
return Vt = re(/* @__PURE__ */ K.mark(function t(e) {
|
|
2863
|
-
var r, n, i, s, a, o, u, l, f, p, g, b, S, I, w, y, d, E, v, m, T, x, A, $, k, _, z, V, C,
|
|
2834
|
+
var r, n, i, s, a, o, u, l, f, p, g, b, S, I, w, y, d, E, v, m, T, x, A, $, k, _, z, V, C, O, W, R = arguments;
|
|
2864
2835
|
return K.wrap(function(c) {
|
|
2865
2836
|
for (; ; )
|
|
2866
2837
|
switch (c.prev = c.next) {
|
|
2867
2838
|
case 0:
|
|
2868
|
-
if (r =
|
|
2869
|
-
}, g =
|
|
2839
|
+
if (r = R.length > 1 && R[1] !== void 0 ? R[1] : {}, n = R.length > 2 && R[2] !== void 0 ? R[2] : {}, i = n.appTitle, s = n.appPackageName, a = n.appVersionCode, o = n.eventMapping, u = n.enrichEventAttributes, l = n.enrichEventMetrics, f = n.debug, p = f ? console.log : function() {
|
|
2840
|
+
}, g = _s(e, o), b = De(), S = r.sessionId || b.id, I = r.sessionStart || b.createdAt, w = r.sessionStart ? new Date(r.sessionStart).getTime() : b.created, p("event sessionData ", JSON.stringify(b)), ve && (y = er(), d = Fn(), p("event pageSessionInfo", JSON.stringify(y)), p("event tabSessionData ", JSON.stringify(d))), E = r.attributes || {}, v = r.eventId || be(), m = r.time ? new Date(r.time) : /* @__PURE__ */ new Date(), T = m.toISOString(), x = m.getTime() - w, A = F({
|
|
2870
2841
|
date: T,
|
|
2871
2842
|
sessionId: S
|
|
2872
2843
|
}, ve ? {
|
|
@@ -2882,7 +2853,7 @@ function Vt() {
|
|
|
2882
2853
|
case 23:
|
|
2883
2854
|
c.t0 = {};
|
|
2884
2855
|
case 24:
|
|
2885
|
-
if ($ = c.t0, k =
|
|
2856
|
+
if ($ = c.t0, k = F(F(F({}, A), $), E), _ = r.metrics || {}, z = {
|
|
2886
2857
|
/* Time of session */
|
|
2887
2858
|
sessionTime: b.elapsed || x,
|
|
2888
2859
|
/* Date metrics */
|
|
@@ -2901,14 +2872,14 @@ function Vt() {
|
|
|
2901
2872
|
case 34:
|
|
2902
2873
|
c.t1 = {};
|
|
2903
2874
|
case 35:
|
|
2904
|
-
return V = c.t1, C =
|
|
2875
|
+
return V = c.t1, C = F(F(F({}, z), V), _), c.next = 39, _t(k);
|
|
2905
2876
|
case 39:
|
|
2906
|
-
return c.t2 = c.sent, c.next = 42,
|
|
2877
|
+
return c.t2 = c.sent, c.next = 42, Qn(C);
|
|
2907
2878
|
case 42:
|
|
2908
|
-
return c.t3 = c.sent,
|
|
2879
|
+
return c.t3 = c.sent, O = {
|
|
2909
2880
|
attributes: c.t2,
|
|
2910
2881
|
metrics: c.t3
|
|
2911
|
-
}, p("".concat(v, ":").concat(g)), p("eventAttributes",
|
|
2882
|
+
}, p("".concat(v, ":").concat(g)), p("eventAttributes", O.attributes), p("eventMetrics", O.metrics), ve && p("clientInfo", rr()), W = Qt({}, v, F(F({
|
|
2912
2883
|
/* The name of the event */
|
|
2913
2884
|
EventType: g,
|
|
2914
2885
|
/* The date and time, in ISO 8601 format, when the event occurred. */
|
|
@@ -2921,13 +2892,13 @@ function Vt() {
|
|
|
2921
2892
|
AppVersionCode: a
|
|
2922
2893
|
} : {}), {}, {
|
|
2923
2894
|
/* Event attributes - One or more custom attributes that are associated with the event. */
|
|
2924
|
-
Attributes:
|
|
2895
|
+
Attributes: O.attributes,
|
|
2925
2896
|
/* The version of the SDK that's running on the client device. */
|
|
2926
2897
|
// ClientSdkVersion: 'STRING_VALUE',
|
|
2927
2898
|
/* The name of the SDK that's being used to record the event. */
|
|
2928
2899
|
// SdkName: 'STRING_VALUE',
|
|
2929
2900
|
/* Event metrics - One or more custom metrics that are associated with the event. */
|
|
2930
|
-
Metrics:
|
|
2901
|
+
Metrics: O.metrics,
|
|
2931
2902
|
Session: {
|
|
2932
2903
|
/* SessionId is required */
|
|
2933
2904
|
Id: S,
|
|
@@ -2935,7 +2906,7 @@ function Vt() {
|
|
|
2935
2906
|
StartTimestamp: I
|
|
2936
2907
|
// ISOString
|
|
2937
2908
|
}
|
|
2938
|
-
})), e ===
|
|
2909
|
+
})), e === nt && (W[v].Session.Duration = x, W[v].Session.StopTimestamp = T), c.abrupt("return", W);
|
|
2939
2910
|
case 51:
|
|
2940
2911
|
case "end":
|
|
2941
2912
|
return c.stop();
|
|
@@ -2943,9 +2914,9 @@ function Vt() {
|
|
|
2943
2914
|
}, t);
|
|
2944
2915
|
})), Vt.apply(this, arguments);
|
|
2945
2916
|
}
|
|
2946
|
-
var
|
|
2947
|
-
function
|
|
2948
|
-
return "".concat(
|
|
2917
|
+
var Vs = "__endpoint";
|
|
2918
|
+
function it(t) {
|
|
2919
|
+
return "".concat(Vs, ".").concat(t);
|
|
2949
2920
|
}
|
|
2950
2921
|
var nn = "__endpoint", an = !1;
|
|
2951
2922
|
function nr() {
|
|
@@ -2958,9 +2929,9 @@ function Lt() {
|
|
|
2958
2929
|
for (; ; )
|
|
2959
2930
|
switch (A.prev = A.next) {
|
|
2960
2931
|
case 0:
|
|
2961
|
-
return e = T.length > 0 && T[0] !== void 0 ? T[0] : {}, r = T.length > 1 && T[1] !== void 0 ? T[1] : {}, n = r.getUserId, i = r.getEndpointId, s = r.endpointMigration, a =
|
|
2932
|
+
return e = T.length > 0 && T[0] !== void 0 ? T[0] : {}, r = T.length > 1 && T[1] !== void 0 ? T[1] : {}, n = r.getUserId, i = r.getEndpointId, s = r.endpointMigration, a = Fs(r), o = a.sessionKey ? a.sessionKey() : "sessions", u = a.pageViewKey ? a.pageViewKey() : "pageViews", ve && (p = rr(), l = er(), f = l.id), g = De(), A.next = 10, i();
|
|
2962
2933
|
case 10:
|
|
2963
|
-
if (b = A.sent, an || (an = !0, S =
|
|
2934
|
+
if (b = A.sent, an || (an = !0, S = Gt(nn), S && (Pt(b, S), Rn(nn))), I = Ls(b), w = qs(r), y = Ws(w, p), d = {
|
|
2964
2935
|
Attributes: {},
|
|
2965
2936
|
Demographic: y,
|
|
2966
2937
|
Location: {
|
|
@@ -2981,8 +2952,8 @@ function Lt() {
|
|
|
2981
2952
|
* NONE - Users has not opted out and receives all messages.
|
|
2982
2953
|
*/
|
|
2983
2954
|
// OptOut: 'STRING_VALUE',
|
|
2984
|
-
}, ve && (p.device && p.device.vendor && (d.Attributes.DeviceMake = [p.device.vendor]), p.device && p.device.model && (d.Attributes.DeviceModel = [p.device.model]), p.device && p.device.type && (d.Attributes.DeviceType = [p.device.type])), e =
|
|
2985
|
-
arrayMerge:
|
|
2955
|
+
}, ve && (p.device && p.device.vendor && (d.Attributes.DeviceMake = [p.device.vendor]), p.device && p.device.model && (d.Attributes.DeviceModel = [p.device.model]), p.device && p.device.type && (d.Attributes.DeviceType = [p.device.type])), e = ls.all([I, d, e], {
|
|
2956
|
+
arrayMerge: Gs
|
|
2986
2957
|
// TODO maybe change array merge
|
|
2987
2958
|
}), !(e.User && e.User.UserId)) {
|
|
2988
2959
|
A.next = 23;
|
|
@@ -3010,15 +2981,15 @@ function Lt() {
|
|
|
3010
2981
|
case 32:
|
|
3011
2982
|
return A.next = 34, _t(e.Attributes, !0);
|
|
3012
2983
|
case 34:
|
|
3013
|
-
return e.Attributes = A.sent, A.next = 37,
|
|
2984
|
+
return e.Attributes = A.sent, A.next = 37, Qn(e.Metrics);
|
|
3014
2985
|
case 37:
|
|
3015
2986
|
if (e.Metrics = A.sent, e.Metrics[o] || (e.Metrics[o] = 1), e.Metrics[u] || (e.Metrics[u] = 1), s && (e = s(b, e)), m = e.Attributes.lastSession, m) {
|
|
3016
2987
|
A.next = 47;
|
|
3017
2988
|
break;
|
|
3018
2989
|
}
|
|
3019
|
-
return e.Attributes.lastSessionDate = [g.createdAt], e.Attributes.lastSession = [g.id], f && (e.Attributes.lastPageSession = [f]), A.abrupt("return",
|
|
2990
|
+
return e.Attributes.lastSessionDate = [g.createdAt], e.Attributes.lastSession = [g.id], f && (e.Attributes.lastPageSession = [f]), A.abrupt("return", Pt(b, e));
|
|
3020
2991
|
case 47:
|
|
3021
|
-
return m && m[0] !== g.id && (e.Attributes.lastSessionDate = [g.createdAt], e.Attributes.lastSession = [g.id], e.Metrics[o] += 1), e.Attributes && e.Attributes.lastPageSession && Array.isArray(e.Attributes.lastPageSession) && e.Attributes.lastPageSession.length > 0 && e.Attributes.lastPageSession[0] !== f && (e.Attributes.lastPageSession = [f], e.Metrics[u] += 1), A.abrupt("return",
|
|
2992
|
+
return m && m[0] !== g.id && (e.Attributes.lastSessionDate = [g.createdAt], e.Attributes.lastSession = [g.id], e.Metrics[o] += 1), e.Attributes && e.Attributes.lastPageSession && Array.isArray(e.Attributes.lastPageSession) && e.Attributes.lastPageSession.length > 0 && e.Attributes.lastPageSession[0] !== f && (e.Attributes.lastPageSession = [f], e.Metrics[u] += 1), A.abrupt("return", Pt(b, e));
|
|
3022
2993
|
case 50:
|
|
3023
2994
|
case "end":
|
|
3024
2995
|
return A.stop();
|
|
@@ -3026,21 +2997,21 @@ function Lt() {
|
|
|
3026
2997
|
}, t);
|
|
3027
2998
|
})), Lt.apply(this, arguments);
|
|
3028
2999
|
}
|
|
3029
|
-
function
|
|
3030
|
-
var r =
|
|
3031
|
-
return
|
|
3000
|
+
function Pt(t, e) {
|
|
3001
|
+
var r = it(t), n = os(e) ? e : JSON.stringify(e);
|
|
3002
|
+
return Da(r, n), e;
|
|
3032
3003
|
}
|
|
3033
|
-
function
|
|
3004
|
+
function Ls(t) {
|
|
3034
3005
|
try {
|
|
3035
|
-
return JSON.parse(
|
|
3006
|
+
return JSON.parse(Gt(it(t))) || {};
|
|
3036
3007
|
} catch {
|
|
3037
3008
|
}
|
|
3038
3009
|
return {};
|
|
3039
3010
|
}
|
|
3040
|
-
function
|
|
3041
|
-
return ve ?
|
|
3011
|
+
function Ws(t, e) {
|
|
3012
|
+
return ve ? Ks(t, e) : Hs(t);
|
|
3042
3013
|
}
|
|
3043
|
-
function
|
|
3014
|
+
function Hs(t) {
|
|
3044
3015
|
var e = {
|
|
3045
3016
|
AppVersion: t,
|
|
3046
3017
|
Make: "generic server",
|
|
@@ -3049,7 +3020,7 @@ function Ks(t) {
|
|
|
3049
3020
|
};
|
|
3050
3021
|
return e;
|
|
3051
3022
|
}
|
|
3052
|
-
function
|
|
3023
|
+
function Ks(t, e) {
|
|
3053
3024
|
var r = {
|
|
3054
3025
|
// AppTitle/0.0.0. Maps to application.version_name in kinesis stream
|
|
3055
3026
|
AppVersion: t,
|
|
@@ -3071,18 +3042,18 @@ function Gs(t, e) {
|
|
|
3071
3042
|
};
|
|
3072
3043
|
return e.os && e.os.version && (r.PlatformVersion = e.os.version), r;
|
|
3073
3044
|
}
|
|
3074
|
-
function
|
|
3045
|
+
function qs(t) {
|
|
3075
3046
|
var e = t.appTitle || t.appPackageName || "", r = t.appVersionCode || "0.0.0";
|
|
3076
3047
|
return e ? "".concat(e, "@").concat(r) : r;
|
|
3077
3048
|
}
|
|
3078
|
-
function
|
|
3049
|
+
function Gs(t, e) {
|
|
3079
3050
|
return e;
|
|
3080
3051
|
}
|
|
3081
|
-
function
|
|
3052
|
+
function Fs(t) {
|
|
3082
3053
|
var e = t.getContext;
|
|
3083
3054
|
return typeof e == "function" ? e() : e;
|
|
3084
3055
|
}
|
|
3085
|
-
function
|
|
3056
|
+
function Bs(t) {
|
|
3086
3057
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3087
3058
|
return /* @__PURE__ */ (function() {
|
|
3088
3059
|
var r = re(/* @__PURE__ */ K.mark(function i(s) {
|
|
@@ -3091,9 +3062,9 @@ function Ys(t) {
|
|
|
3091
3062
|
for (; ; )
|
|
3092
3063
|
switch (g.prev = g.next) {
|
|
3093
3064
|
case 0:
|
|
3094
|
-
return a = f.length > 1 && f[1] !== void 0 ? f[1] : {}, o = f.length > 2 && f[2] !== void 0 ? f[2] : {}, u = f.length > 3 && f[3] !== void 0 ? f[3] : !1, Kr(a) && (a = {}, u = a), Kr(o) && (o = {}, u = o), g.next = 7,
|
|
3065
|
+
return a = f.length > 1 && f[1] !== void 0 ? f[1] : {}, o = f.length > 2 && f[2] !== void 0 ? f[2] : {}, u = f.length > 3 && f[3] !== void 0 ? f[3] : !1, Kr(a) && (a = {}, u = a), Kr(o) && (o = {}, u = o), g.next = 7, zs(s, a, e);
|
|
3095
3066
|
case 7:
|
|
3096
|
-
if (l = g.sent, !(Object.entries(o).length || s ===
|
|
3067
|
+
if (l = g.sent, !(Object.entries(o).length || s === ti)) {
|
|
3097
3068
|
g.next = 12;
|
|
3098
3069
|
break;
|
|
3099
3070
|
}
|
|
@@ -3118,8 +3089,8 @@ function Ys(t) {
|
|
|
3118
3089
|
return n;
|
|
3119
3090
|
})();
|
|
3120
3091
|
}
|
|
3121
|
-
var sn,
|
|
3122
|
-
function
|
|
3092
|
+
var sn, Ys = [429, 500], Xs = [202], Js = 400;
|
|
3093
|
+
function Qs(t, e) {
|
|
3123
3094
|
return Wt.apply(this, arguments);
|
|
3124
3095
|
}
|
|
3125
3096
|
function Wt() {
|
|
@@ -3129,11 +3100,11 @@ function Wt() {
|
|
|
3129
3100
|
for (; ; )
|
|
3130
3101
|
switch (x.prev = x.next) {
|
|
3131
3102
|
case 0:
|
|
3132
|
-
return n = r.pinpointRegion, i = r.pinpointAppId, s = r.lambdaArn, a = r.lambdaRegion, o = r.credentials, u = r.getCredentials, l = r.debug, x.next = 3,
|
|
3103
|
+
return n = r.pinpointRegion, i = r.pinpointAppId, s = r.lambdaArn, a = r.lambdaRegion, o = r.credentials, u = r.getCredentials, l = r.debug, x.next = 3, Zs(o, u);
|
|
3133
3104
|
case 3:
|
|
3134
3105
|
return f = x.sent, l && console.log("pinpoint auth", f), p = a || n, g = n || a, b = r.fips === !0 ? "-fips" : "", S = "https://lambda.".concat(p, ".amazonaws.com/2015-03-31/functions/").concat(s, "/invocations"), I = "https://pinpoint".concat(b, ".").concat(g, ".amazonaws.com/v1/apps/").concat(i, "/events"), w = s ? S : I, E = {
|
|
3135
3106
|
body: JSON.stringify(e)
|
|
3136
|
-
}, y = new
|
|
3107
|
+
}, y = new ps(f), x.next = 16, y.fetch(w, E).then(function(A) {
|
|
3137
3108
|
return A.json();
|
|
3138
3109
|
});
|
|
3139
3110
|
case 16:
|
|
@@ -3154,7 +3125,7 @@ function Wt() {
|
|
|
3154
3125
|
return d.Results[A];
|
|
3155
3126
|
}), m.forEach(function(A) {
|
|
3156
3127
|
var $ = A.EndpointItemResponse || {}, k = A.EventsItemResponse || {};
|
|
3157
|
-
Object.keys($).length && (
|
|
3128
|
+
Object.keys($).length && (Xs.includes($.StatusCode) || Ys.includes($.StatusCode) || eo($, Endpoint));
|
|
3158
3129
|
var _ = Object.keys(k);
|
|
3159
3130
|
_.length && _.forEach(function(z) {
|
|
3160
3131
|
});
|
|
@@ -3166,7 +3137,7 @@ function Wt() {
|
|
|
3166
3137
|
}, t);
|
|
3167
3138
|
})), Wt.apply(this, arguments);
|
|
3168
3139
|
}
|
|
3169
|
-
function
|
|
3140
|
+
function Zs(t, e) {
|
|
3170
3141
|
return Ht.apply(this, arguments);
|
|
3171
3142
|
}
|
|
3172
3143
|
function Ht() {
|
|
@@ -3201,16 +3172,16 @@ function Ht() {
|
|
|
3201
3172
|
}, t, null, [[2, 8]]);
|
|
3202
3173
|
})), Ht.apply(this, arguments);
|
|
3203
3174
|
}
|
|
3204
|
-
function
|
|
3175
|
+
function eo(t, e) {
|
|
3205
3176
|
var r = t.StatusCode, n = t.Message;
|
|
3206
|
-
if (r ===
|
|
3177
|
+
if (r === Js) {
|
|
3207
3178
|
if (n.startsWith("Missing ChannelType"))
|
|
3208
3179
|
throw new Error("Missing ChannelType");
|
|
3209
3180
|
if (n.startsWith("Exceeded maximum endpoint per user count"))
|
|
3210
3181
|
throw new Error("Exceeded maximum endpoint per user count");
|
|
3211
3182
|
}
|
|
3212
3183
|
}
|
|
3213
|
-
var
|
|
3184
|
+
var to = [
|
|
3214
3185
|
"PUSH",
|
|
3215
3186
|
"GCM",
|
|
3216
3187
|
"APNS",
|
|
@@ -3224,13 +3195,13 @@ var ro = [
|
|
|
3224
3195
|
"BAIDU",
|
|
3225
3196
|
"CUSTOM"
|
|
3226
3197
|
// 'IN_APP' what is this?
|
|
3227
|
-
], xt =
|
|
3198
|
+
], xt = to.reduce(function(t, e) {
|
|
3228
3199
|
return t[e] = e, t;
|
|
3229
|
-
}, {}),
|
|
3230
|
-
function
|
|
3231
|
-
return
|
|
3200
|
+
}, {}), ro = rr(), on = zt, un = nt, no = /.+\@.+\..+/;
|
|
3201
|
+
function io(t) {
|
|
3202
|
+
return no.test(t);
|
|
3232
3203
|
}
|
|
3233
|
-
function
|
|
3204
|
+
function ao() {
|
|
3234
3205
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = t.getEndpointId, r = t.debug;
|
|
3235
3206
|
return /* @__PURE__ */ (function() {
|
|
3236
3207
|
var n = re(/* @__PURE__ */ K.mark(function s() {
|
|
@@ -3251,14 +3222,14 @@ function so() {
|
|
|
3251
3222
|
d.next = 13;
|
|
3252
3223
|
break;
|
|
3253
3224
|
}
|
|
3254
|
-
d.t0 =
|
|
3225
|
+
d.t0 = so(u), d.next = 16;
|
|
3255
3226
|
break;
|
|
3256
3227
|
case 13:
|
|
3257
3228
|
return d.next = 15, nr(o, t);
|
|
3258
3229
|
case 15:
|
|
3259
3230
|
d.t0 = d.sent;
|
|
3260
3231
|
case 16:
|
|
3261
|
-
return f = d.t0, p = f.ChannelType, f.Address &&
|
|
3232
|
+
return f = d.t0, p = f.ChannelType, f.Address && io(f.Address) && (p = xt.EMAIL), !p && f.Address && (ro.platform === "android" ? p = p || xt.GCM : p = p || xt.APNS), r && (console.log("Endpoint", f), console.log("CHANNEL_TYPE", p)), f.RequestId = be(), f.ChannelType = p, f.Address && (f.OptOut = f.OptOut || "NONE"), g = oo(a), b = uo(u, f, g), d.prev = 26, d.next = 29, Qs(b, t);
|
|
3262
3233
|
case 29:
|
|
3263
3234
|
S = d.sent, d.next = 36;
|
|
3264
3235
|
break;
|
|
@@ -3283,24 +3254,24 @@ function so() {
|
|
|
3283
3254
|
return i;
|
|
3284
3255
|
})();
|
|
3285
3256
|
}
|
|
3286
|
-
function
|
|
3257
|
+
function so(t) {
|
|
3287
3258
|
try {
|
|
3288
|
-
return JSON.parse(
|
|
3259
|
+
return JSON.parse(Gt(it(t))) || {};
|
|
3289
3260
|
} catch {
|
|
3290
3261
|
}
|
|
3291
3262
|
return {};
|
|
3292
3263
|
}
|
|
3293
|
-
function
|
|
3264
|
+
function oo(t) {
|
|
3294
3265
|
return t.sort(function(e, r) {
|
|
3295
3266
|
var n = e.EventType, i = r.EventType;
|
|
3296
3267
|
if (n == on) return -1;
|
|
3297
3268
|
if (i == on || n == un) return 1;
|
|
3298
3269
|
if (i == un) return -1;
|
|
3299
3270
|
}).reduce(function(e, r) {
|
|
3300
|
-
return
|
|
3271
|
+
return F(F({}, r), e);
|
|
3301
3272
|
}, {});
|
|
3302
3273
|
}
|
|
3303
|
-
function
|
|
3274
|
+
function uo(t, e, r) {
|
|
3304
3275
|
return {
|
|
3305
3276
|
BatchItem: Qt({}, t, {
|
|
3306
3277
|
Endpoint: e,
|
|
@@ -3308,17 +3279,17 @@ function co(t, e, r) {
|
|
|
3308
3279
|
})
|
|
3309
3280
|
};
|
|
3310
3281
|
}
|
|
3311
|
-
var
|
|
3312
|
-
function
|
|
3282
|
+
var co = nt;
|
|
3283
|
+
function ri() {
|
|
3313
3284
|
return {};
|
|
3314
3285
|
}
|
|
3315
|
-
function
|
|
3316
|
-
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e =
|
|
3317
|
-
getContext: t.getContext ||
|
|
3286
|
+
function lo() {
|
|
3287
|
+
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = F({
|
|
3288
|
+
getContext: t.getContext || ri,
|
|
3318
3289
|
credentials: t.credentials || {},
|
|
3319
3290
|
getEndpointId: t.getEndpointId
|
|
3320
3291
|
}, t), r = e.debug ? console.log : function() {
|
|
3321
|
-
}, n =
|
|
3292
|
+
}, n = ao(e), i = ns(/* @__PURE__ */ (function() {
|
|
3322
3293
|
var u = re(/* @__PURE__ */ K.mark(function l(f, p) {
|
|
3323
3294
|
var g;
|
|
3324
3295
|
return K.wrap(function(S) {
|
|
@@ -3348,9 +3319,9 @@ function fo() {
|
|
|
3348
3319
|
// Ensure only max is processed at interval
|
|
3349
3320
|
// onPause: (queue) => {},
|
|
3350
3321
|
// onEmpty: () => {}
|
|
3351
|
-
}), s =
|
|
3322
|
+
}), s = Bs(i, e);
|
|
3352
3323
|
nr({}, t);
|
|
3353
|
-
var a =
|
|
3324
|
+
var a = fo(s);
|
|
3354
3325
|
function o(u) {
|
|
3355
3326
|
return n([], u);
|
|
3356
3327
|
}
|
|
@@ -3362,23 +3333,23 @@ function fo() {
|
|
|
3362
3333
|
}
|
|
3363
3334
|
};
|
|
3364
3335
|
}
|
|
3365
|
-
function
|
|
3336
|
+
function fo(t) {
|
|
3366
3337
|
if (!ve)
|
|
3367
|
-
return
|
|
3368
|
-
var e =
|
|
3338
|
+
return ri;
|
|
3339
|
+
var e = po(t);
|
|
3369
3340
|
return window.addEventListener("beforeunload", e), function() {
|
|
3370
3341
|
return window.removeEventListener("beforeunload", e);
|
|
3371
3342
|
};
|
|
3372
3343
|
}
|
|
3373
|
-
function
|
|
3344
|
+
function po(t) {
|
|
3374
3345
|
return function() {
|
|
3375
|
-
t(
|
|
3346
|
+
t(co, !0);
|
|
3376
3347
|
};
|
|
3377
3348
|
}
|
|
3378
3349
|
function Tt() {
|
|
3379
3350
|
throw new Error("Pinpoint not loaded");
|
|
3380
3351
|
}
|
|
3381
|
-
function
|
|
3352
|
+
function go(t) {
|
|
3382
3353
|
return Object.keys(t).reduce(function(e, r) {
|
|
3383
3354
|
var n = t[r];
|
|
3384
3355
|
return typeof n == "number" && (e.metrics[r] = n), (typeof n == "string" || typeof n == "boolean") && (e.attributes[r] = n), e;
|
|
@@ -3387,14 +3358,14 @@ function ho(t) {
|
|
|
3387
3358
|
metrics: {}
|
|
3388
3359
|
});
|
|
3389
3360
|
}
|
|
3390
|
-
function
|
|
3361
|
+
function ho(t) {
|
|
3391
3362
|
var e = t.config, r = t.instance;
|
|
3392
3363
|
e && e.disableAnonymousTraffic && !r.user("userId") && r.once("identifyStart", function(n) {
|
|
3393
3364
|
var i = n.plugins, s = i["aws-pinpoint"];
|
|
3394
3365
|
s.loaded() || r.loadPlugin("aws-pinpoint");
|
|
3395
3366
|
});
|
|
3396
3367
|
}
|
|
3397
|
-
var
|
|
3368
|
+
var mo = {
|
|
3398
3369
|
/* Disable anonymous MTU */
|
|
3399
3370
|
disableAnonymousTraffic: !1,
|
|
3400
3371
|
// Pinpoint service region
|
|
@@ -3402,26 +3373,26 @@ var vo = {
|
|
|
3402
3373
|
// Custom event mapping
|
|
3403
3374
|
eventMapping: {}
|
|
3404
3375
|
};
|
|
3405
|
-
function
|
|
3376
|
+
function vo() {
|
|
3406
3377
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e, r, n = !1;
|
|
3407
3378
|
function i() {
|
|
3408
|
-
var a =
|
|
3409
|
-
t.debug && console.log("Stop session", a), e(
|
|
3379
|
+
var a = De();
|
|
3380
|
+
t.debug && console.log("Stop session", a), e(nt, !0);
|
|
3410
3381
|
}
|
|
3411
3382
|
function s() {
|
|
3412
|
-
var a =
|
|
3383
|
+
var a = Ye(30);
|
|
3413
3384
|
t.debug && console.log("START SESSION", a), e(zt);
|
|
3414
3385
|
}
|
|
3415
3386
|
return {
|
|
3416
3387
|
name: "aws-pinpoint",
|
|
3417
|
-
config:
|
|
3418
|
-
bootstrap:
|
|
3388
|
+
config: F(F({}, mo), t),
|
|
3389
|
+
bootstrap: ho,
|
|
3419
3390
|
initialize: function(o) {
|
|
3420
3391
|
var u = o.config, l = o.instance, f = u.disableAnonymousTraffic, p = u.debug, g = p ? console.log : function() {
|
|
3421
|
-
}, b = l.getState(), S = b.user || {}, I = S.userId, w = S.anonymousId, y = b.context || {}, d = y.app, E = y.version, v = y.campaign, m = er(), T =
|
|
3392
|
+
}, b = l.getState(), S = b.user || {}, I = S.userId, w = S.anonymousId, y = b.context || {}, d = y.app, E = y.version, v = y.campaign, m = er(), T = Fn(), x = De();
|
|
3422
3393
|
if (g("initPageSession", m), g("initTabSession", T), g("initSessionData", x), x && x.anonId && x.anonId !== w) {
|
|
3423
|
-
g("anonId different refresh session details"), Hr(),
|
|
3424
|
-
var A =
|
|
3394
|
+
g("anonId different refresh session details"), Hr(), ss();
|
|
3395
|
+
var A = Ye(30, {
|
|
3425
3396
|
anonId: w,
|
|
3426
3397
|
userId: I
|
|
3427
3398
|
});
|
|
@@ -3431,7 +3402,7 @@ function yo() {
|
|
|
3431
3402
|
return !1;
|
|
3432
3403
|
var $ = Object.keys(v).reduce(function(V, C) {
|
|
3433
3404
|
return V["utm_".concat(C)] = v[C], V;
|
|
3434
|
-
}, {}), k =
|
|
3405
|
+
}, {}), k = lo(F(F({}, u), {}, {
|
|
3435
3406
|
// The title of the app that's recording the event.
|
|
3436
3407
|
appTitle: u.appTitle || d,
|
|
3437
3408
|
// The package name of the app that's recording the event.
|
|
@@ -3457,7 +3428,7 @@ function yo() {
|
|
|
3457
3428
|
};
|
|
3458
3429
|
},
|
|
3459
3430
|
enrichEventAttributes: function() {
|
|
3460
|
-
return
|
|
3431
|
+
return F({
|
|
3461
3432
|
anonId: l.user("anonymousId"),
|
|
3462
3433
|
userId: l.user("userId"),
|
|
3463
3434
|
hash: window.location.hash,
|
|
@@ -3478,19 +3449,19 @@ function yo() {
|
|
|
3478
3449
|
}));
|
|
3479
3450
|
e = k.recordEvent, r = k.updateEndpoint, x && x.isNew && (g("Start brand new session because cookie not found"), e(zt));
|
|
3480
3451
|
var _ = 18e5, z = _;
|
|
3481
|
-
|
|
3452
|
+
Es({
|
|
3482
3453
|
timeout: z,
|
|
3483
3454
|
throttle: 2e4,
|
|
3484
|
-
onIdle: function(C,
|
|
3455
|
+
onIdle: function(C, O) {
|
|
3485
3456
|
g("Session idle. Active ".concat(C, " seconds")), i();
|
|
3486
3457
|
},
|
|
3487
|
-
onWakeUp: function(C,
|
|
3458
|
+
onWakeUp: function(C, O) {
|
|
3488
3459
|
g("Session wakeup. Idle ".concat(C, " seconds")), s();
|
|
3489
3460
|
},
|
|
3490
|
-
onHeartbeat: function(C,
|
|
3461
|
+
onHeartbeat: function(C, O) {
|
|
3491
3462
|
g("ping session", /* @__PURE__ */ new Date()), g("total active time", C);
|
|
3492
3463
|
var W = l.user();
|
|
3493
|
-
|
|
3464
|
+
as(30, {
|
|
3494
3465
|
anonId: W.anonymousId,
|
|
3495
3466
|
userId: W.userId
|
|
3496
3467
|
});
|
|
@@ -3500,7 +3471,7 @@ function yo() {
|
|
|
3500
3471
|
page: function(o) {
|
|
3501
3472
|
if (o.payload, o.config, !e)
|
|
3502
3473
|
return Tt();
|
|
3503
|
-
n && Hr(), e(
|
|
3474
|
+
n && Hr(), e(ti), n = !0;
|
|
3504
3475
|
},
|
|
3505
3476
|
/* Track event & update endpoint details */
|
|
3506
3477
|
track: function(o) {
|
|
@@ -3508,7 +3479,7 @@ function yo() {
|
|
|
3508
3479
|
if (o.instance, !e)
|
|
3509
3480
|
return Tt();
|
|
3510
3481
|
if (!(l.disableAnonymousTraffic && !u.userId)) {
|
|
3511
|
-
var f =
|
|
3482
|
+
var f = go(u.properties);
|
|
3512
3483
|
e(u.event, f);
|
|
3513
3484
|
}
|
|
3514
3485
|
},
|
|
@@ -3522,16 +3493,16 @@ function yo() {
|
|
|
3522
3493
|
},
|
|
3523
3494
|
/* Reset user details */
|
|
3524
3495
|
reset: function(o) {
|
|
3525
|
-
var u = o.instance, l = u.user("anonymousId"), f =
|
|
3526
|
-
|
|
3496
|
+
var u = o.instance, l = u.user("anonymousId"), f = it(l);
|
|
3497
|
+
Rn(f);
|
|
3527
3498
|
},
|
|
3528
3499
|
loaded: function() {
|
|
3529
3500
|
return !!e;
|
|
3530
3501
|
}
|
|
3531
3502
|
};
|
|
3532
3503
|
}
|
|
3533
|
-
var
|
|
3534
|
-
function
|
|
3504
|
+
var yo = vo;
|
|
3505
|
+
function bo(t, e, r) {
|
|
3535
3506
|
return r.reduce((n, i) => {
|
|
3536
3507
|
const { action: s, targetProperty: a } = i;
|
|
3537
3508
|
return s === "add" ? n[a] = {
|
|
@@ -3540,10 +3511,10 @@ function wo(t, e, r) {
|
|
|
3540
3511
|
} : s === "remove" && delete n[a], n;
|
|
3541
3512
|
}, e);
|
|
3542
3513
|
}
|
|
3543
|
-
async function
|
|
3544
|
-
const { properties: i = {} } = await
|
|
3514
|
+
async function wo({ id: t, authentication: e, username: r, accessChangeset: n }) {
|
|
3515
|
+
const { properties: i = {} } = await fn(t, {
|
|
3545
3516
|
authentication: e
|
|
3546
|
-
}), s = i.telemetry, a = s === void 0 ? {} : s, { arcgis: { access: o = {} } = {} } = a, u =
|
|
3517
|
+
}), s = i.telemetry, a = s === void 0 ? {} : s, { arcgis: { access: o = {} } = {} } = a, u = cn(a, ["arcgis"]), l = bo(r, o, n);
|
|
3547
3518
|
return gi({
|
|
3548
3519
|
item: {
|
|
3549
3520
|
id: t,
|
|
@@ -3554,24 +3525,24 @@ async function So({ id: t, authentication: e, username: r, accessChangeset: n })
|
|
|
3554
3525
|
authentication: e
|
|
3555
3526
|
});
|
|
3556
3527
|
}
|
|
3557
|
-
async function
|
|
3558
|
-
const { properties: { telemetry: { arcgis: { access: r = {} } = {} } = {} } } = await
|
|
3528
|
+
async function So({ id: t, authentication: e }) {
|
|
3529
|
+
const { properties: { telemetry: { arcgis: { access: r = {} } = {} } = {} } } = await fn(t, {
|
|
3559
3530
|
authentication: e
|
|
3560
3531
|
});
|
|
3561
3532
|
return { access: r };
|
|
3562
3533
|
}
|
|
3563
|
-
class
|
|
3534
|
+
class Eo {
|
|
3564
3535
|
constructor(e) {
|
|
3565
3536
|
this.name = "amazon", this.isInitialized = !1;
|
|
3566
3537
|
const { app: r = {}, fips: n, userPoolID: i } = e;
|
|
3567
|
-
this.analytics =
|
|
3538
|
+
this.analytics = Fa({
|
|
3568
3539
|
app: r.name,
|
|
3569
3540
|
version: r.version,
|
|
3570
3541
|
plugins: [
|
|
3571
|
-
|
|
3542
|
+
yo({
|
|
3572
3543
|
fips: n,
|
|
3573
3544
|
pinpointAppId: r.id,
|
|
3574
|
-
getCredentials: () =>
|
|
3545
|
+
getCredentials: () => Ni(i, { fips: n })
|
|
3575
3546
|
})
|
|
3576
3547
|
]
|
|
3577
3548
|
}), Object.assign(this, e);
|
|
@@ -3581,7 +3552,7 @@ class Io {
|
|
|
3581
3552
|
return this.isInitialized = !0, Promise.resolve();
|
|
3582
3553
|
}
|
|
3583
3554
|
static async setAccessPermissions({ id: e, authentication: r, username: n, accessChangeset: i }) {
|
|
3584
|
-
return
|
|
3555
|
+
return wo({
|
|
3585
3556
|
id: e,
|
|
3586
3557
|
authentication: r,
|
|
3587
3558
|
username: n,
|
|
@@ -3589,7 +3560,7 @@ class Io {
|
|
|
3589
3560
|
});
|
|
3590
3561
|
}
|
|
3591
3562
|
static async getAccessPermissions({ id: e, authentication: r }) {
|
|
3592
|
-
return
|
|
3563
|
+
return So({ id: e, authentication: r });
|
|
3593
3564
|
}
|
|
3594
3565
|
logPageView(e, r) {
|
|
3595
3566
|
const n = Ri({
|
|
@@ -3602,7 +3573,7 @@ class Io {
|
|
|
3602
3573
|
this.previousPage = { pageUrl: i, pageName: s }, this.analytics.track("pageView", n);
|
|
3603
3574
|
}
|
|
3604
3575
|
logEvent(e = {}) {
|
|
3605
|
-
const r =
|
|
3576
|
+
const r = Di({
|
|
3606
3577
|
event: e,
|
|
3607
3578
|
dimensionLookup: this.dimensions,
|
|
3608
3579
|
metricLookup: this.metrics
|
|
@@ -3610,16 +3581,16 @@ class Io {
|
|
|
3610
3581
|
this.analytics.track(n, r);
|
|
3611
3582
|
}
|
|
3612
3583
|
}
|
|
3613
|
-
const
|
|
3614
|
-
class
|
|
3584
|
+
const Io = pi`:host{display:block}`;
|
|
3585
|
+
class Ao extends fi {
|
|
3615
3586
|
constructor() {
|
|
3616
|
-
super(...arguments), this.amazonAppId = "", this.amazonAppName = "", this.amazonUserPoolID = "", this.amazonVersion = "", this.firstUseVar = "", this.measurementIds = [], this._open = !1, this._translations =
|
|
3587
|
+
super(...arguments), this.amazonAppId = "", this.amazonAppName = "", this.amazonUserPoolID = "", this.amazonVersion = "", this.firstUseVar = "", this.measurementIds = [], this._open = !1, this._translations = li({ name: "consent-manager", blocking: !0 }), this._loaded = !1, this.consentGranted = di();
|
|
3617
3588
|
}
|
|
3618
3589
|
static {
|
|
3619
3590
|
this.properties = { amazonAppId: 1, amazonAppName: 1, amazonUserPoolID: 1, amazonVersion: 1, firstUseVar: 1, measurementIds: 0, portal: 0, _open: 16, _translations: 16 };
|
|
3620
3591
|
}
|
|
3621
3592
|
static {
|
|
3622
|
-
this.styles =
|
|
3593
|
+
this.styles = Io;
|
|
3623
3594
|
}
|
|
3624
3595
|
async getInstance() {
|
|
3625
3596
|
if (localStorage.getItem(this.firstUseVar) === "true" || this.portal?.eueiEnabled)
|
|
@@ -3650,13 +3621,13 @@ class Po extends ui {
|
|
|
3650
3621
|
logger: e
|
|
3651
3622
|
};
|
|
3652
3623
|
if (this.measurementIds?.length > 0) {
|
|
3653
|
-
const n = new
|
|
3624
|
+
const n = new ji({
|
|
3654
3625
|
measurementIds: this.measurementIds
|
|
3655
3626
|
});
|
|
3656
3627
|
r.plugins.push(n);
|
|
3657
3628
|
}
|
|
3658
3629
|
if (this.amazonUserPoolID) {
|
|
3659
|
-
const n = new
|
|
3630
|
+
const n = new Eo({
|
|
3660
3631
|
userPoolID: this.amazonUserPoolID,
|
|
3661
3632
|
app: {
|
|
3662
3633
|
name: this.amazonAppName,
|
|
@@ -3666,7 +3637,7 @@ class Po extends ui {
|
|
|
3666
3637
|
});
|
|
3667
3638
|
r.plugins.push(n);
|
|
3668
3639
|
}
|
|
3669
|
-
this._telemetryInstance = new
|
|
3640
|
+
this._telemetryInstance = new Pi(r), await this._telemetryInstance.init(), this._loaded = !0;
|
|
3670
3641
|
}
|
|
3671
3642
|
}
|
|
3672
3643
|
_alertClosed() {
|
|
@@ -3678,7 +3649,7 @@ class Po extends ui {
|
|
|
3678
3649
|
}), this._open = !1;
|
|
3679
3650
|
}
|
|
3680
3651
|
}
|
|
3681
|
-
|
|
3652
|
+
ii("consent-manager", Ao);
|
|
3682
3653
|
export {
|
|
3683
|
-
|
|
3654
|
+
Ao as ConsentManager
|
|
3684
3655
|
};
|