@nizza/core 0.5.0-beta.1 → 0.5.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,13 +1,13 @@
1
- var an = Object.defineProperty;
2
- var sn = (n, e, t) => e in n ? an(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var x = (n, e, t) => (sn(n, typeof e != "symbol" ? e + "" : e, t), t);
1
+ var zt = Object.defineProperty;
2
+ var Bt = (n, e, t) => e in n ? zt(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var R = (n, e, t) => (Bt(n, typeof e != "symbol" ? e + "" : e, t), t);
4
4
  import * as M from "react";
5
- import Ae, { createContext as Ot, useReducer as rn, useEffect as Se, useDebugValue as Rt, useCallback as xt, useContext as Pe, useRef as Re, useMemo as Tt } from "react";
6
- import { jsx as on } from "react/jsx-runtime";
5
+ import fe, { createContext as pt, useReducer as Qt, useEffect as ht, useDebugValue as Gt, useCallback as Kt, useContext as Ce, useMemo as Wt } from "react";
6
+ import { jsx as Jt } 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
- let ln = 0;
9
- function dn(n, e) {
10
- const t = `atom${++ln}`, i = {
8
+ let qt = 0;
9
+ function Ht(n, e) {
10
+ const t = `atom${++qt}`, i = {
11
11
  toString: () => t
12
12
  };
13
13
  return typeof n == "function" ? i.read = n : (i.init = n, i.read = function(a) {
@@ -19,311 +19,311 @@ function dn(n, e) {
19
19
  );
20
20
  }), e && (i.write = e), i;
21
21
  }
22
- const be = (n) => "init" in n, Fe = (n) => !!n.write, ue = /* @__PURE__ */ new WeakMap(), un = (n, e) => {
23
- ue.set(n, e), n.catch(() => {
24
- }).finally(() => ue.delete(n));
25
- }, We = (n, e) => {
26
- const t = ue.get(n);
27
- t && (ue.delete(n), t(e));
28
- }, Je = (n, e) => {
22
+ const ke = (n) => "init" in n, ve = (n) => !!n.write, re = /* @__PURE__ */ new WeakMap(), Zt = (n, e) => {
23
+ re.set(n, e), n.catch(() => {
24
+ }).finally(() => re.delete(n));
25
+ }, 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
- }, qe = (n, e) => {
30
+ }, Ve = (n, e) => {
31
31
  n.status = "rejected", n.reason = e;
32
- }, cn = (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), He = (n, e) => !!n && "e" in n && "e" in e && Object.is(n.e, e.e), B = (n) => !!n && "v" in n && n.v instanceof Promise, mn = (n, e) => "v" in n && "v" in e && n.v.orig && n.v.orig === e.v.orig, re = (n) => {
32
+ }, Xt = (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), _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, Yt = (n, e) => "v" in n && "v" in e && n.v.orig && n.v.orig === e.v.orig, ne = (n) => {
33
33
  if ("e" in n)
34
34
  throw n.e;
35
35
  return n.v;
36
- }, Dt = () => {
36
+ }, gt = () => {
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());
40
- const s = (f) => n.get(f), r = (f, m) => {
41
- (_ ? "production" : void 0) !== "production" && Object.freeze(m);
42
- const g = n.get(f);
43
- if (n.set(f, m), t.has(f) || t.set(f, g), B(g)) {
44
- const h = "v" in m ? m.v instanceof Promise ? m.v : Promise.resolve(m.v) : Promise.reject(m.e);
45
- g.v !== h && We(g.v, h);
46
- }
47
- }, o = (f, m, g) => {
48
- const h = /* @__PURE__ */ new Map();
49
- let N = !1;
50
- g.forEach((C, b) => {
51
- !C && b === f && (C = m), C ? (h.set(b, C), m.d.get(b) !== C && (N = !0)) : (_ ? "production" : void 0) !== "production" && console.warn("[Bug] atom state not found");
52
- }), (N || m.d.size !== h.size) && (m.d = h);
53
- }, d = (f, m, g) => {
54
- const h = s(f), N = {
55
- d: (h == null ? void 0 : h.d) || /* @__PURE__ */ new Map(),
56
- v: m
40
+ const s = (m) => n.get(m), r = (m, p) => {
41
+ (_ ? "production" : void 0) !== "production" && Object.freeze(p);
42
+ const h = n.get(m);
43
+ if (n.set(m, p), t.has(m) || t.set(m, h), z(h)) {
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);
46
+ }
47
+ }, o = (m, p, h) => {
48
+ const g = /* @__PURE__ */ new Map();
49
+ let b = !1;
50
+ h.forEach((C, v) => {
51
+ !C && v === m && (C = p), C ? (g.set(v, C), p.d.get(v) !== C && (b = !0)) : (_ ? "production" : void 0) !== "production" && console.warn("[Bug] atom state not found");
52
+ }), (b || p.d.size !== g.size) && (p.d = g);
53
+ }, l = (m, p, h) => {
54
+ const g = s(m), b = {
55
+ d: (g == null ? void 0 : g.d) || /* @__PURE__ */ new Map(),
56
+ v: p
57
57
  };
58
- if (g && o(f, N, g), J(h, N) && h.d === N.d)
59
- return h;
60
- if (B(h) && B(N) && mn(h, N)) {
61
- if (h.d === N.d)
62
- return h;
63
- N.v = h.v;
64
- }
65
- return r(f, N), N;
66
- }, l = (f, m, g, h) => {
67
- if (cn(m)) {
68
- let N;
58
+ if (h && o(m, b, h), W(g, b) && g.d === b.d)
59
+ return g;
60
+ if (z(g) && z(b) && Yt(g, b)) {
61
+ if (g.d === b.d)
62
+ return g;
63
+ b.v = g.v;
64
+ }
65
+ return r(m, b), b;
66
+ }, u = (m, p, h, g) => {
67
+ if (Xt(p)) {
68
+ let b;
69
69
  const C = () => {
70
- const O = s(f);
71
- if (!B(O) || O.v !== b)
70
+ const E = s(m);
71
+ if (!z(E) || E.v !== v)
72
72
  return;
73
- const T = d(
74
- f,
75
- b,
76
- g
73
+ const P = l(
74
+ m,
75
+ v,
76
+ h
77
77
  );
78
- e.has(f) && O.d !== T.d && I(f, T, O.d);
79
- }, b = new Promise((O, T) => {
80
- let R = !1;
81
- m.then(
82
- (D) => {
83
- R || (R = !0, Je(b, D), O(D), C());
78
+ e.has(m) && E.d !== P.d && I(m, P, E.d);
79
+ }, v = new Promise((E, P) => {
80
+ let x = !1;
81
+ p.then(
82
+ (T) => {
83
+ x || (x = !0, Pe(v, T), E(T), C());
84
84
  },
85
- (D) => {
86
- R || (R = !0, qe(b, D), T(D), C());
85
+ (T) => {
86
+ x || (x = !0, Ve(v, T), P(T), C());
87
87
  }
88
- ), N = (D) => {
89
- R || (R = !0, D.then(
90
- (V) => Je(b, V),
91
- (V) => qe(b, V)
92
- ), O(D));
88
+ ), b = (T) => {
89
+ x || (x = !0, T.then(
90
+ (V) => Pe(v, V),
91
+ (V) => Ve(v, V)
92
+ ), E(T));
93
93
  };
94
94
  });
95
- return b.orig = m, b.status = "pending", un(b, (O) => {
96
- O && N(O), h == null || h();
97
- }), d(f, b, g);
98
- }
99
- return d(f, m, g);
100
- }, u = (f, m, g) => {
101
- const h = s(f), N = {
102
- d: (h == null ? void 0 : h.d) || /* @__PURE__ */ new Map(),
103
- e: m
95
+ return v.orig = p, v.status = "pending", Zt(v, (E) => {
96
+ E && b(E), g == null || g();
97
+ }), l(m, v, h);
98
+ }
99
+ return l(m, p, h);
100
+ }, d = (m, p, h) => {
101
+ const g = s(m), b = {
102
+ d: (g == null ? void 0 : g.d) || /* @__PURE__ */ new Map(),
103
+ e: p
104
104
  };
105
- return g && o(f, N, g), He(h, N) && h.d === N.d ? h : (r(f, N), N);
106
- }, p = (f, m) => {
107
- const g = s(f);
108
- if (!m && g && (e.has(f) || Array.from(g.d).every(([R, D]) => {
109
- if (R === f)
105
+ return h && o(m, b, h), _e(g, b) && g.d === b.d ? g : (r(m, b), b);
106
+ }, f = (m, p) => {
107
+ const h = s(m);
108
+ if (!p && h && (e.has(m) || Array.from(h.d).every(([x, T]) => {
109
+ if (x === m)
110
110
  return !0;
111
- const V = p(R);
112
- return V === D || J(V, D);
111
+ const V = f(x);
112
+ return V === T || W(V, T);
113
113
  })))
114
- return g;
115
- const h = /* @__PURE__ */ new Map();
116
- let N = !0;
117
- const C = (R) => {
118
- if (R === f) {
119
- const V = s(R);
114
+ return h;
115
+ const g = /* @__PURE__ */ new Map();
116
+ let b = !0;
117
+ const C = (x) => {
118
+ if (x === m) {
119
+ const V = s(x);
120
120
  if (V)
121
- return h.set(R, V), re(V);
122
- if (be(R))
123
- return h.set(R, void 0), R.init;
121
+ return g.set(x, V), ne(V);
122
+ if (ke(x))
123
+ return g.set(x, void 0), x.init;
124
124
  throw new Error("no atom init");
125
125
  }
126
- const D = p(R);
127
- return h.set(R, D), re(D);
126
+ const T = f(x);
127
+ return g.set(x, T), ne(T);
128
128
  };
129
- let b, O;
130
- const T = {
129
+ let v, E;
130
+ const P = {
131
131
  get signal() {
132
- return b || (b = new AbortController()), b.signal;
132
+ return v || (v = new AbortController()), v.signal;
133
133
  },
134
134
  get setSelf() {
135
- return (_ ? "production" : void 0) !== "production" && !Fe(f) && console.warn("setSelf function cannot be used with read-only atom"), !O && Fe(f) && (O = (...R) => {
136
- if ((_ ? "production" : void 0) !== "production" && N && console.warn("setSelf function cannot be called in sync"), !N)
137
- return w(f, ...R);
138
- }), O;
135
+ return (_ ? "production" : void 0) !== "production" && !ve(m) && console.warn("setSelf function cannot be used with read-only atom"), !E && ve(m) && (E = (...x) => {
136
+ if ((_ ? "production" : void 0) !== "production" && b && console.warn("setSelf function cannot be called in sync"), !b)
137
+ return F(m, ...x);
138
+ }), E;
139
139
  }
140
140
  };
141
141
  try {
142
- const R = f.read(C, T);
143
- return l(
144
- f,
145
- R,
146
- h,
147
- () => b == null ? void 0 : b.abort()
142
+ const x = m.read(C, P);
143
+ return u(
144
+ m,
145
+ x,
146
+ g,
147
+ () => v == null ? void 0 : v.abort()
148
148
  );
149
- } catch (R) {
150
- return u(f, R, h);
149
+ } catch (x) {
150
+ return d(m, x, g);
151
151
  } finally {
152
- N = !1;
153
- }
154
- }, c = (f) => re(p(f)), v = (f) => {
155
- let m = e.get(f);
156
- return m || (m = L(f)), m;
157
- }, S = (f, m) => !m.l.size && (!m.t.size || m.t.size === 1 && m.t.has(f)), k = (f) => {
158
- const m = e.get(f);
159
- m && S(f, m) && E(f);
160
- }, y = (f) => {
161
- const m = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new WeakMap(), h = (b) => {
162
- var O;
163
- const T = new Set((O = e.get(b)) == null ? void 0 : O.t);
164
- return t.forEach((R, D) => {
152
+ b = !1;
153
+ }
154
+ }, c = (m) => ne(f(m)), S = (m) => {
155
+ let p = e.get(m);
156
+ return p || (p = D(m)), p;
157
+ }, y = (m, p) => !p.l.size && (!p.t.size || p.t.size === 1 && p.t.has(m)), k = (m) => {
158
+ const p = e.get(m);
159
+ p && y(m, p) && w(m);
160
+ }, N = (m) => {
161
+ const p = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new WeakMap(), g = (v) => {
162
+ var E;
163
+ const P = new Set((E = e.get(v)) == null ? void 0 : E.t);
164
+ return t.forEach((x, T) => {
165
165
  var V;
166
- (V = s(D)) != null && V.d.has(b) && T.add(D);
167
- }), T;
168
- }, N = (b) => {
169
- h(b).forEach((O) => {
170
- O !== b && (m.set(
171
- O,
172
- (m.get(O) || /* @__PURE__ */ new Set()).add(b)
173
- ), g.set(O, (g.get(O) || 0) + 1), N(O));
166
+ (V = s(T)) != null && V.d.has(v) && P.add(T);
167
+ }), P;
168
+ }, b = (v) => {
169
+ g(v).forEach((E) => {
170
+ E !== v && (p.set(
171
+ E,
172
+ (p.get(E) || /* @__PURE__ */ new Set()).add(v)
173
+ ), h.set(E, (h.get(E) || 0) + 1), b(E));
174
174
  });
175
175
  };
176
- N(f);
177
- const C = (b) => {
178
- h(b).forEach((O) => {
179
- var T;
180
- if (O !== b) {
181
- let R = g.get(O);
182
- if (R && g.set(O, --R), !R) {
183
- let D = !!((T = m.get(O)) != null && T.size);
184
- if (D) {
185
- const V = s(O), se = p(O, !0);
186
- D = !J(V, se);
176
+ b(m);
177
+ const C = (v) => {
178
+ g(v).forEach((E) => {
179
+ var P;
180
+ if (E !== v) {
181
+ let x = h.get(E);
182
+ if (x && h.set(E, --x), !x) {
183
+ let T = !!((P = p.get(E)) != null && P.size);
184
+ if (T) {
185
+ const V = s(E), te = f(E, !0);
186
+ T = !W(V, te);
187
187
  }
188
- D || m.forEach((V) => V.delete(O));
188
+ T || p.forEach((V) => V.delete(E));
189
189
  }
190
- C(O);
190
+ C(E);
191
191
  }
192
192
  });
193
193
  };
194
- C(f);
195
- }, F = (f, ...m) => {
196
- let g = !0;
197
- const h = (b) => re(p(b)), N = (b, ...O) => {
198
- let T;
199
- if (b === f) {
200
- if (!be(b))
194
+ C(m);
195
+ }, O = (m, ...p) => {
196
+ let h = !0;
197
+ const g = (v) => ne(f(v)), b = (v, ...E) => {
198
+ let P;
199
+ if (v === m) {
200
+ if (!ke(v))
201
201
  throw new Error("atom not writable");
202
- const R = s(b), D = l(b, O[0]);
203
- J(R, D) || y(b);
202
+ const x = s(v), T = u(v, E[0]);
203
+ W(x, T) || N(v);
204
204
  } else
205
- T = F(b, ...O);
206
- if (!g) {
207
- const R = P();
205
+ P = O(v, ...E);
206
+ if (!h) {
207
+ const x = L();
208
208
  (_ ? "production" : void 0) !== "production" && i.forEach(
209
- (D) => D({ type: "async-write", flushed: R })
209
+ (T) => T({ type: "async-write", flushed: x })
210
210
  );
211
211
  }
212
- return T;
213
- }, C = f.write(h, N, ...m);
214
- return g = !1, C;
215
- }, w = (f, ...m) => {
216
- const g = F(f, ...m), h = P();
212
+ return P;
213
+ }, C = m.write(g, b, ...p);
214
+ return h = !1, C;
215
+ }, F = (m, ...p) => {
216
+ const h = O(m, ...p), g = L();
217
217
  return (_ ? "production" : void 0) !== "production" && i.forEach(
218
- (N) => N({ type: "write", flushed: h })
219
- ), g;
220
- }, L = (f, m, g) => {
221
- var h;
222
- const N = g || [];
223
- (h = s(f)) == null || h.d.forEach((b, O) => {
224
- const T = e.get(O);
225
- T ? T.t.add(f) : O !== f && L(O, f, N);
226
- }), p(f);
218
+ (b) => b({ type: "write", flushed: g })
219
+ ), h;
220
+ }, D = (m, p, h) => {
221
+ var g;
222
+ const b = h || [];
223
+ (g = s(m)) == null || g.d.forEach((v, E) => {
224
+ const P = e.get(E);
225
+ P ? P.t.add(m) : E !== m && D(E, m, b);
226
+ }), f(m);
227
227
  const C = {
228
- t: new Set(m && [m]),
228
+ t: new Set(p && [p]),
229
229
  l: /* @__PURE__ */ new Set()
230
230
  };
231
- if (e.set(f, C), (_ ? "production" : void 0) !== "production" && a.add(f), Fe(f) && f.onMount) {
232
- const { onMount: b } = f;
233
- N.push(() => {
234
- const O = b((...T) => w(f, ...T));
235
- O && (C.u = O);
231
+ if (e.set(m, C), (_ ? "production" : void 0) !== "production" && a.add(m), ve(m) && m.onMount) {
232
+ const { onMount: v } = m;
233
+ b.push(() => {
234
+ const E = v((...P) => F(m, ...P));
235
+ E && (C.u = E);
236
236
  });
237
237
  }
238
- return g || N.forEach((b) => b()), C;
239
- }, E = (f) => {
240
- var m;
241
- const g = (m = e.get(f)) == null ? void 0 : m.u;
242
- g && g(), e.delete(f), (_ ? "production" : void 0) !== "production" && a.delete(f);
243
- const h = s(f);
244
- h ? (B(h) && We(h.v), h.d.forEach((N, C) => {
245
- if (C !== f) {
246
- const b = e.get(C);
247
- b && (b.t.delete(f), S(C, b) && E(C));
238
+ return h || b.forEach((v) => v()), C;
239
+ }, w = (m) => {
240
+ var p;
241
+ const h = (p = e.get(m)) == null ? void 0 : p.u;
242
+ h && h(), e.delete(m), (_ ? "production" : void 0) !== "production" && a.delete(m);
243
+ const g = s(m);
244
+ g ? (z(g) && Ae(g.v), g.d.forEach((b, C) => {
245
+ if (C !== m) {
246
+ const v = e.get(C);
247
+ v && (v.t.delete(m), y(C, v) && w(C));
248
248
  }
249
- })) : (_ ? "production" : void 0) !== "production" && console.warn("[Bug] could not find atom state to unmount", f);
250
- }, I = (f, m, g) => {
251
- const h = new Set(m.d.keys());
252
- g == null || g.forEach((N, C) => {
253
- if (h.has(C)) {
254
- h.delete(C);
249
+ })) : (_ ? "production" : void 0) !== "production" && console.warn("[Bug] could not find atom state to unmount", m);
250
+ }, I = (m, p, h) => {
251
+ const g = new Set(p.d.keys());
252
+ h == null || h.forEach((b, C) => {
253
+ if (g.has(C)) {
254
+ g.delete(C);
255
255
  return;
256
256
  }
257
- const b = e.get(C);
258
- b && (b.t.delete(f), S(C, b) && E(C));
259
- }), h.forEach((N) => {
260
- const C = e.get(N);
261
- C ? C.t.add(f) : e.has(f) && L(N, f);
257
+ const v = e.get(C);
258
+ v && (v.t.delete(m), y(C, v) && w(C));
259
+ }), g.forEach((b) => {
260
+ const C = e.get(b);
261
+ C ? C.t.add(m) : e.has(m) && D(b, m);
262
262
  });
263
- }, P = () => {
264
- let f;
265
- for ((_ ? "production" : void 0) !== "production" && (f = /* @__PURE__ */ new Set()); t.size; ) {
266
- const m = Array.from(t);
267
- t.clear(), m.forEach(([g, h]) => {
268
- const N = s(g);
269
- if (N) {
270
- const C = e.get(g);
271
- C && N.d !== (h == null ? void 0 : h.d) && I(g, N, h == null ? void 0 : h.d), C && !// TODO This seems pretty hacky. Hope to fix it.
263
+ }, L = () => {
264
+ let m;
265
+ for ((_ ? "production" : void 0) !== "production" && (m = /* @__PURE__ */ new Set()); t.size; ) {
266
+ const p = Array.from(t);
267
+ t.clear(), p.forEach(([h, g]) => {
268
+ const b = s(h);
269
+ if (b) {
270
+ const C = e.get(h);
271
+ C && b.d !== (g == null ? void 0 : g.d) && I(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
- (!B(h) && (J(h, N) || He(h, N))) && (C.l.forEach((b) => b()), (_ ? "production" : void 0) !== "production" && f.add(g));
273
+ (!z(g) && (W(g, b) || _e(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
  });
277
277
  }
278
278
  if ((_ ? "production" : void 0) !== "production")
279
- return f;
280
- }, A = (f, m) => {
281
- const g = v(f), h = P(), N = g.l;
282
- return N.add(m), (_ ? "production" : void 0) !== "production" && i.forEach(
283
- (C) => C({ type: "sub", flushed: h })
279
+ return m;
280
+ }, A = (m, p) => {
281
+ const h = S(m), g = L(), b = h.l;
282
+ return b.add(p), (_ ? "production" : void 0) !== "production" && i.forEach(
283
+ (C) => C({ type: "sub", flushed: g })
284
284
  ), () => {
285
- N.delete(m), k(f), (_ ? "production" : void 0) !== "production" && i.forEach((C) => C({ type: "unsub" }));
285
+ b.delete(p), k(m), (_ ? "production" : void 0) !== "production" && i.forEach((C) => C({ type: "unsub" }));
286
286
  };
287
287
  };
288
288
  return (_ ? "production" : void 0) !== "production" ? {
289
289
  get: c,
290
- set: w,
290
+ set: F,
291
291
  sub: A,
292
292
  // store dev methods (these are tentative and subject to change without notice)
293
- dev_subscribe_store: (f, m) => {
294
- if (m !== 2)
293
+ dev_subscribe_store: (m, p) => {
294
+ if (p !== 2)
295
295
  throw new Error("The current StoreListener revision is 2.");
296
- return i.add(f), () => {
297
- i.delete(f);
296
+ return i.add(m), () => {
297
+ i.delete(m);
298
298
  };
299
299
  },
300
300
  dev_get_mounted_atoms: () => a.values(),
301
- dev_get_atom_state: (f) => n.get(f),
302
- dev_get_mounted: (f) => e.get(f),
303
- dev_restore_atoms: (f) => {
304
- for (const [g, h] of f)
305
- be(g) && (l(g, h), y(g));
306
- const m = P();
301
+ dev_get_atom_state: (m) => n.get(m),
302
+ dev_get_mounted: (m) => e.get(m),
303
+ dev_restore_atoms: (m) => {
304
+ for (const [h, g] of m)
305
+ ke(h) && (u(h, g), N(h));
306
+ const p = L();
307
307
  i.forEach(
308
- (g) => g({ type: "restore", flushed: m })
308
+ (h) => h({ type: "restore", flushed: p })
309
309
  );
310
310
  }
311
311
  } : {
312
312
  get: c,
313
- set: w,
313
+ set: F,
314
314
  sub: A
315
315
  };
316
316
  };
317
- let we;
317
+ let Se;
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 fn = () => (we || ((_ ? "production" : void 0) !== "production" && globalThis.__NUMBER_OF_JOTAI_INSTANCES__ !== 1 && console.warn(
319
+ const en = () => (Se || ((_ ? "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
- ), we = Dt()), we);
322
- 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 };
323
- const hn = Ot(void 0), Lt = (n) => {
324
- const e = Pe(hn);
325
- return (n == null ? void 0 : n.store) || e || fn();
326
- }, gn = (n) => typeof (n == null ? void 0 : n.then) == "function", kn = Ae.use || ((n) => {
321
+ ), Se = gt()), Se);
322
+ var tn = { 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 nn = pt(void 0), kt = (n) => {
324
+ const e = Ce(nn);
325
+ return (n == null ? void 0 : n.store) || e || en();
326
+ }, an = (n) => typeof (n == null ? void 0 : n.then) == "function", sn = fe.use || ((n) => {
327
327
  if (n.status === "pending")
328
328
  throw n;
329
329
  if (n.status === "fulfilled")
@@ -337,58 +337,58 @@ const hn = Ot(void 0), Lt = (n) => {
337
337
  }
338
338
  ), n);
339
339
  });
340
- function vn(n, e) {
341
- const t = Lt(e), [[i, a, s], r] = rn(
342
- (l) => {
343
- const u = t.get(n);
344
- return Object.is(l[0], u) && l[1] === t && l[2] === n ? l : [u, t, n];
340
+ function rn(n, e) {
341
+ const t = kt(e), [[i, a, s], r] = Qt(
342
+ (u) => {
343
+ const d = t.get(n);
344
+ return Object.is(u[0], d) && u[1] === t && u[2] === n ? u : [d, t, n];
345
345
  },
346
346
  void 0,
347
347
  () => [t.get(n), t, n]
348
348
  );
349
349
  let o = i;
350
350
  (a !== t || s !== n) && (r(), o = t.get(n));
351
- const d = e == null ? void 0 : e.delay;
352
- return Se(() => {
353
- const l = t.sub(n, () => {
354
- if (typeof d == "number") {
355
- setTimeout(r, d);
351
+ const l = e == null ? void 0 : e.delay;
352
+ return ht(() => {
353
+ const u = t.sub(n, () => {
354
+ if (typeof l == "number") {
355
+ setTimeout(r, l);
356
356
  return;
357
357
  }
358
358
  r();
359
359
  });
360
- return r(), l;
361
- }, [t, n, d]), Rt(o), gn(o) ? kn(o) : o;
360
+ return r(), u;
361
+ }, [t, n, l]), Gt(o), an(o) ? sn(o) : o;
362
362
  }
363
- function Sn(n, e) {
364
- const t = Lt(e);
365
- return xt(
363
+ function on(n, e) {
364
+ const t = kt(e);
365
+ return Kt(
366
366
  (...a) => {
367
- if ((pn ? "production" : void 0) !== "production" && !("write" in n))
367
+ if ((tn ? "production" : void 0) !== "production" && !("write" in n))
368
368
  throw new Error("not writable atom");
369
369
  return t.set(n, ...a);
370
370
  },
371
371
  [t, n]
372
372
  );
373
373
  }
374
- function yn(n, e) {
374
+ function ln(n, e) {
375
375
  return [
376
- vn(n, e),
376
+ rn(n, e),
377
377
  // We do wrong type assertion here, which results in throwing an error.
378
- Sn(n, e)
378
+ on(n, e)
379
379
  ];
380
380
  }
381
- const Ve = dn(null);
382
- Ve.debugLabel = "accountAtom";
383
- var Nn = { 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 };
381
+ const Ee = Ht(null);
382
+ Ee.debugLabel = "accountAtom";
383
+ var dn = { 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
- NZ_AWS_REGION: bn,
386
- NZ_BACKOFFICE_BACK_URL: Fn,
387
- NZ_CORE_SERVICES_GRAPHQL_URL: wn,
388
- NZ_CORE_SERVICES_REST_URL: Cn
389
- } = Nn, En = {
385
+ NZ_AWS_REGION: un,
386
+ NZ_BACKOFFICE_BACK_URL: cn,
387
+ NZ_CORE_SERVICES_GRAPHQL_URL: mn,
388
+ NZ_CORE_SERVICES_REST_URL: fn
389
+ } = dn, pn = {
390
390
  AWS: {
391
- region: bn,
391
+ region: un,
392
392
  cognito: {
393
393
  userPoolId: "us-east-1_knSlGEmJ0",
394
394
  userPoolWebClientId: "3hmbfhf7nl3kq20qr9i5lihf1p"
@@ -396,9 +396,9 @@ const {
396
396
  },
397
397
  // Back services
398
398
  apiUrls: {
399
- restV1: Fn || "https://pabprg32bj.execute-api.us-east-1.amazonaws.com",
400
- restV2: Cn || "https://core-services-dev.nizza.com/api",
401
- graphql: wn || "https://core-services-dev.nizza.com/graphql",
399
+ restV1: cn || "https://pabprg32bj.execute-api.us-east-1.amazonaws.com",
400
+ restV2: fn || "https://core-services-dev.nizza.com/api",
401
+ graphql: mn || "https://core-services-dev.nizza.com/graphql",
402
402
  corsProxy: "https://1qmd8jteh1.execute-api.us-east-1.amazonaws.com"
403
403
  },
404
404
  publicUrls: {
@@ -412,7 +412,7 @@ const {
412
412
  wssIVSChat: "wss://edge.ivschat.us-east-1.amazonaws.com"
413
413
  }
414
414
  };
415
- async function It(n) {
415
+ async function vt(n) {
416
416
  const {
417
417
  url: e,
418
418
  method: t = "GET",
@@ -421,40 +421,40 @@ async function It(n) {
421
421
  contentTypeJson: s = !0,
422
422
  timeout: r,
423
423
  ...o
424
- } = n, d = s && !n.headers ? new Headers({
424
+ } = n, l = s && !n.headers ? new Headers({
425
425
  "content-type": "application/json"
426
426
  }) : n.headers;
427
427
  try {
428
- const l = new AbortController(), { signal: u } = l;
429
- let p;
428
+ const u = new AbortController(), { signal: d } = u;
429
+ let f;
430
430
  const c = fetch(e, {
431
431
  method: t,
432
- headers: d,
432
+ headers: l,
433
433
  body: i,
434
- signal: u,
434
+ signal: d,
435
435
  ...o
436
436
  });
437
- r && (p = setTimeout(() => {
438
- l.abort();
437
+ r && (f = setTimeout(() => {
438
+ u.abort();
439
439
  }, r));
440
- const v = await c;
440
+ const S = await c;
441
441
  if (a)
442
- return v;
443
- const S = await v.json();
444
- if (clearTimeout(p), !v.ok) {
445
- const k = S ? JSON.stringify(S) : v.statusText;
442
+ return S;
443
+ const y = await S.json();
444
+ if (clearTimeout(f), !S.ok) {
445
+ const k = y ? JSON.stringify(y) : S.statusText;
446
446
  throw new Error(k);
447
447
  }
448
- return S;
449
- } catch (l) {
450
- throw console.error("[CustomFetch] ", l), l;
448
+ return y;
449
+ } catch (u) {
450
+ throw console.error("[CustomFetch] ", u), u;
451
451
  }
452
452
  }
453
- const js = (n) => It({ ...n, contentTypeJson: !1, raw: !1 });
454
- function $s(n, e, t) {
455
- fetch(e).then((i) => i.blob()).then((i) => On(i, `${n}.${t}`));
453
+ const Ts = (n) => vt({ ...n, contentTypeJson: !1, raw: !1 });
454
+ function Ds(n, e, t) {
455
+ fetch(e).then((i) => i.blob()).then((i) => hn(i, `${n}.${t}`));
456
456
  }
457
- const On = (n, e, t) => {
457
+ const hn = (n, e, t) => {
458
458
  const i = [n], a = new Blob(i, {
459
459
  type: t != null ? t : "application/octet-stream"
460
460
  });
@@ -464,283 +464,28 @@ const On = (n, e, t) => {
464
464
  return r.style.display = "none", r.href = s, r.setAttribute("download", e), typeof r.download == "undefined" && r.setAttribute("target", "_blank"), document.body.appendChild(r), r.click(), setTimeout(() => {
465
465
  document.body.removeChild(r), window.URL.revokeObjectURL(s);
466
466
  }, 200);
467
- }, Rn = Symbol(), _e = Symbol(), q = "a", ne = "w";
468
- let xn = (n, e) => new Proxy(n, e);
469
- const xe = Object.getPrototypeOf, Te = /* @__PURE__ */ new WeakMap(), At = (n) => n && (Te.has(n) ? Te.get(n) : xe(n) === Object.prototype || xe(n) === Array.prototype), ce = (n) => typeof n == "object" && n !== null, Tn = (n) => {
470
- if (Array.isArray(n))
471
- return Array.from(n);
472
- const e = Object.getOwnPropertyDescriptors(n);
473
- return Object.values(e).forEach((t) => {
474
- t.configurable = !0;
475
- }), Object.create(xe(n), e);
476
- }, Ue = (n) => n[_e] || n, Pt = (n, e, t, i) => {
477
- if (!At(n))
478
- return n;
479
- let a = i && i.get(n);
480
- if (!a) {
481
- const d = Ue(n);
482
- a = ((l) => Object.values(Object.getOwnPropertyDescriptors(l)).some((u) => !u.configurable && !u.writable))(d) ? [d, Tn(d)] : [d], i == null || i.set(n, a);
483
- }
484
- const [s, r] = a;
485
- let o = t && t.get(s);
486
- return o && o[1].f === !!r || (o = ((d, l) => {
487
- const u = { f: l };
488
- let p = !1;
489
- const c = (S, k) => {
490
- if (!p) {
491
- let y = u[q].get(d);
492
- if (y || (y = {}, u[q].set(d, y)), S === ne)
493
- y[ne] = !0;
494
- else {
495
- let F = y[S];
496
- F || (F = /* @__PURE__ */ new Set(), y[S] = F), F.add(k);
497
- }
498
- }
499
- }, v = { get: (S, k) => k === _e ? d : (c("k", k), Pt(Reflect.get(S, k), u[q], u.c, u.t)), has: (S, k) => k === Rn ? (p = !0, u[q].delete(d), !0) : (c("h", k), Reflect.has(S, k)), getOwnPropertyDescriptor: (S, k) => (c("o", k), Reflect.getOwnPropertyDescriptor(S, k)), ownKeys: (S) => (c(ne), Reflect.ownKeys(S)) };
500
- return l && (v.set = v.deleteProperty = () => !1), [v, u];
501
- })(s, !!r), o[1].p = xn(r || s, o[0]), t && t.set(s, o)), o[1][q] = e, o[1].c = t, o[1].t = i, o[1].p;
502
- }, Vt = (n, e, t, i) => {
503
- if (Object.is(n, e))
504
- return !1;
505
- if (!ce(n) || !ce(e))
506
- return !0;
507
- const a = t.get(Ue(n));
508
- if (!a)
509
- return !0;
510
- if (i) {
511
- const r = i.get(n);
512
- if (r && r.n === e)
513
- return r.g;
514
- i.set(n, { n: e, g: !1 });
515
- }
516
- let s = null;
517
- try {
518
- for (const r of a.h || [])
519
- if (s = Reflect.has(n, r) !== Reflect.has(e, r), s)
520
- return s;
521
- if (a[ne] === !0) {
522
- if (s = ((r, o) => {
523
- const d = Reflect.ownKeys(r), l = Reflect.ownKeys(o);
524
- return d.length !== l.length || d.some((u, p) => u !== l[p]);
525
- })(n, e), s)
526
- return s;
527
- } else
528
- for (const r of a.o || [])
529
- if (s = !!Reflect.getOwnPropertyDescriptor(n, r) != !!Reflect.getOwnPropertyDescriptor(e, r), s)
530
- return s;
531
- for (const r of a.k || [])
532
- if (s = Vt(n[r], e[r], t, i), s)
533
- return s;
534
- return s === null && (s = !0), s;
535
- } finally {
536
- i && i.set(n, { n: e, g: s });
537
- }
538
- }, Dn = (n) => At(n) && n[_e] || null, Ze = (n, e = !0) => {
539
- Te.set(n, e);
540
- }, Ln = (n, e, t) => {
541
- const i = [], a = /* @__PURE__ */ new WeakSet(), s = (r, o) => {
542
- if (a.has(r))
543
- return;
544
- ce(r) && a.add(r);
545
- const d = ce(r) && e.get(Ue(r));
546
- if (d) {
547
- var l, u;
548
- if ((l = d.h) == null || l.forEach((c) => {
549
- const v = `:has(${String(c)})`;
550
- i.push(o ? [...o, v] : [v]);
551
- }), d[ne] === !0) {
552
- const c = ":ownKeys";
553
- i.push(o ? [...o, c] : [c]);
554
- } else {
555
- var p;
556
- (p = d.o) == null || p.forEach((c) => {
557
- const v = `:hasOwn(${String(c)})`;
558
- i.push(o ? [...o, v] : [v]);
559
- });
560
- }
561
- (u = d.k) == null || u.forEach((c) => {
562
- t && !("value" in (Object.getOwnPropertyDescriptor(r, c) || {})) || s(r[c], o ? [...o, c] : [c]);
563
- });
564
- } else
565
- o && i.push(o);
566
- };
567
- return s(n), i;
568
467
  };
569
- var me = { 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 };
570
- const Ce = (n) => typeof n == "object" && n !== null, $ = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakSet(), In = (n = Object.is, e = (l, u) => new Proxy(l, u), t = (l) => Ce(l) && !Y.has(l) && (Array.isArray(l) || !(Symbol.iterator in l)) && !(l instanceof WeakMap) && !(l instanceof WeakSet) && !(l instanceof Error) && !(l instanceof Number) && !(l instanceof Date) && !(l instanceof String) && !(l instanceof RegExp) && !(l instanceof ArrayBuffer), i = (l) => {
571
- switch (l.status) {
572
- case "fulfilled":
573
- return l.value;
574
- case "rejected":
575
- throw l.reason;
576
- default:
577
- throw l;
578
- }
579
- }, a = /* @__PURE__ */ new WeakMap(), s = (l, u, p = i) => {
580
- const c = a.get(l);
581
- if ((c == null ? void 0 : c[0]) === u)
582
- return c[1];
583
- const v = Array.isArray(l) ? [] : Object.create(Object.getPrototypeOf(l));
584
- return Ze(v, !0), a.set(l, [u, v]), Reflect.ownKeys(l).forEach((S) => {
585
- if (Object.getOwnPropertyDescriptor(v, S))
586
- return;
587
- const k = Reflect.get(l, S), { enumerable: y } = Reflect.getOwnPropertyDescriptor(
588
- l,
589
- S
590
- ), F = {
591
- value: k,
592
- enumerable: y,
593
- // This is intentional to avoid copying with proxy-compare.
594
- // It's still non-writable, so it avoids assigning a value.
595
- configurable: !0
596
- };
597
- if (Y.has(k))
598
- Ze(k, !1);
599
- else if (k instanceof Promise)
600
- delete F.value, F.get = () => p(k);
601
- else if ($.has(k)) {
602
- const [w, L] = $.get(
603
- k
604
- );
605
- F.value = s(
606
- w,
607
- L(),
608
- p
609
- );
610
- }
611
- Object.defineProperty(v, S, F);
612
- }), Object.preventExtensions(v);
613
- }, r = /* @__PURE__ */ new WeakMap(), o = [1, 1], d = (l) => {
614
- if (!Ce(l))
615
- throw new Error("object required");
616
- const u = r.get(l);
617
- if (u)
618
- return u;
619
- let p = o[0];
620
- const c = /* @__PURE__ */ new Set(), v = (m, g = ++o[0]) => {
621
- p !== g && (p = g, c.forEach((h) => h(m, g)));
622
- };
623
- let S = o[1];
624
- const k = (m = ++o[1]) => (S !== m && !c.size && (S = m, F.forEach(([g]) => {
625
- const h = g[1](m);
626
- h > p && (p = h);
627
- })), p), y = (m) => (g, h) => {
628
- const N = [...g];
629
- N[1] = [m, ...N[1]], v(N, h);
630
- }, F = /* @__PURE__ */ new Map(), w = (m, g) => {
631
- if ((me ? "production" : void 0) !== "production" && F.has(m))
632
- throw new Error("prop listener already exists");
633
- if (c.size) {
634
- const h = g[3](y(m));
635
- F.set(m, [g, h]);
636
- } else
637
- F.set(m, [g]);
638
- }, L = (m) => {
639
- var g;
640
- const h = F.get(m);
641
- h && (F.delete(m), (g = h[1]) == null || g.call(h));
642
- }, E = (m) => (c.add(m), c.size === 1 && F.forEach(([h, N], C) => {
643
- if ((me ? "production" : void 0) !== "production" && N)
644
- throw new Error("remove already exists");
645
- const b = h[3](y(C));
646
- F.set(C, [h, b]);
647
- }), () => {
648
- c.delete(m), c.size === 0 && F.forEach(([h, N], C) => {
649
- N && (N(), F.set(C, [h]));
650
- });
651
- }), I = Array.isArray(l) ? [] : Object.create(Object.getPrototypeOf(l)), A = e(I, {
652
- deleteProperty(m, g) {
653
- const h = Reflect.get(m, g);
654
- L(g);
655
- const N = Reflect.deleteProperty(m, g);
656
- return N && v(["delete", [g], h]), N;
657
- },
658
- set(m, g, h, N) {
659
- const C = Reflect.has(m, g), b = Reflect.get(m, g, N);
660
- if (C && (n(b, h) || r.has(h) && n(b, r.get(h))))
661
- return !0;
662
- L(g), Ce(h) && (h = Dn(h) || h);
663
- let O = h;
664
- if (h instanceof Promise)
665
- h.then((T) => {
666
- h.status = "fulfilled", h.value = T, v(["resolve", [g], T]);
667
- }).catch((T) => {
668
- h.status = "rejected", h.reason = T, v(["reject", [g], T]);
669
- });
670
- else {
671
- !$.has(h) && t(h) && (O = d(h));
672
- const T = !Y.has(O) && $.get(O);
673
- T && w(g, T);
674
- }
675
- return Reflect.set(m, g, O, N), v(["set", [g], h, b]), !0;
676
- }
677
- });
678
- r.set(l, A);
679
- const f = [
680
- I,
681
- k,
682
- s,
683
- E
684
- ];
685
- return $.set(A, f), Reflect.ownKeys(l).forEach((m) => {
686
- const g = Object.getOwnPropertyDescriptor(
687
- l,
688
- m
689
- );
690
- "value" in g && (A[m] = l[m], delete g.value, delete g.writable), Object.defineProperty(I, m, g);
691
- }), A;
692
- }) => [
693
- // public functions
694
- d,
695
- // shared state
696
- $,
697
- Y,
698
- // internal things
699
- n,
700
- e,
701
- t,
702
- i,
703
- a,
704
- s,
705
- r,
706
- o
707
- ], [An] = In();
708
- function Pn(n = {}) {
709
- return An(n);
710
- }
711
- function Vn(n, e, t) {
712
- const i = $.get(n);
713
- (me ? "production" : void 0) !== "production" && !i && console.warn("Please use proxy object");
714
- let a;
715
- const s = [], r = i[3];
716
- let o = !1;
717
- const l = r((u) => {
718
- if (s.push(u), t) {
719
- e(s.splice(0));
720
- return;
721
- }
722
- a || (a = Promise.resolve().then(() => {
723
- a = void 0, o && e(s.splice(0));
724
- }));
725
- });
726
- return o = !0, () => {
727
- o = !1, l();
728
- };
729
- }
730
- function Xe(n, e) {
731
- const t = $.get(n);
732
- (me ? "production" : void 0) !== "production" && !t && console.warn("Please use proxy object");
733
- const [i, a, s] = t;
734
- return s(i, a(), e);
735
- }
736
- function _t(n) {
737
- return Y.add(n), n;
738
- }
739
- var Ut = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
740
- function Me(n) {
468
+ var gn = { 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
+ (gn ? "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
+ }, kn = (n) => n ? Ue(n) : Ue;
484
+ var St = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
485
+ function xe(n) {
741
486
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
742
487
  }
743
- var Mt = { exports: {} }, jt = {};
488
+ var yt = { exports: {} }, Nt = {}, bt = { exports: {} }, Ft = {};
744
489
  /**
745
490
  * @license React
746
491
  * use-sync-external-store-shim.production.min.js
@@ -750,95 +495,121 @@ var Mt = { exports: {} }, jt = {};
750
495
  * This source code is licensed under the MIT license found in the
751
496
  * LICENSE file in the root directory of this source tree.
752
497
  */
753
- var W = Ae;
754
- function _n(n, e) {
498
+ var K = fe;
499
+ function vn(n, e) {
755
500
  return n === e && (n !== 0 || 1 / n === 1 / e) || n !== n && e !== e;
756
501
  }
757
- var Un = typeof Object.is == "function" ? Object.is : _n, Mn = W.useState, jn = W.useEffect, $n = W.useLayoutEffect, zn = W.useDebugValue;
758
- function Bn(n, e) {
759
- var t = e(), i = Mn({ inst: { value: t, getSnapshot: e } }), a = i[0].inst, s = i[1];
760
- return $n(function() {
761
- a.value = t, a.getSnapshot = e, Ee(a) && s({ inst: a });
762
- }, [n, t, e]), jn(function() {
763
- return Ee(a) && s({ inst: a }), n(function() {
764
- Ee(a) && s({ inst: a });
502
+ var Sn = typeof Object.is == "function" ? Object.is : vn, yn = K.useState, Nn = K.useEffect, bn = K.useLayoutEffect, Fn = K.useDebugValue;
503
+ function wn(n, e) {
504
+ var t = e(), i = yn({ inst: { value: t, getSnapshot: e } }), a = i[0].inst, s = i[1];
505
+ return bn(function() {
506
+ a.value = t, a.getSnapshot = e, ye(a) && s({ inst: a });
507
+ }, [n, t, e]), Nn(function() {
508
+ return ye(a) && s({ inst: a }), n(function() {
509
+ ye(a) && s({ inst: a });
765
510
  });
766
- }, [n]), zn(t), t;
511
+ }, [n]), Fn(t), t;
767
512
  }
768
- function Ee(n) {
513
+ function ye(n) {
769
514
  var e = n.getSnapshot;
770
515
  n = n.value;
771
516
  try {
772
517
  var t = e();
773
- return !Un(n, t);
518
+ return !Sn(n, t);
774
519
  } catch {
775
520
  return !0;
776
521
  }
777
522
  }
778
- function Qn(n, e) {
523
+ function Cn(n, e) {
779
524
  return e();
780
525
  }
781
- var Kn = typeof window == "undefined" || typeof window.document == "undefined" || typeof window.document.createElement == "undefined" ? Qn : Bn;
782
- jt.useSyncExternalStore = W.useSyncExternalStore !== void 0 ? W.useSyncExternalStore : Kn;
783
- Mt.exports = jt;
784
- var $t = Mt.exports;
785
- const Gn = /* @__PURE__ */ Me($t);
786
- var Wn = { 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 };
787
- const { use: Ye } = Ae, { useSyncExternalStore: Jn } = Gn, qn = (n, e) => {
788
- const t = Re();
789
- Se(() => {
790
- t.current = Ln(n, e, !0);
791
- }), Rt(t.current);
792
- }, Hn = /* @__PURE__ */ new WeakMap();
793
- function Zn(n, e) {
794
- const t = e == null ? void 0 : e.sync, i = Re(), a = Re();
795
- let s = !0;
796
- const r = Jn(
797
- xt(
798
- (l) => {
799
- const u = Vn(n, l, t);
800
- return l(), u;
801
- },
802
- [n, t]
803
- ),
804
- () => {
805
- const l = Xe(n, Ye);
806
- try {
807
- if (!s && i.current && a.current && !Vt(
808
- i.current,
809
- l,
810
- a.current,
811
- /* @__PURE__ */ new WeakMap()
812
- ))
813
- return i.current;
814
- } catch {
526
+ var En = typeof window == "undefined" || typeof window.document == "undefined" || typeof window.document.createElement == "undefined" ? Cn : wn;
527
+ Ft.useSyncExternalStore = K.useSyncExternalStore !== void 0 ? K.useSyncExternalStore : En;
528
+ bt.exports = Ft;
529
+ var wt = bt.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, xn = wt;
540
+ function On(n, e) {
541
+ return n === e && (n !== 0 || 1 / n === 1 / e) || n !== n && e !== e;
542
+ }
543
+ var Rn = typeof Object.is == "function" ? Object.is : On, Tn = xn.useSyncExternalStore, Dn = pe.useRef, In = pe.useEffect, Ln = pe.useMemo, An = pe.useDebugValue;
544
+ Nt.useSyncExternalStoreWithSelector = function(n, e, t, i, a) {
545
+ var s = Dn(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 = Ln(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;
815
560
  }
816
- return l;
817
- },
818
- () => Xe(n, Ye)
819
- );
820
- s = !1;
821
- const o = /* @__PURE__ */ new WeakMap();
822
- Se(() => {
823
- i.current = r, a.current = o;
824
- }), (Wn ? "production" : void 0) !== "production" && qn(r, o);
825
- const d = Tt(() => /* @__PURE__ */ new WeakMap(), []);
826
- return Pt(
827
- r,
828
- o,
829
- d,
830
- Hn
561
+ if (y = f, Rn(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 = Tn(n, s[0], s[1]);
574
+ return In(function() {
575
+ r.hasValue = !0, r.value = o;
576
+ }, [o]), An(o), o;
577
+ };
578
+ yt.exports = Nt;
579
+ var Pn = yt.exports;
580
+ const Vn = /* @__PURE__ */ xe(Pn);
581
+ var Ct = { 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: _n } = fe, { useSyncExternalStoreWithSelector: Un } = Vn;
583
+ let Me = !1;
584
+ function Mn(n, e = n.getState, t) {
585
+ (Ct ? "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 = Un(
589
+ n.subscribe,
590
+ n.getState,
591
+ n.getServerState || n.getState,
592
+ e,
593
+ t
831
594
  );
595
+ return _n(i), i;
832
596
  }
833
- class Xn {
597
+ const $e = (n) => {
598
+ (Ct ? "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" ? kn(n) : n, t = (i, a) => Mn(e, i, a);
602
+ return Object.assign(t, e), t;
603
+ }, $n = (n) => n ? $e(n) : $e;
604
+ class jn {
834
605
  constructor(e) {
835
- x(this, "channel");
836
- x(this, "listeners", /* @__PURE__ */ new Map());
837
- x(this, "eventQueue", /* @__PURE__ */ new Map());
606
+ R(this, "channel");
607
+ R(this, "listeners", /* @__PURE__ */ new Map());
608
+ R(this, "eventQueue", /* @__PURE__ */ new Map());
838
609
  try {
839
- this.channel = new BroadcastChannel(e), this.channel.onmessage = (t) => this.handleMessage(t), this.channel.onmessageerror = (t) => ee.error("NizzaBroadcastChannel:", t);
610
+ this.channel = new BroadcastChannel(e), this.channel.onmessage = (t) => this.handleMessage(t), this.channel.onmessageerror = (t) => Z.error("NizzaBroadcastChannel:", t);
840
611
  } catch (t) {
841
- throw ee.error("Failed to create NizzaBroadcastChannel:", t), t;
612
+ throw Z.error("Failed to create NizzaBroadcastChannel:", t), t;
842
613
  }
843
614
  }
844
615
  /**
@@ -899,7 +670,7 @@ class Xn {
899
670
  subscribeToEvent(e, t) {
900
671
  if (typeof e != "string" || typeof t != "function") {
901
672
  const i = new Error("Invalid arguments");
902
- throw ee.error(i), i;
673
+ throw Z.error(i), i;
903
674
  }
904
675
  for (const [i, a] of this.listeners.entries())
905
676
  if (this.matchWildcard(i, e)) {
@@ -923,7 +694,7 @@ class Xn {
923
694
  emitEvent(e, t, i) {
924
695
  if (typeof e != "string") {
925
696
  const r = new Error("Invalid arguments");
926
- throw ee.error(r), r;
697
+ throw Z.error(r), r;
927
698
  }
928
699
  const a = {
929
700
  name: e,
@@ -976,21 +747,21 @@ class Xn {
976
747
  return new RegExp(`^${i}$`).test(t);
977
748
  }
978
749
  }
979
- let Yn = (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), "");
980
- const ei = (n = 8) => Yn(n), zs = (n) => {
750
+ let zn = (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 Bn = (n = 8) => zn(n), Is = (n) => {
981
752
  const e = Object.entries(n).reduce((t, [i, a]) => a !== void 0 ? `${t}${t ? "&" : ""}${i}=${a}` : t, "");
982
753
  return e ? `?${e}` : "";
983
754
  };
984
- function Bs() {
755
+ function Ls() {
985
756
  const n = new Error().stack.split(`
986
757
  `);
987
758
  return n.length < 3 ? "" : n[2].trim().substring(3);
988
759
  }
989
- var zt = { exports: {} };
760
+ var Et = { exports: {} };
990
761
  (function(n) {
991
762
  (function(e, t) {
992
763
  n.exports ? n.exports = t() : e.log = t();
993
- })(Ut, function() {
764
+ })(St, function() {
994
765
  var e = function() {
995
766
  }, t = "undefined", i = typeof window !== t && typeof window.navigator !== t && /Trident\/|MSIE /.test(window.navigator.userAgent), a = [
996
767
  "trace",
@@ -999,15 +770,15 @@ var zt = { exports: {} };
999
770
  "warn",
1000
771
  "error"
1001
772
  ];
1002
- function s(k, y) {
1003
- var F = k[y];
1004
- if (typeof F.bind == "function")
1005
- return F.bind(k);
773
+ function s(k, N) {
774
+ var O = k[N];
775
+ if (typeof O.bind == "function")
776
+ return O.bind(k);
1006
777
  try {
1007
- return Function.prototype.bind.call(F, k);
778
+ return Function.prototype.bind.call(O, k);
1008
779
  } catch {
1009
780
  return function() {
1010
- return Function.prototype.apply.apply(F, [k, arguments]);
781
+ return Function.prototype.apply.apply(O, [k, arguments]);
1011
782
  };
1012
783
  }
1013
784
  }
@@ -1017,180 +788,180 @@ var zt = { exports: {} };
1017
788
  function o(k) {
1018
789
  return k === "debug" && (k = "log"), typeof console === t ? !1 : k === "trace" && i ? r : console[k] !== void 0 ? s(console, k) : console.log !== void 0 ? s(console, "log") : e;
1019
790
  }
1020
- function d(k, y) {
1021
- for (var F = 0; F < a.length; F++) {
1022
- var w = a[F];
1023
- this[w] = F < k ? e : this.methodFactory(w, k, y);
791
+ function l(k, N) {
792
+ for (var O = 0; O < a.length; O++) {
793
+ var F = a[O];
794
+ this[F] = O < k ? e : this.methodFactory(F, k, N);
1024
795
  }
1025
796
  this.log = this.debug;
1026
797
  }
1027
- function l(k, y, F) {
798
+ function u(k, N, O) {
1028
799
  return function() {
1029
- typeof console !== t && (d.call(this, y, F), this[k].apply(this, arguments));
800
+ typeof console !== t && (l.call(this, N, O), this[k].apply(this, arguments));
1030
801
  };
1031
802
  }
1032
- function u(k, y, F) {
1033
- return o(k) || l.apply(this, arguments);
1034
- }
1035
- function p(k, y, F) {
1036
- var w = this, L;
1037
- y = y == null ? "WARN" : y;
1038
- var E = "loglevel";
1039
- typeof k == "string" ? E += ":" + k : typeof k == "symbol" && (E = void 0);
1040
- function I(m) {
1041
- var g = (a[m] || "silent").toUpperCase();
1042
- if (!(typeof window === t || !E)) {
803
+ function d(k, N, O) {
804
+ return o(k) || u.apply(this, arguments);
805
+ }
806
+ function f(k, N, O) {
807
+ var F = this, D;
808
+ N = N == null ? "WARN" : N;
809
+ var w = "loglevel";
810
+ typeof k == "string" ? w += ":" + k : typeof k == "symbol" && (w = void 0);
811
+ function I(p) {
812
+ var h = (a[p] || "silent").toUpperCase();
813
+ if (!(typeof window === t || !w)) {
1043
814
  try {
1044
- window.localStorage[E] = g;
815
+ window.localStorage[w] = h;
1045
816
  return;
1046
817
  } catch {
1047
818
  }
1048
819
  try {
1049
- window.document.cookie = encodeURIComponent(E) + "=" + g + ";";
820
+ window.document.cookie = encodeURIComponent(w) + "=" + h + ";";
1050
821
  } catch {
1051
822
  }
1052
823
  }
1053
824
  }
1054
- function P() {
1055
- var m;
1056
- if (!(typeof window === t || !E)) {
825
+ function L() {
826
+ var p;
827
+ if (!(typeof window === t || !w)) {
1057
828
  try {
1058
- m = window.localStorage[E];
829
+ p = window.localStorage[w];
1059
830
  } catch {
1060
831
  }
1061
- if (typeof m === t)
832
+ if (typeof p === t)
1062
833
  try {
1063
- var g = window.document.cookie, h = g.indexOf(
1064
- encodeURIComponent(E) + "="
834
+ var h = window.document.cookie, g = h.indexOf(
835
+ encodeURIComponent(w) + "="
1065
836
  );
1066
- h !== -1 && (m = /^([^;]+)/.exec(g.slice(h))[1]);
837
+ g !== -1 && (p = /^([^;]+)/.exec(h.slice(g))[1]);
1067
838
  } catch {
1068
839
  }
1069
- return w.levels[m] === void 0 && (m = void 0), m;
840
+ return F.levels[p] === void 0 && (p = void 0), p;
1070
841
  }
1071
842
  }
1072
843
  function A() {
1073
- if (!(typeof window === t || !E)) {
844
+ if (!(typeof window === t || !w)) {
1074
845
  try {
1075
- window.localStorage.removeItem(E);
846
+ window.localStorage.removeItem(w);
1076
847
  return;
1077
848
  } catch {
1078
849
  }
1079
850
  try {
1080
- window.document.cookie = encodeURIComponent(E) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
851
+ window.document.cookie = encodeURIComponent(w) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
1081
852
  } catch {
1082
853
  }
1083
854
  }
1084
855
  }
1085
- w.name = k, w.levels = {
856
+ F.name = k, F.levels = {
1086
857
  TRACE: 0,
1087
858
  DEBUG: 1,
1088
859
  INFO: 2,
1089
860
  WARN: 3,
1090
861
  ERROR: 4,
1091
862
  SILENT: 5
1092
- }, w.methodFactory = F || u, w.getLevel = function() {
1093
- return L;
1094
- }, w.setLevel = function(m, g) {
1095
- if (typeof m == "string" && w.levels[m.toUpperCase()] !== void 0 && (m = w.levels[m.toUpperCase()]), typeof m == "number" && m >= 0 && m <= w.levels.SILENT) {
1096
- if (L = m, g !== !1 && I(m), d.call(w, m, k), typeof console === t && m < w.levels.SILENT)
863
+ }, F.methodFactory = O || d, F.getLevel = function() {
864
+ return D;
865
+ }, F.setLevel = function(p, h) {
866
+ if (typeof p == "string" && F.levels[p.toUpperCase()] !== void 0 && (p = F.levels[p.toUpperCase()]), typeof p == "number" && p >= 0 && p <= F.levels.SILENT) {
867
+ if (D = p, h !== !1 && I(p), l.call(F, p, k), typeof console === t && p < F.levels.SILENT)
1097
868
  return "No console available for logging";
1098
869
  } else
1099
- throw "log.setLevel() called with invalid level: " + m;
1100
- }, w.setDefaultLevel = function(m) {
1101
- y = m, P() || w.setLevel(m, !1);
1102
- }, w.resetLevel = function() {
1103
- w.setLevel(y, !1), A();
1104
- }, w.enableAll = function(m) {
1105
- w.setLevel(w.levels.TRACE, m);
1106
- }, w.disableAll = function(m) {
1107
- w.setLevel(w.levels.SILENT, m);
870
+ throw "log.setLevel() called with invalid level: " + p;
871
+ }, F.setDefaultLevel = function(p) {
872
+ N = p, L() || F.setLevel(p, !1);
873
+ }, F.resetLevel = function() {
874
+ F.setLevel(N, !1), A();
875
+ }, F.enableAll = function(p) {
876
+ F.setLevel(F.levels.TRACE, p);
877
+ }, F.disableAll = function(p) {
878
+ F.setLevel(F.levels.SILENT, p);
1108
879
  };
1109
- var f = P();
1110
- f == null && (f = y), w.setLevel(f, !1);
880
+ var m = L();
881
+ m == null && (m = N), F.setLevel(m, !1);
1111
882
  }
1112
- var c = new p(), v = {};
1113
- c.getLogger = function(y) {
1114
- if (typeof y != "symbol" && typeof y != "string" || y === "")
883
+ var c = new f(), S = {};
884
+ c.getLogger = function(N) {
885
+ if (typeof N != "symbol" && typeof N != "string" || N === "")
1115
886
  throw new TypeError("You must supply a name when creating a logger.");
1116
- var F = v[y];
1117
- return F || (F = v[y] = new p(
1118
- y,
887
+ var O = S[N];
888
+ return O || (O = S[N] = new f(
889
+ N,
1119
890
  c.getLevel(),
1120
891
  c.methodFactory
1121
- )), F;
892
+ )), O;
1122
893
  };
1123
- var S = typeof window !== t ? window.log : void 0;
894
+ var y = typeof window !== t ? window.log : void 0;
1124
895
  return c.noConflict = function() {
1125
- return typeof window !== t && window.log === c && (window.log = S), c;
896
+ return typeof window !== t && window.log === c && (window.log = y), c;
1126
897
  }, c.getLoggers = function() {
1127
- return v;
898
+ return S;
1128
899
  }, c.default = c, c;
1129
900
  });
1130
- })(zt);
1131
- var Bt = zt.exports;
1132
- const oe = /* @__PURE__ */ Me(Bt);
1133
- var Qt = { exports: {} };
901
+ })(Et);
902
+ var xt = Et.exports;
903
+ const ie = /* @__PURE__ */ xe(xt);
904
+ var Ot = { exports: {} };
1134
905
  (function(n) {
1135
906
  (function(e, t) {
1136
907
  n.exports ? n.exports = t() : e.prefix = t(e);
1137
- })(Ut, function(e) {
1138
- var t = function(u) {
1139
- for (var p = 1, c = arguments.length, v; p < c; p++)
1140
- for (v in arguments[p])
1141
- Object.prototype.hasOwnProperty.call(arguments[p], v) && (u[v] = arguments[p][v]);
1142
- return u;
908
+ })(St, function(e) {
909
+ var t = function(d) {
910
+ for (var f = 1, c = arguments.length, S; f < c; f++)
911
+ for (S in arguments[f])
912
+ Object.prototype.hasOwnProperty.call(arguments[f], S) && (d[S] = arguments[f][S]);
913
+ return d;
1143
914
  }, i = {
1144
915
  template: "[%t] %l:",
1145
- levelFormatter: function(u) {
1146
- return u.toUpperCase();
916
+ levelFormatter: function(d) {
917
+ return d.toUpperCase();
1147
918
  },
1148
- nameFormatter: function(u) {
1149
- return u || "root";
919
+ nameFormatter: function(d) {
920
+ return d || "root";
1150
921
  },
1151
- timestampFormatter: function(u) {
1152
- return u.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/, "$1");
922
+ timestampFormatter: function(d) {
923
+ return d.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/, "$1");
1153
924
  },
1154
925
  format: void 0
1155
- }, a, s = {}, r = function(u) {
1156
- if (!u || !u.getLogger)
926
+ }, a, s = {}, r = function(d) {
927
+ if (!d || !d.getLogger)
1157
928
  throw new TypeError("Argument is not a root logger");
1158
- a = u;
1159
- }, o = function(u, p) {
1160
- if (!u || !u.setLevel)
929
+ a = d;
930
+ }, o = function(d, f) {
931
+ if (!d || !d.setLevel)
1161
932
  throw new TypeError("Argument is not a logger");
1162
- var c = u.methodFactory, v = u.name || "", S = s[v] || s[""] || i;
1163
- function k(y, F, w) {
1164
- var L = c(y, F, w), E = s[w] || s[""], I = E.template.indexOf("%t") !== -1, P = E.template.indexOf("%l") !== -1, A = E.template.indexOf("%n") !== -1;
933
+ var c = d.methodFactory, S = d.name || "", y = s[S] || s[""] || i;
934
+ function k(N, O, F) {
935
+ var D = c(N, O, F), w = s[F] || s[""], I = w.template.indexOf("%t") !== -1, L = w.template.indexOf("%l") !== -1, A = w.template.indexOf("%n") !== -1;
1165
936
  return function() {
1166
- for (var f = "", m = arguments.length, g = Array(m), h = 0; h < m; h++)
1167
- g[h] = arguments[h];
1168
- if (v || !s[w]) {
1169
- var N = E.timestampFormatter(/* @__PURE__ */ new Date()), C = E.levelFormatter(y), b = E.nameFormatter(w);
1170
- E.format ? f += E.format(C, b, N) : (f += E.template, I && (f = f.replace(/%t/, N)), P && (f = f.replace(/%l/, C)), A && (f = f.replace(/%n/, b))), g.length && typeof g[0] == "string" ? g[0] = f + " " + g[0] : g.unshift(f);
937
+ for (var m = "", p = arguments.length, h = Array(p), g = 0; g < p; g++)
938
+ h[g] = arguments[g];
939
+ if (S || !s[F]) {
940
+ var b = w.timestampFormatter(/* @__PURE__ */ new Date()), C = w.levelFormatter(N), v = w.nameFormatter(F);
941
+ w.format ? m += w.format(C, v, b) : (m += w.template, I && (m = m.replace(/%t/, b)), L && (m = m.replace(/%l/, C)), A && (m = m.replace(/%n/, v))), h.length && typeof h[0] == "string" ? h[0] = m + " " + h[0] : h.unshift(m);
1171
942
  }
1172
- L.apply(void 0, g);
943
+ D.apply(void 0, h);
1173
944
  };
1174
945
  }
1175
- return s[v] || (u.methodFactory = k), p = p || {}, p.template && (p.format = void 0), s[v] = t({}, S, p), u.setLevel(u.getLevel()), a || u.warn(
946
+ return s[S] || (d.methodFactory = k), f = f || {}, f.template && (f.format = void 0), s[S] = t({}, y, f), d.setLevel(d.getLevel()), a || d.warn(
1176
947
  "It is necessary to call the function reg() of loglevel-plugin-prefix before calling apply. From the next release, it will throw an error. See more: https://github.com/kutuluk/loglevel-plugin-prefix/blob/master/README.md"
1177
- ), u;
1178
- }, d = {
948
+ ), d;
949
+ }, l = {
1179
950
  reg: r,
1180
951
  apply: o
1181
- }, l;
1182
- return e && (l = e.prefix, d.noConflict = function() {
1183
- return e.prefix === d && (e.prefix = l), d;
1184
- }), d;
952
+ }, u;
953
+ return e && (u = e.prefix, l.noConflict = function() {
954
+ return e.prefix === l && (e.prefix = u), l;
955
+ }), l;
1185
956
  });
1186
- })(Qt);
1187
- var ti = Qt.exports;
1188
- const et = /* @__PURE__ */ Me(ti);
1189
- let ni = class {
957
+ })(Ot);
958
+ var Qn = Ot.exports;
959
+ const je = /* @__PURE__ */ xe(Qn);
960
+ let Gn = class {
1190
961
  constructor(e) {
1191
- x(this, "defaultLevel", Bt.levels.INFO);
1192
- x(this, "namePrefix");
1193
- this.namePrefix = e ? `${e}-` : "", oe.setDefaultLevel(this.defaultLevel), et.reg(oe), et.apply(oe, {
962
+ R(this, "defaultLevel", xt.levels.INFO);
963
+ R(this, "namePrefix");
964
+ this.namePrefix = e ? `${e}-` : "", ie.setDefaultLevel(this.defaultLevel), je.reg(ie), je.apply(ie, {
1194
965
  template: "[%t] %l (%n)",
1195
966
  nameFormatter: (t) => {
1196
967
  var i;
@@ -1200,116 +971,105 @@ let ni = class {
1200
971
  });
1201
972
  }
1202
973
  createLogger(e) {
1203
- const t = this.namePrefix + e.toLowerCase(), i = oe.getLogger(t), a = localStorage.getItem(`loglevel:${t}`);
974
+ const t = this.namePrefix + e.toLowerCase(), i = ie.getLogger(t), a = localStorage.getItem(`loglevel:${t}`);
1204
975
  return a ? i.setLevel(a) : i.setLevel(this.defaultLevel), i;
1205
976
  }
1206
977
  };
1207
- const z = Pn({
1208
- config: null,
1209
- get accountName() {
1210
- var n;
1211
- return (n = this.config) == null ? void 0 : n.account;
1212
- },
1213
- get ok() {
1214
- return !!this.account;
1215
- }
1216
- }), ii = async (n) => {
1217
- var e;
978
+ const j = $n(() => ({
979
+ config: null
980
+ })), Kn = async (n) => {
1218
981
  try {
1219
- if (z.config = n, ((e = z.account) == null ? void 0 : e.account) !== n.account) {
1220
- const t = await ca(n.account);
1221
- z.account = t;
982
+ const e = j.getState().account;
983
+ if (j.setState({ config: n }), (e == null ? void 0 : e.account) !== n.account) {
984
+ const t = await ta(n.account);
985
+ j.setState({ account: t });
1222
986
  }
1223
987
  if (n.getProductDataSource) {
1224
988
  const t = await n.getProductDataSource();
1225
- z.productDataSource = _t(t);
1226
- }
1227
- } catch (t) {
1228
- console.error("Error configuring NizzaStore:", t);
1229
- }
1230
- }, ai = (n) => {
1231
- z.productDataSource = _t(n);
1232
- }, tt = () => ({
1233
- version: "0.1.0",
1234
- state: z,
1235
- configure: ii,
1236
- setProductDataSource: ai,
1237
- instanceId: ei(),
1238
- log: new ni("nz"),
1239
- eventBus: new Xn("nizza"),
1240
- get account() {
1241
- return z.account;
1242
- },
1243
- get productDataSource() {
1244
- return z.productDataSource;
1245
- }
1246
- }), si = () => {
989
+ j.setState({ productDataSource: t });
990
+ }
991
+ } catch (e) {
992
+ console.error("Error configuring NizzaStore:", e);
993
+ }
994
+ }, Wn = (n) => {
995
+ j.setState({ productDataSource: n });
996
+ }, ze = () => ({
997
+ version: "1.0.1",
998
+ configure: Kn,
999
+ setProductDataSource: Wn,
1000
+ instanceId: Bn(),
1001
+ log: new Gn("nz"),
1002
+ eventBus: new jn("nizza"),
1003
+ get state() {
1004
+ return j.getState();
1005
+ }
1006
+ }), Jn = () => {
1247
1007
  if (typeof window != "undefined") {
1248
1008
  if (!window.nizza) {
1249
- const n = tt();
1009
+ const n = ze();
1250
1010
  window.nizza = n, window.nz = n;
1251
1011
  }
1252
1012
  return window.nizza;
1253
1013
  }
1254
- return tt();
1255
- }, je = si(), Ks = je.log.createLogger("main"), ee = je.log.createLogger("core");
1014
+ return ze();
1015
+ }, Rt = Jn(), qn = j, Ps = Rt.log.createLogger("main"), Z = Rt.log.createLogger("core");
1256
1016
  function G(n) {
1257
1017
  return n != null && typeof n == "object" && n["@@functional/placeholder"] === !0;
1258
1018
  }
1259
- function de(n) {
1019
+ function se(n) {
1260
1020
  return function e(t) {
1261
1021
  return arguments.length === 0 || G(t) ? e : n.apply(this, arguments);
1262
1022
  };
1263
1023
  }
1264
- function $e(n) {
1024
+ function Oe(n) {
1265
1025
  return function e(t, i) {
1266
1026
  switch (arguments.length) {
1267
1027
  case 0:
1268
1028
  return e;
1269
1029
  case 1:
1270
- return G(t) ? e : de(function(a) {
1030
+ return G(t) ? e : se(function(a) {
1271
1031
  return n(t, a);
1272
1032
  });
1273
1033
  default:
1274
- return G(t) && G(i) ? e : G(t) ? de(function(a) {
1034
+ return G(t) && G(i) ? e : G(t) ? se(function(a) {
1275
1035
  return n(a, i);
1276
- }) : G(i) ? de(function(a) {
1036
+ }) : G(i) ? se(function(a) {
1277
1037
  return n(t, a);
1278
1038
  }) : n(t, i);
1279
1039
  }
1280
1040
  };
1281
1041
  }
1282
- const ri = Number.isInteger || function(e) {
1042
+ const Hn = Number.isInteger || function(e) {
1283
1043
  return e << 0 === e;
1284
1044
  };
1285
- function oi(n) {
1045
+ function Zn(n) {
1286
1046
  return Object.prototype.toString.call(n) === "[object String]";
1287
1047
  }
1288
- var li = /* @__PURE__ */ $e(function(e, t) {
1048
+ var Xn = /* @__PURE__ */ Oe(function(e, t) {
1289
1049
  var i = e < 0 ? t.length + e : e;
1290
- return oi(t) ? t.charAt(i) : t[i];
1050
+ return Zn(t) ? t.charAt(i) : t[i];
1291
1051
  });
1292
- const di = li;
1293
- var ui = /* @__PURE__ */ de(function(e) {
1052
+ const Yn = Xn;
1053
+ var ei = /* @__PURE__ */ se(function(e) {
1294
1054
  return e == null;
1295
1055
  });
1296
- const ci = ui;
1297
- var mi = /* @__PURE__ */ $e(function(e, t) {
1056
+ const ti = ei;
1057
+ var ni = /* @__PURE__ */ Oe(function(e, t) {
1298
1058
  return e.map(function(i) {
1299
1059
  for (var a = t, s = 0, r; s < i.length; ) {
1300
1060
  if (a == null)
1301
1061
  return;
1302
- r = i[s], a = ri(r) ? di(r, a) : a[r], s += 1;
1062
+ r = i[s], a = Hn(r) ? Yn(r, a) : a[r], s += 1;
1303
1063
  }
1304
1064
  return a;
1305
1065
  });
1306
1066
  });
1307
- const fi = mi;
1308
- var pi = /* @__PURE__ */ $e(function(e, t) {
1309
- return fi([e], t)[0];
1067
+ const ii = ni;
1068
+ var ai = /* @__PURE__ */ Oe(function(e, t) {
1069
+ return ii([e], t)[0];
1310
1070
  });
1311
- const hi = pi;
1312
- class ye extends Error {
1071
+ const si = ai;
1072
+ class he extends Error {
1313
1073
  constructor(e, t, i) {
1314
1074
  super(t), this.value = i, this.name = e;
1315
1075
  }
@@ -1321,7 +1081,7 @@ class ye extends Error {
1321
1081
  };
1322
1082
  }
1323
1083
  }
1324
- class gi extends ye {
1084
+ class ri extends he {
1325
1085
  constructor(e) {
1326
1086
  super(
1327
1087
  "RESOURCE_NOT_FOUND_ERROR",
@@ -1330,7 +1090,7 @@ class gi extends ye {
1330
1090
  );
1331
1091
  }
1332
1092
  }
1333
- class ki extends ye {
1093
+ class oi extends he {
1334
1094
  constructor(e) {
1335
1095
  var t;
1336
1096
  super(
@@ -1340,12 +1100,12 @@ class ki extends ye {
1340
1100
  );
1341
1101
  }
1342
1102
  }
1343
- class Gs extends ye {
1103
+ class Vs extends he {
1344
1104
  constructor() {
1345
1105
  super("APP_ACCOUNT_INVALID_ERROR", "Account not defined");
1346
1106
  }
1347
1107
  }
1348
- class vi extends ye {
1108
+ class li extends he {
1349
1109
  constructor(e) {
1350
1110
  super(
1351
1111
  "INVALID_NIZZA_GLOBAL_OBJECT_ERROR",
@@ -1373,28 +1133,28 @@ class vi extends ye {
1373
1133
  );
1374
1134
  }
1375
1135
  }
1376
- function Ws(n, e) {
1136
+ function _s(n, e) {
1377
1137
  e.forEach((t) => {
1378
- if (ci(hi(t.split("."), n)))
1379
- throw new vi(t);
1138
+ if (ti(si(t.split("."), n)))
1139
+ throw new li(t);
1380
1140
  });
1381
1141
  }
1382
- function Js() {
1142
+ function Us() {
1383
1143
  var i, a, s;
1384
1144
  let n = null, e = null, t = null;
1385
1145
  try {
1386
1146
  n = (s = (a = (i = Intl.DateTimeFormat()) == null ? void 0 : i.resolvedOptions()) == null ? void 0 : a.timeZone) != null ? s : null;
1387
1147
  const r = -(/* @__PURE__ */ new Date()).getTimezoneOffset();
1388
1148
  t = r;
1389
- const o = r >= 0 ? "+" : "-", d = String(
1149
+ const o = r >= 0 ? "+" : "-", l = String(
1390
1150
  Math.floor(Math.abs(r) / 60)
1391
- ).padStart(2, "0"), l = String(Math.abs(r) % 60).padStart(
1151
+ ).padStart(2, "0"), u = String(Math.abs(r) % 60).padStart(
1392
1152
  2,
1393
1153
  "0"
1394
1154
  );
1395
- e = `${o}${d}:${l}`;
1155
+ e = `${o}${l}:${u}`;
1396
1156
  } catch {
1397
- ee.error("Error obtaining time zone or offset");
1157
+ Z.error("Error obtaining time zone or offset");
1398
1158
  }
1399
1159
  return {
1400
1160
  offset: e,
@@ -1405,10 +1165,10 @@ function Js() {
1405
1165
  label: null
1406
1166
  };
1407
1167
  }
1408
- class Si {
1168
+ class di {
1409
1169
  constructor(e) {
1410
- x(this, "aggregate");
1411
- x(this, "_numSetPropsApplied", 0);
1170
+ R(this, "aggregate");
1171
+ R(this, "_numSetPropsApplied", 0);
1412
1172
  this.aggregate = e;
1413
1173
  }
1414
1174
  setProps(e) {
@@ -1420,48 +1180,48 @@ class Si {
1420
1180
  return this._numSetPropsApplied === 1;
1421
1181
  }
1422
1182
  }
1423
- function yi(n) {
1424
- return new Si(n);
1183
+ function ui(n) {
1184
+ return new di(n);
1425
1185
  }
1426
- class qs {
1186
+ class Ms {
1427
1187
  }
1428
- class Hs {
1188
+ class $s {
1429
1189
  constructor(e) {
1430
- x(this, "_value");
1190
+ R(this, "_value");
1431
1191
  e !== void 0 && (this._value = e);
1432
1192
  }
1433
1193
  get value() {
1434
1194
  return this._value;
1435
1195
  }
1436
1196
  }
1437
- var Kt = /* @__PURE__ */ ((n) => (n.VTEX = "VTEX", n.VTEX_IO = "VTEX-IO", n.VTEX_CMS = "PORTAL-VTEX", n.PLATFORM = "PLATFORM", n.UNKNOWN = "UNKNOWN", n))(Kt || {}), Ni = /* @__PURE__ */ ((n) => (n.PLATFORM = "platform_module", n.ADENDA = "subscription_module", n.APP_STORE = "app_store", n))(Ni || {}), Gt = /* @__PURE__ */ ((n) => (n.ACTIVE = "active_contract", n.INACTIVE = "inactive_contract", n))(Gt || {}), bi = /* @__PURE__ */ ((n) => (n.LITE = "lite", n.STANDARD = "standard", n.PRO = "pro", n))(bi || {}), Fi = /* @__PURE__ */ ((n) => (n.LITE = "PLAN_LITE", n.STANDARD = "PLAN_ESTANDAR", n.PRO = "PLAN_PRO", n.NONE = "NO_PLAN", n))(Fi || {}), wi = /* @__PURE__ */ ((n) => (n.PAST = "past", n.LIVE = "live", n.FUTURE = "future", n))(wi || {});
1438
- class ze {
1197
+ var Tt = /* @__PURE__ */ ((n) => (n.VTEX = "VTEX", n.VTEX_IO = "VTEX-IO", n.VTEX_CMS = "PORTAL-VTEX", n.PLATFORM = "PLATFORM", n.UNKNOWN = "UNKNOWN", n))(Tt || {}), ci = /* @__PURE__ */ ((n) => (n.PLATFORM = "platform_module", n.ADENDA = "subscription_module", n.APP_STORE = "app_store", n))(ci || {}), Dt = /* @__PURE__ */ ((n) => (n.ACTIVE = "active_contract", n.INACTIVE = "inactive_contract", n))(Dt || {}), 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 || {});
1198
+ class Re {
1439
1199
  constructor(e) {
1440
- x(this, "root", yi(this));
1441
- x(this, "id");
1442
- x(this, "account");
1443
- x(this, "accountType", Kt.UNKNOWN);
1444
- x(this, "username");
1445
- x(this, "currencyConfig");
1446
- x(this, "contractType");
1447
- x(this, "nextDateMetricRecord");
1448
- x(this, "spendedMinutes", 0);
1449
- x(this, "unlimitedService", !1);
1450
- x(this, "hoursAvailable", 0);
1451
- x(this, "contractStatus", Gt.ACTIVE);
1452
- x(this, "createdAt");
1453
- x(this, "installationDateApp");
1454
- x(this, "cxAccount");
1455
- x(this, "freeService", !1);
1456
- x(this, "subscriptionType", null);
1457
- x(this, "minutesAvailable", 0);
1458
- x(this, "globalPage");
1459
- x(this, "stripe");
1460
- x(this, "descriptionPlan");
1461
- x(this, "planType");
1462
- x(this, "selectFreeTrial");
1463
- x(this, "exceededFeatures");
1464
- x(this, "host", null);
1200
+ R(this, "root", ui(this));
1201
+ R(this, "id");
1202
+ R(this, "account");
1203
+ R(this, "accountType", Tt.UNKNOWN);
1204
+ R(this, "username");
1205
+ R(this, "currencyConfig");
1206
+ R(this, "contractType");
1207
+ R(this, "nextDateMetricRecord");
1208
+ R(this, "spendedMinutes", 0);
1209
+ R(this, "unlimitedService", !1);
1210
+ R(this, "hoursAvailable", 0);
1211
+ R(this, "contractStatus", Dt.ACTIVE);
1212
+ R(this, "createdAt");
1213
+ R(this, "installationDateApp");
1214
+ R(this, "cxAccount");
1215
+ R(this, "freeService", !1);
1216
+ R(this, "subscriptionType", null);
1217
+ R(this, "minutesAvailable", 0);
1218
+ R(this, "globalPage");
1219
+ R(this, "stripe");
1220
+ R(this, "descriptionPlan");
1221
+ R(this, "planType");
1222
+ R(this, "selectFreeTrial");
1223
+ R(this, "exceededFeatures");
1224
+ R(this, "host", null);
1465
1225
  this.root.setProps(e);
1466
1226
  }
1467
1227
  static toDomain(e) {
@@ -1470,7 +1230,7 @@ class ze {
1470
1230
  username: i != null ? i : a.account,
1471
1231
  createdAt: new Date(Number(t))
1472
1232
  };
1473
- return new ze(s);
1233
+ return new Re(s);
1474
1234
  }
1475
1235
  toPrimitives() {
1476
1236
  const { root: e, createdAt: t, ...i } = this;
@@ -1480,16 +1240,16 @@ class ze {
1480
1240
  };
1481
1241
  }
1482
1242
  }
1483
- const Ci = `${En.apiUrls.restV1}/accounts/v2`;
1484
- class Ei {
1243
+ const hi = `${pn.apiUrls.restV1}/accounts/v2`;
1244
+ class gi {
1485
1245
  async get(e) {
1486
- const t = `${Ci}/${e}`, { data: i } = await It({
1246
+ const t = `${hi}/${e}`, { data: i } = await vt({
1487
1247
  url: t
1488
1248
  });
1489
- return i ? ze.toDomain(i) : null;
1249
+ return i ? Re.toDomain(i) : null;
1490
1250
  }
1491
1251
  }
1492
- class Oi {
1252
+ class ki {
1493
1253
  constructor(e) {
1494
1254
  this.accountRepository = e;
1495
1255
  }
@@ -1497,15 +1257,15 @@ class Oi {
1497
1257
  try {
1498
1258
  const t = await this.accountRepository.get(e);
1499
1259
  if (!t)
1500
- throw new gi(e);
1260
+ throw new ri(e);
1501
1261
  return t;
1502
1262
  } catch (t) {
1503
- throw new ki(t);
1263
+ throw new oi(t);
1504
1264
  }
1505
1265
  }
1506
1266
  }
1507
- const Ri = new Ei(), Wt = new Oi(Ri);
1508
- class Be {
1267
+ const vi = new gi(), It = new ki(vi);
1268
+ class Te {
1509
1269
  constructor() {
1510
1270
  this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
1511
1271
  }
@@ -1525,17 +1285,17 @@ class Be {
1525
1285
  onUnsubscribe() {
1526
1286
  }
1527
1287
  }
1528
- const fe = typeof window == "undefined" || "Deno" in window;
1529
- function xi() {
1288
+ const oe = typeof window == "undefined" || "Deno" in window;
1289
+ function Si() {
1530
1290
  }
1531
- function nt(n) {
1291
+ function Be(n) {
1532
1292
  return typeof n == "number" && n >= 0 && n !== 1 / 0;
1533
1293
  }
1534
- function Ti(n, e) {
1294
+ function yi(n, e) {
1535
1295
  return Math.max(n + (e || 0) - Date.now(), 0);
1536
1296
  }
1537
- function Di(n, e, t) {
1538
- return Li(n) ? typeof e == "function" ? {
1297
+ function Ni(n, e, t) {
1298
+ return bi(n) ? typeof e == "function" ? {
1539
1299
  ...t,
1540
1300
  queryKey: n,
1541
1301
  queryFn: e
@@ -1544,22 +1304,22 @@ function Di(n, e, t) {
1544
1304
  queryKey: n
1545
1305
  } : n;
1546
1306
  }
1547
- function Jt(n, e) {
1307
+ function Lt(n, e) {
1548
1308
  if (n === e)
1549
1309
  return n;
1550
- const t = it(n) && it(e);
1551
- if (t || at(n) && at(e)) {
1310
+ const t = Qe(n) && Qe(e);
1311
+ if (t || Ge(n) && Ge(e)) {
1552
1312
  const i = t ? n.length : Object.keys(n).length, a = t ? e : Object.keys(e), s = a.length, r = t ? [] : {};
1553
1313
  let o = 0;
1554
- for (let d = 0; d < s; d++) {
1555
- const l = t ? d : a[d];
1556
- r[l] = Jt(n[l], e[l]), r[l] === n[l] && o++;
1314
+ for (let l = 0; l < s; l++) {
1315
+ const u = t ? l : a[l];
1316
+ r[u] = Lt(n[u], e[u]), r[u] === n[u] && o++;
1557
1317
  }
1558
1318
  return i === s && o === i ? n : r;
1559
1319
  }
1560
1320
  return e;
1561
1321
  }
1562
- function De(n, e) {
1322
+ function be(n, e) {
1563
1323
  if (n && !e || e && !n)
1564
1324
  return !1;
1565
1325
  for (const t in n)
@@ -1567,39 +1327,39 @@ function De(n, e) {
1567
1327
  return !1;
1568
1328
  return !0;
1569
1329
  }
1570
- function it(n) {
1330
+ function Qe(n) {
1571
1331
  return Array.isArray(n) && n.length === Object.keys(n).length;
1572
1332
  }
1573
- function at(n) {
1574
- if (!st(n))
1333
+ function Ge(n) {
1334
+ if (!Ke(n))
1575
1335
  return !1;
1576
1336
  const e = n.constructor;
1577
1337
  if (typeof e == "undefined")
1578
1338
  return !0;
1579
1339
  const t = e.prototype;
1580
- return !(!st(t) || !t.hasOwnProperty("isPrototypeOf"));
1340
+ return !(!Ke(t) || !t.hasOwnProperty("isPrototypeOf"));
1581
1341
  }
1582
- function st(n) {
1342
+ function Ke(n) {
1583
1343
  return Object.prototype.toString.call(n) === "[object Object]";
1584
1344
  }
1585
- function Li(n) {
1345
+ function bi(n) {
1586
1346
  return Array.isArray(n);
1587
1347
  }
1588
- function Ii(n) {
1348
+ function Fi(n) {
1589
1349
  return new Promise((e) => {
1590
1350
  setTimeout(e, n);
1591
1351
  });
1592
1352
  }
1593
- function rt(n) {
1594
- Ii(0).then(n);
1353
+ function We(n) {
1354
+ Fi(0).then(n);
1595
1355
  }
1596
- function ot(n, e, t) {
1597
- return t.isDataEqual != null && t.isDataEqual(n, e) ? n : typeof t.structuralSharing == "function" ? t.structuralSharing(n, e) : t.structuralSharing !== !1 ? Jt(n, e) : e;
1356
+ function Je(n, e, t) {
1357
+ return t.isDataEqual != null && t.isDataEqual(n, e) ? n : typeof t.structuralSharing == "function" ? t.structuralSharing(n, e) : t.structuralSharing !== !1 ? Lt(n, e) : e;
1598
1358
  }
1599
- class Ai extends Be {
1359
+ class wi extends Te {
1600
1360
  constructor() {
1601
1361
  super(), this.setup = (e) => {
1602
- if (!fe && window.addEventListener) {
1362
+ if (!oe && window.addEventListener) {
1603
1363
  const t = () => e();
1604
1364
  return window.addEventListener("visibilitychange", t, !1), window.addEventListener("focus", t, !1), () => {
1605
1365
  window.removeEventListener("visibilitychange", t), window.removeEventListener("focus", t);
@@ -1636,16 +1396,16 @@ class Ai extends Be {
1636
1396
  return typeof this.focused == "boolean" ? this.focused : typeof document == "undefined" ? !0 : [void 0, "visible", "prerender"].includes(document.visibilityState);
1637
1397
  }
1638
1398
  }
1639
- const Pi = new Ai(), lt = ["online", "offline"];
1640
- class Vi extends Be {
1399
+ const Ci = new wi(), qe = ["online", "offline"];
1400
+ class Ei extends Te {
1641
1401
  constructor() {
1642
1402
  super(), this.setup = (e) => {
1643
- if (!fe && window.addEventListener) {
1403
+ if (!oe && window.addEventListener) {
1644
1404
  const t = () => e();
1645
- return lt.forEach((i) => {
1405
+ return qe.forEach((i) => {
1646
1406
  window.addEventListener(i, t, !1);
1647
1407
  }), () => {
1648
- lt.forEach((i) => {
1408
+ qe.forEach((i) => {
1649
1409
  window.removeEventListener(i, t);
1650
1410
  });
1651
1411
  };
@@ -1681,47 +1441,47 @@ class Vi extends Be {
1681
1441
  return typeof this.online == "boolean" ? this.online : typeof navigator == "undefined" || typeof navigator.onLine == "undefined" ? !0 : navigator.onLine;
1682
1442
  }
1683
1443
  }
1684
- const _i = new Vi();
1685
- function Ui(n) {
1686
- return (n != null ? n : "online") === "online" ? _i.isOnline() : !0;
1444
+ const xi = new Ei();
1445
+ function Oi(n) {
1446
+ return (n != null ? n : "online") === "online" ? xi.isOnline() : !0;
1687
1447
  }
1688
- class Mi {
1448
+ class Ri {
1689
1449
  constructor(e) {
1690
1450
  this.revert = e == null ? void 0 : e.revert, this.silent = e == null ? void 0 : e.silent;
1691
1451
  }
1692
1452
  }
1693
- function ji(n) {
1694
- return n instanceof Mi;
1453
+ function Ti(n) {
1454
+ return n instanceof Ri;
1695
1455
  }
1696
- function $i() {
1697
- let n = [], e = 0, t = (u) => {
1698
- u();
1699
- }, i = (u) => {
1700
- u();
1456
+ function Di() {
1457
+ let n = [], e = 0, t = (d) => {
1458
+ d();
1459
+ }, i = (d) => {
1460
+ d();
1701
1461
  };
1702
- const a = (u) => {
1703
- let p;
1462
+ const a = (d) => {
1463
+ let f;
1704
1464
  e++;
1705
1465
  try {
1706
- p = u();
1466
+ f = d();
1707
1467
  } finally {
1708
1468
  e--, e || o();
1709
1469
  }
1710
- return p;
1711
- }, s = (u) => {
1712
- e ? n.push(u) : rt(() => {
1713
- t(u);
1470
+ return f;
1471
+ }, s = (d) => {
1472
+ e ? n.push(d) : We(() => {
1473
+ t(d);
1714
1474
  });
1715
- }, r = (u) => (...p) => {
1475
+ }, r = (d) => (...f) => {
1716
1476
  s(() => {
1717
- u(...p);
1477
+ d(...f);
1718
1478
  });
1719
1479
  }, o = () => {
1720
- const u = n;
1721
- n = [], u.length && rt(() => {
1480
+ const d = n;
1481
+ n = [], d.length && We(() => {
1722
1482
  i(() => {
1723
- u.forEach((p) => {
1724
- t(p);
1483
+ d.forEach((f) => {
1484
+ t(f);
1725
1485
  });
1726
1486
  });
1727
1487
  });
@@ -1730,16 +1490,16 @@ function $i() {
1730
1490
  batch: a,
1731
1491
  batchCalls: r,
1732
1492
  schedule: s,
1733
- setNotifyFunction: (u) => {
1734
- t = u;
1493
+ setNotifyFunction: (d) => {
1494
+ t = d;
1735
1495
  },
1736
- setBatchNotifyFunction: (u) => {
1737
- i = u;
1496
+ setBatchNotifyFunction: (d) => {
1497
+ i = d;
1738
1498
  }
1739
1499
  };
1740
1500
  }
1741
- const te = $i();
1742
- class zi extends Be {
1501
+ const X = Di();
1502
+ class Ii extends Te {
1743
1503
  constructor(e, t) {
1744
1504
  super(), this.client = e, this.options = t, this.trackedProps = /* @__PURE__ */ new Set(), this.selectError = null, this.bindMethods(), this.setOptions(t);
1745
1505
  }
@@ -1747,23 +1507,23 @@ class zi extends Be {
1747
1507
  this.remove = this.remove.bind(this), this.refetch = this.refetch.bind(this);
1748
1508
  }
1749
1509
  onSubscribe() {
1750
- this.listeners.size === 1 && (this.currentQuery.addObserver(this), dt(this.currentQuery, this.options) && this.executeFetch(), this.updateTimers());
1510
+ this.listeners.size === 1 && (this.currentQuery.addObserver(this), He(this.currentQuery, this.options) && this.executeFetch(), this.updateTimers());
1751
1511
  }
1752
1512
  onUnsubscribe() {
1753
1513
  this.hasListeners() || this.destroy();
1754
1514
  }
1755
1515
  shouldFetchOnReconnect() {
1756
- return Le(this.currentQuery, this.options, this.options.refetchOnReconnect);
1516
+ return Fe(this.currentQuery, this.options, this.options.refetchOnReconnect);
1757
1517
  }
1758
1518
  shouldFetchOnWindowFocus() {
1759
- return Le(this.currentQuery, this.options, this.options.refetchOnWindowFocus);
1519
+ return Fe(this.currentQuery, this.options, this.options.refetchOnWindowFocus);
1760
1520
  }
1761
1521
  destroy() {
1762
1522
  this.listeners = /* @__PURE__ */ new Set(), this.clearStaleTimeout(), this.clearRefetchInterval(), this.currentQuery.removeObserver(this);
1763
1523
  }
1764
1524
  setOptions(e, t) {
1765
1525
  const i = this.options, a = this.currentQuery;
1766
- if (this.options = this.client.defaultQueryOptions(e), De(i, this.options) || this.client.getQueryCache().notify({
1526
+ if (this.options = this.client.defaultQueryOptions(e), be(i, this.options) || this.client.getQueryCache().notify({
1767
1527
  type: "observerOptionsUpdated",
1768
1528
  query: this.currentQuery,
1769
1529
  observer: this
@@ -1771,13 +1531,13 @@ class zi extends Be {
1771
1531
  throw new Error("Expected enabled to be a boolean");
1772
1532
  this.options.queryKey || (this.options.queryKey = i.queryKey), this.updateQuery();
1773
1533
  const s = this.hasListeners();
1774
- s && ut(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();
1534
+ s && Ze(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();
1775
1535
  const r = this.computeRefetchInterval();
1776
1536
  s && (this.currentQuery !== a || this.options.enabled !== i.enabled || r !== this.currentRefetchInterval) && this.updateRefetchInterval(r);
1777
1537
  }
1778
1538
  getOptimisticResult(e) {
1779
1539
  const t = this.client.getQueryCache().build(this.client, e), i = this.createResult(t, e);
1780
- return Qi(this, i, e) && (this.currentResult = i, this.currentResultOptions = this.options, this.currentResultState = this.currentQuery.state), i;
1540
+ return Ai(this, i, e) && (this.currentResult = i, this.currentResultOptions = this.options, this.currentResultState = this.currentQuery.state), i;
1781
1541
  }
1782
1542
  getCurrentResult() {
1783
1543
  return this.currentResult;
@@ -1823,12 +1583,12 @@ class zi extends Be {
1823
1583
  executeFetch(e) {
1824
1584
  this.updateQuery();
1825
1585
  let t = this.currentQuery.fetch(this.options, e);
1826
- return e != null && e.throwOnError || (t = t.catch(xi)), t;
1586
+ return e != null && e.throwOnError || (t = t.catch(Si)), t;
1827
1587
  }
1828
1588
  updateStaleTimeout() {
1829
- if (this.clearStaleTimeout(), fe || this.currentResult.isStale || !nt(this.options.staleTime))
1589
+ if (this.clearStaleTimeout(), oe || this.currentResult.isStale || !Be(this.options.staleTime))
1830
1590
  return;
1831
- const t = Ti(this.currentResult.dataUpdatedAt, this.options.staleTime) + 1;
1591
+ const t = yi(this.currentResult.dataUpdatedAt, this.options.staleTime) + 1;
1832
1592
  this.staleTimeoutId = setTimeout(() => {
1833
1593
  this.currentResult.isStale || this.updateResult();
1834
1594
  }, t);
@@ -1838,8 +1598,8 @@ class zi extends Be {
1838
1598
  return typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.currentResult.data, this.currentQuery) : (e = this.options.refetchInterval) != null ? e : !1;
1839
1599
  }
1840
1600
  updateRefetchInterval(e) {
1841
- this.clearRefetchInterval(), this.currentRefetchInterval = e, !(fe || this.options.enabled === !1 || !nt(this.currentRefetchInterval) || this.currentRefetchInterval === 0) && (this.refetchIntervalId = setInterval(() => {
1842
- (this.options.refetchIntervalInBackground || Pi.isFocused()) && this.executeFetch();
1601
+ this.clearRefetchInterval(), this.currentRefetchInterval = e, !(oe || this.options.enabled === !1 || !Be(this.currentRefetchInterval) || this.currentRefetchInterval === 0) && (this.refetchIntervalId = setInterval(() => {
1602
+ (this.options.refetchIntervalInBackground || Ci.isFocused()) && this.executeFetch();
1843
1603
  }, this.currentRefetchInterval));
1844
1604
  }
1845
1605
  updateTimers() {
@@ -1852,78 +1612,78 @@ class zi extends Be {
1852
1612
  this.refetchIntervalId && (clearInterval(this.refetchIntervalId), this.refetchIntervalId = void 0);
1853
1613
  }
1854
1614
  createResult(e, t) {
1855
- const i = this.currentQuery, a = this.options, s = this.currentResult, r = this.currentResultState, o = this.currentResultOptions, d = e !== i, l = d ? e.state : this.currentQueryInitialState, u = d ? this.currentResult : this.previousQueryResult, {
1856
- state: p
1615
+ const i = this.currentQuery, a = this.options, s = this.currentResult, r = this.currentResultState, o = this.currentResultOptions, l = e !== i, u = l ? e.state : this.currentQueryInitialState, d = l ? this.currentResult : this.previousQueryResult, {
1616
+ state: f
1857
1617
  } = e;
1858
1618
  let {
1859
1619
  dataUpdatedAt: c,
1860
- error: v,
1861
- errorUpdatedAt: S,
1620
+ error: S,
1621
+ errorUpdatedAt: y,
1862
1622
  fetchStatus: k,
1863
- status: y
1864
- } = p, F = !1, w = !1, L;
1623
+ status: N
1624
+ } = f, O = !1, F = !1, D;
1865
1625
  if (t._optimisticResults) {
1866
- const f = this.hasListeners(), m = !f && dt(e, t), g = f && ut(e, i, t, a);
1867
- (m || g) && (k = Ui(e.options.networkMode) ? "fetching" : "paused", c || (y = "loading")), t._optimisticResults === "isRestoring" && (k = "idle");
1868
- }
1869
- if (t.keepPreviousData && !p.dataUpdatedAt && u != null && u.isSuccess && y !== "error")
1870
- L = u.data, c = u.dataUpdatedAt, y = u.status, F = !0;
1871
- else if (t.select && typeof p.data != "undefined")
1872
- if (s && p.data === (r == null ? void 0 : r.data) && t.select === this.selectFn)
1873
- L = this.selectResult;
1626
+ const m = this.hasListeners(), p = !m && He(e, t), h = m && Ze(e, i, t, a);
1627
+ (p || h) && (k = Oi(e.options.networkMode) ? "fetching" : "paused", c || (N = "loading")), t._optimisticResults === "isRestoring" && (k = "idle");
1628
+ }
1629
+ if (t.keepPreviousData && !f.dataUpdatedAt && d != null && d.isSuccess && N !== "error")
1630
+ D = d.data, c = d.dataUpdatedAt, N = d.status, O = !0;
1631
+ else if (t.select && typeof f.data != "undefined")
1632
+ if (s && f.data === (r == null ? void 0 : r.data) && t.select === this.selectFn)
1633
+ D = this.selectResult;
1874
1634
  else
1875
1635
  try {
1876
- this.selectFn = t.select, L = t.select(p.data), L = ot(s == null ? void 0 : s.data, L, t), this.selectResult = L, this.selectError = null;
1877
- } catch (f) {
1878
- this.selectError = f;
1636
+ this.selectFn = t.select, D = t.select(f.data), D = Je(s == null ? void 0 : s.data, D, t), this.selectResult = D, this.selectError = null;
1637
+ } catch (m) {
1638
+ this.selectError = m;
1879
1639
  }
1880
1640
  else
1881
- L = p.data;
1882
- if (typeof t.placeholderData != "undefined" && typeof L == "undefined" && y === "loading") {
1883
- let f;
1641
+ D = f.data;
1642
+ if (typeof t.placeholderData != "undefined" && typeof D == "undefined" && N === "loading") {
1643
+ let m;
1884
1644
  if (s != null && s.isPlaceholderData && t.placeholderData === (o == null ? void 0 : o.placeholderData))
1885
- f = s.data;
1886
- else if (f = typeof t.placeholderData == "function" ? t.placeholderData() : t.placeholderData, t.select && typeof f != "undefined")
1645
+ m = s.data;
1646
+ else if (m = typeof t.placeholderData == "function" ? t.placeholderData() : t.placeholderData, t.select && typeof m != "undefined")
1887
1647
  try {
1888
- f = t.select(f), this.selectError = null;
1889
- } catch (m) {
1890
- this.selectError = m;
1648
+ m = t.select(m), this.selectError = null;
1649
+ } catch (p) {
1650
+ this.selectError = p;
1891
1651
  }
1892
- typeof f != "undefined" && (y = "success", L = ot(s == null ? void 0 : s.data, f, t), w = !0);
1652
+ typeof m != "undefined" && (N = "success", D = Je(s == null ? void 0 : s.data, m, t), F = !0);
1893
1653
  }
1894
- this.selectError && (v = this.selectError, L = this.selectResult, S = Date.now(), y = "error");
1895
- const E = k === "fetching", I = y === "loading", P = y === "error";
1654
+ this.selectError && (S = this.selectError, D = this.selectResult, y = Date.now(), N = "error");
1655
+ const w = k === "fetching", I = N === "loading", L = N === "error";
1896
1656
  return {
1897
- status: y,
1657
+ status: N,
1898
1658
  fetchStatus: k,
1899
1659
  isLoading: I,
1900
- isSuccess: y === "success",
1901
- isError: P,
1902
- isInitialLoading: I && E,
1903
- data: L,
1660
+ isSuccess: N === "success",
1661
+ isError: L,
1662
+ isInitialLoading: I && w,
1663
+ data: D,
1904
1664
  dataUpdatedAt: c,
1905
- error: v,
1906
- errorUpdatedAt: S,
1907
- failureCount: p.fetchFailureCount,
1908
- failureReason: p.fetchFailureReason,
1909
- errorUpdateCount: p.errorUpdateCount,
1910
- isFetched: p.dataUpdateCount > 0 || p.errorUpdateCount > 0,
1911
- isFetchedAfterMount: p.dataUpdateCount > l.dataUpdateCount || p.errorUpdateCount > l.errorUpdateCount,
1912
- isFetching: E,
1913
- isRefetching: E && !I,
1914
- isLoadingError: P && p.dataUpdatedAt === 0,
1665
+ error: S,
1666
+ errorUpdatedAt: y,
1667
+ failureCount: f.fetchFailureCount,
1668
+ failureReason: f.fetchFailureReason,
1669
+ errorUpdateCount: f.errorUpdateCount,
1670
+ isFetched: f.dataUpdateCount > 0 || f.errorUpdateCount > 0,
1671
+ isFetchedAfterMount: f.dataUpdateCount > u.dataUpdateCount || f.errorUpdateCount > u.errorUpdateCount,
1672
+ isFetching: w,
1673
+ isRefetching: w && !I,
1674
+ isLoadingError: L && f.dataUpdatedAt === 0,
1915
1675
  isPaused: k === "paused",
1916
- isPlaceholderData: w,
1917
- isPreviousData: F,
1918
- isRefetchError: P && p.dataUpdatedAt !== 0,
1919
- isStale: Qe(e, t),
1676
+ isPlaceholderData: F,
1677
+ isPreviousData: O,
1678
+ isRefetchError: L && f.dataUpdatedAt !== 0,
1679
+ isStale: De(e, t),
1920
1680
  refetch: this.refetch,
1921
1681
  remove: this.remove
1922
1682
  };
1923
1683
  }
1924
1684
  updateResult(e) {
1925
1685
  const t = this.currentResult, i = this.createResult(this.currentQuery, this.options);
1926
- if (this.currentResultState = this.currentQuery.state, this.currentResultOptions = this.options, De(i, t))
1686
+ if (this.currentResultState = this.currentQuery.state, this.currentResultOptions = this.options, be(i, t))
1927
1687
  return;
1928
1688
  this.currentResult = i;
1929
1689
  const a = {
@@ -1936,10 +1696,10 @@ class zi extends Be {
1936
1696
  } = this.options, o = typeof r == "function" ? r() : r;
1937
1697
  if (o === "all" || !o && !this.trackedProps.size)
1938
1698
  return !0;
1939
- const d = new Set(o != null ? o : this.trackedProps);
1940
- return this.options.useErrorBoundary && d.add("error"), Object.keys(this.currentResult).some((l) => {
1941
- const u = l;
1942
- return this.currentResult[u] !== t[u] && d.has(u);
1699
+ const l = new Set(o != null ? o : this.trackedProps);
1700
+ return this.options.useErrorBoundary && l.add("error"), Object.keys(this.currentResult).some((u) => {
1701
+ const d = u;
1702
+ return this.currentResult[d] !== t[d] && l.has(d);
1943
1703
  });
1944
1704
  };
1945
1705
  (e == null ? void 0 : e.listeners) !== !1 && s() && (a.listeners = !0), this.notify({
@@ -1956,21 +1716,21 @@ class zi extends Be {
1956
1716
  }
1957
1717
  onQueryUpdate(e) {
1958
1718
  const t = {};
1959
- e.type === "success" ? t.onSuccess = !e.manual : e.type === "error" && !ji(e.error) && (t.onError = !0), this.updateResult(t), this.hasListeners() && this.updateTimers();
1719
+ e.type === "success" ? t.onSuccess = !e.manual : e.type === "error" && !Ti(e.error) && (t.onError = !0), this.updateResult(t), this.hasListeners() && this.updateTimers();
1960
1720
  }
1961
1721
  notify(e) {
1962
- te.batch(() => {
1722
+ X.batch(() => {
1963
1723
  if (e.onSuccess) {
1964
1724
  var t, i, a, s;
1965
1725
  (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);
1966
1726
  } else if (e.onError) {
1967
- var r, o, d, l;
1968
- (r = (o = this.options).onError) == null || r.call(o, this.currentResult.error), (d = (l = this.options).onSettled) == null || d.call(l, void 0, this.currentResult.error);
1727
+ var r, o, l, u;
1728
+ (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);
1969
1729
  }
1970
1730
  e.listeners && this.listeners.forEach(({
1971
- listener: u
1731
+ listener: d
1972
1732
  }) => {
1973
- u(this.currentResult);
1733
+ d(this.currentResult);
1974
1734
  }), e.cache && this.client.getQueryCache().notify({
1975
1735
  query: this.currentQuery,
1976
1736
  type: "observerResultsUpdated"
@@ -1978,42 +1738,42 @@ class zi extends Be {
1978
1738
  });
1979
1739
  }
1980
1740
  }
1981
- function Bi(n, e) {
1741
+ function Li(n, e) {
1982
1742
  return e.enabled !== !1 && !n.state.dataUpdatedAt && !(n.state.status === "error" && e.retryOnMount === !1);
1983
1743
  }
1984
- function dt(n, e) {
1985
- return Bi(n, e) || n.state.dataUpdatedAt > 0 && Le(n, e, e.refetchOnMount);
1744
+ function He(n, e) {
1745
+ return Li(n, e) || n.state.dataUpdatedAt > 0 && Fe(n, e, e.refetchOnMount);
1986
1746
  }
1987
- function Le(n, e, t) {
1747
+ function Fe(n, e, t) {
1988
1748
  if (e.enabled !== !1) {
1989
1749
  const i = typeof t == "function" ? t(n) : t;
1990
- return i === "always" || i !== !1 && Qe(n, e);
1750
+ return i === "always" || i !== !1 && De(n, e);
1991
1751
  }
1992
1752
  return !1;
1993
1753
  }
1994
- function ut(n, e, t, i) {
1995
- return t.enabled !== !1 && (n !== e || i.enabled === !1) && (!t.suspense || n.state.status !== "error") && Qe(n, t);
1754
+ function Ze(n, e, t, i) {
1755
+ return t.enabled !== !1 && (n !== e || i.enabled === !1) && (!t.suspense || n.state.status !== "error") && De(n, t);
1996
1756
  }
1997
- function Qe(n, e) {
1757
+ function De(n, e) {
1998
1758
  return n.isStaleByTime(e.staleTime);
1999
1759
  }
2000
- function Qi(n, e, t) {
2001
- return t.keepPreviousData ? !1 : t.placeholderData !== void 0 ? e.isPlaceholderData : !De(n.getCurrentResult(), e);
1760
+ function Ai(n, e, t) {
1761
+ return t.keepPreviousData ? !1 : t.placeholderData !== void 0 ? e.isPlaceholderData : !be(n.getCurrentResult(), e);
2002
1762
  }
2003
- const Ki = $t.useSyncExternalStore, ct = /* @__PURE__ */ M.createContext(void 0), Gi = /* @__PURE__ */ M.createContext(!1);
2004
- function Wi(n, e) {
2005
- return n || (e && typeof window != "undefined" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext = ct), window.ReactQueryClientContext) : ct);
1763
+ const Pi = wt.useSyncExternalStore, Xe = /* @__PURE__ */ M.createContext(void 0), Vi = /* @__PURE__ */ M.createContext(!1);
1764
+ function _i(n, e) {
1765
+ return n || (e && typeof window != "undefined" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext = Xe), window.ReactQueryClientContext) : Xe);
2006
1766
  }
2007
- const Ji = ({
1767
+ const Ui = ({
2008
1768
  context: n
2009
1769
  } = {}) => {
2010
- const e = M.useContext(Wi(n, M.useContext(Gi)));
1770
+ const e = M.useContext(_i(n, M.useContext(Vi)));
2011
1771
  if (!e)
2012
1772
  throw new Error("No QueryClient set, use QueryClientProvider to set one");
2013
1773
  return e;
2014
- }, qt = /* @__PURE__ */ M.createContext(!1), qi = () => M.useContext(qt);
2015
- qt.Provider;
2016
- function Hi() {
1774
+ }, At = /* @__PURE__ */ M.createContext(!1), Mi = () => M.useContext(At);
1775
+ At.Provider;
1776
+ function $i() {
2017
1777
  let n = !1;
2018
1778
  return {
2019
1779
  clearReset: () => {
@@ -2025,47 +1785,47 @@ function Hi() {
2025
1785
  isReset: () => n
2026
1786
  };
2027
1787
  }
2028
- const Zi = /* @__PURE__ */ M.createContext(Hi()), Xi = () => M.useContext(Zi);
2029
- function Yi(n, e) {
1788
+ const ji = /* @__PURE__ */ M.createContext($i()), zi = () => M.useContext(ji);
1789
+ function Bi(n, e) {
2030
1790
  return typeof n == "function" ? n(...e) : !!n;
2031
1791
  }
2032
- const ea = (n, e) => {
1792
+ const Qi = (n, e) => {
2033
1793
  (n.suspense || n.useErrorBoundary) && (e.isReset() || (n.retryOnMount = !1));
2034
- }, ta = (n) => {
1794
+ }, Gi = (n) => {
2035
1795
  M.useEffect(() => {
2036
1796
  n.clearReset();
2037
1797
  }, [n]);
2038
- }, na = ({
1798
+ }, Ki = ({
2039
1799
  result: n,
2040
1800
  errorResetBoundary: e,
2041
1801
  useErrorBoundary: t,
2042
1802
  query: i
2043
- }) => n.isError && !e.isReset() && !n.isFetching && Yi(t, [n.error, i]), ia = (n) => {
1803
+ }) => n.isError && !e.isReset() && !n.isFetching && Bi(t, [n.error, i]), Wi = (n) => {
2044
1804
  n.suspense && typeof n.staleTime != "number" && (n.staleTime = 1e3);
2045
- }, aa = (n, e) => n.isLoading && n.isFetching && !e, sa = (n, e, t) => (n == null ? void 0 : n.suspense) && aa(e, t), ra = (n, e, t) => e.fetchOptimistic(n).then(({
1805
+ }, 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(({
2046
1806
  data: i
2047
1807
  }) => {
2048
1808
  n.onSuccess == null || n.onSuccess(i), n.onSettled == null || n.onSettled(i, null);
2049
1809
  }).catch((i) => {
2050
1810
  t.clearReset(), n.onError == null || n.onError(i), n.onSettled == null || n.onSettled(void 0, i);
2051
1811
  });
2052
- function oa(n, e) {
2053
- const t = Ji({
1812
+ function Zi(n, e) {
1813
+ const t = Ui({
2054
1814
  context: n.context
2055
- }), i = qi(), a = Xi(), s = t.defaultQueryOptions(n);
2056
- s._optimisticResults = i ? "isRestoring" : "optimistic", s.onError && (s.onError = te.batchCalls(s.onError)), s.onSuccess && (s.onSuccess = te.batchCalls(s.onSuccess)), s.onSettled && (s.onSettled = te.batchCalls(s.onSettled)), ia(s), ea(s, a), ta(a);
1815
+ }), i = Mi(), a = zi(), s = t.defaultQueryOptions(n);
1816
+ 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);
2057
1817
  const [r] = M.useState(() => new e(t, s)), o = r.getOptimisticResult(s);
2058
- if (Ki(M.useCallback((d) => {
2059
- const l = i ? () => {
2060
- } : r.subscribe(te.batchCalls(d));
2061
- return r.updateResult(), l;
1818
+ if (Pi(M.useCallback((l) => {
1819
+ const u = i ? () => {
1820
+ } : r.subscribe(X.batchCalls(l));
1821
+ return r.updateResult(), u;
2062
1822
  }, [r, i]), () => r.getCurrentResult(), () => r.getCurrentResult()), M.useEffect(() => {
2063
1823
  r.setOptions(s, {
2064
1824
  listeners: !1
2065
1825
  });
2066
- }, [s, r]), sa(s, o, i))
2067
- throw ra(s, r, a);
2068
- if (na({
1826
+ }, [s, r]), qi(s, o, i))
1827
+ throw Hi(s, r, a);
1828
+ if (Ki({
2069
1829
  result: o,
2070
1830
  errorResetBoundary: a,
2071
1831
  useErrorBoundary: s.useErrorBoundary,
@@ -2074,30 +1834,33 @@ function oa(n, e) {
2074
1834
  throw o.error;
2075
1835
  return s.notifyOnChangeProps ? o : r.trackResult(o);
2076
1836
  }
2077
- function la(n, e, t) {
2078
- const i = Di(n, e, t);
2079
- return oa(i, zi);
1837
+ function Xi(n, e, t) {
1838
+ const i = Ni(n, e, t);
1839
+ return Zi(i, Ii);
2080
1840
  }
2081
- const da = () => ["account"], Zs = () => {
2082
- const { accountName: n } = Zn(je.state), [e, t] = yn(Ve), i = la(da(), () => Wt.get(n), {
1841
+ const Yi = () => ["account"], js = () => {
1842
+ const n = qn((a) => {
1843
+ var s;
1844
+ return (s = a.config) == null ? void 0 : s.account;
1845
+ }), [e, t] = ln(Ee), i = Xi(Yi(), () => It.get(n), {
2083
1846
  enabled: !!n && !e,
2084
1847
  refetchOnWindowFocus: !1,
2085
1848
  refetchOnMount: !1
2086
1849
  });
2087
- return Se(() => {
1850
+ return ht(() => {
2088
1851
  const a = i.data;
2089
1852
  !i.isSuccess || !a || t(a);
2090
1853
  }, [i.status]), {
2091
1854
  findQuery: i,
2092
1855
  account: e
2093
1856
  };
2094
- }, ua = Dt();
2095
- async function ca(n) {
2096
- const e = await Wt.get(n);
2097
- return ua.set(Ve, e), e;
1857
+ }, ea = gt();
1858
+ async function ta(n) {
1859
+ const e = await It.get(n);
1860
+ return ea.set(Ee, e), e;
2098
1861
  }
2099
- var ma = /* @__PURE__ */ ((n) => (n.CREATED = "CREATED", n.STARTING = "STARTING", n.LIVE = "LIVE", n.FINALIZED = "FINALIZED", n))(ma || {});
2100
- const Xs = {
1862
+ var na = /* @__PURE__ */ ((n) => (n.CREATED = "CREATED", n.STARTING = "STARTING", n.LIVE = "LIVE", n.FINALIZED = "FINALIZED", n))(na || {});
1863
+ const zs = {
2101
1864
  ALL: "*",
2102
1865
  CORE: "core:**",
2103
1866
  LIVE_STREAMING_EVENT: "event:**",
@@ -2109,77 +1872,77 @@ const Xs = {
2109
1872
  SNACK_SIZE_VIDEO_ADMIN: "ssv-admin:**",
2110
1873
  UI: "ui:**",
2111
1874
  UTILS: "utils:**"
2112
- }, Ys = {
1875
+ }, Bs = {
2113
1876
  EVENT_STATUS_CHANGED: "event:statusChanged"
2114
1877
  };
2115
- var fa = /* @__PURE__ */ ((n) => (n.English = "en", n.Spanish = "es", n.Portuguese = "pt", n))(fa || {}), pa = /* @__PURE__ */ ((n) => (n.COMBO = "Combo", n))(pa || {}), ha = /* @__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))(ha || {});
2116
- function ga(n) {
1878
+ 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 || {});
1879
+ function ra(n) {
2117
1880
  const e = Object.values(n);
2118
1881
  return Object.assign({}, ...e);
2119
1882
  }
2120
- function ka(n) {
1883
+ function oa(n) {
2121
1884
  return Object.entries(n).reduce(
2122
1885
  (e, [t, i]) => {
2123
- const a = ga(i);
1886
+ const a = ra(i);
2124
1887
  return { ...e, [t]: a };
2125
1888
  },
2126
1889
  {}
2127
1890
  );
2128
1891
  }
2129
- function va(n, e) {
2130
- const t = ka(e);
1892
+ function la(n, e) {
1893
+ const t = oa(e);
2131
1894
  Object.entries(t).forEach(([i, a]) => {
2132
1895
  n.addResourceBundle(i, "translation", a, !0);
2133
1896
  });
2134
1897
  }
2135
- function Sa(n, e) {
1898
+ function da(n, e) {
2136
1899
  if (!(n instanceof e))
2137
1900
  throw new TypeError("Cannot call a class as a function");
2138
1901
  }
2139
- function ie(n) {
1902
+ function Y(n) {
2140
1903
  "@babel/helpers - typeof";
2141
- return ie = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1904
+ return Y = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2142
1905
  return typeof e;
2143
1906
  } : function(e) {
2144
1907
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2145
- }, ie(n);
1908
+ }, Y(n);
2146
1909
  }
2147
- function ya(n, e) {
2148
- if (ie(n) !== "object" || n === null)
1910
+ function ua(n, e) {
1911
+ if (Y(n) !== "object" || n === null)
2149
1912
  return n;
2150
1913
  var t = n[Symbol.toPrimitive];
2151
1914
  if (t !== void 0) {
2152
1915
  var i = t.call(n, e || "default");
2153
- if (ie(i) !== "object")
1916
+ if (Y(i) !== "object")
2154
1917
  return i;
2155
1918
  throw new TypeError("@@toPrimitive must return a primitive value.");
2156
1919
  }
2157
1920
  return (e === "string" ? String : Number)(n);
2158
1921
  }
2159
- function Na(n) {
2160
- var e = ya(n, "string");
2161
- return ie(e) === "symbol" ? e : String(e);
1922
+ function ca(n) {
1923
+ var e = ua(n, "string");
1924
+ return Y(e) === "symbol" ? e : String(e);
2162
1925
  }
2163
- function mt(n, e) {
1926
+ function Ye(n, e) {
2164
1927
  for (var t = 0; t < e.length; t++) {
2165
1928
  var i = e[t];
2166
- i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(n, Na(i.key), i);
1929
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(n, ca(i.key), i);
2167
1930
  }
2168
1931
  }
2169
- function ba(n, e, t) {
2170
- return e && mt(n.prototype, e), t && mt(n, t), Object.defineProperty(n, "prototype", {
1932
+ function ma(n, e, t) {
1933
+ return e && Ye(n.prototype, e), t && Ye(n, t), Object.defineProperty(n, "prototype", {
2171
1934
  writable: !1
2172
1935
  }), n;
2173
1936
  }
2174
- var Ht = [], Fa = Ht.forEach, wa = Ht.slice;
2175
- function Ca(n) {
2176
- return Fa.call(wa.call(arguments, 1), function(e) {
1937
+ var Pt = [], fa = Pt.forEach, pa = Pt.slice;
1938
+ function ha(n) {
1939
+ return fa.call(pa.call(arguments, 1), function(e) {
2177
1940
  if (e)
2178
1941
  for (var t in e)
2179
1942
  n[t] === void 0 && (n[t] = e[t]);
2180
1943
  }), n;
2181
1944
  }
2182
- var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
1945
+ var et = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, ga = function(e, t, i) {
2183
1946
  var a = i || {};
2184
1947
  a.path = a.path || "/";
2185
1948
  var s = encodeURIComponent(t), r = "".concat(e, "=").concat(s);
@@ -2190,12 +1953,12 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
2190
1953
  r += "; Max-Age=".concat(Math.floor(o));
2191
1954
  }
2192
1955
  if (a.domain) {
2193
- if (!ft.test(a.domain))
1956
+ if (!et.test(a.domain))
2194
1957
  throw new TypeError("option domain is invalid");
2195
1958
  r += "; Domain=".concat(a.domain);
2196
1959
  }
2197
1960
  if (a.path) {
2198
- if (!ft.test(a.path))
1961
+ if (!et.test(a.path))
2199
1962
  throw new TypeError("option path is invalid");
2200
1963
  r += "; Path=".concat(a.path);
2201
1964
  }
@@ -2205,8 +1968,8 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
2205
1968
  r += "; Expires=".concat(a.expires.toUTCString());
2206
1969
  }
2207
1970
  if (a.httpOnly && (r += "; HttpOnly"), a.secure && (r += "; Secure"), a.sameSite) {
2208
- var d = typeof a.sameSite == "string" ? a.sameSite.toLowerCase() : a.sameSite;
2209
- switch (d) {
1971
+ var l = typeof a.sameSite == "string" ? a.sameSite.toLowerCase() : a.sameSite;
1972
+ switch (l) {
2210
1973
  case !0:
2211
1974
  r += "; SameSite=Strict";
2212
1975
  break;
@@ -2224,13 +1987,13 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
2224
1987
  }
2225
1988
  }
2226
1989
  return r;
2227
- }, pt = {
1990
+ }, tt = {
2228
1991
  create: function(e, t, i, a) {
2229
1992
  var s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
2230
1993
  path: "/",
2231
1994
  sameSite: "strict"
2232
1995
  };
2233
- i && (s.expires = /* @__PURE__ */ new Date(), s.expires.setTime(s.expires.getTime() + i * 60 * 1e3)), a && (s.domain = a), document.cookie = Ea(e, encodeURIComponent(t), s);
1996
+ 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);
2234
1997
  },
2235
1998
  read: function(e) {
2236
1999
  for (var t = "".concat(e, "="), i = document.cookie.split(";"), a = 0; a < i.length; a++) {
@@ -2244,20 +2007,20 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
2244
2007
  remove: function(e) {
2245
2008
  this.create(e, "", -1);
2246
2009
  }
2247
- }, Oa = {
2010
+ }, ka = {
2248
2011
  name: "cookie",
2249
2012
  lookup: function(e) {
2250
2013
  var t;
2251
2014
  if (e.lookupCookie && typeof document != "undefined") {
2252
- var i = pt.read(e.lookupCookie);
2015
+ var i = tt.read(e.lookupCookie);
2253
2016
  i && (t = i);
2254
2017
  }
2255
2018
  return t;
2256
2019
  },
2257
2020
  cacheUserLanguage: function(e, t) {
2258
- t.lookupCookie && typeof document != "undefined" && pt.create(t.lookupCookie, e, t.cookieMinutes, t.cookieDomain, t.cookieOptions);
2021
+ t.lookupCookie && typeof document != "undefined" && tt.create(t.lookupCookie, e, t.cookieMinutes, t.cookieDomain, t.cookieOptions);
2259
2022
  }
2260
- }, Ra = {
2023
+ }, va = {
2261
2024
  name: "querystring",
2262
2025
  lookup: function(e) {
2263
2026
  var t;
@@ -2267,62 +2030,62 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
2267
2030
  for (var a = i.substring(1), s = a.split("&"), r = 0; r < s.length; r++) {
2268
2031
  var o = s[r].indexOf("=");
2269
2032
  if (o > 0) {
2270
- var d = s[r].substring(0, o);
2271
- d === e.lookupQuerystring && (t = s[r].substring(o + 1));
2033
+ var l = s[r].substring(0, o);
2034
+ l === e.lookupQuerystring && (t = s[r].substring(o + 1));
2272
2035
  }
2273
2036
  }
2274
2037
  }
2275
2038
  return t;
2276
2039
  }
2277
- }, H = null, ht = function() {
2278
- if (H !== null)
2279
- return H;
2040
+ }, J = null, nt = function() {
2041
+ if (J !== null)
2042
+ return J;
2280
2043
  try {
2281
- H = window !== "undefined" && window.localStorage !== null;
2044
+ J = window !== "undefined" && window.localStorage !== null;
2282
2045
  var e = "i18next.translate.boo";
2283
2046
  window.localStorage.setItem(e, "foo"), window.localStorage.removeItem(e);
2284
2047
  } catch {
2285
- H = !1;
2048
+ J = !1;
2286
2049
  }
2287
- return H;
2288
- }, xa = {
2050
+ return J;
2051
+ }, Sa = {
2289
2052
  name: "localStorage",
2290
2053
  lookup: function(e) {
2291
2054
  var t;
2292
- if (e.lookupLocalStorage && ht()) {
2055
+ if (e.lookupLocalStorage && nt()) {
2293
2056
  var i = window.localStorage.getItem(e.lookupLocalStorage);
2294
2057
  i && (t = i);
2295
2058
  }
2296
2059
  return t;
2297
2060
  },
2298
2061
  cacheUserLanguage: function(e, t) {
2299
- t.lookupLocalStorage && ht() && window.localStorage.setItem(t.lookupLocalStorage, e);
2062
+ t.lookupLocalStorage && nt() && window.localStorage.setItem(t.lookupLocalStorage, e);
2300
2063
  }
2301
- }, Z = null, gt = function() {
2302
- if (Z !== null)
2303
- return Z;
2064
+ }, q = null, it = function() {
2065
+ if (q !== null)
2066
+ return q;
2304
2067
  try {
2305
- Z = window !== "undefined" && window.sessionStorage !== null;
2068
+ q = window !== "undefined" && window.sessionStorage !== null;
2306
2069
  var e = "i18next.translate.boo";
2307
2070
  window.sessionStorage.setItem(e, "foo"), window.sessionStorage.removeItem(e);
2308
2071
  } catch {
2309
- Z = !1;
2072
+ q = !1;
2310
2073
  }
2311
- return Z;
2312
- }, Ta = {
2074
+ return q;
2075
+ }, ya = {
2313
2076
  name: "sessionStorage",
2314
2077
  lookup: function(e) {
2315
2078
  var t;
2316
- if (e.lookupSessionStorage && gt()) {
2079
+ if (e.lookupSessionStorage && it()) {
2317
2080
  var i = window.sessionStorage.getItem(e.lookupSessionStorage);
2318
2081
  i && (t = i);
2319
2082
  }
2320
2083
  return t;
2321
2084
  },
2322
2085
  cacheUserLanguage: function(e, t) {
2323
- t.lookupSessionStorage && gt() && window.sessionStorage.setItem(t.lookupSessionStorage, e);
2086
+ t.lookupSessionStorage && it() && window.sessionStorage.setItem(t.lookupSessionStorage, e);
2324
2087
  }
2325
- }, Da = {
2088
+ }, Na = {
2326
2089
  name: "navigator",
2327
2090
  lookup: function(e) {
2328
2091
  var t = [];
@@ -2334,13 +2097,13 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
2334
2097
  }
2335
2098
  return t.length > 0 ? t : void 0;
2336
2099
  }
2337
- }, La = {
2100
+ }, ba = {
2338
2101
  name: "htmlTag",
2339
2102
  lookup: function(e) {
2340
2103
  var t, i = e.htmlTag || (typeof document != "undefined" ? document.documentElement : null);
2341
2104
  return i && typeof i.getAttribute == "function" && (t = i.getAttribute("lang")), t;
2342
2105
  }
2343
- }, Ia = {
2106
+ }, Fa = {
2344
2107
  name: "path",
2345
2108
  lookup: function(e) {
2346
2109
  var t;
@@ -2356,7 +2119,7 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
2356
2119
  }
2357
2120
  return t;
2358
2121
  }
2359
- }, Aa = {
2122
+ }, wa = {
2360
2123
  name: "subdomain",
2361
2124
  lookup: function(e) {
2362
2125
  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);
@@ -2364,7 +2127,7 @@ var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Ea = function(e, t, i) {
2364
2127
  return i[t];
2365
2128
  }
2366
2129
  };
2367
- function Pa() {
2130
+ function Ca() {
2368
2131
  return {
2369
2132
  order: ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"],
2370
2133
  lookupQuerystring: "lng",
@@ -2381,20 +2144,20 @@ function Pa() {
2381
2144
  }
2382
2145
  };
2383
2146
  }
2384
- var Zt = /* @__PURE__ */ function() {
2147
+ var Vt = /* @__PURE__ */ function() {
2385
2148
  function n(e) {
2386
2149
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2387
- Sa(this, n), this.type = "languageDetector", this.detectors = {}, this.init(e, t);
2150
+ da(this, n), this.type = "languageDetector", this.detectors = {}, this.init(e, t);
2388
2151
  }
2389
- return ba(n, [{
2152
+ return ma(n, [{
2390
2153
  key: "init",
2391
2154
  value: function(t) {
2392
2155
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2393
2156
  this.services = t || {
2394
2157
  languageUtils: {}
2395
- }, this.options = Ca(i, this.options || {}, Pa()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = function(s) {
2158
+ }, this.options = ha(i, this.options || {}, Ca()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = function(s) {
2396
2159
  return s.replace("-", "_");
2397
- }), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = a, this.addDetector(Oa), this.addDetector(Ra), this.addDetector(xa), this.addDetector(Ta), this.addDetector(Da), this.addDetector(La), this.addDetector(Ia), this.addDetector(Aa);
2160
+ }), 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);
2398
2161
  }
2399
2162
  }, {
2400
2163
  key: "addDetector",
@@ -2426,9 +2189,9 @@ var Zt = /* @__PURE__ */ function() {
2426
2189
  }
2427
2190
  }]), n;
2428
2191
  }();
2429
- Zt.type = "languageDetector";
2430
- function Va(n, e) {
2431
- n.use(e).use(Zt).init({
2192
+ Vt.type = "languageDetector";
2193
+ function Ea(n, e) {
2194
+ n.use(e).use(Vt).init({
2432
2195
  resources: {},
2433
2196
  fallbackLng: "en",
2434
2197
  debug: !1,
@@ -2467,7 +2230,7 @@ function Va(n, e) {
2467
2230
  }
2468
2231
  });
2469
2232
  }
2470
- const _a = {
2233
+ const xa = {
2471
2234
  type: "logger",
2472
2235
  log(n) {
2473
2236
  this.output("log", n);
@@ -2482,14 +2245,14 @@ const _a = {
2482
2245
  console && console[n] && console[n].apply(console, e);
2483
2246
  }
2484
2247
  };
2485
- class pe {
2248
+ class le {
2486
2249
  constructor(e) {
2487
2250
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2488
2251
  this.init(e, t);
2489
2252
  }
2490
2253
  init(e) {
2491
2254
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2492
- this.prefix = t.prefix || "i18next:", this.logger = e || _a, this.options = t, this.debug = t.debug;
2255
+ this.prefix = t.prefix || "i18next:", this.logger = e || xa, this.options = t, this.debug = t.debug;
2493
2256
  }
2494
2257
  log() {
2495
2258
  for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
@@ -2515,17 +2278,17 @@ class pe {
2515
2278
  return a && !this.debug ? null : (typeof e[0] == "string" && (e[0] = `${i}${this.prefix} ${e[0]}`), this.logger[t](e));
2516
2279
  }
2517
2280
  create(e) {
2518
- return new pe(this.logger, {
2281
+ return new le(this.logger, {
2519
2282
  prefix: `${this.prefix}:${e}:`,
2520
2283
  ...this.options
2521
2284
  });
2522
2285
  }
2523
2286
  clone(e) {
2524
- return e = e || this.options, e.prefix = e.prefix || this.prefix, new pe(this.logger, e);
2287
+ return e = e || this.options, e.prefix = e.prefix || this.prefix, new le(this.logger, e);
2525
2288
  }
2526
2289
  }
2527
- var j = new pe();
2528
- class Ne {
2290
+ var $ = new le();
2291
+ class ge {
2529
2292
  constructor() {
2530
2293
  this.observers = {};
2531
2294
  }
@@ -2553,22 +2316,22 @@ class Ne {
2553
2316
  });
2554
2317
  }
2555
2318
  }
2556
- function X() {
2319
+ function H() {
2557
2320
  let n, e;
2558
2321
  const t = new Promise((i, a) => {
2559
2322
  n = i, e = a;
2560
2323
  });
2561
2324
  return t.resolve = n, t.reject = e, t;
2562
2325
  }
2563
- function kt(n) {
2326
+ function at(n) {
2564
2327
  return n == null ? "" : "" + n;
2565
2328
  }
2566
- function Ua(n, e, t) {
2329
+ function Oa(n, e, t) {
2567
2330
  n.forEach((i) => {
2568
2331
  e[i] && (t[i] = e[i]);
2569
2332
  });
2570
2333
  }
2571
- function Ke(n, e, t) {
2334
+ function Ie(n, e, t) {
2572
2335
  function i(r) {
2573
2336
  return r && r.indexOf("###") > -1 ? r.replace(/###/g, ".") : r;
2574
2337
  }
@@ -2587,41 +2350,41 @@ function Ke(n, e, t) {
2587
2350
  k: i(s.shift())
2588
2351
  };
2589
2352
  }
2590
- function vt(n, e, t) {
2353
+ function st(n, e, t) {
2591
2354
  const {
2592
2355
  obj: i,
2593
2356
  k: a
2594
- } = Ke(n, e, Object);
2357
+ } = Ie(n, e, Object);
2595
2358
  i[a] = t;
2596
2359
  }
2597
- function Ma(n, e, t, i) {
2360
+ function Ra(n, e, t, i) {
2598
2361
  const {
2599
2362
  obj: a,
2600
2363
  k: s
2601
- } = Ke(n, e, Object);
2364
+ } = Ie(n, e, Object);
2602
2365
  a[s] = a[s] || [], i && (a[s] = a[s].concat(t)), i || a[s].push(t);
2603
2366
  }
2604
- function he(n, e) {
2367
+ function de(n, e) {
2605
2368
  const {
2606
2369
  obj: t,
2607
2370
  k: i
2608
- } = Ke(n, e);
2371
+ } = Ie(n, e);
2609
2372
  if (t)
2610
2373
  return t[i];
2611
2374
  }
2612
- function ja(n, e, t) {
2613
- const i = he(n, t);
2614
- return i !== void 0 ? i : he(e, t);
2375
+ function Ta(n, e, t) {
2376
+ const i = de(n, t);
2377
+ return i !== void 0 ? i : de(e, t);
2615
2378
  }
2616
- function Xt(n, e, t) {
2379
+ function _t(n, e, t) {
2617
2380
  for (const i in e)
2618
- i !== "__proto__" && i !== "constructor" && (i in n ? typeof n[i] == "string" || n[i] instanceof String || typeof e[i] == "string" || e[i] instanceof String ? t && (n[i] = e[i]) : Xt(n[i], e[i], t) : n[i] = e[i]);
2381
+ i !== "__proto__" && i !== "constructor" && (i in n ? typeof n[i] == "string" || n[i] instanceof String || typeof e[i] == "string" || e[i] instanceof String ? t && (n[i] = e[i]) : _t(n[i], e[i], t) : n[i] = e[i]);
2619
2382
  return n;
2620
2383
  }
2621
- function Q(n) {
2384
+ function B(n) {
2622
2385
  return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
2623
2386
  }
2624
- var $a = {
2387
+ var Da = {
2625
2388
  "&": "&amp;",
2626
2389
  "<": "&lt;",
2627
2390
  ">": "&gt;",
@@ -2629,13 +2392,13 @@ var $a = {
2629
2392
  "'": "&#39;",
2630
2393
  "/": "&#x2F;"
2631
2394
  };
2632
- function za(n) {
2633
- return typeof n == "string" ? n.replace(/[&<>"'\/]/g, (e) => $a[e]) : n;
2395
+ function Ia(n) {
2396
+ return typeof n == "string" ? n.replace(/[&<>"'\/]/g, (e) => Da[e]) : n;
2634
2397
  }
2635
- const Ba = [" ", ",", "?", "!", ";"];
2636
- function Qa(n, e, t) {
2398
+ const La = [" ", ",", "?", "!", ";"];
2399
+ function Aa(n, e, t) {
2637
2400
  e = e || "", t = t || "";
2638
- const i = Ba.filter((r) => e.indexOf(r) < 0 && t.indexOf(r) < 0);
2401
+ const i = La.filter((r) => e.indexOf(r) < 0 && t.indexOf(r) < 0);
2639
2402
  if (i.length === 0)
2640
2403
  return !0;
2641
2404
  const a = new RegExp(`(${i.map((r) => r === "?" ? "\\?" : r).join("|")})`);
@@ -2646,7 +2409,7 @@ function Qa(n, e, t) {
2646
2409
  }
2647
2410
  return s;
2648
2411
  }
2649
- function ge(n, e) {
2412
+ function ue(n, e) {
2650
2413
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
2651
2414
  if (!n)
2652
2415
  return;
@@ -2658,30 +2421,30 @@ function ge(n, e) {
2658
2421
  if (!a || typeof a[i[s]] == "string" && s + 1 < i.length)
2659
2422
  return;
2660
2423
  if (a[i[s]] === void 0) {
2661
- let r = 2, o = i.slice(s, s + r).join(t), d = a[o];
2662
- for (; d === void 0 && i.length > s + r; )
2663
- r++, o = i.slice(s, s + r).join(t), d = a[o];
2664
- if (d === void 0)
2424
+ let r = 2, o = i.slice(s, s + r).join(t), l = a[o];
2425
+ for (; l === void 0 && i.length > s + r; )
2426
+ r++, o = i.slice(s, s + r).join(t), l = a[o];
2427
+ if (l === void 0)
2665
2428
  return;
2666
- if (d === null)
2429
+ if (l === null)
2667
2430
  return null;
2668
2431
  if (e.endsWith(o)) {
2669
- if (typeof d == "string")
2670
- return d;
2671
- if (o && typeof d[o] == "string")
2672
- return d[o];
2432
+ if (typeof l == "string")
2433
+ return l;
2434
+ if (o && typeof l[o] == "string")
2435
+ return l[o];
2673
2436
  }
2674
- const l = i.slice(s + r).join(t);
2675
- return l ? ge(d, l, t) : void 0;
2437
+ const u = i.slice(s + r).join(t);
2438
+ return u ? ue(l, u, t) : void 0;
2676
2439
  }
2677
2440
  a = a[i[s]];
2678
2441
  }
2679
2442
  return a;
2680
2443
  }
2681
- function ke(n) {
2444
+ function ce(n) {
2682
2445
  return n && n.indexOf("_") > 0 ? n.replace("_", "-") : n;
2683
2446
  }
2684
- class St extends Ne {
2447
+ class rt extends ge {
2685
2448
  constructor(e) {
2686
2449
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
2687
2450
  ns: ["translation"],
@@ -2701,8 +2464,8 @@ class St extends Ne {
2701
2464
  const s = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator, r = a.ignoreJSONStructure !== void 0 ? a.ignoreJSONStructure : this.options.ignoreJSONStructure;
2702
2465
  let o = [e, t];
2703
2466
  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("."));
2704
- const d = he(this.data, o);
2705
- return d || !r || typeof i != "string" ? d : ge(this.data && this.data[e] && this.data[e][t], i, s);
2467
+ const l = de(this.data, o);
2468
+ return l || !r || typeof i != "string" ? l : ue(this.data && this.data[e] && this.data[e][t], i, s);
2706
2469
  }
2707
2470
  addResource(e, t, i, a) {
2708
2471
  let s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
@@ -2710,7 +2473,7 @@ class St extends Ne {
2710
2473
  };
2711
2474
  const r = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator;
2712
2475
  let o = [e, t];
2713
- i && (o = o.concat(r ? i.split(r) : i)), e.indexOf(".") > -1 && (o = e.split("."), a = t, t = o[1]), this.addNamespaces(t), vt(this.data, o, a), s.silent || this.emit("added", e, t, i, a);
2476
+ i && (o = o.concat(r ? i.split(r) : i)), e.indexOf(".") > -1 && (o = e.split("."), a = t, t = o[1]), this.addNamespaces(t), st(this.data, o, a), s.silent || this.emit("added", e, t, i, a);
2714
2477
  }
2715
2478
  addResources(e, t, i) {
2716
2479
  let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
@@ -2727,11 +2490,11 @@ class St extends Ne {
2727
2490
  silent: !1
2728
2491
  }, o = [e, t];
2729
2492
  e.indexOf(".") > -1 && (o = e.split("."), a = i, i = t, t = o[1]), this.addNamespaces(t);
2730
- let d = he(this.data, o) || {};
2731
- a ? Xt(d, i, s) : d = {
2732
- ...d,
2493
+ let l = de(this.data, o) || {};
2494
+ a ? _t(l, i, s) : l = {
2495
+ ...l,
2733
2496
  ...i
2734
- }, vt(this.data, o, d), r.silent || this.emit("added", e, t, i);
2497
+ }, st(this.data, o, l), r.silent || this.emit("added", e, t, i);
2735
2498
  }
2736
2499
  removeResourceBundle(e, t) {
2737
2500
  this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
@@ -2755,7 +2518,7 @@ class St extends Ne {
2755
2518
  return this.data;
2756
2519
  }
2757
2520
  }
2758
- var Yt = {
2521
+ var Ut = {
2759
2522
  processors: {},
2760
2523
  addPostProcessor(n) {
2761
2524
  this.processors[n.name] = n;
@@ -2766,11 +2529,11 @@ var Yt = {
2766
2529
  }), e;
2767
2530
  }
2768
2531
  };
2769
- const yt = {};
2770
- class ve extends Ne {
2532
+ const ot = {};
2533
+ class me extends ge {
2771
2534
  constructor(e) {
2772
2535
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2773
- super(), Ua(["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");
2536
+ super(), Oa(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = $.create("translator");
2774
2537
  }
2775
2538
  changeLanguage(e) {
2776
2539
  e && (this.language = e);
@@ -2789,16 +2552,16 @@ class ve extends Ne {
2789
2552
  i === void 0 && (i = ":");
2790
2553
  const a = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
2791
2554
  let s = t.ns || this.options.defaultNS || [];
2792
- const r = i && e.indexOf(i) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Qa(e, i, a);
2555
+ const r = i && e.indexOf(i) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Aa(e, i, a);
2793
2556
  if (r && !o) {
2794
- const d = e.match(this.interpolator.nestingRegexp);
2795
- if (d && d.length > 0)
2557
+ const l = e.match(this.interpolator.nestingRegexp);
2558
+ if (l && l.length > 0)
2796
2559
  return {
2797
2560
  key: e,
2798
2561
  namespaces: s
2799
2562
  };
2800
- const l = e.split(i);
2801
- (i !== a || i === a && this.options.ns.indexOf(l[0]) > -1) && (s = l.shift()), e = l.join(a);
2563
+ const u = e.split(i);
2564
+ (i !== a || i === a && this.options.ns.indexOf(u[0]) > -1) && (s = u.shift()), e = u.join(a);
2802
2565
  }
2803
2566
  return typeof s == "string" && (s = [s]), {
2804
2567
  key: e,
@@ -2814,90 +2577,90 @@ class ve extends Ne {
2814
2577
  const a = t.returnDetails !== void 0 ? t.returnDetails : this.options.returnDetails, s = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator, {
2815
2578
  key: r,
2816
2579
  namespaces: o
2817
- } = this.extractFromKey(e[e.length - 1], t), d = o[o.length - 1], l = t.lng || this.language, u = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
2818
- if (l && l.toLowerCase() === "cimode") {
2819
- if (u) {
2820
- const E = t.nsSeparator || this.options.nsSeparator;
2580
+ } = this.extractFromKey(e[e.length - 1], t), l = o[o.length - 1], u = t.lng || this.language, d = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
2581
+ if (u && u.toLowerCase() === "cimode") {
2582
+ if (d) {
2583
+ const w = t.nsSeparator || this.options.nsSeparator;
2821
2584
  return a ? {
2822
- res: `${d}${E}${r}`,
2585
+ res: `${l}${w}${r}`,
2823
2586
  usedKey: r,
2824
2587
  exactUsedKey: r,
2825
- usedLng: l,
2826
- usedNS: d,
2588
+ usedLng: u,
2589
+ usedNS: l,
2827
2590
  usedParams: this.getUsedParamsDetails(t)
2828
- } : `${d}${E}${r}`;
2591
+ } : `${l}${w}${r}`;
2829
2592
  }
2830
2593
  return a ? {
2831
2594
  res: r,
2832
2595
  usedKey: r,
2833
2596
  exactUsedKey: r,
2834
- usedLng: l,
2835
- usedNS: d,
2597
+ usedLng: u,
2598
+ usedNS: l,
2836
2599
  usedParams: this.getUsedParamsDetails(t)
2837
2600
  } : r;
2838
2601
  }
2839
- const p = this.resolve(e, t);
2840
- let c = p && p.res;
2841
- const v = p && p.usedKey || r, S = p && p.exactUsedKey || r, k = Object.prototype.toString.apply(c), y = ["[object Number]", "[object Function]", "[object RegExp]"], F = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, w = !this.i18nFormat || this.i18nFormat.handleAsObject;
2842
- if (w && c && (typeof c != "string" && typeof c != "boolean" && typeof c != "number") && y.indexOf(k) < 0 && !(typeof F == "string" && k === "[object Array]")) {
2602
+ const f = this.resolve(e, t);
2603
+ let c = f && f.res;
2604
+ const S = f && f.usedKey || r, y = f && f.exactUsedKey || r, k = Object.prototype.toString.apply(c), N = ["[object Number]", "[object Function]", "[object RegExp]"], O = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, F = !this.i18nFormat || this.i18nFormat.handleAsObject;
2605
+ if (F && c && (typeof c != "string" && typeof c != "boolean" && typeof c != "number") && N.indexOf(k) < 0 && !(typeof O == "string" && k === "[object Array]")) {
2843
2606
  if (!t.returnObjects && !this.options.returnObjects) {
2844
2607
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
2845
- const E = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(v, c, {
2608
+ const w = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(S, c, {
2846
2609
  ...t,
2847
2610
  ns: o
2848
2611
  }) : `key '${r} (${this.language})' returned an object instead of string.`;
2849
- return a ? (p.res = E, p.usedParams = this.getUsedParamsDetails(t), p) : E;
2612
+ return a ? (f.res = w, f.usedParams = this.getUsedParamsDetails(t), f) : w;
2850
2613
  }
2851
2614
  if (s) {
2852
- const E = k === "[object Array]", I = E ? [] : {}, P = E ? S : v;
2615
+ const w = k === "[object Array]", I = w ? [] : {}, L = w ? y : S;
2853
2616
  for (const A in c)
2854
2617
  if (Object.prototype.hasOwnProperty.call(c, A)) {
2855
- const f = `${P}${s}${A}`;
2856
- I[A] = this.translate(f, {
2618
+ const m = `${L}${s}${A}`;
2619
+ I[A] = this.translate(m, {
2857
2620
  ...t,
2858
2621
  joinArrays: !1,
2859
2622
  ns: o
2860
- }), I[A] === f && (I[A] = c[A]);
2623
+ }), I[A] === m && (I[A] = c[A]);
2861
2624
  }
2862
2625
  c = I;
2863
2626
  }
2864
- } else if (w && typeof F == "string" && k === "[object Array]")
2865
- c = c.join(F), c && (c = this.extendTranslation(c, e, t, i));
2627
+ } else if (F && typeof O == "string" && k === "[object Array]")
2628
+ c = c.join(O), c && (c = this.extendTranslation(c, e, t, i));
2866
2629
  else {
2867
- let E = !1, I = !1;
2868
- const P = t.count !== void 0 && typeof t.count != "string", A = ve.hasDefaultValue(t), f = P ? this.pluralResolver.getSuffix(l, t.count, t) : "", m = t.ordinal && P ? this.pluralResolver.getSuffix(l, t.count, {
2630
+ let w = !1, I = !1;
2631
+ 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, {
2869
2632
  ordinal: !1
2870
- }) : "", g = t[`defaultValue${f}`] || t[`defaultValue${m}`] || t.defaultValue;
2871
- !this.isValidLookup(c) && A && (E = !0, c = g), this.isValidLookup(c) || (I = !0, c = r);
2872
- const N = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && I ? void 0 : c, C = A && g !== c && this.options.updateMissing;
2873
- if (I || E || C) {
2874
- if (this.logger.log(C ? "updateKey" : "missingKey", l, d, r, C ? g : c), s) {
2875
- const R = this.resolve(r, {
2633
+ }) : "", h = t[`defaultValue${m}`] || t[`defaultValue${p}`] || t.defaultValue;
2634
+ !this.isValidLookup(c) && A && (w = !0, c = h), this.isValidLookup(c) || (I = !0, c = r);
2635
+ const b = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && I ? void 0 : c, C = A && h !== c && this.options.updateMissing;
2636
+ if (I || w || C) {
2637
+ if (this.logger.log(C ? "updateKey" : "missingKey", u, l, r, C ? h : c), s) {
2638
+ const x = this.resolve(r, {
2876
2639
  ...t,
2877
2640
  keySeparator: !1
2878
2641
  });
2879
- R && R.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
2642
+ x && x.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
2880
2643
  }
2881
- let b = [];
2882
- const O = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
2883
- if (this.options.saveMissingTo === "fallback" && O && O[0])
2884
- for (let R = 0; R < O.length; R++)
2885
- b.push(O[R]);
2644
+ let v = [];
2645
+ const E = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
2646
+ if (this.options.saveMissingTo === "fallback" && E && E[0])
2647
+ for (let x = 0; x < E.length; x++)
2648
+ v.push(E[x]);
2886
2649
  else
2887
- this.options.saveMissingTo === "all" ? b = this.languageUtils.toResolveHierarchy(t.lng || this.language) : b.push(t.lng || this.language);
2888
- const T = (R, D, V) => {
2889
- const se = A && V !== c ? V : N;
2890
- this.options.missingKeyHandler ? this.options.missingKeyHandler(R, d, D, se, C, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(R, d, D, se, C, t), this.emit("missingKey", R, d, D, c);
2650
+ this.options.saveMissingTo === "all" ? v = this.languageUtils.toResolveHierarchy(t.lng || this.language) : v.push(t.lng || this.language);
2651
+ const P = (x, T, V) => {
2652
+ const te = A && V !== c ? V : b;
2653
+ 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);
2891
2654
  };
2892
- this.options.saveMissing && (this.options.saveMissingPlurals && P ? b.forEach((R) => {
2893
- this.pluralResolver.getSuffixes(R, t).forEach((D) => {
2894
- T([R], r + D, t[`defaultValue${D}`] || g);
2655
+ this.options.saveMissing && (this.options.saveMissingPlurals && L ? v.forEach((x) => {
2656
+ this.pluralResolver.getSuffixes(x, t).forEach((T) => {
2657
+ P([x], r + T, t[`defaultValue${T}`] || h);
2895
2658
  });
2896
- }) : T(b, r, g));
2659
+ }) : P(v, r, h));
2897
2660
  }
2898
- c = this.extendTranslation(c, e, t, p, i), I && c === r && this.options.appendNamespaceToMissingKey && (c = `${d}:${r}`), (I || E) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? c = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${d}:${r}` : r, E ? c : void 0) : c = this.options.parseMissingKeyHandler(c));
2661
+ c = this.extendTranslation(c, e, t, f, i), I && c === r && this.options.appendNamespaceToMissingKey && (c = `${l}:${r}`), (I || w) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? c = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}:${r}` : r, w ? c : void 0) : c = this.options.parseMissingKeyHandler(c));
2899
2662
  }
2900
- return a ? (p.res = c, p.usedParams = this.getUsedParamsDetails(t), p) : c;
2663
+ return a ? (f.res = c, f.usedParams = this.getUsedParamsDetails(t), f) : c;
2901
2664
  }
2902
2665
  extendTranslation(e, t, i, a, s) {
2903
2666
  var r = this;
@@ -2916,28 +2679,28 @@ class ve extends Ne {
2916
2679
  ...i.interpolation
2917
2680
  }
2918
2681
  });
2919
- const l = typeof e == "string" && (i && i.interpolation && i.interpolation.skipOnVariables !== void 0 ? i.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
2920
- let u;
2921
- if (l) {
2682
+ const u = typeof e == "string" && (i && i.interpolation && i.interpolation.skipOnVariables !== void 0 ? i.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
2683
+ let d;
2684
+ if (u) {
2922
2685
  const c = e.match(this.interpolator.nestingRegexp);
2923
- u = c && c.length;
2686
+ d = c && c.length;
2924
2687
  }
2925
- let p = i.replace && typeof i.replace != "string" ? i.replace : i;
2926
- if (this.options.interpolation.defaultVariables && (p = {
2688
+ let f = i.replace && typeof i.replace != "string" ? i.replace : i;
2689
+ if (this.options.interpolation.defaultVariables && (f = {
2927
2690
  ...this.options.interpolation.defaultVariables,
2928
- ...p
2929
- }), e = this.interpolator.interpolate(e, p, i.lng || this.language, i), l) {
2930
- const c = e.match(this.interpolator.nestingRegexp), v = c && c.length;
2931
- u < v && (i.nest = !1);
2691
+ ...f
2692
+ }), e = this.interpolator.interpolate(e, f, i.lng || this.language, i), u) {
2693
+ const c = e.match(this.interpolator.nestingRegexp), S = c && c.length;
2694
+ d < S && (i.nest = !1);
2932
2695
  }
2933
2696
  !i.lng && this.options.compatibilityAPI !== "v1" && a && a.res && (i.lng = a.usedLng), i.nest !== !1 && (e = this.interpolator.nest(e, function() {
2934
- for (var c = arguments.length, v = new Array(c), S = 0; S < c; S++)
2935
- v[S] = arguments[S];
2936
- return s && s[0] === v[0] && !i.context ? (r.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${t[0]}`), null) : r.translate(...v, t);
2697
+ for (var c = arguments.length, S = new Array(c), y = 0; y < c; y++)
2698
+ S[y] = arguments[y];
2699
+ return s && s[0] === S[0] && !i.context ? (r.logger.warn(`It seems you are nesting recursively key: ${S[0]} in key: ${t[0]}`), null) : r.translate(...S, t);
2937
2700
  }, i)), i.interpolation && this.interpolator.reset();
2938
2701
  }
2939
- const o = i.postProcess || this.options.postProcess, d = typeof o == "string" ? [o] : o;
2940
- return e != null && d && d.length && i.applyPostProcessor !== !1 && (e = Yt.handle(d, e, t, this.options && this.options.postProcessPassResolved ? {
2702
+ const o = i.postProcess || this.options.postProcess, l = typeof o == "string" ? [o] : o;
2703
+ return e != null && l && l.length && i.applyPostProcessor !== !1 && (e = Ut.handle(l, e, t, this.options && this.options.postProcessPassResolved ? {
2941
2704
  i18nResolved: {
2942
2705
  ...a,
2943
2706
  usedParams: this.getUsedParamsDetails(i)
@@ -2947,34 +2710,34 @@ class ve extends Ne {
2947
2710
  }
2948
2711
  resolve(e) {
2949
2712
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i, a, s, r, o;
2950
- return typeof e == "string" && (e = [e]), e.forEach((d) => {
2713
+ return typeof e == "string" && (e = [e]), e.forEach((l) => {
2951
2714
  if (this.isValidLookup(i))
2952
2715
  return;
2953
- const l = this.extractFromKey(d, t), u = l.key;
2954
- a = u;
2955
- let p = l.namespaces;
2956
- this.options.fallbackNS && (p = p.concat(this.options.fallbackNS));
2957
- const c = t.count !== void 0 && typeof t.count != "string", v = c && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), S = 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);
2958
- p.forEach((y) => {
2959
- this.isValidLookup(i) || (o = y, !yt[`${k[0]}-${y}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (yt[`${k[0]}-${y}`] = !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((F) => {
2716
+ const u = this.extractFromKey(l, t), d = u.key;
2717
+ a = d;
2718
+ let f = u.namespaces;
2719
+ this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
2720
+ 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);
2721
+ f.forEach((N) => {
2722
+ this.isValidLookup(i) || (o = N, !ot[`${k[0]}-${N}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (ot[`${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) => {
2960
2723
  if (this.isValidLookup(i))
2961
2724
  return;
2962
- r = F;
2963
- const w = [u];
2725
+ r = O;
2726
+ const F = [d];
2964
2727
  if (this.i18nFormat && this.i18nFormat.addLookupKeys)
2965
- this.i18nFormat.addLookupKeys(w, u, F, y, t);
2728
+ this.i18nFormat.addLookupKeys(F, d, O, N, t);
2966
2729
  else {
2967
- let E;
2968
- c && (E = this.pluralResolver.getSuffix(F, t.count, t));
2969
- const I = `${this.options.pluralSeparator}zero`, P = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
2970
- if (c && (w.push(u + E), t.ordinal && E.indexOf(P) === 0 && w.push(u + E.replace(P, this.options.pluralSeparator)), v && w.push(u + I)), S) {
2971
- const A = `${u}${this.options.contextSeparator}${t.context}`;
2972
- w.push(A), c && (w.push(A + E), t.ordinal && E.indexOf(P) === 0 && w.push(A + E.replace(P, this.options.pluralSeparator)), v && w.push(A + I));
2730
+ let w;
2731
+ c && (w = this.pluralResolver.getSuffix(O, t.count, t));
2732
+ const I = `${this.options.pluralSeparator}zero`, L = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
2733
+ if (c && (F.push(d + w), t.ordinal && w.indexOf(L) === 0 && F.push(d + w.replace(L, this.options.pluralSeparator)), S && F.push(d + I)), y) {
2734
+ const A = `${d}${this.options.contextSeparator}${t.context}`;
2735
+ F.push(A), c && (F.push(A + w), t.ordinal && w.indexOf(L) === 0 && F.push(A + w.replace(L, this.options.pluralSeparator)), S && F.push(A + I));
2973
2736
  }
2974
2737
  }
2975
- let L;
2976
- for (; L = w.pop(); )
2977
- this.isValidLookup(i) || (s = L, i = this.getResource(F, y, L, t));
2738
+ let D;
2739
+ for (; D = F.pop(); )
2740
+ this.isValidLookup(i) || (s = D, i = this.getResource(O, N, D, t));
2978
2741
  }));
2979
2742
  });
2980
2743
  }), {
@@ -3016,21 +2779,21 @@ class ve extends Ne {
3016
2779
  return !1;
3017
2780
  }
3018
2781
  }
3019
- function Oe(n) {
2782
+ function Ne(n) {
3020
2783
  return n.charAt(0).toUpperCase() + n.slice(1);
3021
2784
  }
3022
- class Nt {
2785
+ class lt {
3023
2786
  constructor(e) {
3024
- this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = j.create("languageUtils");
2787
+ this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = $.create("languageUtils");
3025
2788
  }
3026
2789
  getScriptPartFromCode(e) {
3027
- if (e = ke(e), !e || e.indexOf("-") < 0)
2790
+ if (e = ce(e), !e || e.indexOf("-") < 0)
3028
2791
  return null;
3029
2792
  const t = e.split("-");
3030
2793
  return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
3031
2794
  }
3032
2795
  getLanguagePartFromCode(e) {
3033
- if (e = ke(e), !e || e.indexOf("-") < 0)
2796
+ if (e = ce(e), !e || e.indexOf("-") < 0)
3034
2797
  return e;
3035
2798
  const t = e.split("-");
3036
2799
  return this.formatLanguageCode(t[0]);
@@ -3039,7 +2802,7 @@ class Nt {
3039
2802
  if (typeof e == "string" && e.indexOf("-") > -1) {
3040
2803
  const t = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
3041
2804
  let i = e.split("-");
3042
- 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] = Oe(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] = Oe(i[1].toLowerCase())), t.indexOf(i[2].toLowerCase()) > -1 && (i[2] = Oe(i[2].toLowerCase()))), i.join("-");
2805
+ 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("-");
3043
2806
  }
3044
2807
  return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
3045
2808
  }
@@ -3088,7 +2851,7 @@ class Nt {
3088
2851
  }), a;
3089
2852
  }
3090
2853
  }
3091
- let Ka = [{
2854
+ let Pa = [{
3092
2855
  lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
3093
2856
  nr: [1, 2],
3094
2857
  fc: 1
@@ -3180,7 +2943,7 @@ let Ka = [{
3180
2943
  lngs: ["he", "iw"],
3181
2944
  nr: [1, 2, 20, 21],
3182
2945
  fc: 22
3183
- }], Ga = {
2946
+ }], Va = {
3184
2947
  1: function(n) {
3185
2948
  return +(n > 1);
3186
2949
  },
@@ -3248,7 +3011,7 @@ let Ka = [{
3248
3011
  return n == 1 ? 0 : n == 2 ? 1 : (n < 0 || n > 10) && n % 10 == 0 ? 2 : 3;
3249
3012
  }
3250
3013
  };
3251
- const Wa = ["v1", "v2", "v3"], Ja = ["v4"], bt = {
3014
+ const _a = ["v1", "v2", "v3"], Ua = ["v4"], dt = {
3252
3015
  zero: 0,
3253
3016
  one: 1,
3254
3017
  two: 2,
@@ -3256,21 +3019,21 @@ const Wa = ["v1", "v2", "v3"], Ja = ["v4"], bt = {
3256
3019
  many: 4,
3257
3020
  other: 5
3258
3021
  };
3259
- function qa() {
3022
+ function Ma() {
3260
3023
  const n = {};
3261
- return Ka.forEach((e) => {
3024
+ return Pa.forEach((e) => {
3262
3025
  e.lngs.forEach((t) => {
3263
3026
  n[t] = {
3264
3027
  numbers: e.nr,
3265
- plurals: Ga[e.fc]
3028
+ plurals: Va[e.fc]
3266
3029
  };
3267
3030
  });
3268
3031
  }), n;
3269
3032
  }
3270
- class Ha {
3033
+ class $a {
3271
3034
  constructor(e) {
3272
3035
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3273
- this.languageUtils = e, this.options = t, this.logger = j.create("pluralResolver"), (!this.options.compatibilityJSON || Ja.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 = qa();
3036
+ this.languageUtils = e, this.options = t, this.logger = $.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();
3274
3037
  }
3275
3038
  addRule(e, t) {
3276
3039
  this.rules[e] = t;
@@ -3279,7 +3042,7 @@ class Ha {
3279
3042
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3280
3043
  if (this.shouldUseIntlApi())
3281
3044
  try {
3282
- return new Intl.PluralRules(ke(e), {
3045
+ return new Intl.PluralRules(ce(e), {
3283
3046
  type: t.ordinal ? "ordinal" : "cardinal"
3284
3047
  });
3285
3048
  } catch {
@@ -3299,7 +3062,7 @@ class Ha {
3299
3062
  getSuffixes(e) {
3300
3063
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3301
3064
  const i = this.getRule(e, t);
3302
- return i ? this.shouldUseIntlApi() ? i.resolvedOptions().pluralCategories.sort((a, s) => bt[a] - bt[s]).map((a) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${a}`) : i.numbers.map((a) => this.getSuffix(e, a, t)) : [];
3065
+ return i ? this.shouldUseIntlApi() ? i.resolvedOptions().pluralCategories.sort((a, s) => dt[a] - dt[s]).map((a) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${a}`) : i.numbers.map((a) => this.getSuffix(e, a, t)) : [];
3303
3066
  }
3304
3067
  getSuffix(e, t) {
3305
3068
  let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
@@ -3314,17 +3077,17 @@ class Ha {
3314
3077
  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();
3315
3078
  }
3316
3079
  shouldUseIntlApi() {
3317
- return !Wa.includes(this.options.compatibilityJSON);
3080
+ return !_a.includes(this.options.compatibilityJSON);
3318
3081
  }
3319
3082
  }
3320
- function Ft(n, e, t) {
3321
- let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, s = ja(n, e, t);
3322
- return !s && a && typeof t == "string" && (s = ge(n, t, i), s === void 0 && (s = ge(e, t, i))), s;
3083
+ function ut(n, e, t) {
3084
+ 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);
3085
+ return !s && a && typeof t == "string" && (s = ue(n, t, i), s === void 0 && (s = ue(e, t, i))), s;
3323
3086
  }
3324
- class Za {
3087
+ class ja {
3325
3088
  constructor() {
3326
3089
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
3327
- this.logger = j.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
3090
+ this.logger = $.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
3328
3091
  }
3329
3092
  init() {
3330
3093
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -3332,7 +3095,7 @@ class Za {
3332
3095
  escapeValue: !0
3333
3096
  });
3334
3097
  const t = e.interpolation;
3335
- this.escape = t.escape !== void 0 ? t.escape : za, this.escapeValue = t.escapeValue !== void 0 ? t.escapeValue : !0, this.useRawValueToEscape = t.useRawValueToEscape !== void 0 ? t.useRawValueToEscape : !1, this.prefix = t.prefix ? Q(t.prefix) : t.prefixEscaped || "{{", this.suffix = t.suffix ? Q(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 ? Q(t.nestingPrefix) : t.nestingPrefixEscaped || Q("$t("), this.nestingSuffix = t.nestingSuffix ? Q(t.nestingSuffix) : t.nestingSuffixEscaped || Q(")"), 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();
3098
+ this.escape = t.escape !== void 0 ? t.escape : Ia, 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();
3336
3099
  }
3337
3100
  reset() {
3338
3101
  this.options && this.init(this.options);
@@ -3347,41 +3110,41 @@ class Za {
3347
3110
  }
3348
3111
  interpolate(e, t, i, a) {
3349
3112
  let s, r, o;
3350
- const d = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
3351
- function l(S) {
3352
- return S.replace(/\$/g, "$$$$");
3353
- }
3354
- const u = (S) => {
3355
- if (S.indexOf(this.formatSeparator) < 0) {
3356
- const w = Ft(t, d, S, this.options.keySeparator, this.options.ignoreJSONStructure);
3357
- return this.alwaysFormat ? this.format(w, void 0, i, {
3113
+ const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
3114
+ function u(y) {
3115
+ return y.replace(/\$/g, "$$$$");
3116
+ }
3117
+ const d = (y) => {
3118
+ if (y.indexOf(this.formatSeparator) < 0) {
3119
+ const F = ut(t, l, y, this.options.keySeparator, this.options.ignoreJSONStructure);
3120
+ return this.alwaysFormat ? this.format(F, void 0, i, {
3358
3121
  ...a,
3359
3122
  ...t,
3360
- interpolationkey: S
3361
- }) : w;
3123
+ interpolationkey: y
3124
+ }) : F;
3362
3125
  }
3363
- const k = S.split(this.formatSeparator), y = k.shift().trim(), F = k.join(this.formatSeparator).trim();
3364
- return this.format(Ft(t, d, y, this.options.keySeparator, this.options.ignoreJSONStructure), F, i, {
3126
+ const k = y.split(this.formatSeparator), N = k.shift().trim(), O = k.join(this.formatSeparator).trim();
3127
+ return this.format(ut(t, l, N, this.options.keySeparator, this.options.ignoreJSONStructure), O, i, {
3365
3128
  ...a,
3366
3129
  ...t,
3367
- interpolationkey: y
3130
+ interpolationkey: N
3368
3131
  });
3369
3132
  };
3370
3133
  this.resetRegExp();
3371
- const p = a && a.missingInterpolationHandler || this.options.missingInterpolationHandler, c = a && a.interpolation && a.interpolation.skipOnVariables !== void 0 ? a.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
3134
+ const f = a && a.missingInterpolationHandler || this.options.missingInterpolationHandler, c = a && a.interpolation && a.interpolation.skipOnVariables !== void 0 ? a.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
3372
3135
  return [{
3373
3136
  regex: this.regexpUnescape,
3374
- safeValue: (S) => l(S)
3137
+ safeValue: (y) => u(y)
3375
3138
  }, {
3376
3139
  regex: this.regexp,
3377
- safeValue: (S) => this.escapeValue ? l(this.escape(S)) : l(S)
3378
- }].forEach((S) => {
3379
- for (o = 0; s = S.regex.exec(e); ) {
3140
+ safeValue: (y) => this.escapeValue ? u(this.escape(y)) : u(y)
3141
+ }].forEach((y) => {
3142
+ for (o = 0; s = y.regex.exec(e); ) {
3380
3143
  const k = s[1].trim();
3381
- if (r = u(k), r === void 0)
3382
- if (typeof p == "function") {
3383
- const F = p(e, s, a);
3384
- r = typeof F == "string" ? F : "";
3144
+ if (r = d(k), r === void 0)
3145
+ if (typeof f == "function") {
3146
+ const O = f(e, s, a);
3147
+ r = typeof O == "string" ? O : "";
3385
3148
  } else if (a && Object.prototype.hasOwnProperty.call(a, k))
3386
3149
  r = "";
3387
3150
  else if (c) {
@@ -3390,47 +3153,47 @@ class Za {
3390
3153
  } else
3391
3154
  this.logger.warn(`missed to pass in variable ${k} for interpolating ${e}`), r = "";
3392
3155
  else
3393
- typeof r != "string" && !this.useRawValueToEscape && (r = kt(r));
3394
- const y = S.safeValue(r);
3395
- if (e = e.replace(s[0], y), c ? (S.regex.lastIndex += r.length, S.regex.lastIndex -= s[0].length) : S.regex.lastIndex = 0, o++, o >= this.maxReplaces)
3156
+ typeof r != "string" && !this.useRawValueToEscape && (r = at(r));
3157
+ const N = y.safeValue(r);
3158
+ 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)
3396
3159
  break;
3397
3160
  }
3398
3161
  }), e;
3399
3162
  }
3400
3163
  nest(e, t) {
3401
3164
  let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a, s, r;
3402
- function o(d, l) {
3403
- const u = this.nestingOptionsSeparator;
3404
- if (d.indexOf(u) < 0)
3405
- return d;
3406
- const p = d.split(new RegExp(`${u}[ ]*{`));
3407
- let c = `{${p[1]}`;
3408
- d = p[0], c = this.interpolate(c, r);
3409
- const v = c.match(/'/g), S = c.match(/"/g);
3410
- (v && v.length % 2 === 0 && !S || S.length % 2 !== 0) && (c = c.replace(/'/g, '"'));
3165
+ function o(l, u) {
3166
+ const d = this.nestingOptionsSeparator;
3167
+ if (l.indexOf(d) < 0)
3168
+ return l;
3169
+ const f = l.split(new RegExp(`${d}[ ]*{`));
3170
+ let c = `{${f[1]}`;
3171
+ l = f[0], c = this.interpolate(c, r);
3172
+ const S = c.match(/'/g), y = c.match(/"/g);
3173
+ (S && S.length % 2 === 0 && !y || y.length % 2 !== 0) && (c = c.replace(/'/g, '"'));
3411
3174
  try {
3412
- r = JSON.parse(c), l && (r = {
3413
- ...l,
3175
+ r = JSON.parse(c), u && (r = {
3176
+ ...u,
3414
3177
  ...r
3415
3178
  });
3416
3179
  } catch (k) {
3417
- return this.logger.warn(`failed parsing options string in nesting for key ${d}`, k), `${d}${u}${c}`;
3180
+ return this.logger.warn(`failed parsing options string in nesting for key ${l}`, k), `${l}${d}${c}`;
3418
3181
  }
3419
- return delete r.defaultValue, d;
3182
+ return delete r.defaultValue, l;
3420
3183
  }
3421
3184
  for (; a = this.nestingRegexp.exec(e); ) {
3422
- let d = [];
3185
+ let l = [];
3423
3186
  r = {
3424
3187
  ...i
3425
3188
  }, r = r.replace && typeof r.replace != "string" ? r.replace : r, r.applyPostProcessor = !1, delete r.defaultValue;
3426
- let l = !1;
3189
+ let u = !1;
3427
3190
  if (a[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(a[1])) {
3428
- const u = a[1].split(this.formatSeparator).map((p) => p.trim());
3429
- a[1] = u.shift(), d = u, l = !0;
3191
+ const d = a[1].split(this.formatSeparator).map((f) => f.trim());
3192
+ a[1] = d.shift(), l = d, u = !0;
3430
3193
  }
3431
3194
  if (s = t(o.call(this, a[1].trim(), r), r), s && a[0] === e && typeof s != "string")
3432
3195
  return s;
3433
- typeof s != "string" && (s = kt(s)), s || (this.logger.warn(`missed to resolve ${a[1]} for nesting ${e}`), s = ""), l && (s = d.reduce((u, p) => this.format(u, p, i.lng, {
3196
+ typeof s != "string" && (s = at(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, {
3434
3197
  ...i,
3435
3198
  interpolationkey: a[1].trim()
3436
3199
  }), s.trim())), e = e.replace(a[0], s), this.regexp.lastIndex = 0;
@@ -3438,7 +3201,7 @@ class Za {
3438
3201
  return e;
3439
3202
  }
3440
3203
  }
3441
- function Xa(n) {
3204
+ function za(n) {
3442
3205
  let e = n.toLowerCase().trim();
3443
3206
  const t = {};
3444
3207
  if (n.indexOf("(") > -1) {
@@ -3448,8 +3211,8 @@ function Xa(n) {
3448
3211
  e === "currency" && a.indexOf(":") < 0 ? t.currency || (t.currency = a.trim()) : e === "relativetime" && a.indexOf(":") < 0 ? t.range || (t.range = a.trim()) : a.split(";").forEach((r) => {
3449
3212
  if (!r)
3450
3213
  return;
3451
- const [o, ...d] = r.split(":"), l = d.join(":").trim().replace(/^'+|'+$/g, "");
3452
- t[o.trim()] || (t[o.trim()] = l), l === "false" && (t[o.trim()] = !1), l === "true" && (t[o.trim()] = !0), isNaN(l) || (t[o.trim()] = parseInt(l, 10));
3214
+ const [o, ...l] = r.split(":"), u = l.join(":").trim().replace(/^'+|'+$/g, "");
3215
+ t[o.trim()] || (t[o.trim()] = u), u === "false" && (t[o.trim()] = !1), u === "true" && (t[o.trim()] = !0), isNaN(u) || (t[o.trim()] = parseInt(u, 10));
3453
3216
  });
3454
3217
  }
3455
3218
  return {
@@ -3457,44 +3220,44 @@ function Xa(n) {
3457
3220
  formatOptions: t
3458
3221
  };
3459
3222
  }
3460
- function K(n) {
3223
+ function Q(n) {
3461
3224
  const e = {};
3462
3225
  return function(i, a, s) {
3463
3226
  const r = a + JSON.stringify(s);
3464
3227
  let o = e[r];
3465
- return o || (o = n(ke(a), s), e[r] = o), o(i);
3228
+ return o || (o = n(ce(a), s), e[r] = o), o(i);
3466
3229
  };
3467
3230
  }
3468
- class Ya {
3231
+ class Ba {
3469
3232
  constructor() {
3470
3233
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
3471
- this.logger = j.create("formatter"), this.options = e, this.formats = {
3472
- number: K((t, i) => {
3234
+ this.logger = $.create("formatter"), this.options = e, this.formats = {
3235
+ number: Q((t, i) => {
3473
3236
  const a = new Intl.NumberFormat(t, {
3474
3237
  ...i
3475
3238
  });
3476
3239
  return (s) => a.format(s);
3477
3240
  }),
3478
- currency: K((t, i) => {
3241
+ currency: Q((t, i) => {
3479
3242
  const a = new Intl.NumberFormat(t, {
3480
3243
  ...i,
3481
3244
  style: "currency"
3482
3245
  });
3483
3246
  return (s) => a.format(s);
3484
3247
  }),
3485
- datetime: K((t, i) => {
3248
+ datetime: Q((t, i) => {
3486
3249
  const a = new Intl.DateTimeFormat(t, {
3487
3250
  ...i
3488
3251
  });
3489
3252
  return (s) => a.format(s);
3490
3253
  }),
3491
- relativetime: K((t, i) => {
3254
+ relativetime: Q((t, i) => {
3492
3255
  const a = new Intl.RelativeTimeFormat(t, {
3493
3256
  ...i
3494
3257
  });
3495
3258
  return (s) => a.format(s, i.range || "day");
3496
3259
  }),
3497
- list: K((t, i) => {
3260
+ list: Q((t, i) => {
3498
3261
  const a = new Intl.ListFormat(t, {
3499
3262
  ...i
3500
3263
  });
@@ -3512,50 +3275,50 @@ class Ya {
3512
3275
  this.formats[e.toLowerCase().trim()] = t;
3513
3276
  }
3514
3277
  addCached(e, t) {
3515
- this.formats[e.toLowerCase().trim()] = K(t);
3278
+ this.formats[e.toLowerCase().trim()] = Q(t);
3516
3279
  }
3517
3280
  format(e, t, i) {
3518
3281
  let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
3519
- return t.split(this.formatSeparator).reduce((o, d) => {
3282
+ return t.split(this.formatSeparator).reduce((o, l) => {
3520
3283
  const {
3521
- formatName: l,
3522
- formatOptions: u
3523
- } = Xa(d);
3524
- if (this.formats[l]) {
3525
- let p = o;
3284
+ formatName: u,
3285
+ formatOptions: d
3286
+ } = za(l);
3287
+ if (this.formats[u]) {
3288
+ let f = o;
3526
3289
  try {
3527
- const c = a && a.formatParams && a.formatParams[a.interpolationkey] || {}, v = c.locale || c.lng || a.locale || a.lng || i;
3528
- p = this.formats[l](o, v, {
3529
- ...u,
3290
+ const c = a && a.formatParams && a.formatParams[a.interpolationkey] || {}, S = c.locale || c.lng || a.locale || a.lng || i;
3291
+ f = this.formats[u](o, S, {
3292
+ ...d,
3530
3293
  ...a,
3531
3294
  ...c
3532
3295
  });
3533
3296
  } catch (c) {
3534
3297
  this.logger.warn(c);
3535
3298
  }
3536
- return p;
3299
+ return f;
3537
3300
  } else
3538
- this.logger.warn(`there was no format function for ${l}`);
3301
+ this.logger.warn(`there was no format function for ${u}`);
3539
3302
  return o;
3540
3303
  }, e);
3541
3304
  }
3542
3305
  }
3543
- function es(n, e) {
3306
+ function Qa(n, e) {
3544
3307
  n.pending[e] !== void 0 && (delete n.pending[e], n.pendingCount--);
3545
3308
  }
3546
- class ts extends Ne {
3309
+ class Ga extends ge {
3547
3310
  constructor(e, t, i) {
3548
3311
  let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
3549
- 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);
3312
+ 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);
3550
3313
  }
3551
3314
  queueLoad(e, t, i, a) {
3552
- const s = {}, r = {}, o = {}, d = {};
3553
- return e.forEach((l) => {
3554
- let u = !0;
3555
- t.forEach((p) => {
3556
- const c = `${l}|${p}`;
3557
- !i.reload && this.store.hasResourceBundle(l, p) ? this.state[c] = 2 : this.state[c] < 0 || (this.state[c] === 1 ? r[c] === void 0 && (r[c] = !0) : (this.state[c] = 1, u = !1, r[c] === void 0 && (r[c] = !0), s[c] === void 0 && (s[c] = !0), d[p] === void 0 && (d[p] = !0)));
3558
- }), u || (o[l] = !0);
3315
+ const s = {}, r = {}, o = {}, l = {};
3316
+ return e.forEach((u) => {
3317
+ let d = !0;
3318
+ t.forEach((f) => {
3319
+ const c = `${u}|${f}`;
3320
+ !i.reload && this.store.hasResourceBundle(u, f) ? this.state[c] = 2 : this.state[c] < 0 || (this.state[c] === 1 ? r[c] === void 0 && (r[c] = !0) : (this.state[c] = 1, d = !1, r[c] === void 0 && (r[c] = !0), s[c] === void 0 && (s[c] = !0), l[f] === void 0 && (l[f] = !0)));
3321
+ }), d || (o[u] = !0);
3559
3322
  }), (Object.keys(s).length || Object.keys(r).length) && this.queue.push({
3560
3323
  pending: r,
3561
3324
  pendingCount: Object.keys(r).length,
@@ -3566,22 +3329,22 @@ class ts extends Ne {
3566
3329
  toLoad: Object.keys(s),
3567
3330
  pending: Object.keys(r),
3568
3331
  toLoadLanguages: Object.keys(o),
3569
- toLoadNamespaces: Object.keys(d)
3332
+ toLoadNamespaces: Object.keys(l)
3570
3333
  };
3571
3334
  }
3572
3335
  loaded(e, t, i) {
3573
3336
  const a = e.split("|"), s = a[0], r = a[1];
3574
3337
  t && this.emit("failedLoading", s, r, t), i && this.store.addResourceBundle(s, r, i), this.state[e] = t ? -1 : 2;
3575
3338
  const o = {};
3576
- this.queue.forEach((d) => {
3577
- Ma(d.loaded, [s], r), es(d, e), t && d.errors.push(t), d.pendingCount === 0 && !d.done && (Object.keys(d.loaded).forEach((l) => {
3578
- o[l] || (o[l] = {});
3579
- const u = d.loaded[l];
3580
- u.length && u.forEach((p) => {
3581
- o[l][p] === void 0 && (o[l][p] = !0);
3339
+ this.queue.forEach((l) => {
3340
+ Ra(l.loaded, [s], r), Qa(l, e), t && l.errors.push(t), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((u) => {
3341
+ o[u] || (o[u] = {});
3342
+ const d = l.loaded[u];
3343
+ d.length && d.forEach((f) => {
3344
+ o[u][f] === void 0 && (o[u][f] = !0);
3582
3345
  });
3583
- }), d.done = !0, d.errors.length ? d.callback(d.errors) : d.callback());
3584
- }), this.emit("loaded", o), this.queue = this.queue.filter((d) => !d.done);
3346
+ }), l.done = !0, l.errors.length ? l.callback(l.errors) : l.callback());
3347
+ }), this.emit("loaded", o), this.queue = this.queue.filter((l) => !l.done);
3585
3348
  }
3586
3349
  read(e, t, i) {
3587
3350
  let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : this.retryTimeout, r = arguments.length > 5 ? arguments[5] : void 0;
@@ -3599,29 +3362,29 @@ class ts extends Ne {
3599
3362
  return;
3600
3363
  }
3601
3364
  this.readingCalls++;
3602
- const o = (l, u) => {
3365
+ const o = (u, d) => {
3603
3366
  if (this.readingCalls--, this.waitingReads.length > 0) {
3604
- const p = this.waitingReads.shift();
3605
- this.read(p.lng, p.ns, p.fcName, p.tried, p.wait, p.callback);
3367
+ const f = this.waitingReads.shift();
3368
+ this.read(f.lng, f.ns, f.fcName, f.tried, f.wait, f.callback);
3606
3369
  }
3607
- if (l && u && a < this.maxRetries) {
3370
+ if (u && d && a < this.maxRetries) {
3608
3371
  setTimeout(() => {
3609
3372
  this.read.call(this, e, t, i, a + 1, s * 2, r);
3610
3373
  }, s);
3611
3374
  return;
3612
3375
  }
3613
- r(l, u);
3614
- }, d = this.backend[i].bind(this.backend);
3615
- if (d.length === 2) {
3376
+ r(u, d);
3377
+ }, l = this.backend[i].bind(this.backend);
3378
+ if (l.length === 2) {
3616
3379
  try {
3617
- const l = d(e, t);
3618
- l && typeof l.then == "function" ? l.then((u) => o(null, u)).catch(o) : o(null, l);
3619
- } catch (l) {
3620
- o(l);
3380
+ const u = l(e, t);
3381
+ u && typeof u.then == "function" ? u.then((d) => o(null, d)).catch(o) : o(null, u);
3382
+ } catch (u) {
3383
+ o(u);
3621
3384
  }
3622
3385
  return;
3623
3386
  }
3624
- return d(e, t, o);
3387
+ return l(e, t, o);
3625
3388
  }
3626
3389
  prepareLoading(e, t) {
3627
3390
  let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = arguments.length > 3 ? arguments[3] : void 0;
@@ -3659,25 +3422,25 @@ class ts extends Ne {
3659
3422
  }
3660
3423
  if (!(i == null || i === "")) {
3661
3424
  if (this.backend && this.backend.create) {
3662
- const d = {
3425
+ const l = {
3663
3426
  ...r,
3664
3427
  isUpdate: s
3665
- }, l = this.backend.create.bind(this.backend);
3666
- if (l.length < 6)
3428
+ }, u = this.backend.create.bind(this.backend);
3429
+ if (u.length < 6)
3667
3430
  try {
3668
- let u;
3669
- l.length === 5 ? u = l(e, t, i, a, d) : u = l(e, t, i, a), u && typeof u.then == "function" ? u.then((p) => o(null, p)).catch(o) : o(null, u);
3670
- } catch (u) {
3671
- o(u);
3431
+ let d;
3432
+ u.length === 5 ? d = u(e, t, i, a, l) : d = u(e, t, i, a), d && typeof d.then == "function" ? d.then((f) => o(null, f)).catch(o) : o(null, d);
3433
+ } catch (d) {
3434
+ o(d);
3672
3435
  }
3673
3436
  else
3674
- l(e, t, i, a, o, d);
3437
+ u(e, t, i, a, o, l);
3675
3438
  }
3676
3439
  !e || !e[0] || this.store.addResource(e[0], t, i, a);
3677
3440
  }
3678
3441
  }
3679
3442
  }
3680
- function wt() {
3443
+ function ct() {
3681
3444
  return {
3682
3445
  debug: !1,
3683
3446
  initImmediate: !0,
@@ -3736,22 +3499,22 @@ function wt() {
3736
3499
  }
3737
3500
  };
3738
3501
  }
3739
- function Ct(n) {
3502
+ function mt(n) {
3740
3503
  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;
3741
3504
  }
3742
- function le() {
3505
+ function ae() {
3743
3506
  }
3744
- function ns(n) {
3507
+ function Ka(n) {
3745
3508
  Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((t) => {
3746
3509
  typeof n[t] == "function" && (n[t] = n[t].bind(n));
3747
3510
  });
3748
3511
  }
3749
- class ae extends Ne {
3512
+ class ee extends ge {
3750
3513
  constructor() {
3751
3514
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
3752
- if (super(), this.options = Ct(e), this.services = {}, this.logger = j, this.modules = {
3515
+ if (super(), this.options = mt(e), this.services = {}, this.logger = $, this.modules = {
3753
3516
  external: []
3754
- }, ns(this), t && !this.isInitialized && !e.isClone) {
3517
+ }, Ka(this), t && !this.isInitialized && !e.isClone) {
3755
3518
  if (!this.options.initImmediate)
3756
3519
  return this.init(e, t), this;
3757
3520
  setTimeout(() => {
@@ -3763,68 +3526,68 @@ class ae extends Ne {
3763
3526
  var e = this;
3764
3527
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = arguments.length > 1 ? arguments[1] : void 0;
3765
3528
  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]));
3766
- const a = wt();
3529
+ const a = ct();
3767
3530
  this.options = {
3768
3531
  ...a,
3769
3532
  ...this.options,
3770
- ...Ct(t)
3533
+ ...mt(t)
3771
3534
  }, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
3772
3535
  ...a.interpolation,
3773
3536
  ...this.options.interpolation
3774
3537
  }), t.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = t.keySeparator), t.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = t.nsSeparator);
3775
- function s(u) {
3776
- return u ? typeof u == "function" ? new u() : u : null;
3538
+ function s(d) {
3539
+ return d ? typeof d == "function" ? new d() : d : null;
3777
3540
  }
3778
3541
  if (!this.options.isClone) {
3779
- this.modules.logger ? j.init(s(this.modules.logger), this.options) : j.init(null, this.options);
3780
- let u;
3781
- this.modules.formatter ? u = this.modules.formatter : typeof Intl != "undefined" && (u = Ya);
3782
- const p = new Nt(this.options);
3783
- this.store = new St(this.options.resources, this.options);
3542
+ this.modules.logger ? $.init(s(this.modules.logger), this.options) : $.init(null, this.options);
3543
+ let d;
3544
+ this.modules.formatter ? d = this.modules.formatter : typeof Intl != "undefined" && (d = Ba);
3545
+ const f = new lt(this.options);
3546
+ this.store = new rt(this.options.resources, this.options);
3784
3547
  const c = this.services;
3785
- c.logger = j, c.resourceStore = this.store, c.languageUtils = p, c.pluralResolver = new Ha(p, {
3548
+ c.logger = $, c.resourceStore = this.store, c.languageUtils = f, c.pluralResolver = new $a(f, {
3786
3549
  prepend: this.options.pluralSeparator,
3787
3550
  compatibilityJSON: this.options.compatibilityJSON,
3788
3551
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
3789
- }), u && (!this.options.interpolation.format || this.options.interpolation.format === a.interpolation.format) && (c.formatter = s(u), c.formatter.init(c, this.options), this.options.interpolation.format = c.formatter.format.bind(c.formatter)), c.interpolator = new Za(this.options), c.utils = {
3552
+ }), 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 = {
3790
3553
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
3791
- }, c.backendConnector = new ts(s(this.modules.backend), c.resourceStore, c, this.options), c.backendConnector.on("*", function(v) {
3792
- for (var S = arguments.length, k = new Array(S > 1 ? S - 1 : 0), y = 1; y < S; y++)
3793
- k[y - 1] = arguments[y];
3794
- e.emit(v, ...k);
3795
- }), 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 ve(this.services, this.options), this.translator.on("*", function(v) {
3796
- for (var S = arguments.length, k = new Array(S > 1 ? S - 1 : 0), y = 1; y < S; y++)
3797
- k[y - 1] = arguments[y];
3798
- e.emit(v, ...k);
3799
- }), this.modules.external.forEach((v) => {
3800
- v.init && v.init(this);
3554
+ }, c.backendConnector = new Ga(s(this.modules.backend), c.resourceStore, c, this.options), c.backendConnector.on("*", function(S) {
3555
+ for (var y = arguments.length, k = new Array(y > 1 ? y - 1 : 0), N = 1; N < y; N++)
3556
+ k[N - 1] = arguments[N];
3557
+ e.emit(S, ...k);
3558
+ }), 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) {
3559
+ for (var y = arguments.length, k = new Array(y > 1 ? y - 1 : 0), N = 1; N < y; N++)
3560
+ k[N - 1] = arguments[N];
3561
+ e.emit(S, ...k);
3562
+ }), this.modules.external.forEach((S) => {
3563
+ S.init && S.init(this);
3801
3564
  });
3802
3565
  }
3803
- if (this.format = this.options.interpolation.format, i || (i = le), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
3804
- const u = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
3805
- u.length > 0 && u[0] !== "dev" && (this.options.lng = u[0]);
3566
+ if (this.format = this.options.interpolation.format, i || (i = ae), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
3567
+ const d = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
3568
+ d.length > 0 && d[0] !== "dev" && (this.options.lng = d[0]);
3806
3569
  }
3807
- !this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined"), ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"].forEach((u) => {
3808
- this[u] = function() {
3809
- return e.store[u](...arguments);
3570
+ !this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined"), ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"].forEach((d) => {
3571
+ this[d] = function() {
3572
+ return e.store[d](...arguments);
3810
3573
  };
3811
- }), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((u) => {
3812
- this[u] = function() {
3813
- return e.store[u](...arguments), e;
3574
+ }), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((d) => {
3575
+ this[d] = function() {
3576
+ return e.store[d](...arguments), e;
3814
3577
  };
3815
3578
  });
3816
- const d = X(), l = () => {
3817
- const u = (p, c) => {
3818
- 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), d.resolve(c), i(p, c);
3579
+ const l = H(), u = () => {
3580
+ const d = (f, c) => {
3581
+ 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);
3819
3582
  };
3820
3583
  if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized)
3821
- return u(null, this.t.bind(this));
3822
- this.changeLanguage(this.options.lng, u);
3584
+ return d(null, this.t.bind(this));
3585
+ this.changeLanguage(this.options.lng, d);
3823
3586
  };
3824
- return this.options.resources || !this.options.initImmediate ? l() : setTimeout(l, 0), d;
3587
+ return this.options.resources || !this.options.initImmediate ? u() : setTimeout(u, 0), l;
3825
3588
  }
3826
3589
  loadResources(e) {
3827
- let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : le;
3590
+ let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ae;
3828
3591
  const a = typeof e == "string" ? e : this.language;
3829
3592
  if (typeof e == "function" && (i = e), !this.options.resources || this.options.partialBundledLanguages) {
3830
3593
  if (a && a.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0))
@@ -3832,19 +3595,19 @@ class ae extends Ne {
3832
3595
  const s = [], r = (o) => {
3833
3596
  if (!o || o === "cimode")
3834
3597
  return;
3835
- this.services.languageUtils.toResolveHierarchy(o).forEach((l) => {
3836
- l !== "cimode" && s.indexOf(l) < 0 && s.push(l);
3598
+ this.services.languageUtils.toResolveHierarchy(o).forEach((u) => {
3599
+ u !== "cimode" && s.indexOf(u) < 0 && s.push(u);
3837
3600
  });
3838
3601
  };
3839
- a ? r(a) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((d) => r(d)), this.options.preload && this.options.preload.forEach((o) => r(o)), this.services.backendConnector.load(s, this.options.ns, (o) => {
3602
+ a ? r(a) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((l) => r(l)), this.options.preload && this.options.preload.forEach((o) => r(o)), this.services.backendConnector.load(s, this.options.ns, (o) => {
3840
3603
  !o && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), i(o);
3841
3604
  });
3842
3605
  } else
3843
3606
  i(null);
3844
3607
  }
3845
3608
  reloadResources(e, t, i) {
3846
- const a = X();
3847
- return e || (e = this.languages), t || (t = this.options.ns), i || (i = le), this.services.backendConnector.reload(e, t, (s) => {
3609
+ const a = H();
3610
+ return e || (e = this.languages), t || (t = this.options.ns), i || (i = ae), this.services.backendConnector.reload(e, t, (s) => {
3848
3611
  a.resolve(), i(s);
3849
3612
  }), a;
3850
3613
  }
@@ -3853,7 +3616,7 @@ class ae extends Ne {
3853
3616
  throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
3854
3617
  if (!e.type)
3855
3618
  throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
3856
- return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && Yt.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
3619
+ return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && Ut.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
3857
3620
  }
3858
3621
  setResolvedLanguage(e) {
3859
3622
  if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1))
@@ -3868,21 +3631,21 @@ class ae extends Ne {
3868
3631
  changeLanguage(e, t) {
3869
3632
  var i = this;
3870
3633
  this.isLanguageChangingTo = e;
3871
- const a = X();
3634
+ const a = H();
3872
3635
  this.emit("languageChanging", e);
3873
- const s = (d) => {
3874
- this.language = d, this.languages = this.services.languageUtils.toResolveHierarchy(d), this.resolvedLanguage = void 0, this.setResolvedLanguage(d);
3875
- }, r = (d, l) => {
3876
- l ? (s(l), this.translator.changeLanguage(l), this.isLanguageChangingTo = void 0, this.emit("languageChanged", l), this.logger.log("languageChanged", l)) : this.isLanguageChangingTo = void 0, a.resolve(function() {
3636
+ const s = (l) => {
3637
+ this.language = l, this.languages = this.services.languageUtils.toResolveHierarchy(l), this.resolvedLanguage = void 0, this.setResolvedLanguage(l);
3638
+ }, r = (l, u) => {
3639
+ u ? (s(u), this.translator.changeLanguage(u), this.isLanguageChangingTo = void 0, this.emit("languageChanged", u), this.logger.log("languageChanged", u)) : this.isLanguageChangingTo = void 0, a.resolve(function() {
3877
3640
  return i.t(...arguments);
3878
- }), t && t(d, function() {
3641
+ }), t && t(l, function() {
3879
3642
  return i.t(...arguments);
3880
3643
  });
3881
- }, o = (d) => {
3882
- !e && !d && this.services.languageDetector && (d = []);
3883
- const l = typeof d == "string" ? d : this.services.languageUtils.getBestMatchFromCodes(d);
3884
- l && (this.language || s(l), this.translator.language || this.translator.changeLanguage(l), this.services.languageDetector && this.services.languageDetector.cacheUserLanguage && this.services.languageDetector.cacheUserLanguage(l)), this.loadResources(l, (u) => {
3885
- r(u, l);
3644
+ }, o = (l) => {
3645
+ !e && !l && this.services.languageDetector && (l = []);
3646
+ const u = typeof l == "string" ? l : this.services.languageUtils.getBestMatchFromCodes(l);
3647
+ u && (this.language || s(u), this.translator.language || this.translator.changeLanguage(u), this.services.languageDetector && this.services.languageDetector.cacheUserLanguage && this.services.languageDetector.cacheUserLanguage(u)), this.loadResources(u, (d) => {
3648
+ r(d, u);
3886
3649
  });
3887
3650
  };
3888
3651
  return !e && this.services.languageDetector && !this.services.languageDetector.async ? o(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(o) : this.services.languageDetector.detect(o) : o(e), a;
@@ -3890,19 +3653,19 @@ class ae extends Ne {
3890
3653
  getFixedT(e, t, i) {
3891
3654
  var a = this;
3892
3655
  const s = function(r, o) {
3893
- let d;
3656
+ let l;
3894
3657
  if (typeof o != "object") {
3895
- for (var l = arguments.length, u = new Array(l > 2 ? l - 2 : 0), p = 2; p < l; p++)
3896
- u[p - 2] = arguments[p];
3897
- d = a.options.overloadTranslationOptionHandler([r, o].concat(u));
3658
+ for (var u = arguments.length, d = new Array(u > 2 ? u - 2 : 0), f = 2; f < u; f++)
3659
+ d[f - 2] = arguments[f];
3660
+ l = a.options.overloadTranslationOptionHandler([r, o].concat(d));
3898
3661
  } else
3899
- d = {
3662
+ l = {
3900
3663
  ...o
3901
3664
  };
3902
- d.lng = d.lng || s.lng, d.lngs = d.lngs || s.lngs, d.ns = d.ns || s.ns, d.keyPrefix = d.keyPrefix || i || s.keyPrefix;
3665
+ l.lng = l.lng || s.lng, l.lngs = l.lngs || s.lngs, l.ns = l.ns || s.ns, l.keyPrefix = l.keyPrefix || i || s.keyPrefix;
3903
3666
  const c = a.options.keySeparator || ".";
3904
- let v;
3905
- return d.keyPrefix && Array.isArray(r) ? v = r.map((S) => `${d.keyPrefix}${c}${S}`) : v = d.keyPrefix ? `${d.keyPrefix}${c}${r}` : r, a.t(v, d);
3667
+ let S;
3668
+ return l.keyPrefix && Array.isArray(r) ? S = r.map((y) => `${l.keyPrefix}${c}${y}`) : S = l.keyPrefix ? `${l.keyPrefix}${c}${r}` : r, a.t(S, l);
3906
3669
  };
3907
3670
  return typeof e == "string" ? s.lng = e : s.lngs = e, s.ns = t, s.keyPrefix = i, s;
3908
3671
  }
@@ -3924,9 +3687,9 @@ class ae extends Ne {
3924
3687
  const i = t.lng || this.resolvedLanguage || this.languages[0], a = this.options ? this.options.fallbackLng : !1, s = this.languages[this.languages.length - 1];
3925
3688
  if (i.toLowerCase() === "cimode")
3926
3689
  return !0;
3927
- const r = (o, d) => {
3928
- const l = this.services.backendConnector.state[`${o}|${d}`];
3929
- return l === -1 || l === 2;
3690
+ const r = (o, l) => {
3691
+ const u = this.services.backendConnector.state[`${o}|${l}`];
3692
+ return u === -1 || u === 2;
3930
3693
  };
3931
3694
  if (t.precheck) {
3932
3695
  const o = t.precheck(this, r);
@@ -3936,7 +3699,7 @@ class ae extends Ne {
3936
3699
  return !!(this.hasResourceBundle(i, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || r(i, e) && (!a || r(s, e)));
3937
3700
  }
3938
3701
  loadNamespaces(e, t) {
3939
- const i = X();
3702
+ const i = H();
3940
3703
  return this.options.ns ? (typeof e == "string" && (e = [e]), e.forEach((a) => {
3941
3704
  this.options.ns.indexOf(a) < 0 && this.options.ns.push(a);
3942
3705
  }), this.loadResources((a) => {
@@ -3944,7 +3707,7 @@ class ae extends Ne {
3944
3707
  }), i) : (t && t(), Promise.resolve());
3945
3708
  }
3946
3709
  loadLanguages(e, t) {
3947
- const i = X();
3710
+ const i = H();
3948
3711
  typeof e == "string" && (e = [e]);
3949
3712
  const a = this.options.preload || [], s = e.filter((r) => a.indexOf(r) < 0);
3950
3713
  return s.length ? (this.options.preload = a.concat(s), this.loadResources((r) => {
@@ -3954,32 +3717,32 @@ class ae extends Ne {
3954
3717
  dir(e) {
3955
3718
  if (e || (e = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !e)
3956
3719
  return "rtl";
3957
- 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 Nt(wt());
3720
+ 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 lt(ct());
3958
3721
  return t.indexOf(i.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
3959
3722
  }
3960
3723
  static createInstance() {
3961
3724
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
3962
- return new ae(e, t);
3725
+ return new ee(e, t);
3963
3726
  }
3964
3727
  cloneInstance() {
3965
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : le;
3728
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ae;
3966
3729
  const i = e.forkResourceStore;
3967
3730
  i && delete e.forkResourceStore;
3968
3731
  const a = {
3969
3732
  ...this.options,
3970
3733
  ...e,
3971
3734
  isClone: !0
3972
- }, s = new ae(a);
3735
+ }, s = new ee(a);
3973
3736
  return (e.debug !== void 0 || e.prefix !== void 0) && (s.logger = s.logger.clone(e)), ["store", "services", "language"].forEach((o) => {
3974
3737
  s[o] = this[o];
3975
3738
  }), s.services = {
3976
3739
  ...this.services
3977
3740
  }, s.services.utils = {
3978
3741
  hasLoadedNamespace: s.hasLoadedNamespace.bind(s)
3979
- }, i && (s.store = new St(this.store.data, a), s.services.resourceStore = s.store), s.translator = new ve(s.services, a), s.translator.on("*", function(o) {
3980
- for (var d = arguments.length, l = new Array(d > 1 ? d - 1 : 0), u = 1; u < d; u++)
3981
- l[u - 1] = arguments[u];
3982
- s.emit(o, ...l);
3742
+ }, i && (s.store = new rt(this.store.data, a), s.services.resourceStore = s.store), s.translator = new me(s.services, a), s.translator.on("*", function(o) {
3743
+ for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0), d = 1; d < l; d++)
3744
+ u[d - 1] = arguments[d];
3745
+ s.emit(o, ...u);
3983
3746
  }), s.init(a, t), s.translator.options = a, s.translator.backendConnector.services.utils = {
3984
3747
  hasLoadedNamespace: s.hasLoadedNamespace.bind(s)
3985
3748
  }, s;
@@ -3994,8 +3757,8 @@ class ae extends Ne {
3994
3757
  };
3995
3758
  }
3996
3759
  }
3997
- const U = ae.createInstance();
3998
- U.createInstance = ae.createInstance;
3760
+ const U = ee.createInstance();
3761
+ U.createInstance = ee.createInstance;
3999
3762
  U.createInstance;
4000
3763
  U.dir;
4001
3764
  U.init;
@@ -4010,7 +3773,7 @@ U.setDefaultNamespace;
4010
3773
  U.hasLoadedNamespace;
4011
3774
  U.loadNamespaces;
4012
3775
  U.loadLanguages;
4013
- const is = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, as = {
3776
+ const Wa = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Ja = {
4014
3777
  "&amp;": "&",
4015
3778
  "&#38;": "&",
4016
3779
  "&lt;": "<",
@@ -4031,8 +3794,8 @@ const is = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|
4031
3794
  "&#8230;": "…",
4032
3795
  "&#x2F;": "/",
4033
3796
  "&#47;": "/"
4034
- }, ss = (n) => as[n], rs = (n) => n.replace(is, ss);
4035
- let Et = {
3797
+ }, qa = (n) => Ja[n], Ha = (n) => n.replace(Wa, qa);
3798
+ let ft = {
4036
3799
  bindI18n: "languageChanged",
4037
3800
  bindI18nStore: "",
4038
3801
  transEmptyNodeValue: "",
@@ -4040,73 +3803,73 @@ let Et = {
4040
3803
  transWrapTextNodes: "",
4041
3804
  transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
4042
3805
  useSuspense: !0,
4043
- unescape: rs
3806
+ unescape: Ha
4044
3807
  };
4045
- function os() {
3808
+ function Za() {
4046
3809
  let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
4047
- Et = {
4048
- ...Et,
3810
+ ft = {
3811
+ ...ft,
4049
3812
  ...n
4050
3813
  };
4051
3814
  }
4052
- const ls = {
3815
+ const Xa = {
4053
3816
  type: "3rdParty",
4054
3817
  init(n) {
4055
- os(n.options.react);
3818
+ Za(n.options.react);
4056
3819
  }
4057
3820
  };
4058
- Va(U, ls);
4059
- const er = (n) => va(U, n);
4060
- let Ge = /* @__PURE__ */ new Map();
4061
- const Ie = Ot(Ge), tr = ({ children: n, stores: e }) => {
4062
- const t = Pe(Ie), i = Tt(() => {
3821
+ Ea(U, Xa);
3822
+ const Qs = (n) => la(U, n);
3823
+ let Le = /* @__PURE__ */ new Map();
3824
+ const we = pt(Le), Gs = ({ children: n, stores: e }) => {
3825
+ const t = Ce(we), i = Wt(() => {
4063
3826
  const a = /* @__PURE__ */ new Map();
4064
- return e.forEach((s) => a.set(s.class, s.value)), Ge = new Map([...t, ...a]);
3827
+ return e.forEach((s) => a.set(s.class, s.value)), Le = new Map([...t, ...a]);
4065
3828
  }, []);
4066
- return /* @__PURE__ */ on(Ie.Provider, { value: i, children: n });
3829
+ return /* @__PURE__ */ Jt(we.Provider, { value: i, children: n });
4067
3830
  };
4068
- function nr(n) {
4069
- return Pe(Ie).get(n);
3831
+ function Ks(n) {
3832
+ return Ce(we).get(n);
4070
3833
  }
4071
- function ir(n) {
4072
- return Ge.get(n);
3834
+ function Ws(n) {
3835
+ return Le.get(n);
4073
3836
  }
4074
- var en = /* @__PURE__ */ ((n) => (n.Created = "CREATED", n.Finalized = "FINALIZED", n.Live = "LIVE", n.Starting = "STARTING", n))(en || {}), tn = /* @__PURE__ */ ((n) => (n.Add = "add", n.Remove = "remove", n))(tn || {}), nn = /* @__PURE__ */ ((n) => (n.Active = "active", n.Inactive = "inactive", n))(nn || {});
4075
- const ds = { 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" } }] } }] } }] } }] }, us = { 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" } }] } }] } }] } }] }, cs = { 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" } }] } }] } }] } }] }, ms = { 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" } }] } }] } }] } }] }, fs = { 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" } }] } }] } }] } }] }, ps = { 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" } }] } }] } }] } }] }, hs = { 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" } }] } }] } }] } }] }, gs = { 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" } }] } }] } }] } }] }, ks = { 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" } }] } }] } }] } }] }, vs = { 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" } }] } }] } }] } }] }, Ss = { 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" } }] } }] } }] } }] }, ys = { 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" } }] } }] } }] } }] }, Ns = { 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" } }] } }] } }] } }] }, bs = { 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" } }] } }] } }] } }] }, ws = { 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" } }] } }] } }] } }] }, Cs = { 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" } }] } }] } }] } }] }, Es = { 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" } }] } }] } }] } }] }, Os = { 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" } }] } }] } }] } }] }, Rs = { 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" } }] } }] } }] } }] }, xs = { 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" } }] } }] } }] } }] }, Ts = { 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" } }] } }] } }] } }] }, Ds = { 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" } }] } }] } }] } }] }, Ls = { 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" } }] } }] } }] } }] }, Is = { 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" } }] } }] } }] } }] }, As = { 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" } }] } }] } }] } }] } }] }, Ps = { 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" } }] } }] } }] } }] }, Vs = { 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" } }] } }] } }] } }] }, ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3837
+ var Mt = /* @__PURE__ */ ((n) => (n.Created = "CREATED", n.Finalized = "FINALIZED", n.Live = "LIVE", n.Starting = "STARTING", n))(Mt || {}), $t = /* @__PURE__ */ ((n) => (n.Add = "add", n.Remove = "remove", n))($t || {}), jt = /* @__PURE__ */ ((n) => (n.Active = "active", n.Inactive = "inactive", n))(jt || {});
3838
+ 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({
4076
3839
  __proto__: null,
4077
- AddCollectionDocument: ds,
4078
- AppendProductsToSnackVideoDocument: Rs,
4079
- BlockUserDocument: vs,
4080
- ChangeAccountUsernameDocument: Ss,
4081
- CreateSnackVideoBatchDocument: xs,
4082
- DeleteAllCustomizationDocument: ws,
4083
- DeleteChatMessageDocument: ys,
4084
- DeleteCollectionDocument: us,
4085
- DeleteRelationshipWithSnackVideoDocument: Ts,
4086
- DeleteSnackVideoDocument: Ds,
4087
- EventStatus: en,
4088
- FindByProductSnackVideoDocument: Vs,
4089
- FindCollectionDocument: cs,
4090
- FindManySnackVideosDocument: Ls,
4091
- FindMinimalEventDocument: gs,
4092
- GetAllChatMessageDocument: Ns,
4093
- GetAllCollectionsDocument: ms,
4094
- GetAllCustomizationDocument: Cs,
4095
- GetAllSnackVideosDocument: Is,
4096
- GetChatRoomTokenDocument: bs,
4097
- GetSnackVideoRelationshipsDocument: As,
4098
- GetTimeLineDocument: Os,
4099
- ManageCollectionProductDocument: fs,
4100
- Methods: tn,
4101
- PinChatMessageDocument: Fs,
4102
- SearchCollectionsDocument: ps,
4103
- SearchMinimalEventsDocument: ks,
4104
- SearchSnackVideosDocument: Ps,
4105
- Status: nn,
4106
- UpdateCollectionDocument: hs,
4107
- UpdateCustomizationDocument: Es
3840
+ AddCollectionDocument: Ya,
3841
+ AppendProductsToSnackVideoDocument: vs,
3842
+ BlockUserDocument: ls,
3843
+ ChangeAccountUsernameDocument: ds,
3844
+ CreateSnackVideoBatchDocument: Ss,
3845
+ DeleteAllCustomizationDocument: ps,
3846
+ DeleteChatMessageDocument: us,
3847
+ DeleteCollectionDocument: es,
3848
+ DeleteRelationshipWithSnackVideoDocument: ys,
3849
+ DeleteSnackVideoDocument: Ns,
3850
+ EventStatus: Mt,
3851
+ FindByProductSnackVideoDocument: Es,
3852
+ FindCollectionDocument: ts,
3853
+ FindManySnackVideosDocument: bs,
3854
+ FindMinimalEventDocument: rs,
3855
+ GetAllChatMessageDocument: cs,
3856
+ GetAllCollectionsDocument: ns,
3857
+ GetAllCustomizationDocument: hs,
3858
+ GetAllSnackVideosDocument: Fs,
3859
+ GetChatRoomTokenDocument: ms,
3860
+ GetSnackVideoRelationshipsDocument: ws,
3861
+ GetTimeLineDocument: ks,
3862
+ ManageCollectionProductDocument: is,
3863
+ Methods: $t,
3864
+ PinChatMessageDocument: fs,
3865
+ SearchCollectionsDocument: as,
3866
+ SearchMinimalEventsDocument: os,
3867
+ SearchSnackVideosDocument: Cs,
3868
+ Status: jt,
3869
+ UpdateCollectionDocument: ss,
3870
+ UpdateCustomizationDocument: gs
4108
3871
  }, Symbol.toStringTag, { value: "Module" }));
4109
- function sr(n) {
3872
+ function qs(n) {
4110
3873
  return {
4111
3874
  class: n,
4112
3875
  _value: null,
@@ -4116,58 +3879,61 @@ function sr(n) {
4116
3879
  };
4117
3880
  }
4118
3881
  export {
4119
- Gt as AccountContractStatusTypes,
4120
- Ni as AccountContractTypes,
4121
- Gs as AccountInvalidError,
4122
- Fi as AccountPlanDescriptionTypes,
4123
- Ei as AccountRestRepository,
4124
- Oi as AccountService,
4125
- bi as AccountSubscriptionTypes,
4126
- Kt as AccountTypes,
4127
- Si as AggregateRoot,
4128
- ar as ApiGraphqlTypes,
4129
- qs as BaseMobxStore,
4130
- Xn as BroadcastChannelEventBus,
4131
- ye as DomainError,
4132
- Xs as EventBusWildcards,
4133
- Ys as EventNames,
4134
- wi as GlobalPageSectionTypes,
4135
- vi as InvalidNizzaGlobalObjectError,
4136
- fa as LanguageTypes,
4137
- ni as Logger,
4138
- ze as NizzaAccount,
4139
- ma as NizzaEventStatus,
4140
- ha as NizzaProductRequestOriginTypes,
4141
- pa as NizzaVariationTypes,
4142
- gi as ResourceNotFoundError,
4143
- tr as StoreProvider,
4144
- ki as UnexpectedError,
4145
- Hs as ValueObject,
4146
- Ve as accountAtom,
4147
- Wt as accountService,
4148
- js as apiCall,
4149
- ga as buildLanguageTranslations,
4150
- ka as buildTranslations,
4151
- ee as coreLogger,
4152
- yi as createAggregateRoot,
4153
- sr as createStore,
4154
- It as customFetch,
4155
- $s as downloadFile,
4156
- Bs as fileOrigin,
4157
- ca as getAccount,
4158
- Js as getClientTimeZone,
4159
- ir as getStore,
4160
- ua as globalAtomStore,
4161
- Va as i18Init,
4162
- On as jsDownload,
4163
- Ks as logger,
4164
- je as nizza,
4165
- er as registerTranslations,
4166
- va as registerTranslationsOf,
4167
- zs as searchParams,
4168
- ei as shortId,
4169
- Zs as useAccount,
4170
- nr as useStore,
4171
- Ws as validateRequiredProps
3882
+ Dt as AccountContractStatusTypes,
3883
+ ci as AccountContractTypes,
3884
+ Vs as AccountInvalidError,
3885
+ fi as AccountPlanDescriptionTypes,
3886
+ gi as AccountRestRepository,
3887
+ ki as AccountService,
3888
+ mi as AccountSubscriptionTypes,
3889
+ Tt as AccountTypes,
3890
+ di as AggregateRoot,
3891
+ Js as ApiGraphqlTypes,
3892
+ Ms as BaseMobxStore,
3893
+ jn as BroadcastChannelEventBus,
3894
+ he as DomainError,
3895
+ zs as EventBusWildcards,
3896
+ Bs as EventNames,
3897
+ pi as GlobalPageSectionTypes,
3898
+ li as InvalidNizzaGlobalObjectError,
3899
+ ia as LanguageTypes,
3900
+ Gn as Logger,
3901
+ Re as NizzaAccount,
3902
+ na as NizzaEventStatus,
3903
+ sa as NizzaProductRequestOriginTypes,
3904
+ aa as NizzaVariationTypes,
3905
+ ri as ResourceNotFoundError,
3906
+ Gs as StoreProvider,
3907
+ oi as UnexpectedError,
3908
+ $s as ValueObject,
3909
+ Ee as accountAtom,
3910
+ It as accountService,
3911
+ Ts as apiCall,
3912
+ ra as buildLanguageTranslations,
3913
+ oa as buildTranslations,
3914
+ Kn as configure,
3915
+ Z as coreLogger,
3916
+ ui as createAggregateRoot,
3917
+ qs as createStore,
3918
+ vt as customFetch,
3919
+ Ds as downloadFile,
3920
+ Ls as fileOrigin,
3921
+ ta as getAccount,
3922
+ Us as getClientTimeZone,
3923
+ Ws as getStore,
3924
+ ea as globalAtomStore,
3925
+ Ea as i18Init,
3926
+ hn as jsDownload,
3927
+ Ps as logger,
3928
+ Rt as nizza,
3929
+ Qs as registerTranslations,
3930
+ la as registerTranslationsOf,
3931
+ Is as searchParams,
3932
+ Wn as setProductDataSource,
3933
+ Bn as shortId,
3934
+ js as useAccount,
3935
+ qn as useNizza,
3936
+ Ks as useStore,
3937
+ _s as validateRequiredProps
4172
3938
  };
4173
3939
  //# sourceMappingURL=index.mjs.map