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