@nizza/core 0.3.0-alpha.6 → 0.3.0-alpha.8
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.cjs +22 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +656 -691
- package/dist/lib/domain/index.d.ts +0 -1
- package/dist/lib/{domain/errors → errors}/app.d.ts +3 -0
- package/dist/lib/providers/StoreProvider.d.ts +2 -3
- package/dist/lib/stores/NizzaStore.d.ts +2 -0
- package/dist/lib/types/api-graphql-types.d.ts +200 -0
- package/dist/lib/types/app-module.d.ts +13 -6
- package/dist/lib/types/utils.d.ts +3 -2
- package/dist/lib/utils/lazyLoad.d.ts +2 -2
- package/dist/package.json +21 -0
- package/package.json +2 -3
- /package/dist/lib/{domain/errors → errors}/DomainError.d.ts +0 -0
- /package/dist/lib/{domain/errors → errors}/api.d.ts +0 -0
- /package/dist/lib/{domain/errors → errors}/index.d.ts +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var Qe = (e, t, i) => t in e ?
|
|
1
|
+
var Xn = Object.defineProperty, Jn = Object.defineProperties;
|
|
2
|
+
var Yn = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Fe = Object.getOwnPropertySymbols;
|
|
4
|
+
var Nt = Object.prototype.hasOwnProperty, Ot = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Qe = (e, t, i) => t in e ? Xn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, ue = (e, t) => {
|
|
6
6
|
for (var i in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var i of
|
|
10
|
-
|
|
7
|
+
Nt.call(t, i) && Qe(e, i, t[i]);
|
|
8
|
+
if (Fe)
|
|
9
|
+
for (var i of Fe(t))
|
|
10
|
+
Ot.call(t, i) && Qe(e, i, t[i]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
12
|
+
}, At = (e, t) => Jn(e, Yn(t));
|
|
13
|
+
var wt = (e, t) => {
|
|
14
14
|
var i = {};
|
|
15
15
|
for (var n in e)
|
|
16
|
-
|
|
17
|
-
if (e != null &&
|
|
18
|
-
for (var n of
|
|
19
|
-
t.indexOf(n) < 0 &&
|
|
16
|
+
Nt.call(e, n) && t.indexOf(n) < 0 && (i[n] = e[n]);
|
|
17
|
+
if (e != null && Fe)
|
|
18
|
+
for (var n of Fe(e))
|
|
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
|
-
import { createContext as
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
import { createContext as Qn, useContext as Wt, useMemo as Zn, lazy as ei, Suspense as ti } from "react";
|
|
25
|
+
import Ft from "js-cookie";
|
|
26
|
+
var ni = /* @__PURE__ */ ((e) => (e.COMBO = "Combo", e))(ni || {});
|
|
27
|
+
class ii {
|
|
27
28
|
constructor(t) {
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
y(this, "aggregate");
|
|
30
|
+
y(this, "_numSetPropsApplied", 0);
|
|
30
31
|
this.aggregate = t;
|
|
31
32
|
}
|
|
32
33
|
setProps(t) {
|
|
@@ -38,12 +39,21 @@ class ai {
|
|
|
38
39
|
return this._numSetPropsApplied === 1;
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
|
-
function
|
|
42
|
-
return new
|
|
42
|
+
function va(e) {
|
|
43
|
+
return new ii(e);
|
|
43
44
|
}
|
|
44
|
-
class
|
|
45
|
+
class ma {
|
|
45
46
|
}
|
|
46
|
-
class
|
|
47
|
+
class ha {
|
|
48
|
+
constructor(t) {
|
|
49
|
+
y(this, "_value");
|
|
50
|
+
t !== void 0 && (this._value = t);
|
|
51
|
+
}
|
|
52
|
+
get value() {
|
|
53
|
+
return this._value;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
class Ue extends Error {
|
|
47
57
|
constructor(t, i, n) {
|
|
48
58
|
super(i), this.value = n, this.name = t;
|
|
49
59
|
}
|
|
@@ -54,7 +64,7 @@ class mt extends Error {
|
|
|
54
64
|
}, this.value && { value: this.value });
|
|
55
65
|
}
|
|
56
66
|
}
|
|
57
|
-
class
|
|
67
|
+
class _a extends Ue {
|
|
58
68
|
constructor(t) {
|
|
59
69
|
super(
|
|
60
70
|
"RESOURCE_NOT_FOUND_ERROR",
|
|
@@ -63,7 +73,7 @@ class va extends mt {
|
|
|
63
73
|
);
|
|
64
74
|
}
|
|
65
75
|
}
|
|
66
|
-
class
|
|
76
|
+
class pa extends Ue {
|
|
67
77
|
constructor(t) {
|
|
68
78
|
var i;
|
|
69
79
|
super(
|
|
@@ -73,62 +83,71 @@ class ma extends mt {
|
|
|
73
83
|
);
|
|
74
84
|
}
|
|
75
85
|
}
|
|
76
|
-
class
|
|
86
|
+
class ka extends Ue {
|
|
77
87
|
constructor() {
|
|
78
88
|
super("APP_ACCOUNT_INVALID_ERROR", "Account not defined");
|
|
79
89
|
}
|
|
80
90
|
}
|
|
81
|
-
class
|
|
91
|
+
class ri extends Ue {
|
|
82
92
|
constructor(t) {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
93
|
+
super(
|
|
94
|
+
"INVALID_NIZZA_GLOBAL_OBJECT_ERROR",
|
|
95
|
+
`
|
|
96
|
+
Configuration property invalid: "${t}".
|
|
97
|
+
|
|
98
|
+
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".
|
|
99
|
+
|
|
100
|
+
* If you are using the @nizza/core library:
|
|
101
|
+
|
|
102
|
+
import { nizza } from '@nizza/core';
|
|
103
|
+
|
|
104
|
+
nizza.configure({
|
|
105
|
+
account: env.account,
|
|
106
|
+
...
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
* If you are using the window:
|
|
110
|
+
|
|
111
|
+
window.nizza.configure({
|
|
112
|
+
account: env.account,
|
|
113
|
+
...
|
|
114
|
+
});
|
|
115
|
+
`
|
|
116
|
+
);
|
|
88
117
|
}
|
|
89
118
|
}
|
|
90
|
-
let
|
|
91
|
-
const at =
|
|
92
|
-
const
|
|
93
|
-
const
|
|
94
|
-
return t.forEach((
|
|
95
|
-
let s;
|
|
96
|
-
try {
|
|
97
|
-
s = o();
|
|
98
|
-
} catch (u) {
|
|
99
|
-
s = new o();
|
|
100
|
-
}
|
|
101
|
-
a.set(o, s);
|
|
102
|
-
}), i == null || i.forEach(
|
|
103
|
-
(o) => a.set(o.constructor, o)
|
|
104
|
-
), ht = new Map([...n, ...a]);
|
|
119
|
+
let vt = /* @__PURE__ */ new Map();
|
|
120
|
+
const at = Qn(vt), ba = ({ children: e, stores: t }) => {
|
|
121
|
+
const i = Wt(at), n = Zn(() => {
|
|
122
|
+
const r = /* @__PURE__ */ new Map();
|
|
123
|
+
return t.forEach((a) => r.set(a.class, a.value)), vt = new Map([...i, ...r]);
|
|
105
124
|
}, []);
|
|
106
|
-
return /* @__PURE__ */ rt(at.Provider, { value:
|
|
125
|
+
return /* @__PURE__ */ rt(at.Provider, { value: n, children: e });
|
|
107
126
|
};
|
|
108
127
|
function ga(e) {
|
|
109
|
-
return
|
|
128
|
+
return Wt(at).get(e);
|
|
110
129
|
}
|
|
111
|
-
function
|
|
112
|
-
return
|
|
130
|
+
function ya(e) {
|
|
131
|
+
return vt.get(e);
|
|
113
132
|
}
|
|
114
133
|
function m(e) {
|
|
115
134
|
for (var t = arguments.length, i = new Array(t > 1 ? t - 1 : 0), n = 1; n < t; n++)
|
|
116
135
|
i[n - 1] = arguments[n];
|
|
117
136
|
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);
|
|
118
137
|
}
|
|
119
|
-
var
|
|
120
|
-
function
|
|
121
|
-
return typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self :
|
|
138
|
+
var ai = {};
|
|
139
|
+
function Ht() {
|
|
140
|
+
return typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : ai;
|
|
122
141
|
}
|
|
123
|
-
var
|
|
142
|
+
var oi = Object.assign, je = Object.getOwnPropertyDescriptor, V = Object.defineProperty, Ge = Object.prototype, ot = [];
|
|
124
143
|
Object.freeze(ot);
|
|
125
|
-
var
|
|
126
|
-
Object.freeze(
|
|
127
|
-
var
|
|
128
|
-
function
|
|
129
|
-
|
|
144
|
+
var Xt = {};
|
|
145
|
+
Object.freeze(Xt);
|
|
146
|
+
var si = typeof Proxy != "undefined", ui = /* @__PURE__ */ Object.toString();
|
|
147
|
+
function Jt() {
|
|
148
|
+
si || m("Proxy not available");
|
|
130
149
|
}
|
|
131
|
-
function
|
|
150
|
+
function Yt(e) {
|
|
132
151
|
var t = !1;
|
|
133
152
|
return function() {
|
|
134
153
|
if (!t)
|
|
@@ -140,7 +159,7 @@ var Y = function() {
|
|
|
140
159
|
function E(e) {
|
|
141
160
|
return typeof e == "function";
|
|
142
161
|
}
|
|
143
|
-
function
|
|
162
|
+
function K(e) {
|
|
144
163
|
var t = typeof e;
|
|
145
164
|
switch (t) {
|
|
146
165
|
case "string":
|
|
@@ -150,32 +169,32 @@ function z(e) {
|
|
|
150
169
|
}
|
|
151
170
|
return !1;
|
|
152
171
|
}
|
|
153
|
-
function
|
|
172
|
+
function $e(e) {
|
|
154
173
|
return e !== null && typeof e == "object";
|
|
155
174
|
}
|
|
156
|
-
function
|
|
157
|
-
if (
|
|
175
|
+
function R(e) {
|
|
176
|
+
if (!$e(e))
|
|
158
177
|
return !1;
|
|
159
178
|
var t = Object.getPrototypeOf(e);
|
|
160
179
|
if (t == null)
|
|
161
180
|
return !0;
|
|
162
181
|
var i = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
|
|
163
|
-
return typeof i == "function" && i.toString() ===
|
|
182
|
+
return typeof i == "function" && i.toString() === ui;
|
|
164
183
|
}
|
|
165
|
-
function
|
|
184
|
+
function Qt(e) {
|
|
166
185
|
var t = e == null ? void 0 : e.constructor;
|
|
167
186
|
return t ? t.name === "GeneratorFunction" || t.displayName === "GeneratorFunction" : !1;
|
|
168
187
|
}
|
|
169
|
-
function
|
|
170
|
-
|
|
188
|
+
function ze(e, t, i) {
|
|
189
|
+
V(e, t, {
|
|
171
190
|
enumerable: !1,
|
|
172
191
|
writable: !0,
|
|
173
192
|
configurable: !0,
|
|
174
193
|
value: i
|
|
175
194
|
});
|
|
176
195
|
}
|
|
177
|
-
function
|
|
178
|
-
|
|
196
|
+
function Zt(e, t, i) {
|
|
197
|
+
V(e, t, {
|
|
179
198
|
enumerable: !1,
|
|
180
199
|
writable: !1,
|
|
181
200
|
configurable: !0,
|
|
@@ -185,51 +204,51 @@ function tn(e, t, i) {
|
|
|
185
204
|
function W(e, t) {
|
|
186
205
|
var i = "isMobX" + e;
|
|
187
206
|
return t.prototype[i] = !0, function(n) {
|
|
188
|
-
return
|
|
207
|
+
return $e(n) && n[i] === !0;
|
|
189
208
|
};
|
|
190
209
|
}
|
|
191
210
|
function re(e) {
|
|
192
211
|
return e instanceof Map;
|
|
193
212
|
}
|
|
194
|
-
function
|
|
213
|
+
function ke(e) {
|
|
195
214
|
return e instanceof Set;
|
|
196
215
|
}
|
|
197
|
-
var
|
|
198
|
-
function
|
|
216
|
+
var en = typeof Object.getOwnPropertySymbols != "undefined";
|
|
217
|
+
function li(e) {
|
|
199
218
|
var t = Object.keys(e);
|
|
200
|
-
if (!
|
|
219
|
+
if (!en)
|
|
201
220
|
return t;
|
|
202
221
|
var i = Object.getOwnPropertySymbols(e);
|
|
203
222
|
return i.length ? [].concat(t, i.filter(function(n) {
|
|
204
|
-
return
|
|
223
|
+
return Ge.propertyIsEnumerable.call(e, n);
|
|
205
224
|
})) : t;
|
|
206
225
|
}
|
|
207
|
-
var ce = typeof Reflect != "undefined" && Reflect.ownKeys ? Reflect.ownKeys :
|
|
226
|
+
var ce = typeof Reflect != "undefined" && Reflect.ownKeys ? Reflect.ownKeys : en ? function(e) {
|
|
208
227
|
return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
|
|
209
228
|
} : (
|
|
210
229
|
/* istanbul ignore next */
|
|
211
230
|
Object.getOwnPropertyNames
|
|
212
231
|
);
|
|
213
|
-
function
|
|
232
|
+
function tn(e) {
|
|
214
233
|
return e === null ? null : typeof e == "object" ? "" + e : e;
|
|
215
234
|
}
|
|
216
|
-
function
|
|
217
|
-
return
|
|
235
|
+
function M(e, t) {
|
|
236
|
+
return Ge.hasOwnProperty.call(e, t);
|
|
218
237
|
}
|
|
219
|
-
var
|
|
238
|
+
var di = Object.getOwnPropertyDescriptors || function(t) {
|
|
220
239
|
var i = {};
|
|
221
240
|
return ce(t).forEach(function(n) {
|
|
222
|
-
i[n] =
|
|
241
|
+
i[n] = je(t, n);
|
|
223
242
|
}), i;
|
|
224
243
|
};
|
|
225
|
-
function
|
|
244
|
+
function Et(e, t) {
|
|
226
245
|
for (var i = 0; i < t.length; i++) {
|
|
227
246
|
var n = t[i];
|
|
228
247
|
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);
|
|
229
248
|
}
|
|
230
249
|
}
|
|
231
|
-
function
|
|
232
|
-
return t &&
|
|
250
|
+
function mt(e, t, i) {
|
|
251
|
+
return t && Et(e.prototype, t), i && Et(e, i), Object.defineProperty(e, "prototype", {
|
|
233
252
|
writable: !1
|
|
234
253
|
}), e;
|
|
235
254
|
}
|
|
@@ -243,7 +262,7 @@ function fe() {
|
|
|
243
262
|
return e;
|
|
244
263
|
}, fe.apply(this, arguments);
|
|
245
264
|
}
|
|
246
|
-
function
|
|
265
|
+
function nn(e, t) {
|
|
247
266
|
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, st(e, t);
|
|
248
267
|
}
|
|
249
268
|
function st(e, t) {
|
|
@@ -251,23 +270,23 @@ function st(e, t) {
|
|
|
251
270
|
return n.__proto__ = r, n;
|
|
252
271
|
}, st(e, t);
|
|
253
272
|
}
|
|
254
|
-
function
|
|
273
|
+
function Ct(e) {
|
|
255
274
|
if (e === void 0)
|
|
256
275
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
257
276
|
return e;
|
|
258
277
|
}
|
|
259
|
-
function
|
|
278
|
+
function ci(e, t) {
|
|
260
279
|
if (e) {
|
|
261
280
|
if (typeof e == "string")
|
|
262
|
-
return
|
|
281
|
+
return Tt(e, t);
|
|
263
282
|
var i = Object.prototype.toString.call(e).slice(8, -1);
|
|
264
283
|
if (i === "Object" && e.constructor && (i = e.constructor.name), i === "Map" || i === "Set")
|
|
265
284
|
return Array.from(e);
|
|
266
285
|
if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))
|
|
267
|
-
return
|
|
286
|
+
return Tt(e, t);
|
|
268
287
|
}
|
|
269
288
|
}
|
|
270
|
-
function
|
|
289
|
+
function Tt(e, t) {
|
|
271
290
|
(t == null || t > e.length) && (t = e.length);
|
|
272
291
|
for (var i = 0, n = new Array(t); i < t; i++)
|
|
273
292
|
n[i] = e[i];
|
|
@@ -277,7 +296,7 @@ function Q(e, t) {
|
|
|
277
296
|
var i = typeof Symbol != "undefined" && e[Symbol.iterator] || e["@@iterator"];
|
|
278
297
|
if (i)
|
|
279
298
|
return (i = i.call(e)).next.bind(i);
|
|
280
|
-
if (Array.isArray(e) || (i =
|
|
299
|
+
if (Array.isArray(e) || (i = ci(e)) || t && e && typeof e.length == "number") {
|
|
281
300
|
i && (e = i);
|
|
282
301
|
var n = 0;
|
|
283
302
|
return function() {
|
|
@@ -293,16 +312,16 @@ function Q(e, t) {
|
|
|
293
312
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
294
313
|
}
|
|
295
314
|
var Z = /* @__PURE__ */ Symbol("mobx-stored-annotations");
|
|
296
|
-
function
|
|
315
|
+
function P(e) {
|
|
297
316
|
function t(i, n) {
|
|
298
317
|
be(i, n, e);
|
|
299
318
|
}
|
|
300
319
|
return Object.assign(t, e);
|
|
301
320
|
}
|
|
302
321
|
function be(e, t, i) {
|
|
303
|
-
|
|
322
|
+
M(e, Z) || ze(e, Z, fe({}, e[Z])), bi(i) || (e[Z][t] = i);
|
|
304
323
|
}
|
|
305
|
-
var f = /* @__PURE__ */ Symbol("mobx administration"),
|
|
324
|
+
var f = /* @__PURE__ */ Symbol("mobx administration"), ge = /* @__PURE__ */ function() {
|
|
306
325
|
function e(i) {
|
|
307
326
|
i === void 0 && (i = "Atom"), this.name_ = void 0, this.isPendingUnobservation_ = !1, this.isBeingObserved_ = !1, this.observers_ = /* @__PURE__ */ new Set(), this.diffValue_ = 0, this.lastAccessedBy_ = 0, this.lowestObserverState_ = v.NOT_TRACKING_, this.onBOL = void 0, this.onBUOL = void 0, this.name_ = i;
|
|
308
327
|
}
|
|
@@ -316,48 +335,48 @@ var f = /* @__PURE__ */ Symbol("mobx administration"), ke = /* @__PURE__ */ func
|
|
|
316
335
|
return n();
|
|
317
336
|
});
|
|
318
337
|
}, t.reportObserved = function() {
|
|
319
|
-
return
|
|
338
|
+
return Sn(this);
|
|
320
339
|
}, t.reportChanged = function() {
|
|
321
|
-
|
|
340
|
+
S(), Nn(this), N();
|
|
322
341
|
}, t.toString = function() {
|
|
323
342
|
return this.name_;
|
|
324
343
|
}, e;
|
|
325
|
-
}(),
|
|
326
|
-
function
|
|
344
|
+
}(), ht = /* @__PURE__ */ W("Atom", ge);
|
|
345
|
+
function rn(e, t, i) {
|
|
327
346
|
t === void 0 && (t = Y), i === void 0 && (i = Y);
|
|
328
|
-
var n = new
|
|
329
|
-
return t !== Y &&
|
|
347
|
+
var n = new ge(e);
|
|
348
|
+
return t !== Y && kr(n, t), i !== Y && Tn(n, i), n;
|
|
330
349
|
}
|
|
331
|
-
function
|
|
350
|
+
function fi(e, t) {
|
|
332
351
|
return e === t;
|
|
333
352
|
}
|
|
353
|
+
function vi(e, t) {
|
|
354
|
+
return yt(e, t);
|
|
355
|
+
}
|
|
334
356
|
function mi(e, t) {
|
|
335
|
-
return
|
|
357
|
+
return yt(e, t, 1);
|
|
336
358
|
}
|
|
337
359
|
function hi(e, t) {
|
|
338
|
-
return Nt(e, t, 1);
|
|
339
|
-
}
|
|
340
|
-
function _i(e, t) {
|
|
341
360
|
return Object.is ? Object.is(e, t) : e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
|
|
342
361
|
}
|
|
343
|
-
var
|
|
344
|
-
identity:
|
|
345
|
-
structural:
|
|
346
|
-
default:
|
|
347
|
-
shallow:
|
|
362
|
+
var xe = {
|
|
363
|
+
identity: fi,
|
|
364
|
+
structural: vi,
|
|
365
|
+
default: hi,
|
|
366
|
+
shallow: mi
|
|
348
367
|
};
|
|
349
368
|
function ne(e, t, i) {
|
|
350
|
-
return
|
|
369
|
+
return xn(e) ? e : Array.isArray(e) ? b.array(e, {
|
|
351
370
|
name: i
|
|
352
|
-
}) :
|
|
371
|
+
}) : R(e) ? b.object(e, void 0, {
|
|
353
372
|
name: i
|
|
354
373
|
}) : re(e) ? b.map(e, {
|
|
355
374
|
name: i
|
|
356
|
-
}) :
|
|
375
|
+
}) : ke(e) ? b.set(e, {
|
|
357
376
|
name: i
|
|
358
|
-
}) : typeof e == "function" && !kt(e) && !
|
|
377
|
+
}) : typeof e == "function" && !kt(e) && !Be(e) ? Qt(e) ? he(e) : me(i, e) : e;
|
|
359
378
|
}
|
|
360
|
-
function
|
|
379
|
+
function _i(e, t, i) {
|
|
361
380
|
if (e == null || _e(e) || Xe(e) || H(e) || oe(e))
|
|
362
381
|
return e;
|
|
363
382
|
if (Array.isArray(e))
|
|
@@ -365,7 +384,7 @@ function pi(e, t, i) {
|
|
|
365
384
|
name: i,
|
|
366
385
|
deep: !1
|
|
367
386
|
});
|
|
368
|
-
if (
|
|
387
|
+
if (R(e))
|
|
369
388
|
return b.object(e, void 0, {
|
|
370
389
|
name: i,
|
|
371
390
|
deep: !1
|
|
@@ -375,31 +394,31 @@ function pi(e, t, i) {
|
|
|
375
394
|
name: i,
|
|
376
395
|
deep: !1
|
|
377
396
|
});
|
|
378
|
-
if (
|
|
397
|
+
if (ke(e))
|
|
379
398
|
return b.set(e, {
|
|
380
399
|
name: i,
|
|
381
400
|
deep: !1
|
|
382
401
|
});
|
|
383
402
|
}
|
|
384
|
-
function
|
|
403
|
+
function Ke(e) {
|
|
385
404
|
return e;
|
|
386
405
|
}
|
|
387
|
-
function
|
|
388
|
-
return
|
|
406
|
+
function pi(e, t) {
|
|
407
|
+
return yt(e, t) ? t : e;
|
|
389
408
|
}
|
|
390
|
-
var
|
|
391
|
-
function
|
|
392
|
-
return e.annotationType_ ===
|
|
409
|
+
var ki = "override";
|
|
410
|
+
function bi(e) {
|
|
411
|
+
return e.annotationType_ === ki;
|
|
393
412
|
}
|
|
394
413
|
function ye(e, t) {
|
|
395
414
|
return {
|
|
396
415
|
annotationType_: e,
|
|
397
416
|
options_: t,
|
|
398
|
-
make_:
|
|
399
|
-
extend_:
|
|
417
|
+
make_: gi,
|
|
418
|
+
extend_: yi
|
|
400
419
|
};
|
|
401
420
|
}
|
|
402
|
-
function
|
|
421
|
+
function gi(e, t, i, n) {
|
|
403
422
|
var r;
|
|
404
423
|
if ((r = this.options_) != null && r.bound)
|
|
405
424
|
return this.extend_(e, t, i, !1) === null ? 0 : 1;
|
|
@@ -407,19 +426,19 @@ function yi(e, t, i, n) {
|
|
|
407
426
|
return this.extend_(e, t, i, !1) === null ? 0 : 2;
|
|
408
427
|
if (kt(i.value))
|
|
409
428
|
return 1;
|
|
410
|
-
var a =
|
|
411
|
-
return
|
|
429
|
+
var a = an(e, this, t, i, !1);
|
|
430
|
+
return V(n, t, a), 2;
|
|
412
431
|
}
|
|
413
|
-
function
|
|
414
|
-
var r =
|
|
432
|
+
function yi(e, t, i, n) {
|
|
433
|
+
var r = an(e, this, t, i);
|
|
415
434
|
return e.defineProperty_(t, r, n);
|
|
416
435
|
}
|
|
417
|
-
function
|
|
436
|
+
function Si(e, t, i, n) {
|
|
418
437
|
t.annotationType_, n.value;
|
|
419
438
|
}
|
|
420
|
-
function
|
|
439
|
+
function an(e, t, i, n, r) {
|
|
421
440
|
var a, o, s, u, l, c, h;
|
|
422
|
-
r === void 0 && (r = d.safeDescriptors),
|
|
441
|
+
r === void 0 && (r = d.safeDescriptors), Si(e, t, i, n);
|
|
423
442
|
var _ = n.value;
|
|
424
443
|
if ((a = t.options_) != null && a.bound) {
|
|
425
444
|
var j;
|
|
@@ -443,36 +462,36 @@ function sn(e, t, i, n, r) {
|
|
|
443
462
|
writable: !r
|
|
444
463
|
};
|
|
445
464
|
}
|
|
446
|
-
function
|
|
465
|
+
function on(e, t) {
|
|
447
466
|
return {
|
|
448
467
|
annotationType_: e,
|
|
449
468
|
options_: t,
|
|
450
|
-
make_:
|
|
451
|
-
extend_:
|
|
469
|
+
make_: Ni,
|
|
470
|
+
extend_: Oi
|
|
452
471
|
};
|
|
453
472
|
}
|
|
454
|
-
function
|
|
473
|
+
function Ni(e, t, i, n) {
|
|
455
474
|
var r;
|
|
456
475
|
if (n === e.target_)
|
|
457
476
|
return this.extend_(e, t, i, !1) === null ? 0 : 2;
|
|
458
|
-
if ((r = this.options_) != null && r.bound && (!
|
|
477
|
+
if ((r = this.options_) != null && r.bound && (!M(e.target_, t) || !Be(e.target_[t])) && this.extend_(e, t, i, !1) === null)
|
|
459
478
|
return 0;
|
|
460
|
-
if (
|
|
479
|
+
if (Be(i.value))
|
|
461
480
|
return 1;
|
|
462
|
-
var a =
|
|
463
|
-
return
|
|
481
|
+
var a = sn(e, this, t, i, !1, !1);
|
|
482
|
+
return V(n, t, a), 2;
|
|
464
483
|
}
|
|
465
|
-
function
|
|
466
|
-
var r, a =
|
|
484
|
+
function Oi(e, t, i, n) {
|
|
485
|
+
var r, a = sn(e, this, t, i, (r = this.options_) == null ? void 0 : r.bound);
|
|
467
486
|
return e.defineProperty_(t, a, n);
|
|
468
487
|
}
|
|
469
|
-
function
|
|
488
|
+
function Ai(e, t, i, n) {
|
|
470
489
|
t.annotationType_, n.value;
|
|
471
490
|
}
|
|
472
|
-
function
|
|
473
|
-
a === void 0 && (a = d.safeDescriptors),
|
|
491
|
+
function sn(e, t, i, n, r, a) {
|
|
492
|
+
a === void 0 && (a = d.safeDescriptors), Ai(e, t, i, n);
|
|
474
493
|
var o = n.value;
|
|
475
|
-
if (
|
|
494
|
+
if (Be(o) || (o = he(o)), r) {
|
|
476
495
|
var s;
|
|
477
496
|
o = o.bind((s = e.proxy_) != null ? s : e.target_), o.isMobXFlow = !0;
|
|
478
497
|
}
|
|
@@ -488,54 +507,54 @@ function ln(e, t, i, n, r, a) {
|
|
|
488
507
|
writable: !a
|
|
489
508
|
};
|
|
490
509
|
}
|
|
491
|
-
function
|
|
510
|
+
function _t(e, t) {
|
|
492
511
|
return {
|
|
493
512
|
annotationType_: e,
|
|
494
513
|
options_: t,
|
|
495
|
-
make_:
|
|
496
|
-
extend_:
|
|
514
|
+
make_: wi,
|
|
515
|
+
extend_: Fi
|
|
497
516
|
};
|
|
498
517
|
}
|
|
499
|
-
function
|
|
518
|
+
function wi(e, t, i) {
|
|
500
519
|
return this.extend_(e, t, i, !1) === null ? 0 : 1;
|
|
501
520
|
}
|
|
502
|
-
function
|
|
503
|
-
return
|
|
521
|
+
function Fi(e, t, i, n) {
|
|
522
|
+
return Ei(e, this, t, i), e.defineComputedProperty_(t, fe({}, this.options_, {
|
|
504
523
|
get: i.get,
|
|
505
524
|
set: i.set
|
|
506
525
|
}), n);
|
|
507
526
|
}
|
|
508
|
-
function
|
|
527
|
+
function Ei(e, t, i, n) {
|
|
509
528
|
t.annotationType_, n.get;
|
|
510
529
|
}
|
|
511
530
|
function qe(e, t) {
|
|
512
531
|
return {
|
|
513
532
|
annotationType_: e,
|
|
514
533
|
options_: t,
|
|
515
|
-
make_:
|
|
516
|
-
extend_:
|
|
534
|
+
make_: Ci,
|
|
535
|
+
extend_: Ti
|
|
517
536
|
};
|
|
518
537
|
}
|
|
519
|
-
function
|
|
538
|
+
function Ci(e, t, i) {
|
|
520
539
|
return this.extend_(e, t, i, !1) === null ? 0 : 1;
|
|
521
540
|
}
|
|
522
|
-
function
|
|
541
|
+
function Ti(e, t, i, n) {
|
|
523
542
|
var r, a;
|
|
524
543
|
return Pi(e, this), e.defineObservableProperty_(t, i.value, (r = (a = this.options_) == null ? void 0 : a.enhancer) != null ? r : ne, n);
|
|
525
544
|
}
|
|
526
545
|
function Pi(e, t, i, n) {
|
|
527
546
|
t.annotationType_;
|
|
528
547
|
}
|
|
529
|
-
var
|
|
530
|
-
function
|
|
548
|
+
var Di = "true", ji = /* @__PURE__ */ un();
|
|
549
|
+
function un(e) {
|
|
531
550
|
return {
|
|
532
|
-
annotationType_:
|
|
551
|
+
annotationType_: Di,
|
|
533
552
|
options_: e,
|
|
534
|
-
make_:
|
|
553
|
+
make_: xi,
|
|
535
554
|
extend_: Vi
|
|
536
555
|
};
|
|
537
556
|
}
|
|
538
|
-
function
|
|
557
|
+
function xi(e, t, i, n) {
|
|
539
558
|
var r, a;
|
|
540
559
|
if (i.get)
|
|
541
560
|
return We.make_(e, t, i, n);
|
|
@@ -544,14 +563,14 @@ function Ri(e, t, i, n) {
|
|
|
544
563
|
return n === e.target_ ? e.defineProperty_(t, {
|
|
545
564
|
configurable: d.safeDescriptors ? e.isPlainObject_ : !0,
|
|
546
565
|
set: o
|
|
547
|
-
}) === null ? 0 : 2 : (
|
|
566
|
+
}) === null ? 0 : 2 : (V(n, t, {
|
|
548
567
|
configurable: !0,
|
|
549
568
|
set: o
|
|
550
569
|
}), 2);
|
|
551
570
|
}
|
|
552
571
|
if (n !== e.target_ && typeof i.value == "function") {
|
|
553
572
|
var s;
|
|
554
|
-
if (
|
|
573
|
+
if (Qt(i.value)) {
|
|
555
574
|
var u, l = (u = this.options_) != null && u.autoBind ? he.bound : he;
|
|
556
575
|
return l.make_(e, t, i, n);
|
|
557
576
|
}
|
|
@@ -581,80 +600,80 @@ function Vi(e, t, i, n) {
|
|
|
581
600
|
var s = ((a = this.options_) == null ? void 0 : a.deep) === !1 ? b.ref : b;
|
|
582
601
|
return s.extend_(e, t, i, n);
|
|
583
602
|
}
|
|
584
|
-
var
|
|
603
|
+
var Ri = "observable", Ii = "observable.ref", Bi = "observable.shallow", Li = "observable.struct", ln = {
|
|
585
604
|
deep: !0,
|
|
586
605
|
name: void 0,
|
|
587
606
|
defaultDecorator: void 0,
|
|
588
607
|
proxy: !0
|
|
589
608
|
};
|
|
590
|
-
Object.freeze(
|
|
609
|
+
Object.freeze(ln);
|
|
591
610
|
function Ee(e) {
|
|
592
|
-
return e ||
|
|
611
|
+
return e || ln;
|
|
593
612
|
}
|
|
594
|
-
var
|
|
595
|
-
enhancer:
|
|
596
|
-
}),
|
|
613
|
+
var dn = /* @__PURE__ */ qe(Ri), Mi = /* @__PURE__ */ qe(Ii, {
|
|
614
|
+
enhancer: Ke
|
|
615
|
+
}), Ui = /* @__PURE__ */ qe(Bi, {
|
|
616
|
+
enhancer: _i
|
|
617
|
+
}), Gi = /* @__PURE__ */ qe(Li, {
|
|
597
618
|
enhancer: pi
|
|
598
|
-
}),
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
function Fe(e) {
|
|
602
|
-
return e.deep === !0 ? ne : e.deep === !1 ? ze : zi(e.defaultDecorator);
|
|
619
|
+
}), cn = /* @__PURE__ */ P(dn);
|
|
620
|
+
function Ce(e) {
|
|
621
|
+
return e.deep === !0 ? ne : e.deep === !1 ? Ke : zi(e.defaultDecorator);
|
|
603
622
|
}
|
|
604
|
-
function
|
|
623
|
+
function $i(e) {
|
|
605
624
|
var t;
|
|
606
|
-
return e ? (t = e.defaultDecorator) != null ? t :
|
|
625
|
+
return e ? (t = e.defaultDecorator) != null ? t : un(e) : void 0;
|
|
607
626
|
}
|
|
608
627
|
function zi(e) {
|
|
609
628
|
var t, i;
|
|
610
629
|
return e && (t = (i = e.options_) == null ? void 0 : i.enhancer) != null ? t : ne;
|
|
611
630
|
}
|
|
612
|
-
function
|
|
613
|
-
if (
|
|
614
|
-
be(e, t,
|
|
631
|
+
function fn(e, t, i) {
|
|
632
|
+
if (K(t)) {
|
|
633
|
+
be(e, t, dn);
|
|
615
634
|
return;
|
|
616
635
|
}
|
|
617
|
-
return
|
|
636
|
+
return xn(e) ? e : R(e) ? b.object(e, t, i) : Array.isArray(e) ? b.array(e, t) : re(e) ? b.map(e, t) : ke(e) ? b.set(e, t) : typeof e == "object" && e !== null ? e : b.box(e, t);
|
|
618
637
|
}
|
|
619
|
-
Object.assign(
|
|
620
|
-
var
|
|
638
|
+
Object.assign(fn, cn);
|
|
639
|
+
var Ki = {
|
|
621
640
|
box: function(t, i) {
|
|
622
641
|
var n = Ee(i);
|
|
623
|
-
return new te(t,
|
|
642
|
+
return new te(t, Ce(n), n.name, !0, n.equals);
|
|
624
643
|
},
|
|
625
644
|
array: function(t, i) {
|
|
626
645
|
var n = Ee(i);
|
|
627
|
-
return (d.useProxies === !1 || n.proxy === !1 ?
|
|
646
|
+
return (d.useProxies === !1 || n.proxy === !1 ? Br : Cr)(t, Ce(n), n.name);
|
|
628
647
|
},
|
|
629
648
|
map: function(t, i) {
|
|
630
649
|
var n = Ee(i);
|
|
631
|
-
return new
|
|
650
|
+
return new Bn(t, Ce(n), n.name);
|
|
632
651
|
},
|
|
633
652
|
set: function(t, i) {
|
|
634
653
|
var n = Ee(i);
|
|
635
|
-
return new
|
|
654
|
+
return new Un(t, Ce(n), n.name);
|
|
636
655
|
},
|
|
637
656
|
object: function(t, i, n) {
|
|
638
|
-
return
|
|
657
|
+
return Dn(d.useProxies === !1 || (n == null ? void 0 : n.proxy) === !1 ? Je({}, n) : Ar({}, n), t, i);
|
|
639
658
|
},
|
|
640
|
-
ref: /* @__PURE__ */
|
|
641
|
-
shallow: /* @__PURE__ */
|
|
642
|
-
deep:
|
|
643
|
-
struct: /* @__PURE__ */
|
|
644
|
-
}, b = /* @__PURE__ */
|
|
645
|
-
equals:
|
|
659
|
+
ref: /* @__PURE__ */ P(Mi),
|
|
660
|
+
shallow: /* @__PURE__ */ P(Ui),
|
|
661
|
+
deep: cn,
|
|
662
|
+
struct: /* @__PURE__ */ P(Gi)
|
|
663
|
+
}, b = /* @__PURE__ */ oi(fn, Ki), vn = "computed", qi = "computed.struct", mn = /* @__PURE__ */ _t(vn), Wi = /* @__PURE__ */ _t(qi, {
|
|
664
|
+
equals: xe.structural
|
|
646
665
|
}), We = function(t, i) {
|
|
647
|
-
if (
|
|
648
|
-
return be(t, i,
|
|
649
|
-
if (
|
|
650
|
-
return
|
|
651
|
-
var n =
|
|
666
|
+
if (K(i))
|
|
667
|
+
return be(t, i, mn);
|
|
668
|
+
if (R(t))
|
|
669
|
+
return P(_t(vn, t));
|
|
670
|
+
var n = R(i) ? i : {};
|
|
652
671
|
return n.get = t, n.name || (n.name = t.name || ""), new ve(n);
|
|
653
672
|
};
|
|
654
|
-
Object.assign(We,
|
|
655
|
-
We.struct = /* @__PURE__ */
|
|
656
|
-
var Pt,
|
|
657
|
-
}, "name")) == null ? void 0 :
|
|
673
|
+
Object.assign(We, mn);
|
|
674
|
+
We.struct = /* @__PURE__ */ P(Wi);
|
|
675
|
+
var Pt, Dt, Ve = 0, Hi = 1, Xi = (Pt = (Dt = /* @__PURE__ */ je(function() {
|
|
676
|
+
}, "name")) == null ? void 0 : Dt.configurable) != null ? Pt : !1, jt = {
|
|
658
677
|
value: "action",
|
|
659
678
|
configurable: !0,
|
|
660
679
|
writable: !1,
|
|
@@ -663,41 +682,41 @@ var Pt, jt, Ve = 0, Xi = 1, Ji = (Pt = (jt = /* @__PURE__ */ xe(function() {
|
|
|
663
682
|
function ie(e, t, i, n) {
|
|
664
683
|
i === void 0 && (i = !1);
|
|
665
684
|
function r() {
|
|
666
|
-
return
|
|
685
|
+
return Ji(e, i, t, n || this, arguments);
|
|
667
686
|
}
|
|
668
|
-
return r.isMobxAction = !0,
|
|
687
|
+
return r.isMobxAction = !0, Xi && (jt.value = e, Object.defineProperty(r, "name", jt)), r;
|
|
669
688
|
}
|
|
670
|
-
function
|
|
671
|
-
var a =
|
|
689
|
+
function Ji(e, t, i, n, r) {
|
|
690
|
+
var a = Yi(e, t);
|
|
672
691
|
try {
|
|
673
692
|
return i.apply(n, r);
|
|
674
693
|
} catch (o) {
|
|
675
694
|
throw a.error_ = o, o;
|
|
676
695
|
} finally {
|
|
677
|
-
|
|
696
|
+
Qi(a);
|
|
678
697
|
}
|
|
679
698
|
}
|
|
680
|
-
function
|
|
699
|
+
function Yi(e, t, i, n) {
|
|
681
700
|
var r = !1, a = 0, o = d.trackingDerivation, s = !t || !o;
|
|
682
|
-
|
|
701
|
+
S();
|
|
683
702
|
var u = d.allowStateChanges;
|
|
684
703
|
s && (ae(), u = Se(!0));
|
|
685
|
-
var l =
|
|
704
|
+
var l = pt(!0), c = {
|
|
686
705
|
runAsAction_: s,
|
|
687
706
|
prevDerivation_: o,
|
|
688
707
|
prevAllowStateChanges_: u,
|
|
689
708
|
prevAllowStateReads_: l,
|
|
690
709
|
notifySpy_: r,
|
|
691
710
|
startTime_: a,
|
|
692
|
-
actionId_:
|
|
711
|
+
actionId_: Hi++,
|
|
693
712
|
parentActionId_: Ve
|
|
694
713
|
};
|
|
695
714
|
return Ve = c.actionId_, c;
|
|
696
715
|
}
|
|
697
|
-
function
|
|
698
|
-
Ve !== e.actionId_ && m(30), Ve = e.parentActionId_, e.error_ !== void 0 && (d.suppressReactionErrors = !0), Ne(e.prevAllowStateChanges_), le(e.prevAllowStateReads_),
|
|
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_), N(), e.runAsAction_ && U(e.prevDerivation_), d.suppressReactionErrors = !1;
|
|
699
718
|
}
|
|
700
|
-
function
|
|
719
|
+
function Zi(e, t) {
|
|
701
720
|
var i = Se(e);
|
|
702
721
|
try {
|
|
703
722
|
return t();
|
|
@@ -712,13 +731,13 @@ function Se(e) {
|
|
|
712
731
|
function Ne(e) {
|
|
713
732
|
d.allowStateChanges = e;
|
|
714
733
|
}
|
|
715
|
-
var
|
|
716
|
-
|
|
734
|
+
var hn;
|
|
735
|
+
hn = Symbol.toPrimitive;
|
|
717
736
|
var te = /* @__PURE__ */ function(e) {
|
|
718
|
-
|
|
737
|
+
nn(t, e);
|
|
719
738
|
function t(n, r, a, o, s) {
|
|
720
739
|
var u;
|
|
721
|
-
return a === void 0 && (a = "ObservableValue"), s === void 0 && (s =
|
|
740
|
+
return a === void 0 && (a = "ObservableValue"), s === void 0 && (s = xe.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;
|
|
722
741
|
}
|
|
723
742
|
var i = t.prototype;
|
|
724
743
|
return i.dehanceValue = function(r) {
|
|
@@ -729,7 +748,7 @@ var te = /* @__PURE__ */ function(e) {
|
|
|
729
748
|
if (O(this)) {
|
|
730
749
|
var a = A(this, {
|
|
731
750
|
object: this,
|
|
732
|
-
type:
|
|
751
|
+
type: D,
|
|
733
752
|
newValue: r
|
|
734
753
|
});
|
|
735
754
|
if (!a)
|
|
@@ -739,8 +758,8 @@ var te = /* @__PURE__ */ function(e) {
|
|
|
739
758
|
return r = this.enhancer(r, this.value_, this.name_), this.equals(this.value_, r) ? d.UNCHANGED : r;
|
|
740
759
|
}, i.setNewValue_ = function(r) {
|
|
741
760
|
var a = this.value_;
|
|
742
|
-
this.value_ = r, this.reportChanged(), w(this) &&
|
|
743
|
-
type:
|
|
761
|
+
this.value_ = r, this.reportChanged(), w(this) && F(this, {
|
|
762
|
+
type: D,
|
|
744
763
|
object: this,
|
|
745
764
|
newValue: r,
|
|
746
765
|
oldValue: a
|
|
@@ -754,7 +773,7 @@ var te = /* @__PURE__ */ function(e) {
|
|
|
754
773
|
observableKind: "value",
|
|
755
774
|
debugObjectName: this.name_,
|
|
756
775
|
object: this,
|
|
757
|
-
type:
|
|
776
|
+
type: D,
|
|
758
777
|
newValue: this.value_,
|
|
759
778
|
oldValue: void 0
|
|
760
779
|
}), Ae(this, r);
|
|
@@ -765,19 +784,19 @@ var te = /* @__PURE__ */ function(e) {
|
|
|
765
784
|
}, i.toString = function() {
|
|
766
785
|
return this.name_ + "[" + this.value_ + "]";
|
|
767
786
|
}, i.valueOf = function() {
|
|
768
|
-
return
|
|
769
|
-
}, i[
|
|
787
|
+
return tn(this.get());
|
|
788
|
+
}, i[hn] = function() {
|
|
770
789
|
return this.valueOf();
|
|
771
790
|
}, t;
|
|
772
|
-
}(
|
|
773
|
-
|
|
791
|
+
}(ge), _n;
|
|
792
|
+
_n = Symbol.toPrimitive;
|
|
774
793
|
var ve = /* @__PURE__ */ function() {
|
|
775
794
|
function e(i) {
|
|
776
|
-
this.dependenciesState_ = v.NOT_TRACKING_, this.observing_ = [], this.newObserving_ = null, this.isBeingObserved_ = !1, this.isPendingUnobservation_ = !1, this.observers_ = /* @__PURE__ */ new Set(), this.diffValue_ = 0, this.runId_ = 0, this.lastAccessedBy_ = 0, this.lowestObserverState_ = v.UP_TO_DATE_, this.unboundDepsCount_ = 0, this.value_ = new
|
|
795
|
+
this.dependenciesState_ = v.NOT_TRACKING_, this.observing_ = [], this.newObserving_ = null, this.isBeingObserved_ = !1, this.isPendingUnobservation_ = !1, this.observers_ = /* @__PURE__ */ new Set(), this.diffValue_ = 0, this.runId_ = 0, this.lastAccessedBy_ = 0, this.lowestObserverState_ = v.UP_TO_DATE_, this.unboundDepsCount_ = 0, this.value_ = new Re(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_ = z.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_ = ie("ComputedValue-setter", i.set)), this.equals_ = i.equals || (i.compareStructural || i.struct ? xe.structural : xe.default), this.scope_ = i.context, this.requiresReaction_ = i.requiresReaction, this.keepAlive_ = !!i.keepAlive;
|
|
777
796
|
}
|
|
778
797
|
var t = e.prototype;
|
|
779
798
|
return t.onBecomeStale_ = function() {
|
|
780
|
-
|
|
799
|
+
ir(this);
|
|
781
800
|
}, t.onBO = function() {
|
|
782
801
|
this.onBOL && this.onBOL.forEach(function(n) {
|
|
783
802
|
return n();
|
|
@@ -789,10 +808,10 @@ var ve = /* @__PURE__ */ function() {
|
|
|
789
808
|
}, t.get = function() {
|
|
790
809
|
if (this.isComputing_ && m(32, this.name_, this.derivation), d.inBatch === 0 && // !globalState.trackingDerivatpion &&
|
|
791
810
|
this.observers_.size === 0 && !this.keepAlive_)
|
|
792
|
-
ut(this) && (this.warnAboutUntrackedRead_(),
|
|
793
|
-
else if (
|
|
811
|
+
ut(this) && (this.warnAboutUntrackedRead_(), S(), this.value_ = this.computeValue_(!1), N());
|
|
812
|
+
else if (Sn(this), ut(this)) {
|
|
794
813
|
var n = d.trackingContext;
|
|
795
|
-
this.keepAlive_ && !n && (d.trackingContext = this), this.trackAndCompute() &&
|
|
814
|
+
this.keepAlive_ && !n && (d.trackingContext = this), this.trackAndCompute() && nr(this), d.trackingContext = n;
|
|
796
815
|
}
|
|
797
816
|
var r = this.value_;
|
|
798
817
|
if (Pe(r))
|
|
@@ -818,32 +837,32 @@ var ve = /* @__PURE__ */ function() {
|
|
|
818
837
|
this.isComputing_ = !0;
|
|
819
838
|
var r = Se(!1), a;
|
|
820
839
|
if (n)
|
|
821
|
-
a =
|
|
840
|
+
a = pn(this, this.derivation, this.scope_);
|
|
822
841
|
else if (d.disableErrorBoundaries === !0)
|
|
823
842
|
a = this.derivation.call(this.scope_);
|
|
824
843
|
else
|
|
825
844
|
try {
|
|
826
845
|
a = this.derivation.call(this.scope_);
|
|
827
846
|
} catch (o) {
|
|
828
|
-
a = new
|
|
847
|
+
a = new Re(o);
|
|
829
848
|
}
|
|
830
849
|
return Ne(r), this.isComputing_ = !1, a;
|
|
831
850
|
}, t.suspend_ = function() {
|
|
832
851
|
this.keepAlive_ || (lt(this), this.value_ = void 0);
|
|
833
852
|
}, t.observe_ = function(n, r) {
|
|
834
853
|
var a = this, o = !0, s = void 0;
|
|
835
|
-
return
|
|
854
|
+
return vr(function() {
|
|
836
855
|
var u = a.get();
|
|
837
856
|
if (!o || r) {
|
|
838
857
|
var l = ae();
|
|
839
858
|
n({
|
|
840
859
|
observableKind: "computed",
|
|
841
860
|
debugObjectName: a.name_,
|
|
842
|
-
type:
|
|
861
|
+
type: D,
|
|
843
862
|
object: a,
|
|
844
863
|
newValue: u,
|
|
845
864
|
oldValue: s
|
|
846
|
-
}),
|
|
865
|
+
}), U(l);
|
|
847
866
|
}
|
|
848
867
|
o = !1, s = u;
|
|
849
868
|
});
|
|
@@ -851,23 +870,23 @@ var ve = /* @__PURE__ */ function() {
|
|
|
851
870
|
}, t.toString = function() {
|
|
852
871
|
return this.name_ + "[" + this.derivation.toString() + "]";
|
|
853
872
|
}, t.valueOf = function() {
|
|
854
|
-
return
|
|
855
|
-
}, t[
|
|
873
|
+
return tn(this.get());
|
|
874
|
+
}, t[_n] = function() {
|
|
856
875
|
return this.valueOf();
|
|
857
876
|
}, e;
|
|
858
877
|
}(), He = /* @__PURE__ */ W("ComputedValue", ve), v;
|
|
859
878
|
(function(e) {
|
|
860
879
|
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_";
|
|
861
880
|
})(v || (v = {}));
|
|
862
|
-
var
|
|
881
|
+
var z;
|
|
863
882
|
(function(e) {
|
|
864
883
|
e[e.NONE = 0] = "NONE", e[e.LOG = 1] = "LOG", e[e.BREAK = 2] = "BREAK";
|
|
865
|
-
})(
|
|
866
|
-
var
|
|
884
|
+
})(z || (z = {}));
|
|
885
|
+
var Re = function(t) {
|
|
867
886
|
this.cause = void 0, this.cause = t;
|
|
868
887
|
};
|
|
869
888
|
function Pe(e) {
|
|
870
|
-
return e instanceof
|
|
889
|
+
return e instanceof Re;
|
|
871
890
|
}
|
|
872
891
|
function ut(e) {
|
|
873
892
|
switch (e.dependenciesState_) {
|
|
@@ -877,7 +896,7 @@ function ut(e) {
|
|
|
877
896
|
case v.STALE_:
|
|
878
897
|
return !0;
|
|
879
898
|
case v.POSSIBLY_STALE_: {
|
|
880
|
-
for (var t =
|
|
899
|
+
for (var t = pt(!0), i = ae(), n = e.observing_, r = n.length, a = 0; a < r; a++) {
|
|
881
900
|
var o = n[a];
|
|
882
901
|
if (He(o)) {
|
|
883
902
|
if (d.disableErrorBoundaries)
|
|
@@ -886,19 +905,19 @@ function ut(e) {
|
|
|
886
905
|
try {
|
|
887
906
|
o.get();
|
|
888
907
|
} catch (s) {
|
|
889
|
-
return
|
|
908
|
+
return U(i), le(t), !0;
|
|
890
909
|
}
|
|
891
910
|
if (e.dependenciesState_ === v.STALE_)
|
|
892
|
-
return
|
|
911
|
+
return U(i), le(t), !0;
|
|
893
912
|
}
|
|
894
913
|
}
|
|
895
|
-
return
|
|
914
|
+
return bn(e), U(i), le(t), !1;
|
|
896
915
|
}
|
|
897
916
|
}
|
|
898
917
|
}
|
|
899
|
-
function
|
|
900
|
-
var n =
|
|
901
|
-
|
|
918
|
+
function pn(e, t, i) {
|
|
919
|
+
var n = pt(!0);
|
|
920
|
+
bn(e), e.newObserving_ = new Array(e.observing_.length + 100), e.unboundDepsCount_ = 0, e.runId_ = ++d.runId;
|
|
902
921
|
var r = d.trackingDerivation;
|
|
903
922
|
d.trackingDerivation = e, d.inBatch++;
|
|
904
923
|
var a;
|
|
@@ -908,22 +927,22 @@ function bn(e, t, i) {
|
|
|
908
927
|
try {
|
|
909
928
|
a = t.call(i);
|
|
910
929
|
} catch (o) {
|
|
911
|
-
a = new
|
|
930
|
+
a = new Re(o);
|
|
912
931
|
}
|
|
913
|
-
return d.inBatch--, d.trackingDerivation = r,
|
|
932
|
+
return d.inBatch--, d.trackingDerivation = r, er(e), le(n), a;
|
|
914
933
|
}
|
|
915
|
-
function
|
|
934
|
+
function er(e) {
|
|
916
935
|
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++) {
|
|
917
936
|
var s = i[o];
|
|
918
937
|
s.diffValue_ === 0 && (s.diffValue_ = 1, r !== o && (i[r] = s), r++), s.dependenciesState_ > n && (n = s.dependenciesState_);
|
|
919
938
|
}
|
|
920
939
|
for (i.length = r, e.newObserving_ = null, a = t.length; a--; ) {
|
|
921
940
|
var u = t[a];
|
|
922
|
-
u.diffValue_ === 0 &&
|
|
941
|
+
u.diffValue_ === 0 && gn(u, e), u.diffValue_ = 0;
|
|
923
942
|
}
|
|
924
943
|
for (; r--; ) {
|
|
925
944
|
var l = i[r];
|
|
926
|
-
l.diffValue_ === 1 && (l.diffValue_ = 0,
|
|
945
|
+
l.diffValue_ === 1 && (l.diffValue_ = 0, tr(l, e));
|
|
927
946
|
}
|
|
928
947
|
n !== v.UP_TO_DATE_ && (e.dependenciesState_ = n, e.onBecomeStale_());
|
|
929
948
|
}
|
|
@@ -931,7 +950,7 @@ function lt(e) {
|
|
|
931
950
|
var t = e.observing_;
|
|
932
951
|
e.observing_ = [];
|
|
933
952
|
for (var i = t.length; i--; )
|
|
934
|
-
|
|
953
|
+
gn(t[i], e);
|
|
935
954
|
e.dependenciesState_ = v.NOT_TRACKING_;
|
|
936
955
|
}
|
|
937
956
|
function kn(e) {
|
|
@@ -939,24 +958,24 @@ function kn(e) {
|
|
|
939
958
|
try {
|
|
940
959
|
return e();
|
|
941
960
|
} finally {
|
|
942
|
-
|
|
961
|
+
U(t);
|
|
943
962
|
}
|
|
944
963
|
}
|
|
945
964
|
function ae() {
|
|
946
965
|
var e = d.trackingDerivation;
|
|
947
966
|
return d.trackingDerivation = null, e;
|
|
948
967
|
}
|
|
949
|
-
function
|
|
968
|
+
function U(e) {
|
|
950
969
|
d.trackingDerivation = e;
|
|
951
970
|
}
|
|
952
|
-
function
|
|
971
|
+
function pt(e) {
|
|
953
972
|
var t = d.allowStateReads;
|
|
954
973
|
return d.allowStateReads = e, t;
|
|
955
974
|
}
|
|
956
975
|
function le(e) {
|
|
957
976
|
d.allowStateReads = e;
|
|
958
977
|
}
|
|
959
|
-
function
|
|
978
|
+
function bn(e) {
|
|
960
979
|
if (e.dependenciesState_ !== v.UP_TO_DATE_) {
|
|
961
980
|
e.dependenciesState_ = v.UP_TO_DATE_;
|
|
962
981
|
for (var t = e.observing_, i = t.length; i--; )
|
|
@@ -966,26 +985,26 @@ function yn(e) {
|
|
|
966
985
|
var Ze = function() {
|
|
967
986
|
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;
|
|
968
987
|
}, et = !0, d = /* @__PURE__ */ function() {
|
|
969
|
-
var e = /* @__PURE__ */
|
|
988
|
+
var e = /* @__PURE__ */ Ht();
|
|
970
989
|
return e.__mobxInstanceCount > 0 && !e.__mobxGlobals && (et = !1), e.__mobxGlobals && e.__mobxGlobals.version !== new Ze().version && (et = !1), et ? e.__mobxGlobals ? (e.__mobxInstanceCount += 1, e.__mobxGlobals.UNCHANGED || (e.__mobxGlobals.UNCHANGED = {}), e.__mobxGlobals) : (e.__mobxInstanceCount = 1, e.__mobxGlobals = /* @__PURE__ */ new Ze()) : (setTimeout(function() {
|
|
971
990
|
m(35);
|
|
972
991
|
}, 1), new Ze());
|
|
973
992
|
}();
|
|
974
|
-
function
|
|
993
|
+
function tr(e, t) {
|
|
975
994
|
e.observers_.add(t), e.lowestObserverState_ > t.dependenciesState_ && (e.lowestObserverState_ = t.dependenciesState_);
|
|
976
995
|
}
|
|
977
|
-
function
|
|
978
|
-
e.observers_.delete(t), e.observers_.size === 0 &&
|
|
996
|
+
function gn(e, t) {
|
|
997
|
+
e.observers_.delete(t), e.observers_.size === 0 && yn(e);
|
|
979
998
|
}
|
|
980
|
-
function
|
|
999
|
+
function yn(e) {
|
|
981
1000
|
e.isPendingUnobservation_ === !1 && (e.isPendingUnobservation_ = !0, d.pendingUnobservations.push(e));
|
|
982
1001
|
}
|
|
983
|
-
function
|
|
1002
|
+
function S() {
|
|
984
1003
|
d.inBatch++;
|
|
985
1004
|
}
|
|
986
|
-
function
|
|
1005
|
+
function N() {
|
|
987
1006
|
if (--d.inBatch === 0) {
|
|
988
|
-
|
|
1007
|
+
On();
|
|
989
1008
|
for (var e = d.pendingUnobservations, t = 0; t < e.length; t++) {
|
|
990
1009
|
var i = e[t];
|
|
991
1010
|
i.isPendingUnobservation_ = !1, i.observers_.size === 0 && (i.isBeingObserved_ && (i.isBeingObserved_ = !1, i.onBUO()), i instanceof ve && i.suspend_());
|
|
@@ -993,39 +1012,39 @@ function S() {
|
|
|
993
1012
|
d.pendingUnobservations = [];
|
|
994
1013
|
}
|
|
995
1014
|
}
|
|
996
|
-
function
|
|
1015
|
+
function Sn(e) {
|
|
997
1016
|
var t = d.trackingDerivation;
|
|
998
|
-
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 &&
|
|
1017
|
+
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 && yn(e), !1);
|
|
999
1018
|
}
|
|
1000
|
-
function
|
|
1019
|
+
function Nn(e) {
|
|
1001
1020
|
e.lowestObserverState_ !== v.STALE_ && (e.lowestObserverState_ = v.STALE_, e.observers_.forEach(function(t) {
|
|
1002
1021
|
t.dependenciesState_ === v.UP_TO_DATE_ && t.onBecomeStale_(), t.dependenciesState_ = v.STALE_;
|
|
1003
1022
|
}));
|
|
1004
1023
|
}
|
|
1005
|
-
function
|
|
1024
|
+
function nr(e) {
|
|
1006
1025
|
e.lowestObserverState_ !== v.STALE_ && (e.lowestObserverState_ = v.STALE_, e.observers_.forEach(function(t) {
|
|
1007
1026
|
t.dependenciesState_ === v.POSSIBLY_STALE_ ? t.dependenciesState_ = v.STALE_ : t.dependenciesState_ === v.UP_TO_DATE_ && (e.lowestObserverState_ = v.UP_TO_DATE_);
|
|
1008
1027
|
}));
|
|
1009
1028
|
}
|
|
1010
|
-
function
|
|
1029
|
+
function ir(e) {
|
|
1011
1030
|
e.lowestObserverState_ === v.UP_TO_DATE_ && (e.lowestObserverState_ = v.POSSIBLY_STALE_, e.observers_.forEach(function(t) {
|
|
1012
1031
|
t.dependenciesState_ === v.UP_TO_DATE_ && (t.dependenciesState_ = v.POSSIBLY_STALE_, t.onBecomeStale_());
|
|
1013
1032
|
}));
|
|
1014
1033
|
}
|
|
1015
1034
|
var dt = /* @__PURE__ */ function() {
|
|
1016
1035
|
function e(i, n, r, a) {
|
|
1017
|
-
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_ =
|
|
1036
|
+
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_ = z.NONE, this.name_ = i, this.onInvalidate_ = n, this.errorHandler_ = r, this.requiresObservable_ = a;
|
|
1018
1037
|
}
|
|
1019
1038
|
var t = e.prototype;
|
|
1020
1039
|
return t.onBecomeStale_ = function() {
|
|
1021
1040
|
this.schedule_();
|
|
1022
1041
|
}, t.schedule_ = function() {
|
|
1023
|
-
this.isScheduled_ || (this.isScheduled_ = !0, d.pendingReactions.push(this),
|
|
1042
|
+
this.isScheduled_ || (this.isScheduled_ = !0, d.pendingReactions.push(this), On());
|
|
1024
1043
|
}, t.isScheduled = function() {
|
|
1025
1044
|
return this.isScheduled_;
|
|
1026
1045
|
}, t.runReaction_ = function() {
|
|
1027
1046
|
if (!this.isDisposed_) {
|
|
1028
|
-
|
|
1047
|
+
S(), this.isScheduled_ = !1;
|
|
1029
1048
|
var n = d.trackingContext;
|
|
1030
1049
|
if (d.trackingContext = this, ut(this)) {
|
|
1031
1050
|
this.isTrackPending_ = !0;
|
|
@@ -1035,15 +1054,15 @@ var dt = /* @__PURE__ */ function() {
|
|
|
1035
1054
|
this.reportExceptionInDerivation_(r);
|
|
1036
1055
|
}
|
|
1037
1056
|
}
|
|
1038
|
-
d.trackingContext = n,
|
|
1057
|
+
d.trackingContext = n, N();
|
|
1039
1058
|
}
|
|
1040
1059
|
}, t.track = function(n) {
|
|
1041
1060
|
if (!this.isDisposed_) {
|
|
1042
|
-
|
|
1061
|
+
S(), this.isRunning_ = !0;
|
|
1043
1062
|
var r = d.trackingContext;
|
|
1044
1063
|
d.trackingContext = this;
|
|
1045
|
-
var a =
|
|
1046
|
-
d.trackingContext = r, this.isRunning_ = !1, this.isTrackPending_ = !1, this.isDisposed_ && lt(this), Pe(a) && this.reportExceptionInDerivation_(a.cause),
|
|
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), N();
|
|
1047
1066
|
}
|
|
1048
1067
|
}, t.reportExceptionInDerivation_ = function(n) {
|
|
1049
1068
|
var r = this;
|
|
@@ -1058,81 +1077,81 @@ var dt = /* @__PURE__ */ function() {
|
|
|
1058
1077
|
return o(n, r);
|
|
1059
1078
|
});
|
|
1060
1079
|
}, t.dispose = function() {
|
|
1061
|
-
this.isDisposed_ || (this.isDisposed_ = !0, this.isRunning_ || (
|
|
1080
|
+
this.isDisposed_ || (this.isDisposed_ = !0, this.isRunning_ || (S(), lt(this), N()));
|
|
1062
1081
|
}, t.getDisposer_ = function() {
|
|
1063
1082
|
var n = this.dispose.bind(this);
|
|
1064
1083
|
return n[f] = this, n;
|
|
1065
1084
|
}, t.toString = function() {
|
|
1066
1085
|
return "Reaction[" + this.name_ + "]";
|
|
1067
1086
|
}, t.trace = function(n) {
|
|
1068
|
-
n === void 0 && (n = !1),
|
|
1087
|
+
n === void 0 && (n = !1), Sr(this, n);
|
|
1069
1088
|
}, e;
|
|
1070
|
-
}(),
|
|
1089
|
+
}(), rr = 100, ar = function(t) {
|
|
1071
1090
|
return t();
|
|
1072
1091
|
};
|
|
1073
|
-
function
|
|
1074
|
-
d.inBatch > 0 || d.isRunningReactions || or
|
|
1092
|
+
function On() {
|
|
1093
|
+
d.inBatch > 0 || d.isRunningReactions || ar(or);
|
|
1075
1094
|
}
|
|
1076
|
-
function
|
|
1095
|
+
function or() {
|
|
1077
1096
|
d.isRunningReactions = !0;
|
|
1078
1097
|
for (var e = d.pendingReactions, t = 0; e.length > 0; ) {
|
|
1079
|
-
++t ===
|
|
1098
|
+
++t === rr && (console.error("[mobx] cycle in reaction: " + e[0]), e.splice(0));
|
|
1080
1099
|
for (var i = e.splice(0), n = 0, r = i.length; n < r; n++)
|
|
1081
1100
|
i[n].runReaction_();
|
|
1082
1101
|
}
|
|
1083
1102
|
d.isRunningReactions = !1;
|
|
1084
1103
|
}
|
|
1085
|
-
var
|
|
1104
|
+
var Ie = /* @__PURE__ */ W("Reaction", dt);
|
|
1086
1105
|
function de() {
|
|
1087
1106
|
return !1;
|
|
1088
1107
|
}
|
|
1089
|
-
function
|
|
1108
|
+
function sr(e) {
|
|
1090
1109
|
return console.warn("[mobx.spy] Is a no-op in production builds"), function() {
|
|
1091
1110
|
};
|
|
1092
1111
|
}
|
|
1093
|
-
var
|
|
1112
|
+
var An = "action", ur = "action.bound", wn = "autoAction", lr = "autoAction.bound", dr = "<unnamed action>", Fn = /* @__PURE__ */ ye(An), cr = /* @__PURE__ */ ye(ur, {
|
|
1094
1113
|
bound: !0
|
|
1095
|
-
}),
|
|
1114
|
+
}), En = /* @__PURE__ */ ye(wn, {
|
|
1096
1115
|
autoAction: !0
|
|
1097
|
-
}),
|
|
1116
|
+
}), fr = /* @__PURE__ */ ye(lr, {
|
|
1098
1117
|
autoAction: !0,
|
|
1099
1118
|
bound: !0
|
|
1100
1119
|
});
|
|
1101
|
-
function
|
|
1120
|
+
function Cn(e) {
|
|
1102
1121
|
var t = function(n, r) {
|
|
1103
1122
|
if (E(n))
|
|
1104
|
-
return ie(n.name ||
|
|
1123
|
+
return ie(n.name || dr, n, e);
|
|
1105
1124
|
if (E(r))
|
|
1106
1125
|
return ie(n, r, e);
|
|
1107
|
-
if (
|
|
1108
|
-
return be(n, r, e ?
|
|
1109
|
-
if (
|
|
1110
|
-
return
|
|
1126
|
+
if (K(r))
|
|
1127
|
+
return be(n, r, e ? En : Fn);
|
|
1128
|
+
if (K(n))
|
|
1129
|
+
return P(ye(e ? wn : An, {
|
|
1111
1130
|
name: n,
|
|
1112
1131
|
autoAction: e
|
|
1113
1132
|
}));
|
|
1114
1133
|
};
|
|
1115
1134
|
return t;
|
|
1116
1135
|
}
|
|
1117
|
-
var ee = /* @__PURE__ */
|
|
1136
|
+
var ee = /* @__PURE__ */ Cn(!1);
|
|
1118
1137
|
Object.assign(ee, Fn);
|
|
1119
|
-
var me = /* @__PURE__ */
|
|
1120
|
-
Object.assign(me,
|
|
1121
|
-
ee.bound = /* @__PURE__ */
|
|
1122
|
-
me.bound = /* @__PURE__ */
|
|
1138
|
+
var me = /* @__PURE__ */ Cn(!0);
|
|
1139
|
+
Object.assign(me, En);
|
|
1140
|
+
ee.bound = /* @__PURE__ */ P(cr);
|
|
1141
|
+
me.bound = /* @__PURE__ */ P(fr);
|
|
1123
1142
|
function kt(e) {
|
|
1124
1143
|
return E(e) && e.isMobxAction === !0;
|
|
1125
1144
|
}
|
|
1126
|
-
function
|
|
1145
|
+
function vr(e, t) {
|
|
1127
1146
|
var i, n;
|
|
1128
|
-
t === void 0 && (t =
|
|
1147
|
+
t === void 0 && (t = Xt);
|
|
1129
1148
|
var r = (i = (n = t) == null ? void 0 : n.name) != null ? i : "Autorun", a = !t.scheduler && !t.delay, o;
|
|
1130
1149
|
if (a)
|
|
1131
1150
|
o = new dt(r, function() {
|
|
1132
1151
|
this.track(l);
|
|
1133
1152
|
}, t.onError, t.requiresObservable);
|
|
1134
1153
|
else {
|
|
1135
|
-
var s =
|
|
1154
|
+
var s = hr(t), u = !1;
|
|
1136
1155
|
o = new dt(r, function() {
|
|
1137
1156
|
u || (u = !0, s(function() {
|
|
1138
1157
|
u = !1, o.isDisposed_ || o.track(l);
|
|
@@ -1144,31 +1163,31 @@ function mr(e, t) {
|
|
|
1144
1163
|
}
|
|
1145
1164
|
return o.schedule_(), o.getDisposer_();
|
|
1146
1165
|
}
|
|
1147
|
-
var
|
|
1166
|
+
var mr = function(t) {
|
|
1148
1167
|
return t();
|
|
1149
1168
|
};
|
|
1150
|
-
function
|
|
1169
|
+
function hr(e) {
|
|
1151
1170
|
return e.scheduler ? e.scheduler : e.delay ? function(t) {
|
|
1152
1171
|
return setTimeout(t, e.delay);
|
|
1153
|
-
} :
|
|
1172
|
+
} : mr;
|
|
1154
1173
|
}
|
|
1155
|
-
var
|
|
1156
|
-
function
|
|
1157
|
-
return
|
|
1174
|
+
var _r = "onBO", pr = "onBUO";
|
|
1175
|
+
function kr(e, t, i) {
|
|
1176
|
+
return Pn(_r, e, t, i);
|
|
1158
1177
|
}
|
|
1159
|
-
function
|
|
1160
|
-
return
|
|
1178
|
+
function Tn(e, t, i) {
|
|
1179
|
+
return Pn(pr, e, t, i);
|
|
1161
1180
|
}
|
|
1162
|
-
function
|
|
1181
|
+
function Pn(e, t, i, n) {
|
|
1163
1182
|
var r = typeof n == "function" ? q(t, i) : q(t), a = E(n) ? n : i, o = e + "L";
|
|
1164
1183
|
return r[o] ? r[o].add(a) : r[o] = /* @__PURE__ */ new Set([a]), function() {
|
|
1165
1184
|
var s = r[o];
|
|
1166
1185
|
s && (s.delete(a), s.size === 0 && delete r[o]);
|
|
1167
1186
|
};
|
|
1168
1187
|
}
|
|
1169
|
-
function
|
|
1170
|
-
var r =
|
|
1171
|
-
|
|
1188
|
+
function Dn(e, t, i, n) {
|
|
1189
|
+
var r = di(t), a = Je(e, n)[f];
|
|
1190
|
+
S();
|
|
1172
1191
|
try {
|
|
1173
1192
|
ce(r).forEach(function(o) {
|
|
1174
1193
|
a.extend_(
|
|
@@ -1179,89 +1198,89 @@ function xn(e, t, i, n) {
|
|
|
1179
1198
|
);
|
|
1180
1199
|
});
|
|
1181
1200
|
} finally {
|
|
1182
|
-
|
|
1201
|
+
N();
|
|
1183
1202
|
}
|
|
1184
1203
|
return e;
|
|
1185
1204
|
}
|
|
1186
|
-
var
|
|
1187
|
-
function
|
|
1205
|
+
var br = 0;
|
|
1206
|
+
function jn() {
|
|
1188
1207
|
this.message = "FLOW_CANCELLED";
|
|
1189
1208
|
}
|
|
1190
|
-
|
|
1191
|
-
var
|
|
1209
|
+
jn.prototype = /* @__PURE__ */ Object.create(Error.prototype);
|
|
1210
|
+
var xt = /* @__PURE__ */ on("flow"), gr = /* @__PURE__ */ on("flow.bound", {
|
|
1192
1211
|
bound: !0
|
|
1193
1212
|
}), he = /* @__PURE__ */ Object.assign(function(t, i) {
|
|
1194
|
-
if (
|
|
1195
|
-
return be(t, i,
|
|
1213
|
+
if (K(i))
|
|
1214
|
+
return be(t, i, xt);
|
|
1196
1215
|
var n = t, r = n.name || "<unnamed flow>", a = function() {
|
|
1197
|
-
var s = this, u = arguments, l = ++
|
|
1216
|
+
var s = this, u = arguments, l = ++br, c = ee(r + " - runid: " + l + " - init", n).apply(s, u), h, _ = void 0, j = new Promise(function(X, C) {
|
|
1198
1217
|
var T = 0;
|
|
1199
|
-
h =
|
|
1200
|
-
function we(
|
|
1218
|
+
h = C;
|
|
1219
|
+
function we(g) {
|
|
1201
1220
|
_ = void 0;
|
|
1202
1221
|
var B;
|
|
1203
1222
|
try {
|
|
1204
|
-
B = ee(r + " - runid: " + l + " - yield " + T++, c.next).call(c,
|
|
1205
|
-
} catch (
|
|
1206
|
-
return
|
|
1223
|
+
B = ee(r + " - runid: " + l + " - yield " + T++, c.next).call(c, g);
|
|
1224
|
+
} catch ($) {
|
|
1225
|
+
return C($);
|
|
1207
1226
|
}
|
|
1208
1227
|
se(B);
|
|
1209
1228
|
}
|
|
1210
|
-
function Ye(
|
|
1229
|
+
function Ye(g) {
|
|
1211
1230
|
_ = void 0;
|
|
1212
1231
|
var B;
|
|
1213
1232
|
try {
|
|
1214
|
-
B = ee(r + " - runid: " + l + " - yield " + T++, c.throw).call(c,
|
|
1215
|
-
} catch (
|
|
1216
|
-
return
|
|
1233
|
+
B = ee(r + " - runid: " + l + " - yield " + T++, c.throw).call(c, g);
|
|
1234
|
+
} catch ($) {
|
|
1235
|
+
return C($);
|
|
1217
1236
|
}
|
|
1218
1237
|
se(B);
|
|
1219
1238
|
}
|
|
1220
|
-
function se(
|
|
1221
|
-
if (E(
|
|
1222
|
-
|
|
1239
|
+
function se(g) {
|
|
1240
|
+
if (E(g == null ? void 0 : g.then)) {
|
|
1241
|
+
g.then(se, C);
|
|
1223
1242
|
return;
|
|
1224
1243
|
}
|
|
1225
|
-
return
|
|
1244
|
+
return g.done ? X(g.value) : (_ = Promise.resolve(g.value), _.then(we, Ye));
|
|
1226
1245
|
}
|
|
1227
1246
|
we(void 0);
|
|
1228
1247
|
});
|
|
1229
1248
|
return j.cancel = ee(r + " - runid: " + l + " - cancel", function() {
|
|
1230
1249
|
try {
|
|
1231
1250
|
_ && Vt(_);
|
|
1232
|
-
var X = c.return(void 0),
|
|
1233
|
-
|
|
1251
|
+
var X = c.return(void 0), C = Promise.resolve(X.value);
|
|
1252
|
+
C.then(Y, Y), Vt(C), h(new jn());
|
|
1234
1253
|
} catch (T) {
|
|
1235
1254
|
h(T);
|
|
1236
1255
|
}
|
|
1237
1256
|
}), j;
|
|
1238
1257
|
};
|
|
1239
1258
|
return a.isMobXFlow = !0, a;
|
|
1240
|
-
},
|
|
1241
|
-
he.bound = /* @__PURE__ */
|
|
1259
|
+
}, xt);
|
|
1260
|
+
he.bound = /* @__PURE__ */ P(gr);
|
|
1242
1261
|
function Vt(e) {
|
|
1243
1262
|
E(e.cancel) && e.cancel();
|
|
1244
1263
|
}
|
|
1245
|
-
function
|
|
1264
|
+
function Be(e) {
|
|
1246
1265
|
return (e == null ? void 0 : e.isMobXFlow) === !0;
|
|
1247
1266
|
}
|
|
1248
|
-
function
|
|
1249
|
-
return e ? t !== void 0 ? _e(e) ? e[f].values_.has(t) : !1 : _e(e) || !!e[f] ||
|
|
1267
|
+
function yr(e, t) {
|
|
1268
|
+
return e ? t !== void 0 ? _e(e) ? e[f].values_.has(t) : !1 : _e(e) || !!e[f] || ht(e) || Ie(e) || He(e) : !1;
|
|
1250
1269
|
}
|
|
1251
|
-
function
|
|
1252
|
-
return
|
|
1270
|
+
function xn(e) {
|
|
1271
|
+
return yr(e);
|
|
1253
1272
|
}
|
|
1254
|
-
function
|
|
1273
|
+
function Sr() {
|
|
1255
1274
|
m("trace() is not available in production builds");
|
|
1256
1275
|
for (var e = !1, t = arguments.length, i = new Array(t), n = 0; n < t; n++)
|
|
1257
1276
|
i[n] = arguments[n];
|
|
1258
1277
|
typeof i[i.length - 1] == "boolean" && (e = i.pop());
|
|
1259
|
-
var r =
|
|
1278
|
+
var r = Nr(i);
|
|
1260
1279
|
if (!r)
|
|
1261
1280
|
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");
|
|
1262
|
-
r.isTracing_ ===
|
|
1281
|
+
r.isTracing_ === z.NONE && console.log("[mobx.trace] '" + r.name_ + "' tracing enabled"), r.isTracing_ = e ? z.BREAK : z.LOG;
|
|
1263
1282
|
}
|
|
1264
|
-
function
|
|
1283
|
+
function Nr(e) {
|
|
1265
1284
|
switch (e.length) {
|
|
1266
1285
|
case 0:
|
|
1267
1286
|
return d.trackingDerivation;
|
|
@@ -1272,17 +1291,17 @@ function Or(e) {
|
|
|
1272
1291
|
}
|
|
1273
1292
|
}
|
|
1274
1293
|
function x(e, t) {
|
|
1275
|
-
t === void 0 && (t = void 0),
|
|
1294
|
+
t === void 0 && (t = void 0), S();
|
|
1276
1295
|
try {
|
|
1277
1296
|
return e.apply(t);
|
|
1278
1297
|
} finally {
|
|
1279
|
-
|
|
1298
|
+
N();
|
|
1280
1299
|
}
|
|
1281
1300
|
}
|
|
1282
1301
|
function J(e) {
|
|
1283
1302
|
return e[f];
|
|
1284
1303
|
}
|
|
1285
|
-
var
|
|
1304
|
+
var Or = {
|
|
1286
1305
|
has: function(t, i) {
|
|
1287
1306
|
return J(t).has_(i);
|
|
1288
1307
|
},
|
|
@@ -1291,11 +1310,11 @@ var Ar = {
|
|
|
1291
1310
|
},
|
|
1292
1311
|
set: function(t, i, n) {
|
|
1293
1312
|
var r;
|
|
1294
|
-
return
|
|
1313
|
+
return K(i) ? (r = J(t).set_(i, n, !0)) != null ? r : !0 : !1;
|
|
1295
1314
|
},
|
|
1296
1315
|
deleteProperty: function(t, i) {
|
|
1297
1316
|
var n;
|
|
1298
|
-
return
|
|
1317
|
+
return K(i) ? (n = J(t).delete_(i, !0)) != null ? n : !0 : !1;
|
|
1299
1318
|
},
|
|
1300
1319
|
defineProperty: function(t, i, n) {
|
|
1301
1320
|
var r;
|
|
@@ -1308,16 +1327,16 @@ var Ar = {
|
|
|
1308
1327
|
m(13);
|
|
1309
1328
|
}
|
|
1310
1329
|
};
|
|
1311
|
-
function
|
|
1330
|
+
function Ar(e, t) {
|
|
1312
1331
|
var i, n;
|
|
1313
|
-
return
|
|
1332
|
+
return Jt(), e = Je(e, t), (n = (i = e[f]).proxy_) != null ? n : i.proxy_ = new Proxy(e, Or);
|
|
1314
1333
|
}
|
|
1315
1334
|
function O(e) {
|
|
1316
1335
|
return e.interceptors_ !== void 0 && e.interceptors_.length > 0;
|
|
1317
1336
|
}
|
|
1318
1337
|
function Oe(e, t) {
|
|
1319
1338
|
var i = e.interceptors_ || (e.interceptors_ = []);
|
|
1320
|
-
return i.push(t),
|
|
1339
|
+
return i.push(t), Yt(function() {
|
|
1321
1340
|
var n = i.indexOf(t);
|
|
1322
1341
|
n !== -1 && i.splice(n, 1);
|
|
1323
1342
|
});
|
|
@@ -1329,7 +1348,7 @@ function A(e, t) {
|
|
|
1329
1348
|
;
|
|
1330
1349
|
return t;
|
|
1331
1350
|
} finally {
|
|
1332
|
-
|
|
1351
|
+
U(i);
|
|
1333
1352
|
}
|
|
1334
1353
|
}
|
|
1335
1354
|
function w(e) {
|
|
@@ -1337,30 +1356,30 @@ function w(e) {
|
|
|
1337
1356
|
}
|
|
1338
1357
|
function Ae(e, t) {
|
|
1339
1358
|
var i = e.changeListeners_ || (e.changeListeners_ = []);
|
|
1340
|
-
return i.push(t),
|
|
1359
|
+
return i.push(t), Yt(function() {
|
|
1341
1360
|
var n = i.indexOf(t);
|
|
1342
1361
|
n !== -1 && i.splice(n, 1);
|
|
1343
1362
|
});
|
|
1344
1363
|
}
|
|
1345
|
-
function
|
|
1364
|
+
function F(e, t) {
|
|
1346
1365
|
var i = ae(), n = e.changeListeners_;
|
|
1347
1366
|
if (n) {
|
|
1348
1367
|
n = n.slice();
|
|
1349
1368
|
for (var r = 0, a = n.length; r < a; r++)
|
|
1350
1369
|
n[r](t);
|
|
1351
|
-
|
|
1370
|
+
U(i);
|
|
1352
1371
|
}
|
|
1353
1372
|
}
|
|
1354
1373
|
var tt = /* @__PURE__ */ Symbol("mobx-keys");
|
|
1355
|
-
function
|
|
1356
|
-
if (
|
|
1357
|
-
return
|
|
1374
|
+
function wr(e, t, i) {
|
|
1375
|
+
if (R(e))
|
|
1376
|
+
return Dn(e, e, t, i);
|
|
1358
1377
|
var n = Je(e, i)[f];
|
|
1359
1378
|
if (!e[tt]) {
|
|
1360
1379
|
var r = Object.getPrototypeOf(e), a = new Set([].concat(ce(e), ce(r)));
|
|
1361
|
-
a.delete("constructor"), a.delete(f),
|
|
1380
|
+
a.delete("constructor"), a.delete(f), ze(r, tt, a);
|
|
1362
1381
|
}
|
|
1363
|
-
|
|
1382
|
+
S();
|
|
1364
1383
|
try {
|
|
1365
1384
|
e[tt].forEach(function(o) {
|
|
1366
1385
|
return n.make_(
|
|
@@ -1370,14 +1389,14 @@ function Cr(e, t, i) {
|
|
|
1370
1389
|
);
|
|
1371
1390
|
});
|
|
1372
1391
|
} finally {
|
|
1373
|
-
|
|
1392
|
+
N();
|
|
1374
1393
|
}
|
|
1375
1394
|
return e;
|
|
1376
1395
|
}
|
|
1377
|
-
var
|
|
1396
|
+
var Rt = "splice", D = "update", Fr = 1e4, Er = {
|
|
1378
1397
|
get: function(t, i) {
|
|
1379
1398
|
var n = t[f];
|
|
1380
|
-
return i === f ? n : i === "length" ? n.getArrayLength_() : typeof i == "string" && !isNaN(i) ? n.get_(parseInt(i)) :
|
|
1399
|
+
return i === f ? n : i === "length" ? n.getArrayLength_() : typeof i == "string" && !isNaN(i) ? n.get_(parseInt(i)) : M(Le, i) ? Le[i] : t[i];
|
|
1381
1400
|
},
|
|
1382
1401
|
set: function(t, i, n) {
|
|
1383
1402
|
var r = t[f];
|
|
@@ -1386,9 +1405,9 @@ var It = "splice", P = "update", Er = 1e4, Fr = {
|
|
|
1386
1405
|
preventExtensions: function() {
|
|
1387
1406
|
m(15);
|
|
1388
1407
|
}
|
|
1389
|
-
},
|
|
1408
|
+
}, bt = /* @__PURE__ */ function() {
|
|
1390
1409
|
function e(i, n, r, a) {
|
|
1391
|
-
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
|
|
1410
|
+
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 ge(i), this.enhancer_ = function(o, s) {
|
|
1392
1411
|
return n(o, s, "ObservableArray[..]");
|
|
1393
1412
|
};
|
|
1394
1413
|
}
|
|
@@ -1424,7 +1443,7 @@ var It = "splice", P = "update", Er = 1e4, Fr = {
|
|
|
1424
1443
|
} else
|
|
1425
1444
|
this.spliceWithArray_(n, r - n);
|
|
1426
1445
|
}, t.updateArrayLength_ = function(n, r) {
|
|
1427
|
-
n !== this.lastKnownLength_ && m(16), this.lastKnownLength_ += r, this.legacyMode_ && r > 0 &&
|
|
1446
|
+
n !== this.lastKnownLength_ && m(16), this.lastKnownLength_ += r, this.legacyMode_ && r > 0 && zn(n + r + 1);
|
|
1428
1447
|
}, t.spliceWithArray_ = function(n, r, a) {
|
|
1429
1448
|
var o = this;
|
|
1430
1449
|
this.atom_;
|
|
@@ -1432,7 +1451,7 @@ var It = "splice", P = "update", Er = 1e4, Fr = {
|
|
|
1432
1451
|
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 = ot), O(this)) {
|
|
1433
1452
|
var u = A(this, {
|
|
1434
1453
|
object: this.proxy_,
|
|
1435
|
-
type:
|
|
1454
|
+
type: Rt,
|
|
1436
1455
|
index: n,
|
|
1437
1456
|
removedCount: r,
|
|
1438
1457
|
added: a
|
|
@@ -1450,7 +1469,7 @@ var It = "splice", P = "update", Er = 1e4, Fr = {
|
|
|
1450
1469
|
var c = this.spliceItemsIntoValues_(n, r, a);
|
|
1451
1470
|
return (r !== 0 || a.length !== 0) && this.notifyArraySplice_(n, a, c), this.dehanceValues_(c);
|
|
1452
1471
|
}, t.spliceItemsIntoValues_ = function(n, r, a) {
|
|
1453
|
-
if (a.length <
|
|
1472
|
+
if (a.length < Fr) {
|
|
1454
1473
|
var o;
|
|
1455
1474
|
return (o = this.values_).splice.apply(o, [n, r].concat(a));
|
|
1456
1475
|
} else {
|
|
@@ -1466,26 +1485,26 @@ var It = "splice", P = "update", Er = 1e4, Fr = {
|
|
|
1466
1485
|
var o = !this.owned_ && de(), s = w(this), u = s || o ? {
|
|
1467
1486
|
observableKind: "array",
|
|
1468
1487
|
object: this.proxy_,
|
|
1469
|
-
type:
|
|
1488
|
+
type: D,
|
|
1470
1489
|
debugObjectName: this.atom_.name_,
|
|
1471
1490
|
index: n,
|
|
1472
1491
|
newValue: r,
|
|
1473
1492
|
oldValue: a
|
|
1474
1493
|
} : null;
|
|
1475
|
-
this.atom_.reportChanged(), s &&
|
|
1494
|
+
this.atom_.reportChanged(), s && F(this, u);
|
|
1476
1495
|
}, t.notifyArraySplice_ = function(n, r, a) {
|
|
1477
1496
|
var o = !this.owned_ && de(), s = w(this), u = s || o ? {
|
|
1478
1497
|
observableKind: "array",
|
|
1479
1498
|
object: this.proxy_,
|
|
1480
1499
|
debugObjectName: this.atom_.name_,
|
|
1481
|
-
type:
|
|
1500
|
+
type: Rt,
|
|
1482
1501
|
index: n,
|
|
1483
1502
|
removed: a,
|
|
1484
1503
|
added: r,
|
|
1485
1504
|
removedCount: a.length,
|
|
1486
1505
|
addedCount: r.length
|
|
1487
1506
|
} : null;
|
|
1488
|
-
this.atom_.reportChanged(), s &&
|
|
1507
|
+
this.atom_.reportChanged(), s && F(this, u);
|
|
1489
1508
|
}, t.get_ = function(n) {
|
|
1490
1509
|
if (n < this.values_.length)
|
|
1491
1510
|
return this.atom_.reportObserved(), this.dehanceValue_(this.values_[n]);
|
|
@@ -1497,7 +1516,7 @@ var It = "splice", P = "update", Er = 1e4, Fr = {
|
|
|
1497
1516
|
var o = a[n];
|
|
1498
1517
|
if (O(this)) {
|
|
1499
1518
|
var s = A(this, {
|
|
1500
|
-
type:
|
|
1519
|
+
type: D,
|
|
1501
1520
|
object: this.proxy_,
|
|
1502
1521
|
index: n,
|
|
1503
1522
|
newValue: r
|
|
@@ -1513,18 +1532,18 @@ var It = "splice", P = "update", Er = 1e4, Fr = {
|
|
|
1513
1532
|
n === a.length ? this.spliceWithArray_(n, 0, [r]) : m(17, n, a.length);
|
|
1514
1533
|
}, e;
|
|
1515
1534
|
}();
|
|
1516
|
-
function
|
|
1517
|
-
i === void 0 && (i = "ObservableArray"), n === void 0 && (n = !1),
|
|
1518
|
-
var r = new
|
|
1519
|
-
|
|
1520
|
-
var a = new Proxy(r.values_,
|
|
1535
|
+
function Cr(e, t, i, n) {
|
|
1536
|
+
i === void 0 && (i = "ObservableArray"), n === void 0 && (n = !1), Jt();
|
|
1537
|
+
var r = new bt(i, t, n, !1);
|
|
1538
|
+
Zt(r.values_, f, r);
|
|
1539
|
+
var a = new Proxy(r.values_, Er);
|
|
1521
1540
|
if (r.proxy_ = a, e && e.length) {
|
|
1522
1541
|
var o = Se(!0);
|
|
1523
1542
|
r.spliceWithArray_(0, 0, e), Ne(o);
|
|
1524
1543
|
}
|
|
1525
1544
|
return a;
|
|
1526
1545
|
}
|
|
1527
|
-
var
|
|
1546
|
+
var Le = {
|
|
1528
1547
|
clear: function() {
|
|
1529
1548
|
return this.splice(0);
|
|
1530
1549
|
},
|
|
@@ -1597,18 +1616,18 @@ p("lastIndexOf", I);
|
|
|
1597
1616
|
p("slice", I);
|
|
1598
1617
|
p("toString", I);
|
|
1599
1618
|
p("toLocaleString", I);
|
|
1600
|
-
p("every",
|
|
1601
|
-
p("filter",
|
|
1602
|
-
p("find",
|
|
1603
|
-
p("findIndex",
|
|
1604
|
-
p("flatMap",
|
|
1605
|
-
p("forEach",
|
|
1606
|
-
p("map",
|
|
1607
|
-
p("some",
|
|
1608
|
-
p("reduce",
|
|
1609
|
-
p("reduceRight",
|
|
1619
|
+
p("every", G);
|
|
1620
|
+
p("filter", G);
|
|
1621
|
+
p("find", G);
|
|
1622
|
+
p("findIndex", G);
|
|
1623
|
+
p("flatMap", G);
|
|
1624
|
+
p("forEach", G);
|
|
1625
|
+
p("map", G);
|
|
1626
|
+
p("some", G);
|
|
1627
|
+
p("reduce", Vn);
|
|
1628
|
+
p("reduceRight", Vn);
|
|
1610
1629
|
function p(e, t) {
|
|
1611
|
-
typeof Array.prototype[e] == "function" && (
|
|
1630
|
+
typeof Array.prototype[e] == "function" && (Le[e] = t(e));
|
|
1612
1631
|
}
|
|
1613
1632
|
function I(e) {
|
|
1614
1633
|
return function() {
|
|
@@ -1618,7 +1637,7 @@ function I(e) {
|
|
|
1618
1637
|
return i[e].apply(i, arguments);
|
|
1619
1638
|
};
|
|
1620
1639
|
}
|
|
1621
|
-
function
|
|
1640
|
+
function G(e) {
|
|
1622
1641
|
return function(t, i) {
|
|
1623
1642
|
var n = this, r = this[f];
|
|
1624
1643
|
r.atom_.reportObserved();
|
|
@@ -1628,7 +1647,7 @@ function $(e) {
|
|
|
1628
1647
|
});
|
|
1629
1648
|
};
|
|
1630
1649
|
}
|
|
1631
|
-
function
|
|
1650
|
+
function Vn(e) {
|
|
1632
1651
|
return function() {
|
|
1633
1652
|
var t = this, i = this[f];
|
|
1634
1653
|
i.atom_.reportObserved();
|
|
@@ -1638,17 +1657,17 @@ function In(e) {
|
|
|
1638
1657
|
}, n[e].apply(n, arguments);
|
|
1639
1658
|
};
|
|
1640
1659
|
}
|
|
1641
|
-
var
|
|
1660
|
+
var Tr = /* @__PURE__ */ W("ObservableArrayAdministration", bt);
|
|
1642
1661
|
function Xe(e) {
|
|
1643
|
-
return
|
|
1662
|
+
return $e(e) && Tr(e[f]);
|
|
1644
1663
|
}
|
|
1645
|
-
var
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
var
|
|
1664
|
+
var Rn, In, Pr = {}, L = "add", Me = "delete";
|
|
1665
|
+
Rn = Symbol.iterator;
|
|
1666
|
+
In = Symbol.toStringTag;
|
|
1667
|
+
var Bn = /* @__PURE__ */ function() {
|
|
1649
1668
|
function e(i, n, r) {
|
|
1650
1669
|
var a = this;
|
|
1651
|
-
n === void 0 && (n = ne), r === void 0 && (r = "ObservableMap"), this.enhancer_ = void 0, this.name_ = void 0, this[f] = Pr, 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, E(Map) || m(18), this.keysAtom_ =
|
|
1670
|
+
n === void 0 && (n = ne), r === void 0 && (r = "ObservableMap"), this.enhancer_ = void 0, this.name_ = void 0, this[f] = Pr, 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, E(Map) || m(18), this.keysAtom_ = rn("ObservableMap.keys()"), this.data_ = /* @__PURE__ */ new Map(), this.hasMap_ = /* @__PURE__ */ new Map(), Zi(!0, function() {
|
|
1652
1671
|
a.merge(i);
|
|
1653
1672
|
});
|
|
1654
1673
|
}
|
|
@@ -1661,8 +1680,8 @@ var Un = /* @__PURE__ */ function() {
|
|
|
1661
1680
|
return this.has_(n);
|
|
1662
1681
|
var a = this.hasMap_.get(n);
|
|
1663
1682
|
if (!a) {
|
|
1664
|
-
var o = a = new te(this.has_(n),
|
|
1665
|
-
this.hasMap_.set(n, o),
|
|
1683
|
+
var o = a = new te(this.has_(n), Ke, "ObservableMap.key?", !1);
|
|
1684
|
+
this.hasMap_.set(n, o), Tn(o, function() {
|
|
1666
1685
|
return r.hasMap_.delete(n);
|
|
1667
1686
|
});
|
|
1668
1687
|
}
|
|
@@ -1671,7 +1690,7 @@ var Un = /* @__PURE__ */ function() {
|
|
|
1671
1690
|
var a = this.has_(n);
|
|
1672
1691
|
if (O(this)) {
|
|
1673
1692
|
var o = A(this, {
|
|
1674
|
-
type: a ?
|
|
1693
|
+
type: a ? D : L,
|
|
1675
1694
|
object: this,
|
|
1676
1695
|
newValue: r,
|
|
1677
1696
|
name: n
|
|
@@ -1706,7 +1725,7 @@ var Un = /* @__PURE__ */ function() {
|
|
|
1706
1725
|
r.keysAtom_.reportChanged(), (l = r.hasMap_.get(n)) == null || l.setNewValue_(!1);
|
|
1707
1726
|
var c = r.data_.get(n);
|
|
1708
1727
|
c.setNewValue_(void 0), r.data_.delete(n);
|
|
1709
|
-
}), s &&
|
|
1728
|
+
}), s && F(this, u), !0;
|
|
1710
1729
|
}
|
|
1711
1730
|
return !1;
|
|
1712
1731
|
}, t.updateValue_ = function(n, r) {
|
|
@@ -1715,13 +1734,13 @@ var Un = /* @__PURE__ */ function() {
|
|
|
1715
1734
|
var o = de(), s = w(this), u = s || o ? {
|
|
1716
1735
|
observableKind: "map",
|
|
1717
1736
|
debugObjectName: this.name_,
|
|
1718
|
-
type:
|
|
1737
|
+
type: D,
|
|
1719
1738
|
object: this,
|
|
1720
1739
|
oldValue: a.value_,
|
|
1721
1740
|
name: n,
|
|
1722
1741
|
newValue: r
|
|
1723
1742
|
} : null;
|
|
1724
|
-
a.setNewValue_(r), s &&
|
|
1743
|
+
a.setNewValue_(r), s && F(this, u);
|
|
1725
1744
|
}
|
|
1726
1745
|
}, t.addValue_ = function(n, r) {
|
|
1727
1746
|
var a = this;
|
|
@@ -1737,7 +1756,7 @@ var Un = /* @__PURE__ */ function() {
|
|
|
1737
1756
|
name: n,
|
|
1738
1757
|
newValue: r
|
|
1739
1758
|
} : null;
|
|
1740
|
-
s &&
|
|
1759
|
+
s && F(this, u);
|
|
1741
1760
|
}, t.get = function(n) {
|
|
1742
1761
|
return this.has(n) ? this.dehanceValue_(this.data_.get(n).get()) : this.dehanceValue_(void 0);
|
|
1743
1762
|
}, t.dehanceValue_ = function(n) {
|
|
@@ -1766,7 +1785,7 @@ var Un = /* @__PURE__ */ function() {
|
|
|
1766
1785
|
};
|
|
1767
1786
|
}
|
|
1768
1787
|
});
|
|
1769
|
-
}, t[
|
|
1788
|
+
}, t[Rn] = function() {
|
|
1770
1789
|
return this.entries();
|
|
1771
1790
|
}, t.forEach = function(n, r) {
|
|
1772
1791
|
for (var a = Q(this), o; !(o = a()).done; ) {
|
|
@@ -1776,7 +1795,7 @@ var Un = /* @__PURE__ */ function() {
|
|
|
1776
1795
|
}, t.merge = function(n) {
|
|
1777
1796
|
var r = this;
|
|
1778
1797
|
return H(n) && (n = new Map(n)), x(function() {
|
|
1779
|
-
|
|
1798
|
+
R(n) ? li(n).forEach(function(a) {
|
|
1780
1799
|
return r.set(a, n[a]);
|
|
1781
1800
|
}) : Array.isArray(n) ? n.forEach(function(a) {
|
|
1782
1801
|
var o = a[0], s = a[1];
|
|
@@ -1798,7 +1817,7 @@ var Un = /* @__PURE__ */ function() {
|
|
|
1798
1817
|
}, t.replace = function(n) {
|
|
1799
1818
|
var r = this;
|
|
1800
1819
|
return x(function() {
|
|
1801
|
-
for (var a =
|
|
1820
|
+
for (var a = Dr(n), o = /* @__PURE__ */ new Map(), s = !1, u = Q(r.data_.keys()), l; !(l = u()).done; ) {
|
|
1802
1821
|
var c = l.value;
|
|
1803
1822
|
if (!a.has(c)) {
|
|
1804
1823
|
var h = r.delete(c);
|
|
@@ -1811,7 +1830,7 @@ var Un = /* @__PURE__ */ function() {
|
|
|
1811
1830
|
}
|
|
1812
1831
|
}
|
|
1813
1832
|
for (var j = Q(a.entries()), X; !(X = j()).done; ) {
|
|
1814
|
-
var
|
|
1833
|
+
var C = X.value, T = C[0], we = C[1], Ye = r.data_.has(T);
|
|
1815
1834
|
if (r.set(T, we), r.data_.has(T)) {
|
|
1816
1835
|
var se = r.data_.get(T);
|
|
1817
1836
|
o.set(T, se), Ye || (s = !0);
|
|
@@ -1821,12 +1840,12 @@ var Un = /* @__PURE__ */ function() {
|
|
|
1821
1840
|
if (r.data_.size !== o.size)
|
|
1822
1841
|
r.keysAtom_.reportChanged();
|
|
1823
1842
|
else
|
|
1824
|
-
for (var
|
|
1825
|
-
if (
|
|
1843
|
+
for (var g = r.data_.keys(), B = o.keys(), $ = g.next(), St = B.next(); !$.done; ) {
|
|
1844
|
+
if ($.value !== St.value) {
|
|
1826
1845
|
r.keysAtom_.reportChanged();
|
|
1827
1846
|
break;
|
|
1828
1847
|
}
|
|
1829
|
-
|
|
1848
|
+
$ = g.next(), St = B.next();
|
|
1830
1849
|
}
|
|
1831
1850
|
r.data_ = o;
|
|
1832
1851
|
}), this;
|
|
@@ -1838,24 +1857,24 @@ var Un = /* @__PURE__ */ function() {
|
|
|
1838
1857
|
return Ae(this, n);
|
|
1839
1858
|
}, t.intercept_ = function(n) {
|
|
1840
1859
|
return Oe(this, n);
|
|
1841
|
-
},
|
|
1860
|
+
}, mt(e, [{
|
|
1842
1861
|
key: "size",
|
|
1843
1862
|
get: function() {
|
|
1844
1863
|
return this.keysAtom_.reportObserved(), this.data_.size;
|
|
1845
1864
|
}
|
|
1846
1865
|
}, {
|
|
1847
|
-
key:
|
|
1866
|
+
key: In,
|
|
1848
1867
|
get: function() {
|
|
1849
1868
|
return "Map";
|
|
1850
1869
|
}
|
|
1851
1870
|
}]), e;
|
|
1852
|
-
}(), H = /* @__PURE__ */ W("ObservableMap",
|
|
1853
|
-
function
|
|
1871
|
+
}(), H = /* @__PURE__ */ W("ObservableMap", Bn);
|
|
1872
|
+
function Dr(e) {
|
|
1854
1873
|
if (re(e) || H(e))
|
|
1855
1874
|
return e;
|
|
1856
1875
|
if (Array.isArray(e))
|
|
1857
1876
|
return new Map(e);
|
|
1858
|
-
if (
|
|
1877
|
+
if (R(e)) {
|
|
1859
1878
|
var t = /* @__PURE__ */ new Map();
|
|
1860
1879
|
for (var i in e)
|
|
1861
1880
|
t.set(i, e[i]);
|
|
@@ -1863,12 +1882,12 @@ function jr(e) {
|
|
|
1863
1882
|
} else
|
|
1864
1883
|
return m(21, e);
|
|
1865
1884
|
}
|
|
1866
|
-
var
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
var
|
|
1885
|
+
var Ln, Mn, jr = {};
|
|
1886
|
+
Ln = Symbol.iterator;
|
|
1887
|
+
Mn = Symbol.toStringTag;
|
|
1888
|
+
var Un = /* @__PURE__ */ function() {
|
|
1870
1889
|
function e(i, n, r) {
|
|
1871
|
-
n === void 0 && (n = ne), r === void 0 && (r = "ObservableSet"), this.name_ = void 0, this[f] =
|
|
1890
|
+
n === void 0 && (n = ne), r === void 0 && (r = "ObservableSet"), this.name_ = void 0, this[f] = jr, this.data_ = /* @__PURE__ */ 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, E(Set) || m(22), this.atom_ = rn(this.name_), this.enhancer_ = function(a, o) {
|
|
1872
1891
|
return n(a, o, r);
|
|
1873
1892
|
}, i && this.replace(i);
|
|
1874
1893
|
}
|
|
@@ -1912,7 +1931,7 @@ var Gn = /* @__PURE__ */ function() {
|
|
|
1912
1931
|
object: this,
|
|
1913
1932
|
newValue: n
|
|
1914
1933
|
} : null;
|
|
1915
|
-
s &&
|
|
1934
|
+
s && F(this, u);
|
|
1916
1935
|
}
|
|
1917
1936
|
return this;
|
|
1918
1937
|
}, t.delete = function(n) {
|
|
@@ -1936,7 +1955,7 @@ var Gn = /* @__PURE__ */ function() {
|
|
|
1936
1955
|
} : null;
|
|
1937
1956
|
return x(function() {
|
|
1938
1957
|
r.atom_.reportChanged(), r.data_.delete(n);
|
|
1939
|
-
}), s &&
|
|
1958
|
+
}), s && F(this, u), !0;
|
|
1940
1959
|
}
|
|
1941
1960
|
return !1;
|
|
1942
1961
|
}, t.has = function(n) {
|
|
@@ -1974,7 +1993,7 @@ var Gn = /* @__PURE__ */ function() {
|
|
|
1974
1993
|
return oe(n) && (n = new Set(n)), x(function() {
|
|
1975
1994
|
Array.isArray(n) ? (r.clear(), n.forEach(function(a) {
|
|
1976
1995
|
return r.add(a);
|
|
1977
|
-
})) :
|
|
1996
|
+
})) : ke(n) ? (r.clear(), n.forEach(function(a) {
|
|
1978
1997
|
return r.add(a);
|
|
1979
1998
|
})) : n != null && m("Cannot initialize set from " + n);
|
|
1980
1999
|
}), this;
|
|
@@ -1986,22 +2005,22 @@ var Gn = /* @__PURE__ */ function() {
|
|
|
1986
2005
|
return Array.from(this);
|
|
1987
2006
|
}, t.toString = function() {
|
|
1988
2007
|
return "[object ObservableSet]";
|
|
1989
|
-
}, t[
|
|
2008
|
+
}, t[Ln] = function() {
|
|
1990
2009
|
return this.values();
|
|
1991
|
-
},
|
|
2010
|
+
}, mt(e, [{
|
|
1992
2011
|
key: "size",
|
|
1993
2012
|
get: function() {
|
|
1994
2013
|
return this.atom_.reportObserved(), this.data_.size;
|
|
1995
2014
|
}
|
|
1996
2015
|
}, {
|
|
1997
|
-
key:
|
|
2016
|
+
key: Mn,
|
|
1998
2017
|
get: function() {
|
|
1999
2018
|
return "Set";
|
|
2000
2019
|
}
|
|
2001
2020
|
}]), e;
|
|
2002
|
-
}(), oe = /* @__PURE__ */ W("ObservableSet",
|
|
2021
|
+
}(), oe = /* @__PURE__ */ W("ObservableSet", Un), It = /* @__PURE__ */ Object.create(null), Bt = "remove", Gn = /* @__PURE__ */ function() {
|
|
2003
2022
|
function e(i, n, r, a) {
|
|
2004
|
-
n === void 0 && (n = /* @__PURE__ */ new Map()), a === void 0 && (a =
|
|
2023
|
+
n === void 0 && (n = /* @__PURE__ */ new Map()), a === void 0 && (a = ji), 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 ge("ObservableObject.keys"), this.isPlainObject_ = R(this.target_);
|
|
2005
2024
|
}
|
|
2006
2025
|
var t = e.prototype;
|
|
2007
2026
|
return t.getObservablePropValue_ = function(n) {
|
|
@@ -2012,7 +2031,7 @@ var Gn = /* @__PURE__ */ function() {
|
|
|
2012
2031
|
return a.set(r), !0;
|
|
2013
2032
|
if (O(this)) {
|
|
2014
2033
|
var o = A(this, {
|
|
2015
|
-
type:
|
|
2034
|
+
type: D,
|
|
2016
2035
|
object: this.proxy_ || this.target_,
|
|
2017
2036
|
name: n,
|
|
2018
2037
|
newValue: r
|
|
@@ -2023,7 +2042,7 @@ var Gn = /* @__PURE__ */ function() {
|
|
|
2023
2042
|
}
|
|
2024
2043
|
if (r = a.prepareNewValue_(r), r !== d.UNCHANGED) {
|
|
2025
2044
|
var s = w(this), u = !1, l = s || u ? {
|
|
2026
|
-
type:
|
|
2045
|
+
type: D,
|
|
2027
2046
|
observableKind: "object",
|
|
2028
2047
|
debugObjectName: this.name_,
|
|
2029
2048
|
object: this.proxy_ || this.target_,
|
|
@@ -2031,13 +2050,13 @@ var Gn = /* @__PURE__ */ function() {
|
|
|
2031
2050
|
name: n,
|
|
2032
2051
|
newValue: r
|
|
2033
2052
|
} : null;
|
|
2034
|
-
a.setNewValue_(r), s &&
|
|
2053
|
+
a.setNewValue_(r), s && F(this, l);
|
|
2035
2054
|
}
|
|
2036
2055
|
return !0;
|
|
2037
2056
|
}, t.get_ = function(n) {
|
|
2038
|
-
return d.trackingDerivation && !
|
|
2057
|
+
return d.trackingDerivation && !M(this.target_, n) && this.has_(n), this.target_[n];
|
|
2039
2058
|
}, t.set_ = function(n, r, a) {
|
|
2040
|
-
return a === void 0 && (a = !1),
|
|
2059
|
+
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, {
|
|
2041
2060
|
value: r,
|
|
2042
2061
|
enumerable: !0,
|
|
2043
2062
|
writable: !0,
|
|
@@ -2048,7 +2067,7 @@ var Gn = /* @__PURE__ */ function() {
|
|
|
2048
2067
|
return n in this.target_;
|
|
2049
2068
|
this.pendingKeys_ || (this.pendingKeys_ = /* @__PURE__ */ new Map());
|
|
2050
2069
|
var r = this.pendingKeys_.get(n);
|
|
2051
|
-
return r || (r = new te(n in this.target_,
|
|
2070
|
+
return r || (r = new te(n in this.target_, Ke, "ObservableObject.key?", !1), this.pendingKeys_.set(n, r)), r.get();
|
|
2052
2071
|
}, t.make_ = function(n, r) {
|
|
2053
2072
|
if (r === !0 && (r = this.defaultAnnotation_), r !== !1) {
|
|
2054
2073
|
if (!(n in this.target_)) {
|
|
@@ -2057,8 +2076,8 @@ var Gn = /* @__PURE__ */ function() {
|
|
|
2057
2076
|
return;
|
|
2058
2077
|
m(1, r.annotationType_, this.name_ + "." + n.toString());
|
|
2059
2078
|
}
|
|
2060
|
-
for (var o = this.target_; o && o !==
|
|
2061
|
-
var s =
|
|
2079
|
+
for (var o = this.target_; o && o !== Ge; ) {
|
|
2080
|
+
var s = je(o, n);
|
|
2062
2081
|
if (s) {
|
|
2063
2082
|
var u = r.make_(this, n, s, o);
|
|
2064
2083
|
if (u === 0)
|
|
@@ -2078,7 +2097,7 @@ var Gn = /* @__PURE__ */ function() {
|
|
|
2078
2097
|
}, t.defineProperty_ = function(n, r, a) {
|
|
2079
2098
|
a === void 0 && (a = !1);
|
|
2080
2099
|
try {
|
|
2081
|
-
|
|
2100
|
+
S();
|
|
2082
2101
|
var o = this.delete_(n);
|
|
2083
2102
|
if (!o)
|
|
2084
2103
|
return o;
|
|
@@ -2100,16 +2119,16 @@ var Gn = /* @__PURE__ */ function() {
|
|
|
2100
2119
|
if (!Reflect.defineProperty(this.target_, n, r))
|
|
2101
2120
|
return !1;
|
|
2102
2121
|
} else
|
|
2103
|
-
|
|
2122
|
+
V(this.target_, n, r);
|
|
2104
2123
|
this.notifyPropertyAddition_(n, r.value);
|
|
2105
2124
|
} finally {
|
|
2106
|
-
|
|
2125
|
+
N();
|
|
2107
2126
|
}
|
|
2108
2127
|
return !0;
|
|
2109
2128
|
}, t.defineObservableProperty_ = function(n, r, a, o) {
|
|
2110
2129
|
o === void 0 && (o = !1);
|
|
2111
2130
|
try {
|
|
2112
|
-
|
|
2131
|
+
S();
|
|
2113
2132
|
var s = this.delete_(n);
|
|
2114
2133
|
if (!s)
|
|
2115
2134
|
return s;
|
|
@@ -2124,7 +2143,7 @@ var Gn = /* @__PURE__ */ function() {
|
|
|
2124
2143
|
return null;
|
|
2125
2144
|
r = u.newValue;
|
|
2126
2145
|
}
|
|
2127
|
-
var l =
|
|
2146
|
+
var l = Lt(n), c = {
|
|
2128
2147
|
configurable: d.safeDescriptors ? this.isPlainObject_ : !0,
|
|
2129
2148
|
enumerable: !0,
|
|
2130
2149
|
get: l.get,
|
|
@@ -2134,17 +2153,17 @@ var Gn = /* @__PURE__ */ function() {
|
|
|
2134
2153
|
if (!Reflect.defineProperty(this.target_, n, c))
|
|
2135
2154
|
return !1;
|
|
2136
2155
|
} else
|
|
2137
|
-
|
|
2156
|
+
V(this.target_, n, c);
|
|
2138
2157
|
var h = new te(r, a, "ObservableObject.key", !1);
|
|
2139
2158
|
this.values_.set(n, h), this.notifyPropertyAddition_(n, h.value_);
|
|
2140
2159
|
} finally {
|
|
2141
|
-
|
|
2160
|
+
N();
|
|
2142
2161
|
}
|
|
2143
2162
|
return !0;
|
|
2144
2163
|
}, t.defineComputedProperty_ = function(n, r, a) {
|
|
2145
2164
|
a === void 0 && (a = !1);
|
|
2146
2165
|
try {
|
|
2147
|
-
|
|
2166
|
+
S();
|
|
2148
2167
|
var o = this.delete_(n);
|
|
2149
2168
|
if (!o)
|
|
2150
2169
|
return o;
|
|
@@ -2159,7 +2178,7 @@ var Gn = /* @__PURE__ */ function() {
|
|
|
2159
2178
|
return null;
|
|
2160
2179
|
}
|
|
2161
2180
|
r.name || (r.name = "ObservableObject.key"), r.context = this.proxy_ || this.target_;
|
|
2162
|
-
var u =
|
|
2181
|
+
var u = Lt(n), l = {
|
|
2163
2182
|
configurable: d.safeDescriptors ? this.isPlainObject_ : !0,
|
|
2164
2183
|
enumerable: !1,
|
|
2165
2184
|
get: u.get,
|
|
@@ -2169,50 +2188,50 @@ var Gn = /* @__PURE__ */ function() {
|
|
|
2169
2188
|
if (!Reflect.defineProperty(this.target_, n, l))
|
|
2170
2189
|
return !1;
|
|
2171
2190
|
} else
|
|
2172
|
-
|
|
2191
|
+
V(this.target_, n, l);
|
|
2173
2192
|
this.values_.set(n, new ve(r)), this.notifyPropertyAddition_(n, void 0);
|
|
2174
2193
|
} finally {
|
|
2175
|
-
|
|
2194
|
+
N();
|
|
2176
2195
|
}
|
|
2177
2196
|
return !0;
|
|
2178
2197
|
}, t.delete_ = function(n, r) {
|
|
2179
|
-
if (r === void 0 && (r = !1), !
|
|
2198
|
+
if (r === void 0 && (r = !1), !M(this.target_, n))
|
|
2180
2199
|
return !0;
|
|
2181
2200
|
if (O(this)) {
|
|
2182
2201
|
var a = A(this, {
|
|
2183
2202
|
object: this.proxy_ || this.target_,
|
|
2184
2203
|
name: n,
|
|
2185
|
-
type:
|
|
2204
|
+
type: Bt
|
|
2186
2205
|
});
|
|
2187
2206
|
if (!a)
|
|
2188
2207
|
return null;
|
|
2189
2208
|
}
|
|
2190
2209
|
try {
|
|
2191
2210
|
var o, s;
|
|
2192
|
-
|
|
2211
|
+
S();
|
|
2193
2212
|
var u = w(this), l = !1, c = this.values_.get(n), h = void 0;
|
|
2194
2213
|
if (!c && (u || l)) {
|
|
2195
2214
|
var _;
|
|
2196
|
-
h = (_ =
|
|
2215
|
+
h = (_ = je(this.target_, n)) == null ? void 0 : _.value;
|
|
2197
2216
|
}
|
|
2198
2217
|
if (r) {
|
|
2199
2218
|
if (!Reflect.deleteProperty(this.target_, n))
|
|
2200
2219
|
return !1;
|
|
2201
2220
|
} else
|
|
2202
2221
|
delete this.target_[n];
|
|
2203
|
-
if (c && (this.values_.delete(n), c instanceof te && (h = c.value_),
|
|
2222
|
+
if (c && (this.values_.delete(n), c instanceof te && (h = c.value_), Nn(c)), this.keysAtom_.reportChanged(), (o = this.pendingKeys_) == null || (s = o.get(n)) == null || s.set(n in this.target_), u || l) {
|
|
2204
2223
|
var j = {
|
|
2205
|
-
type:
|
|
2224
|
+
type: Bt,
|
|
2206
2225
|
observableKind: "object",
|
|
2207
2226
|
object: this.proxy_ || this.target_,
|
|
2208
2227
|
debugObjectName: this.name_,
|
|
2209
2228
|
oldValue: h,
|
|
2210
2229
|
name: n
|
|
2211
2230
|
};
|
|
2212
|
-
u &&
|
|
2231
|
+
u && F(this, j);
|
|
2213
2232
|
}
|
|
2214
2233
|
} finally {
|
|
2215
|
-
|
|
2234
|
+
N();
|
|
2216
2235
|
}
|
|
2217
2236
|
return !0;
|
|
2218
2237
|
}, t.observe_ = function(n, r) {
|
|
@@ -2230,7 +2249,7 @@ var Gn = /* @__PURE__ */ function() {
|
|
|
2230
2249
|
name: n,
|
|
2231
2250
|
newValue: r
|
|
2232
2251
|
} : null;
|
|
2233
|
-
s &&
|
|
2252
|
+
s && F(this, l);
|
|
2234
2253
|
}
|
|
2235
2254
|
(a = this.pendingKeys_) == null || (o = a.get(n)) == null || o.set(!0), this.keysAtom_.reportChanged();
|
|
2236
2255
|
}, t.ownKeys_ = function() {
|
|
@@ -2241,14 +2260,14 @@ var Gn = /* @__PURE__ */ function() {
|
|
|
2241
2260
|
}();
|
|
2242
2261
|
function Je(e, t) {
|
|
2243
2262
|
var i;
|
|
2244
|
-
if (
|
|
2263
|
+
if (M(e, f))
|
|
2245
2264
|
return e;
|
|
2246
|
-
var n = (i = t == null ? void 0 : t.name) != null ? i : "ObservableObject", r = new
|
|
2247
|
-
return
|
|
2265
|
+
var n = (i = t == null ? void 0 : t.name) != null ? i : "ObservableObject", r = new Gn(e, /* @__PURE__ */ new Map(), String(n), $i(t));
|
|
2266
|
+
return ze(e, f, r), e;
|
|
2248
2267
|
}
|
|
2249
|
-
var
|
|
2250
|
-
function
|
|
2251
|
-
return
|
|
2268
|
+
var xr = /* @__PURE__ */ W("ObservableObjectAdministration", Gn);
|
|
2269
|
+
function Lt(e) {
|
|
2270
|
+
return It[e] || (It[e] = {
|
|
2252
2271
|
get: function() {
|
|
2253
2272
|
return this[f].getObservablePropValue_(e);
|
|
2254
2273
|
},
|
|
@@ -2258,25 +2277,25 @@ function Ut(e) {
|
|
|
2258
2277
|
});
|
|
2259
2278
|
}
|
|
2260
2279
|
function _e(e) {
|
|
2261
|
-
return
|
|
2280
|
+
return $e(e) ? xr(e[f]) : !1;
|
|
2262
2281
|
}
|
|
2263
2282
|
function Mt(e, t, i) {
|
|
2264
2283
|
var n;
|
|
2265
2284
|
(n = e.target_[Z]) == null || delete n[i];
|
|
2266
2285
|
}
|
|
2267
|
-
var nt = 0,
|
|
2286
|
+
var nt = 0, $n = function() {
|
|
2268
2287
|
};
|
|
2269
2288
|
function Vr(e, t) {
|
|
2270
2289
|
Object.setPrototypeOf ? Object.setPrototypeOf(e.prototype, t) : e.prototype.__proto__ !== void 0 ? e.prototype.__proto__ = t : e.prototype = t;
|
|
2271
2290
|
}
|
|
2272
|
-
Vr(
|
|
2273
|
-
var
|
|
2274
|
-
|
|
2291
|
+
Vr($n, Array.prototype);
|
|
2292
|
+
var gt = /* @__PURE__ */ function(e, t, i) {
|
|
2293
|
+
nn(n, e);
|
|
2275
2294
|
function n(a, o, s, u) {
|
|
2276
2295
|
var l;
|
|
2277
2296
|
s === void 0 && (s = "ObservableArray"), u === void 0 && (u = !1), l = e.call(this) || this;
|
|
2278
|
-
var c = new
|
|
2279
|
-
if (c.proxy_ =
|
|
2297
|
+
var c = new bt(s, o, u, !0);
|
|
2298
|
+
if (c.proxy_ = Ct(l), Zt(Ct(l), f, c), a && a.length) {
|
|
2280
2299
|
var h = Se(!0);
|
|
2281
2300
|
l.spliceWithArray(0, 0, a), Ne(h);
|
|
2282
2301
|
}
|
|
@@ -2307,7 +2326,7 @@ var St = /* @__PURE__ */ function(e, t, i) {
|
|
|
2307
2326
|
};
|
|
2308
2327
|
}
|
|
2309
2328
|
});
|
|
2310
|
-
},
|
|
2329
|
+
}, mt(n, [{
|
|
2311
2330
|
key: "length",
|
|
2312
2331
|
get: function() {
|
|
2313
2332
|
return this[f].getArrayLength_();
|
|
@@ -2321,12 +2340,12 @@ var St = /* @__PURE__ */ function(e, t, i) {
|
|
|
2321
2340
|
return "Array";
|
|
2322
2341
|
}
|
|
2323
2342
|
}]), n;
|
|
2324
|
-
}(
|
|
2325
|
-
Object.entries(
|
|
2343
|
+
}($n, Symbol.toStringTag, Symbol.iterator);
|
|
2344
|
+
Object.entries(Le).forEach(function(e) {
|
|
2326
2345
|
var t = e[0], i = e[1];
|
|
2327
|
-
t !== "concat" &&
|
|
2346
|
+
t !== "concat" && ze(gt.prototype, t, i);
|
|
2328
2347
|
});
|
|
2329
|
-
function
|
|
2348
|
+
function Rr(e) {
|
|
2330
2349
|
return {
|
|
2331
2350
|
enumerable: !1,
|
|
2332
2351
|
configurable: !0,
|
|
@@ -2338,19 +2357,19 @@ function Ir(e) {
|
|
|
2338
2357
|
}
|
|
2339
2358
|
};
|
|
2340
2359
|
}
|
|
2341
|
-
function
|
|
2342
|
-
|
|
2360
|
+
function Ir(e) {
|
|
2361
|
+
V(gt.prototype, "" + e, Rr(e));
|
|
2343
2362
|
}
|
|
2344
|
-
function
|
|
2363
|
+
function zn(e) {
|
|
2345
2364
|
if (e > nt) {
|
|
2346
2365
|
for (var t = nt; t < e + 100; t++)
|
|
2347
|
-
|
|
2366
|
+
Ir(t);
|
|
2348
2367
|
nt = e;
|
|
2349
2368
|
}
|
|
2350
2369
|
}
|
|
2351
|
-
|
|
2352
|
-
function
|
|
2353
|
-
return new
|
|
2370
|
+
zn(1e3);
|
|
2371
|
+
function Br(e, t, i) {
|
|
2372
|
+
return new gt(e, t, i);
|
|
2354
2373
|
}
|
|
2355
2374
|
function q(e, t) {
|
|
2356
2375
|
if (typeof e == "object" && e !== null) {
|
|
@@ -2370,16 +2389,16 @@ function q(e, t) {
|
|
|
2370
2389
|
var n = e[f].values_.get(t);
|
|
2371
2390
|
return n || m(27, t, ct(e)), n;
|
|
2372
2391
|
}
|
|
2373
|
-
if (
|
|
2392
|
+
if (ht(e) || He(e) || Ie(e))
|
|
2374
2393
|
return e;
|
|
2375
|
-
} else if (E(e) &&
|
|
2394
|
+
} else if (E(e) && Ie(e[f]))
|
|
2376
2395
|
return e[f];
|
|
2377
2396
|
m(28);
|
|
2378
2397
|
}
|
|
2379
|
-
function
|
|
2398
|
+
function Kn(e, t) {
|
|
2380
2399
|
if (e || m(29), t !== void 0)
|
|
2381
|
-
return
|
|
2382
|
-
if (
|
|
2400
|
+
return Kn(q(e, t));
|
|
2401
|
+
if (ht(e) || He(e) || Ie(e) || H(e) || oe(e))
|
|
2383
2402
|
return e;
|
|
2384
2403
|
if (e[f])
|
|
2385
2404
|
return e[f];
|
|
@@ -2392,12 +2411,12 @@ function ct(e, t) {
|
|
|
2392
2411
|
else {
|
|
2393
2412
|
if (kt(e))
|
|
2394
2413
|
return e.name;
|
|
2395
|
-
_e(e) || H(e) || oe(e) ? i =
|
|
2414
|
+
_e(e) || H(e) || oe(e) ? i = Kn(e) : i = q(e);
|
|
2396
2415
|
}
|
|
2397
2416
|
return i.name_;
|
|
2398
2417
|
}
|
|
2399
|
-
var
|
|
2400
|
-
function
|
|
2418
|
+
var Ut = Ge.toString;
|
|
2419
|
+
function yt(e, t, i) {
|
|
2401
2420
|
return i === void 0 && (i = -1), ft(e, t, i);
|
|
2402
2421
|
}
|
|
2403
2422
|
function ft(e, t, i, n, r) {
|
|
@@ -2410,8 +2429,8 @@ function ft(e, t, i, n, r) {
|
|
|
2410
2429
|
var a = typeof e;
|
|
2411
2430
|
if (a !== "function" && a !== "object" && typeof t != "object")
|
|
2412
2431
|
return !1;
|
|
2413
|
-
var o =
|
|
2414
|
-
if (o !==
|
|
2432
|
+
var o = Ut.call(e);
|
|
2433
|
+
if (o !== Ut.call(t))
|
|
2415
2434
|
return !1;
|
|
2416
2435
|
switch (o) {
|
|
2417
2436
|
case "[object RegExp]":
|
|
@@ -2455,71 +2474,37 @@ function ft(e, t, i, n, r) {
|
|
|
2455
2474
|
if (c = h.length, Object.keys(t).length !== c)
|
|
2456
2475
|
return !1;
|
|
2457
2476
|
for (; c--; )
|
|
2458
|
-
if (_ = h[c], !(
|
|
2477
|
+
if (_ = h[c], !(M(t, _) && ft(e[_], t[_], i - 1, n, r)))
|
|
2459
2478
|
return !1;
|
|
2460
2479
|
}
|
|
2461
2480
|
return n.pop(), r.pop(), !0;
|
|
2462
2481
|
}
|
|
2463
2482
|
function Gt(e) {
|
|
2464
|
-
return Xe(e) ? e.slice() : re(e) || H(e) ||
|
|
2483
|
+
return Xe(e) ? e.slice() : re(e) || H(e) || ke(e) || oe(e) ? Array.from(e.entries()) : e;
|
|
2465
2484
|
}
|
|
2466
2485
|
function pe(e) {
|
|
2467
|
-
return e[Symbol.iterator] =
|
|
2486
|
+
return e[Symbol.iterator] = Lr, e;
|
|
2468
2487
|
}
|
|
2469
|
-
function
|
|
2488
|
+
function Lr() {
|
|
2470
2489
|
return this;
|
|
2471
2490
|
}
|
|
2472
2491
|
["Symbol", "Map", "Set"].forEach(function(e) {
|
|
2473
|
-
var t =
|
|
2492
|
+
var t = Ht();
|
|
2474
2493
|
typeof t[e] == "undefined" && m("MobX requires global '" + e + "' to be available or polyfilled");
|
|
2475
2494
|
});
|
|
2476
2495
|
typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ == "object" && __MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({
|
|
2477
|
-
spy:
|
|
2496
|
+
spy: sr,
|
|
2478
2497
|
extras: {
|
|
2479
2498
|
getDebugName: ct
|
|
2480
2499
|
},
|
|
2481
2500
|
$mobx: f
|
|
2482
2501
|
});
|
|
2483
|
-
|
|
2484
|
-
constructor() {
|
|
2485
|
-
N(this, "_config");
|
|
2486
|
-
Cr(this, {}, { name: "NizzaStore", autoBind: !0 });
|
|
2487
|
-
}
|
|
2488
|
-
configure(t) {
|
|
2489
|
-
this._config = t;
|
|
2490
|
-
}
|
|
2491
|
-
createGlobalObject() {
|
|
2492
|
-
window.nizza = this;
|
|
2493
|
-
}
|
|
2494
|
-
get config() {
|
|
2495
|
-
return this._config;
|
|
2496
|
-
}
|
|
2497
|
-
}
|
|
2498
|
-
const ka = new Mr();
|
|
2499
|
-
var Hn = /* @__PURE__ */ ((e) => (e.Add = "add", e.Remove = "remove", e))(Hn || {}), Xn = /* @__PURE__ */ ((e) => (e.Active = "active", e.Inactive = "inactive", e))(Xn || {});
|
|
2500
|
-
const $r = { 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" } }] } }] } }] } }] }, Gr = { 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" } }] } }] } }] } }] }, Kr = { 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" } }] } }] } }] } }] }, 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" } }] } }] } }] } }] }, ya = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2501
|
-
__proto__: null,
|
|
2502
|
-
AddCollectionDocument: zr,
|
|
2503
|
-
DeleteAllCustomizationDocument: $r,
|
|
2504
|
-
DeleteCollectionDocument: qr,
|
|
2505
|
-
FindCollectionDocument: Wr,
|
|
2506
|
-
GetAllCollectionsDocument: Hr,
|
|
2507
|
-
GetAllCustomizationDocument: Gr,
|
|
2508
|
-
ManageCollectionProductDocument: Xr,
|
|
2509
|
-
Methods: Hn,
|
|
2510
|
-
SearchCollectionsDocument: Jr,
|
|
2511
|
-
Status: Xn,
|
|
2512
|
-
UpdateCollectionDocument: Yr,
|
|
2513
|
-
UpdateCustomizationDocument: Kr
|
|
2514
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
2515
|
-
class Sa {
|
|
2516
|
-
}
|
|
2517
|
-
async function Na(r) {
|
|
2502
|
+
async function Sa(r) {
|
|
2518
2503
|
var a = r, {
|
|
2519
2504
|
url: e,
|
|
2520
2505
|
method: t = "GET",
|
|
2521
2506
|
raw: i = !1
|
|
2522
|
-
} = a, n =
|
|
2507
|
+
} = a, n = wt(a, [
|
|
2523
2508
|
"url",
|
|
2524
2509
|
"method",
|
|
2525
2510
|
"raw"
|
|
@@ -2527,7 +2512,7 @@ async function Na(r) {
|
|
|
2527
2512
|
var l;
|
|
2528
2513
|
const o = ue({
|
|
2529
2514
|
"Content-Type": "application/json"
|
|
2530
|
-
}, n.headers), s = await fetch(e,
|
|
2515
|
+
}, n.headers), s = await fetch(e, At(ue({ method: t }, n), { headers: o }));
|
|
2531
2516
|
if (i)
|
|
2532
2517
|
return s;
|
|
2533
2518
|
const u = await s.json();
|
|
@@ -2537,9 +2522,9 @@ async function Na(r) {
|
|
|
2537
2522
|
}
|
|
2538
2523
|
return u;
|
|
2539
2524
|
}
|
|
2540
|
-
class
|
|
2525
|
+
class $t {
|
|
2541
2526
|
constructor() {
|
|
2542
|
-
|
|
2527
|
+
y(this, "store");
|
|
2543
2528
|
this.store = this.getStoreFromWindow();
|
|
2544
2529
|
}
|
|
2545
2530
|
getStoreFromWindow() {
|
|
@@ -2584,7 +2569,7 @@ function zt(e) {
|
|
|
2584
2569
|
return !1;
|
|
2585
2570
|
}
|
|
2586
2571
|
}
|
|
2587
|
-
function
|
|
2572
|
+
function Kt(e, t, i) {
|
|
2588
2573
|
const n = {
|
|
2589
2574
|
configurable: !1,
|
|
2590
2575
|
enumerable: !1,
|
|
@@ -2592,23 +2577,23 @@ function qt(e, t, i) {
|
|
|
2592
2577
|
};
|
|
2593
2578
|
typeof i != "undefined" && (n.value = i), Object.defineProperty(e, t, n);
|
|
2594
2579
|
}
|
|
2595
|
-
class
|
|
2580
|
+
class qn {
|
|
2596
2581
|
static init() {
|
|
2597
|
-
return new
|
|
2582
|
+
return new qn();
|
|
2598
2583
|
}
|
|
2599
2584
|
constructor() {
|
|
2600
2585
|
window.top === window.self ? console.log("[CustomStorage] This is the main window") : console.log("[CustomStorage] This is NOT the main window"), this.replaceStorages();
|
|
2601
2586
|
}
|
|
2602
2587
|
replaceStorages() {
|
|
2603
2588
|
if (!this.isAvailable.localStorage) {
|
|
2604
|
-
const t = new
|
|
2605
|
-
|
|
2589
|
+
const t = new $t();
|
|
2590
|
+
Kt(window, "localStorage", t), console.log(
|
|
2606
2591
|
"[CustomStorage] LocalStorage is not available, custom implementation is defined"
|
|
2607
2592
|
);
|
|
2608
2593
|
}
|
|
2609
2594
|
if (!this.isAvailable.sessionStorage) {
|
|
2610
|
-
const t = new
|
|
2611
|
-
|
|
2595
|
+
const t = new $t();
|
|
2596
|
+
Kt(window, "sessionStorage", t), console.log(
|
|
2612
2597
|
"[CustomStorage] SessionStorage is not available, custom implementation is defined"
|
|
2613
2598
|
);
|
|
2614
2599
|
}
|
|
@@ -2620,126 +2605,56 @@ class Jn {
|
|
|
2620
2605
|
};
|
|
2621
2606
|
}
|
|
2622
2607
|
}
|
|
2623
|
-
|
|
2624
|
-
function
|
|
2625
|
-
|
|
2626
|
-
var i = arguments[t];
|
|
2627
|
-
for (var n in i)
|
|
2628
|
-
e[n] = i[n];
|
|
2629
|
-
}
|
|
2630
|
-
return e;
|
|
2631
|
-
}
|
|
2632
|
-
var Qr = {
|
|
2633
|
-
read: function(e) {
|
|
2634
|
-
return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
2635
|
-
},
|
|
2636
|
-
write: function(e) {
|
|
2637
|
-
return encodeURIComponent(e).replace(
|
|
2638
|
-
/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
|
|
2639
|
-
decodeURIComponent
|
|
2640
|
-
);
|
|
2641
|
-
}
|
|
2642
|
-
};
|
|
2643
|
-
function vt(e, t) {
|
|
2644
|
-
function i(r, a, o) {
|
|
2645
|
-
if (typeof document != "undefined") {
|
|
2646
|
-
o = Te({}, t, o), typeof o.expires == "number" && (o.expires = new Date(Date.now() + o.expires * 864e5)), o.expires && (o.expires = o.expires.toUTCString()), r = encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
2647
|
-
var s = "";
|
|
2648
|
-
for (var u in o)
|
|
2649
|
-
o[u] && (s += "; " + u, o[u] !== !0 && (s += "=" + o[u].split(";")[0]));
|
|
2650
|
-
return document.cookie = r + "=" + e.write(a, r) + s;
|
|
2651
|
-
}
|
|
2652
|
-
}
|
|
2653
|
-
function n(r) {
|
|
2654
|
-
if (!(typeof document == "undefined" || arguments.length && !r)) {
|
|
2655
|
-
for (var a = document.cookie ? document.cookie.split("; ") : [], o = {}, s = 0; s < a.length; s++) {
|
|
2656
|
-
var u = a[s].split("="), l = u.slice(1).join("=");
|
|
2657
|
-
try {
|
|
2658
|
-
var c = decodeURIComponent(u[0]);
|
|
2659
|
-
if (o[c] = e.read(l, c), r === c)
|
|
2660
|
-
break;
|
|
2661
|
-
} catch (h) {
|
|
2662
|
-
}
|
|
2663
|
-
}
|
|
2664
|
-
return r ? o[r] : o;
|
|
2665
|
-
}
|
|
2666
|
-
}
|
|
2667
|
-
return Object.create(
|
|
2668
|
-
{
|
|
2669
|
-
set: i,
|
|
2670
|
-
get: n,
|
|
2671
|
-
remove: function(r, a) {
|
|
2672
|
-
i(
|
|
2673
|
-
r,
|
|
2674
|
-
"",
|
|
2675
|
-
Te({}, a, {
|
|
2676
|
-
expires: -1
|
|
2677
|
-
})
|
|
2678
|
-
);
|
|
2679
|
-
},
|
|
2680
|
-
withAttributes: function(r) {
|
|
2681
|
-
return vt(this.converter, Te({}, this.attributes, r));
|
|
2682
|
-
},
|
|
2683
|
-
withConverter: function(r) {
|
|
2684
|
-
return vt(Te({}, this.converter, r), this.attributes);
|
|
2685
|
-
}
|
|
2686
|
-
},
|
|
2687
|
-
{
|
|
2688
|
-
attributes: { value: Object.freeze(t) },
|
|
2689
|
-
converter: { value: Object.freeze(e) }
|
|
2690
|
-
}
|
|
2691
|
-
);
|
|
2692
|
-
}
|
|
2693
|
-
var Wt = vt(Qr, { path: "/" }), De, Zr = new Uint8Array(16);
|
|
2694
|
-
function ea() {
|
|
2695
|
-
if (!De && (De = typeof crypto != "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto != "undefined" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), !De))
|
|
2608
|
+
var Te, Mr = new Uint8Array(16);
|
|
2609
|
+
function Ur() {
|
|
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))
|
|
2696
2611
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
2697
|
-
return
|
|
2612
|
+
return Te(Mr);
|
|
2698
2613
|
}
|
|
2699
|
-
const
|
|
2700
|
-
function
|
|
2701
|
-
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);
|
|
2702
2617
|
}
|
|
2703
|
-
var
|
|
2618
|
+
var k = [];
|
|
2704
2619
|
for (var it = 0; it < 256; ++it)
|
|
2705
|
-
|
|
2706
|
-
function
|
|
2707
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, i = (
|
|
2708
|
-
if (
|
|
2620
|
+
k.push((it + 256).toString(16).substr(1));
|
|
2621
|
+
function zr(e) {
|
|
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();
|
|
2623
|
+
if (!$r(i))
|
|
2709
2624
|
throw TypeError("Stringified UUID is invalid");
|
|
2710
2625
|
return i;
|
|
2711
2626
|
}
|
|
2712
|
-
function
|
|
2627
|
+
function Kr(e, t, i) {
|
|
2713
2628
|
e = e || {};
|
|
2714
|
-
var n = e.random || (e.rng ||
|
|
2629
|
+
var n = e.random || (e.rng || Ur)();
|
|
2715
2630
|
if (n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, t) {
|
|
2716
2631
|
i = i || 0;
|
|
2717
2632
|
for (var r = 0; r < 16; ++r)
|
|
2718
2633
|
t[i + r] = n[r];
|
|
2719
2634
|
return t;
|
|
2720
2635
|
}
|
|
2721
|
-
return
|
|
2636
|
+
return zr(n);
|
|
2722
2637
|
}
|
|
2723
|
-
const
|
|
2724
|
-
let e =
|
|
2725
|
-
return e || (e =
|
|
2638
|
+
const qt = "FINGERPRINT_LIVE_SHOPPING", Na = () => {
|
|
2639
|
+
let e = Ft.get(qt);
|
|
2640
|
+
return e || (e = Kr(), Ft.set(qt, e, { expires: 1 }), e);
|
|
2726
2641
|
};
|
|
2727
|
-
let
|
|
2728
|
-
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) => {
|
|
2729
2644
|
const t = Object.entries(e).map(([i, n]) => `${i}=${n}`).join("&");
|
|
2730
2645
|
return t ? `?${t}` : "";
|
|
2731
|
-
},
|
|
2646
|
+
}, Aa = (e, t, i = { fallback: null }) => {
|
|
2732
2647
|
let n = e;
|
|
2733
2648
|
t && (n = () => e().then((a) => ({ default: t(a) })));
|
|
2734
|
-
const r =
|
|
2735
|
-
return (a) => /* @__PURE__ */ rt(
|
|
2649
|
+
const r = ei(n);
|
|
2650
|
+
return (a) => /* @__PURE__ */ rt(ti, { fallback: i.fallback, children: /* @__PURE__ */ rt(r, ue({}, a)) });
|
|
2736
2651
|
};
|
|
2737
|
-
class
|
|
2652
|
+
class De {
|
|
2738
2653
|
constructor(t, i, n) {
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2654
|
+
y(this, "isOk");
|
|
2655
|
+
y(this, "isErr");
|
|
2656
|
+
y(this, "error");
|
|
2657
|
+
y(this, "_value");
|
|
2743
2658
|
if (t && i)
|
|
2744
2659
|
throw new Error(
|
|
2745
2660
|
"InvalidOperation: A result cannot be successful and contain an error"
|
|
@@ -2758,21 +2673,21 @@ class je {
|
|
|
2758
2673
|
return this._value;
|
|
2759
2674
|
}
|
|
2760
2675
|
static ok(t) {
|
|
2761
|
-
return new
|
|
2676
|
+
return new De(!0, void 0, t);
|
|
2762
2677
|
}
|
|
2763
2678
|
static fail(t) {
|
|
2764
|
-
return new
|
|
2679
|
+
return new De(!1, t);
|
|
2765
2680
|
}
|
|
2766
2681
|
static combine(t) {
|
|
2767
2682
|
for (const i of t)
|
|
2768
2683
|
if (i.isErr)
|
|
2769
2684
|
return i;
|
|
2770
|
-
return
|
|
2685
|
+
return De.ok();
|
|
2771
2686
|
}
|
|
2772
2687
|
}
|
|
2773
|
-
class
|
|
2688
|
+
class Hr {
|
|
2774
2689
|
constructor(t) {
|
|
2775
|
-
|
|
2690
|
+
y(this, "value");
|
|
2776
2691
|
this.value = t;
|
|
2777
2692
|
}
|
|
2778
2693
|
isErr() {
|
|
@@ -2782,9 +2697,9 @@ class oa {
|
|
|
2782
2697
|
return !1;
|
|
2783
2698
|
}
|
|
2784
2699
|
}
|
|
2785
|
-
class
|
|
2700
|
+
class Xr {
|
|
2786
2701
|
constructor(t) {
|
|
2787
|
-
|
|
2702
|
+
y(this, "value");
|
|
2788
2703
|
this.value = t;
|
|
2789
2704
|
}
|
|
2790
2705
|
isErr() {
|
|
@@ -2794,33 +2709,83 @@ class sa {
|
|
|
2794
2709
|
return !0;
|
|
2795
2710
|
}
|
|
2796
2711
|
}
|
|
2797
|
-
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
|
+
}
|
|
2798
2762
|
export {
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2763
|
+
ka as AccountInvalidError,
|
|
2764
|
+
ii as AggregateRoot,
|
|
2765
|
+
Ca as ApiGraphqlTypes,
|
|
2766
|
+
ma as BaseMobxStore,
|
|
2767
|
+
qn as CustomStorage,
|
|
2768
|
+
Ue as DomainError,
|
|
2769
|
+
Hr as Err,
|
|
2770
|
+
ri as InvalidNizzaGlobalObjectError,
|
|
2771
|
+
Yr as NizzaStore,
|
|
2772
|
+
ni as NizzaVariationTypes,
|
|
2773
|
+
Xr as Ok,
|
|
2774
|
+
_a as ResourceNotFoundError,
|
|
2775
|
+
De as Result,
|
|
2776
|
+
ba as StoreProvider,
|
|
2777
|
+
pa as UnexpectedError,
|
|
2778
|
+
ha as ValueObject,
|
|
2779
|
+
Sa as apiCall,
|
|
2780
|
+
va as createAggregateRoot,
|
|
2781
|
+
Ta as createStore,
|
|
2817
2782
|
Fa as err,
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
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,
|
|
2825
2790
|
ga as useStore
|
|
2826
2791
|
};
|