@nizza/core 0.3.0-alpha.7 → 0.3.0-alpha.9
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/index.mjs +139 -139
- package/dist/lib/stores/NizzaStore.d.ts +1 -0
- package/dist/package.json +1 -2
- package/package.json +1 -2
- package/dist/index.cjs +0 -22
package/dist/index.mjs
CHANGED
|
@@ -19,15 +19,15 @@ var wt = (e, t) => {
|
|
|
19
19
|
t.indexOf(n) < 0 && Ot.call(e, n) && (i[n] = e[n]);
|
|
20
20
|
return i;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
22
|
+
var y = (e, t, i) => (Qe(e, typeof t != "symbol" ? t + "" : t, i), i);
|
|
23
23
|
import { jsx as rt } from "react/jsx-runtime";
|
|
24
24
|
import { createContext as Qn, useContext as Wt, useMemo as Zn, lazy as ei, Suspense as ti } from "react";
|
|
25
25
|
import Ft from "js-cookie";
|
|
26
26
|
var ni = /* @__PURE__ */ ((e) => (e.COMBO = "Combo", e))(ni || {});
|
|
27
27
|
class ii {
|
|
28
28
|
constructor(t) {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
y(this, "aggregate");
|
|
30
|
+
y(this, "_numSetPropsApplied", 0);
|
|
31
31
|
this.aggregate = t;
|
|
32
32
|
}
|
|
33
33
|
setProps(t) {
|
|
@@ -39,14 +39,14 @@ class ii {
|
|
|
39
39
|
return this._numSetPropsApplied === 1;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function va(e) {
|
|
43
43
|
return new ii(e);
|
|
44
44
|
}
|
|
45
|
-
class va {
|
|
46
|
-
}
|
|
47
45
|
class ma {
|
|
46
|
+
}
|
|
47
|
+
class ha {
|
|
48
48
|
constructor(t) {
|
|
49
|
-
|
|
49
|
+
y(this, "_value");
|
|
50
50
|
t !== void 0 && (this._value = t);
|
|
51
51
|
}
|
|
52
52
|
get value() {
|
|
@@ -64,7 +64,7 @@ class Ue extends Error {
|
|
|
64
64
|
}, this.value && { value: this.value });
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
class
|
|
67
|
+
class _a extends Ue {
|
|
68
68
|
constructor(t) {
|
|
69
69
|
super(
|
|
70
70
|
"RESOURCE_NOT_FOUND_ERROR",
|
|
@@ -73,7 +73,7 @@ class ha extends Ue {
|
|
|
73
73
|
);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
class
|
|
76
|
+
class pa extends Ue {
|
|
77
77
|
constructor(t) {
|
|
78
78
|
var i;
|
|
79
79
|
super(
|
|
@@ -83,7 +83,7 @@ class _a extends Ue {
|
|
|
83
83
|
);
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
class
|
|
86
|
+
class ka extends Ue {
|
|
87
87
|
constructor() {
|
|
88
88
|
super("APP_ACCOUNT_INVALID_ERROR", "Account not defined");
|
|
89
89
|
}
|
|
@@ -117,17 +117,17 @@ class ri extends Ue {
|
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
let vt = /* @__PURE__ */ new Map();
|
|
120
|
-
const at = Qn(vt),
|
|
120
|
+
const at = Qn(vt), ba = ({ children: e, stores: t }) => {
|
|
121
121
|
const i = Wt(at), n = Zn(() => {
|
|
122
122
|
const r = /* @__PURE__ */ new Map();
|
|
123
123
|
return t.forEach((a) => r.set(a.class, a.value)), vt = new Map([...i, ...r]);
|
|
124
124
|
}, []);
|
|
125
125
|
return /* @__PURE__ */ rt(at.Provider, { value: n, children: e });
|
|
126
126
|
};
|
|
127
|
-
function
|
|
127
|
+
function ga(e) {
|
|
128
128
|
return Wt(at).get(e);
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function ya(e) {
|
|
131
131
|
return vt.get(e);
|
|
132
132
|
}
|
|
133
133
|
function m(e) {
|
|
@@ -337,7 +337,7 @@ var f = /* @__PURE__ */ Symbol("mobx administration"), ge = /* @__PURE__ */ func
|
|
|
337
337
|
}, t.reportObserved = function() {
|
|
338
338
|
return Sn(this);
|
|
339
339
|
}, t.reportChanged = function() {
|
|
340
|
-
|
|
340
|
+
S(), Nn(this), N();
|
|
341
341
|
}, t.toString = function() {
|
|
342
342
|
return this.name_;
|
|
343
343
|
}, e;
|
|
@@ -698,7 +698,7 @@ function Ji(e, t, i, n, r) {
|
|
|
698
698
|
}
|
|
699
699
|
function Yi(e, t, i, n) {
|
|
700
700
|
var r = !1, a = 0, o = d.trackingDerivation, s = !t || !o;
|
|
701
|
-
|
|
701
|
+
S();
|
|
702
702
|
var u = d.allowStateChanges;
|
|
703
703
|
s && (ae(), u = Se(!0));
|
|
704
704
|
var l = pt(!0), c = {
|
|
@@ -714,7 +714,7 @@ function Yi(e, t, i, n) {
|
|
|
714
714
|
return Ve = c.actionId_, c;
|
|
715
715
|
}
|
|
716
716
|
function Qi(e) {
|
|
717
|
-
Ve !== e.actionId_ && m(30), Ve = e.parentActionId_, e.error_ !== void 0 && (d.suppressReactionErrors = !0), Ne(e.prevAllowStateChanges_), le(e.prevAllowStateReads_),
|
|
717
|
+
Ve !== e.actionId_ && m(30), Ve = e.parentActionId_, e.error_ !== void 0 && (d.suppressReactionErrors = !0), Ne(e.prevAllowStateChanges_), le(e.prevAllowStateReads_), N(), e.runAsAction_ && U(e.prevDerivation_), d.suppressReactionErrors = !1;
|
|
718
718
|
}
|
|
719
719
|
function Zi(e, t) {
|
|
720
720
|
var i = Se(e);
|
|
@@ -808,7 +808,7 @@ var ve = /* @__PURE__ */ function() {
|
|
|
808
808
|
}, t.get = function() {
|
|
809
809
|
if (this.isComputing_ && m(32, this.name_, this.derivation), d.inBatch === 0 && // !globalState.trackingDerivatpion &&
|
|
810
810
|
this.observers_.size === 0 && !this.keepAlive_)
|
|
811
|
-
ut(this) && (this.warnAboutUntrackedRead_(),
|
|
811
|
+
ut(this) && (this.warnAboutUntrackedRead_(), S(), this.value_ = this.computeValue_(!1), N());
|
|
812
812
|
else if (Sn(this), ut(this)) {
|
|
813
813
|
var n = d.trackingContext;
|
|
814
814
|
this.keepAlive_ && !n && (d.trackingContext = this), this.trackAndCompute() && nr(this), d.trackingContext = n;
|
|
@@ -999,10 +999,10 @@ function gn(e, t) {
|
|
|
999
999
|
function yn(e) {
|
|
1000
1000
|
e.isPendingUnobservation_ === !1 && (e.isPendingUnobservation_ = !0, d.pendingUnobservations.push(e));
|
|
1001
1001
|
}
|
|
1002
|
-
function
|
|
1002
|
+
function S() {
|
|
1003
1003
|
d.inBatch++;
|
|
1004
1004
|
}
|
|
1005
|
-
function
|
|
1005
|
+
function N() {
|
|
1006
1006
|
if (--d.inBatch === 0) {
|
|
1007
1007
|
On();
|
|
1008
1008
|
for (var e = d.pendingUnobservations, t = 0; t < e.length; t++) {
|
|
@@ -1044,7 +1044,7 @@ var dt = /* @__PURE__ */ function() {
|
|
|
1044
1044
|
return this.isScheduled_;
|
|
1045
1045
|
}, t.runReaction_ = function() {
|
|
1046
1046
|
if (!this.isDisposed_) {
|
|
1047
|
-
|
|
1047
|
+
S(), this.isScheduled_ = !1;
|
|
1048
1048
|
var n = d.trackingContext;
|
|
1049
1049
|
if (d.trackingContext = this, ut(this)) {
|
|
1050
1050
|
this.isTrackPending_ = !0;
|
|
@@ -1054,15 +1054,15 @@ var dt = /* @__PURE__ */ function() {
|
|
|
1054
1054
|
this.reportExceptionInDerivation_(r);
|
|
1055
1055
|
}
|
|
1056
1056
|
}
|
|
1057
|
-
d.trackingContext = n,
|
|
1057
|
+
d.trackingContext = n, N();
|
|
1058
1058
|
}
|
|
1059
1059
|
}, t.track = function(n) {
|
|
1060
1060
|
if (!this.isDisposed_) {
|
|
1061
|
-
|
|
1061
|
+
S(), this.isRunning_ = !0;
|
|
1062
1062
|
var r = d.trackingContext;
|
|
1063
1063
|
d.trackingContext = this;
|
|
1064
1064
|
var a = pn(this, n, void 0);
|
|
1065
|
-
d.trackingContext = r, this.isRunning_ = !1, this.isTrackPending_ = !1, this.isDisposed_ && lt(this), Pe(a) && this.reportExceptionInDerivation_(a.cause),
|
|
1065
|
+
d.trackingContext = r, this.isRunning_ = !1, this.isTrackPending_ = !1, this.isDisposed_ && lt(this), Pe(a) && this.reportExceptionInDerivation_(a.cause), N();
|
|
1066
1066
|
}
|
|
1067
1067
|
}, t.reportExceptionInDerivation_ = function(n) {
|
|
1068
1068
|
var r = this;
|
|
@@ -1077,7 +1077,7 @@ var dt = /* @__PURE__ */ function() {
|
|
|
1077
1077
|
return o(n, r);
|
|
1078
1078
|
});
|
|
1079
1079
|
}, t.dispose = function() {
|
|
1080
|
-
this.isDisposed_ || (this.isDisposed_ = !0, this.isRunning_ || (
|
|
1080
|
+
this.isDisposed_ || (this.isDisposed_ = !0, this.isRunning_ || (S(), lt(this), N()));
|
|
1081
1081
|
}, t.getDisposer_ = function() {
|
|
1082
1082
|
var n = this.dispose.bind(this);
|
|
1083
1083
|
return n[f] = this, n;
|
|
@@ -1187,7 +1187,7 @@ function Pn(e, t, i, n) {
|
|
|
1187
1187
|
}
|
|
1188
1188
|
function Dn(e, t, i, n) {
|
|
1189
1189
|
var r = di(t), a = Je(e, n)[f];
|
|
1190
|
-
|
|
1190
|
+
S();
|
|
1191
1191
|
try {
|
|
1192
1192
|
ce(r).forEach(function(o) {
|
|
1193
1193
|
a.extend_(
|
|
@@ -1198,7 +1198,7 @@ function Dn(e, t, i, n) {
|
|
|
1198
1198
|
);
|
|
1199
1199
|
});
|
|
1200
1200
|
} finally {
|
|
1201
|
-
|
|
1201
|
+
N();
|
|
1202
1202
|
}
|
|
1203
1203
|
return e;
|
|
1204
1204
|
}
|
|
@@ -1291,11 +1291,11 @@ function Nr(e) {
|
|
|
1291
1291
|
}
|
|
1292
1292
|
}
|
|
1293
1293
|
function x(e, t) {
|
|
1294
|
-
t === void 0 && (t = void 0),
|
|
1294
|
+
t === void 0 && (t = void 0), S();
|
|
1295
1295
|
try {
|
|
1296
1296
|
return e.apply(t);
|
|
1297
1297
|
} finally {
|
|
1298
|
-
|
|
1298
|
+
N();
|
|
1299
1299
|
}
|
|
1300
1300
|
}
|
|
1301
1301
|
function J(e) {
|
|
@@ -1379,7 +1379,7 @@ function wr(e, t, i) {
|
|
|
1379
1379
|
var r = Object.getPrototypeOf(e), a = new Set([].concat(ce(e), ce(r)));
|
|
1380
1380
|
a.delete("constructor"), a.delete(f), ze(r, tt, a);
|
|
1381
1381
|
}
|
|
1382
|
-
|
|
1382
|
+
S();
|
|
1383
1383
|
try {
|
|
1384
1384
|
e[tt].forEach(function(o) {
|
|
1385
1385
|
return n.make_(
|
|
@@ -1389,7 +1389,7 @@ function wr(e, t, i) {
|
|
|
1389
1389
|
);
|
|
1390
1390
|
});
|
|
1391
1391
|
} finally {
|
|
1392
|
-
|
|
1392
|
+
N();
|
|
1393
1393
|
}
|
|
1394
1394
|
return e;
|
|
1395
1395
|
}
|
|
@@ -2097,7 +2097,7 @@ var Un = /* @__PURE__ */ function() {
|
|
|
2097
2097
|
}, t.defineProperty_ = function(n, r, a) {
|
|
2098
2098
|
a === void 0 && (a = !1);
|
|
2099
2099
|
try {
|
|
2100
|
-
|
|
2100
|
+
S();
|
|
2101
2101
|
var o = this.delete_(n);
|
|
2102
2102
|
if (!o)
|
|
2103
2103
|
return o;
|
|
@@ -2122,13 +2122,13 @@ var Un = /* @__PURE__ */ function() {
|
|
|
2122
2122
|
V(this.target_, n, r);
|
|
2123
2123
|
this.notifyPropertyAddition_(n, r.value);
|
|
2124
2124
|
} finally {
|
|
2125
|
-
|
|
2125
|
+
N();
|
|
2126
2126
|
}
|
|
2127
2127
|
return !0;
|
|
2128
2128
|
}, t.defineObservableProperty_ = function(n, r, a, o) {
|
|
2129
2129
|
o === void 0 && (o = !1);
|
|
2130
2130
|
try {
|
|
2131
|
-
|
|
2131
|
+
S();
|
|
2132
2132
|
var s = this.delete_(n);
|
|
2133
2133
|
if (!s)
|
|
2134
2134
|
return s;
|
|
@@ -2157,13 +2157,13 @@ var Un = /* @__PURE__ */ function() {
|
|
|
2157
2157
|
var h = new te(r, a, "ObservableObject.key", !1);
|
|
2158
2158
|
this.values_.set(n, h), this.notifyPropertyAddition_(n, h.value_);
|
|
2159
2159
|
} finally {
|
|
2160
|
-
|
|
2160
|
+
N();
|
|
2161
2161
|
}
|
|
2162
2162
|
return !0;
|
|
2163
2163
|
}, t.defineComputedProperty_ = function(n, r, a) {
|
|
2164
2164
|
a === void 0 && (a = !1);
|
|
2165
2165
|
try {
|
|
2166
|
-
|
|
2166
|
+
S();
|
|
2167
2167
|
var o = this.delete_(n);
|
|
2168
2168
|
if (!o)
|
|
2169
2169
|
return o;
|
|
@@ -2191,7 +2191,7 @@ var Un = /* @__PURE__ */ function() {
|
|
|
2191
2191
|
V(this.target_, n, l);
|
|
2192
2192
|
this.values_.set(n, new ve(r)), this.notifyPropertyAddition_(n, void 0);
|
|
2193
2193
|
} finally {
|
|
2194
|
-
|
|
2194
|
+
N();
|
|
2195
2195
|
}
|
|
2196
2196
|
return !0;
|
|
2197
2197
|
}, t.delete_ = function(n, r) {
|
|
@@ -2208,7 +2208,7 @@ var Un = /* @__PURE__ */ function() {
|
|
|
2208
2208
|
}
|
|
2209
2209
|
try {
|
|
2210
2210
|
var o, s;
|
|
2211
|
-
|
|
2211
|
+
S();
|
|
2212
2212
|
var u = w(this), l = !1, c = this.values_.get(n), h = void 0;
|
|
2213
2213
|
if (!c && (u || l)) {
|
|
2214
2214
|
var _;
|
|
@@ -2231,7 +2231,7 @@ var Un = /* @__PURE__ */ function() {
|
|
|
2231
2231
|
u && F(this, j);
|
|
2232
2232
|
}
|
|
2233
2233
|
} finally {
|
|
2234
|
-
|
|
2234
|
+
N();
|
|
2235
2235
|
}
|
|
2236
2236
|
return !0;
|
|
2237
2237
|
}, t.observe_ = function(n, r) {
|
|
@@ -2499,56 +2499,7 @@ typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ == "object" && __MOBX_DEVTOOLS_GLOBAL_HOOK_
|
|
|
2499
2499
|
},
|
|
2500
2500
|
$mobx: f
|
|
2501
2501
|
});
|
|
2502
|
-
|
|
2503
|
-
class Ur {
|
|
2504
|
-
constructor() {
|
|
2505
|
-
N(this, "_config");
|
|
2506
|
-
wr(this, {}, { name: "NizzaStore", autoBind: !0 });
|
|
2507
|
-
}
|
|
2508
|
-
configure(t) {
|
|
2509
|
-
this._config = t;
|
|
2510
|
-
}
|
|
2511
|
-
createGlobalObject() {
|
|
2512
|
-
window.nizza = this;
|
|
2513
|
-
}
|
|
2514
|
-
get config() {
|
|
2515
|
-
return this.validateRequiredProps(), this._config;
|
|
2516
|
-
}
|
|
2517
|
-
validateRequiredProps() {
|
|
2518
|
-
Mr.forEach((t) => {
|
|
2519
|
-
if (t === void 0)
|
|
2520
|
-
throw new ri(t);
|
|
2521
|
-
});
|
|
2522
|
-
}
|
|
2523
|
-
}
|
|
2524
|
-
const ya = new Ur();
|
|
2525
|
-
var qn = /* @__PURE__ */ ((e) => (e.Add = "add", e.Remove = "remove", e))(qn || {}), Wn = /* @__PURE__ */ ((e) => (e.Active = "active", e.Inactive = "inactive", e))(Wn || {});
|
|
2526
|
-
const Gr = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "deleteAllCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerInputAccount" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteAllCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, $r = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "getAllCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "data" } }, { kind: "Field", name: { kind: "Name", value: "section" } }, { kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, zr = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "updateCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "updateCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Kr = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "AddCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CreateCollectionInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "createCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, qr = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Wr = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Hr = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllCollections" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Xr = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "ManageCollectionProduct" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ManageCollectionProductInInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "manageCollectionProduct" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Jr = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "SearchCollections" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Yr = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "UpdateCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "UpdateCollectionInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "updateCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Qr = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllSnackVideos" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoCreatedArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "snackVideos" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "uploadProgress" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "eventId" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "created" } }, { kind: "Field", name: { kind: "Name", value: "modified" } }] } }, { kind: "Field", name: { kind: "Name", value: "cursor" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Sa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2527
|
-
__proto__: null,
|
|
2528
|
-
AddCollectionDocument: Kr,
|
|
2529
|
-
DeleteAllCustomizationDocument: Gr,
|
|
2530
|
-
DeleteCollectionDocument: qr,
|
|
2531
|
-
FindCollectionDocument: Wr,
|
|
2532
|
-
GetAllCollectionsDocument: Hr,
|
|
2533
|
-
GetAllCustomizationDocument: $r,
|
|
2534
|
-
GetAllSnackVideosDocument: Qr,
|
|
2535
|
-
ManageCollectionProductDocument: Xr,
|
|
2536
|
-
Methods: qn,
|
|
2537
|
-
SearchCollectionsDocument: Jr,
|
|
2538
|
-
Status: Wn,
|
|
2539
|
-
UpdateCollectionDocument: Yr,
|
|
2540
|
-
UpdateCustomizationDocument: zr
|
|
2541
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
2542
|
-
function Na(e) {
|
|
2543
|
-
return {
|
|
2544
|
-
class: e,
|
|
2545
|
-
_value: null,
|
|
2546
|
-
get value() {
|
|
2547
|
-
return this._value || (this._value = new e(), Object.freeze(this)), this._value;
|
|
2548
|
-
}
|
|
2549
|
-
};
|
|
2550
|
-
}
|
|
2551
|
-
async function Oa(r) {
|
|
2502
|
+
async function Sa(r) {
|
|
2552
2503
|
var a = r, {
|
|
2553
2504
|
url: e,
|
|
2554
2505
|
method: t = "GET",
|
|
@@ -2573,7 +2524,7 @@ async function Oa(r) {
|
|
|
2573
2524
|
}
|
|
2574
2525
|
class $t {
|
|
2575
2526
|
constructor() {
|
|
2576
|
-
|
|
2527
|
+
y(this, "store");
|
|
2577
2528
|
this.store = this.getStoreFromWindow();
|
|
2578
2529
|
}
|
|
2579
2530
|
getStoreFromWindow() {
|
|
@@ -2626,9 +2577,9 @@ function Kt(e, t, i) {
|
|
|
2626
2577
|
};
|
|
2627
2578
|
typeof i != "undefined" && (n.value = i), Object.defineProperty(e, t, n);
|
|
2628
2579
|
}
|
|
2629
|
-
class
|
|
2580
|
+
class qn {
|
|
2630
2581
|
static init() {
|
|
2631
|
-
return new
|
|
2582
|
+
return new qn();
|
|
2632
2583
|
}
|
|
2633
2584
|
constructor() {
|
|
2634
2585
|
window.top === window.self ? console.log("[CustomStorage] This is the main window") : console.log("[CustomStorage] This is NOT the main window"), this.replaceStorages();
|
|
@@ -2654,45 +2605,45 @@ class Hn {
|
|
|
2654
2605
|
};
|
|
2655
2606
|
}
|
|
2656
2607
|
}
|
|
2657
|
-
var Te,
|
|
2658
|
-
function
|
|
2608
|
+
var Te, Mr = new Uint8Array(16);
|
|
2609
|
+
function Ur() {
|
|
2659
2610
|
if (!Te && (Te = typeof crypto != "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto != "undefined" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), !Te))
|
|
2660
2611
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
2661
|
-
return Te(
|
|
2612
|
+
return Te(Mr);
|
|
2662
2613
|
}
|
|
2663
|
-
const
|
|
2664
|
-
function
|
|
2665
|
-
return typeof e == "string" &&
|
|
2614
|
+
const Gr = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
2615
|
+
function $r(e) {
|
|
2616
|
+
return typeof e == "string" && Gr.test(e);
|
|
2666
2617
|
}
|
|
2667
2618
|
var k = [];
|
|
2668
2619
|
for (var it = 0; it < 256; ++it)
|
|
2669
2620
|
k.push((it + 256).toString(16).substr(1));
|
|
2670
|
-
function
|
|
2621
|
+
function zr(e) {
|
|
2671
2622
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, i = (k[e[t + 0]] + k[e[t + 1]] + k[e[t + 2]] + k[e[t + 3]] + "-" + k[e[t + 4]] + k[e[t + 5]] + "-" + k[e[t + 6]] + k[e[t + 7]] + "-" + k[e[t + 8]] + k[e[t + 9]] + "-" + k[e[t + 10]] + k[e[t + 11]] + k[e[t + 12]] + k[e[t + 13]] + k[e[t + 14]] + k[e[t + 15]]).toLowerCase();
|
|
2672
|
-
if (
|
|
2623
|
+
if (!$r(i))
|
|
2673
2624
|
throw TypeError("Stringified UUID is invalid");
|
|
2674
2625
|
return i;
|
|
2675
2626
|
}
|
|
2676
|
-
function
|
|
2627
|
+
function Kr(e, t, i) {
|
|
2677
2628
|
e = e || {};
|
|
2678
|
-
var n = e.random || (e.rng ||
|
|
2629
|
+
var n = e.random || (e.rng || Ur)();
|
|
2679
2630
|
if (n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, t) {
|
|
2680
2631
|
i = i || 0;
|
|
2681
2632
|
for (var r = 0; r < 16; ++r)
|
|
2682
2633
|
t[i + r] = n[r];
|
|
2683
2634
|
return t;
|
|
2684
2635
|
}
|
|
2685
|
-
return
|
|
2636
|
+
return zr(n);
|
|
2686
2637
|
}
|
|
2687
|
-
const qt = "FINGERPRINT_LIVE_SHOPPING",
|
|
2638
|
+
const qt = "FINGERPRINT_LIVE_SHOPPING", Na = () => {
|
|
2688
2639
|
let e = Ft.get(qt);
|
|
2689
|
-
return e || (e =
|
|
2640
|
+
return e || (e = Kr(), Ft.set(qt, e, { expires: 1 }), e);
|
|
2690
2641
|
};
|
|
2691
|
-
let
|
|
2692
|
-
const
|
|
2642
|
+
let qr = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce((t, i) => (i &= 63, i < 36 ? t += i.toString(36) : i < 62 ? t += (i - 26).toString(36).toUpperCase() : i > 62 ? t += "-" : t += "_", t), "");
|
|
2643
|
+
const Wr = (e = 8) => qr(e), Oa = (e) => {
|
|
2693
2644
|
const t = Object.entries(e).map(([i, n]) => `${i}=${n}`).join("&");
|
|
2694
2645
|
return t ? `?${t}` : "";
|
|
2695
|
-
},
|
|
2646
|
+
}, Aa = (e, t, i = { fallback: null }) => {
|
|
2696
2647
|
let n = e;
|
|
2697
2648
|
t && (n = () => e().then((a) => ({ default: t(a) })));
|
|
2698
2649
|
const r = ei(n);
|
|
@@ -2700,10 +2651,10 @@ const wa = (e = 8) => aa(e), Fa = (e) => {
|
|
|
2700
2651
|
};
|
|
2701
2652
|
class De {
|
|
2702
2653
|
constructor(t, i, n) {
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2654
|
+
y(this, "isOk");
|
|
2655
|
+
y(this, "isErr");
|
|
2656
|
+
y(this, "error");
|
|
2657
|
+
y(this, "_value");
|
|
2707
2658
|
if (t && i)
|
|
2708
2659
|
throw new Error(
|
|
2709
2660
|
"InvalidOperation: A result cannot be successful and contain an error"
|
|
@@ -2734,9 +2685,9 @@ class De {
|
|
|
2734
2685
|
return De.ok();
|
|
2735
2686
|
}
|
|
2736
2687
|
}
|
|
2737
|
-
class
|
|
2688
|
+
class Hr {
|
|
2738
2689
|
constructor(t) {
|
|
2739
|
-
|
|
2690
|
+
y(this, "value");
|
|
2740
2691
|
this.value = t;
|
|
2741
2692
|
}
|
|
2742
2693
|
isErr() {
|
|
@@ -2746,9 +2697,9 @@ class oa {
|
|
|
2746
2697
|
return !1;
|
|
2747
2698
|
}
|
|
2748
2699
|
}
|
|
2749
|
-
class
|
|
2700
|
+
class Xr {
|
|
2750
2701
|
constructor(t) {
|
|
2751
|
-
|
|
2702
|
+
y(this, "value");
|
|
2752
2703
|
this.value = t;
|
|
2753
2704
|
}
|
|
2754
2705
|
isErr() {
|
|
@@ -2758,34 +2709,83 @@ class sa {
|
|
|
2758
2709
|
return !0;
|
|
2759
2710
|
}
|
|
2760
2711
|
}
|
|
2761
|
-
const
|
|
2712
|
+
const wa = (e) => new Hr(e), Fa = (e) => new Xr(e), Jr = ["account"];
|
|
2713
|
+
class Yr {
|
|
2714
|
+
constructor() {
|
|
2715
|
+
y(this, "_id", Wr());
|
|
2716
|
+
y(this, "_config");
|
|
2717
|
+
wr(this, {}, { name: "NizzaStore", autoBind: !0 });
|
|
2718
|
+
}
|
|
2719
|
+
configure(t) {
|
|
2720
|
+
this._config = t;
|
|
2721
|
+
}
|
|
2722
|
+
createGlobalObject() {
|
|
2723
|
+
window.nizza = this;
|
|
2724
|
+
}
|
|
2725
|
+
get config() {
|
|
2726
|
+
return this.validateRequiredProps(), this._config;
|
|
2727
|
+
}
|
|
2728
|
+
validateRequiredProps() {
|
|
2729
|
+
Jr.forEach((t) => {
|
|
2730
|
+
if (t === void 0)
|
|
2731
|
+
throw new ri(t);
|
|
2732
|
+
});
|
|
2733
|
+
}
|
|
2734
|
+
}
|
|
2735
|
+
const Ea = new Yr();
|
|
2736
|
+
var Wn = /* @__PURE__ */ ((e) => (e.Add = "add", e.Remove = "remove", e))(Wn || {}), Hn = /* @__PURE__ */ ((e) => (e.Active = "active", e.Inactive = "inactive", e))(Hn || {});
|
|
2737
|
+
const Qr = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "deleteAllCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerInputAccount" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteAllCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Zr = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "getAllCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "data" } }, { kind: "Field", name: { kind: "Name", value: "section" } }, { kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ea = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "updateCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "updateCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ta = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "AddCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CreateCollectionInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "createCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, na = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ia = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ra = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllCollections" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, aa = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "ManageCollectionProduct" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ManageCollectionProductInInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "manageCollectionProduct" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, oa = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "SearchCollections" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, sa = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "UpdateCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "UpdateCollectionInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "updateCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ua = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllSnackVideos" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllSnackVideos" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoCreatedArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "snackVideos" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "thumbnailUrl" } }, { kind: "Field", name: { kind: "Name", value: "uploadProgress" } }, { kind: "Field", name: { kind: "Name", value: "duration" } }, { kind: "Field", name: { kind: "Name", value: "eventId" } }, { kind: "Field", name: { kind: "Name", value: "eventName" } }, { kind: "Field", name: { kind: "Name", value: "created" } }, { kind: "Field", name: { kind: "Name", value: "modified" } }] } }, { kind: "Field", name: { kind: "Name", value: "cursor" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2738
|
+
__proto__: null,
|
|
2739
|
+
AddCollectionDocument: ta,
|
|
2740
|
+
DeleteAllCustomizationDocument: Qr,
|
|
2741
|
+
DeleteCollectionDocument: na,
|
|
2742
|
+
FindCollectionDocument: ia,
|
|
2743
|
+
GetAllCollectionsDocument: ra,
|
|
2744
|
+
GetAllCustomizationDocument: Zr,
|
|
2745
|
+
GetAllSnackVideosDocument: ua,
|
|
2746
|
+
ManageCollectionProductDocument: aa,
|
|
2747
|
+
Methods: Wn,
|
|
2748
|
+
SearchCollectionsDocument: oa,
|
|
2749
|
+
Status: Hn,
|
|
2750
|
+
UpdateCollectionDocument: sa,
|
|
2751
|
+
UpdateCustomizationDocument: ea
|
|
2752
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
2753
|
+
function Ta(e) {
|
|
2754
|
+
return {
|
|
2755
|
+
class: e,
|
|
2756
|
+
_value: null,
|
|
2757
|
+
get value() {
|
|
2758
|
+
return this._value || (this._value = new e(), Object.freeze(this)), this._value;
|
|
2759
|
+
}
|
|
2760
|
+
};
|
|
2761
|
+
}
|
|
2762
2762
|
export {
|
|
2763
|
-
|
|
2763
|
+
ka as AccountInvalidError,
|
|
2764
2764
|
ii as AggregateRoot,
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2765
|
+
Ca as ApiGraphqlTypes,
|
|
2766
|
+
ma as BaseMobxStore,
|
|
2767
|
+
qn as CustomStorage,
|
|
2768
2768
|
Ue as DomainError,
|
|
2769
|
-
|
|
2769
|
+
Hr as Err,
|
|
2770
2770
|
ri as InvalidNizzaGlobalObjectError,
|
|
2771
|
-
|
|
2771
|
+
Yr as NizzaStore,
|
|
2772
2772
|
ni as NizzaVariationTypes,
|
|
2773
|
-
|
|
2774
|
-
|
|
2773
|
+
Xr as Ok,
|
|
2774
|
+
_a as ResourceNotFoundError,
|
|
2775
2775
|
De as Result,
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2776
|
+
ba as StoreProvider,
|
|
2777
|
+
pa as UnexpectedError,
|
|
2778
|
+
ha as ValueObject,
|
|
2779
|
+
Sa as apiCall,
|
|
2780
|
+
va as createAggregateRoot,
|
|
2781
|
+
Ta as createStore,
|
|
2782
|
+
Fa as err,
|
|
2783
|
+
Na as getFingerprint,
|
|
2784
|
+
ya as getStore,
|
|
2785
|
+
Aa as lazyLoad,
|
|
2786
|
+
Ea as nizza,
|
|
2787
|
+
wa as ok,
|
|
2788
|
+
Oa as searchParams,
|
|
2789
|
+
Wr as shortId,
|
|
2790
|
+
ga as useStore
|
|
2791
2791
|
};
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
package/dist/index.cjs
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";var ti=Object.defineProperty,ni=Object.defineProperties;var ii=Object.getOwnPropertyDescriptors;var Te=Object.getOwnPropertySymbols;var At=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable;var Ze=(e,t,i)=>t in e?ti(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,le=(e,t)=>{for(var i in t||(t={}))At.call(t,i)&&Ze(e,i,t[i]);if(Te)for(var i of Te(t))wt.call(t,i)&&Ze(e,i,t[i]);return e},Et=(e,t)=>ni(e,ii(t));var Ft=(e,t)=>{var i={};for(var n in e)At.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&Te)for(var n of Te(e))t.indexOf(n)<0&&wt.call(e,n)&&(i[n]=e[n]);return i};var N=(e,t,i)=>(Ze(e,typeof t!="symbol"?t+"":t,i),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const at=require("react/jsx-runtime"),ne=require("react"),Ct=require("js-cookie");var Xt=(e=>(e.COMBO="Combo",e))(Xt||{});class Jt{constructor(t){N(this,"aggregate");N(this,"_numSetPropsApplied",0);this.aggregate=t}setProps(t){for(const[i,n]of Object.entries(t))i in this.aggregate&&(this.aggregate[i]=n);this._numSetPropsApplied++}get isFirstSetProps(){return this._numSetPropsApplied===1}}function ri(e){return new Jt(e)}class ai{}class oi{constructor(t){N(this,"_value");t!==void 0&&(this._value=t)}get value(){return this._value}}class ge extends Error{constructor(t,i,n){super(i),this.value=n,this.name=t}toDTO(){return le({name:this.name,message:this.message},this.value&&{value:this.value})}}class si extends ge{constructor(t){super("RESOURCE_NOT_FOUND_ERROR",`Resource with id '${t}' not found.`,t)}}class ui extends ge{constructor(t){var i;super("APP_UNEXPECTED_ERROR",(i=t.message)!=null?i:"An unexpected error occurred.",t)}}class li extends ge{constructor(){super("APP_ACCOUNT_INVALID_ERROR","Account not defined")}}class Yt extends ge{constructor(t){super("INVALID_NIZZA_GLOBAL_OBJECT_ERROR",`
|
|
2
|
-
Configuration property invalid: "${t}".
|
|
3
|
-
|
|
4
|
-
It looks like you are trying to use a configuration property that is required but is "undefined", make sure you have initialized the global object "nizza".
|
|
5
|
-
|
|
6
|
-
* If you are using the @nizza/core library:
|
|
7
|
-
|
|
8
|
-
import { nizza } from '@nizza/core';
|
|
9
|
-
|
|
10
|
-
nizza.configure({
|
|
11
|
-
account: env.account,
|
|
12
|
-
...
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
* If you are using the window:
|
|
16
|
-
|
|
17
|
-
window.nizza.configure({
|
|
18
|
-
account: env.account,
|
|
19
|
-
...
|
|
20
|
-
});
|
|
21
|
-
`)}}let mt=new Map;const ot=ne.createContext(mt),di=({children:e,stores:t})=>{const i=ne.useContext(ot),n=ne.useMemo(()=>{const r=new Map;return t.forEach(a=>r.set(a.class,a.value)),mt=new Map([...i,...r])},[]);return at.jsx(ot.Provider,{value:n,children:e})};function ci(e){return ne.useContext(ot).get(e)}function fi(e){return mt.get(e)}function m(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];throw new Error(typeof e=="number"?"[MobX] minified error nr: "+e+(i.length?" "+i.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var vi={};function Qt(){return typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:vi}var mi=Object.assign,Re=Object.getOwnPropertyDescriptor,R=Object.defineProperty,ze=Object.prototype,st=[];Object.freeze(st);var Zt={};Object.freeze(Zt);var hi=typeof Proxy!="undefined",_i=Object.toString();function en(){hi||m("Proxy not available")}function tn(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var Y=function(){};function F(e){return typeof e=="function"}function K(e){var t=typeof e;switch(t){case"string":case"symbol":case"number":return!0}return!1}function $e(e){return e!==null&&typeof e=="object"}function V(e){if(!$e(e))return!1;var t=Object.getPrototypeOf(e);if(t==null)return!0;var i=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof i=="function"&&i.toString()===_i}function nn(e){var t=e==null?void 0:e.constructor;return t?t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction":!1}function Ke(e,t,i){R(e,t,{enumerable:!1,writable:!0,configurable:!0,value:i})}function rn(e,t,i){R(e,t,{enumerable:!1,writable:!1,configurable:!0,value:i})}function W(e,t){var i="isMobX"+e;return t.prototype[i]=!0,function(n){return $e(n)&&n[i]===!0}}function ae(e){return e instanceof Map}function ye(e){return e instanceof Set}var an=typeof Object.getOwnPropertySymbols!="undefined";function pi(e){var t=Object.keys(e);if(!an)return t;var i=Object.getOwnPropertySymbols(e);return i.length?[].concat(t,i.filter(function(n){return ze.propertyIsEnumerable.call(e,n)})):t}var ve=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:an?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function on(e){return e===null?null:typeof e=="object"?""+e:e}function M(e,t){return ze.hasOwnProperty.call(e,t)}var ki=Object.getOwnPropertyDescriptors||function(t){var i={};return ve(t).forEach(function(n){i[n]=Re(t,n)}),i};function Tt(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ht(e,t,i){return t&&Tt(e.prototype,t),i&&Tt(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function me(){return me=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},me.apply(this,arguments)}function sn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ut(e,t)}function ut(e,t){return ut=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},ut(e,t)}function Pt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bi(e,t){if(e){if(typeof e=="string")return Dt(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(e);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Dt(e,t)}}function Dt(e,t){(t==null||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function Q(e,t){var i=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(i)return(i=i.call(e)).next.bind(i);if(Array.isArray(e)||(i=bi(e))||t&&e&&typeof e.length=="number"){i&&(e=i);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
22
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Z=Symbol("mobx-stored-annotations");function P(e){function t(i,n){Se(i,n,e)}return Object.assign(t,e)}function Se(e,t,i){M(e,Z)||Ke(e,Z,me({},e[Z])),Ei(i)||(e[Z][t]=i)}var f=Symbol("mobx administration"),Ne=function(){function e(i){i===void 0&&(i="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=v.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=i}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(n){return n()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(n){return n()})},t.reportObserved=function(){return wn(this)},t.reportChanged=function(){y(),En(this),S()},t.toString=function(){return this.name_},e}(),_t=W("Atom",Ne);function un(e,t,i){t===void 0&&(t=Y),i===void 0&&(i=Y);var n=new Ne(e);return t!==Y&&wr(n,t),i!==Y&&xn(n,i),n}function gi(e,t){return e===t}function yi(e,t){return St(e,t)}function Si(e,t){return St(e,t,1)}function Ni(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Ve={identity:gi,structural:yi,default:Ni,shallow:Si};function ie(e,t,i){return Bn(e)?e:Array.isArray(e)?b.array(e,{name:i}):V(e)?b.object(e,void 0,{name:i}):ae(e)?b.map(e,{name:i}):ye(e)?b.set(e,{name:i}):typeof e=="function"&&!bt(e)&&!Me(e)?nn(e)?pe(e):_e(i,e):e}function Oi(e,t,i){if(e==null||ke(e)||Je(e)||H(e)||se(e))return e;if(Array.isArray(e))return b.array(e,{name:i,deep:!1});if(V(e))return b.object(e,void 0,{name:i,deep:!1});if(ae(e))return b.map(e,{name:i,deep:!1});if(ye(e))return b.set(e,{name:i,deep:!1})}function qe(e){return e}function Ai(e,t){return St(e,t)?t:e}var wi="override";function Ei(e){return e.annotationType_===wi}function Oe(e,t){return{annotationType_:e,options_:t,make_:Fi,extend_:Ci}}function Fi(e,t,i,n){var r;if((r=this.options_)!=null&&r.bound)return this.extend_(e,t,i,!1)===null?0:1;if(n===e.target_)return this.extend_(e,t,i,!1)===null?0:2;if(bt(i.value))return 1;var a=ln(e,this,t,i,!1);return R(n,t,a),2}function Ci(e,t,i,n){var r=ln(e,this,t,i);return e.defineProperty_(t,r,n)}function Ti(e,t,i,n){t.annotationType_,n.value}function ln(e,t,i,n,r){var a,o,s,u,l,c,h;r===void 0&&(r=d.safeDescriptors),Ti(e,t,i,n);var _=n.value;if((a=t.options_)!=null&&a.bound){var j;_=_.bind((j=e.proxy_)!=null?j:e.target_)}return{value:re((o=(s=t.options_)==null?void 0:s.name)!=null?o:i.toString(),_,(u=(l=t.options_)==null?void 0:l.autoAction)!=null?u:!1,(c=t.options_)!=null&&c.bound?(h=e.proxy_)!=null?h:e.target_:void 0),configurable:r?e.isPlainObject_:!0,enumerable:!1,writable:!r}}function dn(e,t){return{annotationType_:e,options_:t,make_:Pi,extend_:Di}}function Pi(e,t,i,n){var r;if(n===e.target_)return this.extend_(e,t,i,!1)===null?0:2;if((r=this.options_)!=null&&r.bound&&(!M(e.target_,t)||!Me(e.target_[t]))&&this.extend_(e,t,i,!1)===null)return 0;if(Me(i.value))return 1;var a=cn(e,this,t,i,!1,!1);return R(n,t,a),2}function Di(e,t,i,n){var r,a=cn(e,this,t,i,(r=this.options_)==null?void 0:r.bound);return e.defineProperty_(t,a,n)}function ji(e,t,i,n){t.annotationType_,n.value}function cn(e,t,i,n,r,a){a===void 0&&(a=d.safeDescriptors),ji(e,t,i,n);var o=n.value;if(Me(o)||(o=pe(o)),r){var s;o=o.bind((s=e.proxy_)!=null?s:e.target_),o.isMobXFlow=!0}return{value:o,configurable:a?e.isPlainObject_:!0,enumerable:!1,writable:!a}}function pt(e,t){return{annotationType_:e,options_:t,make_:xi,extend_:Ri}}function xi(e,t,i){return this.extend_(e,t,i,!1)===null?0:1}function Ri(e,t,i,n){return Vi(e,this,t,i),e.defineComputedProperty_(t,me({},this.options_,{get:i.get,set:i.set}),n)}function Vi(e,t,i,n){t.annotationType_,n.get}function We(e,t){return{annotationType_:e,options_:t,make_:Ii,extend_:Bi}}function Ii(e,t,i){return this.extend_(e,t,i,!1)===null?0:1}function Bi(e,t,i,n){var r,a;return Li(e,this),e.defineObservableProperty_(t,i.value,(r=(a=this.options_)==null?void 0:a.enhancer)!=null?r:ie,n)}function Li(e,t,i,n){t.annotationType_}var Mi="true",Ui=fn();function fn(e){return{annotationType_:Mi,options_:e,make_:Gi,extend_:zi}}function Gi(e,t,i,n){var r,a;if(i.get)return He.make_(e,t,i,n);if(i.set){var o=re(t.toString(),i.set);return n===e.target_?e.defineProperty_(t,{configurable:d.safeDescriptors?e.isPlainObject_:!0,set:o})===null?0:2:(R(n,t,{configurable:!0,set:o}),2)}if(n!==e.target_&&typeof i.value=="function"){var s;if(nn(i.value)){var u,l=(u=this.options_)!=null&&u.autoBind?pe.bound:pe;return l.make_(e,t,i,n)}var c=(s=this.options_)!=null&&s.autoBind?_e.bound:_e;return c.make_(e,t,i,n)}var h=((r=this.options_)==null?void 0:r.deep)===!1?b.ref:b;if(typeof i.value=="function"&&(a=this.options_)!=null&&a.autoBind){var _;i.value=i.value.bind((_=e.proxy_)!=null?_:e.target_)}return h.make_(e,t,i,n)}function zi(e,t,i,n){var r,a;if(i.get)return He.extend_(e,t,i,n);if(i.set)return e.defineProperty_(t,{configurable:d.safeDescriptors?e.isPlainObject_:!0,set:re(t.toString(),i.set)},n);if(typeof i.value=="function"&&(r=this.options_)!=null&&r.autoBind){var o;i.value=i.value.bind((o=e.proxy_)!=null?o:e.target_)}var s=((a=this.options_)==null?void 0:a.deep)===!1?b.ref:b;return s.extend_(e,t,i,n)}var $i="observable",Ki="observable.ref",qi="observable.shallow",Wi="observable.struct",vn={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(vn);function Pe(e){return e||vn}var mn=We($i),Hi=We(Ki,{enhancer:qe}),Xi=We(qi,{enhancer:Oi}),Ji=We(Wi,{enhancer:Ai}),hn=P(mn);function De(e){return e.deep===!0?ie:e.deep===!1?qe:Qi(e.defaultDecorator)}function Yi(e){var t;return e?(t=e.defaultDecorator)!=null?t:fn(e):void 0}function Qi(e){var t,i;return e&&(t=(i=e.options_)==null?void 0:i.enhancer)!=null?t:ie}function _n(e,t,i){if(K(t)){Se(e,t,mn);return}return Bn(e)?e:V(e)?b.object(e,t,i):Array.isArray(e)?b.array(e,t):ae(e)?b.map(e,t):ye(e)?b.set(e,t):typeof e=="object"&&e!==null?e:b.box(e,t)}Object.assign(_n,hn);var Zi={box:function(t,i){var n=Pe(i);return new te(t,De(n),n.name,!0,n.equals)},array:function(t,i){var n=Pe(i);return(d.useProxies===!1||n.proxy===!1?qr:Ir)(t,De(n),n.name)},map:function(t,i){var n=Pe(i);return new Gn(t,De(n),n.name)},set:function(t,i){var n=Pe(i);return new Kn(t,De(n),n.name)},object:function(t,i,n){return Vn(d.useProxies===!1||(n==null?void 0:n.proxy)===!1?Ye({},n):jr({},n),t,i)},ref:P(Hi),shallow:P(Xi),deep:hn,struct:P(Ji)},b=mi(_n,Zi),pn="computed",er="computed.struct",kn=pt(pn),tr=pt(er,{equals:Ve.structural}),He=function(t,i){if(K(i))return Se(t,i,kn);if(V(t))return P(pt(pn,t));var n=V(i)?i:{};return n.get=t,n.name||(n.name=t.name||""),new he(n)};Object.assign(He,kn);He.struct=P(tr);var jt,xt,Ie=0,nr=1,ir=(jt=(xt=Re(function(){},"name"))==null?void 0:xt.configurable)!=null?jt:!1,Rt={value:"action",configurable:!0,writable:!1,enumerable:!1};function re(e,t,i,n){i===void 0&&(i=!1);function r(){return rr(e,i,t,n||this,arguments)}return r.isMobxAction=!0,ir&&(Rt.value=e,Object.defineProperty(r,"name",Rt)),r}function rr(e,t,i,n,r){var a=ar(e,t);try{return i.apply(n,r)}catch(o){throw a.error_=o,o}finally{or(a)}}function ar(e,t,i,n){var r=!1,a=0,o=d.trackingDerivation,s=!t||!o;y();var u=d.allowStateChanges;s&&(oe(),u=Ae(!0));var l=kt(!0),c={runAsAction_:s,prevDerivation_:o,prevAllowStateChanges_:u,prevAllowStateReads_:l,notifySpy_:r,startTime_:a,actionId_:nr++,parentActionId_:Ie};return Ie=c.actionId_,c}function or(e){Ie!==e.actionId_&&m(30),Ie=e.parentActionId_,e.error_!==void 0&&(d.suppressReactionErrors=!0),we(e.prevAllowStateChanges_),de(e.prevAllowStateReads_),S(),e.runAsAction_&&U(e.prevDerivation_),d.suppressReactionErrors=!1}function sr(e,t){var i=Ae(e);try{return t()}finally{we(i)}}function Ae(e){var t=d.allowStateChanges;return d.allowStateChanges=e,t}function we(e){d.allowStateChanges=e}var bn;bn=Symbol.toPrimitive;var te=function(e){sn(t,e);function t(n,r,a,o,s){var u;return a===void 0&&(a="ObservableValue"),s===void 0&&(s=Ve.default),u=e.call(this,a)||this,u.enhancer=void 0,u.name_=void 0,u.equals=void 0,u.hasUnreportedChange_=!1,u.interceptors_=void 0,u.changeListeners_=void 0,u.value_=void 0,u.dehancer=void 0,u.enhancer=r,u.name_=a,u.equals=s,u.value_=r(n,void 0,a),u}var i=t.prototype;return i.dehanceValue=function(r){return this.dehancer!==void 0?this.dehancer(r):r},i.set=function(r){this.value_,r=this.prepareNewValue_(r),r!==d.UNCHANGED&&this.setNewValue_(r)},i.prepareNewValue_=function(r){if(O(this)){var a=A(this,{object:this,type:D,newValue:r});if(!a)return d.UNCHANGED;r=a.newValue}return r=this.enhancer(r,this.value_,this.name_),this.equals(this.value_,r)?d.UNCHANGED:r},i.setNewValue_=function(r){var a=this.value_;this.value_=r,this.reportChanged(),w(this)&&E(this,{type:D,object:this,newValue:r,oldValue:a})},i.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},i.intercept_=function(r){return Ee(this,r)},i.observe_=function(r,a){return a&&r({observableKind:"value",debugObjectName:this.name_,object:this,type:D,newValue:this.value_,oldValue:void 0}),Fe(this,r)},i.raw=function(){return this.value_},i.toJSON=function(){return this.get()},i.toString=function(){return this.name_+"["+this.value_+"]"},i.valueOf=function(){return on(this.get())},i[bn]=function(){return this.valueOf()},t}(Ne),gn;gn=Symbol.toPrimitive;var he=function(){function e(i){this.dependenciesState_=v.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=v.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Be(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=$.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,i.get||m(31),this.derivation=i.get,this.name_=i.name||"ComputedValue",i.set&&(this.setter_=re("ComputedValue-setter",i.set)),this.equals_=i.equals||(i.compareStructural||i.struct?Ve.structural:Ve.default),this.scope_=i.context,this.requiresReaction_=i.requiresReaction,this.keepAlive_=!!i.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){cr(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(n){return n()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(n){return n()})},t.get=function(){if(this.isComputing_&&m(32,this.name_,this.derivation),d.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)lt(this)&&(this.warnAboutUntrackedRead_(),y(),this.value_=this.computeValue_(!1),S());else if(wn(this),lt(this)){var n=d.trackingContext;this.keepAlive_&&!n&&(d.trackingContext=this),this.trackAndCompute()&&dr(this),d.trackingContext=n}var r=this.value_;if(xe(r))throw r.cause;return r},t.set=function(n){if(this.setter_){this.isRunningSetter_&&m(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,n)}finally{this.isRunningSetter_=!1}}else m(34,this.name_)},t.trackAndCompute=function(){var n=this.value_,r=this.dependenciesState_===v.NOT_TRACKING_,a=this.computeValue_(!0),o=r||xe(n)||xe(a)||!this.equals_(n,a);return o&&(this.value_=a),o},t.computeValue_=function(n){this.isComputing_=!0;var r=Ae(!1),a;if(n)a=yn(this,this.derivation,this.scope_);else if(d.disableErrorBoundaries===!0)a=this.derivation.call(this.scope_);else try{a=this.derivation.call(this.scope_)}catch(o){a=new Be(o)}return we(r),this.isComputing_=!1,a},t.suspend_=function(){this.keepAlive_||(dt(this),this.value_=void 0)},t.observe_=function(n,r){var a=this,o=!0,s=void 0;return yr(function(){var u=a.get();if(!o||r){var l=oe();n({observableKind:"computed",debugObjectName:a.name_,type:D,object:a,newValue:u,oldValue:s}),U(l)}o=!1,s=u})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return on(this.get())},t[gn]=function(){return this.valueOf()},e}(),Xe=W("ComputedValue",he),v;(function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"})(v||(v={}));var $;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})($||($={}));var Be=function(t){this.cause=void 0,this.cause=t};function xe(e){return e instanceof Be}function lt(e){switch(e.dependenciesState_){case v.UP_TO_DATE_:return!1;case v.NOT_TRACKING_:case v.STALE_:return!0;case v.POSSIBLY_STALE_:{for(var t=kt(!0),i=oe(),n=e.observing_,r=n.length,a=0;a<r;a++){var o=n[a];if(Xe(o)){if(d.disableErrorBoundaries)o.get();else try{o.get()}catch(s){return U(i),de(t),!0}if(e.dependenciesState_===v.STALE_)return U(i),de(t),!0}}return Nn(e),U(i),de(t),!1}}}function yn(e,t,i){var n=kt(!0);Nn(e),e.newObserving_=new Array(e.observing_.length+100),e.unboundDepsCount_=0,e.runId_=++d.runId;var r=d.trackingDerivation;d.trackingDerivation=e,d.inBatch++;var a;if(d.disableErrorBoundaries===!0)a=t.call(i);else try{a=t.call(i)}catch(o){a=new Be(o)}return d.inBatch--,d.trackingDerivation=r,ur(e),de(n),a}function ur(e){for(var t=e.observing_,i=e.observing_=e.newObserving_,n=v.UP_TO_DATE_,r=0,a=e.unboundDepsCount_,o=0;o<a;o++){var s=i[o];s.diffValue_===0&&(s.diffValue_=1,r!==o&&(i[r]=s),r++),s.dependenciesState_>n&&(n=s.dependenciesState_)}for(i.length=r,e.newObserving_=null,a=t.length;a--;){var u=t[a];u.diffValue_===0&&On(u,e),u.diffValue_=0}for(;r--;){var l=i[r];l.diffValue_===1&&(l.diffValue_=0,lr(l,e))}n!==v.UP_TO_DATE_&&(e.dependenciesState_=n,e.onBecomeStale_())}function dt(e){var t=e.observing_;e.observing_=[];for(var i=t.length;i--;)On(t[i],e);e.dependenciesState_=v.NOT_TRACKING_}function Sn(e){var t=oe();try{return e()}finally{U(t)}}function oe(){var e=d.trackingDerivation;return d.trackingDerivation=null,e}function U(e){d.trackingDerivation=e}function kt(e){var t=d.allowStateReads;return d.allowStateReads=e,t}function de(e){d.allowStateReads=e}function Nn(e){if(e.dependenciesState_!==v.UP_TO_DATE_){e.dependenciesState_=v.UP_TO_DATE_;for(var t=e.observing_,i=t.length;i--;)t[i].lowestObserverState_=v.UP_TO_DATE_}}var et=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},tt=!0,d=function(){var e=Qt();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(tt=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new et().version&&(tt=!1),tt?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new et):(setTimeout(function(){m(35)},1),new et)}();function lr(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function On(e,t){e.observers_.delete(t),e.observers_.size===0&&An(e)}function An(e){e.isPendingUnobservation_===!1&&(e.isPendingUnobservation_=!0,d.pendingUnobservations.push(e))}function y(){d.inBatch++}function S(){if(--d.inBatch===0){Fn();for(var e=d.pendingUnobservations,t=0;t<e.length;t++){var i=e[t];i.isPendingUnobservation_=!1,i.observers_.size===0&&(i.isBeingObserved_&&(i.isBeingObserved_=!1,i.onBUO()),i instanceof he&&i.suspend_())}d.pendingUnobservations=[]}}function wn(e){var t=d.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved_&&d.trackingContext&&(e.isBeingObserved_=!0,e.onBO())),!0):(e.observers_.size===0&&d.inBatch>0&&An(e),!1)}function En(e){e.lowestObserverState_!==v.STALE_&&(e.lowestObserverState_=v.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===v.UP_TO_DATE_&&t.onBecomeStale_(),t.dependenciesState_=v.STALE_}))}function dr(e){e.lowestObserverState_!==v.STALE_&&(e.lowestObserverState_=v.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===v.POSSIBLY_STALE_?t.dependenciesState_=v.STALE_:t.dependenciesState_===v.UP_TO_DATE_&&(e.lowestObserverState_=v.UP_TO_DATE_)}))}function cr(e){e.lowestObserverState_===v.UP_TO_DATE_&&(e.lowestObserverState_=v.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===v.UP_TO_DATE_&&(t.dependenciesState_=v.POSSIBLY_STALE_,t.onBecomeStale_())}))}var ct=function(){function e(i,n,r,a){i===void 0&&(i="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=v.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=$.NONE,this.name_=i,this.onInvalidate_=n,this.errorHandler_=r,this.requiresObservable_=a}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,d.pendingReactions.push(this),Fn())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){y(),this.isScheduled_=!1;var n=d.trackingContext;if(d.trackingContext=this,lt(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(r){this.reportExceptionInDerivation_(r)}}d.trackingContext=n,S()}},t.track=function(n){if(!this.isDisposed_){y(),this.isRunning_=!0;var r=d.trackingContext;d.trackingContext=this;var a=yn(this,n,void 0);d.trackingContext=r,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&dt(this),xe(a)&&this.reportExceptionInDerivation_(a.cause),S()}},t.reportExceptionInDerivation_=function(n){var r=this;if(this.errorHandler_){this.errorHandler_(n,this);return}if(d.disableErrorBoundaries)throw n;var a="[mobx] uncaught error in '"+this+"'";d.suppressReactionErrors||console.error(a,n),d.globalReactionErrorHandlers.forEach(function(o){return o(n,r)})},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(y(),dt(this),S()))},t.getDisposer_=function(){var n=this.dispose.bind(this);return n[f]=this,n},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(n){n===void 0&&(n=!1),Tr(this,n)},e}(),fr=100,vr=function(t){return t()};function Fn(){d.inBatch>0||d.isRunningReactions||vr(mr)}function mr(){d.isRunningReactions=!0;for(var e=d.pendingReactions,t=0;e.length>0;){++t===fr&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var i=e.splice(0),n=0,r=i.length;n<r;n++)i[n].runReaction_()}d.isRunningReactions=!1}var Le=W("Reaction",ct);function ce(){return!1}function hr(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var Cn="action",_r="action.bound",Tn="autoAction",pr="autoAction.bound",kr="<unnamed action>",Pn=Oe(Cn),br=Oe(_r,{bound:!0}),Dn=Oe(Tn,{autoAction:!0}),gr=Oe(pr,{autoAction:!0,bound:!0});function jn(e){var t=function(n,r){if(F(n))return re(n.name||kr,n,e);if(F(r))return re(n,r,e);if(K(r))return Se(n,r,e?Dn:Pn);if(K(n))return P(Oe(e?Tn:Cn,{name:n,autoAction:e}))};return t}var ee=jn(!1);Object.assign(ee,Pn);var _e=jn(!0);Object.assign(_e,Dn);ee.bound=P(br);_e.bound=P(gr);function bt(e){return F(e)&&e.isMobxAction===!0}function yr(e,t){var i,n;t===void 0&&(t=Zt);var r=(i=(n=t)==null?void 0:n.name)!=null?i:"Autorun",a=!t.scheduler&&!t.delay,o;if(a)o=new ct(r,function(){this.track(l)},t.onError,t.requiresObservable);else{var s=Nr(t),u=!1;o=new ct(r,function(){u||(u=!0,s(function(){u=!1,o.isDisposed_||o.track(l)}))},t.onError,t.requiresObservable)}function l(){e(o)}return o.schedule_(),o.getDisposer_()}var Sr=function(t){return t()};function Nr(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Sr}var Or="onBO",Ar="onBUO";function wr(e,t,i){return Rn(Or,e,t,i)}function xn(e,t,i){return Rn(Ar,e,t,i)}function Rn(e,t,i,n){var r=typeof n=="function"?q(t,i):q(t),a=F(n)?n:i,o=e+"L";return r[o]?r[o].add(a):r[o]=new Set([a]),function(){var s=r[o];s&&(s.delete(a),s.size===0&&delete r[o])}}function Vn(e,t,i,n){var r=ki(t),a=Ye(e,n)[f];y();try{ve(r).forEach(function(o){a.extend_(o,r[o],i&&o in i?i[o]:!0)})}finally{S()}return e}var Er=0;function In(){this.message="FLOW_CANCELLED"}In.prototype=Object.create(Error.prototype);var Vt=dn("flow"),Fr=dn("flow.bound",{bound:!0}),pe=Object.assign(function(t,i){if(K(i))return Se(t,i,Vt);var n=t,r=n.name||"<unnamed flow>",a=function(){var s=this,u=arguments,l=++Er,c=ee(r+" - runid: "+l+" - init",n).apply(s,u),h,_=void 0,j=new Promise(function(X,C){var T=0;h=C;function Ce(g){_=void 0;var B;try{B=ee(r+" - runid: "+l+" - yield "+T++,c.next).call(c,g)}catch(z){return C(z)}ue(B)}function Qe(g){_=void 0;var B;try{B=ee(r+" - runid: "+l+" - yield "+T++,c.throw).call(c,g)}catch(z){return C(z)}ue(B)}function ue(g){if(F(g==null?void 0:g.then)){g.then(ue,C);return}return g.done?X(g.value):(_=Promise.resolve(g.value),_.then(Ce,Qe))}Ce(void 0)});return j.cancel=ee(r+" - runid: "+l+" - cancel",function(){try{_&&It(_);var X=c.return(void 0),C=Promise.resolve(X.value);C.then(Y,Y),It(C),h(new In)}catch(T){h(T)}}),j};return a.isMobXFlow=!0,a},Vt);pe.bound=P(Fr);function It(e){F(e.cancel)&&e.cancel()}function Me(e){return(e==null?void 0:e.isMobXFlow)===!0}function Cr(e,t){return e?t!==void 0?ke(e)?e[f].values_.has(t):!1:ke(e)||!!e[f]||_t(e)||Le(e)||Xe(e):!1}function Bn(e){return Cr(e)}function Tr(){m("trace() is not available in production builds");for(var e=!1,t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];typeof i[i.length-1]=="boolean"&&(e=i.pop());var r=Pr(i);if(!r)return m("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");r.isTracing_===$.NONE&&console.log("[mobx.trace] '"+r.name_+"' tracing enabled"),r.isTracing_=e?$.BREAK:$.LOG}function Pr(e){switch(e.length){case 0:return d.trackingDerivation;case 1:return q(e[0]);case 2:return q(e[0],e[1])}}function x(e,t){t===void 0&&(t=void 0),y();try{return e.apply(t)}finally{S()}}function J(e){return e[f]}var Dr={has:function(t,i){return J(t).has_(i)},get:function(t,i){return J(t).get_(i)},set:function(t,i,n){var r;return K(i)?(r=J(t).set_(i,n,!0))!=null?r:!0:!1},deleteProperty:function(t,i){var n;return K(i)?(n=J(t).delete_(i,!0))!=null?n:!0:!1},defineProperty:function(t,i,n){var r;return(r=J(t).defineProperty_(i,n))!=null?r:!0},ownKeys:function(t){return J(t).ownKeys_()},preventExtensions:function(t){m(13)}};function jr(e,t){var i,n;return en(),e=Ye(e,t),(n=(i=e[f]).proxy_)!=null?n:i.proxy_=new Proxy(e,Dr)}function O(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function Ee(e,t){var i=e.interceptors_||(e.interceptors_=[]);return i.push(t),tn(function(){var n=i.indexOf(t);n!==-1&&i.splice(n,1)})}function A(e,t){var i=oe();try{for(var n=[].concat(e.interceptors_||[]),r=0,a=n.length;r<a&&(t=n[r](t),t&&!t.type&&m(14),!!t);r++);return t}finally{U(i)}}function w(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function Fe(e,t){var i=e.changeListeners_||(e.changeListeners_=[]);return i.push(t),tn(function(){var n=i.indexOf(t);n!==-1&&i.splice(n,1)})}function E(e,t){var i=oe(),n=e.changeListeners_;if(n){n=n.slice();for(var r=0,a=n.length;r<a;r++)n[r](t);U(i)}}var nt=Symbol("mobx-keys");function xr(e,t,i){if(V(e))return Vn(e,e,t,i);var n=Ye(e,i)[f];if(!e[nt]){var r=Object.getPrototypeOf(e),a=new Set([].concat(ve(e),ve(r)));a.delete("constructor"),a.delete(f),Ke(r,nt,a)}y();try{e[nt].forEach(function(o){return n.make_(o,t&&o in t?t[o]:!0)})}finally{S()}return e}var Bt="splice",D="update",Rr=1e4,Vr={get:function(t,i){var n=t[f];return i===f?n:i==="length"?n.getArrayLength_():typeof i=="string"&&!isNaN(i)?n.get_(parseInt(i)):M(Ue,i)?Ue[i]:t[i]},set:function(t,i,n){var r=t[f];return i==="length"&&r.setArrayLength_(n),typeof i=="symbol"||isNaN(i)?t[i]=n:r.set_(parseInt(i),n),!0},preventExtensions:function(){m(15)}},gt=function(){function e(i,n,r,a){i===void 0&&(i="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=r,this.legacyMode_=a,this.atom_=new Ne(i),this.enhancer_=function(o,s){return n(o,s,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.dehanceValues_=function(n){return this.dehancer!==void 0&&n.length>0?n.map(this.dehancer):n},t.intercept_=function(n){return Ee(this,n)},t.observe_=function(n,r){return r===void 0&&(r=!1),r&&n({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),Fe(this,n)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(n){(typeof n!="number"||isNaN(n)||n<0)&&m("Out of range: "+n);var r=this.values_.length;if(n!==r)if(n>r){for(var a=new Array(n-r),o=0;o<n-r;o++)a[o]=void 0;this.spliceWithArray_(r,0,a)}else this.spliceWithArray_(n,r-n)},t.updateArrayLength_=function(n,r){n!==this.lastKnownLength_&&m(16),this.lastKnownLength_+=r,this.legacyMode_&&r>0&&Hn(n+r+1)},t.spliceWithArray_=function(n,r,a){var o=this;this.atom_;var s=this.values_.length;if(n===void 0?n=0:n>s?n=s:n<0&&(n=Math.max(0,s+n)),arguments.length===1?r=s-n:r==null?r=0:r=Math.max(0,Math.min(r,s-n)),a===void 0&&(a=st),O(this)){var u=A(this,{object:this.proxy_,type:Bt,index:n,removedCount:r,added:a});if(!u)return st;r=u.removedCount,a=u.added}if(a=a.length===0?a:a.map(function(h){return o.enhancer_(h,void 0)}),this.legacyMode_){var l=a.length-r;this.updateArrayLength_(s,l)}var c=this.spliceItemsIntoValues_(n,r,a);return(r!==0||a.length!==0)&&this.notifyArraySplice_(n,a,c),this.dehanceValues_(c)},t.spliceItemsIntoValues_=function(n,r,a){if(a.length<Rr){var o;return(o=this.values_).splice.apply(o,[n,r].concat(a))}else{var s=this.values_.slice(n,n+r),u=this.values_.slice(n+r);this.values_.length+=a.length-r;for(var l=0;l<a.length;l++)this.values_[n+l]=a[l];for(var c=0;c<u.length;c++)this.values_[n+a.length+c]=u[c];return s}},t.notifyArrayChildUpdate_=function(n,r,a){var o=!this.owned_&&ce(),s=w(this),u=s||o?{observableKind:"array",object:this.proxy_,type:D,debugObjectName:this.atom_.name_,index:n,newValue:r,oldValue:a}:null;this.atom_.reportChanged(),s&&E(this,u)},t.notifyArraySplice_=function(n,r,a){var o=!this.owned_&&ce(),s=w(this),u=s||o?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:Bt,index:n,removed:a,added:r,removedCount:a.length,addedCount:r.length}:null;this.atom_.reportChanged(),s&&E(this,u)},t.get_=function(n){if(n<this.values_.length)return this.atom_.reportObserved(),this.dehanceValue_(this.values_[n]);console.warn("[mobx.array] Attempt to read an array index ("+n+") that is out of bounds ("+this.values_.length+"). Please check length first. Out of bound indices will not be tracked by MobX")},t.set_=function(n,r){var a=this.values_;if(n<a.length){this.atom_;var o=a[n];if(O(this)){var s=A(this,{type:D,object:this.proxy_,index:n,newValue:r});if(!s)return;r=s.newValue}r=this.enhancer_(r,o);var u=r!==o;u&&(a[n]=r,this.notifyArrayChildUpdate_(n,r,o))}else n===a.length?this.spliceWithArray_(n,0,[r]):m(17,n,a.length)},e}();function Ir(e,t,i,n){i===void 0&&(i="ObservableArray"),n===void 0&&(n=!1),en();var r=new gt(i,t,n,!1);rn(r.values_,f,r);var a=new Proxy(r.values_,Vr);if(r.proxy_=a,e&&e.length){var o=Ae(!0);r.spliceWithArray_(0,0,e),we(o)}return a}var Ue={clear:function(){return this.splice(0)},replace:function(t){var i=this[f];return i.spliceWithArray_(0,i.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,i){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];var o=this[f];switch(arguments.length){case 0:return[];case 1:return o.spliceWithArray_(t);case 2:return o.spliceWithArray_(t,i)}return o.spliceWithArray_(t,i,r)},spliceWithArray:function(t,i,n){return this[f].spliceWithArray_(t,i,n)},push:function(){for(var t=this[f],i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];return t.spliceWithArray_(t.values_.length,0,n),t.values_.length},pop:function(){return this.splice(Math.max(this[f].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[f],i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];return t.spliceWithArray_(0,0,n),t.values_.length},reverse:function(){return d.trackingDerivation&&m(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){d.trackingDerivation&&m(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var i=this[f],n=i.dehanceValues_(i.values_).indexOf(t);return n>-1?(this.splice(n,1),!0):!1}};p("concat",I);p("flat",I);p("includes",I);p("indexOf",I);p("join",I);p("lastIndexOf",I);p("slice",I);p("toString",I);p("toLocaleString",I);p("every",G);p("filter",G);p("find",G);p("findIndex",G);p("flatMap",G);p("forEach",G);p("map",G);p("some",G);p("reduce",Ln);p("reduceRight",Ln);function p(e,t){typeof Array.prototype[e]=="function"&&(Ue[e]=t(e))}function I(e){return function(){var t=this[f];t.atom_.reportObserved();var i=t.dehanceValues_(t.values_);return i[e].apply(i,arguments)}}function G(e){return function(t,i){var n=this,r=this[f];r.atom_.reportObserved();var a=r.dehanceValues_(r.values_);return a[e](function(o,s){return t.call(i,o,s,n)})}}function Ln(e){return function(){var t=this,i=this[f];i.atom_.reportObserved();var n=i.dehanceValues_(i.values_),r=arguments[0];return arguments[0]=function(a,o,s){return r(a,o,s,t)},n[e].apply(n,arguments)}}var Br=W("ObservableArrayAdministration",gt);function Je(e){return $e(e)&&Br(e[f])}var Mn,Un,Lr={},L="add",Ge="delete";Mn=Symbol.iterator;Un=Symbol.toStringTag;var Gn=function(){function e(i,n,r){var a=this;n===void 0&&(n=ie),r===void 0&&(r="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[f]=Lr,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=n,this.name_=r,F(Map)||m(18),this.keysAtom_=un("ObservableMap.keys()"),this.data_=new Map,this.hasMap_=new Map,sr(!0,function(){a.merge(i)})}var t=e.prototype;return t.has_=function(n){return this.data_.has(n)},t.has=function(n){var r=this;if(!d.trackingDerivation)return this.has_(n);var a=this.hasMap_.get(n);if(!a){var o=a=new te(this.has_(n),qe,"ObservableMap.key?",!1);this.hasMap_.set(n,o),xn(o,function(){return r.hasMap_.delete(n)})}return a.get()},t.set=function(n,r){var a=this.has_(n);if(O(this)){var o=A(this,{type:a?D:L,object:this,newValue:r,name:n});if(!o)return this;r=o.newValue}return a?this.updateValue_(n,r):this.addValue_(n,r),this},t.delete=function(n){var r=this;if(this.keysAtom_,O(this)){var a=A(this,{type:Ge,object:this,name:n});if(!a)return!1}if(this.has_(n)){var o=ce(),s=w(this),u=s||o?{observableKind:"map",debugObjectName:this.name_,type:Ge,object:this,oldValue:this.data_.get(n).value_,name:n}:null;return x(function(){var l;r.keysAtom_.reportChanged(),(l=r.hasMap_.get(n))==null||l.setNewValue_(!1);var c=r.data_.get(n);c.setNewValue_(void 0),r.data_.delete(n)}),s&&E(this,u),!0}return!1},t.updateValue_=function(n,r){var a=this.data_.get(n);if(r=a.prepareNewValue_(r),r!==d.UNCHANGED){var o=ce(),s=w(this),u=s||o?{observableKind:"map",debugObjectName:this.name_,type:D,object:this,oldValue:a.value_,name:n,newValue:r}:null;a.setNewValue_(r),s&&E(this,u)}},t.addValue_=function(n,r){var a=this;this.keysAtom_,x(function(){var l,c=new te(r,a.enhancer_,"ObservableMap.key",!1);a.data_.set(n,c),r=c.value_,(l=a.hasMap_.get(n))==null||l.setNewValue_(!0),a.keysAtom_.reportChanged()});var o=ce(),s=w(this),u=s||o?{observableKind:"map",debugObjectName:this.name_,type:L,object:this,name:n,newValue:r}:null;s&&E(this,u)},t.get=function(n){return this.has(n)?this.dehanceValue_(this.data_.get(n).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var n=this,r=this.keys();return be({next:function(){var o=r.next(),s=o.done,u=o.value;return{done:s,value:s?void 0:n.get(u)}}})},t.entries=function(){var n=this,r=this.keys();return be({next:function(){var o=r.next(),s=o.done,u=o.value;return{done:s,value:s?void 0:[u,n.get(u)]}}})},t[Mn]=function(){return this.entries()},t.forEach=function(n,r){for(var a=Q(this),o;!(o=a()).done;){var s=o.value,u=s[0],l=s[1];n.call(r,l,u,this)}},t.merge=function(n){var r=this;return H(n)&&(n=new Map(n)),x(function(){V(n)?pi(n).forEach(function(a){return r.set(a,n[a])}):Array.isArray(n)?n.forEach(function(a){var o=a[0],s=a[1];return r.set(o,s)}):ae(n)?(n.constructor!==Map&&m(19,n),n.forEach(function(a,o){return r.set(o,a)})):n!=null&&m(20,n)}),this},t.clear=function(){var n=this;x(function(){Sn(function(){for(var r=Q(n.keys()),a;!(a=r()).done;){var o=a.value;n.delete(o)}})})},t.replace=function(n){var r=this;return x(function(){for(var a=Mr(n),o=new Map,s=!1,u=Q(r.data_.keys()),l;!(l=u()).done;){var c=l.value;if(!a.has(c)){var h=r.delete(c);if(h)s=!0;else{var _=r.data_.get(c);o.set(c,_)}}}for(var j=Q(a.entries()),X;!(X=j()).done;){var C=X.value,T=C[0],Ce=C[1],Qe=r.data_.has(T);if(r.set(T,Ce),r.data_.has(T)){var ue=r.data_.get(T);o.set(T,ue),Qe||(s=!0)}}if(!s)if(r.data_.size!==o.size)r.keysAtom_.reportChanged();else for(var g=r.data_.keys(),B=o.keys(),z=g.next(),Ot=B.next();!z.done;){if(z.value!==Ot.value){r.keysAtom_.reportChanged();break}z=g.next(),Ot=B.next()}r.data_=o}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(n,r){return Fe(this,n)},t.intercept_=function(n){return Ee(this,n)},ht(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Un,get:function(){return"Map"}}]),e}(),H=W("ObservableMap",Gn);function Mr(e){if(ae(e)||H(e))return e;if(Array.isArray(e))return new Map(e);if(V(e)){var t=new Map;for(var i in e)t.set(i,e[i]);return t}else return m(21,e)}var zn,$n,Ur={};zn=Symbol.iterator;$n=Symbol.toStringTag;var Kn=function(){function e(i,n,r){n===void 0&&(n=ie),r===void 0&&(r="ObservableSet"),this.name_=void 0,this[f]=Ur,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=r,F(Set)||m(22),this.atom_=un(this.name_),this.enhancer_=function(a,o){return n(a,o,r)},i&&this.replace(i)}var t=e.prototype;return t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.clear=function(){var n=this;x(function(){Sn(function(){for(var r=Q(n.data_.values()),a;!(a=r()).done;){var o=a.value;n.delete(o)}})})},t.forEach=function(n,r){for(var a=Q(this),o;!(o=a()).done;){var s=o.value;n.call(r,s,s,this)}},t.add=function(n){var r=this;if(this.atom_,O(this)){var a=A(this,{type:L,object:this,newValue:n});if(!a)return this}if(!this.has(n)){x(function(){r.data_.add(r.enhancer_(n,void 0)),r.atom_.reportChanged()});var o=!1,s=w(this),u=s||o?{observableKind:"set",debugObjectName:this.name_,type:L,object:this,newValue:n}:null;s&&E(this,u)}return this},t.delete=function(n){var r=this;if(O(this)){var a=A(this,{type:Ge,object:this,oldValue:n});if(!a)return!1}if(this.has(n)){var o=!1,s=w(this),u=s||o?{observableKind:"set",debugObjectName:this.name_,type:Ge,object:this,oldValue:n}:null;return x(function(){r.atom_.reportChanged(),r.data_.delete(n)}),s&&E(this,u),!0}return!1},t.has=function(n){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(n))},t.entries=function(){var n=0,r=Array.from(this.keys()),a=Array.from(this.values());return be({next:function(){var s=n;return n+=1,s<a.length?{value:[r[s],a[s]],done:!1}:{done:!0}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var n=this,r=0,a=Array.from(this.data_.values());return be({next:function(){return r<a.length?{value:n.dehanceValue_(a[r++]),done:!1}:{done:!0}}})},t.replace=function(n){var r=this;return se(n)&&(n=new Set(n)),x(function(){Array.isArray(n)?(r.clear(),n.forEach(function(a){return r.add(a)})):ye(n)?(r.clear(),n.forEach(function(a){return r.add(a)})):n!=null&&m("Cannot initialize set from "+n)}),this},t.observe_=function(n,r){return Fe(this,n)},t.intercept_=function(n){return Ee(this,n)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[zn]=function(){return this.values()},ht(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:$n,get:function(){return"Set"}}]),e}(),se=W("ObservableSet",Kn),Lt=Object.create(null),Mt="remove",qn=function(){function e(i,n,r,a){n===void 0&&(n=new Map),a===void 0&&(a=Ui),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=i,this.values_=n,this.name_=r,this.defaultAnnotation_=a,this.keysAtom_=new Ne("ObservableObject.keys"),this.isPlainObject_=V(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(n){return this.values_.get(n).get()},t.setObservablePropValue_=function(n,r){var a=this.values_.get(n);if(a instanceof he)return a.set(r),!0;if(O(this)){var o=A(this,{type:D,object:this.proxy_||this.target_,name:n,newValue:r});if(!o)return null;r=o.newValue}if(r=a.prepareNewValue_(r),r!==d.UNCHANGED){var s=w(this),u=!1,l=s||u?{type:D,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:a.value_,name:n,newValue:r}:null;a.setNewValue_(r),s&&E(this,l)}return!0},t.get_=function(n){return d.trackingDerivation&&!M(this.target_,n)&&this.has_(n),this.target_[n]},t.set_=function(n,r,a){return a===void 0&&(a=!1),M(this.target_,n)?this.values_.has(n)?this.setObservablePropValue_(n,r):a?Reflect.set(this.target_,n,r):(this.target_[n]=r,!0):this.extend_(n,{value:r,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,a)},t.has_=function(n){if(!d.trackingDerivation)return n in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var r=this.pendingKeys_.get(n);return r||(r=new te(n in this.target_,qe,"ObservableObject.key?",!1),this.pendingKeys_.set(n,r)),r.get()},t.make_=function(n,r){if(r===!0&&(r=this.defaultAnnotation_),r!==!1){if(!(n in this.target_)){var a;if((a=this.target_[Z])!=null&&a[n])return;m(1,r.annotationType_,this.name_+"."+n.toString())}for(var o=this.target_;o&&o!==ze;){var s=Re(o,n);if(s){var u=r.make_(this,n,s,o);if(u===0)return;if(u===1)break}o=Object.getPrototypeOf(o)}Gt(this,r,n)}},t.extend_=function(n,r,a,o){if(o===void 0&&(o=!1),a===!0&&(a=this.defaultAnnotation_),a===!1)return this.defineProperty_(n,r,o);var s=a.extend_(this,n,r,o);return s&&Gt(this,a,n),s},t.defineProperty_=function(n,r,a){a===void 0&&(a=!1);try{y();var o=this.delete_(n);if(!o)return o;if(O(this)){var s=A(this,{object:this.proxy_||this.target_,name:n,type:L,newValue:r.value});if(!s)return null;var u=s.newValue;r.value!==u&&(r=me({},r,{value:u}))}if(a){if(!Reflect.defineProperty(this.target_,n,r))return!1}else R(this.target_,n,r);this.notifyPropertyAddition_(n,r.value)}finally{S()}return!0},t.defineObservableProperty_=function(n,r,a,o){o===void 0&&(o=!1);try{y();var s=this.delete_(n);if(!s)return s;if(O(this)){var u=A(this,{object:this.proxy_||this.target_,name:n,type:L,newValue:r});if(!u)return null;r=u.newValue}var l=Ut(n),c={configurable:d.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:l.get,set:l.set};if(o){if(!Reflect.defineProperty(this.target_,n,c))return!1}else R(this.target_,n,c);var h=new te(r,a,"ObservableObject.key",!1);this.values_.set(n,h),this.notifyPropertyAddition_(n,h.value_)}finally{S()}return!0},t.defineComputedProperty_=function(n,r,a){a===void 0&&(a=!1);try{y();var o=this.delete_(n);if(!o)return o;if(O(this)){var s=A(this,{object:this.proxy_||this.target_,name:n,type:L,newValue:void 0});if(!s)return null}r.name||(r.name="ObservableObject.key"),r.context=this.proxy_||this.target_;var u=Ut(n),l={configurable:d.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:u.get,set:u.set};if(a){if(!Reflect.defineProperty(this.target_,n,l))return!1}else R(this.target_,n,l);this.values_.set(n,new he(r)),this.notifyPropertyAddition_(n,void 0)}finally{S()}return!0},t.delete_=function(n,r){if(r===void 0&&(r=!1),!M(this.target_,n))return!0;if(O(this)){var a=A(this,{object:this.proxy_||this.target_,name:n,type:Mt});if(!a)return null}try{var o,s;y();var u=w(this),l=!1,c=this.values_.get(n),h=void 0;if(!c&&(u||l)){var _;h=(_=Re(this.target_,n))==null?void 0:_.value}if(r){if(!Reflect.deleteProperty(this.target_,n))return!1}else delete this.target_[n];if(c&&(this.values_.delete(n),c instanceof te&&(h=c.value_),En(c)),this.keysAtom_.reportChanged(),(o=this.pendingKeys_)==null||(s=o.get(n))==null||s.set(n in this.target_),u||l){var j={type:Mt,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:h,name:n};u&&E(this,j)}}finally{S()}return!0},t.observe_=function(n,r){return Fe(this,n)},t.intercept_=function(n){return Ee(this,n)},t.notifyPropertyAddition_=function(n,r){var a,o,s=w(this),u=!1;if(s||u){var l=s||u?{type:L,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:n,newValue:r}:null;s&&E(this,l)}(a=this.pendingKeys_)==null||(o=a.get(n))==null||o.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),ve(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function Ye(e,t){var i;if(M(e,f))return e;var n=(i=t==null?void 0:t.name)!=null?i:"ObservableObject",r=new qn(e,new Map,String(n),Yi(t));return Ke(e,f,r),e}var Gr=W("ObservableObjectAdministration",qn);function Ut(e){return Lt[e]||(Lt[e]={get:function(){return this[f].getObservablePropValue_(e)},set:function(i){return this[f].setObservablePropValue_(e,i)}})}function ke(e){return $e(e)?Gr(e[f]):!1}function Gt(e,t,i){var n;(n=e.target_[Z])==null||delete n[i]}var it=0,Wn=function(){};function zr(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}zr(Wn,Array.prototype);var yt=function(e,t,i){sn(n,e);function n(a,o,s,u){var l;s===void 0&&(s="ObservableArray"),u===void 0&&(u=!1),l=e.call(this)||this;var c=new gt(s,o,u,!0);if(c.proxy_=Pt(l),rn(Pt(l),f,c),a&&a.length){var h=Ae(!0);l.spliceWithArray(0,0,a),we(h)}return l}var r=n.prototype;return r.concat=function(){this[f].atom_.reportObserved();for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];return Array.prototype.concat.apply(this.slice(),s.map(function(l){return Je(l)?l.slice():l}))},r[i]=function(){var a=this,o=0;return be({next:function(){return o<a.length?{value:a[o++],done:!1}:{done:!0,value:void 0}}})},ht(n,[{key:"length",get:function(){return this[f].getArrayLength_()},set:function(o){this[f].setArrayLength_(o)}},{key:t,get:function(){return"Array"}}]),n}(Wn,Symbol.toStringTag,Symbol.iterator);Object.entries(Ue).forEach(function(e){var t=e[0],i=e[1];t!=="concat"&&Ke(yt.prototype,t,i)});function $r(e){return{enumerable:!1,configurable:!0,get:function(){return this[f].get_(e)},set:function(i){this[f].set_(e,i)}}}function Kr(e){R(yt.prototype,""+e,$r(e))}function Hn(e){if(e>it){for(var t=it;t<e+100;t++)Kr(t);it=e}}Hn(1e3);function qr(e,t,i){return new yt(e,t,i)}function q(e,t){if(typeof e=="object"&&e!==null){if(Je(e))return t!==void 0&&m(23),e[f].atom_;if(se(e))return e[f];if(H(e)){if(t===void 0)return e.keysAtom_;var i=e.data_.get(t)||e.hasMap_.get(t);return i||m(25,t,ft(e)),i}if(ke(e)){if(!t)return m(26);var n=e[f].values_.get(t);return n||m(27,t,ft(e)),n}if(_t(e)||Xe(e)||Le(e))return e}else if(F(e)&&Le(e[f]))return e[f];m(28)}function Xn(e,t){if(e||m(29),t!==void 0)return Xn(q(e,t));if(_t(e)||Xe(e)||Le(e)||H(e)||se(e))return e;if(e[f])return e[f];m(24,e)}function ft(e,t){var i;if(t!==void 0)i=q(e,t);else{if(bt(e))return e.name;ke(e)||H(e)||se(e)?i=Xn(e):i=q(e)}return i.name_}var zt=ze.toString;function St(e,t,i){return i===void 0&&(i=-1),vt(e,t,i)}function vt(e,t,i,n,r){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var a=typeof e;if(a!=="function"&&a!=="object"&&typeof t!="object")return!1;var o=zt.call(e);if(o!==zt.call(t))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return typeof Symbol!="undefined"&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":i>=0&&i++;break}e=$t(e),t=$t(t);var s=o==="[object Array]";if(!s){if(typeof e!="object"||typeof t!="object")return!1;var u=e.constructor,l=t.constructor;if(u!==l&&!(F(u)&&u instanceof u&&F(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}if(i===0)return!1;i<0&&(i=-1),n=n||[],r=r||[];for(var c=n.length;c--;)if(n[c]===e)return r[c]===t;if(n.push(e),r.push(t),s){if(c=e.length,c!==t.length)return!1;for(;c--;)if(!vt(e[c],t[c],i-1,n,r))return!1}else{var h=Object.keys(e),_;if(c=h.length,Object.keys(t).length!==c)return!1;for(;c--;)if(_=h[c],!(M(t,_)&&vt(e[_],t[_],i-1,n,r)))return!1}return n.pop(),r.pop(),!0}function $t(e){return Je(e)?e.slice():ae(e)||H(e)||ye(e)||se(e)?Array.from(e.entries()):e}function be(e){return e[Symbol.iterator]=Wr,e}function Wr(){return this}["Symbol","Map","Set"].forEach(function(e){var t=Qt();typeof t[e]=="undefined"&&m("MobX requires global '"+e+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:hr,extras:{getDebugName:ft},$mobx:f});const Hr=["account"];class Jn{constructor(){N(this,"_config");xr(this,{},{name:"NizzaStore",autoBind:!0})}configure(t){this._config=t}createGlobalObject(){window.nizza=this}get config(){return this.validateRequiredProps(),this._config}validateRequiredProps(){Hr.forEach(t=>{if(t===void 0)throw new Yt(t)})}}const Xr=new Jn;var Yn=(e=>(e.Add="add",e.Remove="remove",e))(Yn||{}),Qn=(e=>(e.Active="active",e.Inactive="inactive",e))(Qn||{});const Jr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"deleteAllCustomization"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CustomPlayerInputAccount"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteAllCustomPlayer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Yr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getAllCustomization"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllCustomPlayer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CustomPlayerSuccessArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"data"}},{kind:"Field",name:{kind:"Name",value:"section"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Qr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"updateCustomization"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CustomPlayerInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateCustomPlayer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Zr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateCollectionInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CollectionSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},ea={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},ta={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FindCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"findCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CollectionSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}},{kind:"Field",name:{kind:"Name",value:"products"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"link"}},{kind:"Field",name:{kind:"Name",value:"pictures"}},{kind:"Field",name:{kind:"Name",value:"price"}},{kind:"Field",name:{kind:"Name",value:"salesprice"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},na={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllCollections"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CollectionSuccessArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}},{kind:"Field",name:{kind:"Name",value:"products"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"link"}},{kind:"Field",name:{kind:"Name",value:"pictures"}},{kind:"Field",name:{kind:"Name",value:"price"}},{kind:"Field",name:{kind:"Name",value:"salesprice"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},ia={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ManageCollectionProduct"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ManageCollectionProductInInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"manageCollectionProduct"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},ra={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SearchCollections"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"searchCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CollectionSuccessArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}},{kind:"Field",name:{kind:"Name",value:"products"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"link"}},{kind:"Field",name:{kind:"Name",value:"pictures"}},{kind:"Field",name:{kind:"Name",value:"price"}},{kind:"Field",name:{kind:"Name",value:"salesprice"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"createdat"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},aa={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateCollectionInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Error"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},oa={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllSnackVideos"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllSnackVideos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SnackVideoCreatedArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"snackVideos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"uploadProgress"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"eventId"}},{kind:"Field",name:{kind:"Name",value:"eventName"}},{kind:"Field",name:{kind:"Name",value:"created"}},{kind:"Field",name:{kind:"Name",value:"modified"}}]}},{kind:"Field",name:{kind:"Name",value:"cursor"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},sa=Object.freeze(Object.defineProperty({__proto__:null,AddCollectionDocument:Zr,DeleteAllCustomizationDocument:Jr,DeleteCollectionDocument:ea,FindCollectionDocument:ta,GetAllCollectionsDocument:na,GetAllCustomizationDocument:Yr,GetAllSnackVideosDocument:oa,ManageCollectionProductDocument:ia,Methods:Yn,SearchCollectionsDocument:ra,Status:Qn,UpdateCollectionDocument:aa,UpdateCustomizationDocument:Qr},Symbol.toStringTag,{value:"Module"}));function ua(e){return{class:e,_value:null,get value(){return this._value||(this._value=new e,Object.freeze(this)),this._value}}}async function la(r){var a=r,{url:e,method:t="GET",raw:i=!1}=a,n=Ft(a,["url","method","raw"]);var l;const o=le({"Content-Type":"application/json"},n.headers),s=await fetch(e,Et(le({method:t},n),{headers:o}));if(i)return s;const u=await s.json();if(!s.ok){const c=(l=u==null?void 0:u.message)!=null?l:s.statusText;throw new Error(c)}return u}class Kt{constructor(){N(this,"store");this.store=this.getStoreFromWindow()}getStoreFromWindow(){let t={};try{t=JSON.parse(window.self.name)}catch(i){return{}}return t&&typeof t=="object"?t:{}}setStoreToWindow(t){const i=JSON.stringify(t);window.self.name=i}setItem(t,i){this.store[t]=i,this.setStoreToWindow(this.store)}getItem(t){var i;return(i=this.store[t])!=null?i:null}removeItem(t){delete this.store[t],this.setStoreToWindow(this.store)}clear(){this.setStoreToWindow({})}key(t){var n;return(n=Object.keys(this.store)[t])!=null?n:null}get length(){return Object.keys(this.store).length}}function qt(e){try{const t=window[e],i="__custom-storage__";return t.setItem(i,i),t.removeItem(i),!0}catch(t){return!1}}function Wt(e,t,i){const n={configurable:!1,enumerable:!1,writable:!1};typeof i!="undefined"&&(n.value=i),Object.defineProperty(e,t,n)}class Nt{static init(){return new Nt}constructor(){window.top===window.self?console.log("[CustomStorage] This is the main window"):console.log("[CustomStorage] This is NOT the main window"),this.replaceStorages()}replaceStorages(){if(!this.isAvailable.localStorage){const t=new Kt;Wt(window,"localStorage",t),console.log("[CustomStorage] LocalStorage is not available, custom implementation is defined")}if(!this.isAvailable.sessionStorage){const t=new Kt;Wt(window,"sessionStorage",t),console.log("[CustomStorage] SessionStorage is not available, custom implementation is defined")}}get isAvailable(){return{localStorage:qt("localStorage"),sessionStorage:qt("sessionStorage")}}}var je,da=new Uint8Array(16);function ca(){if(!je&&(je=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!je))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return je(da)}const fa=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function va(e){return typeof e=="string"&&fa.test(e)}var k=[];for(var rt=0;rt<256;++rt)k.push((rt+256).toString(16).substr(1));function ma(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=(k[e[t+0]]+k[e[t+1]]+k[e[t+2]]+k[e[t+3]]+"-"+k[e[t+4]]+k[e[t+5]]+"-"+k[e[t+6]]+k[e[t+7]]+"-"+k[e[t+8]]+k[e[t+9]]+"-"+k[e[t+10]]+k[e[t+11]]+k[e[t+12]]+k[e[t+13]]+k[e[t+14]]+k[e[t+15]]).toLowerCase();if(!va(i))throw TypeError("Stringified UUID is invalid");return i}function ha(e,t,i){e=e||{};var n=e.random||(e.rng||ca)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){i=i||0;for(var r=0;r<16;++r)t[i+r]=n[r];return t}return ma(n)}const Ht="FINGERPRINT_LIVE_SHOPPING",_a=()=>{let e=Ct.get(Ht);return e||(e=ha(),Ct.set(Ht,e,{expires:1}),e)};let pa=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,i)=>(i&=63,i<36?t+=i.toString(36):i<62?t+=(i-26).toString(36).toUpperCase():i>62?t+="-":t+="_",t),"");const ka=(e=8)=>pa(e),ba=e=>{const t=Object.entries(e).map(([i,n])=>`${i}=${n}`).join("&");return t?`?${t}`:""},ga=(e,t,i={fallback:null})=>{let n=e;t&&(n=()=>e().then(a=>({default:t(a)})));const r=ne.lazy(n);return a=>at.jsx(ne.Suspense,{fallback:i.fallback,children:at.jsx(r,le({},a))})};class fe{constructor(t,i,n){N(this,"isOk");N(this,"isErr");N(this,"error");N(this,"_value");if(t&&i)throw new Error("InvalidOperation: A result cannot be successful and contain an error");if(!t&&!i)throw new Error("InvalidOperation: A failing result needs to contain an error message");this.isOk=t,this.isErr=!t,this.error=i,this._value=n,Object.freeze(this)}get value(){if(this.isErr)throw new Error("Can't get the value of an error result. Use 'errorValue' instead.");return this._value}static ok(t){return new fe(!0,void 0,t)}static fail(t){return new fe(!1,t)}static combine(t){for(const i of t)if(i.isErr)return i;return fe.ok()}}class Zn{constructor(t){N(this,"value");this.value=t}isErr(){return!0}isOk(){return!1}}class ei{constructor(t){N(this,"value");this.value=t}isErr(){return!1}isOk(){return!0}}const ya=e=>new Zn(e),Sa=e=>new ei(e);exports.AccountInvalidError=li;exports.AggregateRoot=Jt;exports.ApiGraphqlTypes=sa;exports.BaseMobxStore=ai;exports.CustomStorage=Nt;exports.DomainError=ge;exports.Err=Zn;exports.InvalidNizzaGlobalObjectError=Yt;exports.NizzaStore=Jn;exports.NizzaVariationTypes=Xt;exports.Ok=ei;exports.ResourceNotFoundError=si;exports.Result=fe;exports.StoreProvider=di;exports.UnexpectedError=ui;exports.ValueObject=oi;exports.apiCall=la;exports.createAggregateRoot=ri;exports.createStore=ua;exports.err=Sa;exports.getFingerprint=_a;exports.getStore=fi;exports.lazyLoad=ga;exports.nizza=Xr;exports.ok=ya;exports.searchParams=ba;exports.shortId=ka;exports.useStore=ci;
|