@nizza/core 0.5.0-beta.7 → 0.5.0-beta.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@ var $t = Object.defineProperty;
2
2
  var jt = (n, e, t) => e in n ? $t(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
3
  var R = (n, e, t) => (jt(n, typeof e != "symbol" ? e + "" : e, t), t);
4
4
  import * as M from "react";
5
- import fe, { createContext as ft, useReducer as zt, useEffect as pt, useDebugValue as Bt, useCallback as Qt, useContext as Ce, useMemo as Gt } from "react";
5
+ import me, { createContext as mt, useReducer as zt, useEffect as ft, useDebugValue as Bt, useCallback as Qt, useContext as we, useMemo as Gt } from "react";
6
6
  import { jsx as Kt } from "react/jsx-runtime";
7
7
  var _ = { NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
8
8
  let Wt = 0;
@@ -19,21 +19,21 @@ function Jt(n, e) {
19
19
  );
20
20
  }), e && (i.write = e), i;
21
21
  }
22
- const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new WeakMap(), qt = (n, e) => {
23
- re.set(n, e), n.catch(() => {
24
- }).finally(() => re.delete(n));
22
+ const ge = (n) => "init" in n, ke = (n) => !!n.write, se = /* @__PURE__ */ new WeakMap(), qt = (n, e) => {
23
+ se.set(n, e), n.catch(() => {
24
+ }).finally(() => se.delete(n));
25
+ }, Le = (n, e) => {
26
+ const t = se.get(n);
27
+ t && (se.delete(n), t(e));
25
28
  }, Ae = (n, e) => {
26
- const t = re.get(n);
27
- t && (re.delete(n), t(e));
28
- }, Pe = (n, e) => {
29
29
  n.status = "fulfilled", n.value = e;
30
- }, Ve = (n, e) => {
30
+ }, Pe = (n, e) => {
31
31
  n.status = "rejected", n.reason = e;
32
- }, Ht = (n) => typeof (n == null ? void 0 : n.then) == "function", J = (n, e) => !!n && "v" in n && "v" in e && Object.is(n.v, e.v), _e = (n, e) => !!n && "e" in n && "e" in e && Object.is(n.e, e.e), z = (n) => !!n && "v" in n && n.v instanceof Promise, Zt = (n, e) => "v" in n && "v" in e && n.v.orig && n.v.orig === e.v.orig, ne = (n) => {
32
+ }, Ht = (n) => typeof (n == null ? void 0 : n.then) == "function", W = (n, e) => !!n && "v" in n && "v" in e && Object.is(n.v, e.v), Ve = (n, e) => !!n && "e" in n && "e" in e && Object.is(n.e, e.e), z = (n) => !!n && "v" in n && n.v instanceof Promise, Zt = (n, e) => "v" in n && "v" in e && n.v.orig && n.v.orig === e.v.orig, te = (n) => {
33
33
  if ("e" in n)
34
34
  throw n.e;
35
35
  return n.v;
36
- }, ht = () => {
36
+ }, pt = () => {
37
37
  const n = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new Map();
38
38
  let i, a;
39
39
  (_ ? "production" : void 0) !== "production" && (i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set());
@@ -42,7 +42,7 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
42
42
  const h = n.get(m);
43
43
  if (n.set(m, p), t.has(m) || t.set(m, h), z(h)) {
44
44
  const g = "v" in p ? p.v instanceof Promise ? p.v : Promise.resolve(p.v) : Promise.reject(p.e);
45
- h.v !== g && Ae(h.v, g);
45
+ h.v !== g && Le(h.v, g);
46
46
  }
47
47
  }, o = (m, p, h) => {
48
48
  const g = /* @__PURE__ */ new Map();
@@ -55,7 +55,7 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
55
55
  d: (g == null ? void 0 : g.d) || /* @__PURE__ */ new Map(),
56
56
  v: p
57
57
  };
58
- if (h && o(m, b, h), J(g, b) && g.d === b.d)
58
+ if (h && o(m, b, h), W(g, b) && g.d === b.d)
59
59
  return g;
60
60
  if (z(g) && z(b) && Zt(g, b)) {
61
61
  if (g.d === b.d)
@@ -80,15 +80,15 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
80
80
  let x = !1;
81
81
  p.then(
82
82
  (T) => {
83
- x || (x = !0, Pe(v, T), E(T), C());
83
+ x || (x = !0, Ae(v, T), E(T), C());
84
84
  },
85
85
  (T) => {
86
- x || (x = !0, Ve(v, T), P(T), C());
86
+ x || (x = !0, Pe(v, T), P(T), C());
87
87
  }
88
88
  ), b = (T) => {
89
89
  x || (x = !0, T.then(
90
- (V) => Pe(v, V),
91
- (V) => Ve(v, V)
90
+ (V) => Ae(v, V),
91
+ (V) => Pe(v, V)
92
92
  ), E(T));
93
93
  };
94
94
  });
@@ -102,14 +102,14 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
102
102
  d: (g == null ? void 0 : g.d) || /* @__PURE__ */ new Map(),
103
103
  e: p
104
104
  };
105
- return h && o(m, b, h), _e(g, b) && g.d === b.d ? g : (r(m, b), b);
105
+ return h && o(m, b, h), Ve(g, b) && g.d === b.d ? g : (r(m, b), b);
106
106
  }, f = (m, p) => {
107
107
  const h = s(m);
108
108
  if (!p && h && (e.has(m) || Array.from(h.d).every(([x, T]) => {
109
109
  if (x === m)
110
110
  return !0;
111
111
  const V = f(x);
112
- return V === T || J(V, T);
112
+ return V === T || W(V, T);
113
113
  })))
114
114
  return h;
115
115
  const g = /* @__PURE__ */ new Map();
@@ -118,13 +118,13 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
118
118
  if (x === m) {
119
119
  const V = s(x);
120
120
  if (V)
121
- return g.set(x, V), ne(V);
122
- if (ke(x))
121
+ return g.set(x, V), te(V);
122
+ if (ge(x))
123
123
  return g.set(x, void 0), x.init;
124
124
  throw new Error("no atom init");
125
125
  }
126
126
  const T = f(x);
127
- return g.set(x, T), ne(T);
127
+ return g.set(x, T), te(T);
128
128
  };
129
129
  let v, E;
130
130
  const P = {
@@ -132,7 +132,7 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
132
132
  return v || (v = new AbortController()), v.signal;
133
133
  },
