@nizza/core 0.3.0-alpha.8 → 0.3.0-beta.0

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