134
134
  get setSelf() {
135
- return (_ ? "production" : void 0) !== "production" && !ve(m) && console.warn("setSelf function cannot be used with read-only atom"), !E && ve(m) && (E = (...x) => {
135
+ return (_ ? "production" : void 0) !== "production" && !ke(m) && console.warn("setSelf function cannot be used with read-only atom"), !E && ke(m) && (E = (...x) => {
136
136
  if ((_ ? "production" : void 0) !== "production" && b && console.warn("setSelf function cannot be called in sync"), !b)
137
137
  return F(m, ...x);
138
138
  }), E;
@@ -151,7 +151,7 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
151
151
  } finally {
152
152
  b = !1;
153
153
  }
154
- }, c = (m) => ne(f(m)), S = (m) => {
154
+ }, c = (m) => te(f(m)), S = (m) => {
155
155
  let p = e.get(m);
156
156
  return p || (p = I(m)), p;
157
157
  }, y = (m, p) => !p.l.size && (!p.t.size || p.t.size === 1 && p.t.has(m)), k = (m) => {
@@ -182,8 +182,8 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
182
182
  if (x && h.set(E, --x), !x) {
183
183
  let T = !!((P = p.get(E)) != null && P.size);
184
184
  if (T) {
185
- const V = s(E), te = f(E, !0);
186
- T = !J(V, te);
185
+ const V = s(E), ee = f(E, !0);
186
+ T = !W(V, ee);
187
187
  }
188
188
  T || p.forEach((V) => V.delete(E));
189
189
  }
@@ -194,13 +194,13 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
194
194
  C(m);
195
195
  }, O = (m, ...p) => {
196
196
  let h = !0;
197
- const g = (v) => ne(f(v)), b = (v, ...E) => {
197
+ const g = (v) => te(f(v)), b = (v, ...E) => {
198
198
  let P;
199
199
  if (v === m) {
200
- if (!ke(v))
200
+ if (!ge(v))
201
201
  throw new Error("atom not writable");
202
202
  const x = s(v), T = u(v, E[0]);
203
- J(x, T) || N(v);
203
+ W(x, T) || N(v);
204
204
  } else
205
205
  P = O(v, ...E);
206
206
  if (!h) {
@@ -228,7 +228,7 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
228
228
  t: new Set(p && [p]),
229
229
  l: /* @__PURE__ */ new Set()
230
230
  };
231
- if (e.set(m, C), (_ ? "production" : void 0) !== "production" && a.add(m), ve(m) && m.onMount) {
231
+ if (e.set(m, C), (_ ? "production" : void 0) !== "production" && a.add(m), ke(m) && m.onMount) {
232
232
  const { onMount: v } = m;
233
233
  b.push(() => {
234
234
  const E = v((...P) => F(m, ...P));
@@ -241,7 +241,7 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
241
241
  const h = (p = e.get(m)) == null ? void 0 : p.u;
242
242
  h && h(), e.delete(m), (_ ? "production" : void 0) !== "production" && a.delete(m);
243
243
  const g = s(m);
244
- g ? (z(g) && Ae(g.v), g.d.forEach((b, C) => {
244
+ g ? (z(g) && Le(g.v), g.d.forEach((b, C) => {
245
245
  if (C !== m) {
246
246
  const v = e.get(C);
247
247
  v && (v.t.delete(m), y(C, v) && w(C));
@@ -270,7 +270,7 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
270
270
  const C = e.get(h);
271
271
  C && b.d !== (g == null ? void 0 : g.d) && D(h, b, g == null ? void 0 : g.d), C && !// TODO This seems pretty hacky. Hope to fix it.
272
272
  // Maybe we could `mountDependencies` in `setAtomState`?
273
- (!z(g) && (J(g, b) || _e(g, b))) && (C.l.forEach((v) => v()), (_ ? "production" : void 0) !== "production" && m.add(h));
273
+ (!z(g) && (W(g, b) || Ve(g, b))) && (C.l.forEach((v) => v()), (_ ? "production" : void 0) !== "production" && m.add(h));
274
274
  } else
275
275
  (_ ? "production" : void 0) !== "production" && console.warn("[Bug] no atom state to flush");
276
276
  });
@@ -302,7 +302,7 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
302
302
  dev_get_mounted: (m) => e.get(m),
303
303
  dev_restore_atoms: (m) => {
304
304
  for (const [h, g] of m)
305
- ke(h) && (u(h, g), N(h));
305
+ ge(h) && (u(h, g), N(h));
306
306
  const p = L();
307
307
  i.forEach(
308
308
  (h) => h({ type: "restore", flushed: p })
@@ -314,16 +314,16 @@ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new W
314
314
  sub: A
315
315
  };
316
316
  };
317
- let Se;
317
+ let ve;
318
318
  (_ ? "production" : void 0) !== "production" && (typeof globalThis.__NUMBER_OF_JOTAI_INSTANCES__ == "number" ? ++globalThis.__NUMBER_OF_JOTAI_INSTANCES__ : globalThis.__NUMBER_OF_JOTAI_INSTANCES__ = 1);
319
- const Xt = () => (Se || ((_ ? "production" : void 0) !== "production" && globalThis.__NUMBER_OF_JOTAI_INSTANCES__ !== 1 && console.warn(
319
+ const Xt = () => (ve || ((_ ? "production" : void 0) !== "production" && globalThis.__NUMBER_OF_JOTAI_INSTANCES__ !== 1 && console.warn(
320
320
  "Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"
321
- ), Se = ht()), Se);
321
+ ), ve = pt()), ve);
322
322
  var Yt = { NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
323
- const en = ft(void 0), gt = (n) => {
324
- const e = Ce(en);
323
+ const en = mt(void 0), ht = (n) => {
324
+ const e = we(en);
325
325
  return (n == null ? void 0 : n.store) || e || Xt();
326
- }, tn = (n) => typeof (n == null ? void 0 : n.then) == "function", nn = fe.use || ((n) => {
326
+ }, tn = (n) => typeof (n == null ? void 0 : n.then) == "function", nn = me.use || ((n) => {
327
327
  if (n.status === "pending")
328
328
  throw n;
329
329
  if (n.status === "fulfilled")
@@ -338,7 +338,7 @@ const en = ft(void 0), gt = (n) => {
338
338
  ), n);
339
339
  });
340
340
  function an(n, e) {
341
- const t = gt(e), [[i, a, s], r] = zt(
341
+ const t = ht(e), [[i, a, s], r] = zt(
342
342
  (u) => {
343
343
  const d = t.get(n);
344
344
  return Object.is(u[0], d) && u[1] === t && u[2] === n ? u : [d, t, n];
@@ -349,7 +349,7 @@ function an(n, e) {
349
349
  let o = i;
350
350
  (a !== t || s !== n) && (r(), o = t.get(n));
351
351
  const l = e == null ? void 0 : e.delay;
352
- return pt(() => {
352
+ return ft(() => {
353
353
  const u = t.sub(n, () => {
354
354
  if (typeof l == "number") {
355
355
  setTimeout(r, l);
@@ -361,7 +361,7 @@ function an(n, e) {
361
361
  }, [t, n, l]), Bt(o), tn(o) ? nn(o) : o;
362
362
  }
363
363
  function sn(n, e) {
364
- const t = gt(e);
364
+ const t = ht(e);
365
365
  return Qt(
366
366
  (...a) => {
367
367
  if ((Yt ? "production" : void 0) !== "production" && !("write" in n))
@@ -378,8 +378,8 @@ function rn(n, e) {
378
378
  sn(n, e)
379
379
  ];
380
380
  }
381
- const Ee = Jt(null);
382
- Ee.debugLabel = "accountAtom";
381
+ const Ce = Jt(null);
382
+ Ce.debugLabel = "accountAtom";
383
383
  var on = { NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
384
384
  const {
385
385
  NZ_AWS_REGION: ln,
@@ -412,7 +412,7 @@ const {
412
412
  wssIVSChat: "wss://edge.ivschat.us-east-1.amazonaws.com"
413
413
  }
414
414
  };
415
- async function kt(n) {
415
+ async function gt(n) {
416
416
  const {
417
417
  url: e,
418
418
  method: t = "GET",
@@ -450,8 +450,8 @@ async function kt(n) {
450
450
  throw console.error("[CustomFetch] ", u), u;
451
451
  }
452
452
  }
453
- const Ts = (n) => kt({ ...n, contentTypeJson: !1, raw: !1 });
454
- function Is(n, e, t) {
453
+ const Os = (n) => gt({ ...n, contentTypeJson: !1, raw: !1 });
454
+ function Rs(n, e, t) {
455
455
  fetch(e).then((i) => i.blob()).then((i) => fn(i, `${n}.${t}`));
456
456
  }
457
457
  const fn = (n, e, t) => {
@@ -465,303 +465,54 @@ const fn = (n, e, t) => {
465
465
  document.body.removeChild(r), window.URL.revokeObjectURL(s);
466
466
  }, 200);
467
467
  };
468
- var pn = { NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
469
- const Ue = (n) => {
470
- let e;
471
- const t = /* @__PURE__ */ new Set(), i = (l, u) => {
472
- const d = typeof l == "function" ? l(e) : l;
473
- if (!Object.is(d, e)) {
474
- const f = e;
475
- e = (u != null ? u : typeof d != "object" || d === null) ? d : Object.assign({}, e, d), t.forEach((c) => c(e, f));
476
- }
477
- }, a = () => e, o = { setState: i, getState: a, subscribe: (l) => (t.add(l), () => t.delete(l)), destroy: () => {
478
- (pn ? "production" : void 0) !== "production" && console.warn(
479
- "[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."
480
- ), t.clear();
481
- } };
482
- return e = n(i, a, o), o;
483
- }, hn = (n) => n ? Ue(n) : Ue;
484
- var vt = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
485
- function xe(n) {
486
- return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
487
- }
488
- var St = { exports: {} }, yt = {}, Nt = { exports: {} }, bt = {};
489
- /**
490
- * @license React
491
- * use-sync-external-store-shim.production.min.js
492
- *
493
- * Copyright (c) Facebook, Inc. and its affiliates.
494
- *
495
- * This source code is licensed under the MIT license found in the
496
- * LICENSE file in the root directory of this source tree.
497
- */
498
- var W = fe;
499
- function gn(n, e) {
500
- return n === e && (n !== 0 || 1 / n === 1 / e) || n !== n && e !== e;
501
- }
502
- var kn = typeof Object.is == "function" ? Object.is : gn, vn = W.useState, Sn = W.useEffect, yn = W.useLayoutEffect, Nn = W.useDebugValue;
503
- function bn(n, e) {
504
- var t = e(), i = vn({ inst: { value: t, getSnapshot: e } }), a = i[0].inst, s = i[1];
505
- return yn(function() {
506
- a.value = t, a.getSnapshot = e, ye(a) && s({ inst: a });
507
- }, [n, t, e]), Sn(function() {
508
- return ye(a) && s({ inst: a }), n(function() {
509
- ye(a) && s({ inst: a });
510
- });
511
- }, [n]), Nn(t), t;
512
- }
513
- function ye(n) {
514
- var e = n.getSnapshot;
515
- n = n.value;
468
+ function Ts() {
469
+ var i, a, s;
470
+ let n = null, e = null, t = null;
516
471
  try {
517
- var t = e();
518
- return !kn(n, t);
519
- } catch {
520
- return !0;
521
- }
522
- }
523
- function Fn(n, e) {
524
- return e();
525
- }
526
- var wn = typeof window == "undefined" || typeof window.document == "undefined" || typeof window.document.createElement == "undefined" ? Fn : bn;
527
- bt.useSyncExternalStore = W.useSyncExternalStore !== void 0 ? W.useSyncExternalStore : wn;
528
- Nt.exports = bt;
529
- var Ft = Nt.exports;
530
- /**
531
- * @license React
532
- * use-sync-external-store-shim/with-selector.production.min.js
533
- *
534
- * Copyright (c) Facebook, Inc. and its affiliates.
535
- *
536
- * This source code is licensed under the MIT license found in the
537
- * LICENSE file in the root directory of this source tree.
538
- */
539
- var pe = fe, Cn = Ft;
540
- function En(n, e) {
541
- return n === e && (n !== 0 || 1 / n === 1 / e) || n !== n && e !== e;
542
- }
543
- var xn = typeof Object.is == "function" ? Object.is : En, On = Cn.useSyncExternalStore, Rn = pe.useRef, Tn = pe.useEffect, In = pe.useMemo, Dn = pe.useDebugValue;
544
- yt.useSyncExternalStoreWithSelector = function(n, e, t, i, a) {
545
- var s = Rn(null);
546
- if (s.current === null) {
547
- var r = { hasValue: !1, value: null };
548
- s.current = r;
549
- } else
550
- r = s.current;
551
- s = In(function() {
552
- function l(S) {
553
- if (!u) {
554
- if (u = !0, d = S, S = i(S), a !== void 0 && r.hasValue) {
555
- var y = r.value;
556
- if (a(y, S))
557
- return f = y;
558
- }
559
- return f = S;
560
- }
561
- if (y = f, xn(d, S))
562
- return y;
563
- var k = i(S);
564
- return a !== void 0 && a(y, k) ? y : (d = S, f = k);
565
- }
566
- var u = !1, d, f, c = t === void 0 ? null : t;
567
- return [function() {
568
- return l(e());
569
- }, c === null ? void 0 : function() {
570
- return l(c());
571
- }];
572
- }, [e, t, i, a]);
573
- var o = On(n, s[0], s[1]);
574
- return Tn(function() {
575
- r.hasValue = !0, r.value = o;
576
- }, [o]), Dn(o), o;
577
- };
578
- St.exports = yt;
579
- var Ln = St.exports;
580
- const An = /* @__PURE__ */ xe(Ln);
581
- var wt = { NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
582
- const { useDebugValue: Pn } = fe, { useSyncExternalStoreWithSelector: Vn } = An;
583
- let Me = !1;
584
- function _n(n, e = n.getState, t) {
585
- (wt ? "production" : void 0) !== "production" && t && !Me && (console.warn(
586
- "[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"
587
- ), Me = !0);
588
- const i = Vn(
589
- n.subscribe,
590
- n.getState,
591
- n.getServerState || n.getState,
592
- e,
593
- t
594
- );
595
- return Pn(i), i;
596
- }
597
- const $e = (n) => {
598
- (wt ? "production" : void 0) !== "production" && typeof n != "function" && console.warn(
599
- "[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."
600
- );
601
- const e = typeof n == "function" ? hn(n) : n, t = (i, a) => _n(e, i, a);
602
- return Object.assign(t, e), t;
603
- }, Un = (n) => n ? $e(n) : $e;
604
- class Mn {
605
- constructor(e) {
606
- R(this, "channel");
607
- R(this, "listeners", /* @__PURE__ */ new Map());
608
- R(this, "eventQueue", /* @__PURE__ */ new Map());
609
- try {
610
- this.channel = new BroadcastChannel(e), this.channel.onmessage = (t) => this.handleMessage(t), this.channel.onmessageerror = (t) => K.error("NizzaBroadcastChannel:", t);
611
- } catch (t) {
612
- throw K.error("Failed to create NizzaBroadcastChannel:", t), t;
613
- }
614
- }
615
- /**
616
- * Subscribe a listener function to a specific event with wildcards.
617
- *
618
- * @param {string} event - The event name to subscribe to. You can use wildcards like 'user:*' or 'chat:**'.
619
- * @param {EventBusListener} listener - The listener function to handle the event.
620
- * @returns {EventBusSubscription} - A subscription object that includes the event name and the `off()` function for unsubscribing.
621
- * @example
622
- * const subscription = eventBus.on('user:*', (event) => {
623
- * console.log('User event:', event.name);
624
- * });
625
- * const chatSubscription = eventBus.on('chat:**', (event) => {
626
- * console.log('Chat event:', event.name);
627
- * });
628
- */
629
- on(e, t) {
630
- return this.subscribeToEvent(e, t), {
631
- off: () => this.unsubscribeFromEvent(e, t)
632
- };
633
- }
634
- /**
635
- * Emit an event through the BroadcastChannel.
636
- *
637
- * @param {string} event - The event name to emit.
638
- * @param {any} data - The data associated with the event.
639
- * @param {Attributes} attrs - Optional attributes associated with the event.
640
- * @example
641
- * // Emit a user login event
642
- * eventBus.emit('user:login', { username: 'user123' });
643
- *
644
- * // Emit a chat message event
645
- * eventBus.emit('chat:message', { text: 'Hello, world!' });
646
- */
647
- emit(e, t, i = {}) {
648
- this.emitEvent(e, t, i);
649
- }
650
- /**
651
- * Handle messages received through the BroadcastChannel and call the corresponding listener functions.
652
- *
653
- * @private
654
- * @param {MessageEvent} event - The received message event.
655
- */
656
- handleMessage(e) {
657
- const t = e.data, { name: i } = t;
658
- for (const [a, s] of this.listeners.entries())
659
- this.matchWildcard(a, i) && s.forEach(
660
- (r) => r({ ...t, wildcard: a })
661
- );
662
- }
663
- /**
664
- * Subscribe a listener function to a specific event.
665
- *
666
- * @private
667
- * @param {string} event - The event name to subscribe to.
668
- * @param {EventBusListener} listener - The listener function to handle the event.
669
- */
670
- subscribeToEvent(e, t) {
671
- if (typeof e != "string" || typeof t != "function") {
672
- const i = new Error("Invalid arguments");
673
- throw K.error(i), i;
674
- }
675
- for (const [i, a] of this.listeners.entries())
676
- if (this.matchWildcard(i, e)) {
677
- a.add(t);
678
- const s = this.eventQueue.get(i);
679
- s && (s.forEach((r) => {
680
- t({ ...r, wildcard: i });
681
- }), this.eventQueue.delete(i));
682
- return;
683
- }
684
- this.listeners.set(e, /* @__PURE__ */ new Set([t]));
685
- }
686
- /**
687
- * Emit an event and deliver it to the corresponding listeners.
688
- *
689
- * @private
690
- * @param {string} event - The event name to emit.
691
- * @param {any} data - The data associated with the event.
692
- * @param {Attributes} attrs - Optional attributes associated with the event.
693
- */
694
- emitEvent(e, t, i) {
695
- if (typeof e != "string") {
696
- const r = new Error("Invalid arguments");
697
- throw K.error(r), r;
698
- }
699
- const a = {
700
- name: e,
701
- data: t,
702
- attrs: i
703
- }, s = Array.from(this.getMatchingListeners(e));
704
- if (s.length)
705
- for (const [r, o] of s)
706
- o({ ...a, wildcard: r });
707
- else
708
- this.eventQueue.has(e) || this.eventQueue.set(e, []), this.eventQueue.get(e).push(a);
709
- this.channel.postMessage(a);
710
- }
711
- /**
712
- * Get listeners that match the event name pattern.
713
- *
714
- * @private
715
- * @param {string} event - The event name to match.
716
- * @returns {Iterable<[string, EventBusListener]>} - Iterable of matching listeners and their patterns.
717
- */
718
- *getMatchingListeners(e) {
719
- for (const [t, i] of this.listeners.entries())
720
- if (this.matchWildcard(t, e))
721
- for (const a of i)
722
- yield [t, a];
723
- }
724
- /**
725
- * Unsubscribe a listener function from a specific event.
726
- *
727
- * @private
728
- * @param {string} event - The event name to unsubscribe from.
729
- * @param {EventBusListener} listener - The listener function to unsubscribe.
730
- */
731
- unsubscribeFromEvent(e, t) {
732
- if (this.listeners.has(e)) {
733
- const i = this.listeners.get(e);
734
- i.delete(t), i.size === 0 && this.listeners.delete(e);
735
- }
736
- }
737
- /**
738
- * Match wildcards in event names.
739
- *
740
- * @private
741
- * @param {string} pattern - The wildcard pattern to match.
742
- * @param {string} eventName - The event name to check.
743
- * @returns {boolean} - `true` if the event name matches the pattern, otherwise `false`.
744
- */
745
- matchWildcard(e, t) {
746
- const i = e.replace(/\*/g, "[^:]*").replace(/\*\*/g, ".*");
747
- return new RegExp(`^${i}$`).test(t);
472
+ n = (s = (a = (i = Intl.DateTimeFormat()) == null ? void 0 : i.resolvedOptions()) == null ? void 0 : a.timeZone) != null ? s : null;
473
+ const r = -(/* @__PURE__ */ new Date()).getTimezoneOffset();
474
+ t = r;
475
+ const o = r >= 0 ? "+" : "-", l = String(
476
+ Math.floor(Math.abs(r) / 60)
477
+ ).padStart(2, "0"), u = String(Math.abs(r) % 60).padStart(
478
+ 2,
479
+ "0"
480
+ );
481
+ e = `${o}${l}:${u}`;
482
+ } catch (r) {
483
+ console.error(
484
+ "getClientTimeZone Error obtaining time zone or offset",
485
+ r
486
+ );
748
487
  }
488
+ return {
489
+ offset: e,
490
+ offsetValue: t,
491
+ value: n,
492
+ country: null,
493
+ included: null,
494
+ label: null
495
+ };
749
496
  }
750
- let $n = (n = 21) => crypto.getRandomValues(new Uint8Array(n)).reduce((e, t) => (t &= 63, t < 36 ? e += t.toString(36) : t < 62 ? e += (t - 26).toString(36).toUpperCase() : t > 62 ? e += "-" : e += "_", e), "");
751
- const jn = (n = 8) => $n(n), Ds = (n) => {
497
+ let pn = (n = 21) => crypto.getRandomValues(new Uint8Array(n)).reduce((e, t) => (t &= 63, t < 36 ? e += t.toString(36) : t < 62 ? e += (t - 26).toString(36).toUpperCase() : t > 62 ? e += "-" : e += "_", e), "");
498
+ const hn = (n = 8) => pn(n), Is = (n) => {
752
499
  const e = Object.entries(n).reduce((t, [i, a]) => a !== void 0 ? `${t}${t ? "&" : ""}${i}=${a}` : t, "");
753
500
  return e ? `?${e}` : "";
754
501
  };
755
- function Ls() {
502
+ function Ds() {
756
503
  const n = new Error().stack.split(`
757
504
  `);
758
505
  return n.length < 3 ? "" : n[2].trim().substring(3);
759
506
  }
760
- var Ct = { exports: {} };
507
+ var kt = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
508
+ function Ee(n) {
509
+ return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
510
+ }
511
+ var vt = { exports: {} };
761
512
  (function(n) {
762
513
  (function(e, t) {
763
514
  n.exports ? n.exports = t() : e.log = t();
764
- })(vt, function() {
515
+ })(kt, function() {
765
516
  var e = function() {
766
517
  }, t = "undefined", i = typeof window !== t && typeof window.navigator !== t && /Trident\/|MSIE /.test(window.navigator.userAgent), a = [
767
518
  "trace",
@@ -898,14 +649,14 @@ var Ct = { exports: {} };
898
649
  return S;
899
650
  }, c.default = c, c;
900
651
  });
901
- })(Ct);
902
- var Et = Ct.exports;
903
- const ie = /* @__PURE__ */ xe(Et);
904
- var xt = { exports: {} };
652
+ })(vt);
653
+ var St = vt.exports;
654
+ const ne = /* @__PURE__ */ Ee(St);
655
+ var yt = { exports: {} };
905
656
  (function(n) {
906
657
  (function(e, t) {
907
658
  n.exports ? n.exports = t() : e.prefix = t(e);
908
- })(vt, function(e) {
659
+ })(kt, function(e) {
909
660
  var t = function(d) {
910
661
  for (var f = 1, c = arguments.length, S; f < c; f++)
911
662
  for (S in arguments[f])
@@ -954,14 +705,14 @@ var xt = { exports: {} };
954
705
  return e.prefix === l && (e.prefix = u), l;
955
706
  }), l;
956
707
  });
957
- })(xt);
958
- var zn = xt.exports;
959
- const je = /* @__PURE__ */ xe(zn);
960
- let Bn = class {
708
+ })(yt);
709
+ var gn = yt.exports;
710
+ const _e = /* @__PURE__ */ Ee(gn);
711
+ let kn = class {
961
712
  constructor(e) {
962
- R(this, "defaultLevel", Et.levels.INFO);
713
+ R(this, "defaultLevel", St.levels.INFO);
963
714
  R(this, "namePrefix");
964
- this.namePrefix = e ? `${e}-` : "", ie.setDefaultLevel(this.defaultLevel), je.reg(ie), je.apply(ie, {
715
+ this.namePrefix = e ? `${e}-` : "", ne.setDefaultLevel(this.defaultLevel), _e.reg(ne), _e.apply(ne, {
965
716
  template: "[%t] %l (%n)",
966
717
  nameFormatter: (t) => {
967
718
  var i;
@@ -971,209 +722,11 @@ let Bn = class {
971
722
  });
972
723
  }
973
724
  createLogger(e) {
974
- const t = this.namePrefix + e.toLowerCase(), i = ie.getLogger(t), a = localStorage.getItem(`loglevel:${t}`);
725
+ const t = this.namePrefix + e.toLowerCase(), i = ne.getLogger(t), a = localStorage.getItem(`loglevel:${t}`);
975
726
  return a ? i.setLevel(a) : i.setLevel(this.defaultLevel), i;
976
727
  }
977
- }, $, Qn, K;
978
- const Gn = $.store;
979
- function Ps() {
980
- return $ = Kn(), Qn = $.log.createLogger("main"), K = $.log.createLogger("core"), $;
981
- }
982
- function Kn() {
983
- if (!window.nizza) {
984
- const n = Wn();
985
- window.nizza = n, window.nz = n;
986
- }
987
- return window.nizza;
988
- }
989
- function Wn() {
990
- const n = Un(() => ({
991
- config: null
992
- }));
993
- return {
994
- version: "1.0.4",
995
- store: n,
996
- configure: Jn,
997
- setProductDataSource: qn,
998
- instanceId: jn(),
999
- log: new Bn("nz"),
1000
- eventBus: new Mn("nizza"),
1001
- get state() {
1002
- return n.getState();
1003
- }
1004
- };
1005
- }
1006
- async function Jn(n) {
1007
- try {
1008
- const e = $.store.getState().account;
1009
- if ($.store.setState({ config: n }), (e == null ? void 0 : e.account) !== n.account) {
1010
- const t = await ta(n.account);
1011
- $.store.setState({ account: t });
1012
- }
1013
- if (n.getProductDataSource) {
1014
- const t = await n.getProductDataSource();
1015
- $.store.setState({ productDataSource: t });
1016
- }
1017
- } catch (e) {
1018
- console.error("Error configuring NizzaStore:", e);
1019
- }
1020
- }
1021
- function qn(n) {
1022
- $.store.setState({ productDataSource: n });
1023
- }
1024
- function G(n) {
1025
- return n != null && typeof n == "object" && n["@@functional/placeholder"] === !0;
1026
- }
1027
- function se(n) {
1028
- return function e(t) {
1029
- return arguments.length === 0 || G(t) ? e : n.apply(this, arguments);
1030
- };
1031
- }
1032
- function Oe(n) {
1033
- return function e(t, i) {
1034
- switch (arguments.length) {
1035
- case 0:
1036
- return e;
1037
- case 1:
1038
- return G(t) ? e : se(function(a) {
1039
- return n(t, a);
1040
- });
1041
- default:
1042
- return G(t) && G(i) ? e : G(t) ? se(function(a) {
1043
- return n(a, i);
1044
- }) : G(i) ? se(function(a) {
1045
- return n(t, a);
1046
- }) : n(t, i);
1047
- }
1048
- };
1049
- }
1050
- const Hn = Number.isInteger || function(e) {
1051
- return e << 0 === e;
1052
728
  };
1053
- function Zn(n) {
1054
- return Object.prototype.toString.call(n) === "[object String]";
1055
- }
1056
- var Xn = /* @__PURE__ */ Oe(function(e, t) {
1057
- var i = e < 0 ? t.length + e : e;
1058
- return Zn(t) ? t.charAt(i) : t[i];
1059
- });
1060
- const Yn = Xn;
1061
- var ei = /* @__PURE__ */ se(function(e) {
1062
- return e == null;
1063
- });
1064
- const ti = ei;
1065
- var ni = /* @__PURE__ */ Oe(function(e, t) {
1066
- return e.map(function(i) {
1067
- for (var a = t, s = 0, r; s < i.length; ) {
1068
- if (a == null)
1069
- return;
1070
- r = i[s], a = Hn(r) ? Yn(r, a) : a[r], s += 1;
1071
- }
1072
- return a;
1073
- });
1074
- });
1075
- const ii = ni;
1076
- var ai = /* @__PURE__ */ Oe(function(e, t) {
1077
- return ii([e], t)[0];
1078
- });
1079
- const si = ai;
1080
- class he extends Error {
1081
- constructor(e, t, i) {
1082
- super(t), this.value = i, this.name = e;
1083
- }
1084
- toDTO() {
1085
- return {
1086
- name: this.name,
1087
- message: this.message,
1088
- ...this.value && { value: this.value }
1089
- };
1090
- }
1091
- }
1092
- class ri extends he {
1093
- constructor(e) {
1094
- super(
1095
- "RESOURCE_NOT_FOUND_ERROR",
1096
- `Resource with id '${e}' not found.`,
1097
- e
1098
- );
1099
- }
1100
- }
1101
- class oi extends he {
1102
- constructor(e) {
1103
- var t;
1104
- super(
1105
- "APP_UNEXPECTED_ERROR",
1106
- (t = e.message) != null ? t : "An unexpected error occurred.",
1107
- e
1108
- );
1109
- }
1110
- }
1111
- class Vs extends he {
1112
- constructor() {
1113
- super("APP_ACCOUNT_INVALID_ERROR", "Account not defined");
1114
- }
1115
- }
1116
- class li extends he {
1117
- constructor(e) {
1118
- super(
1119
- "INVALID_NIZZA_GLOBAL_OBJECT_ERROR",
1120
- `
1121
- Configuration property invalid: "${e}".
1122
-
1123
- 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".
1124
-
1125
- * If you are using the @nizza/core library:
1126
-
1127
- import { nizza } from '@nizza/core';
1128
-
1129
- nizza.configure({
1130
- account: env.account,
1131
- ...
1132
- });
1133
-
1134
- * If you are using the window:
1135
-
1136
- window.nizza.configure({
1137
- account: env.account,
1138
- ...
1139
- });
1140
- `
1141
- );
1142
- }
1143
- }
1144
- function _s(n, e) {
1145
- e.forEach((t) => {
1146
- if (ti(si(t.split("."), n)))
1147
- throw new li(t);
1148
- });
1149
- }
1150
- function Us() {
1151
- var i, a, s;
1152
- let n = null, e = null, t = null;
1153
- try {
1154
- n = (s = (a = (i = Intl.DateTimeFormat()) == null ? void 0 : i.resolvedOptions()) == null ? void 0 : a.timeZone) != null ? s : null;
1155
- const r = -(/* @__PURE__ */ new Date()).getTimezoneOffset();
1156
- t = r;
1157
- const o = r >= 0 ? "+" : "-", l = String(
1158
- Math.floor(Math.abs(r) / 60)
1159
- ).padStart(2, "0"), u = String(Math.abs(r) % 60).padStart(
1160
- 2,
1161
- "0"
1162
- );
1163
- e = `${o}${l}:${u}`;
1164
- } catch {
1165
- K.error("Error obtaining time zone or offset");
1166
- }
1167
- return {
1168
- offset: e,
1169
- offsetValue: t,
1170
- value: n,
1171
- country: null,
1172
- included: null,
1173
- label: null
1174
- };
1175
- }
1176
- class di {
729
+ class vn {
1177
730
  constructor(e) {
1178
731
  R(this, "aggregate");
1179
732
  R(this, "_numSetPropsApplied", 0);
@@ -1188,12 +741,12 @@ class di {
1188
741
  return this._numSetPropsApplied === 1;
1189
742
  }
1190
743
  }
1191
- function ui(n) {
1192
- return new di(n);
744
+ function Sn(n) {
745
+ return new vn(n);
1193
746
  }
1194
- class Ms {
747
+ class As {
1195
748
  }
1196
- class $s {
749
+ class Ps {
1197
750
  constructor(e) {
1198
751
  R(this, "_value");
1199
752
  e !== void 0 && (this._value = e);
@@ -1202,13 +755,13 @@ class $s {
1202
755
  return this._value;
1203
756
  }
1204
757
  }
1205
- var Ot = /* @__PURE__ */ ((n) => (n.VTEX = "VTEX", n.VTEX_IO = "VTEX-IO", n.VTEX_CMS = "PORTAL-VTEX", n.PLATFORM = "PLATFORM", n.UNKNOWN = "UNKNOWN", n))(Ot || {}), ci = /* @__PURE__ */ ((n) => (n.PLATFORM = "platform_module", n.ADENDA = "subscription_module", n.APP_STORE = "app_store", n))(ci || {}), Rt = /* @__PURE__ */ ((n) => (n.ACTIVE = "active_contract", n.INACTIVE = "inactive_contract", n))(Rt || {}), mi = /* @__PURE__ */ ((n) => (n.LITE = "lite", n.STANDARD = "standard", n.PRO = "pro", n))(mi || {}), fi = /* @__PURE__ */ ((n) => (n.LITE = "PLAN_LITE", n.STANDARD = "PLAN_ESTANDAR", n.PRO = "PLAN_PRO", n.NONE = "NO_PLAN", n))(fi || {}), pi = /* @__PURE__ */ ((n) => (n.PAST = "past", n.LIVE = "live", n.FUTURE = "future", n))(pi || {});
1206
- class Re {
758
+ var Nt = /* @__PURE__ */ ((n) => (n.VTEX = "VTEX", n.VTEX_IO = "VTEX-IO", n.VTEX_CMS = "PORTAL-VTEX", n.PLATFORM = "PLATFORM", n.UNKNOWN = "UNKNOWN", n))(Nt || {}), yn = /* @__PURE__ */ ((n) => (n.PLATFORM = "platform_module", n.ADENDA = "subscription_module", n.APP_STORE = "app_store", n))(yn || {}), bt = /* @__PURE__ */ ((n) => (n.ACTIVE = "active_contract", n.INACTIVE = "inactive_contract", n))(bt || {}), Nn = /* @__PURE__ */ ((n) => (n.LITE = "lite", n.STANDARD = "standard", n.PRO = "pro", n))(Nn || {}), bn = /* @__PURE__ */ ((n) => (n.LITE = "PLAN_LITE", n.STANDARD = "PLAN_ESTANDAR", n.PRO = "PLAN_PRO", n.NONE = "NO_PLAN", n))(bn || {}), Fn = /* @__PURE__ */ ((n) => (n.PAST = "past", n.LIVE = "live", n.FUTURE = "future", n))(Fn || {});
759
+ class xe {
1207
760
  constructor(e) {
1208
- R(this, "root", ui(this));
761
+ R(this, "root", Sn(this));
1209
762
  R(this, "id");
1210
763
  R(this, "account");
1211
- R(this, "accountType", Ot.UNKNOWN);
764
+ R(this, "accountType", Nt.UNKNOWN);
1212
765
  R(this, "username");
1213
766
  R(this, "currencyConfig");
1214
767
  R(this, "contractType");
@@ -1216,7 +769,7 @@ class Re {
1216
769
  R(this, "spendedMinutes", 0);
1217
770
  R(this, "unlimitedService", !1);
1218
771
  R(this, "hoursAvailable", 0);
1219
- R(this, "contractStatus", Rt.ACTIVE);
772
+ R(this, "contractStatus", bt.ACTIVE);
1220
773
  R(this, "createdAt");
1221
774
  R(this, "installationDateApp");
1222
775
  R(this, "cxAccount");
@@ -1238,7 +791,7 @@ class Re {
1238
791
  username: i != null ? i : a.account,
1239
792
  createdAt: new Date(Number(t))
1240
793
  };
1241
- return new Re(s);
794
+ return new xe(s);
1242
795
  }
1243
796
  toPrimitives() {
1244
797
  const { root: e, createdAt: t, ...i } = this;
@@ -1248,16 +801,80 @@ class Re {
1248
801
  };
1249
802
  }
1250
803
  }
1251
- const hi = `${mn.apiUrls.restV1}/accounts/v2`;
1252
- class gi {
804
+ const wn = `${mn.apiUrls.restV1}/accounts/v2`;
805
+ class Cn {
1253
806
  async get(e) {
1254
- const t = `${hi}/${e}`, { data: i } = await kt({
807
+ const t = `${wn}/${e}`, { data: i } = await gt({
1255
808
  url: t
1256
809
  });
1257
- return i ? Re.toDomain(i) : null;
810
+ return i ? xe.toDomain(i) : null;
811
+ }
812
+ }
813
+ class fe extends Error {
814
+ constructor(e, t, i) {
815
+ super(t), this.value = i, this.name = e;
816
+ }
817
+ toDTO() {
818
+ return {
819
+ name: this.name,
820
+ message: this.message,
821
+ ...this.value && { value: this.value }
822
+ };
823
+ }
824
+ }
825
+ class En extends fe {
826
+ constructor(e) {
827
+ super(
828
+ "RESOURCE_NOT_FOUND_ERROR",
829
+ `Resource with id '${e}' not found.`,
830
+ e
831
+ );
832
+ }
833
+ }
834
+ class xn extends fe {
835
+ constructor(e) {
836
+ var t;
837
+ super(
838
+ "APP_UNEXPECTED_ERROR",
839
+ (t = e.message) != null ? t : "An unexpected error occurred.",
840
+ e
841
+ );
842
+ }
843
+ }
844
+ class Vs extends fe {
845
+ constructor() {
846
+ super("APP_ACCOUNT_INVALID_ERROR", "Account not defined");
847
+ }
848
+ }
849
+ class On extends fe {
850
+ constructor(e) {
851
+ super(
852
+ "INVALID_NIZZA_GLOBAL_OBJECT_ERROR",
853
+ `
854
+ Configuration property invalid: "${e}".
855
+
856
+ 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".
857
+
858
+ * If you are using the @nizza/core library:
859
+
860
+ import { nizza } from '@nizza/core';
861
+
862
+ nizza.configure({
863
+ account: env.account,
864
+ ...
865
+ });
866
+
867
+ * If you are using the window:
868
+
869
+ window.nizza.configure({
870
+ account: env.account,
871
+ ...
872
+ });
873
+ `
874
+ );
1258
875
  }
1259
876
  }
1260
- class ki {
877
+ class Rn {
1261
878
  constructor(e) {
1262
879
  this.accountRepository = e;
1263
880
  }
@@ -1265,15 +882,15 @@ class ki {
1265
882
  try {
1266
883
  const t = await this.accountRepository.get(e);
1267
884
  if (!t)
1268
- throw new ri(e);
885
+ throw new En(e);
1269
886
  return t;
1270
887
  } catch (t) {
1271
- throw new oi(t);
888
+ throw new xn(t);
1272
889
  }
1273
890
  }
1274
891
  }
1275
- const vi = new gi(), Tt = new ki(vi);
1276
- class Te {
892
+ const Tn = new Cn(), Ft = new Rn(Tn);
893
+ class Oe {
1277
894
  constructor() {
1278
895
  this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
1279
896
  }
@@ -1293,17 +910,17 @@ class Te {
1293
910
  onUnsubscribe() {
1294
911
  }
1295
912
  }
1296
- const oe = typeof window == "undefined" || "Deno" in window;
1297
- function Si() {
913
+ const re = typeof window == "undefined" || "Deno" in window;
914
+ function In() {
1298
915
  }
1299
- function ze(n) {
916
+ function Ue(n) {
1300
917
  return typeof n == "number" && n >= 0 && n !== 1 / 0;
1301
918
  }
1302
- function yi(n, e) {
919
+ function Dn(n, e) {
1303
920
  return Math.max(n + (e || 0) - Date.now(), 0);
1304
921
  }
1305
- function Ni(n, e, t) {
1306
- return bi(n) ? typeof e == "function" ? {
922
+ function Ln(n, e, t) {
923
+ return An(n) ? typeof e == "function" ? {
1307
924
  ...t,
1308
925
  queryKey: n,
1309
926
  queryFn: e
@@ -1312,22 +929,22 @@ function Ni(n, e, t) {
1312
929
  queryKey: n
1313
930
  } : n;
1314
931
  }
1315
- function It(n, e) {
932
+ function wt(n, e) {
1316
933
  if (n === e)
1317
934
  return n;
1318
- const t = Be(n) && Be(e);
1319
- if (t || Qe(n) && Qe(e)) {
935
+ const t = Me(n) && Me(e);
936
+ if (t || $e(n) && $e(e)) {
1320
937
  const i = t ? n.length : Object.keys(n).length, a = t ? e : Object.keys(e), s = a.length, r = t ? [] : {};
1321
938
  let o = 0;
1322
939
  for (let l = 0; l < s; l++) {
1323
940
  const u = t ? l : a[l];
1324
- r[u] = It(n[u], e[u]), r[u] === n[u] && o++;
941
+ r[u] = wt(n[u], e[u]), r[u] === n[u] && o++;
1325
942
  }
1326
943
  return i === s && o === i ? n : r;
1327
944
  }
1328
945
  return e;
1329
946
  }
1330
- function be(n, e) {
947
+ function Ne(n, e) {
1331
948
  if (n && !e || e && !n)
1332
949
  return !1;
1333
950
  for (const t in n)
@@ -1335,39 +952,39 @@ function be(n, e) {
1335
952
  return !1;
1336
953
  return !0;
1337
954
  }
1338
- function Be(n) {
955
+ function Me(n) {
1339
956
  return Array.isArray(n) && n.length === Object.keys(n).length;
1340
957
  }
1341
- function Qe(n) {
1342
- if (!Ge(n))
958
+ function $e(n) {
959
+ if (!je(n))
1343
960
  return !1;
1344
961
  const e = n.constructor;
1345
962
  if (typeof e == "undefined")
1346
963
  return !0;
1347
964
  const t = e.prototype;
1348
- return !(!Ge(t) || !t.hasOwnProperty("isPrototypeOf"));
965
+ return !(!je(t) || !t.hasOwnProperty("isPrototypeOf"));
1349
966
  }
1350
- function Ge(n) {
967
+ function je(n) {
1351
968
  return Object.prototype.toString.call(n) === "[object Object]";
1352
969
  }
1353
- function bi(n) {
970
+ function An(n) {
1354
971
  return Array.isArray(n);
1355
972
  }
1356
- function Fi(n) {
973
+ function Pn(n) {
1357
974
  return new Promise((e) => {
1358
975
  setTimeout(e, n);
1359
976
  });
1360
977
  }
1361
- function Ke(n) {
1362
- Fi(0).then(n);
978
+ function ze(n) {
979
+ Pn(0).then(n);
1363
980
  }
1364
- function We(n, e, t) {
1365
- return t.isDataEqual != null && t.isDataEqual(n, e) ? n : typeof t.structuralSharing == "function" ? t.structuralSharing(n, e) : t.structuralSharing !== !1 ? It(n, e) : e;
981
+ function Be(n, e, t) {
982
+ return t.isDataEqual != null && t.isDataEqual(n, e) ? n : typeof t.structuralSharing == "function" ? t.structuralSharing(n, e) : t.structuralSharing !== !1 ? wt(n, e) : e;
1366
983
  }
1367
- class wi extends Te {
984
+ class Vn extends Oe {
1368
985
  constructor() {
1369
986
  super(), this.setup = (e) => {
1370
- if (!oe && window.addEventListener) {
987
+ if (!re && window.addEventListener) {
1371
988
  const t = () => e();
1372
989
  return window.addEventListener("visibilitychange", t, !1), window.addEventListener("focus", t, !1), () => {
1373
990
  window.removeEventListener("visibilitychange", t), window.removeEventListener("focus", t);
@@ -1404,16 +1021,16 @@ class wi extends Te {
1404
1021
  return typeof this.focused == "boolean" ? this.focused : typeof document == "undefined" ? !0 : [void 0, "visible", "prerender"].includes(document.visibilityState);
1405
1022
  }
1406
1023
  }
1407
- const Ci = new wi(), Je = ["online", "offline"];
1408
- class Ei extends Te {
1024
+ const _n = new Vn(), Qe = ["online", "offline"];
1025
+ class Un extends Oe {
1409
1026
  constructor() {
1410
1027
  super(), this.setup = (e) => {
1411
- if (!oe && window.addEventListener) {
1028
+ if (!re && window.addEventListener) {
1412
1029
  const t = () => e();
1413
- return Je.forEach((i) => {
1030
+ return Qe.forEach((i) => {
1414
1031
  window.addEventListener(i, t, !1);
1415
1032
  }), () => {
1416
- Je.forEach((i) => {
1033
+ Qe.forEach((i) => {
1417
1034
  window.removeEventListener(i, t);
1418
1035
  });
1419
1036
  };
@@ -1449,19 +1066,19 @@ class Ei extends Te {
1449
1066
  return typeof this.online == "boolean" ? this.online : typeof navigator == "undefined" || typeof navigator.onLine == "undefined" ? !0 : navigator.onLine;
1450
1067
  }
1451
1068
  }
1452
- const xi = new Ei();
1453
- function Oi(n) {
1454
- return (n != null ? n : "online") === "online" ? xi.isOnline() : !0;
1069
+ const Mn = new Un();
1070
+ function $n(n) {
1071
+ return (n != null ? n : "online") === "online" ? Mn.isOnline() : !0;
1455
1072
  }
1456
- class Ri {
1073
+ class jn {
1457
1074
  constructor(e) {
1458
1075
  this.revert = e == null ? void 0 : e.revert, this.silent = e == null ? void 0 : e.silent;
1459
1076
  }
1460
1077
  }
1461
- function Ti(n) {
1462
- return n instanceof Ri;
1078
+ function zn(n) {
1079
+ return n instanceof jn;
1463
1080
  }
1464
- function Ii() {
1081
+ function Bn() {
1465
1082
  let n = [], e = 0, t = (d) => {
1466
1083
  d();
1467
1084
  }, i = (d) => {
@@ -1477,7 +1094,7 @@ function Ii() {
1477
1094
  }
1478
1095
  return f;
1479
1096
  }, s = (d) => {
1480
- e ? n.push(d) : Ke(() => {
1097
+ e ? n.push(d) : ze(() => {
1481
1098
  t(d);
1482
1099
  });
1483
1100
  }, r = (d) => (...f) => {
@@ -1486,7 +1103,7 @@ function Ii() {
1486
1103
  });
1487
1104
  }, o = () => {
1488
1105
  const d = n;
1489
- n = [], d.length && Ke(() => {
1106
+ n = [], d.length && ze(() => {
1490
1107
  i(() => {
1491
1108
  d.forEach((f) => {
1492
1109
  t(f);
@@ -1506,8 +1123,8 @@ function Ii() {
1506
1123
  }
1507
1124
  };
1508
1125
  }
1509
- const X = Ii();
1510
- class Di extends Te {
1126
+ const Z = Bn();
1127
+ class Qn extends Oe {
1511
1128
  constructor(e, t) {
1512
1129
  super(), this.client = e, this.options = t, this.trackedProps = /* @__PURE__ */ new Set(), this.selectError = null, this.bindMethods(), this.setOptions(t);
1513
1130
  }
@@ -1515,23 +1132,23 @@ class Di extends Te {
1515
1132
  this.remove = this.remove.bind(this), this.refetch = this.refetch.bind(this);
1516
1133
  }
1517
1134
  onSubscribe() {
1518
- this.listeners.size === 1 && (this.currentQuery.addObserver(this), qe(this.currentQuery, this.options) && this.executeFetch(), this.updateTimers());
1135
+ this.listeners.size === 1 && (this.currentQuery.addObserver(this), Ge(this.currentQuery, this.options) && this.executeFetch(), this.updateTimers());
1519
1136
  }
1520
1137
  onUnsubscribe() {
1521
1138
  this.hasListeners() || this.destroy();
1522
1139
  }
1523
1140
  shouldFetchOnReconnect() {
1524
- return Fe(this.currentQuery, this.options, this.options.refetchOnReconnect);
1141
+ return be(this.currentQuery, this.options, this.options.refetchOnReconnect);
1525
1142
  }
1526
1143
  shouldFetchOnWindowFocus() {
1527
- return Fe(this.currentQuery, this.options, this.options.refetchOnWindowFocus);
1144
+ return be(this.currentQuery, this.options, this.options.refetchOnWindowFocus);
1528
1145
  }
1529
1146
  destroy() {
1530
1147
  this.listeners = /* @__PURE__ */ new Set(), this.clearStaleTimeout(), this.clearRefetchInterval(), this.currentQuery.removeObserver(this);
1531
1148
  }
1532
1149
  setOptions(e, t) {
1533
1150
  const i = this.options, a = this.currentQuery;
1534
- if (this.options = this.client.defaultQueryOptions(e), be(i, this.options) || this.client.getQueryCache().notify({
1151
+ if (this.options = this.client.defaultQueryOptions(e), Ne(i, this.options) || this.client.getQueryCache().notify({
1535
1152
  type: "observerOptionsUpdated",
1536
1153
  query: this.currentQuery,
1537
1154
  observer: this
@@ -1539,13 +1156,13 @@ class Di extends Te {
1539
1156
  throw new Error("Expected enabled to be a boolean");
1540
1157
  this.options.queryKey || (this.options.queryKey = i.queryKey), this.updateQuery();
1541
1158
  const s = this.hasListeners();
1542
- s && He(this.currentQuery, a, this.options, i) && this.executeFetch(), this.updateResult(t), s && (this.currentQuery !== a || this.options.enabled !== i.enabled || this.options.staleTime !== i.staleTime) && this.updateStaleTimeout();
1159
+ s && Ke(this.currentQuery, a, this.options, i) && this.executeFetch(), this.updateResult(t), s && (this.currentQuery !== a || this.options.enabled !== i.enabled || this.options.staleTime !== i.staleTime) && this.updateStaleTimeout();
1543
1160
  const r = this.computeRefetchInterval();
1544
1161
  s && (this.currentQuery !== a || this.options.enabled !== i.enabled || r !== this.currentRefetchInterval) && this.updateRefetchInterval(r);
1545
1162
  }
1546
1163
  getOptimisticResult(e) {
1547
1164
  const t = this.client.getQueryCache().build(this.client, e), i = this.createResult(t, e);
1548
- return Ai(this, i, e) && (this.currentResult = i, this.currentResultOptions = this.options, this.currentResultState = this.currentQuery.state), i;
1165
+ return Kn(this, i, e) && (this.currentResult = i, this.currentResultOptions = this.options, this.currentResultState = this.currentQuery.state), i;
1549
1166
  }
1550
1167
  getCurrentResult() {
1551
1168
  return this.currentResult;
@@ -1591,12 +1208,12 @@ class Di extends Te {
1591
1208
  executeFetch(e) {
1592
1209
  this.updateQuery();
1593
1210
  let t = this.currentQuery.fetch(this.options, e);
1594
- return e != null && e.throwOnError || (t = t.catch(Si)), t;
1211
+ return e != null && e.throwOnError || (t = t.catch(In)), t;
1595
1212
  }
1596
1213
  updateStaleTimeout() {
1597
- if (this.clearStaleTimeout(), oe || this.currentResult.isStale || !ze(this.options.staleTime))
1214
+ if (this.clearStaleTimeout(), re || this.currentResult.isStale || !Ue(this.options.staleTime))
1598
1215
  return;
1599
- const t = yi(this.currentResult.dataUpdatedAt, this.options.staleTime) + 1;
1216
+ const t = Dn(this.currentResult.dataUpdatedAt, this.options.staleTime) + 1;
1600
1217
  this.staleTimeoutId = setTimeout(() => {
1601
1218
  this.currentResult.isStale || this.updateResult();
1602
1219
  }, t);
@@ -1606,8 +1223,8 @@ class Di extends Te {
1606
1223
  return typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.currentResult.data, this.currentQuery) : (e = this.options.refetchInterval) != null ? e : !1;
1607
1224
  }
1608
1225
  updateRefetchInterval(e) {
1609
- this.clearRefetchInterval(), this.currentRefetchInterval = e, !(oe || this.options.enabled === !1 || !ze(this.currentRefetchInterval) || this.currentRefetchInterval === 0) && (this.refetchIntervalId = setInterval(() => {
1610
- (this.options.refetchIntervalInBackground || Ci.isFocused()) && this.executeFetch();
1226
+ this.clearRefetchInterval(), this.currentRefetchInterval = e, !(re || this.options.enabled === !1 || !Ue(this.currentRefetchInterval) || this.currentRefetchInterval === 0) && (this.refetchIntervalId = setInterval(() => {
1227
+ (this.options.refetchIntervalInBackground || _n.isFocused()) && this.executeFetch();
1611
1228
  }, this.currentRefetchInterval));
1612
1229
  }
1613
1230
  updateTimers() {
@@ -1631,8 +1248,8 @@ class Di extends Te {
1631
1248
  status: N
1632
1249
  } = f, O = !1, F = !1, I;
1633
1250
  if (t._optimisticResults) {
1634
- const m = this.hasListeners(), p = !m && qe(e, t), h = m && He(e, i, t, a);
1635
- (p || h) && (k = Oi(e.options.networkMode) ? "fetching" : "paused", c || (N = "loading")), t._optimisticResults === "isRestoring" && (k = "idle");
1251
+ const m = this.hasListeners(), p = !m && Ge(e, t), h = m && Ke(e, i, t, a);
1252
+ (p || h) && (k = $n(e.options.networkMode) ? "fetching" : "paused", c || (N = "loading")), t._optimisticResults === "isRestoring" && (k = "idle");
1636
1253
  }
1637
1254
  if (t.keepPreviousData && !f.dataUpdatedAt && d != null && d.isSuccess && N !== "error")
1638
1255
  I = d.data, c = d.dataUpdatedAt, N = d.status, O = !0;
@@ -1641,7 +1258,7 @@ class Di extends Te {
1641
1258
  I = this.selectResult;
1642
1259
  else
1643
1260
  try {
1644
- this.selectFn = t.select, I = t.select(f.data), I = We(s == null ? void 0 : s.data, I, t), this.selectResult = I, this.selectError = null;
1261
+ this.selectFn = t.select, I = t.select(f.data), I = Be(s == null ? void 0 : s.data, I, t), this.selectResult = I, this.selectError = null;
1645
1262
  } catch (m) {
1646
1263
  this.selectError = m;
1647
1264
  }
@@ -1657,7 +1274,7 @@ class Di extends Te {
1657
1274
  } catch (p) {
1658
1275
  this.selectError = p;
1659
1276
  }
1660
- typeof m != "undefined" && (N = "success", I = We(s == null ? void 0 : s.data, m, t), F = !0);
1277
+ typeof m != "undefined" && (N = "success", I = Be(s == null ? void 0 : s.data, m, t), F = !0);
1661
1278
  }
1662
1279
  this.selectError && (S = this.selectError, I = this.selectResult, y = Date.now(), N = "error");
1663
1280
  const w = k === "fetching", D = N === "loading", L = N === "error";
@@ -1684,191 +1301,578 @@ class Di extends Te {
1684
1301
  isPlaceholderData: F,
1685
1302
  isPreviousData: O,
1686
1303
  isRefetchError: L && f.dataUpdatedAt !== 0,
1687
- isStale: Ie(e, t),
1304
+ isStale: Re(e, t),
1688
1305
  refetch: this.refetch,
1689
1306
  remove: this.remove
1690
1307
  };
1691
1308
  }
1692
- updateResult(e) {
1693
- const t = this.currentResult, i = this.createResult(this.currentQuery, this.options);
1694
- if (this.currentResultState = this.currentQuery.state, this.currentResultOptions = this.options, be(i, t))
1695
- return;
1696
- this.currentResult = i;
1309
+ updateResult(e) {
1310
+ const t = this.currentResult, i = this.createResult(this.currentQuery, this.options);
1311
+ if (this.currentResultState = this.currentQuery.state, this.currentResultOptions = this.options, Ne(i, t))
1312
+ return;
1313
+ this.currentResult = i;
1314
+ const a = {
1315
+ cache: !0
1316
+ }, s = () => {
1317
+ if (!t)
1318
+ return !0;
1319
+ const {
1320
+ notifyOnChangeProps: r
1321
+ } = this.options, o = typeof r == "function" ? r() : r;
1322
+ if (o === "all" || !o && !this.trackedProps.size)
1323
+ return !0;
1324
+ const l = new Set(o != null ? o : this.trackedProps);
1325
+ return this.options.useErrorBoundary && l.add("error"), Object.keys(this.currentResult).some((u) => {
1326
+ const d = u;
1327
+ return this.currentResult[d] !== t[d] && l.has(d);
1328
+ });
1329
+ };
1330
+ (e == null ? void 0 : e.listeners) !== !1 && s() && (a.listeners = !0), this.notify({
1331
+ ...a,
1332
+ ...e
1333
+ });
1334
+ }
1335
+ updateQuery() {
1336
+ const e = this.client.getQueryCache().build(this.client, this.options);
1337
+ if (e === this.currentQuery)
1338
+ return;
1339
+ const t = this.currentQuery;
1340
+ this.currentQuery = e, this.currentQueryInitialState = e.state, this.previousQueryResult = this.currentResult, this.hasListeners() && (t == null || t.removeObserver(this), e.addObserver(this));
1341
+ }
1342
+ onQueryUpdate(e) {
1343
+ const t = {};
1344
+ e.type === "success" ? t.onSuccess = !e.manual : e.type === "error" && !zn(e.error) && (t.onError = !0), this.updateResult(t), this.hasListeners() && this.updateTimers();
1345
+ }
1346
+ notify(e) {
1347
+ Z.batch(() => {
1348
+ if (e.onSuccess) {
1349
+ var t, i, a, s;
1350
+ (t = (i = this.options).onSuccess) == null || t.call(i, this.currentResult.data), (a = (s = this.options).onSettled) == null || a.call(s, this.currentResult.data, null);
1351
+ } else if (e.onError) {
1352
+ var r, o, l, u;
1353
+ (r = (o = this.options).onError) == null || r.call(o, this.currentResult.error), (l = (u = this.options).onSettled) == null || l.call(u, void 0, this.currentResult.error);
1354
+ }
1355
+ e.listeners && this.listeners.forEach(({
1356
+ listener: d
1357
+ }) => {
1358
+ d(this.currentResult);
1359
+ }), e.cache && this.client.getQueryCache().notify({
1360
+ query: this.currentQuery,
1361
+ type: "observerResultsUpdated"
1362
+ });
1363
+ });
1364
+ }
1365
+ }
1366
+ function Gn(n, e) {
1367
+ return e.enabled !== !1 && !n.state.dataUpdatedAt && !(n.state.status === "error" && e.retryOnMount === !1);
1368
+ }
1369
+ function Ge(n, e) {
1370
+ return Gn(n, e) || n.state.dataUpdatedAt > 0 && be(n, e, e.refetchOnMount);
1371
+ }
1372
+ function be(n, e, t) {
1373
+ if (e.enabled !== !1) {
1374
+ const i = typeof t == "function" ? t(n) : t;
1375
+ return i === "always" || i !== !1 && Re(n, e);
1376
+ }
1377
+ return !1;
1378
+ }
1379
+ function Ke(n, e, t, i) {
1380
+ return t.enabled !== !1 && (n !== e || i.enabled === !1) && (!t.suspense || n.state.status !== "error") && Re(n, t);
1381
+ }
1382
+ function Re(n, e) {
1383
+ return n.isStaleByTime(e.staleTime);
1384
+ }
1385
+ function Kn(n, e, t) {
1386
+ return t.keepPreviousData ? !1 : t.placeholderData !== void 0 ? e.isPlaceholderData : !Ne(n.getCurrentResult(), e);
1387
+ }
1388
+ var Ct = { exports: {} }, Et = {};
1389
+ /**
1390
+ * @license React
1391
+ * use-sync-external-store-shim.production.min.js
1392
+ *
1393
+ * Copyright (c) Facebook, Inc. and its affiliates.
1394
+ *
1395
+ * This source code is licensed under the MIT license found in the
1396
+ * LICENSE file in the root directory of this source tree.
1397
+ */
1398
+ var K = me;
1399
+ function Wn(n, e) {
1400
+ return n === e && (n !== 0 || 1 / n === 1 / e) || n !== n && e !== e;
1401
+ }
1402
+ var Jn = typeof Object.is == "function" ? Object.is : Wn, qn = K.useState, Hn = K.useEffect, Zn = K.useLayoutEffect, Xn = K.useDebugValue;
1403
+ function Yn(n, e) {
1404
+ var t = e(), i = qn({ inst: { value: t, getSnapshot: e } }), a = i[0].inst, s = i[1];
1405
+ return Zn(function() {
1406
+ a.value = t, a.getSnapshot = e, Se(a) && s({ inst: a });
1407
+ }, [n, t, e]), Hn(function() {
1408
+ return Se(a) && s({ inst: a }), n(function() {
1409
+ Se(a) && s({ inst: a });
1410
+ });
1411
+ }, [n]), Xn(t), t;
1412
+ }
1413
+ function Se(n) {
1414
+ var e = n.getSnapshot;
1415
+ n = n.value;
1416
+ try {
1417
+ var t = e();
1418
+ return !Jn(n, t);
1419
+ } catch {
1420
+ return !0;
1421
+ }
1422
+ }
1423
+ function ei(n, e) {
1424
+ return e();
1425
+ }
1426
+ var ti = typeof window == "undefined" || typeof window.document == "undefined" || typeof window.document.createElement == "undefined" ? ei : Yn;
1427
+ Et.useSyncExternalStore = K.useSyncExternalStore !== void 0 ? K.useSyncExternalStore : ti;
1428
+ Ct.exports = Et;
1429
+ var xt = Ct.exports;
1430
+ const ni = xt.useSyncExternalStore, We = /* @__PURE__ */ M.createContext(void 0), ii = /* @__PURE__ */ M.createContext(!1);
1431
+ function ai(n, e) {
1432
+ return n || (e && typeof window != "undefined" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext = We), window.ReactQueryClientContext) : We);
1433
+ }
1434
+ const si = ({
1435
+ context: n
1436
+ } = {}) => {
1437
+ const e = M.useContext(ai(n, M.useContext(ii)));
1438
+ if (!e)
1439
+ throw new Error("No QueryClient set, use QueryClientProvider to set one");
1440
+ return e;
1441
+ }, Ot = /* @__PURE__ */ M.createContext(!1), ri = () => M.useContext(Ot);
1442
+ Ot.Provider;
1443
+ function oi() {
1444
+ let n = !1;
1445
+ return {
1446
+ clearReset: () => {
1447
+ n = !1;
1448
+ },
1449
+ reset: () => {
1450
+ n = !0;
1451
+ },
1452
+ isReset: () => n
1453
+ };
1454
+ }
1455
+ const li = /* @__PURE__ */ M.createContext(oi()), di = () => M.useContext(li);
1456
+ function ui(n, e) {
1457
+ return typeof n == "function" ? n(...e) : !!n;
1458
+ }
1459
+ const ci = (n, e) => {
1460
+ (n.suspense || n.useErrorBoundary) && (e.isReset() || (n.retryOnMount = !1));
1461
+ }, mi = (n) => {
1462
+ M.useEffect(() => {
1463
+ n.clearReset();
1464
+ }, [n]);
1465
+ }, fi = ({
1466
+ result: n,
1467
+ errorResetBoundary: e,
1468
+ useErrorBoundary: t,
1469
+ query: i
1470
+ }) => n.isError && !e.isReset() && !n.isFetching && ui(t, [n.error, i]), pi = (n) => {
1471
+ n.suspense && typeof n.staleTime != "number" && (n.staleTime = 1e3);
1472
+ }, hi = (n, e) => n.isLoading && n.isFetching && !e, gi = (n, e, t) => (n == null ? void 0 : n.suspense) && hi(e, t), ki = (n, e, t) => e.fetchOptimistic(n).then(({
1473
+ data: i
1474
+ }) => {
1475
+ n.onSuccess == null || n.onSuccess(i), n.onSettled == null || n.onSettled(i, null);
1476
+ }).catch((i) => {
1477
+ t.clearReset(), n.onError == null || n.onError(i), n.onSettled == null || n.onSettled(void 0, i);
1478
+ });
1479
+ function vi(n, e) {
1480
+ const t = si({
1481
+ context: n.context
1482
+ }), i = ri(), a = di(), s = t.defaultQueryOptions(n);
1483
+ s._optimisticResults = i ? "isRestoring" : "optimistic", s.onError && (s.onError = Z.batchCalls(s.onError)), s.onSuccess && (s.onSuccess = Z.batchCalls(s.onSuccess)), s.onSettled && (s.onSettled = Z.batchCalls(s.onSettled)), pi(s), ci(s, a), mi(a);
1484
+ const [r] = M.useState(() => new e(t, s)), o = r.getOptimisticResult(s);
1485
+ if (ni(M.useCallback((l) => {
1486
+ const u = i ? () => {
1487
+ } : r.subscribe(Z.batchCalls(l));
1488
+ return r.updateResult(), u;
1489
+ }, [r, i]), () => r.getCurrentResult(), () => r.getCurrentResult()), M.useEffect(() => {
1490
+ r.setOptions(s, {
1491
+ listeners: !1
1492
+ });
1493
+ }, [s, r]), gi(s, o, i))
1494
+ throw ki(s, r, a);
1495
+ if (fi({
1496
+ result: o,
1497
+ errorResetBoundary: a,
1498
+ useErrorBoundary: s.useErrorBoundary,
1499
+ query: r.getCurrentQuery()
1500
+ }))
1501
+ throw o.error;
1502
+ return s.notifyOnChangeProps ? o : r.trackResult(o);
1503
+ }
1504
+ function Si(n, e, t) {
1505
+ const i = Ln(n, e, t);
1506
+ return vi(i, Qn);
1507
+ }
1508
+ var yi = { NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
1509
+ const Je = (n) => {
1510
+ let e;
1511
+ const t = /* @__PURE__ */ new Set(), i = (l, u) => {
1512
+ const d = typeof l == "function" ? l(e) : l;
1513
+ if (!Object.is(d, e)) {
1514
+ const f = e;
1515
+ e = (u != null ? u : typeof d != "object" || d === null) ? d : Object.assign({}, e, d), t.forEach((c) => c(e, f));
1516
+ }
1517
+ }, a = () => e, o = { setState: i, getState: a, subscribe: (l) => (t.add(l), () => t.delete(l)), destroy: () => {
1518
+ (yi ? "production" : void 0) !== "production" && console.warn(
1519
+ "[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."
1520
+ ), t.clear();
1521
+ } };
1522
+ return e = n(i, a, o), o;
1523
+ }, Ni = (n) => n ? Je(n) : Je;
1524
+ var Rt = { exports: {} }, Tt = {};
1525
+ /**
1526
+ * @license React
1527
+ * use-sync-external-store-shim/with-selector.production.min.js
1528
+ *
1529
+ * Copyright (c) Facebook, Inc. and its affiliates.
1530
+ *
1531
+ * This source code is licensed under the MIT license found in the
1532
+ * LICENSE file in the root directory of this source tree.
1533
+ */
1534
+ var pe = me, bi = xt;
1535
+ function Fi(n, e) {
1536
+ return n === e && (n !== 0 || 1 / n === 1 / e) || n !== n && e !== e;
1537
+ }
1538
+ var wi = typeof Object.is == "function" ? Object.is : Fi, Ci = bi.useSyncExternalStore, Ei = pe.useRef, xi = pe.useEffect, Oi = pe.useMemo, Ri = pe.useDebugValue;
1539
+ Tt.useSyncExternalStoreWithSelector = function(n, e, t, i, a) {
1540
+ var s = Ei(null);
1541
+ if (s.current === null) {
1542
+ var r = { hasValue: !1, value: null };
1543
+ s.current = r;
1544
+ } else
1545
+ r = s.current;
1546
+ s = Oi(function() {
1547
+ function l(S) {
1548
+ if (!u) {
1549
+ if (u = !0, d = S, S = i(S), a !== void 0 && r.hasValue) {
1550
+ var y = r.value;
1551
+ if (a(y, S))
1552
+ return f = y;
1553
+ }
1554
+ return f = S;
1555
+ }
1556
+ if (y = f, wi(d, S))
1557
+ return y;
1558
+ var k = i(S);
1559
+ return a !== void 0 && a(y, k) ? y : (d = S, f = k);
1560
+ }
1561
+ var u = !1, d, f, c = t === void 0 ? null : t;
1562
+ return [function() {
1563
+ return l(e());
1564
+ }, c === null ? void 0 : function() {
1565
+ return l(c());
1566
+ }];
1567
+ }, [e, t, i, a]);
1568
+ var o = Ci(n, s[0], s[1]);
1569
+ return xi(function() {
1570
+ r.hasValue = !0, r.value = o;
1571
+ }, [o]), Ri(o), o;
1572
+ };
1573
+ Rt.exports = Tt;
1574
+ var Ti = Rt.exports;
1575
+ const Ii = /* @__PURE__ */ Ee(Ti);
1576
+ var It = { NZ_AWS_REGION: "us-east-1", NZ_VTEX_PROJECT: "/Users/jbermudez/TODO/PROJECTS/live-shopping", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
1577
+ const { useDebugValue: Di } = me, { useSyncExternalStoreWithSelector: Li } = Ii;
1578
+ let qe = !1;
1579
+ function Ai(n, e = n.getState, t) {
1580
+ (It ? "production" : void 0) !== "production" && t && !qe && (console.warn(
1581
+ "[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"
1582
+ ), qe = !0);
1583
+ const i = Li(
1584
+ n.subscribe,
1585
+ n.getState,
1586
+ n.getServerState || n.getState,
1587
+ e,
1588
+ t
1589
+ );
1590
+ return Di(i), i;
1591
+ }
1592
+ const He = (n) => {
1593
+ (It ? "production" : void 0) !== "production" && typeof n != "function" && console.warn(
1594
+ "[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."
1595
+ );
1596
+ const e = typeof n == "function" ? Ni(n) : n, t = (i, a) => Ai(e, i, a);
1597
+ return Object.assign(t, e), t;
1598
+ }, Pi = (n) => n ? He(n) : He;
1599
+ class Vi {
1600
+ constructor(e) {
1601
+ R(this, "channel");
1602
+ R(this, "listeners", /* @__PURE__ */ new Map());
1603
+ R(this, "eventQueue", /* @__PURE__ */ new Map());
1604
+ try {
1605
+ this.channel = new BroadcastChannel(e), this.channel.onmessage = (t) => this.handleMessage(t), this.channel.onmessageerror = (t) => console.error("NizzaBroadcastChannel:", t);
1606
+ } catch (t) {
1607
+ throw console.error("Failed to create NizzaBroadcastChannel:", t), t;
1608
+ }
1609
+ }
1610
+ /**
1611
+ * Subscribe a listener function to a specific event with wildcards.
1612
+ *
1613
+ * @param {string} event - The event name to subscribe to. You can use wildcards like 'user:*' or 'chat:**'.
1614
+ * @param {EventBusListener} listener - The listener function to handle the event.
1615
+ * @returns {EventBusSubscription} - A subscription object that includes the event name and the `off()` function for unsubscribing.
1616
+ * @example
1617
+ * const subscription = eventBus.on('user:*', (event) => {
1618
+ * console.log('User event:', event.name);
1619
+ * });
1620
+ * const chatSubscription = eventBus.on('chat:**', (event) => {
1621
+ * console.log('Chat event:', event.name);
1622
+ * });
1623
+ */
1624
+ on(e, t) {
1625
+ return this.subscribeToEvent(e, t), {
1626
+ off: () => this.unsubscribeFromEvent(e, t)
1627
+ };
1628
+ }
1629
+ /**
1630
+ * Emit an event through the BroadcastChannel.
1631
+ *
1632
+ * @param {string} event - The event name to emit.
1633
+ * @param {any} data - The data associated with the event.
1634
+ * @param {Attributes} attrs - Optional attributes associated with the event.
1635
+ * @example
1636
+ * // Emit a user login event
1637
+ * eventBus.emit('user:login', { username: 'user123' });
1638
+ *
1639
+ * // Emit a chat message event
1640
+ * eventBus.emit('chat:message', { text: 'Hello, world!' });
1641
+ */
1642
+ emit(e, t, i = {}) {
1643
+ this.emitEvent(e, t, i);
1644
+ }
1645
+ /**
1646
+ * Handle messages received through the BroadcastChannel and call the corresponding listener functions.
1647
+ *
1648
+ * @private
1649
+ * @param {MessageEvent} event - The received message event.
1650
+ */
1651
+ handleMessage(e) {
1652
+ const t = e.data, { name: i } = t;
1653
+ for (const [a, s] of this.listeners.entries())
1654
+ this.matchWildcard(a, i) && s.forEach(
1655
+ (r) => r({ ...t, wildcard: a })
1656
+ );
1657
+ }
1658
+ /**
1659
+ * Subscribe a listener function to a specific event.
1660
+ *
1661
+ * @private
1662
+ * @param {string} event - The event name to subscribe to.
1663
+ * @param {EventBusListener} listener - The listener function to handle the event.
1664
+ */
1665
+ subscribeToEvent(e, t) {
1666
+ if (typeof e != "string" || typeof t != "function") {
1667
+ const i = new Error("Invalid arguments");
1668
+ throw console.error(i), i;
1669
+ }
1670
+ for (const [i, a] of this.listeners.entries())
1671
+ if (this.matchWildcard(i, e)) {
1672
+ a.add(t);
1673
+ const s = this.eventQueue.get(i);
1674
+ s && (s.forEach((r) => {
1675
+ t({ ...r, wildcard: i });
1676
+ }), this.eventQueue.delete(i));
1677
+ return;
1678
+ }
1679
+ this.listeners.set(e, /* @__PURE__ */ new Set([t]));
1680
+ }
1681
+ /**
1682
+ * Emit an event and deliver it to the corresponding listeners.
1683
+ *
1684
+ * @private
1685
+ * @param {string} event - The event name to emit.
1686
+ * @param {any} data - The data associated with the event.
1687
+ * @param {Attributes} attrs - Optional attributes associated with the event.
1688
+ */
1689
+ emitEvent(e, t, i) {
1690
+ if (typeof e != "string") {
1691
+ const r = new Error("Invalid arguments");
1692
+ throw console.error(r), r;
1693
+ }
1697
1694
  const a = {
1698
- cache: !0
1699
- }, s = () => {
1700
- if (!t)
1701
- return !0;
1702
- const {
1703
- notifyOnChangeProps: r
1704
- } = this.options, o = typeof r == "function" ? r() : r;
1705
- if (o === "all" || !o && !this.trackedProps.size)
1706
- return !0;
1707
- const l = new Set(o != null ? o : this.trackedProps);
1708
- return this.options.useErrorBoundary && l.add("error"), Object.keys(this.currentResult).some((u) => {
1709
- const d = u;
1710
- return this.currentResult[d] !== t[d] && l.has(d);
1711
- });
1712
- };
1713
- (e == null ? void 0 : e.listeners) !== !1 && s() && (a.listeners = !0), this.notify({
1714
- ...a,
1715
- ...e
1716
- });
1695
+ name: e,
1696
+ data: t,
1697
+ attrs: i
1698
+ }, s = Array.from(this.getMatchingListeners(e));
1699
+ if (s.length)
1700
+ for (const [r, o] of s)
1701
+ o({ ...a, wildcard: r });
1702
+ else
1703
+ this.eventQueue.has(e) || this.eventQueue.set(e, []), this.eventQueue.get(e).push(a);
1704
+ this.channel.postMessage(a);
1717
1705
  }
1718
- updateQuery() {
1719
- const e = this.client.getQueryCache().build(this.client, this.options);
1720
- if (e === this.currentQuery)
1721
- return;
1722
- const t = this.currentQuery;
1723
- this.currentQuery = e, this.currentQueryInitialState = e.state, this.previousQueryResult = this.currentResult, this.hasListeners() && (t == null || t.removeObserver(this), e.addObserver(this));
1706
+ /**
1707
+ * Get listeners that match the event name pattern.
1708
+ *
1709
+ * @private
1710
+ * @param {string} event - The event name to match.
1711
+ * @returns {Iterable<[string, EventBusListener]>} - Iterable of matching listeners and their patterns.
1712
+ */
1713
+ *getMatchingListeners(e) {
1714
+ for (const [t, i] of this.listeners.entries())
1715
+ if (this.matchWildcard(t, e))
1716
+ for (const a of i)
1717
+ yield [t, a];
1724
1718
  }
1725
- onQueryUpdate(e) {
1726
- const t = {};
1727
- e.type === "success" ? t.onSuccess = !e.manual : e.type === "error" && !Ti(e.error) && (t.onError = !0), this.updateResult(t), this.hasListeners() && this.updateTimers();
1719
+ /**
1720
+ * Unsubscribe a listener function from a specific event.
1721
+ *
1722
+ * @private
1723
+ * @param {string} event - The event name to unsubscribe from.
1724
+ * @param {EventBusListener} listener - The listener function to unsubscribe.
1725
+ */
1726
+ unsubscribeFromEvent(e, t) {
1727
+ if (this.listeners.has(e)) {
1728
+ const i = this.listeners.get(e);
1729
+ i.delete(t), i.size === 0 && this.listeners.delete(e);
1730
+ }
1728
1731
  }
1729
- notify(e) {
1730
- X.batch(() => {
1731
- if (e.onSuccess) {
1732
- var t, i, a, s;
1733
- (t = (i = this.options).onSuccess) == null || t.call(i, this.currentResult.data), (a = (s = this.options).onSettled) == null || a.call(s, this.currentResult.data, null);
1734
- } else if (e.onError) {
1735
- var r, o, l, u;
1736
- (r = (o = this.options).onError) == null || r.call(o, this.currentResult.error), (l = (u = this.options).onSettled) == null || l.call(u, void 0, this.currentResult.error);
1737
- }
1738
- e.listeners && this.listeners.forEach(({
1739
- listener: d
1740
- }) => {
1741
- d(this.currentResult);
1742
- }), e.cache && this.client.getQueryCache().notify({
1743
- query: this.currentQuery,
1744
- type: "observerResultsUpdated"
1745
- });
1746
- });
1732
+ /**
1733
+ * Match wildcards in event names.
1734
+ *
1735
+ * @private
1736
+ * @param {string} pattern - The wildcard pattern to match.
1737
+ * @param {string} eventName - The event name to check.
1738
+ * @returns {boolean} - `true` if the event name matches the pattern, otherwise `false`.
1739
+ */
1740
+ matchWildcard(e, t) {
1741
+ const i = e.replace(/\*/g, "[^:]*").replace(/\*\*/g, ".*");
1742
+ return new RegExp(`^${i}$`).test(t);
1747
1743
  }
1748
1744
  }
1749
- function Li(n, e) {
1750
- return e.enabled !== !1 && !n.state.dataUpdatedAt && !(n.state.status === "error" && e.retryOnMount === !1);
1751
- }
1752
- function qe(n, e) {
1753
- return Li(n, e) || n.state.dataUpdatedAt > 0 && Fe(n, e, e.refetchOnMount);
1745
+ let j, Dt;
1746
+ function _s() {
1747
+ return j = _i(), Dt = j.store, j;
1754
1748
  }
1755
- function Fe(n, e, t) {
1756
- if (e.enabled !== !1) {
1757
- const i = typeof t == "function" ? t(n) : t;
1758
- return i === "always" || i !== !1 && Ie(n, e);
1749
+ function _i() {
1750
+ if (!window.nizza) {
1751
+ const n = Ui();
1752
+ window.nizza = n, window.nz = n;
1759
1753
  }
1760
- return !1;
1754
+ return window.nizza;
1755
+ }
1756
+ function Ui() {
1757
+ const n = Pi(() => ({
1758
+ config: null
1759
+ }));
1760
+ return {
1761
+ version: "1.0.4",
1762
+ store: n,
1763
+ configure: Mi,
1764
+ setProductDataSource: $i,
1765
+ instanceId: hn(),
1766
+ log: new kn("nz"),
1767
+ eventBus: new Vi("nizza"),
1768
+ get state() {
1769
+ return n.getState();
1770
+ }
1771
+ };
1761
1772
  }
1762
- function He(n, e, t, i) {
1763
- return t.enabled !== !1 && (n !== e || i.enabled === !1) && (!t.suspense || n.state.status !== "error") && Ie(n, t);
1773
+ async function Mi(n) {
1774
+ try {
1775
+ const e = j.store.getState().account;
1776
+ if (j.store.setState({ config: n }), (e == null ? void 0 : e.account) !== n.account) {
1777
+ const t = await Yi(n.account);
1778
+ j.store.setState({ account: t });
1779
+ }
1780
+ if (n.getProductDataSource) {
1781
+ const t = await n.getProductDataSource();
1782
+ j.store.setState({ productDataSource: t });
1783
+ }
1784
+ } catch (e) {
1785
+ console.error("Error configuring NizzaStore:", e);
1786
+ }
1764
1787
  }
1765
- function Ie(n, e) {
1766
- return n.isStaleByTime(e.staleTime);
1788
+ function $i(n) {
1789
+ j.store.setState({ productDataSource: n });
1767
1790
  }
1768
- function Ai(n, e, t) {
1769
- return t.keepPreviousData ? !1 : t.placeholderData !== void 0 ? e.isPlaceholderData : !be(n.getCurrentResult(), e);
1791
+ function G(n) {
1792
+ return n != null && typeof n == "object" && n["@@functional/placeholder"] === !0;
1770
1793
  }
1771
- const Pi = Ft.useSyncExternalStore, Ze = /* @__PURE__ */ M.createContext(void 0), Vi = /* @__PURE__ */ M.createContext(!1);
1772
- function _i(n, e) {
1773
- return n || (e && typeof window != "undefined" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext = Ze), window.ReactQueryClientContext) : Ze);
1794
+ function ae(n) {
1795
+ return function e(t) {
1796
+ return arguments.length === 0 || G(t) ? e : n.apply(this, arguments);
1797
+ };
1774
1798
  }
1775
- const Ui = ({
1776
- context: n
1777
- } = {}) => {
1778
- const e = M.useContext(_i(n, M.useContext(Vi)));
1779
- if (!e)
1780
- throw new Error("No QueryClient set, use QueryClientProvider to set one");
1781
- return e;
1782
- }, Dt = /* @__PURE__ */ M.createContext(!1), Mi = () => M.useContext(Dt);
1783
- Dt.Provider;
1784
- function $i() {
1785
- let n = !1;
1786
- return {
1787
- clearReset: () => {
1788
- n = !1;
1789
- },
1790
- reset: () => {
1791
- n = !0;
1792
- },
1793
- isReset: () => n
1799
+ function Te(n) {
1800
+ return function e(t, i) {
1801
+ switch (arguments.length) {
1802
+ case 0:
1803
+ return e;
1804
+ case 1:
1805
+ return G(t) ? e : ae(function(a) {
1806
+ return n(t, a);
1807
+ });
1808
+ default:
1809
+ return G(t) && G(i) ? e : G(t) ? ae(function(a) {
1810
+ return n(a, i);
1811
+ }) : G(i) ? ae(function(a) {
1812
+ return n(t, a);
1813
+ }) : n(t, i);
1814
+ }
1794
1815
  };
1795
1816
  }
1796
- const ji = /* @__PURE__ */ M.createContext($i()), zi = () => M.useContext(ji);
1797
- function Bi(n, e) {
1798
- return typeof n == "function" ? n(...e) : !!n;
1817
+ const ji = Number.isInteger || function(e) {
1818
+ return e << 0 === e;
1819
+ };
1820
+ function zi(n) {
1821
+ return Object.prototype.toString.call(n) === "[object String]";
1799
1822
  }
1800
- const Qi = (n, e) => {
1801
- (n.suspense || n.useErrorBoundary) && (e.isReset() || (n.retryOnMount = !1));
1802
- }, Gi = (n) => {
1803
- M.useEffect(() => {
1804
- n.clearReset();
1805
- }, [n]);
1806
- }, Ki = ({
1807
- result: n,
1808
- errorResetBoundary: e,
1809
- useErrorBoundary: t,
1810
- query: i
1811
- }) => n.isError && !e.isReset() && !n.isFetching && Bi(t, [n.error, i]), Wi = (n) => {
1812
- n.suspense && typeof n.staleTime != "number" && (n.staleTime = 1e3);
1813
- }, Ji = (n, e) => n.isLoading && n.isFetching && !e, qi = (n, e, t) => (n == null ? void 0 : n.suspense) && Ji(e, t), Hi = (n, e, t) => e.fetchOptimistic(n).then(({
1814
- data: i
1815
- }) => {
1816
- n.onSuccess == null || n.onSuccess(i), n.onSettled == null || n.onSettled(i, null);
1817
- }).catch((i) => {
1818
- t.clearReset(), n.onError == null || n.onError(i), n.onSettled == null || n.onSettled(void 0, i);
1823
+ var Bi = /* @__PURE__ */ Te(function(e, t) {
1824
+ var i = e < 0 ? t.length + e : e;
1825
+ return zi(t) ? t.charAt(i) : t[i];
1819
1826
  });
1820
- function Zi(n, e) {
1821
- const t = Ui({
1822
- context: n.context
1823
- }), i = Mi(), a = zi(), s = t.defaultQueryOptions(n);
1824
- s._optimisticResults = i ? "isRestoring" : "optimistic", s.onError && (s.onError = X.batchCalls(s.onError)), s.onSuccess && (s.onSuccess = X.batchCalls(s.onSuccess)), s.onSettled && (s.onSettled = X.batchCalls(s.onSettled)), Wi(s), Qi(s, a), Gi(a);
1825
- const [r] = M.useState(() => new e(t, s)), o = r.getOptimisticResult(s);
1826
- if (Pi(M.useCallback((l) => {
1827
- const u = i ? () => {
1828
- } : r.subscribe(X.batchCalls(l));
1829
- return r.updateResult(), u;
1830
- }, [r, i]), () => r.getCurrentResult(), () => r.getCurrentResult()), M.useEffect(() => {
1831
- r.setOptions(s, {
1832
- listeners: !1
1833
- });
1834
- }, [s, r]), qi(s, o, i))
1835
- throw Hi(s, r, a);
1836
- if (Ki({
1837
- result: o,
1838
- errorResetBoundary: a,
1839
- useErrorBoundary: s.useErrorBoundary,
1840
- query: r.getCurrentQuery()
1841
- }))
1842
- throw o.error;
1843
- return s.notifyOnChangeProps ? o : r.trackResult(o);
1844
- }
1845
- function Xi(n, e, t) {
1846
- const i = Ni(n, e, t);
1847
- return Zi(i, Di);
1827
+ const Qi = Bi;
1828
+ var Gi = /* @__PURE__ */ ae(function(e) {
1829
+ return e == null;
1830
+ });
1831
+ const Ki = Gi;
1832
+ var Wi = /* @__PURE__ */ Te(function(e, t) {
1833
+ return e.map(function(i) {
1834
+ for (var a = t, s = 0, r; s < i.length; ) {
1835
+ if (a == null)
1836
+ return;
1837
+ r = i[s], a = ji(r) ? Qi(r, a) : a[r], s += 1;
1838
+ }
1839
+ return a;
1840
+ });
1841
+ });
1842
+ const Ji = Wi;
1843
+ var qi = /* @__PURE__ */ Te(function(e, t) {
1844
+ return Ji([e], t)[0];
1845
+ });
1846
+ const Hi = qi;
1847
+ function Us(n, e) {
1848
+ e.forEach((t) => {
1849
+ if (Ki(Hi(t.split("."), n)))
1850
+ throw new On(t);
1851
+ });
1848
1852
  }
1849
- const Yi = () => ["account"], js = () => {
1850
- const n = Gn((a) => {
1853
+ const Zi = () => ["account"], Ms = () => {
1854
+ const n = Dt((a) => {
1851
1855
  var s;
1852
1856
  return (s = a.config) == null ? void 0 : s.account;
1853
- }), [e, t] = rn(Ee), i = Xi(Yi(), () => Tt.get(n), {
1857
+ }), [e, t] = rn(Ce), i = Si(Zi(), () => Ft.get(n), {
1854
1858
  enabled: !!n && !e,
1855
1859
  refetchOnWindowFocus: !1,
1856
1860
  refetchOnMount: !1
1857
1861
  });
1858
- return pt(() => {
1862
+ return ft(() => {
1859
1863
  const a = i.data;
1860
1864
  !i.isSuccess || !a || t(a);
1861
1865
  }, [i.status]), {
1862
1866
  findQuery: i,
1863
1867
  account: e
1864
1868
  };
1865
- }, ea = ht();
1866
- async function ta(n) {
1867
- const e = await Tt.get(n);
1868
- return ea.set(Ee, e), e;
1869
+ }, Xi = pt();
1870
+ async function Yi(n) {
1871
+ const e = await Ft.get(n);
1872
+ return Xi.set(Ce, e), e;
1869
1873
  }
1870
- var na = /* @__PURE__ */ ((n) => (n.CREATED = "CREATED", n.STARTING = "STARTING", n.LIVE = "LIVE", n.FINALIZED = "FINALIZED", n))(na || {});
1871
- const zs = {
1874
+ var ea = /* @__PURE__ */ ((n) => (n.CREATED = "CREATED", n.STARTING = "STARTING", n.LIVE = "LIVE", n.FINALIZED = "FINALIZED", n))(ea || {});
1875
+ const $s = {
1872
1876
  ALL: "*",
1873
1877
  CORE: "core:**",
1874
1878
  LIVE_STREAMING_EVENT: "event:**",
@@ -1880,77 +1884,77 @@ const zs = {
1880
1884
  SNACK_SIZE_VIDEO_ADMIN: "ssv-admin:**",
1881
1885
  UI: "ui:**",
1882
1886
  UTILS: "utils:**"
1883
- }, Bs = {
1887
+ }, js = {
1884
1888
  EVENT_STATUS_CHANGED: "event:statusChanged"
1885
1889
  };
1886
- var ia = /* @__PURE__ */ ((n) => (n.English = "en", n.Spanish = "es", n.Portuguese = "pt", n))(ia || {}), aa = /* @__PURE__ */ ((n) => (n.COMBO = "Combo", n))(aa || {}), sa = /* @__PURE__ */ ((n) => (n.VTEX = "VTEX", n.PLATFORM = "platform", n.CACE = "CACE", n.GLOBAL_PAGE = "globalPage", n.DEV_LOCAL = "dev:local", n.CUSTOMIZATION = "customization", n.FAST_STORE = "faststore", n))(sa || {});
1887
- function ra(n) {
1890
+ var ta = /* @__PURE__ */ ((n) => (n.English = "en", n.Spanish = "es", n.Portuguese = "pt", n))(ta || {}), na = /* @__PURE__ */ ((n) => (n.COMBO = "Combo", n))(na || {}), ia = /* @__PURE__ */ ((n) => (n.VTEX = "VTEX", n.PLATFORM = "platform", n.CACE = "CACE", n.GLOBAL_PAGE = "globalPage", n.DEV_LOCAL = "dev:local", n.CUSTOMIZATION = "customization", n.FAST_STORE = "faststore", n))(ia || {});
1891
+ function aa(n) {
1888
1892
  const e = Object.values(n);
1889
1893
  return Object.assign({}, ...e);
1890
1894
  }
1891
- function oa(n) {
1895
+ function sa(n) {
1892
1896
  return Object.entries(n).reduce(
1893
1897
  (e, [t, i]) => {
1894
- const a = ra(i);
1898
+ const a = aa(i);
1895
1899
  return { ...e, [t]: a };
1896
1900
  },
1897
1901
  {}
1898
1902
  );
1899
1903
  }
1900
- function la(n, e) {
1901
- const t = oa(e);
1904
+ function ra(n, e) {
1905
+ const t = sa(e);
1902
1906
  Object.entries(t).forEach(([i, a]) => {
1903
1907
  n.addResourceBundle(i, "translation", a, !0);
1904
1908
  });
1905
1909
  }
1906
- function da(n, e) {
1910
+ function oa(n, e) {
1907
1911
  if (!(n instanceof e))
1908
1912
  throw new TypeError("Cannot call a class as a function");
1909
1913
  }
1910
- function Y(n) {
1914
+ function X(n) {
1911
1915
  "@babel/helpers - typeof";
1912
- return Y = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1916
+ return X = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1913
1917
  return typeof e;
1914
1918
  } : function(e) {
1915
1919
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1916
- }, Y(n);
1920
+ }, X(n);
1917
1921
  }
1918
- function ua(n, e) {
1919
- if (Y(n) !== "object" || n === null)
1922
+ function la(n, e) {
1923
+ if (X(n) !== "object" || n === null)
1920
1924
  return n;
1921
1925
  var t = n[Symbol.toPrimitive];
1922
1926
  if (t !== void 0) {
1923
1927
  var i = t.call(n, e || "default");
1924
- if (Y(i) !== "object")
1928
+ if (X(i) !== "object")
1925
1929
  return i;
1926
1930
  throw new TypeError("@@toPrimitive must return a primitive value.");
1927
1931
  }
1928
1932
  return (e === "string" ? String : Number)(n);
1929
1933
  }
1930
- function ca(n) {
1931
- var e = ua(n, "string");
1932
- return Y(e) === "symbol" ? e : String(e);
1934
+ function da(n) {
1935
+ var e = la(n, "string");
1936
+ return X(e) === "symbol" ? e : String(e);
1933
1937
  }
1934
- function Xe(n, e) {
1938
+ function Ze(n, e) {
1935
1939
  for (var t = 0; t < e.length; t++) {
1936
1940
  var i = e[t];
1937
- i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(n, ca(i.key), i);
1941
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(n, da(i.key), i);
1938
1942
  }
1939
1943
  }
1940
- function ma(n, e, t) {
1941
- return e && Xe(n.prototype, e), t && Xe(n, t), Object.defineProperty(n, "prototype", {
1944
+ function ua(n, e, t) {
1945
+ return e && Ze(n.prototype, e), t && Ze(n, t), Object.defineProperty(n, "prototype", {
1942
1946
  writable: !1
1943
1947
  }), n;
1944
1948
  }
1945
- var Lt = [], fa = Lt.forEach, pa = Lt.slice;
1946
- function ha(n) {
1947
- return fa.call(pa.call(arguments, 1), function(e) {
1949
+ var Lt = [], ca = Lt.forEach, ma = Lt.slice;
1950
+ function fa(n) {
1951
+ return ca.call(ma.call(arguments, 1), function(e) {
1948
1952
  if (e)
1949
1953
  for (var t in e)
1950
1954
  n[t] === void 0 && (n[t] = e[t]);
1951
1955
  }), n;
1952
1956
  }
1953
- var Ye = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ga = function(e, t, i) {
1957
+ var Xe = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, pa = function(e, t, i) {
1954
1958
  var a = i || {};
1955
1959
  a.path = a.path || "/";
1956
1960
  var s = encodeURIComponent(t), r = "".concat(e, "=").concat(s);
@@ -1961,12 +1965,12 @@ var Ye = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ga = function(e, t, i) {
1961
1965
  r += "; Max-Age=".concat(Math.floor(o));
1962
1966
  }
1963
1967
  if (a.domain) {
1964
- if (!Ye.test(a.domain))
1968
+ if (!Xe.test(a.domain))
1965
1969
  throw new TypeError("option domain is invalid");
1966
1970
  r += "; Domain=".concat(a.domain);
1967
1971
  }
1968
1972
  if (a.path) {
1969
- if (!Ye.test(a.path))
1973
+ if (!Xe.test(a.path))
1970
1974
  throw new TypeError("option path is invalid");
1971
1975
  r += "; Path=".concat(a.path);
1972
1976
  }
@@ -1995,13 +1999,13 @@ var Ye = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ga = function(e, t, i) {
1995
1999
  }
1996
2000
  }
1997
2001
  return r;
1998
- }, et = {
2002
+ }, Ye = {
1999
2003
  create: function(e, t, i, a) {
2000
2004
  var s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
2001
2005
  path: "/",
2002
2006
  sameSite: "strict"
2003
2007
  };
2004
- i && (s.expires = /* @__PURE__ */ new Date(), s.expires.setTime(s.expires.getTime() + i * 60 * 1e3)), a && (s.domain = a), document.cookie = ga(e, encodeURIComponent(t), s);
2008
+ i && (s.expires = /* @__PURE__ */ new Date(), s.expires.setTime(s.expires.getTime() + i * 60 * 1e3)), a && (s.domain = a), document.cookie = pa(e, encodeURIComponent(t), s);
2005
2009
  },
2006
2010
  read: function(e) {
2007
2011
  for (var t = "".concat(e, "="), i = document.cookie.split(";"), a = 0; a < i.length; a++) {
@@ -2015,20 +2019,20 @@ var Ye = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ga = function(e, t, i) {
2015
2019
  remove: function(e) {
2016
2020
  this.create(e, "", -1);
2017
2021
  }
2018
- }, ka = {
2022
+ }, ha = {
2019
2023
  name: "cookie",
2020
2024
  lookup: function(e) {
2021
2025
  var t;
2022
2026
  if (e.lookupCookie && typeof document != "undefined") {
2023
- var i = et.read(e.lookupCookie);
2027
+ var i = Ye.read(e.lookupCookie);
2024
2028
  i && (t = i);
2025
2029
  }
2026
2030
  return t;
2027
2031
  },
2028
2032
  cacheUserLanguage: function(e, t) {
2029
- t.lookupCookie && typeof document != "undefined" && et.create(t.lookupCookie, e, t.cookieMinutes, t.cookieDomain, t.cookieOptions);
2033
+ t.lookupCookie && typeof document != "undefined" && Ye.create(t.lookupCookie, e, t.cookieMinutes, t.cookieDomain, t.cookieOptions);
2030
2034
  }
2031
- }, va = {
2035
+ }, ga = {
2032
2036
  name: "querystring",
2033
2037
  lookup: function(e) {
2034
2038
  var t;
@@ -2045,55 +2049,55 @@ var Ye = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ga = function(e, t, i) {
2045
2049
  }
2046
2050
  return t;
2047
2051
  }
2048
- }, q = null, tt = function() {
2049
- if (q !== null)
2050
- return q;
2052
+ }, J = null, et = function() {
2053
+ if (J !== null)
2054
+ return J;
2051
2055
  try {
2052
- q = window !== "undefined" && window.localStorage !== null;
2056
+ J = window !== "undefined" && window.localStorage !== null;
2053
2057
  var e = "i18next.translate.boo";
2054
2058
  window.localStorage.setItem(e, "foo"), window.localStorage.removeItem(e);
2055
2059
  } catch {
2056
- q = !1;
2060
+ J = !1;
2057
2061
  }
2058
- return q;
2059
- }, Sa = {
2062
+ return J;
2063
+ }, ka = {
2060
2064
  name: "localStorage",
2061
2065
  lookup: function(e) {
2062
2066
  var t;
2063
- if (e.lookupLocalStorage && tt()) {
2067
+ if (e.lookupLocalStorage && et()) {
2064
2068
  var i = window.localStorage.getItem(e.lookupLocalStorage);
2065
2069
  i && (t = i);
2066
2070
  }
2067
2071
  return t;
2068
2072
  },
2069
2073
  cacheUserLanguage: function(e, t) {
2070
- t.lookupLocalStorage && tt() && window.localStorage.setItem(t.lookupLocalStorage, e);
2074
+ t.lookupLocalStorage && et() && window.localStorage.setItem(t.lookupLocalStorage, e);
2071
2075
  }
2072
- }, H = null, nt = function() {
2073
- if (H !== null)
2074
- return H;
2076
+ }, q = null, tt = function() {
2077
+ if (q !== null)
2078
+ return q;
2075
2079
  try {
2076
- H = window !== "undefined" && window.sessionStorage !== null;
2080
+ q = window !== "undefined" && window.sessionStorage !== null;
2077
2081
  var e = "i18next.translate.boo";
2078
2082
  window.sessionStorage.setItem(e, "foo"), window.sessionStorage.removeItem(e);
2079
2083
  } catch {
2080
- H = !1;
2084
+ q = !1;
2081
2085
  }
2082
- return H;
2083
- }, ya = {
2086
+ return q;
2087
+ }, va = {
2084
2088
  name: "sessionStorage",
2085
2089
  lookup: function(e) {
2086
2090
  var t;
2087
- if (e.lookupSessionStorage && nt()) {
2091
+ if (e.lookupSessionStorage && tt()) {
2088
2092
  var i = window.sessionStorage.getItem(e.lookupSessionStorage);
2089
2093
  i && (t = i);
2090
2094
  }
2091
2095
  return t;
2092
2096
  },
2093
2097
  cacheUserLanguage: function(e, t) {
2094
- t.lookupSessionStorage && nt() && window.sessionStorage.setItem(t.lookupSessionStorage, e);
2098
+ t.lookupSessionStorage && tt() && window.sessionStorage.setItem(t.lookupSessionStorage, e);
2095
2099
  }
2096
- }, Na = {
2100
+ }, Sa = {
2097
2101
  name: "navigator",
2098
2102
  lookup: function(e) {
2099
2103
  var t = [];
@@ -2105,13 +2109,13 @@ var Ye = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ga = function(e, t, i) {
2105
2109
  }
2106
2110
  return t.length > 0 ? t : void 0;
2107
2111
  }
2108
- }, ba = {
2112
+ }, ya = {
2109
2113
  name: "htmlTag",
2110
2114
  lookup: function(e) {
2111
2115
  var t, i = e.htmlTag || (typeof document != "undefined" ? document.documentElement : null);
2112
2116
  return i && typeof i.getAttribute == "function" && (t = i.getAttribute("lang")), t;
2113
2117
  }
2114
- }, Fa = {
2118
+ }, Na = {
2115
2119
  name: "path",
2116
2120
  lookup: function(e) {
2117
2121
  var t;
@@ -2127,7 +2131,7 @@ var Ye = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ga = function(e, t, i) {
2127
2131
  }
2128
2132
  return t;
2129
2133
  }
2130
- }, wa = {
2134
+ }, ba = {
2131
2135
  name: "subdomain",
2132
2136
  lookup: function(e) {
2133
2137
  var t = typeof e.lookupFromSubdomainIndex == "number" ? e.lookupFromSubdomainIndex + 1 : 1, i = typeof window != "undefined" && window.location && window.location.hostname && window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);
@@ -2135,7 +2139,7 @@ var Ye = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ga = function(e, t, i) {
2135
2139
  return i[t];
2136
2140
  }
2137
2141
  };
2138
- function Ca() {
2142
+ function Fa() {
2139
2143
  return {
2140
2144
  order: ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"],
2141
2145
  lookupQuerystring: "lng",
@@ -2155,17 +2159,17 @@ function Ca() {
2155
2159
  var At = /* @__PURE__ */ function() {
2156
2160
  function n(e) {
2157
2161
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2158
- da(this, n), this.type = "languageDetector", this.detectors = {}, this.init(e, t);
2162
+ oa(this, n), this.type = "languageDetector", this.detectors = {}, this.init(e, t);
2159
2163
  }
2160
- return ma(n, [{
2164
+ return ua(n, [{
2161
2165
  key: "init",
2162
2166
  value: function(t) {
2163
2167
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2164
2168
  this.services = t || {
2165
2169
  languageUtils: {}
2166
- }, this.options = ha(i, this.options || {}, Ca()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = function(s) {
2170
+ }, this.options = fa(i, this.options || {}, Fa()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = function(s) {
2167
2171
  return s.replace("-", "_");
2168
- }), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = a, this.addDetector(ka), this.addDetector(va), this.addDetector(Sa), this.addDetector(ya), this.addDetector(Na), this.addDetector(ba), this.addDetector(Fa), this.addDetector(wa);
2172
+ }), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = a, this.addDetector(ha), this.addDetector(ga), this.addDetector(ka), this.addDetector(va), this.addDetector(Sa), this.addDetector(ya), this.addDetector(Na), this.addDetector(ba);
2169
2173
  }
2170
2174
  }, {
2171
2175
  key: "addDetector",
@@ -2198,7 +2202,7 @@ var At = /* @__PURE__ */ function() {
2198
2202
  }]), n;
2199
2203
  }();
2200
2204
  At.type = "languageDetector";
2201
- function Ea(n, e) {
2205
+ function wa(n, e) {
2202
2206
  n.use(e).use(At).init({
2203
2207
  resources: {},
2204
2208
  fallbackLng: "en",
@@ -2238,7 +2242,7 @@ function Ea(n, e) {
2238
2242
  }
2239
2243
  });
2240
2244
  }
2241
- const xa = {
2245
+ const Ca = {
2242
2246
  type: "logger",
2243
2247
  log(n) {
2244
2248
  this.output("log", n);
@@ -2253,14 +2257,14 @@ const xa = {
2253
2257
  console && console[n] && console[n].apply(console, e);
2254
2258
  }
2255
2259
  };
2256
- class le {
2260
+ class oe {
2257
2261
  constructor(e) {
2258
2262
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2259
2263
  this.init(e, t);
2260
2264
  }
2261
2265
  init(e) {
2262
2266
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2263
- this.prefix = t.prefix || "i18next:", this.logger = e || xa, this.options = t, this.debug = t.debug;
2267
+ this.prefix = t.prefix || "i18next:", this.logger = e || Ca, this.options = t, this.debug = t.debug;
2264
2268
  }
2265
2269
  log() {
2266
2270
  for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
@@ -2286,17 +2290,17 @@ class le {
2286
2290
  return a && !this.debug ? null : (typeof e[0] == "string" && (e[0] = `${i}${this.prefix} ${e[0]}`), this.logger[t](e));
2287
2291
  }
2288
2292
  create(e) {
2289
- return new le(this.logger, {
2293
+ return new oe(this.logger, {
2290
2294
  prefix: `${this.prefix}:${e}:`,
2291
2295
  ...this.options
2292
2296
  });
2293
2297
  }
2294
2298
  clone(e) {
2295
- return e = e || this.options, e.prefix = e.prefix || this.prefix, new le(this.logger, e);
2299
+ return e = e || this.options, e.prefix = e.prefix || this.prefix, new oe(this.logger, e);
2296
2300
  }
2297
2301
  }
2298
- var j = new le();
2299
- class ge {
2302
+ var $ = new oe();
2303
+ class he {
2300
2304
  constructor() {
2301
2305
  this.observers = {};
2302
2306
  }
@@ -2324,22 +2328,22 @@ class ge {
2324
2328
  });
2325
2329
  }
2326
2330
  }
2327
- function Z() {
2331
+ function H() {
2328
2332
  let n, e;
2329
2333
  const t = new Promise((i, a) => {
2330
2334
  n = i, e = a;
2331
2335
  });
2332
2336
  return t.resolve = n, t.reject = e, t;
2333
2337
  }
2334
- function it(n) {
2338
+ function nt(n) {
2335
2339
  return n == null ? "" : "" + n;
2336
2340
  }
2337
- function Oa(n, e, t) {
2341
+ function Ea(n, e, t) {
2338
2342
  n.forEach((i) => {
2339
2343
  e[i] && (t[i] = e[i]);
2340
2344
  });
2341
2345
  }
2342
- function De(n, e, t) {
2346
+ function Ie(n, e, t) {
2343
2347
  function i(r) {
2344
2348
  return r && r.indexOf("###") > -1 ? r.replace(/###/g, ".") : r;
2345
2349
  }
@@ -2358,31 +2362,31 @@ function De(n, e, t) {
2358
2362
  k: i(s.shift())
2359
2363
  };
2360
2364
  }
2361
- function at(n, e, t) {
2365
+ function it(n, e, t) {
2362
2366
  const {
2363
2367
  obj: i,
2364
2368
  k: a
2365
- } = De(n, e, Object);
2369
+ } = Ie(n, e, Object);
2366
2370
  i[a] = t;
2367
2371
  }
2368
- function Ra(n, e, t, i) {
2372
+ function xa(n, e, t, i) {
2369
2373
  const {
2370
2374
  obj: a,
2371
2375
  k: s
2372
- } = De(n, e, Object);
2376
+ } = Ie(n, e, Object);
2373
2377
  a[s] = a[s] || [], i && (a[s] = a[s].concat(t)), i || a[s].push(t);
2374
2378
  }
2375
- function de(n, e) {
2379
+ function le(n, e) {
2376
2380
  const {
2377
2381
  obj: t,
2378
2382
  k: i
2379
- } = De(n, e);
2383
+ } = Ie(n, e);
2380
2384
  if (t)
2381
2385
  return t[i];
2382
2386
  }
2383
- function Ta(n, e, t) {
2384
- const i = de(n, t);
2385
- return i !== void 0 ? i : de(e, t);
2387
+ function Oa(n, e, t) {
2388
+ const i = le(n, t);
2389
+ return i !== void 0 ? i : le(e, t);
2386
2390
  }
2387
2391
  function Pt(n, e, t) {
2388
2392
  for (const i in e)
@@ -2392,7 +2396,7 @@ function Pt(n, e, t) {
2392
2396
  function B(n) {
2393
2397
  return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
2394
2398
  }
2395
- var Ia = {
2399
+ var Ra = {
2396
2400
  "&": "&amp;",
2397
2401
  "<": "&lt;",
2398
2402
  ">": "&gt;",
@@ -2400,13 +2404,13 @@ var Ia = {
2400
2404
  "'": "&#39;",
2401
2405
  "/": "&#x2F;"
2402
2406
  };
2403
- function Da(n) {
2404
- return typeof n == "string" ? n.replace(/[&<>"'\/]/g, (e) => Ia[e]) : n;
2407
+ function Ta(n) {
2408
+ return typeof n == "string" ? n.replace(/[&<>"'\/]/g, (e) => Ra[e]) : n;
2405
2409
  }
2406
- const La = [" ", ",", "?", "!", ";"];
2407
- function Aa(n, e, t) {
2410
+ const Ia = [" ", ",", "?", "!", ";"];
2411
+ function Da(n, e, t) {
2408
2412
  e = e || "", t = t || "";
2409
- const i = La.filter((r) => e.indexOf(r) < 0 && t.indexOf(r) < 0);
2413
+ const i = Ia.filter((r) => e.indexOf(r) < 0 && t.indexOf(r) < 0);
2410
2414
  if (i.length === 0)
2411
2415
  return !0;
2412
2416
  const a = new RegExp(`(${i.map((r) => r === "?" ? "\\?" : r).join("|")})`);
@@ -2417,7 +2421,7 @@ function Aa(n, e, t) {
2417
2421
  }
2418
2422
  return s;
2419
2423
  }
2420
- function ue(n, e) {
2424
+ function de(n, e) {
2421
2425
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
2422
2426
  if (!n)
2423
2427
  return;
@@ -2443,16 +2447,16 @@ function ue(n, e) {
2443
2447
  return l[o];
2444
2448
  }
2445
2449
  const u = i.slice(s + r).join(t);
2446
- return u ? ue(l, u, t) : void 0;
2450
+ return u ? de(l, u, t) : void 0;
2447
2451
  }
2448
2452
  a = a[i[s]];
2449
2453
  }
2450
2454
  return a;
2451
2455
  }
2452
- function ce(n) {
2456
+ function ue(n) {
2453
2457
  return n && n.indexOf("_") > 0 ? n.replace("_", "-") : n;
2454
2458
  }
2455
- class st extends ge {
2459
+ class at extends he {
2456
2460
  constructor(e) {
2457
2461
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
2458
2462
  ns: ["translation"],
@@ -2472,8 +2476,8 @@ class st extends ge {
2472
2476
  const s = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator, r = a.ignoreJSONStructure !== void 0 ? a.ignoreJSONStructure : this.options.ignoreJSONStructure;
2473
2477
  let o = [e, t];
2474
2478
  i && typeof i != "string" && (o = o.concat(i)), i && typeof i == "string" && (o = o.concat(s ? i.split(s) : i)), e.indexOf(".") > -1 && (o = e.split("."));
2475
- const l = de(this.data, o);
2476
- return l || !r || typeof i != "string" ? l : ue(this.data && this.data[e] && this.data[e][t], i, s);
2479
+ const l = le(this.data, o);
2480
+ return l || !r || typeof i != "string" ? l : de(this.data && this.data[e] && this.data[e][t], i, s);
2477
2481
  }
2478
2482
  addResource(e, t, i, a) {
2479
2483
  let s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
@@ -2481,7 +2485,7 @@ class st extends ge {
2481
2485
  };
2482
2486
  const r = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator;
2483
2487
  let o = [e, t];
2484
- i && (o = o.concat(r ? i.split(r) : i)), e.indexOf(".") > -1 && (o = e.split("."), a = t, t = o[1]), this.addNamespaces(t), at(this.data, o, a), s.silent || this.emit("added", e, t, i, a);
2488
+ i && (o = o.concat(r ? i.split(r) : i)), e.indexOf(".") > -1 && (o = e.split("."), a = t, t = o[1]), this.addNamespaces(t), it(this.data, o, a), s.silent || this.emit("added", e, t, i, a);
2485
2489
  }
2486
2490
  addResources(e, t, i) {
2487
2491
  let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
@@ -2498,11 +2502,11 @@ class st extends ge {
2498
2502
  silent: !1
2499
2503
  }, o = [e, t];
2500
2504
  e.indexOf(".") > -1 && (o = e.split("."), a = i, i = t, t = o[1]), this.addNamespaces(t);
2501
- let l = de(this.data, o) || {};
2505
+ let l = le(this.data, o) || {};
2502
2506
  a ? Pt(l, i, s) : l = {
2503
2507
  ...l,
2504
2508
  ...i
2505
- }, at(this.data, o, l), r.silent || this.emit("added", e, t, i);
2509
+ }, it(this.data, o, l), r.silent || this.emit("added", e, t, i);
2506
2510
  }
2507
2511
  removeResourceBundle(e, t) {
2508
2512
  this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
@@ -2537,11 +2541,11 @@ var Vt = {
2537
2541
  }), e;
2538
2542
  }
2539
2543
  };
2540
- const rt = {};
2541
- class me extends ge {
2544
+ const st = {};
2545
+ class ce extends he {
2542
2546
  constructor(e) {
2543
2547
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2544
- super(), Oa(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = j.create("translator");
2548
+ super(), Ea(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = $.create("translator");
2545
2549
  }
2546
2550
  changeLanguage(e) {
2547
2551
  e && (this.language = e);
@@ -2560,7 +2564,7 @@ class me extends ge {
2560
2564
  i === void 0 && (i = ":");
2561
2565
  const a = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
2562
2566
  let s = t.ns || this.options.defaultNS || [];
2563
- const r = i && e.indexOf(i) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Aa(e, i, a);
2567
+ const r = i && e.indexOf(i) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Da(e, i, a);
2564
2568
  if (r && !o) {
2565
2569
  const l = e.match(this.interpolator.nestingRegexp);
2566
2570
  if (l && l.length > 0)
@@ -2636,7 +2640,7 @@ class me extends ge {
2636
2640
  c = c.join(O), c && (c = this.extendTranslation(c, e, t, i));
2637
2641
  else {
2638
2642
  let w = !1, D = !1;
2639
- const L = t.count !== void 0 && typeof t.count != "string", A = me.hasDefaultValue(t), m = L ? this.pluralResolver.getSuffix(u, t.count, t) : "", p = t.ordinal && L ? this.pluralResolver.getSuffix(u, t.count, {
2643
+ const L = t.count !== void 0 && typeof t.count != "string", A = ce.hasDefaultValue(t), m = L ? this.pluralResolver.getSuffix(u, t.count, t) : "", p = t.ordinal && L ? this.pluralResolver.getSuffix(u, t.count, {
2640
2644
  ordinal: !1
2641
2645
  }) : "", h = t[`defaultValue${m}`] || t[`defaultValue${p}`] || t.defaultValue;
2642
2646
  !this.isValidLookup(c) && A && (w = !0, c = h), this.isValidLookup(c) || (D = !0, c = r);
@@ -2657,8 +2661,8 @@ class me extends ge {
2657
2661
  else
2658
2662
  this.options.saveMissingTo === "all" ? v = this.languageUtils.toResolveHierarchy(t.lng || this.language) : v.push(t.lng || this.language);
2659
2663
  const P = (x, T, V) => {
2660
- const te = A && V !== c ? V : b;
2661
- this.options.missingKeyHandler ? this.options.missingKeyHandler(x, l, T, te, C, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(x, l, T, te, C, t), this.emit("missingKey", x, l, T, c);
2664
+ const ee = A && V !== c ? V : b;
2665
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(x, l, T, ee, C, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(x, l, T, ee, C, t), this.emit("missingKey", x, l, T, c);
2662
2666
  };
2663
2667
  this.options.saveMissing && (this.options.saveMissingPlurals && L ? v.forEach((x) => {
2664
2668
  this.pluralResolver.getSuffixes(x, t).forEach((T) => {
@@ -2727,7 +2731,7 @@ class me extends ge {
2727
2731
  this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
2728
2732
  const c = t.count !== void 0 && typeof t.count != "string", S = c && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), y = t.context !== void 0 && (typeof t.context == "string" || typeof t.context == "number") && t.context !== "", k = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
2729
2733
  f.forEach((N) => {
2730
- this.isValidLookup(i) || (o = N, !rt[`${k[0]}-${N}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (rt[`${k[0]}-${N}`] = !0, this.logger.warn(`key "${a}" for languages "${k.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), k.forEach((O) => {
2734
+ this.isValidLookup(i) || (o = N, !st[`${k[0]}-${N}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (st[`${k[0]}-${N}`] = !0, this.logger.warn(`key "${a}" for languages "${k.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), k.forEach((O) => {
2731
2735
  if (this.isValidLookup(i))
2732
2736
  return;
2733
2737
  r = O;
@@ -2787,21 +2791,21 @@ class me extends ge {
2787
2791
  return !1;
2788
2792
  }
2789
2793
  }
2790
- function Ne(n) {
2794
+ function ye(n) {
2791
2795
  return n.charAt(0).toUpperCase() + n.slice(1);
2792
2796
  }
2793
- class ot {
2797
+ class rt {
2794
2798
  constructor(e) {
2795
- this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = j.create("languageUtils");
2799
+ this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = $.create("languageUtils");
2796
2800
  }
2797
2801
  getScriptPartFromCode(e) {
2798
- if (e = ce(e), !e || e.indexOf("-") < 0)
2802
+ if (e = ue(e), !e || e.indexOf("-") < 0)
2799
2803
  return null;
2800
2804
  const t = e.split("-");
2801
2805
  return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
2802
2806
  }
2803
2807
  getLanguagePartFromCode(e) {
2804
- if (e = ce(e), !e || e.indexOf("-") < 0)
2808
+ if (e = ue(e), !e || e.indexOf("-") < 0)
2805
2809
  return e;
2806
2810
  const t = e.split("-");
2807
2811
  return this.formatLanguageCode(t[0]);
@@ -2810,7 +2814,7 @@ class ot {
2810
2814
  if (typeof e == "string" && e.indexOf("-") > -1) {
2811
2815
  const t = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
2812
2816
  let i = e.split("-");
2813
- return this.options.lowerCaseLng ? i = i.map((a) => a.toLowerCase()) : i.length === 2 ? (i[0] = i[0].toLowerCase(), i[1] = i[1].toUpperCase(), t.indexOf(i[1].toLowerCase()) > -1 && (i[1] = Ne(i[1].toLowerCase()))) : i.length === 3 && (i[0] = i[0].toLowerCase(), i[1].length === 2 && (i[1] = i[1].toUpperCase()), i[0] !== "sgn" && i[2].length === 2 && (i[2] = i[2].toUpperCase()), t.indexOf(i[1].toLowerCase()) > -1 && (i[1] = Ne(i[1].toLowerCase())), t.indexOf(i[2].toLowerCase()) > -1 && (i[2] = Ne(i[2].toLowerCase()))), i.join("-");
2817
+ return this.options.lowerCaseLng ? i = i.map((a) => a.toLowerCase()) : i.length === 2 ? (i[0] = i[0].toLowerCase(), i[1] = i[1].toUpperCase(), t.indexOf(i[1].toLowerCase()) > -1 && (i[1] = ye(i[1].toLowerCase()))) : i.length === 3 && (i[0] = i[0].toLowerCase(), i[1].length === 2 && (i[1] = i[1].toUpperCase()), i[0] !== "sgn" && i[2].length === 2 && (i[2] = i[2].toUpperCase()), t.indexOf(i[1].toLowerCase()) > -1 && (i[1] = ye(i[1].toLowerCase())), t.indexOf(i[2].toLowerCase()) > -1 && (i[2] = ye(i[2].toLowerCase()))), i.join("-");
2814
2818
  }
2815
2819
  return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
2816
2820
  }
@@ -2859,7 +2863,7 @@ class ot {
2859
2863
  }), a;
2860
2864
  }
2861
2865
  }
2862
- let Pa = [{
2866
+ let La = [{
2863
2867
  lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
2864
2868
  nr: [1, 2],
2865
2869
  fc: 1
@@ -2951,7 +2955,7 @@ let Pa = [{
2951
2955
  lngs: ["he", "iw"],
2952
2956
  nr: [1, 2, 20, 21],
2953
2957
  fc: 22
2954
- }], Va = {
2958
+ }], Aa = {
2955
2959
  1: function(n) {
2956
2960
  return +(n > 1);
2957
2961
  },
@@ -3019,7 +3023,7 @@ let Pa = [{
3019
3023
  return n == 1 ? 0 : n == 2 ? 1 : (n < 0 || n > 10) && n % 10 == 0 ? 2 : 3;
3020
3024
  }
3021
3025
  };
3022
- const _a = ["v1", "v2", "v3"], Ua = ["v4"], lt = {
3026
+ const Pa = ["v1", "v2", "v3"], Va = ["v4"], ot = {
3023
3027
  zero: 0,
3024
3028
  one: 1,
3025
3029
  two: 2,
@@ -3027,21 +3031,21 @@ const _a = ["v1", "v2", "v3"], Ua = ["v4"], lt = {
3027
3031
  many: 4,
3028
3032
  other: 5
3029
3033
  };
3030
- function Ma() {
3034
+ function _a() {
3031
3035
  const n = {};
3032
- return Pa.forEach((e) => {
3036
+ return La.forEach((e) => {
3033
3037
  e.lngs.forEach((t) => {
3034
3038
  n[t] = {
3035
3039
  numbers: e.nr,
3036
- plurals: Va[e.fc]
3040
+ plurals: Aa[e.fc]
3037
3041
  };
3038
3042
  });
3039
3043
  }), n;
3040
3044
  }
3041
- class $a {
3045
+ class Ua {
3042
3046
  constructor(e) {
3043
3047
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3044
- this.languageUtils = e, this.options = t, this.logger = j.create("pluralResolver"), (!this.options.compatibilityJSON || Ua.includes(this.options.compatibilityJSON)) && (typeof Intl == "undefined" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = Ma();
3048
+ this.languageUtils = e, this.options = t, this.logger = $.create("pluralResolver"), (!this.options.compatibilityJSON || Va.includes(this.options.compatibilityJSON)) && (typeof Intl == "undefined" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = _a();
3045
3049
  }
3046
3050
  addRule(e, t) {
3047
3051
  this.rules[e] = t;
@@ -3050,7 +3054,7 @@ class $a {
3050
3054
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3051
3055
  if (this.shouldUseIntlApi())
3052
3056
  try {
3053
- return new Intl.PluralRules(ce(e), {
3057
+ return new Intl.PluralRules(ue(e), {
3054
3058
  type: t.ordinal ? "ordinal" : "cardinal"
3055
3059
  });
3056
3060
  } catch {
@@ -3070,7 +3074,7 @@ class $a {
3070
3074
  getSuffixes(e) {
3071
3075
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3072
3076
  const i = this.getRule(e, t);
3073
- return i ? this.shouldUseIntlApi() ? i.resolvedOptions().pluralCategories.sort((a, s) => lt[a] - lt[s]).map((a) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${a}`) : i.numbers.map((a) => this.getSuffix(e, a, t)) : [];
3077
+ return i ? this.shouldUseIntlApi() ? i.resolvedOptions().pluralCategories.sort((a, s) => ot[a] - ot[s]).map((a) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${a}`) : i.numbers.map((a) => this.getSuffix(e, a, t)) : [];
3074
3078
  }
3075
3079
  getSuffix(e, t) {
3076
3080
  let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
@@ -3085,17 +3089,17 @@ class $a {
3085
3089
  return this.options.compatibilityJSON === "v1" ? a === 1 ? "" : typeof a == "number" ? `_plural_${a.toString()}` : s() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && e.numbers.length === 2 && e.numbers[0] === 1 ? s() : this.options.prepend && i.toString() ? this.options.prepend + i.toString() : i.toString();
3086
3090
  }
3087
3091
  shouldUseIntlApi() {
3088
- return !_a.includes(this.options.compatibilityJSON);
3092
+ return !Pa.includes(this.options.compatibilityJSON);
3089
3093
  }
3090
3094
  }
3091
- function dt(n, e, t) {
3092
- let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, s = Ta(n, e, t);
3093
- return !s && a && typeof t == "string" && (s = ue(n, t, i), s === void 0 && (s = ue(e, t, i))), s;
3095
+ function lt(n, e, t) {
3096
+ let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, s = Oa(n, e, t);
3097
+ return !s && a && typeof t == "string" && (s = de(n, t, i), s === void 0 && (s = de(e, t, i))), s;
3094
3098
  }
3095
- class ja {
3099
+ class Ma {
3096
3100
  constructor() {
3097
3101
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
3098
- this.logger = j.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
3102
+ this.logger = $.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
3099
3103
  }
3100
3104
  init() {
3101
3105
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -3103,7 +3107,7 @@ class ja {
3103
3107
  escapeValue: !0
3104
3108
  });
3105
3109
  const t = e.interpolation;
3106
- this.escape = t.escape !== void 0 ? t.escape : Da, this.escapeValue = t.escapeValue !== void 0 ? t.escapeValue : !0, this.useRawValueToEscape = t.useRawValueToEscape !== void 0 ? t.useRawValueToEscape : !1, this.prefix = t.prefix ? B(t.prefix) : t.prefixEscaped || "{{", this.suffix = t.suffix ? B(t.suffix) : t.suffixEscaped || "}}", this.formatSeparator = t.formatSeparator ? t.formatSeparator : t.formatSeparator || ",", this.unescapePrefix = t.unescapeSuffix ? "" : t.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : t.unescapeSuffix || "", this.nestingPrefix = t.nestingPrefix ? B(t.nestingPrefix) : t.nestingPrefixEscaped || B("$t("), this.nestingSuffix = t.nestingSuffix ? B(t.nestingSuffix) : t.nestingSuffixEscaped || B(")"), this.nestingOptionsSeparator = t.nestingOptionsSeparator ? t.nestingOptionsSeparator : t.nestingOptionsSeparator || ",", this.maxReplaces = t.maxReplaces ? t.maxReplaces : 1e3, this.alwaysFormat = t.alwaysFormat !== void 0 ? t.alwaysFormat : !1, this.resetRegExp();
3110
+ this.escape = t.escape !== void 0 ? t.escape : Ta, this.escapeValue = t.escapeValue !== void 0 ? t.escapeValue : !0, this.useRawValueToEscape = t.useRawValueToEscape !== void 0 ? t.useRawValueToEscape : !1, this.prefix = t.prefix ? B(t.prefix) : t.prefixEscaped || "{{", this.suffix = t.suffix ? B(t.suffix) : t.suffixEscaped || "}}", this.formatSeparator = t.formatSeparator ? t.formatSeparator : t.formatSeparator || ",", this.unescapePrefix = t.unescapeSuffix ? "" : t.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : t.unescapeSuffix || "", this.nestingPrefix = t.nestingPrefix ? B(t.nestingPrefix) : t.nestingPrefixEscaped || B("$t("), this.nestingSuffix = t.nestingSuffix ? B(t.nestingSuffix) : t.nestingSuffixEscaped || B(")"), this.nestingOptionsSeparator = t.nestingOptionsSeparator ? t.nestingOptionsSeparator : t.nestingOptionsSeparator || ",", this.maxReplaces = t.maxReplaces ? t.maxReplaces : 1e3, this.alwaysFormat = t.alwaysFormat !== void 0 ? t.alwaysFormat : !1, this.resetRegExp();
3107
3111
  }
3108
3112
  reset() {
3109
3113
  this.options && this.init(this.options);
@@ -3124,7 +3128,7 @@ class ja {
3124
3128
  }
3125
3129
  const d = (y) => {
3126
3130
  if (y.indexOf(this.formatSeparator) < 0) {
3127
- const F = dt(t, l, y, this.options.keySeparator, this.options.ignoreJSONStructure);
3131
+ const F = lt(t, l, y, this.options.keySeparator, this.options.ignoreJSONStructure);
3128
3132
  return this.alwaysFormat ? this.format(F, void 0, i, {
3129
3133
  ...a,
3130
3134
  ...t,
@@ -3132,7 +3136,7 @@ class ja {
3132
3136
  }) : F;
3133
3137
  }
3134
3138
  const k = y.split(this.formatSeparator), N = k.shift().trim(), O = k.join(this.formatSeparator).trim();
3135
- return this.format(dt(t, l, N, this.options.keySeparator, this.options.ignoreJSONStructure), O, i, {
3139
+ return this.format(lt(t, l, N, this.options.keySeparator, this.options.ignoreJSONStructure), O, i, {
3136
3140
  ...a,
3137
3141
  ...t,
3138
3142
  interpolationkey: N
@@ -3161,7 +3165,7 @@ class ja {
3161
3165
  } else
3162
3166
  this.logger.warn(`missed to pass in variable ${k} for interpolating ${e}`), r = "";
3163
3167
  else
3164
- typeof r != "string" && !this.useRawValueToEscape && (r = it(r));
3168
+ typeof r != "string" && !this.useRawValueToEscape && (r = nt(r));
3165
3169
  const N = y.safeValue(r);
3166
3170
  if (e = e.replace(s[0], N), c ? (y.regex.lastIndex += r.length, y.regex.lastIndex -= s[0].length) : y.regex.lastIndex = 0, o++, o >= this.maxReplaces)
3167
3171
  break;
@@ -3201,7 +3205,7 @@ class ja {
3201
3205
  }
3202
3206
  if (s = t(o.call(this, a[1].trim(), r), r), s && a[0] === e && typeof s != "string")
3203
3207
  return s;
3204
- typeof s != "string" && (s = it(s)), s || (this.logger.warn(`missed to resolve ${a[1]} for nesting ${e}`), s = ""), u && (s = l.reduce((d, f) => this.format(d, f, i.lng, {
3208
+ typeof s != "string" && (s = nt(s)), s || (this.logger.warn(`missed to resolve ${a[1]} for nesting ${e}`), s = ""), u && (s = l.reduce((d, f) => this.format(d, f, i.lng, {
3205
3209
  ...i,
3206
3210
  interpolationkey: a[1].trim()
3207
3211
  }), s.trim())), e = e.replace(a[0], s), this.regexp.lastIndex = 0;
@@ -3209,7 +3213,7 @@ class ja {
3209
3213
  return e;
3210
3214
  }
3211
3215
  }
3212
- function za(n) {
3216
+ function $a(n) {
3213
3217
  let e = n.toLowerCase().trim();
3214
3218
  const t = {};
3215
3219
  if (n.indexOf("(") > -1) {
@@ -3233,13 +3237,13 @@ function Q(n) {
3233
3237
  return function(i, a, s) {
3234
3238
  const r = a + JSON.stringify(s);
3235
3239
  let o = e[r];
3236
- return o || (o = n(ce(a), s), e[r] = o), o(i);
3240
+ return o || (o = n(ue(a), s), e[r] = o), o(i);
3237
3241
  };
3238
3242
  }
3239
- class Ba {
3243
+ class ja {
3240
3244
  constructor() {
3241
3245
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
3242
- this.logger = j.create("formatter"), this.options = e, this.formats = {
3246
+ this.logger = $.create("formatter"), this.options = e, this.formats = {
3243
3247
  number: Q((t, i) => {
3244
3248
  const a = new Intl.NumberFormat(t, {
3245
3249
  ...i
@@ -3291,7 +3295,7 @@ class Ba {
3291
3295
  const {
3292
3296
  formatName: u,
3293
3297
  formatOptions: d
3294
- } = za(l);
3298
+ } = $a(l);
3295
3299
  if (this.formats[u]) {
3296
3300
  let f = o;
3297
3301
  try {
@@ -3311,13 +3315,13 @@ class Ba {
3311
3315
  }, e);
3312
3316
  }
3313
3317
  }
3314
- function Qa(n, e) {
3318
+ function za(n, e) {
3315
3319
  n.pending[e] !== void 0 && (delete n.pending[e], n.pendingCount--);
3316
3320
  }
3317
- class Ga extends ge {
3321
+ class Ba extends he {
3318
3322
  constructor(e, t, i) {
3319
3323
  let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
3320
- super(), this.backend = e, this.store = t, this.services = i, this.languageUtils = i.languageUtils, this.options = a, this.logger = j.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = a.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = a.maxRetries >= 0 ? a.maxRetries : 5, this.retryTimeout = a.retryTimeout >= 1 ? a.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(i, a.backend, a);
3324
+ super(), this.backend = e, this.store = t, this.services = i, this.languageUtils = i.languageUtils, this.options = a, this.logger = $.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = a.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = a.maxRetries >= 0 ? a.maxRetries : 5, this.retryTimeout = a.retryTimeout >= 1 ? a.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(i, a.backend, a);
3321
3325
  }
3322
3326
  queueLoad(e, t, i, a) {
3323
3327
  const s = {}, r = {}, o = {}, l = {};
@@ -3345,7 +3349,7 @@ class Ga extends ge {
3345
3349
  t && this.emit("failedLoading", s, r, t), i && this.store.addResourceBundle(s, r, i), this.state[e] = t ? -1 : 2;
3346
3350
  const o = {};
3347
3351
  this.queue.forEach((l) => {
3348
- Ra(l.loaded, [s], r), Qa(l, e), t && l.errors.push(t), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((u) => {
3352
+ xa(l.loaded, [s], r), za(l, e), t && l.errors.push(t), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((u) => {
3349
3353
  o[u] || (o[u] = {});
3350
3354
  const d = l.loaded[u];
3351
3355
  d.length && d.forEach((f) => {
@@ -3448,7 +3452,7 @@ class Ga extends ge {
3448
3452
  }
3449
3453
  }
3450
3454
  }
3451
- function ut() {
3455
+ function dt() {
3452
3456
  return {
3453
3457
  debug: !1,
3454
3458
  initImmediate: !0,
@@ -3507,22 +3511,22 @@ function ut() {
3507
3511
  }
3508
3512
  };
3509
3513
  }
3510
- function ct(n) {
3514
+ function ut(n) {
3511
3515
  return typeof n.ns == "string" && (n.ns = [n.ns]), typeof n.fallbackLng == "string" && (n.fallbackLng = [n.fallbackLng]), typeof n.fallbackNS == "string" && (n.fallbackNS = [n.fallbackNS]), n.supportedLngs && n.supportedLngs.indexOf("cimode") < 0 && (n.supportedLngs = n.supportedLngs.concat(["cimode"])), n;
3512
3516
  }
3513
- function ae() {
3517
+ function ie() {
3514
3518
  }
3515
- function Ka(n) {
3519
+ function Qa(n) {
3516
3520
  Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((t) => {
3517
3521
  typeof n[t] == "function" && (n[t] = n[t].bind(n));
3518
3522
  });
3519
3523
  }
3520
- class ee extends ge {
3524
+ class Y extends he {
3521
3525
  constructor() {
3522
3526
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
3523
- if (super(), this.options = ct(e), this.services = {}, this.logger = j, this.modules = {
3527
+ if (super(), this.options = ut(e), this.services = {}, this.logger = $, this.modules = {
3524
3528
  external: []
3525
- }, Ka(this), t && !this.isInitialized && !e.isClone) {
3529
+ }, Qa(this), t && !this.isInitialized && !e.isClone) {
3526
3530
  if (!this.options.initImmediate)
3527
3531
  return this.init(e, t), this;
3528
3532
  setTimeout(() => {
@@ -3534,11 +3538,11 @@ class ee extends ge {
3534
3538
  var e = this;
3535
3539
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = arguments.length > 1 ? arguments[1] : void 0;
3536
3540
  typeof t == "function" && (i = t, t = {}), !t.defaultNS && t.defaultNS !== !1 && t.ns && (typeof t.ns == "string" ? t.defaultNS = t.ns : t.ns.indexOf("translation") < 0 && (t.defaultNS = t.ns[0]));
3537
- const a = ut();
3541
+ const a = dt();
3538
3542
  this.options = {
3539
3543
  ...a,
3540
3544
  ...this.options,
3541
- ...ct(t)
3545
+ ...ut(t)
3542
3546
  }, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
3543
3547
  ...a.interpolation,
3544
3548
  ...this.options.interpolation
@@ -3547,23 +3551,23 @@ class ee extends ge {
3547
3551
  return d ? typeof d == "function" ? new d() : d : null;
3548
3552
  }
3549
3553
  if (!this.options.isClone) {
3550
- this.modules.logger ? j.init(s(this.modules.logger), this.options) : j.init(null, this.options);
3554
+ this.modules.logger ? $.init(s(this.modules.logger), this.options) : $.init(null, this.options);
3551
3555
  let d;
3552
- this.modules.formatter ? d = this.modules.formatter : typeof Intl != "undefined" && (d = Ba);
3553
- const f = new ot(this.options);
3554
- this.store = new st(this.options.resources, this.options);
3556
+ this.modules.formatter ? d = this.modules.formatter : typeof Intl != "undefined" && (d = ja);
3557
+ const f = new rt(this.options);
3558
+ this.store = new at(this.options.resources, this.options);
3555
3559
  const c = this.services;
3556
- c.logger = j, c.resourceStore = this.store, c.languageUtils = f, c.pluralResolver = new $a(f, {
3560
+ c.logger = $, c.resourceStore = this.store, c.languageUtils = f, c.pluralResolver = new Ua(f, {
3557
3561
  prepend: this.options.pluralSeparator,
3558
3562
  compatibilityJSON: this.options.compatibilityJSON,
3559
3563
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
3560
- }), d && (!this.options.interpolation.format || this.options.interpolation.format === a.interpolation.format) && (c.formatter = s(d), c.formatter.init(c, this.options), this.options.interpolation.format = c.formatter.format.bind(c.formatter)), c.interpolator = new ja(this.options), c.utils = {
3564
+ }), d && (!this.options.interpolation.format || this.options.interpolation.format === a.interpolation.format) && (c.formatter = s(d), c.formatter.init(c, this.options), this.options.interpolation.format = c.formatter.format.bind(c.formatter)), c.interpolator = new Ma(this.options), c.utils = {
3561
3565
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
3562
- }, c.backendConnector = new Ga(s(this.modules.backend), c.resourceStore, c, this.options), c.backendConnector.on("*", function(S) {
3566
+ }, c.backendConnector = new Ba(s(this.modules.backend), c.resourceStore, c, this.options), c.backendConnector.on("*", function(S) {
3563
3567
  for (var y = arguments.length, k = new Array(y > 1 ? y - 1 : 0), N = 1; N < y; N++)
3564
3568
  k[N - 1] = arguments[N];
3565
3569
  e.emit(S, ...k);
3566
- }), this.modules.languageDetector && (c.languageDetector = s(this.modules.languageDetector), c.languageDetector.init && c.languageDetector.init(c, this.options.detection, this.options)), this.modules.i18nFormat && (c.i18nFormat = s(this.modules.i18nFormat), c.i18nFormat.init && c.i18nFormat.init(this)), this.translator = new me(this.services, this.options), this.translator.on("*", function(S) {
3570
+ }), this.modules.languageDetector && (c.languageDetector = s(this.modules.languageDetector), c.languageDetector.init && c.languageDetector.init(c, this.options.detection, this.options)), this.modules.i18nFormat && (c.i18nFormat = s(this.modules.i18nFormat), c.i18nFormat.init && c.i18nFormat.init(this)), this.translator = new ce(this.services, this.options), this.translator.on("*", function(S) {
3567
3571
  for (var y = arguments.length, k = new Array(y > 1 ? y - 1 : 0), N = 1; N < y; N++)
3568
3572
  k[N - 1] = arguments[N];
3569
3573
  e.emit(S, ...k);
@@ -3571,7 +3575,7 @@ class ee extends ge {
3571
3575
  S.init && S.init(this);
3572
3576
  });
3573
3577
  }
3574
- if (this.format = this.options.interpolation.format, i || (i = ae), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
3578
+ if (this.format = this.options.interpolation.format, i || (i = ie), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
3575
3579
  const d = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
3576
3580
  d.length > 0 && d[0] !== "dev" && (this.options.lng = d[0]);
3577
3581
  }
@@ -3584,7 +3588,7 @@ class ee extends ge {
3584
3588
  return e.store[d](...arguments), e;
3585
3589
  };
3586
3590
  });
3587
- const l = Z(), u = () => {
3591
+ const l = H(), u = () => {
3588
3592
  const d = (f, c) => {
3589
3593
  this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), l.resolve(c), i(f, c);
3590
3594
  };
@@ -3595,7 +3599,7 @@ class ee extends ge {
3595
3599
  return this.options.resources || !this.options.initImmediate ? u() : setTimeout(u, 0), l;
3596
3600
  }
3597
3601
  loadResources(e) {
3598
- let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ae;
3602
+ let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ie;
3599
3603
  const a = typeof e == "string" ? e : this.language;
3600
3604
  if (typeof e == "function" && (i = e), !this.options.resources || this.options.partialBundledLanguages) {
3601
3605
  if (a && a.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0))
@@ -3614,8 +3618,8 @@ class ee extends ge {
3614
3618
  i(null);
3615
3619
  }
3616
3620
  reloadResources(e, t, i) {
3617
- const a = Z();
3618
- return e || (e = this.languages), t || (t = this.options.ns), i || (i = ae), this.services.backendConnector.reload(e, t, (s) => {
3621
+ const a = H();
3622
+ return e || (e = this.languages), t || (t = this.options.ns), i || (i = ie), this.services.backendConnector.reload(e, t, (s) => {
3619
3623
  a.resolve(), i(s);
3620
3624
  }), a;
3621
3625
  }
@@ -3639,7 +3643,7 @@ class ee extends ge {
3639
3643
  changeLanguage(e, t) {
3640
3644
  var i = this;
3641
3645
  this.isLanguageChangingTo = e;
3642
- const a = Z();
3646
+ const a = H();
3643
3647
  this.emit("languageChanging", e);
3644
3648
  const s = (l) => {
3645
3649
  this.language = l, this.languages = this.services.languageUtils.toResolveHierarchy(l), this.resolvedLanguage = void 0, this.setResolvedLanguage(l);
@@ -3707,7 +3711,7 @@ class ee extends ge {
3707
3711
  return !!(this.hasResourceBundle(i, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || r(i, e) && (!a || r(s, e)));
3708
3712
  }
3709
3713
  loadNamespaces(e, t) {
3710
- const i = Z();
3714
+ const i = H();
3711
3715
  return this.options.ns ? (typeof e == "string" && (e = [e]), e.forEach((a) => {
3712
3716
  this.options.ns.indexOf(a) < 0 && this.options.ns.push(a);
3713
3717
  }), this.loadResources((a) => {
@@ -3715,7 +3719,7 @@ class ee extends ge {
3715
3719
  }), i) : (t && t(), Promise.resolve());
3716
3720
  }
3717
3721
  loadLanguages(e, t) {
3718
- const i = Z();
3722
+ const i = H();
3719
3723
  typeof e == "string" && (e = [e]);
3720
3724
  const a = this.options.preload || [], s = e.filter((r) => a.indexOf(r) < 0);
3721
3725
  return s.length ? (this.options.preload = a.concat(s), this.loadResources((r) => {
@@ -3725,29 +3729,29 @@ class ee extends ge {
3725
3729
  dir(e) {
3726
3730
  if (e || (e = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !e)
3727
3731
  return "rtl";
3728
- const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], i = this.services && this.services.languageUtils || new ot(ut());
3732
+ const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], i = this.services && this.services.languageUtils || new rt(dt());
3729
3733
  return t.indexOf(i.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
3730
3734
  }
3731
3735
  static createInstance() {
3732
3736
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
3733
- return new ee(e, t);
3737
+ return new Y(e, t);
3734
3738
  }
3735
3739
  cloneInstance() {
3736
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ae;
3740
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ie;
3737
3741
  const i = e.forkResourceStore;
3738
3742
  i && delete e.forkResourceStore;
3739
3743
  const a = {
3740
3744
  ...this.options,
3741
3745
  ...e,
3742
3746
  isClone: !0
3743
- }, s = new ee(a);
3747
+ }, s = new Y(a);
3744
3748
  return (e.debug !== void 0 || e.prefix !== void 0) && (s.logger = s.logger.clone(e)), ["store", "services", "language"].forEach((o) => {
3745
3749
  s[o] = this[o];
3746
3750
  }), s.services = {
3747
3751
  ...this.services
3748
3752
  }, s.services.utils = {
3749
3753
  hasLoadedNamespace: s.hasLoadedNamespace.bind(s)
3750
- }, i && (s.store = new st(this.store.data, a), s.services.resourceStore = s.store), s.translator = new me(s.services, a), s.translator.on("*", function(o) {
3754
+ }, i && (s.store = new at(this.store.data, a), s.services.resourceStore = s.store), s.translator = new ce(s.services, a), s.translator.on("*", function(o) {
3751
3755
  for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0), d = 1; d < l; d++)
3752
3756
  u[d - 1] = arguments[d];
3753
3757
  s.emit(o, ...u);
@@ -3765,8 +3769,8 @@ class ee extends ge {
3765
3769
  };
3766
3770
  }
3767
3771
  }
3768
- const U = ee.createInstance();
3769
- U.createInstance = ee.createInstance;
3772
+ const U = Y.createInstance();
3773
+ U.createInstance = Y.createInstance;
3770
3774
  U.createInstance;
3771
3775
  U.dir;
3772
3776
  U.init;
@@ -3781,7 +3785,7 @@ U.setDefaultNamespace;
3781
3785
  U.hasLoadedNamespace;
3782
3786
  U.loadNamespaces;
3783
3787
  U.loadLanguages;
3784
- const Wa = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Ja = {
3788
+ const Ga = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Ka = {
3785
3789
  "&amp;": "&",
3786
3790
  "&#38;": "&",
3787
3791
  "&lt;": "<",
@@ -3802,8 +3806,8 @@ const Wa = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|
3802
3806
  "&#8230;": "…",
3803
3807
  "&#x2F;": "/",
3804
3808
  "&#47;": "/"
3805
- }, qa = (n) => Ja[n], Ha = (n) => n.replace(Wa, qa);
3806
- let mt = {
3809
+ }, Wa = (n) => Ka[n], Ja = (n) => n.replace(Ga, Wa);
3810
+ let ct = {
3807
3811
  bindI18n: "languageChanged",
3808
3812
  bindI18nStore: "",
3809
3813
  transEmptyNodeValue: "",
@@ -3811,73 +3815,73 @@ let mt = {
3811
3815
  transWrapTextNodes: "",
3812
3816
  transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
3813
3817
  useSuspense: !0,
3814
- unescape: Ha
3818
+ unescape: Ja
3815
3819
  };
3816
- function Za() {
3820
+ function qa() {
3817
3821
  let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
3818
- mt = {
3819
- ...mt,
3822
+ ct = {
3823
+ ...ct,
3820
3824
  ...n
3821
3825
  };
3822
3826
  }
3823
- const Xa = {
3827
+ const Ha = {
3824
3828
  type: "3rdParty",
3825
3829
  init(n) {
3826
- Za(n.options.react);
3830
+ qa(n.options.react);
3827
3831
  }
3828
3832
  };
3829
- Ea(U, Xa);
3830
- const Qs = (n) => la(U, n);
3831
- let Le = /* @__PURE__ */ new Map();
3832
- const we = ft(Le), Gs = ({ children: n, stores: e }) => {
3833
- const t = Ce(we), i = Gt(() => {
3833
+ wa(U, Ha);
3834
+ const zs = (n) => ra(U, n);
3835
+ let De = /* @__PURE__ */ new Map();
3836
+ const Fe = mt(De), Bs = ({ children: n, stores: e }) => {
3837
+ const t = we(Fe), i = Gt(() => {
3834
3838
  const a = /* @__PURE__ */ new Map();
3835
- return e.forEach((s) => a.set(s.class, s.value)), Le = new Map([...t, ...a]);
3839
+ return e.forEach((s) => a.set(s.class, s.value)), De = new Map([...t, ...a]);
3836
3840
  }, []);
3837
- return /* @__PURE__ */ Kt(we.Provider, { value: i, children: n });
3841
+ return /* @__PURE__ */ Kt(Fe.Provider, { value: i, children: n });
3838
3842
  };
3839
- function Ks(n) {
3840
- return Ce(we).get(n);
3843
+ function Qs(n) {
3844
+ return we(Fe).get(n);
3841
3845
  }
3842
- function Ws(n) {
3843
- return Le.get(n);
3846
+ function Gs(n) {
3847
+ return De.get(n);
3844
3848
  }
3845
3849
  var _t = /* @__PURE__ */ ((n) => (n.Created = "CREATED", n.Finalized = "FINALIZED", n.Live = "LIVE", n.Starting = "STARTING", n))(_t || {}), Ut = /* @__PURE__ */ ((n) => (n.Add = "add", n.Remove = "remove", n))(Ut || {}), Mt = /* @__PURE__ */ ((n) => (n.Active = "active", n.Inactive = "inactive", n))(Mt || {});
3846
- const Ya = { 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" } }] } }] } }] } }] }, es = { 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" } }] } }] } }] } }] }, ts = { 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" } }] } }] } }] } }] }, ns = { 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" } }] } }] } }] } }] }, is = { 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" } }] } }] } }] } }] }, as = { 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" } }] } }] } }] } }] }, ss = { 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" } }] } }] } }] } }] }, rs = { 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: "Field", name: { kind: "Name", value: "thumbnails" } }] } }] } }, { 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" } }] } }] } }] } }] }, os = { 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" } }] } }] } }] } }] }, ls = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "BlockUser" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "BlockUserInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "blockUser" }, 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: "BlockUserSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, ds = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "ChangeAccountUsername" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ChangeUsernameInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "changeAccountUsername" }, 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: "ChangeUsernameSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, us = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteChatMessage" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "DeleteChatInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteChatMessage" }, 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: "DeleteChatMessageSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, cs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllChatMessage" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "GetAllChatMessageInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllChatMessage" }, 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: "ChatMessageArray" } }, 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: "connectionId" } }, { kind: "Field", name: { kind: "Name", value: "data" } }, { kind: "Field", name: { kind: "Name", value: "email" } }, { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "idEvent" } }, { kind: "Field", name: { kind: "Name", value: "sendDate" } }, { kind: "Field", name: { kind: "Name", value: "sessionId" } }, { kind: "Field", name: { kind: "Name", value: "type" } }, { kind: "Field", name: { kind: "Name", value: "username" } }, { kind: "Field", name: { kind: "Name", value: "isAdmin" } }, { kind: "Field", name: { kind: "Name", value: "urlGif" } }, { kind: "Field", name: { kind: "Name", value: "second" } }, { kind: "Field", name: { kind: "Name", value: "ip" } }] } }] } }, { 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" } }] } }] } }] } }] }, ms = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetChatRoomToken" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "GetChatRoomInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getChatRoomToken" }, 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: "ChatRoomTokenData" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "token" } }] } }] } }, { 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" } }] } }] } }] } }] }, fs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "PinChatMessage" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "PinChatInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "pinChatMessage" }, 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: "PinChatMessageSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, ps = { 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" } }] } }] } }] } }] }, hs = { 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" } }] } }] } }] } }] }, gs = { 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" } }] } }] } }] } }] }, ks = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetTimeLine" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "GetTimeLineInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getTimeLine" }, 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: "TimeLineArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "time" } }, { kind: "Field", name: { kind: "Name", value: "likes" } }, { kind: "Field", name: { kind: "Name", value: "comments" } }, { kind: "Field", name: { kind: "Name", value: "viewers" } }, { kind: "Field", name: { kind: "Name", value: "orders" } }, { kind: "Field", name: { kind: "Name", value: "minute" } }, { kind: "Field", name: { kind: "Name", value: "hour" } }] } }] } }, { 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" } }] } }] } }] } }] }, vs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "AppendProductsToSnackVideo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "RelateToProductsSnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "appendProductsSnackVideo" }, 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: "ActionSnackVideoSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { 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" } }] } }] } }] } }] }, Ss = { 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" } }] } }] } }] } }] }, ys = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteRelationshipWithSnackVideo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoRelationshipKeys" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteRelationshipSnackVideo" }, 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: "ActionSnackVideoSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { 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: "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" } }] } }] } }] } }] }, Ns = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteSnackVideo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "DeleteSnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteSnackVideo" }, 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: "ActionSnackVideoSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, bs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindManySnackVideos" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "FindManySnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findManySnackVideos" }, 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: "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: "transmitionType" } }] } }] } }, { 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" } }] } }] } }] } }] }, Fs = { 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: "transmitionType" } }] } }, { kind: "Field", name: { kind: "Name", value: "cursor" } }, { kind: "Field", name: { kind: "Name", value: "totalItems" } }] } }] } }, { 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" } }] } }] } }] } }] }, ws = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetSnackVideoRelationships" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoRelationshipInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getRelationshipSnackVideos" }, 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: "RelationshipSnackVideoArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "sourceEntity" } }, { kind: "Field", name: { kind: "Name", value: "attributeId" } }] } }] } }] } }] } }] }, Cs = { 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: "Field", name: { kind: "Name", value: "totalItems" } }] } }] } }, { 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" } }] } }] } }] } }] }, Es = { 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: "transmitionType" } }] } }] } }, { 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" } }] } }] } }] } }] }, Js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3850
+ const Za = { 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" } }] } }] } }] } }] }, Xa = { 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" } }] } }] } }] } }] }, Ya = { 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" } }] } }] } }] } }] }, es = { 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" } }] } }] } }] } }] }, ts = { 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" } }] } }] } }] } }] }, ns = { 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" } }] } }] } }] } }] }, is = { 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" } }] } }] } }] } }] }, as = { 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: "Field", name: { kind: "Name", value: "thumbnails" } }] } }] } }, { 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" } }] } }] } }] } }] }, ss = { 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" } }] } }] } }] } }] }, rs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "BlockUser" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "BlockUserInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "blockUser" }, 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: "BlockUserSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, os = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "ChangeAccountUsername" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ChangeUsernameInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "changeAccountUsername" }, 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: "ChangeUsernameSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, ls = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteChatMessage" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "DeleteChatInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteChatMessage" }, 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: "DeleteChatMessageSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, ds = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllChatMessage" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "GetAllChatMessageInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllChatMessage" }, 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: "ChatMessageArray" } }, 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: "connectionId" } }, { kind: "Field", name: { kind: "Name", value: "data" } }, { kind: "Field", name: { kind: "Name", value: "email" } }, { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "idEvent" } }, { kind: "Field", name: { kind: "Name", value: "sendDate" } }, { kind: "Field", name: { kind: "Name", value: "sessionId" } }, { kind: "Field", name: { kind: "Name", value: "type" } }, { kind: "Field", name: { kind: "Name", value: "username" } }, { kind: "Field", name: { kind: "Name", value: "isAdmin" } }, { kind: "Field", name: { kind: "Name", value: "urlGif" } }, { kind: "Field", name: { kind: "Name", value: "second" } }, { kind: "Field", name: { kind: "Name", value: "ip" } }] } }] } }, { 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" } }] } }] } }] } }] }, us = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetChatRoomToken" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "GetChatRoomInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getChatRoomToken" }, 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: "ChatRoomTokenData" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "token" } }] } }] } }, { 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" } }] } }] } }] } }] }, cs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "PinChatMessage" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "PinChatInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "pinChatMessage" }, 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: "PinChatMessageSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, ms = { 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" } }] } }] } }] } }] }, fs = { 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" } }] } }] } }] } }] }, ps = { 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" } }] } }] } }] } }] }, hs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetTimeLine" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "GetTimeLineInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getTimeLine" }, 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: "TimeLineArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "time" } }, { kind: "Field", name: { kind: "Name", value: "likes" } }, { kind: "Field", name: { kind: "Name", value: "comments" } }, { kind: "Field", name: { kind: "Name", value: "viewers" } }, { kind: "Field", name: { kind: "Name", value: "orders" } }, { kind: "Field", name: { kind: "Name", value: "minute" } }, { kind: "Field", name: { kind: "Name", value: "hour" } }] } }] } }, { 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" } }] } }] } }] } }] }, gs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "AppendProductsToSnackVideo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "RelateToProductsSnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "appendProductsSnackVideo" }, 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: "ActionSnackVideoSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { 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" } }] } }] } }] } }] }, ks = { 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" } }] } }] } }] } }] }, vs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteRelationshipWithSnackVideo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoRelationshipKeys" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteRelationshipSnackVideo" }, 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: "ActionSnackVideoSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { 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: "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" } }] } }] } }] } }] }, Ss = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteSnackVideo" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "DeleteSnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteSnackVideo" }, 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: "ActionSnackVideoSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }] } }] } }] } }] }, ys = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindManySnackVideos" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "FindManySnackVideoInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findManySnackVideos" }, 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: "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: "transmitionType" } }] } }] } }, { 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" } }] } }] } }] } }] }, Ns = { 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: "transmitionType" } }] } }, { kind: "Field", name: { kind: "Name", value: "cursor" } }, { kind: "Field", name: { kind: "Name", value: "totalItems" } }] } }] } }, { 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" } }] } }] } }] } }] }, bs = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetSnackVideoRelationships" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SnackVideoRelationshipInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getRelationshipSnackVideos" }, 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: "RelationshipSnackVideoArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "sourceEntity" } }, { kind: "Field", name: { kind: "Name", value: "attributeId" } }] } }] } }] } }] } }] }, Fs = { 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: "Field", name: { kind: "Name", value: "totalItems" } }] } }] } }, { 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" } }] } }] } }] } }] }, ws = { 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: "transmitionType" } }] } }] } }, { 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" } }] } }] } }] } }] }, Ks = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3847
3851
  __proto__: null,
3848
- AddCollectionDocument: Ya,
3849
- AppendProductsToSnackVideoDocument: vs,
3850
- BlockUserDocument: ls,
3851
- ChangeAccountUsernameDocument: ds,
3852
- CreateSnackVideoBatchDocument: Ss,
3853
- DeleteAllCustomizationDocument: ps,
3854
- DeleteChatMessageDocument: us,
3855
- DeleteCollectionDocument: es,
3856
- DeleteRelationshipWithSnackVideoDocument: ys,
3857
- DeleteSnackVideoDocument: Ns,
3852
+ AddCollectionDocument: Za,
3853
+ AppendProductsToSnackVideoDocument: gs,
3854
+ BlockUserDocument: rs,
3855
+ ChangeAccountUsernameDocument: os,
3856
+ CreateSnackVideoBatchDocument: ks,
3857
+ DeleteAllCustomizationDocument: ms,
3858
+ DeleteChatMessageDocument: ls,
3859
+ DeleteCollectionDocument: Xa,
3860
+ DeleteRelationshipWithSnackVideoDocument: vs,
3861
+ DeleteSnackVideoDocument: Ss,
3858
3862
  EventStatus: _t,
3859
- FindByProductSnackVideoDocument: Es,
3860
- FindCollectionDocument: ts,
3861
- FindManySnackVideosDocument: bs,
3862
- FindMinimalEventDocument: rs,
3863
- GetAllChatMessageDocument: cs,
3864
- GetAllCollectionsDocument: ns,
3865
- GetAllCustomizationDocument: hs,
3866
- GetAllSnackVideosDocument: Fs,
3867
- GetChatRoomTokenDocument: ms,
3868
- GetSnackVideoRelationshipsDocument: ws,
3869
- GetTimeLineDocument: ks,
3870
- ManageCollectionProductDocument: is,
3863
+ FindByProductSnackVideoDocument: ws,
3864
+ FindCollectionDocument: Ya,
3865
+ FindManySnackVideosDocument: ys,
3866
+ FindMinimalEventDocument: as,
3867
+ GetAllChatMessageDocument: ds,
3868
+ GetAllCollectionsDocument: es,
3869
+ GetAllCustomizationDocument: fs,
3870
+ GetAllSnackVideosDocument: Ns,
3871
+ GetChatRoomTokenDocument: us,
3872
+ GetSnackVideoRelationshipsDocument: bs,
3873
+ GetTimeLineDocument: hs,
3874
+ ManageCollectionProductDocument: ts,
3871
3875
  Methods: Ut,
3872
- PinChatMessageDocument: fs,
3873
- SearchCollectionsDocument: as,
3874
- SearchMinimalEventsDocument: os,
3875
- SearchSnackVideosDocument: Cs,
3876
+ PinChatMessageDocument: cs,
3877
+ SearchCollectionsDocument: ns,
3878
+ SearchMinimalEventsDocument: ss,
3879
+ SearchSnackVideosDocument: Fs,
3876
3880
  Status: Mt,
3877
- UpdateCollectionDocument: ss,
3878
- UpdateCustomizationDocument: gs
3881
+ UpdateCollectionDocument: is,
3882
+ UpdateCustomizationDocument: ps
3879
3883
  }, Symbol.toStringTag, { value: "Module" }));
3880
- function qs(n) {
3884
+ function Ws(n) {
3881
3885
  return {
3882
3886
  class: n,
3883
3887
  _value: null,
@@ -3887,63 +3891,61 @@ function qs(n) {
3887
3891
  };
3888
3892
  }
3889
3893
  export {
3890
- Rt as AccountContractStatusTypes,
3891
- ci as AccountContractTypes,
3894
+ bt as AccountContractStatusTypes,
3895
+ yn as AccountContractTypes,
3892
3896
  Vs as AccountInvalidError,
3893
- fi as AccountPlanDescriptionTypes,
3894
- gi as AccountRestRepository,
3895
- ki as AccountService,
3896
- mi as AccountSubscriptionTypes,
3897
- Ot as AccountTypes,
3898
- di as AggregateRoot,
3899
- Js as ApiGraphqlTypes,
3900
- Ms as BaseMobxStore,
3901
- Mn as BroadcastChannelEventBus,
3902
- he as DomainError,
3903
- zs as EventBusWildcards,
3904
- Bs as EventNames,
3905
- pi as GlobalPageSectionTypes,
3906
- li as InvalidNizzaGlobalObjectError,
3907
- ia as LanguageTypes,
3908
- Bn as Logger,
3909
- Re as NizzaAccount,
3910
- na as NizzaEventStatus,
3911
- sa as NizzaProductRequestOriginTypes,
3912
- aa as NizzaVariationTypes,
3913
- ri as ResourceNotFoundError,
3914
- Gs as StoreProvider,
3915
- oi as UnexpectedError,
3916
- $s as ValueObject,
3917
- Ee as accountAtom,
3918
- Tt as accountService,
3919
- Ts as apiCall,
3920
- ra as buildLanguageTranslations,
3921
- oa as buildTranslations,
3922
- Jn as configure,
3923
- K as coreLogger,
3924
- ui as createAggregateRoot,
3925
- qs as createStore,
3926
- kt as customFetch,
3927
- Is as downloadFile,
3928
- Ls as fileOrigin,
3929
- ta as getAccount,
3930
- Us as getClientTimeZone,
3931
- Kn as getInstance,
3932
- Ws as getStore,
3933
- ea as globalAtomStore,
3934
- Ea as i18Init,
3897
+ bn as AccountPlanDescriptionTypes,
3898
+ Cn as AccountRestRepository,
3899
+ Rn as AccountService,
3900
+ Nn as AccountSubscriptionTypes,
3901
+ Nt as AccountTypes,
3902
+ vn as AggregateRoot,
3903
+ Ks as ApiGraphqlTypes,
3904
+ As as BaseMobxStore,
3905
+ Vi as BroadcastChannelEventBus,
3906
+ fe as DomainError,
3907
+ $s as EventBusWildcards,
3908
+ js as EventNames,
3909
+ Fn as GlobalPageSectionTypes,
3910
+ On as InvalidNizzaGlobalObjectError,
3911
+ ta as LanguageTypes,
3912
+ kn as Logger,
3913
+ xe as NizzaAccount,
3914
+ ea as NizzaEventStatus,
3915
+ ia as NizzaProductRequestOriginTypes,
3916
+ na as NizzaVariationTypes,
3917
+ En as ResourceNotFoundError,
3918
+ Bs as StoreProvider,
3919
+ xn as UnexpectedError,
3920
+ Ps as ValueObject,
3921
+ Ce as accountAtom,
3922
+ Ft as accountService,
3923
+ Os as apiCall,
3924
+ aa as buildLanguageTranslations,
3925
+ sa as buildTranslations,
3926
+ Mi as configure,
3927
+ Sn as createAggregateRoot,
3928
+ Ws as createStore,
3929
+ gt as customFetch,
3930
+ Rs as downloadFile,
3931
+ Ds as fileOrigin,
3932
+ Yi as getAccount,
3933
+ Ts as getClientTimeZone,
3934
+ _i as getInstance,
3935
+ Gs as getStore,
3936
+ Xi as globalAtomStore,
3937
+ wa as i18Init,
3935
3938
  fn as jsDownload,
3936
- Qn as logger,
3937
- $ as nizza,
3938
- Ps as nizzaInit,
3939
- Qs as registerTranslations,
3940
- la as registerTranslationsOf,
3941
- Ds as searchParams,
3942
- qn as setProductDataSource,
3943
- jn as shortId,
3944
- js as useAccount,
3945
- Gn as useNizza,
3946
- Ks as useStore,
3947
- _s as validateRequiredProps
3939
+ j as nizza,
3940
+ _s as nizzaInit,
3941
+ zs as registerTranslations,
3942
+ ra as registerTranslationsOf,
3943
+ Is as searchParams,
3944
+ $i as setProductDataSource,
3945
+ hn as shortId,
3946
+ Ms as useAccount,
3947
+ Dt as useNizza,
3948
+ Qs as useStore,
3949
+ Us as validateRequiredProps
3948
3950
  };
3949
3951
  //# sourceMappingURL=index.mjs.map