@magiclabs.ai/magicbook-client 0.6.1 → 0.6.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.
@@ -1,64 +1,64 @@
1
1
  var bs = Object.defineProperty;
2
2
  var ws = (t, e, s) => e in t ? bs(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
3
- var b = (t, e, s) => (ws(t, typeof e != "symbol" ? e + "" : e, s), s);
3
+ var _ = (t, e, s) => (ws(t, typeof e != "symbol" ? e + "" : e, s), s);
4
4
  function xs(t, e, s) {
5
5
  const n = e.pop() || "", r = e.reduce(
6
- (i, a) => i[a] = i[a] || {},
6
+ (a, i) => a[i] = a[i] || {},
7
7
  t
8
8
  );
9
9
  r[n] = s;
10
10
  }
11
- function Rt(t, e) {
11
+ function jt(t, e) {
12
12
  return Object.keys(e).map((s) => {
13
- typeof t[s] == "object" && typeof e[s] == "object" ? Rt(t[s], e[s]) : t[s] = e[s];
13
+ typeof t[s] == "object" && typeof e[s] == "object" ? jt(t[s], e[s]) : t[s] = e[s];
14
14
  }), t;
15
15
  }
16
16
  function ks(t) {
17
17
  return t.replace(/([a-z])([A-Z])/g, "$1_$2").toLowerCase();
18
18
  }
19
- function It(t) {
19
+ function Zt(t) {
20
20
  return Object.keys(t).map((e) => {
21
21
  const s = ks(e);
22
- s.includes("_") && (t[s] = t[e], delete t[e]), typeof t[s] == "object" && (t[s] = It(t[s]));
22
+ s.includes("_") && (t[s] = t[e], delete t[e]), typeof t[s] == "object" && (t[s] = Zt(t[s]));
23
23
  }), t;
24
24
  }
25
25
  function Ss(t) {
26
26
  return t.replace(/([-_][a-z])/g, (e) => e.toUpperCase().replace("-", "").replace("_", ""));
27
27
  }
28
- function jt(t) {
28
+ function Lt(t) {
29
29
  return Object.keys(t).map((e) => {
30
30
  const s = Ss(e);
31
- s !== e && (t[s] = t[e], delete t[e]), typeof t[s] == "object" && (t[s] = jt(t[s]));
31
+ s !== e && (t[s] = t[e], delete t[e]), typeof t[s] == "object" && (t[s] = Lt(t[s]));
32
32
  }), t;
33
33
  }
34
- function Zt(t, e) {
34
+ function Dt(t, e) {
35
35
  return function() {
36
36
  return t.apply(e, arguments);
37
37
  };
38
38
  }
39
- const { toString: Ts } = Object.prototype, { getPrototypeOf: lt } = Object, $e = ((t) => (e) => {
39
+ const { toString: Ts } = Object.prototype, { getPrototypeOf: ct } = Object, ze = ((t) => (e) => {
40
40
  const s = Ts.call(e);
41
41
  return t[s] || (t[s] = s.slice(8, -1).toLowerCase());
42
- })(/* @__PURE__ */ Object.create(null)), $ = (t) => (t = t.toLowerCase(), (e) => $e(e) === t), Ve = (t) => (e) => typeof e === t, { isArray: le } = Array, ue = Ve("undefined");
42
+ })(/* @__PURE__ */ Object.create(null)), z = (t) => (t = t.toLowerCase(), (e) => ze(e) === t), Ve = (t) => (e) => typeof e === t, { isArray: le } = Array, de = Ve("undefined");
43
43
  function Es(t) {
44
- return t !== null && !ue(t) && t.constructor !== null && !ue(t.constructor) && j(t.constructor.isBuffer) && t.constructor.isBuffer(t);
44
+ return t !== null && !de(t) && t.constructor !== null && !de(t.constructor) && j(t.constructor.isBuffer) && t.constructor.isBuffer(t);
45
45
  }
46
- const Lt = $("ArrayBuffer");
46
+ const Pt = z("ArrayBuffer");
47
47
  function Os(t) {
48
48
  let e;
49
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Lt(t.buffer), e;
49
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Pt(t.buffer), e;
50
50
  }
51
- const Ns = Ve("string"), j = Ve("function"), Dt = Ve("number"), Fe = (t) => t !== null && typeof t == "object", Cs = (t) => t === !0 || t === !1, Oe = (t) => {
52
- if ($e(t) !== "object")
51
+ const Ns = Ve("string"), j = Ve("function"), Bt = Ve("number"), Fe = (t) => t !== null && typeof t == "object", Cs = (t) => t === !0 || t === !1, Oe = (t) => {
52
+ if (ze(t) !== "object")
53
53
  return !1;
54
- const e = lt(t);
54
+ const e = ct(t);
55
55
  return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
56
- }, As = $("Date"), Rs = $("File"), Is = $("Blob"), js = $("FileList"), Zs = (t) => Fe(t) && j(t.pipe), Ls = (t) => {
56
+ }, As = z("Date"), Rs = z("File"), Is = z("Blob"), js = z("FileList"), Zs = (t) => Fe(t) && j(t.pipe), Ls = (t) => {
57
57
  let e;
58
- return t && (typeof FormData == "function" && t instanceof FormData || j(t.append) && ((e = $e(t)) === "formdata" || // detect form-data instance
58
+ return t && (typeof FormData == "function" && t instanceof FormData || j(t.append) && ((e = ze(t)) === "formdata" || // detect form-data instance
59
59
  e === "object" && j(t.toString) && t.toString() === "[object FormData]"));
60
- }, Ds = $("URLSearchParams"), Ps = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
61
- function xe(t, e, { allOwnKeys: s = !1 } = {}) {
60
+ }, Ds = z("URLSearchParams"), Ps = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
61
+ function ke(t, e, { allOwnKeys: s = !1 } = {}) {
62
62
  if (t === null || typeof t > "u")
63
63
  return;
64
64
  let n, r;
@@ -66,13 +66,13 @@ function xe(t, e, { allOwnKeys: s = !1 } = {}) {
66
66
  for (n = 0, r = t.length; n < r; n++)
67
67
  e.call(null, t[n], n, t);
68
68
  else {
69
- const i = s ? Object.getOwnPropertyNames(t) : Object.keys(t), a = i.length;
69
+ const a = s ? Object.getOwnPropertyNames(t) : Object.keys(t), i = a.length;
70
70
  let o;
71
- for (n = 0; n < a; n++)
72
- o = i[n], e.call(null, t[o], o, t);
71
+ for (n = 0; n < i; n++)
72
+ o = a[n], e.call(null, t[o], o, t);
73
73
  }
74
74
  }
75
- function Pt(t, e) {
75
+ function Mt(t, e) {
76
76
  e = e.toLowerCase();
77
77
  const s = Object.keys(t);
78
78
  let n = s.length, r;
@@ -81,34 +81,34 @@ function Pt(t, e) {
81
81
  return r;
82
82
  return null;
83
83
  }
84
- const Bt = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), Mt = (t) => !ue(t) && t !== Bt;
85
- function et() {
86
- const { caseless: t } = Mt(this) && this || {}, e = {}, s = (n, r) => {
87
- const i = t && Pt(e, r) || r;
88
- Oe(e[i]) && Oe(n) ? e[i] = et(e[i], n) : Oe(n) ? e[i] = et({}, n) : le(n) ? e[i] = n.slice() : e[i] = n;
84
+ const Ut = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), $t = (t) => !de(t) && t !== Ut;
85
+ function tt() {
86
+ const { caseless: t } = $t(this) && this || {}, e = {}, s = (n, r) => {
87
+ const a = t && Mt(e, r) || r;
88
+ Oe(e[a]) && Oe(n) ? e[a] = tt(e[a], n) : Oe(n) ? e[a] = tt({}, n) : le(n) ? e[a] = n.slice() : e[a] = n;
89
89
  };
90
90
  for (let n = 0, r = arguments.length; n < r; n++)
91
- arguments[n] && xe(arguments[n], s);
91
+ arguments[n] && ke(arguments[n], s);
92
92
  return e;
93
93
  }
94
- const Bs = (t, e, s, { allOwnKeys: n } = {}) => (xe(e, (r, i) => {
95
- s && j(r) ? t[i] = Zt(r, s) : t[i] = r;
94
+ const Bs = (t, e, s, { allOwnKeys: n } = {}) => (ke(e, (r, a) => {
95
+ s && j(r) ? t[a] = Dt(r, s) : t[a] = r;
96
96
  }, { allOwnKeys: n }), t), Ms = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Us = (t, e, s, n) => {
97
97
  t.prototype = Object.create(e.prototype, n), t.prototype.constructor = t, Object.defineProperty(t, "super", {
98
98
  value: e.prototype
99
99
  }), s && Object.assign(t.prototype, s);
100
- }, zs = (t, e, s, n) => {
101
- let r, i, a;
100
+ }, $s = (t, e, s, n) => {
101
+ let r, a, i;
102
102
  const o = {};
103
103
  if (e = e || {}, t == null)
104
104
  return e;
105
105
  do {
106
- for (r = Object.getOwnPropertyNames(t), i = r.length; i-- > 0; )
107
- a = r[i], (!n || n(a, t, e)) && !o[a] && (e[a] = t[a], o[a] = !0);
108
- t = s !== !1 && lt(t);
106
+ for (r = Object.getOwnPropertyNames(t), a = r.length; a-- > 0; )
107
+ i = r[a], (!n || n(i, t, e)) && !o[i] && (e[i] = t[i], o[i] = !0);
108
+ t = s !== !1 && ct(t);
109
109
  } while (t && (!s || s(t, e)) && t !== Object.prototype);
110
110
  return e;
111
- }, $s = (t, e, s) => {
111
+ }, zs = (t, e, s) => {
112
112
  t = String(t), (s === void 0 || s > t.length) && (s = t.length), s -= e.length;
113
113
  const n = t.indexOf(e, s);
114
114
  return n !== -1 && n === s;
@@ -118,18 +118,18 @@ const Bs = (t, e, s, { allOwnKeys: n } = {}) => (xe(e, (r, i) => {
118
118
  if (le(t))
119
119
  return t;
120
120
  let e = t.length;
121
- if (!Dt(e))
121
+ if (!Bt(e))
122
122
  return null;
123
123
  const s = new Array(e);
124
124
  for (; e-- > 0; )
125
125
  s[e] = t[e];
126
126
  return s;
127
- }, Fs = ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && lt(Uint8Array)), Hs = (t, e) => {
127
+ }, Fs = ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && ct(Uint8Array)), Hs = (t, e) => {
128
128
  const n = (t && t[Symbol.iterator]).call(t);
129
129
  let r;
130
130
  for (; (r = n.next()) && !r.done; ) {
131
- const i = r.value;
132
- e.call(t, i[0], i[1]);
131
+ const a = r.value;
132
+ e.call(t, a[0], a[1]);
133
133
  }
134
134
  }, Js = (t, e) => {
135
135
  let s;
@@ -137,18 +137,18 @@ const Bs = (t, e, s, { allOwnKeys: n } = {}) => (xe(e, (r, i) => {
137
137
  for (; (s = t.exec(e)) !== null; )
138
138
  n.push(s);
139
139
  return n;
140
- }, Ws = $("HTMLFormElement"), Ks = (t) => t.toLowerCase().replace(
140
+ }, Ws = z("HTMLFormElement"), Ks = (t) => t.toLowerCase().replace(
141
141
  /[-_\s]([a-z\d])(\w*)/g,
142
142
  function(s, n, r) {
143
143
  return n.toUpperCase() + r;
144
144
  }
145
- ), gt = (({ hasOwnProperty: t }) => (e, s) => t.call(e, s))(Object.prototype), qs = $("RegExp"), Ut = (t, e) => {
145
+ ), _t = (({ hasOwnProperty: t }) => (e, s) => t.call(e, s))(Object.prototype), qs = z("RegExp"), zt = (t, e) => {
146
146
  const s = Object.getOwnPropertyDescriptors(t), n = {};
147
- xe(s, (r, i) => {
148
- e(r, i, t) !== !1 && (n[i] = r);
147
+ ke(s, (r, a) => {
148
+ e(r, a, t) !== !1 && (n[a] = r);
149
149
  }), Object.defineProperties(t, n);
150
150
  }, Gs = (t) => {
151
- Ut(t, (e, s) => {
151
+ zt(t, (e, s) => {
152
152
  if (j(t) && ["arguments", "caller", "callee"].indexOf(s) !== -1)
153
153
  return !1;
154
154
  const n = t[s];
@@ -164,17 +164,17 @@ const Bs = (t, e, s, { allOwnKeys: n } = {}) => (xe(e, (r, i) => {
164
164
  });
165
165
  }, Xs = (t, e) => {
166
166
  const s = {}, n = (r) => {
167
- r.forEach((i) => {
168
- s[i] = !0;
167
+ r.forEach((a) => {
168
+ s[a] = !0;
169
169
  });
170
170
  };
171
171
  return le(t) ? n(t) : n(String(t).split(e)), s;
172
172
  }, Ys = () => {
173
- }, Qs = (t, e) => (t = +t, Number.isFinite(t) ? t : e), qe = "abcdefghijklmnopqrstuvwxyz", vt = "0123456789", zt = {
174
- DIGIT: vt,
175
- ALPHA: qe,
176
- ALPHA_DIGIT: qe + qe.toUpperCase() + vt
177
- }, en = (t = 16, e = zt.ALPHA_DIGIT) => {
173
+ }, Qs = (t, e) => (t = +t, Number.isFinite(t) ? t : e), Ge = "abcdefghijklmnopqrstuvwxyz", bt = "0123456789", Vt = {
174
+ DIGIT: bt,
175
+ ALPHA: Ge,
176
+ ALPHA_DIGIT: Ge + Ge.toUpperCase() + bt
177
+ }, en = (t = 16, e = Vt.ALPHA_DIGIT) => {
178
178
  let s = "";
179
179
  const { length: n } = e;
180
180
  for (; t--; )
@@ -191,28 +191,28 @@ const sn = (t) => {
191
191
  return;
192
192
  if (!("toJSON" in n)) {
193
193
  e[r] = n;
194
- const i = le(n) ? [] : {};
195
- return xe(n, (a, o) => {
196
- const u = s(a, r + 1);
197
- !ue(u) && (i[o] = u);
198
- }), e[r] = void 0, i;
194
+ const a = le(n) ? [] : {};
195
+ return ke(n, (i, o) => {
196
+ const u = s(i, r + 1);
197
+ !de(u) && (a[o] = u);
198
+ }), e[r] = void 0, a;
199
199
  }
200
200
  }
201
201
  return n;
202
202
  };
203
203
  return s(t, 0);
204
- }, nn = $("AsyncFunction"), rn = (t) => t && (Fe(t) || j(t)) && j(t.then) && j(t.catch), c = {
204
+ }, nn = z("AsyncFunction"), rn = (t) => t && (Fe(t) || j(t)) && j(t.then) && j(t.catch), c = {
205
205
  isArray: le,
206
- isArrayBuffer: Lt,
206
+ isArrayBuffer: Pt,
207
207
  isBuffer: Es,
208
208
  isFormData: Ls,
209
209
  isArrayBufferView: Os,
210
210
  isString: Ns,
211
- isNumber: Dt,
211
+ isNumber: Bt,
212
212
  isBoolean: Cs,
213
213
  isObject: Fe,
214
214
  isPlainObject: Oe,
215
- isUndefined: ue,
215
+ isUndefined: de,
216
216
  isDate: As,
217
217
  isFile: Rs,
218
218
  isBlob: Is,
@@ -222,33 +222,33 @@ const sn = (t) => {
222
222
  isURLSearchParams: Ds,
223
223
  isTypedArray: Fs,
224
224
  isFileList: js,
225
- forEach: xe,
226
- merge: et,
225
+ forEach: ke,
226
+ merge: tt,
227
227
  extend: Bs,
228
228
  trim: Ps,
229
229
  stripBOM: Ms,
230
230
  inherits: Us,
231
- toFlatObject: zs,
232
- kindOf: $e,
233
- kindOfTest: $,
234
- endsWith: $s,
231
+ toFlatObject: $s,
232
+ kindOf: ze,
233
+ kindOfTest: z,
234
+ endsWith: zs,
235
235
  toArray: Vs,
236
236
  forEachEntry: Hs,
237
237
  matchAll: Js,
238
238
  isHTMLForm: Ws,
239
- hasOwnProperty: gt,
240
- hasOwnProp: gt,
239
+ hasOwnProperty: _t,
240
+ hasOwnProp: _t,
241
241
  // an alias to avoid ESLint no-prototype-builtins detection
242
- reduceDescriptors: Ut,
242
+ reduceDescriptors: zt,
243
243
  freezeMethods: Gs,
244
244
  toObjectSet: Xs,
245
245
  toCamelCase: Ks,
246
246
  noop: Ys,
247
247
  toFiniteNumber: Qs,
248
- findKey: Pt,
249
- global: Bt,
250
- isContextDefined: Mt,
251
- ALPHABET: zt,
248
+ findKey: Mt,
249
+ global: Ut,
250
+ isContextDefined: $t,
251
+ ALPHABET: Vt,
252
252
  generateString: en,
253
253
  isSpecCompliantForm: tn,
254
254
  toJSONObject: sn,
@@ -279,7 +279,7 @@ c.inherits(T, Error, {
279
279
  };
280
280
  }
281
281
  });
282
- const $t = T.prototype, Vt = {};
282
+ const Ft = T.prototype, Ht = {};
283
283
  [
284
284
  "ERR_BAD_OPTION_VALUE",
285
285
  "ERR_BAD_OPTION",
@@ -295,30 +295,30 @@ const $t = T.prototype, Vt = {};
295
295
  "ERR_INVALID_URL"
296
296
  // eslint-disable-next-line func-names
297
297
  ].forEach((t) => {
298
- Vt[t] = { value: t };
298
+ Ht[t] = { value: t };
299
299
  });
300
- Object.defineProperties(T, Vt);
301
- Object.defineProperty($t, "isAxiosError", { value: !0 });
302
- T.from = (t, e, s, n, r, i) => {
303
- const a = Object.create($t);
304
- return c.toFlatObject(t, a, function(u) {
300
+ Object.defineProperties(T, Ht);
301
+ Object.defineProperty(Ft, "isAxiosError", { value: !0 });
302
+ T.from = (t, e, s, n, r, a) => {
303
+ const i = Object.create(Ft);
304
+ return c.toFlatObject(t, i, function(u) {
305
305
  return u !== Error.prototype;
306
- }, (o) => o !== "isAxiosError"), T.call(a, t.message, e, s, n, r), a.cause = t, a.name = t.name, i && Object.assign(a, i), a;
306
+ }, (o) => o !== "isAxiosError"), T.call(i, t.message, e, s, n, r), i.cause = t, i.name = t.name, a && Object.assign(i, a), i;
307
307
  };
308
308
  const an = null;
309
- function tt(t) {
309
+ function st(t) {
310
310
  return c.isPlainObject(t) || c.isArray(t);
311
311
  }
312
- function Ft(t) {
312
+ function Jt(t) {
313
313
  return c.endsWith(t, "[]") ? t.slice(0, -2) : t;
314
314
  }
315
- function _t(t, e, s) {
316
- return t ? t.concat(e).map(function(r, i) {
317
- return r = Ft(r), !s && i ? "[" + r + "]" : r;
315
+ function wt(t, e, s) {
316
+ return t ? t.concat(e).map(function(r, a) {
317
+ return r = Jt(r), !s && a ? "[" + r + "]" : r;
318
318
  }).join(s ? "." : "") : e;
319
319
  }
320
320
  function on(t) {
321
- return c.isArray(t) && !t.some(tt);
321
+ return c.isArray(t) && !t.some(st);
322
322
  }
323
323
  const ln = c.toFlatObject(c, {}, null, function(e) {
324
324
  return /^is[A-Z]/.test(e);
@@ -333,7 +333,7 @@ function He(t, e, s) {
333
333
  }, !1, function(S, V) {
334
334
  return !c.isUndefined(V[S]);
335
335
  });
336
- const n = s.metaTokens, r = s.visitor || f, i = s.dots, a = s.indexes, u = (s.Blob || typeof Blob < "u" && Blob) && c.isSpecCompliantForm(e);
336
+ const n = s.metaTokens, r = s.visitor || f, a = s.dots, i = s.indexes, u = (s.Blob || typeof Blob < "u" && Blob) && c.isSpecCompliantForm(e);
337
337
  if (!c.isFunction(r))
338
338
  throw new TypeError("visitor must be a function");
339
339
  function l(g) {
@@ -351,26 +351,26 @@ function He(t, e, s) {
351
351
  if (c.endsWith(S, "{}"))
352
352
  S = n ? S : S.slice(0, -2), g = JSON.stringify(g);
353
353
  else if (c.isArray(g) && on(g) || (c.isFileList(g) || c.endsWith(S, "[]")) && (Z = c.toArray(g)))
354
- return S = Ft(S), Z.forEach(function(Ee, _s) {
354
+ return S = Jt(S), Z.forEach(function(Ee, _s) {
355
355
  !(c.isUndefined(Ee) || Ee === null) && e.append(
356
356
  // eslint-disable-next-line no-nested-ternary
357
- a === !0 ? _t([S], _s, i) : a === null ? S : S + "[]",
357
+ i === !0 ? wt([S], _s, a) : i === null ? S : S + "[]",
358
358
  l(Ee)
359
359
  );
360
360
  }), !1;
361
361
  }
362
- return tt(g) ? !0 : (e.append(_t(V, S, i), l(g)), !1);
362
+ return st(g) ? !0 : (e.append(wt(V, S, a), l(g)), !1);
363
363
  }
364
- const _ = [], C = Object.assign(ln, {
364
+ const b = [], C = Object.assign(ln, {
365
365
  defaultVisitor: f,
366
366
  convertValue: l,
367
- isVisitable: tt
367
+ isVisitable: st
368
368
  });
369
369
  function O(g, S) {
370
370
  if (!c.isUndefined(g)) {
371
- if (_.indexOf(g) !== -1)
371
+ if (b.indexOf(g) !== -1)
372
372
  throw Error("Circular reference detected in " + S.join("."));
373
- _.push(g), c.forEach(g, function(Z, se) {
373
+ b.push(g), c.forEach(g, function(Z, se) {
374
374
  (!(c.isUndefined(Z) || Z === null) && r.call(
375
375
  e,
376
376
  Z,
@@ -378,14 +378,14 @@ function He(t, e, s) {
378
378
  S,
379
379
  C
380
380
  )) === !0 && O(Z, S ? S.concat(se) : [se]);
381
- }), _.pop();
381
+ }), b.pop();
382
382
  }
383
383
  }
384
384
  if (!c.isObject(t))
385
385
  throw new TypeError("data must be an object");
386
386
  return O(t), e;
387
387
  }
388
- function bt(t) {
388
+ function xt(t) {
389
389
  const e = {
390
390
  "!": "%21",
391
391
  "'": "%27",
@@ -399,17 +399,17 @@ function bt(t) {
399
399
  return e[n];
400
400
  });
401
401
  }
402
- function ct(t, e) {
402
+ function ut(t, e) {
403
403
  this._pairs = [], t && He(t, this, e);
404
404
  }
405
- const Ht = ct.prototype;
406
- Ht.append = function(e, s) {
405
+ const Wt = ut.prototype;
406
+ Wt.append = function(e, s) {
407
407
  this._pairs.push([e, s]);
408
408
  };
409
- Ht.toString = function(e) {
409
+ Wt.toString = function(e) {
410
410
  const s = e ? function(n) {
411
- return e.call(this, n, bt);
412
- } : bt;
411
+ return e.call(this, n, xt);
412
+ } : xt;
413
413
  return this._pairs.map(function(r) {
414
414
  return s(r[0]) + "=" + s(r[1]);
415
415
  }, "").join("&");
@@ -417,14 +417,14 @@ Ht.toString = function(e) {
417
417
  function cn(t) {
418
418
  return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
419
419
  }
420
- function Jt(t, e, s) {
420
+ function Kt(t, e, s) {
421
421
  if (!e)
422
422
  return t;
423
423
  const n = s && s.encode || cn, r = s && s.serialize;
424
- let i;
425
- if (r ? i = r(e, s) : i = c.isURLSearchParams(e) ? e.toString() : new ct(e, s).toString(n), i) {
426
- const a = t.indexOf("#");
427
- a !== -1 && (t = t.slice(0, a)), t += (t.indexOf("?") === -1 ? "?" : "&") + i;
424
+ let a;
425
+ if (r ? a = r(e, s) : a = c.isURLSearchParams(e) ? e.toString() : new ut(e, s).toString(n), a) {
426
+ const i = t.indexOf("#");
427
+ i !== -1 && (t = t.slice(0, i)), t += (t.indexOf("?") === -1 ? "?" : "&") + a;
428
428
  }
429
429
  return t;
430
430
  }
@@ -482,11 +482,11 @@ class un {
482
482
  });
483
483
  }
484
484
  }
485
- const wt = un, Wt = {
485
+ const kt = un, qt = {
486
486
  silentJSONParsing: !0,
487
487
  forcedJSONParsing: !0,
488
488
  clarifyTimeoutError: !1
489
- }, dn = typeof URLSearchParams < "u" ? URLSearchParams : ct, fn = typeof FormData < "u" ? FormData : null, hn = typeof Blob < "u" ? Blob : null, pn = (() => {
489
+ }, dn = typeof URLSearchParams < "u" ? URLSearchParams : ut, fn = typeof FormData < "u" ? FormData : null, hn = typeof Blob < "u" ? Blob : null, pn = (() => {
490
490
  let t;
491
491
  return typeof navigator < "u" && ((t = navigator.product) === "ReactNative" || t === "NativeScript" || t === "NS") ? !1 : typeof window < "u" && typeof document < "u";
492
492
  })(), mn = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
@@ -503,8 +503,8 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(),
503
503
  };
504
504
  function yn(t, e) {
505
505
  return He(t, new M.classes.URLSearchParams(), Object.assign({
506
- visitor: function(s, n, r, i) {
507
- return M.isNode && c.isBuffer(s) ? (this.append(n, s.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
506
+ visitor: function(s, n, r, a) {
507
+ return M.isNode && c.isBuffer(s) ? (this.append(n, s.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
508
508
  }
509
509
  }, e));
510
510
  }
@@ -515,16 +515,16 @@ function vn(t) {
515
515
  const e = {}, s = Object.keys(t);
516
516
  let n;
517
517
  const r = s.length;
518
- let i;
518
+ let a;
519
519
  for (n = 0; n < r; n++)
520
- i = s[n], e[i] = t[i];
520
+ a = s[n], e[a] = t[a];
521
521
  return e;
522
522
  }
523
- function Kt(t) {
524
- function e(s, n, r, i) {
525
- let a = s[i++];
526
- const o = Number.isFinite(+a), u = i >= s.length;
527
- return a = !a && c.isArray(r) ? r.length : a, u ? (c.hasOwnProp(r, a) ? r[a] = [r[a], n] : r[a] = n, !o) : ((!r[a] || !c.isObject(r[a])) && (r[a] = []), e(s, n, r[a], i) && c.isArray(r[a]) && (r[a] = vn(r[a])), !o);
523
+ function Gt(t) {
524
+ function e(s, n, r, a) {
525
+ let i = s[a++];
526
+ const o = Number.isFinite(+i), u = a >= s.length;
527
+ return i = !i && c.isArray(r) ? r.length : i, u ? (c.hasOwnProp(r, i) ? r[i] = [r[i], n] : r[i] = n, !o) : ((!r[i] || !c.isObject(r[i])) && (r[i] = []), e(s, n, r[i], a) && c.isArray(r[i]) && (r[i] = vn(r[i])), !o);
528
528
  }
529
529
  if (c.isFormData(t) && c.isFunction(t.entries)) {
530
530
  const s = {};
@@ -548,12 +548,12 @@ function bn(t, e, s) {
548
548
  return (s || JSON.stringify)(t);
549
549
  }
550
550
  const Je = {
551
- transitional: Wt,
551
+ transitional: qt,
552
552
  adapter: ["xhr", "http"],
553
553
  transformRequest: [function(e, s) {
554
- const n = s.getContentType() || "", r = n.indexOf("application/json") > -1, i = c.isObject(e);
555
- if (i && c.isHTMLForm(e) && (e = new FormData(e)), c.isFormData(e))
556
- return r && r ? JSON.stringify(Kt(e)) : e;
554
+ const n = s.getContentType() || "", r = n.indexOf("application/json") > -1, a = c.isObject(e);
555
+ if (a && c.isHTMLForm(e) && (e = new FormData(e)), c.isFormData(e))
556
+ return r && r ? JSON.stringify(Gt(e)) : e;
557
557
  if (c.isArrayBuffer(e) || c.isBuffer(e) || c.isStream(e) || c.isFile(e) || c.isBlob(e))
558
558
  return e;
559
559
  if (c.isArrayBufferView(e))
@@ -561,7 +561,7 @@ const Je = {
561
561
  if (c.isURLSearchParams(e))
562
562
  return s.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
563
563
  let o;
564
- if (i) {
564
+ if (a) {
565
565
  if (n.indexOf("application/x-www-form-urlencoded") > -1)
566
566
  return yn(e, this.formSerializer).toString();
567
567
  if ((o = c.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
@@ -573,16 +573,16 @@ const Je = {
573
573
  );
574
574
  }
575
575
  }
576
- return i || r ? (s.setContentType("application/json", !1), bn(e)) : e;
576
+ return a || r ? (s.setContentType("application/json", !1), bn(e)) : e;
577
577
  }],
578
578
  transformResponse: [function(e) {
579
579
  const s = this.transitional || Je.transitional, n = s && s.forcedJSONParsing, r = this.responseType === "json";
580
580
  if (e && c.isString(e) && (n && !this.responseType || r)) {
581
- const a = !(s && s.silentJSONParsing) && r;
581
+ const i = !(s && s.silentJSONParsing) && r;
582
582
  try {
583
583
  return JSON.parse(e);
584
584
  } catch (o) {
585
- if (a)
585
+ if (i)
586
586
  throw o.name === "SyntaxError" ? T.from(o, T.ERR_BAD_RESPONSE, this, null, this.response) : o;
587
587
  }
588
588
  }
@@ -616,7 +616,7 @@ c.forEach(["delete", "get", "head"], function(e) {
616
616
  c.forEach(["post", "put", "patch"], function(e) {
617
617
  Je.headers[e] = c.merge(_n);
618
618
  });
619
- const ut = Je, wn = c.toObjectSet([
619
+ const dt = Je, wn = c.toObjectSet([
620
620
  "age",
621
621
  "authorization",
622
622
  "content-length",
@@ -638,11 +638,11 @@ const ut = Je, wn = c.toObjectSet([
638
638
  const e = {};
639
639
  let s, n, r;
640
640
  return t && t.split(`
641
- `).forEach(function(a) {
642
- r = a.indexOf(":"), s = a.substring(0, r).trim().toLowerCase(), n = a.substring(r + 1).trim(), !(!s || e[s] && wn[s]) && (s === "set-cookie" ? e[s] ? e[s].push(n) : e[s] = [n] : e[s] = e[s] ? e[s] + ", " + n : n);
641
+ `).forEach(function(i) {
642
+ r = i.indexOf(":"), s = i.substring(0, r).trim().toLowerCase(), n = i.substring(r + 1).trim(), !(!s || e[s] && wn[s]) && (s === "set-cookie" ? e[s] ? e[s].push(n) : e[s] = [n] : e[s] = e[s] ? e[s] + ", " + n : n);
643
643
  }), e;
644
- }, xt = Symbol("internals");
645
- function ce(t) {
644
+ }, St = Symbol("internals");
645
+ function ue(t) {
646
646
  return t && String(t).trim().toLowerCase();
647
647
  }
648
648
  function Ne(t) {
@@ -656,7 +656,7 @@ function kn(t) {
656
656
  return e;
657
657
  }
658
658
  const Sn = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
659
- function Ge(t, e, s, n, r) {
659
+ function Xe(t, e, s, n, r) {
660
660
  if (c.isFunction(n))
661
661
  return n.call(this, e, s);
662
662
  if (r && (e = s), !!c.isString(e)) {
@@ -673,8 +673,8 @@ function En(t, e) {
673
673
  const s = c.toCamelCase(" " + e);
674
674
  ["get", "set", "has"].forEach((n) => {
675
675
  Object.defineProperty(t, n + s, {
676
- value: function(r, i, a) {
677
- return this[n].call(this, e, r, i, a);
676
+ value: function(r, a, i) {
677
+ return this[n].call(this, e, r, a, i);
678
678
  },
679
679
  configurable: !0
680
680
  });
@@ -686,18 +686,18 @@ class We {
686
686
  }
687
687
  set(e, s, n) {
688
688
  const r = this;
689
- function i(o, u, l) {
690
- const f = ce(u);
689
+ function a(o, u, l) {
690
+ const f = ue(u);
691
691
  if (!f)
692
692
  throw new Error("header name must be a non-empty string");
693
- const _ = c.findKey(r, f);
694
- (!_ || r[_] === void 0 || l === !0 || l === void 0 && r[_] !== !1) && (r[_ || u] = Ne(o));
693
+ const b = c.findKey(r, f);
694
+ (!b || r[b] === void 0 || l === !0 || l === void 0 && r[b] !== !1) && (r[b || u] = Ne(o));
695
695
  }
696
- const a = (o, u) => c.forEach(o, (l, f) => i(l, f, u));
697
- return c.isPlainObject(e) || e instanceof this.constructor ? a(e, s) : c.isString(e) && (e = e.trim()) && !Sn(e) ? a(xn(e), s) : e != null && i(s, e, n), this;
696
+ const i = (o, u) => c.forEach(o, (l, f) => a(l, f, u));
697
+ return c.isPlainObject(e) || e instanceof this.constructor ? i(e, s) : c.isString(e) && (e = e.trim()) && !Sn(e) ? i(xn(e), s) : e != null && a(s, e, n), this;
698
698
  }
699
699
  get(e, s) {
700
- if (e = ce(e), e) {
700
+ if (e = ue(e), e) {
701
701
  const n = c.findKey(this, e);
702
702
  if (n) {
703
703
  const r = this[n];
@@ -714,42 +714,42 @@ class We {
714
714
  }
715
715
  }
716
716
  has(e, s) {
717
- if (e = ce(e), e) {
717
+ if (e = ue(e), e) {
718
718
  const n = c.findKey(this, e);
719
- return !!(n && this[n] !== void 0 && (!s || Ge(this, this[n], n, s)));
719
+ return !!(n && this[n] !== void 0 && (!s || Xe(this, this[n], n, s)));
720
720
  }
721
721
  return !1;
722
722
  }
723
723
  delete(e, s) {
724
724
  const n = this;
725
725
  let r = !1;
726
- function i(a) {
727
- if (a = ce(a), a) {
728
- const o = c.findKey(n, a);
729
- o && (!s || Ge(n, n[o], o, s)) && (delete n[o], r = !0);
726
+ function a(i) {
727
+ if (i = ue(i), i) {
728
+ const o = c.findKey(n, i);
729
+ o && (!s || Xe(n, n[o], o, s)) && (delete n[o], r = !0);
730
730
  }
731
731
  }
732
- return c.isArray(e) ? e.forEach(i) : i(e), r;
732
+ return c.isArray(e) ? e.forEach(a) : a(e), r;
733
733
  }
734
734
  clear(e) {
735
735
  const s = Object.keys(this);
736
736
  let n = s.length, r = !1;
737
737
  for (; n--; ) {
738
- const i = s[n];
739
- (!e || Ge(this, this[i], i, e, !0)) && (delete this[i], r = !0);
738
+ const a = s[n];
739
+ (!e || Xe(this, this[a], a, e, !0)) && (delete this[a], r = !0);
740
740
  }
741
741
  return r;
742
742
  }
743
743
  normalize(e) {
744
744
  const s = this, n = {};
745
- return c.forEach(this, (r, i) => {
746
- const a = c.findKey(n, i);
747
- if (a) {
748
- s[a] = Ne(r), delete s[i];
745
+ return c.forEach(this, (r, a) => {
746
+ const i = c.findKey(n, a);
747
+ if (i) {
748
+ s[i] = Ne(r), delete s[a];
749
749
  return;
750
750
  }
751
- const o = e ? Tn(i) : String(i).trim();
752
- o !== i && delete s[i], s[o] = Ne(r), n[o] = !0;
751
+ const o = e ? Tn(a) : String(a).trim();
752
+ o !== a && delete s[a], s[o] = Ne(r), n[o] = !0;
753
753
  }), this;
754
754
  }
755
755
  concat(...e) {
@@ -779,34 +779,34 @@ class We {
779
779
  return s.forEach((r) => n.set(r)), n;
780
780
  }
781
781
  static accessor(e) {
782
- const n = (this[xt] = this[xt] = {
782
+ const n = (this[St] = this[St] = {
783
783
  accessors: {}
784
784
  }).accessors, r = this.prototype;
785
- function i(a) {
786
- const o = ce(a);
787
- n[o] || (En(r, a), n[o] = !0);
785
+ function a(i) {
786
+ const o = ue(i);
787
+ n[o] || (En(r, i), n[o] = !0);
788
788
  }
789
- return c.isArray(e) ? e.forEach(i) : i(e), this;
789
+ return c.isArray(e) ? e.forEach(a) : a(e), this;
790
790
  }
791
791
  }
792
792
  We.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
793
793
  c.freezeMethods(We.prototype);
794
794
  c.freezeMethods(We);
795
795
  const F = We;
796
- function Xe(t, e) {
797
- const s = this || ut, n = e || s, r = F.from(n.headers);
798
- let i = n.data;
796
+ function Ye(t, e) {
797
+ const s = this || dt, n = e || s, r = F.from(n.headers);
798
+ let a = n.data;
799
799
  return c.forEach(t, function(o) {
800
- i = o.call(s, i, r.normalize(), e ? e.status : void 0);
801
- }), r.normalize(), i;
800
+ a = o.call(s, a, r.normalize(), e ? e.status : void 0);
801
+ }), r.normalize(), a;
802
802
  }
803
- function qt(t) {
803
+ function Xt(t) {
804
804
  return !!(t && t.__CANCEL__);
805
805
  }
806
- function ke(t, e, s) {
806
+ function Se(t, e, s) {
807
807
  T.call(this, t ?? "canceled", T.ERR_CANCELED, e, s), this.name = "CanceledError";
808
808
  }
809
- c.inherits(ke, T, {
809
+ c.inherits(Se, T, {
810
810
  __CANCEL__: !0
811
811
  });
812
812
  function On(t, e, s) {
@@ -823,9 +823,9 @@ const Nn = M.isStandardBrowserEnv ? (
823
823
  // Standard browser envs support document.cookie
824
824
  function() {
825
825
  return {
826
- write: function(s, n, r, i, a, o) {
826
+ write: function(s, n, r, a, i, o) {
827
827
  const u = [];
828
- u.push(s + "=" + encodeURIComponent(n)), c.isNumber(r) && u.push("expires=" + new Date(r).toGMTString()), c.isString(i) && u.push("path=" + i), c.isString(a) && u.push("domain=" + a), o === !0 && u.push("secure"), document.cookie = u.join("; ");
828
+ u.push(s + "=" + encodeURIComponent(n)), c.isNumber(r) && u.push("expires=" + new Date(r).toGMTString()), c.isString(a) && u.push("path=" + a), c.isString(i) && u.push("domain=" + i), o === !0 && u.push("secure"), document.cookie = u.join("; ");
829
829
  },
830
830
  read: function(s) {
831
831
  const n = document.cookie.match(new RegExp("(^|;\\s*)(" + s + ")=([^;]*)"));
@@ -856,7 +856,7 @@ function Cn(t) {
856
856
  function An(t, e) {
857
857
  return e ? t.replace(/\/+$/, "") + "/" + e.replace(/^\/+/, "") : t;
858
858
  }
859
- function Gt(t, e) {
859
+ function Yt(t, e) {
860
860
  return t && !Cn(e) ? An(t, e) : e;
861
861
  }
862
862
  const Rn = M.isStandardBrowserEnv ? (
@@ -865,9 +865,9 @@ const Rn = M.isStandardBrowserEnv ? (
865
865
  function() {
866
866
  const e = /(msie|trident)/i.test(navigator.userAgent), s = document.createElement("a");
867
867
  let n;
868
- function r(i) {
869
- let a = i;
870
- return e && (s.setAttribute("href", a), a = s.href), s.setAttribute("href", a), {
868
+ function r(a) {
869
+ let i = a;
870
+ return e && (s.setAttribute("href", i), i = s.href), s.setAttribute("href", i), {
871
871
  href: s.href,
872
872
  protocol: s.protocol ? s.protocol.replace(/:$/, "") : "",
873
873
  host: s.host,
@@ -878,8 +878,8 @@ const Rn = M.isStandardBrowserEnv ? (
878
878
  pathname: s.pathname.charAt(0) === "/" ? s.pathname : "/" + s.pathname
879
879
  };
880
880
  }
881
- return n = r(window.location.href), function(a) {
882
- const o = c.isString(a) ? r(a) : a;
881
+ return n = r(window.location.href), function(i) {
882
+ const o = c.isString(i) ? r(i) : i;
883
883
  return o.protocol === n.protocol && o.host === n.host;
884
884
  };
885
885
  }()
@@ -898,32 +898,32 @@ function In(t) {
898
898
  function jn(t, e) {
899
899
  t = t || 10;
900
900
  const s = new Array(t), n = new Array(t);
901
- let r = 0, i = 0, a;
901
+ let r = 0, a = 0, i;
902
902
  return e = e !== void 0 ? e : 1e3, function(u) {
903
- const l = Date.now(), f = n[i];
904
- a || (a = l), s[r] = u, n[r] = l;
905
- let _ = i, C = 0;
906
- for (; _ !== r; )
907
- C += s[_++], _ = _ % t;
908
- if (r = (r + 1) % t, r === i && (i = (i + 1) % t), l - a < e)
903
+ const l = Date.now(), f = n[a];
904
+ i || (i = l), s[r] = u, n[r] = l;
905
+ let b = a, C = 0;
906
+ for (; b !== r; )
907
+ C += s[b++], b = b % t;
908
+ if (r = (r + 1) % t, r === a && (a = (a + 1) % t), l - i < e)
909
909
  return;
910
910
  const O = f && l - f;
911
911
  return O ? Math.round(C * 1e3 / O) : void 0;
912
912
  };
913
913
  }
914
- function kt(t, e) {
914
+ function Tt(t, e) {
915
915
  let s = 0;
916
916
  const n = jn(50, 250);
917
917
  return (r) => {
918
- const i = r.loaded, a = r.lengthComputable ? r.total : void 0, o = i - s, u = n(o), l = i <= a;
919
- s = i;
918
+ const a = r.loaded, i = r.lengthComputable ? r.total : void 0, o = a - s, u = n(o), l = a <= i;
919
+ s = a;
920
920
  const f = {
921
- loaded: i,
922
- total: a,
923
- progress: a ? i / a : void 0,
921
+ loaded: a,
922
+ total: i,
923
+ progress: i ? a / i : void 0,
924
924
  bytes: o,
925
925
  rate: u || void 0,
926
- estimated: u && a && l ? (a - i) / u : void 0,
926
+ estimated: u && i && l ? (i - a) / u : void 0,
927
927
  event: r
928
928
  };
929
929
  f[e ? "download" : "upload"] = !0, t(f);
@@ -932,26 +932,26 @@ function kt(t, e) {
932
932
  const Zn = typeof XMLHttpRequest < "u", Ln = Zn && function(t) {
933
933
  return new Promise(function(s, n) {
934
934
  let r = t.data;
935
- const i = F.from(t.headers).normalize(), a = t.responseType;
935
+ const a = F.from(t.headers).normalize(), i = t.responseType;
936
936
  let o;
937
937
  function u() {
938
938
  t.cancelToken && t.cancelToken.unsubscribe(o), t.signal && t.signal.removeEventListener("abort", o);
939
939
  }
940
- c.isFormData(r) && (M.isStandardBrowserEnv || M.isStandardBrowserWebWorkerEnv ? i.setContentType(!1) : i.setContentType("multipart/form-data;", !1));
940
+ c.isFormData(r) && (M.isStandardBrowserEnv || M.isStandardBrowserWebWorkerEnv ? a.setContentType(!1) : a.setContentType("multipart/form-data;", !1));
941
941
  let l = new XMLHttpRequest();
942
942
  if (t.auth) {
943
943
  const O = t.auth.username || "", g = t.auth.password ? unescape(encodeURIComponent(t.auth.password)) : "";
944
- i.set("Authorization", "Basic " + btoa(O + ":" + g));
944
+ a.set("Authorization", "Basic " + btoa(O + ":" + g));
945
945
  }
946
- const f = Gt(t.baseURL, t.url);
947
- l.open(t.method.toUpperCase(), Jt(f, t.params, t.paramsSerializer), !0), l.timeout = t.timeout;
948
- function _() {
946
+ const f = Yt(t.baseURL, t.url);
947
+ l.open(t.method.toUpperCase(), Kt(f, t.params, t.paramsSerializer), !0), l.timeout = t.timeout;
948
+ function b() {
949
949
  if (!l)
950
950
  return;
951
951
  const O = F.from(
952
952
  "getAllResponseHeaders" in l && l.getAllResponseHeaders()
953
953
  ), S = {
954
- data: !a || a === "text" || a === "json" ? l.responseText : l.response,
954
+ data: !i || i === "text" || i === "json" ? l.responseText : l.response,
955
955
  status: l.status,
956
956
  statusText: l.statusText,
957
957
  headers: O,
@@ -964,15 +964,15 @@ const Zn = typeof XMLHttpRequest < "u", Ln = Zn && function(t) {
964
964
  n(Z), u();
965
965
  }, S), l = null;
966
966
  }
967
- if ("onloadend" in l ? l.onloadend = _ : l.onreadystatechange = function() {
968
- !l || l.readyState !== 4 || l.status === 0 && !(l.responseURL && l.responseURL.indexOf("file:") === 0) || setTimeout(_);
967
+ if ("onloadend" in l ? l.onloadend = b : l.onreadystatechange = function() {
968
+ !l || l.readyState !== 4 || l.status === 0 && !(l.responseURL && l.responseURL.indexOf("file:") === 0) || setTimeout(b);
969
969
  }, l.onabort = function() {
970
970
  l && (n(new T("Request aborted", T.ECONNABORTED, t, l)), l = null);
971
971
  }, l.onerror = function() {
972
972
  n(new T("Network Error", T.ERR_NETWORK, t, l)), l = null;
973
973
  }, l.ontimeout = function() {
974
974
  let g = t.timeout ? "timeout of " + t.timeout + "ms exceeded" : "timeout exceeded";
975
- const S = t.transitional || Wt;
975
+ const S = t.transitional || qt;
976
976
  t.timeoutErrorMessage && (g = t.timeoutErrorMessage), n(new T(
977
977
  g,
978
978
  S.clarifyTimeoutError ? T.ETIMEDOUT : T.ECONNABORTED,
@@ -981,12 +981,12 @@ const Zn = typeof XMLHttpRequest < "u", Ln = Zn && function(t) {
981
981
  )), l = null;
982
982
  }, M.isStandardBrowserEnv) {
983
983
  const O = (t.withCredentials || Rn(f)) && t.xsrfCookieName && Nn.read(t.xsrfCookieName);
984
- O && i.set(t.xsrfHeaderName, O);
984
+ O && a.set(t.xsrfHeaderName, O);
985
985
  }
986
- r === void 0 && i.setContentType(null), "setRequestHeader" in l && c.forEach(i.toJSON(), function(g, S) {
986
+ r === void 0 && a.setContentType(null), "setRequestHeader" in l && c.forEach(a.toJSON(), function(g, S) {
987
987
  l.setRequestHeader(S, g);
988
- }), c.isUndefined(t.withCredentials) || (l.withCredentials = !!t.withCredentials), a && a !== "json" && (l.responseType = t.responseType), typeof t.onDownloadProgress == "function" && l.addEventListener("progress", kt(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && l.upload && l.upload.addEventListener("progress", kt(t.onUploadProgress)), (t.cancelToken || t.signal) && (o = (O) => {
989
- l && (n(!O || O.type ? new ke(null, t, l) : O), l.abort(), l = null);
988
+ }), c.isUndefined(t.withCredentials) || (l.withCredentials = !!t.withCredentials), i && i !== "json" && (l.responseType = t.responseType), typeof t.onDownloadProgress == "function" && l.addEventListener("progress", Tt(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && l.upload && l.upload.addEventListener("progress", Tt(t.onUploadProgress)), (t.cancelToken || t.signal) && (o = (O) => {
989
+ l && (n(!O || O.type ? new Se(null, t, l) : O), l.abort(), l = null);
990
990
  }, t.cancelToken && t.cancelToken.subscribe(o), t.signal && (t.signal.aborted ? o() : t.signal.addEventListener("abort", o)));
991
991
  const C = In(f);
992
992
  if (C && M.protocols.indexOf(C) === -1) {
@@ -1028,117 +1028,117 @@ const Dn = {
1028
1028
  },
1029
1029
  adapters: Ce
1030
1030
  };
1031
- function Ye(t) {
1031
+ function Qe(t) {
1032
1032
  if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
1033
- throw new ke(null, t);
1033
+ throw new Se(null, t);
1034
1034
  }
1035
- function St(t) {
1036
- return Ye(t), t.headers = F.from(t.headers), t.data = Xe.call(
1035
+ function Et(t) {
1036
+ return Qe(t), t.headers = F.from(t.headers), t.data = Ye.call(
1037
1037
  t,
1038
1038
  t.transformRequest
1039
- ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Dn.getAdapter(t.adapter || ut.adapter)(t).then(function(n) {
1040
- return Ye(t), n.data = Xe.call(
1039
+ ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Dn.getAdapter(t.adapter || dt.adapter)(t).then(function(n) {
1040
+ return Qe(t), n.data = Ye.call(
1041
1041
  t,
1042
1042
  t.transformResponse,
1043
1043
  n
1044
1044
  ), n.headers = F.from(n.headers), n;
1045
1045
  }, function(n) {
1046
- return qt(n) || (Ye(t), n && n.response && (n.response.data = Xe.call(
1046
+ return Xt(n) || (Qe(t), n && n.response && (n.response.data = Ye.call(
1047
1047
  t,
1048
1048
  t.transformResponse,
1049
1049
  n.response
1050
1050
  ), n.response.headers = F.from(n.response.headers))), Promise.reject(n);
1051
1051
  });
1052
1052
  }
1053
- const Tt = (t) => t instanceof F ? t.toJSON() : t;
1054
- function ie(t, e) {
1053
+ const Ot = (t) => t instanceof F ? t.toJSON() : t;
1054
+ function ae(t, e) {
1055
1055
  e = e || {};
1056
1056
  const s = {};
1057
- function n(l, f, _) {
1058
- return c.isPlainObject(l) && c.isPlainObject(f) ? c.merge.call({ caseless: _ }, l, f) : c.isPlainObject(f) ? c.merge({}, f) : c.isArray(f) ? f.slice() : f;
1057
+ function n(l, f, b) {
1058
+ return c.isPlainObject(l) && c.isPlainObject(f) ? c.merge.call({ caseless: b }, l, f) : c.isPlainObject(f) ? c.merge({}, f) : c.isArray(f) ? f.slice() : f;
1059
1059
  }
1060
- function r(l, f, _) {
1060
+ function r(l, f, b) {
1061
1061
  if (c.isUndefined(f)) {
1062
1062
  if (!c.isUndefined(l))
1063
- return n(void 0, l, _);
1063
+ return n(void 0, l, b);
1064
1064
  } else
1065
- return n(l, f, _);
1065
+ return n(l, f, b);
1066
1066
  }
1067
- function i(l, f) {
1067
+ function a(l, f) {
1068
1068
  if (!c.isUndefined(f))
1069
1069
  return n(void 0, f);
1070
1070
  }
1071
- function a(l, f) {
1071
+ function i(l, f) {
1072
1072
  if (c.isUndefined(f)) {
1073
1073
  if (!c.isUndefined(l))
1074
1074
  return n(void 0, l);
1075
1075
  } else
1076
1076
  return n(void 0, f);
1077
1077
  }
1078
- function o(l, f, _) {
1079
- if (_ in e)
1078
+ function o(l, f, b) {
1079
+ if (b in e)
1080
1080
  return n(l, f);
1081
- if (_ in t)
1081
+ if (b in t)
1082
1082
  return n(void 0, l);
1083
1083
  }
1084
1084
  const u = {
1085
- url: i,
1086
- method: i,
1087
- data: i,
1088
- baseURL: a,
1089
- transformRequest: a,
1090
- transformResponse: a,
1091
- paramsSerializer: a,
1092
- timeout: a,
1093
- timeoutMessage: a,
1094
- withCredentials: a,
1095
- adapter: a,
1096
- responseType: a,
1097
- xsrfCookieName: a,
1098
- xsrfHeaderName: a,
1099
- onUploadProgress: a,
1100
- onDownloadProgress: a,
1101
- decompress: a,
1102
- maxContentLength: a,
1103
- maxBodyLength: a,
1104
- beforeRedirect: a,
1105
- transport: a,
1106
- httpAgent: a,
1107
- httpsAgent: a,
1108
- cancelToken: a,
1109
- socketPath: a,
1110
- responseEncoding: a,
1085
+ url: a,
1086
+ method: a,
1087
+ data: a,
1088
+ baseURL: i,
1089
+ transformRequest: i,
1090
+ transformResponse: i,
1091
+ paramsSerializer: i,
1092
+ timeout: i,
1093
+ timeoutMessage: i,
1094
+ withCredentials: i,
1095
+ adapter: i,
1096
+ responseType: i,
1097
+ xsrfCookieName: i,
1098
+ xsrfHeaderName: i,
1099
+ onUploadProgress: i,
1100
+ onDownloadProgress: i,
1101
+ decompress: i,
1102
+ maxContentLength: i,
1103
+ maxBodyLength: i,
1104
+ beforeRedirect: i,
1105
+ transport: i,
1106
+ httpAgent: i,
1107
+ httpsAgent: i,
1108
+ cancelToken: i,
1109
+ socketPath: i,
1110
+ responseEncoding: i,
1111
1111
  validateStatus: o,
1112
- headers: (l, f) => r(Tt(l), Tt(f), !0)
1112
+ headers: (l, f) => r(Ot(l), Ot(f), !0)
1113
1113
  };
1114
1114
  return c.forEach(Object.keys(Object.assign({}, t, e)), function(f) {
1115
- const _ = u[f] || r, C = _(t[f], e[f], f);
1116
- c.isUndefined(C) && _ !== o || (s[f] = C);
1115
+ const b = u[f] || r, C = b(t[f], e[f], f);
1116
+ c.isUndefined(C) && b !== o || (s[f] = C);
1117
1117
  }), s;
1118
1118
  }
1119
- const Xt = "1.4.0", dt = {};
1119
+ const Qt = "1.4.0", ft = {};
1120
1120
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
1121
- dt[t] = function(n) {
1121
+ ft[t] = function(n) {
1122
1122
  return typeof n === t || "a" + (e < 1 ? "n " : " ") + t;
1123
1123
  };
1124
1124
  });
1125
- const Et = {};
1126
- dt.transitional = function(e, s, n) {
1127
- function r(i, a) {
1128
- return "[Axios v" + Xt + "] Transitional option '" + i + "'" + a + (n ? ". " + n : "");
1125
+ const Nt = {};
1126
+ ft.transitional = function(e, s, n) {
1127
+ function r(a, i) {
1128
+ return "[Axios v" + Qt + "] Transitional option '" + a + "'" + i + (n ? ". " + n : "");
1129
1129
  }
1130
- return (i, a, o) => {
1130
+ return (a, i, o) => {
1131
1131
  if (e === !1)
1132
1132
  throw new T(
1133
- r(a, " has been removed" + (s ? " in " + s : "")),
1133
+ r(i, " has been removed" + (s ? " in " + s : "")),
1134
1134
  T.ERR_DEPRECATED
1135
1135
  );
1136
- return s && !Et[a] && (Et[a] = !0, console.warn(
1136
+ return s && !Nt[i] && (Nt[i] = !0, console.warn(
1137
1137
  r(
1138
- a,
1138
+ i,
1139
1139
  " has been deprecated since v" + s + " and will be removed in the near future"
1140
1140
  )
1141
- )), e ? e(i, a, o) : !0;
1141
+ )), e ? e(a, i, o) : !0;
1142
1142
  };
1143
1143
  };
1144
1144
  function Pn(t, e, s) {
@@ -1147,26 +1147,26 @@ function Pn(t, e, s) {
1147
1147
  const n = Object.keys(t);
1148
1148
  let r = n.length;
1149
1149
  for (; r-- > 0; ) {
1150
- const i = n[r], a = e[i];
1151
- if (a) {
1152
- const o = t[i], u = o === void 0 || a(o, i, t);
1150
+ const a = n[r], i = e[a];
1151
+ if (i) {
1152
+ const o = t[a], u = o === void 0 || i(o, a, t);
1153
1153
  if (u !== !0)
1154
- throw new T("option " + i + " must be " + u, T.ERR_BAD_OPTION_VALUE);
1154
+ throw new T("option " + a + " must be " + u, T.ERR_BAD_OPTION_VALUE);
1155
1155
  continue;
1156
1156
  }
1157
1157
  if (s !== !0)
1158
- throw new T("Unknown option " + i, T.ERR_BAD_OPTION);
1158
+ throw new T("Unknown option " + a, T.ERR_BAD_OPTION);
1159
1159
  }
1160
1160
  }
1161
- const st = {
1161
+ const nt = {
1162
1162
  assertOptions: Pn,
1163
- validators: dt
1164
- }, W = st.validators;
1163
+ validators: ft
1164
+ }, W = nt.validators;
1165
1165
  class Ie {
1166
1166
  constructor(e) {
1167
1167
  this.defaults = e, this.interceptors = {
1168
- request: new wt(),
1169
- response: new wt()
1168
+ request: new kt(),
1169
+ response: new kt()
1170
1170
  };
1171
1171
  }
1172
1172
  /**
@@ -1178,28 +1178,28 @@ class Ie {
1178
1178
  * @returns {Promise} The Promise to be fulfilled
1179
1179
  */
1180
1180
  request(e, s) {
1181
- typeof e == "string" ? (s = s || {}, s.url = e) : s = e || {}, s = ie(this.defaults, s);
1182
- const { transitional: n, paramsSerializer: r, headers: i } = s;
1183
- n !== void 0 && st.assertOptions(n, {
1181
+ typeof e == "string" ? (s = s || {}, s.url = e) : s = e || {}, s = ae(this.defaults, s);
1182
+ const { transitional: n, paramsSerializer: r, headers: a } = s;
1183
+ n !== void 0 && nt.assertOptions(n, {
1184
1184
  silentJSONParsing: W.transitional(W.boolean),
1185
1185
  forcedJSONParsing: W.transitional(W.boolean),
1186
1186
  clarifyTimeoutError: W.transitional(W.boolean)
1187
1187
  }, !1), r != null && (c.isFunction(r) ? s.paramsSerializer = {
1188
1188
  serialize: r
1189
- } : st.assertOptions(r, {
1189
+ } : nt.assertOptions(r, {
1190
1190
  encode: W.function,
1191
1191
  serialize: W.function
1192
1192
  }, !0)), s.method = (s.method || this.defaults.method || "get").toLowerCase();
1193
- let a;
1194
- a = i && c.merge(
1195
- i.common,
1196
- i[s.method]
1197
- ), a && c.forEach(
1193
+ let i;
1194
+ i = a && c.merge(
1195
+ a.common,
1196
+ a[s.method]
1197
+ ), i && c.forEach(
1198
1198
  ["delete", "get", "head", "post", "put", "patch", "common"],
1199
1199
  (g) => {
1200
- delete i[g];
1200
+ delete a[g];
1201
1201
  }
1202
- ), s.headers = F.concat(a, i);
1202
+ ), s.headers = F.concat(i, a);
1203
1203
  const o = [];
1204
1204
  let u = !0;
1205
1205
  this.interceptors.request.forEach(function(S) {
@@ -1209,17 +1209,17 @@ class Ie {
1209
1209
  this.interceptors.response.forEach(function(S) {
1210
1210
  l.push(S.fulfilled, S.rejected);
1211
1211
  });
1212
- let f, _ = 0, C;
1212
+ let f, b = 0, C;
1213
1213
  if (!u) {
1214
- const g = [St.bind(this), void 0];
1215
- for (g.unshift.apply(g, o), g.push.apply(g, l), C = g.length, f = Promise.resolve(s); _ < C; )
1216
- f = f.then(g[_++], g[_++]);
1214
+ const g = [Et.bind(this), void 0];
1215
+ for (g.unshift.apply(g, o), g.push.apply(g, l), C = g.length, f = Promise.resolve(s); b < C; )
1216
+ f = f.then(g[b++], g[b++]);
1217
1217
  return f;
1218
1218
  }
1219
1219
  C = o.length;
1220
1220
  let O = s;
1221
- for (_ = 0; _ < C; ) {
1222
- const g = o[_++], S = o[_++];
1221
+ for (b = 0; b < C; ) {
1222
+ const g = o[b++], S = o[b++];
1223
1223
  try {
1224
1224
  O = g(O);
1225
1225
  } catch (V) {
@@ -1228,23 +1228,23 @@ class Ie {
1228
1228
  }
1229
1229
  }
1230
1230
  try {
1231
- f = St.call(this, O);
1231
+ f = Et.call(this, O);
1232
1232
  } catch (g) {
1233
1233
  return Promise.reject(g);
1234
1234
  }
1235
- for (_ = 0, C = l.length; _ < C; )
1236
- f = f.then(l[_++], l[_++]);
1235
+ for (b = 0, C = l.length; b < C; )
1236
+ f = f.then(l[b++], l[b++]);
1237
1237
  return f;
1238
1238
  }
1239
1239
  getUri(e) {
1240
- e = ie(this.defaults, e);
1241
- const s = Gt(e.baseURL, e.url);
1242
- return Jt(s, e.params, e.paramsSerializer);
1240
+ e = ae(this.defaults, e);
1241
+ const s = Yt(e.baseURL, e.url);
1242
+ return Kt(s, e.params, e.paramsSerializer);
1243
1243
  }
1244
1244
  }
1245
1245
  c.forEach(["delete", "get", "head", "options"], function(e) {
1246
1246
  Ie.prototype[e] = function(s, n) {
1247
- return this.request(ie(n || {}, {
1247
+ return this.request(ae(n || {}, {
1248
1248
  method: e,
1249
1249
  url: s,
1250
1250
  data: (n || {}).data
@@ -1253,46 +1253,46 @@ c.forEach(["delete", "get", "head", "options"], function(e) {
1253
1253
  });
1254
1254
  c.forEach(["post", "put", "patch"], function(e) {
1255
1255
  function s(n) {
1256
- return function(i, a, o) {
1257
- return this.request(ie(o || {}, {
1256
+ return function(a, i, o) {
1257
+ return this.request(ae(o || {}, {
1258
1258
  method: e,
1259
1259
  headers: n ? {
1260
1260
  "Content-Type": "multipart/form-data"
1261
1261
  } : {},
1262
- url: i,
1263
- data: a
1262
+ url: a,
1263
+ data: i
1264
1264
  }));
1265
1265
  };
1266
1266
  }
1267
1267
  Ie.prototype[e] = s(), Ie.prototype[e + "Form"] = s(!0);
1268
1268
  });
1269
1269
  const Ae = Ie;
1270
- class ft {
1270
+ class ht {
1271
1271
  constructor(e) {
1272
1272
  if (typeof e != "function")
1273
1273
  throw new TypeError("executor must be a function.");
1274
1274
  let s;
1275
- this.promise = new Promise(function(i) {
1276
- s = i;
1275
+ this.promise = new Promise(function(a) {
1276
+ s = a;
1277
1277
  });
1278
1278
  const n = this;
1279
1279
  this.promise.then((r) => {
1280
1280
  if (!n._listeners)
1281
1281
  return;
1282
- let i = n._listeners.length;
1283
- for (; i-- > 0; )
1284
- n._listeners[i](r);
1282
+ let a = n._listeners.length;
1283
+ for (; a-- > 0; )
1284
+ n._listeners[a](r);
1285
1285
  n._listeners = null;
1286
1286
  }), this.promise.then = (r) => {
1287
- let i;
1288
- const a = new Promise((o) => {
1289
- n.subscribe(o), i = o;
1287
+ let a;
1288
+ const i = new Promise((o) => {
1289
+ n.subscribe(o), a = o;
1290
1290
  }).then(r);
1291
- return a.cancel = function() {
1292
- n.unsubscribe(i);
1293
- }, a;
1294
- }, e(function(i, a, o) {
1295
- n.reason || (n.reason = new ke(i, a, o), s(n.reason));
1291
+ return i.cancel = function() {
1292
+ n.unsubscribe(a);
1293
+ }, i;
1294
+ }, e(function(a, i, o) {
1295
+ n.reason || (n.reason = new Se(a, i, o), s(n.reason));
1296
1296
  });
1297
1297
  }
1298
1298
  /**
@@ -1328,14 +1328,14 @@ class ft {
1328
1328
  static source() {
1329
1329
  let e;
1330
1330
  return {
1331
- token: new ft(function(r) {
1331
+ token: new ht(function(r) {
1332
1332
  e = r;
1333
1333
  }),
1334
1334
  cancel: e
1335
1335
  };
1336
1336
  }
1337
1337
  }
1338
- const Bn = ft;
1338
+ const Bn = ht;
1339
1339
  function Mn(t) {
1340
1340
  return function(s) {
1341
1341
  return t.apply(null, s);
@@ -1344,7 +1344,7 @@ function Mn(t) {
1344
1344
  function Un(t) {
1345
1345
  return c.isObject(t) && t.isAxiosError === !0;
1346
1346
  }
1347
- const nt = {
1347
+ const rt = {
1348
1348
  Continue: 100,
1349
1349
  SwitchingProtocols: 101,
1350
1350
  Processing: 102,
@@ -1409,22 +1409,22 @@ const nt = {
1409
1409
  NotExtended: 510,
1410
1410
  NetworkAuthenticationRequired: 511
1411
1411
  };
1412
- Object.entries(nt).forEach(([t, e]) => {
1413
- nt[e] = t;
1412
+ Object.entries(rt).forEach(([t, e]) => {
1413
+ rt[e] = t;
1414
1414
  });
1415
- const zn = nt;
1416
- function Yt(t) {
1417
- const e = new Ae(t), s = Zt(Ae.prototype.request, e);
1415
+ const $n = rt;
1416
+ function es(t) {
1417
+ const e = new Ae(t), s = Dt(Ae.prototype.request, e);
1418
1418
  return c.extend(s, Ae.prototype, e, { allOwnKeys: !0 }), c.extend(s, e, null, { allOwnKeys: !0 }), s.create = function(r) {
1419
- return Yt(ie(t, r));
1419
+ return es(ae(t, r));
1420
1420
  }, s;
1421
1421
  }
1422
- const A = Yt(ut);
1422
+ const A = es(dt);
1423
1423
  A.Axios = Ae;
1424
- A.CanceledError = ke;
1424
+ A.CanceledError = Se;
1425
1425
  A.CancelToken = Bn;
1426
- A.isCancel = qt;
1427
- A.VERSION = Xt;
1426
+ A.isCancel = Xt;
1427
+ A.VERSION = Qt;
1428
1428
  A.toFormData = He;
1429
1429
  A.AxiosError = T;
1430
1430
  A.Cancel = A.CanceledError;
@@ -1433,29 +1433,29 @@ A.all = function(e) {
1433
1433
  };
1434
1434
  A.spread = Mn;
1435
1435
  A.isAxiosError = Un;
1436
- A.mergeConfig = ie;
1436
+ A.mergeConfig = ae;
1437
1437
  A.AxiosHeaders = F;
1438
- A.formToJSON = (t) => Kt(c.isHTMLForm(t) ? new FormData(t) : t);
1439
- A.HttpStatusCode = zn;
1438
+ A.formToJSON = (t) => Gt(c.isHTMLForm(t) ? new FormData(t) : t);
1439
+ A.HttpStatusCode = $n;
1440
1440
  A.default = A;
1441
- const ht = A;
1442
- function pt({ apiKey: t, options: e }) {
1441
+ const pt = A;
1442
+ function mt({ apiKey: t, options: e }) {
1443
1443
  let s = {};
1444
- return t && xs(s, ["headers", "Authorization"], `API-Key ${t}`), e && (s = Rt(s, e)), s;
1444
+ return t && xs(s, ["headers", "Authorization"], `API-Key ${t}`), e && (s = jt(s, e)), s;
1445
1445
  }
1446
- function mt(t) {
1446
+ function yt(t) {
1447
1447
  return t.replaceAll(" ", "").trim();
1448
1448
  }
1449
- async function Qt({ url: t, apiKey: e, options: s }) {
1450
- return await ht.get(mt(t), pt({ apiKey: e, options: s }));
1449
+ async function ts({ url: t, apiKey: e, options: s }) {
1450
+ return await pt.get(yt(t), mt({ apiKey: e, options: s }));
1451
1451
  }
1452
- async function es({ url: t, apiKey: e, options: s, payload: n = {} }) {
1453
- return await ht.post(mt(t), n, pt({ apiKey: e, options: s }));
1452
+ async function gt({ url: t, apiKey: e, options: s, payload: n = {} }) {
1453
+ return await pt.post(yt(t), n, mt({ apiKey: e, options: s }));
1454
1454
  }
1455
- async function $n({ url: t, apiKey: e, options: s, payload: n }) {
1456
- return await ht.put(mt(t), n, pt({ apiKey: e, options: s }));
1455
+ async function zn({ url: t, apiKey: e, options: s, payload: n }) {
1456
+ return await pt.put(yt(t), n, mt({ apiKey: e, options: s }));
1457
1457
  }
1458
- async function Se(t) {
1458
+ async function ce(t) {
1459
1459
  try {
1460
1460
  return await t();
1461
1461
  } catch (e) {
@@ -1463,8 +1463,8 @@ async function Se(t) {
1463
1463
  }
1464
1464
  }
1465
1465
  async function Vn({ apiKey: t, apiHost: e }, s, n) {
1466
- return Se(async () => {
1467
- const r = (await es({ url: `${e}/v1/images/book/${s}`, apiKey: t, payload: n })).data;
1466
+ return ce(async () => {
1467
+ const r = (await gt({ url: `${e}/v1/images/book/${s}`, apiKey: t, payload: n })).data;
1468
1468
  return Vr.parse(r);
1469
1469
  });
1470
1470
  }
@@ -1478,40 +1478,40 @@ var E;
1478
1478
  throw new Error();
1479
1479
  }
1480
1480
  t.assertNever = s, t.arrayToEnum = (r) => {
1481
- const i = {};
1482
- for (const a of r)
1483
- i[a] = a;
1484
- return i;
1481
+ const a = {};
1482
+ for (const i of r)
1483
+ a[i] = i;
1484
+ return a;
1485
1485
  }, t.getValidEnumValues = (r) => {
1486
- const i = t.objectKeys(r).filter((o) => typeof r[r[o]] != "number"), a = {};
1487
- for (const o of i)
1488
- a[o] = r[o];
1489
- return t.objectValues(a);
1490
- }, t.objectValues = (r) => t.objectKeys(r).map(function(i) {
1491
- return r[i];
1486
+ const a = t.objectKeys(r).filter((o) => typeof r[r[o]] != "number"), i = {};
1487
+ for (const o of a)
1488
+ i[o] = r[o];
1489
+ return t.objectValues(i);
1490
+ }, t.objectValues = (r) => t.objectKeys(r).map(function(a) {
1491
+ return r[a];
1492
1492
  }), t.objectKeys = typeof Object.keys == "function" ? (r) => Object.keys(r) : (r) => {
1493
- const i = [];
1494
- for (const a in r)
1495
- Object.prototype.hasOwnProperty.call(r, a) && i.push(a);
1496
- return i;
1497
- }, t.find = (r, i) => {
1498
- for (const a of r)
1499
- if (i(a))
1500
- return a;
1493
+ const a = [];
1494
+ for (const i in r)
1495
+ Object.prototype.hasOwnProperty.call(r, i) && a.push(i);
1496
+ return a;
1497
+ }, t.find = (r, a) => {
1498
+ for (const i of r)
1499
+ if (a(i))
1500
+ return i;
1501
1501
  }, t.isInteger = typeof Number.isInteger == "function" ? (r) => Number.isInteger(r) : (r) => typeof r == "number" && isFinite(r) && Math.floor(r) === r;
1502
- function n(r, i = " | ") {
1503
- return r.map((a) => typeof a == "string" ? `'${a}'` : a).join(i);
1502
+ function n(r, a = " | ") {
1503
+ return r.map((i) => typeof i == "string" ? `'${i}'` : i).join(a);
1504
1504
  }
1505
- t.joinValues = n, t.jsonStringifyReplacer = (r, i) => typeof i == "bigint" ? i.toString() : i;
1505
+ t.joinValues = n, t.jsonStringifyReplacer = (r, a) => typeof a == "bigint" ? a.toString() : a;
1506
1506
  })(E || (E = {}));
1507
- var rt;
1507
+ var at;
1508
1508
  (function(t) {
1509
1509
  t.mergeShapes = (e, s) => ({
1510
1510
  ...e,
1511
1511
  ...s
1512
1512
  // second overwrites first
1513
1513
  });
1514
- })(rt || (rt = {}));
1514
+ })(at || (at = {}));
1515
1515
  const p = E.arrayToEnum([
1516
1516
  "string",
1517
1517
  "nan",
@@ -1586,23 +1586,23 @@ class D extends Error {
1586
1586
  return this.issues;
1587
1587
  }
1588
1588
  format(e) {
1589
- const s = e || function(i) {
1590
- return i.message;
1591
- }, n = { _errors: [] }, r = (i) => {
1592
- for (const a of i.issues)
1593
- if (a.code === "invalid_union")
1594
- a.unionErrors.map(r);
1595
- else if (a.code === "invalid_return_type")
1596
- r(a.returnTypeError);
1597
- else if (a.code === "invalid_arguments")
1598
- r(a.argumentsError);
1599
- else if (a.path.length === 0)
1600
- n._errors.push(s(a));
1589
+ const s = e || function(a) {
1590
+ return a.message;
1591
+ }, n = { _errors: [] }, r = (a) => {
1592
+ for (const i of a.issues)
1593
+ if (i.code === "invalid_union")
1594
+ i.unionErrors.map(r);
1595
+ else if (i.code === "invalid_return_type")
1596
+ r(i.returnTypeError);
1597
+ else if (i.code === "invalid_arguments")
1598
+ r(i.argumentsError);
1599
+ else if (i.path.length === 0)
1600
+ n._errors.push(s(i));
1601
1601
  else {
1602
1602
  let o = n, u = 0;
1603
- for (; u < a.path.length; ) {
1604
- const l = a.path[u];
1605
- u === a.path.length - 1 ? (o[l] = o[l] || { _errors: [] }, o[l]._errors.push(s(a))) : o[l] = o[l] || { _errors: [] }, o = o[l], u++;
1603
+ for (; u < i.path.length; ) {
1604
+ const l = i.path[u];
1605
+ u === i.path.length - 1 ? (o[l] = o[l] || { _errors: [] }, o[l]._errors.push(s(i))) : o[l] = o[l] || { _errors: [] }, o = o[l], u++;
1606
1606
  }
1607
1607
  }
1608
1608
  };
@@ -1628,7 +1628,7 @@ class D extends Error {
1628
1628
  }
1629
1629
  }
1630
1630
  D.create = (t) => new D(t);
1631
- const de = (t, e) => {
1631
+ const fe = (t, e) => {
1632
1632
  let s;
1633
1633
  switch (t.code) {
1634
1634
  case h.invalid_type:
@@ -1684,25 +1684,25 @@ const de = (t, e) => {
1684
1684
  }
1685
1685
  return { message: s };
1686
1686
  };
1687
- let ts = de;
1687
+ let ss = fe;
1688
1688
  function Hn(t) {
1689
- ts = t;
1689
+ ss = t;
1690
1690
  }
1691
1691
  function je() {
1692
- return ts;
1692
+ return ss;
1693
1693
  }
1694
1694
  const Ze = (t) => {
1695
- const { data: e, path: s, errorMaps: n, issueData: r } = t, i = [...s, ...r.path || []], a = {
1695
+ const { data: e, path: s, errorMaps: n, issueData: r } = t, a = [...s, ...r.path || []], i = {
1696
1696
  ...r,
1697
- path: i
1697
+ path: a
1698
1698
  };
1699
1699
  let o = "";
1700
1700
  const u = n.filter((l) => !!l).slice().reverse();
1701
1701
  for (const l of u)
1702
- o = l(a, { data: e, defaultError: o }).message;
1702
+ o = l(i, { data: e, defaultError: o }).message;
1703
1703
  return {
1704
1704
  ...r,
1705
- path: i,
1705
+ path: a,
1706
1706
  message: r.message || o
1707
1707
  };
1708
1708
  }, Jn = [];
@@ -1715,7 +1715,7 @@ function m(t, e) {
1715
1715
  t.common.contextualErrorMap,
1716
1716
  t.schemaErrorMap,
1717
1717
  je(),
1718
- de
1718
+ fe
1719
1719
  // then global default map
1720
1720
  ].filter((n) => !!n)
1721
1721
  });
@@ -1752,17 +1752,17 @@ class R {
1752
1752
  static mergeObjectSync(e, s) {
1753
1753
  const n = {};
1754
1754
  for (const r of s) {
1755
- const { key: i, value: a } = r;
1756
- if (i.status === "aborted" || a.status === "aborted")
1755
+ const { key: a, value: i } = r;
1756
+ if (a.status === "aborted" || i.status === "aborted")
1757
1757
  return w;
1758
- i.status === "dirty" && e.dirty(), a.status === "dirty" && e.dirty(), (typeof a.value < "u" || r.alwaysSet) && (n[i.value] = a.value);
1758
+ a.status === "dirty" && e.dirty(), i.status === "dirty" && e.dirty(), (typeof i.value < "u" || r.alwaysSet) && (n[a.value] = i.value);
1759
1759
  }
1760
1760
  return { status: e.value, value: n };
1761
1761
  }
1762
1762
  }
1763
1763
  const w = Object.freeze({
1764
1764
  status: "aborted"
1765
- }), ss = (t) => ({ status: "dirty", value: t }), I = (t) => ({ status: "valid", value: t }), it = (t) => t.status === "aborted", at = (t) => t.status === "dirty", Le = (t) => t.status === "valid", De = (t) => typeof Promise < "u" && t instanceof Promise;
1765
+ }), ns = (t) => ({ status: "dirty", value: t }), I = (t) => ({ status: "valid", value: t }), it = (t) => t.status === "aborted", ot = (t) => t.status === "dirty", Le = (t) => t.status === "valid", De = (t) => typeof Promise < "u" && t instanceof Promise;
1766
1766
  var y;
1767
1767
  (function(t) {
1768
1768
  t.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, t.toString = (e) => typeof e == "string" ? e : e == null ? void 0 : e.message;
@@ -1775,7 +1775,7 @@ class U {
1775
1775
  return this._cachedPath.length || (this._key instanceof Array ? this._cachedPath.push(...this._path, ...this._key) : this._cachedPath.push(...this._path, this._key)), this._cachedPath;
1776
1776
  }
1777
1777
  }
1778
- const Ot = (t, e) => {
1778
+ const Ct = (t, e) => {
1779
1779
  if (Le(e))
1780
1780
  return { success: !0, data: e.value };
1781
1781
  if (!t.common.issues.length)
@@ -1796,7 +1796,7 @@ function x(t) {
1796
1796
  const { errorMap: e, invalid_type_error: s, required_error: n, description: r } = t;
1797
1797
  if (e && (s || n))
1798
1798
  throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);
1799
- return e ? { errorMap: e, description: r } : { errorMap: (a, o) => a.code !== "invalid_type" ? { message: o.defaultError } : typeof o.data > "u" ? { message: n ?? o.defaultError } : { message: s ?? o.defaultError }, description: r };
1799
+ return e ? { errorMap: e, description: r } : { errorMap: (i, o) => i.code !== "invalid_type" ? { message: o.defaultError } : typeof o.data > "u" ? { message: n ?? o.defaultError } : { message: s ?? o.defaultError }, description: r };
1800
1800
  }
1801
1801
  class k {
1802
1802
  constructor(e) {
@@ -1860,8 +1860,8 @@ class k {
1860
1860
  parent: null,
1861
1861
  data: e,
1862
1862
  parsedType: K(e)
1863
- }, i = this._parseSync({ data: e, path: r.path, parent: r });
1864
- return Ot(r, i);
1863
+ }, a = this._parseSync({ data: e, path: r.path, parent: r });
1864
+ return Ct(r, a);
1865
1865
  }
1866
1866
  async parseAsync(e, s) {
1867
1867
  const n = await this.safeParseAsync(e, s);
@@ -1881,17 +1881,17 @@ class k {
1881
1881
  parent: null,
1882
1882
  data: e,
1883
1883
  parsedType: K(e)
1884
- }, r = this._parse({ data: e, path: n.path, parent: n }), i = await (De(r) ? r : Promise.resolve(r));
1885
- return Ot(n, i);
1884
+ }, r = this._parse({ data: e, path: n.path, parent: n }), a = await (De(r) ? r : Promise.resolve(r));
1885
+ return Ct(n, a);
1886
1886
  }
1887
1887
  refine(e, s) {
1888
1888
  const n = (r) => typeof s == "string" || typeof s > "u" ? { message: s } : typeof s == "function" ? s(r) : s;
1889
- return this._refinement((r, i) => {
1890
- const a = e(r), o = () => i.addIssue({
1889
+ return this._refinement((r, a) => {
1890
+ const i = e(r), o = () => a.addIssue({
1891
1891
  code: h.custom,
1892
1892
  ...n(r)
1893
1893
  });
1894
- return typeof Promise < "u" && a instanceof Promise ? a.then((u) => u ? !0 : (o(), !1)) : a ? !0 : (o(), !1);
1894
+ return typeof Promise < "u" && i instanceof Promise ? i.then((u) => u ? !0 : (o(), !1)) : i ? !0 : (o(), !1);
1895
1895
  });
1896
1896
  }
1897
1897
  refinement(e, s) {
@@ -1923,10 +1923,10 @@ class k {
1923
1923
  return oe.create(this, this._def);
1924
1924
  }
1925
1925
  or(e) {
1926
- return me.create([this, e], this._def);
1926
+ return ye.create([this, e], this._def);
1927
1927
  }
1928
1928
  and(e) {
1929
- return ye.create(this, e, this._def);
1929
+ return ge.create(this, e, this._def);
1930
1930
  }
1931
1931
  transform(e) {
1932
1932
  return new B({
@@ -1938,7 +1938,7 @@ class k {
1938
1938
  }
1939
1939
  default(e) {
1940
1940
  const s = typeof e == "function" ? e : () => e;
1941
- return new we({
1941
+ return new xe({
1942
1942
  ...x(this._def),
1943
1943
  innerType: this,
1944
1944
  defaultValue: s,
@@ -1946,7 +1946,7 @@ class k {
1946
1946
  });
1947
1947
  }
1948
1948
  brand() {
1949
- return new rs({
1949
+ return new as({
1950
1950
  typeName: v.ZodBranded,
1951
1951
  type: this,
1952
1952
  ...x(this._def)
@@ -2001,127 +2001,127 @@ class L extends k {
2001
2001
  }
2002
2002
  _parse(e) {
2003
2003
  if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== p.string) {
2004
- const i = this._getOrReturnCtx(e);
2004
+ const a = this._getOrReturnCtx(e);
2005
2005
  return m(
2006
- i,
2006
+ a,
2007
2007
  {
2008
2008
  code: h.invalid_type,
2009
2009
  expected: p.string,
2010
- received: i.parsedType
2010
+ received: a.parsedType
2011
2011
  }
2012
2012
  //
2013
2013
  ), w;
2014
2014
  }
2015
2015
  const n = new R();
2016
2016
  let r;
2017
- for (const i of this._def.checks)
2018
- if (i.kind === "min")
2019
- e.data.length < i.value && (r = this._getOrReturnCtx(e, r), m(r, {
2017
+ for (const a of this._def.checks)
2018
+ if (a.kind === "min")
2019
+ e.data.length < a.value && (r = this._getOrReturnCtx(e, r), m(r, {
2020
2020
  code: h.too_small,
2021
- minimum: i.value,
2021
+ minimum: a.value,
2022
2022
  type: "string",
2023
2023
  inclusive: !0,
2024
2024
  exact: !1,
2025
- message: i.message
2025
+ message: a.message
2026
2026
  }), n.dirty());
2027
- else if (i.kind === "max")
2028
- e.data.length > i.value && (r = this._getOrReturnCtx(e, r), m(r, {
2027
+ else if (a.kind === "max")
2028
+ e.data.length > a.value && (r = this._getOrReturnCtx(e, r), m(r, {
2029
2029
  code: h.too_big,
2030
- maximum: i.value,
2030
+ maximum: a.value,
2031
2031
  type: "string",
2032
2032
  inclusive: !0,
2033
2033
  exact: !1,
2034
- message: i.message
2034
+ message: a.message
2035
2035
  }), n.dirty());
2036
- else if (i.kind === "length") {
2037
- const a = e.data.length > i.value, o = e.data.length < i.value;
2038
- (a || o) && (r = this._getOrReturnCtx(e, r), a ? m(r, {
2036
+ else if (a.kind === "length") {
2037
+ const i = e.data.length > a.value, o = e.data.length < a.value;
2038
+ (i || o) && (r = this._getOrReturnCtx(e, r), i ? m(r, {
2039
2039
  code: h.too_big,
2040
- maximum: i.value,
2040
+ maximum: a.value,
2041
2041
  type: "string",
2042
2042
  inclusive: !0,
2043
2043
  exact: !0,
2044
- message: i.message
2044
+ message: a.message
2045
2045
  }) : o && m(r, {
2046
2046
  code: h.too_small,
2047
- minimum: i.value,
2047
+ minimum: a.value,
2048
2048
  type: "string",
2049
2049
  inclusive: !0,
2050
2050
  exact: !0,
2051
- message: i.message
2051
+ message: a.message
2052
2052
  }), n.dirty());
2053
- } else if (i.kind === "email")
2053
+ } else if (a.kind === "email")
2054
2054
  Xn.test(e.data) || (r = this._getOrReturnCtx(e, r), m(r, {
2055
2055
  validation: "email",
2056
2056
  code: h.invalid_string,
2057
- message: i.message
2057
+ message: a.message
2058
2058
  }), n.dirty());
2059
- else if (i.kind === "emoji")
2059
+ else if (a.kind === "emoji")
2060
2060
  Yn.test(e.data) || (r = this._getOrReturnCtx(e, r), m(r, {
2061
2061
  validation: "emoji",
2062
2062
  code: h.invalid_string,
2063
- message: i.message
2063
+ message: a.message
2064
2064
  }), n.dirty());
2065
- else if (i.kind === "uuid")
2065
+ else if (a.kind === "uuid")
2066
2066
  Gn.test(e.data) || (r = this._getOrReturnCtx(e, r), m(r, {
2067
2067
  validation: "uuid",
2068
2068
  code: h.invalid_string,
2069
- message: i.message
2069
+ message: a.message
2070
2070
  }), n.dirty());
2071
- else if (i.kind === "cuid")
2071
+ else if (a.kind === "cuid")
2072
2072
  Wn.test(e.data) || (r = this._getOrReturnCtx(e, r), m(r, {
2073
2073
  validation: "cuid",
2074
2074
  code: h.invalid_string,
2075
- message: i.message
2075
+ message: a.message
2076
2076
  }), n.dirty());
2077
- else if (i.kind === "cuid2")
2077
+ else if (a.kind === "cuid2")
2078
2078
  Kn.test(e.data) || (r = this._getOrReturnCtx(e, r), m(r, {
2079
2079
  validation: "cuid2",
2080
2080
  code: h.invalid_string,
2081
- message: i.message
2081
+ message: a.message
2082
2082
  }), n.dirty());
2083
- else if (i.kind === "ulid")
2083
+ else if (a.kind === "ulid")
2084
2084
  qn.test(e.data) || (r = this._getOrReturnCtx(e, r), m(r, {
2085
2085
  validation: "ulid",
2086
2086
  code: h.invalid_string,
2087
- message: i.message
2087
+ message: a.message
2088
2088
  }), n.dirty());
2089
- else if (i.kind === "url")
2089
+ else if (a.kind === "url")
2090
2090
  try {
2091
2091
  new URL(e.data);
2092
2092
  } catch {
2093
2093
  r = this._getOrReturnCtx(e, r), m(r, {
2094
2094
  validation: "url",
2095
2095
  code: h.invalid_string,
2096
- message: i.message
2096
+ message: a.message
2097
2097
  }), n.dirty();
2098
2098
  }
2099
2099
  else
2100
- i.kind === "regex" ? (i.regex.lastIndex = 0, i.regex.test(e.data) || (r = this._getOrReturnCtx(e, r), m(r, {
2100
+ a.kind === "regex" ? (a.regex.lastIndex = 0, a.regex.test(e.data) || (r = this._getOrReturnCtx(e, r), m(r, {
2101
2101
  validation: "regex",
2102
2102
  code: h.invalid_string,
2103
- message: i.message
2104
- }), n.dirty())) : i.kind === "trim" ? e.data = e.data.trim() : i.kind === "includes" ? e.data.includes(i.value, i.position) || (r = this._getOrReturnCtx(e, r), m(r, {
2103
+ message: a.message
2104
+ }), n.dirty())) : a.kind === "trim" ? e.data = e.data.trim() : a.kind === "includes" ? e.data.includes(a.value, a.position) || (r = this._getOrReturnCtx(e, r), m(r, {
2105
2105
  code: h.invalid_string,
2106
- validation: { includes: i.value, position: i.position },
2107
- message: i.message
2108
- }), n.dirty()) : i.kind === "toLowerCase" ? e.data = e.data.toLowerCase() : i.kind === "toUpperCase" ? e.data = e.data.toUpperCase() : i.kind === "startsWith" ? e.data.startsWith(i.value) || (r = this._getOrReturnCtx(e, r), m(r, {
2106
+ validation: { includes: a.value, position: a.position },
2107
+ message: a.message
2108
+ }), n.dirty()) : a.kind === "toLowerCase" ? e.data = e.data.toLowerCase() : a.kind === "toUpperCase" ? e.data = e.data.toUpperCase() : a.kind === "startsWith" ? e.data.startsWith(a.value) || (r = this._getOrReturnCtx(e, r), m(r, {
2109
2109
  code: h.invalid_string,
2110
- validation: { startsWith: i.value },
2111
- message: i.message
2112
- }), n.dirty()) : i.kind === "endsWith" ? e.data.endsWith(i.value) || (r = this._getOrReturnCtx(e, r), m(r, {
2110
+ validation: { startsWith: a.value },
2111
+ message: a.message
2112
+ }), n.dirty()) : a.kind === "endsWith" ? e.data.endsWith(a.value) || (r = this._getOrReturnCtx(e, r), m(r, {
2113
2113
  code: h.invalid_string,
2114
- validation: { endsWith: i.value },
2115
- message: i.message
2116
- }), n.dirty()) : i.kind === "datetime" ? tr(i).test(e.data) || (r = this._getOrReturnCtx(e, r), m(r, {
2114
+ validation: { endsWith: a.value },
2115
+ message: a.message
2116
+ }), n.dirty()) : a.kind === "datetime" ? tr(a).test(e.data) || (r = this._getOrReturnCtx(e, r), m(r, {
2117
2117
  code: h.invalid_string,
2118
2118
  validation: "datetime",
2119
- message: i.message
2120
- }), n.dirty()) : i.kind === "ip" ? sr(e.data, i.version) || (r = this._getOrReturnCtx(e, r), m(r, {
2119
+ message: a.message
2120
+ }), n.dirty()) : a.kind === "ip" ? sr(e.data, a.version) || (r = this._getOrReturnCtx(e, r), m(r, {
2121
2121
  validation: "ip",
2122
2122
  code: h.invalid_string,
2123
- message: i.message
2124
- }), n.dirty()) : E.assertNever(i);
2123
+ message: a.message
2124
+ }), n.dirty()) : E.assertNever(a);
2125
2125
  return { status: n.value, value: e.data };
2126
2126
  }
2127
2127
  _addCheck(e) {
@@ -2268,8 +2268,8 @@ L.create = (t) => {
2268
2268
  });
2269
2269
  };
2270
2270
  function nr(t, e) {
2271
- const s = (t.toString().split(".")[1] || "").length, n = (e.toString().split(".")[1] || "").length, r = s > n ? s : n, i = parseInt(t.toFixed(r).replace(".", "")), a = parseInt(e.toFixed(r).replace(".", ""));
2272
- return i % a / Math.pow(10, r);
2271
+ const s = (t.toString().split(".")[1] || "").length, n = (e.toString().split(".")[1] || "").length, r = s > n ? s : n, a = parseInt(t.toFixed(r).replace(".", "")), i = parseInt(e.toFixed(r).replace(".", ""));
2272
+ return a % i / Math.pow(10, r);
2273
2273
  }
2274
2274
  class q extends k {
2275
2275
  constructor() {
@@ -2277,43 +2277,43 @@ class q extends k {
2277
2277
  }
2278
2278
  _parse(e) {
2279
2279
  if (this._def.coerce && (e.data = Number(e.data)), this._getType(e) !== p.number) {
2280
- const i = this._getOrReturnCtx(e);
2281
- return m(i, {
2280
+ const a = this._getOrReturnCtx(e);
2281
+ return m(a, {
2282
2282
  code: h.invalid_type,
2283
2283
  expected: p.number,
2284
- received: i.parsedType
2284
+ received: a.parsedType
2285
2285
  }), w;
2286
2286
  }
2287
2287
  let n;
2288
2288
  const r = new R();
2289
- for (const i of this._def.checks)
2290
- i.kind === "int" ? E.isInteger(e.data) || (n = this._getOrReturnCtx(e, n), m(n, {
2289
+ for (const a of this._def.checks)
2290
+ a.kind === "int" ? E.isInteger(e.data) || (n = this._getOrReturnCtx(e, n), m(n, {
2291
2291
  code: h.invalid_type,
2292
2292
  expected: "integer",
2293
2293
  received: "float",
2294
- message: i.message
2295
- }), r.dirty()) : i.kind === "min" ? (i.inclusive ? e.data < i.value : e.data <= i.value) && (n = this._getOrReturnCtx(e, n), m(n, {
2294
+ message: a.message
2295
+ }), r.dirty()) : a.kind === "min" ? (a.inclusive ? e.data < a.value : e.data <= a.value) && (n = this._getOrReturnCtx(e, n), m(n, {
2296
2296
  code: h.too_small,
2297
- minimum: i.value,
2297
+ minimum: a.value,
2298
2298
  type: "number",
2299
- inclusive: i.inclusive,
2299
+ inclusive: a.inclusive,
2300
2300
  exact: !1,
2301
- message: i.message
2302
- }), r.dirty()) : i.kind === "max" ? (i.inclusive ? e.data > i.value : e.data >= i.value) && (n = this._getOrReturnCtx(e, n), m(n, {
2301
+ message: a.message
2302
+ }), r.dirty()) : a.kind === "max" ? (a.inclusive ? e.data > a.value : e.data >= a.value) && (n = this._getOrReturnCtx(e, n), m(n, {
2303
2303
  code: h.too_big,
2304
- maximum: i.value,
2304
+ maximum: a.value,
2305
2305
  type: "number",
2306
- inclusive: i.inclusive,
2306
+ inclusive: a.inclusive,
2307
2307
  exact: !1,
2308
- message: i.message
2309
- }), r.dirty()) : i.kind === "multipleOf" ? nr(e.data, i.value) !== 0 && (n = this._getOrReturnCtx(e, n), m(n, {
2308
+ message: a.message
2309
+ }), r.dirty()) : a.kind === "multipleOf" ? nr(e.data, a.value) !== 0 && (n = this._getOrReturnCtx(e, n), m(n, {
2310
2310
  code: h.not_multiple_of,
2311
- multipleOf: i.value,
2312
- message: i.message
2313
- }), r.dirty()) : i.kind === "finite" ? Number.isFinite(e.data) || (n = this._getOrReturnCtx(e, n), m(n, {
2311
+ multipleOf: a.value,
2312
+ message: a.message
2313
+ }), r.dirty()) : a.kind === "finite" ? Number.isFinite(e.data) || (n = this._getOrReturnCtx(e, n), m(n, {
2314
2314
  code: h.not_finite,
2315
- message: i.message
2316
- }), r.dirty()) : E.assertNever(i);
2315
+ message: a.message
2316
+ }), r.dirty()) : E.assertNever(a);
2317
2317
  return { status: r.value, value: e.data };
2318
2318
  }
2319
2319
  gte(e, s) {
@@ -2449,33 +2449,33 @@ class G extends k {
2449
2449
  }
2450
2450
  _parse(e) {
2451
2451
  if (this._def.coerce && (e.data = BigInt(e.data)), this._getType(e) !== p.bigint) {
2452
- const i = this._getOrReturnCtx(e);
2453
- return m(i, {
2452
+ const a = this._getOrReturnCtx(e);
2453
+ return m(a, {
2454
2454
  code: h.invalid_type,
2455
2455
  expected: p.bigint,
2456
- received: i.parsedType
2456
+ received: a.parsedType
2457
2457
  }), w;
2458
2458
  }
2459
2459
  let n;
2460
2460
  const r = new R();
2461
- for (const i of this._def.checks)
2462
- i.kind === "min" ? (i.inclusive ? e.data < i.value : e.data <= i.value) && (n = this._getOrReturnCtx(e, n), m(n, {
2461
+ for (const a of this._def.checks)
2462
+ a.kind === "min" ? (a.inclusive ? e.data < a.value : e.data <= a.value) && (n = this._getOrReturnCtx(e, n), m(n, {
2463
2463
  code: h.too_small,
2464
2464
  type: "bigint",
2465
- minimum: i.value,
2466
- inclusive: i.inclusive,
2467
- message: i.message
2468
- }), r.dirty()) : i.kind === "max" ? (i.inclusive ? e.data > i.value : e.data >= i.value) && (n = this._getOrReturnCtx(e, n), m(n, {
2465
+ minimum: a.value,
2466
+ inclusive: a.inclusive,
2467
+ message: a.message
2468
+ }), r.dirty()) : a.kind === "max" ? (a.inclusive ? e.data > a.value : e.data >= a.value) && (n = this._getOrReturnCtx(e, n), m(n, {
2469
2469
  code: h.too_big,
2470
2470
  type: "bigint",
2471
- maximum: i.value,
2472
- inclusive: i.inclusive,
2473
- message: i.message
2474
- }), r.dirty()) : i.kind === "multipleOf" ? e.data % i.value !== BigInt(0) && (n = this._getOrReturnCtx(e, n), m(n, {
2471
+ maximum: a.value,
2472
+ inclusive: a.inclusive,
2473
+ message: a.message
2474
+ }), r.dirty()) : a.kind === "multipleOf" ? e.data % a.value !== BigInt(0) && (n = this._getOrReturnCtx(e, n), m(n, {
2475
2475
  code: h.not_multiple_of,
2476
- multipleOf: i.value,
2477
- message: i.message
2478
- }), r.dirty()) : E.assertNever(i);
2476
+ multipleOf: a.value,
2477
+ message: a.message
2478
+ }), r.dirty()) : E.assertNever(a);
2479
2479
  return { status: r.value, value: e.data };
2480
2480
  }
2481
2481
  gte(e, s) {
@@ -2571,7 +2571,7 @@ G.create = (t) => {
2571
2571
  ...x(t)
2572
2572
  });
2573
2573
  };
2574
- class fe extends k {
2574
+ class he extends k {
2575
2575
  _parse(e) {
2576
2576
  if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== p.boolean) {
2577
2577
  const n = this._getOrReturnCtx(e);
@@ -2584,7 +2584,7 @@ class fe extends k {
2584
2584
  return I(e.data);
2585
2585
  }
2586
2586
  }
2587
- fe.create = (t) => new fe({
2587
+ he.create = (t) => new he({
2588
2588
  typeName: v.ZodBoolean,
2589
2589
  coerce: (t == null ? void 0 : t.coerce) || !1,
2590
2590
  ...x(t)
@@ -2592,37 +2592,37 @@ fe.create = (t) => new fe({
2592
2592
  class Q extends k {
2593
2593
  _parse(e) {
2594
2594
  if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== p.date) {
2595
- const i = this._getOrReturnCtx(e);
2596
- return m(i, {
2595
+ const a = this._getOrReturnCtx(e);
2596
+ return m(a, {
2597
2597
  code: h.invalid_type,
2598
2598
  expected: p.date,
2599
- received: i.parsedType
2599
+ received: a.parsedType
2600
2600
  }), w;
2601
2601
  }
2602
2602
  if (isNaN(e.data.getTime())) {
2603
- const i = this._getOrReturnCtx(e);
2604
- return m(i, {
2603
+ const a = this._getOrReturnCtx(e);
2604
+ return m(a, {
2605
2605
  code: h.invalid_date
2606
2606
  }), w;
2607
2607
  }
2608
2608
  const n = new R();
2609
2609
  let r;
2610
- for (const i of this._def.checks)
2611
- i.kind === "min" ? e.data.getTime() < i.value && (r = this._getOrReturnCtx(e, r), m(r, {
2610
+ for (const a of this._def.checks)
2611
+ a.kind === "min" ? e.data.getTime() < a.value && (r = this._getOrReturnCtx(e, r), m(r, {
2612
2612
  code: h.too_small,
2613
- message: i.message,
2613
+ message: a.message,
2614
2614
  inclusive: !0,
2615
2615
  exact: !1,
2616
- minimum: i.value,
2616
+ minimum: a.value,
2617
2617
  type: "date"
2618
- }), n.dirty()) : i.kind === "max" ? e.data.getTime() > i.value && (r = this._getOrReturnCtx(e, r), m(r, {
2618
+ }), n.dirty()) : a.kind === "max" ? e.data.getTime() > a.value && (r = this._getOrReturnCtx(e, r), m(r, {
2619
2619
  code: h.too_big,
2620
- message: i.message,
2620
+ message: a.message,
2621
2621
  inclusive: !0,
2622
2622
  exact: !1,
2623
- maximum: i.value,
2623
+ maximum: a.value,
2624
2624
  type: "date"
2625
- }), n.dirty()) : E.assertNever(i);
2625
+ }), n.dirty()) : E.assertNever(a);
2626
2626
  return {
2627
2627
  status: n.value,
2628
2628
  value: new Date(e.data.getTime())
@@ -2684,7 +2684,7 @@ Pe.create = (t) => new Pe({
2684
2684
  typeName: v.ZodSymbol,
2685
2685
  ...x(t)
2686
2686
  });
2687
- class he extends k {
2687
+ class pe extends k {
2688
2688
  _parse(e) {
2689
2689
  if (this._getType(e) !== p.undefined) {
2690
2690
  const n = this._getOrReturnCtx(e);
@@ -2697,11 +2697,11 @@ class he extends k {
2697
2697
  return I(e.data);
2698
2698
  }
2699
2699
  }
2700
- he.create = (t) => new he({
2700
+ pe.create = (t) => new pe({
2701
2701
  typeName: v.ZodUndefined,
2702
2702
  ...x(t)
2703
2703
  });
2704
- class pe extends k {
2704
+ class me extends k {
2705
2705
  _parse(e) {
2706
2706
  if (this._getType(e) !== p.null) {
2707
2707
  const n = this._getOrReturnCtx(e);
@@ -2714,11 +2714,11 @@ class pe extends k {
2714
2714
  return I(e.data);
2715
2715
  }
2716
2716
  }
2717
- pe.create = (t) => new pe({
2717
+ me.create = (t) => new me({
2718
2718
  typeName: v.ZodNull,
2719
2719
  ...x(t)
2720
2720
  });
2721
- class ae extends k {
2721
+ class ie extends k {
2722
2722
  constructor() {
2723
2723
  super(...arguments), this._any = !0;
2724
2724
  }
@@ -2726,7 +2726,7 @@ class ae extends k {
2726
2726
  return I(e.data);
2727
2727
  }
2728
2728
  }
2729
- ae.create = (t) => new ae({
2729
+ ie.create = (t) => new ie({
2730
2730
  typeName: v.ZodAny,
2731
2731
  ...x(t)
2732
2732
  });
@@ -2783,11 +2783,11 @@ class P extends k {
2783
2783
  received: s.parsedType
2784
2784
  }), w;
2785
2785
  if (r.exactLength !== null) {
2786
- const a = s.data.length > r.exactLength.value, o = s.data.length < r.exactLength.value;
2787
- (a || o) && (m(s, {
2788
- code: a ? h.too_big : h.too_small,
2786
+ const i = s.data.length > r.exactLength.value, o = s.data.length < r.exactLength.value;
2787
+ (i || o) && (m(s, {
2788
+ code: i ? h.too_big : h.too_small,
2789
2789
  minimum: o ? r.exactLength.value : void 0,
2790
- maximum: a ? r.exactLength.value : void 0,
2790
+ maximum: i ? r.exactLength.value : void 0,
2791
2791
  type: "array",
2792
2792
  inclusive: !0,
2793
2793
  exact: !0,
@@ -2809,9 +2809,9 @@ class P extends k {
2809
2809
  exact: !1,
2810
2810
  message: r.maxLength.message
2811
2811
  }), n.dirty()), s.common.async)
2812
- return Promise.all([...s.data].map((a, o) => r.type._parseAsync(new U(s, a, s.path, o)))).then((a) => R.mergeArray(n, a));
2813
- const i = [...s.data].map((a, o) => r.type._parseSync(new U(s, a, s.path, o)));
2814
- return R.mergeArray(n, i);
2812
+ return Promise.all([...s.data].map((i, o) => r.type._parseAsync(new U(s, i, s.path, o)))).then((i) => R.mergeArray(n, i));
2813
+ const a = [...s.data].map((i, o) => r.type._parseSync(new U(s, i, s.path, o)));
2814
+ return R.mergeArray(n, a);
2815
2815
  }
2816
2816
  get element() {
2817
2817
  return this._def.type;
@@ -2861,7 +2861,7 @@ function ne(t) {
2861
2861
  return t instanceof P ? new P({
2862
2862
  ...t._def,
2863
2863
  type: ne(t.element)
2864
- }) : t instanceof H ? H.create(ne(t.unwrap())) : t instanceof te ? te.create(ne(t.unwrap())) : t instanceof z ? z.create(t.items.map((e) => ne(e))) : t;
2864
+ }) : t instanceof H ? H.create(ne(t.unwrap())) : t instanceof te ? te.create(ne(t.unwrap())) : t instanceof $ ? $.create(t.items.map((e) => ne(e))) : t;
2865
2865
  }
2866
2866
  class N extends k {
2867
2867
  constructor() {
@@ -2882,16 +2882,16 @@ class N extends k {
2882
2882
  received: l.parsedType
2883
2883
  }), w;
2884
2884
  }
2885
- const { status: n, ctx: r } = this._processInputParams(e), { shape: i, keys: a } = this._getCached(), o = [];
2885
+ const { status: n, ctx: r } = this._processInputParams(e), { shape: a, keys: i } = this._getCached(), o = [];
2886
2886
  if (!(this._def.catchall instanceof J && this._def.unknownKeys === "strip"))
2887
2887
  for (const l in r.data)
2888
- a.includes(l) || o.push(l);
2888
+ i.includes(l) || o.push(l);
2889
2889
  const u = [];
2890
- for (const l of a) {
2891
- const f = i[l], _ = r.data[l];
2890
+ for (const l of i) {
2891
+ const f = a[l], b = r.data[l];
2892
2892
  u.push({
2893
2893
  key: { status: "valid", value: l },
2894
- value: f._parse(new U(r, _, r.path, l)),
2894
+ value: f._parse(new U(r, b, r.path, l)),
2895
2895
  alwaysSet: l in r.data
2896
2896
  });
2897
2897
  }
@@ -2913,11 +2913,11 @@ class N extends k {
2913
2913
  } else {
2914
2914
  const l = this._def.catchall;
2915
2915
  for (const f of o) {
2916
- const _ = r.data[f];
2916
+ const b = r.data[f];
2917
2917
  u.push({
2918
2918
  key: { status: "valid", value: f },
2919
2919
  value: l._parse(
2920
- new U(r, _, r.path, f)
2920
+ new U(r, b, r.path, f)
2921
2921
  //, ctx.child(key), value, getParsedType(value)
2922
2922
  ),
2923
2923
  alwaysSet: f in r.data
@@ -2927,9 +2927,9 @@ class N extends k {
2927
2927
  return r.common.async ? Promise.resolve().then(async () => {
2928
2928
  const l = [];
2929
2929
  for (const f of u) {
2930
- const _ = await f.key;
2930
+ const b = await f.key;
2931
2931
  l.push({
2932
- key: _,
2932
+ key: b,
2933
2933
  value: await f.value,
2934
2934
  alwaysSet: f.alwaysSet
2935
2935
  });
@@ -2946,8 +2946,8 @@ class N extends k {
2946
2946
  unknownKeys: "strict",
2947
2947
  ...e !== void 0 ? {
2948
2948
  errorMap: (s, n) => {
2949
- var r, i, a, o;
2950
- const u = (a = (i = (r = this._def).errorMap) === null || i === void 0 ? void 0 : i.call(r, s, n).message) !== null && a !== void 0 ? a : n.defaultError;
2949
+ var r, a, i, o;
2950
+ const u = (i = (a = (r = this._def).errorMap) === null || a === void 0 ? void 0 : a.call(r, s, n).message) !== null && i !== void 0 ? i : n.defaultError;
2951
2951
  return s.code === "unrecognized_keys" ? {
2952
2952
  message: (o = y.errToObj(e).message) !== null && o !== void 0 ? o : u
2953
2953
  } : {
@@ -3116,10 +3116,10 @@ class N extends k {
3116
3116
  if (e && !e[n])
3117
3117
  s[n] = this.shape[n];
3118
3118
  else {
3119
- let i = this.shape[n];
3120
- for (; i instanceof H; )
3121
- i = i._def.innerType;
3122
- s[n] = i;
3119
+ let a = this.shape[n];
3120
+ for (; a instanceof H; )
3121
+ a = a._def.innerType;
3122
+ s[n] = a;
3123
3123
  }
3124
3124
  }), new N({
3125
3125
  ...this._def,
@@ -3127,7 +3127,7 @@ class N extends k {
3127
3127
  });
3128
3128
  }
3129
3129
  keyof() {
3130
- return ns(E.objectKeys(this.shape));
3130
+ return rs(E.objectKeys(this.shape));
3131
3131
  }
3132
3132
  }
3133
3133
  N.create = (t, e) => new N({
@@ -3151,25 +3151,25 @@ N.lazycreate = (t, e) => new N({
3151
3151
  typeName: v.ZodObject,
3152
3152
  ...x(e)
3153
3153
  });
3154
- class me extends k {
3154
+ class ye extends k {
3155
3155
  _parse(e) {
3156
3156
  const { ctx: s } = this._processInputParams(e), n = this._def.options;
3157
- function r(i) {
3158
- for (const o of i)
3157
+ function r(a) {
3158
+ for (const o of a)
3159
3159
  if (o.result.status === "valid")
3160
3160
  return o.result;
3161
- for (const o of i)
3161
+ for (const o of a)
3162
3162
  if (o.result.status === "dirty")
3163
3163
  return s.common.issues.push(...o.ctx.common.issues), o.result;
3164
- const a = i.map((o) => new D(o.ctx.common.issues));
3164
+ const i = a.map((o) => new D(o.ctx.common.issues));
3165
3165
  return m(s, {
3166
3166
  code: h.invalid_union,
3167
- unionErrors: a
3167
+ unionErrors: i
3168
3168
  }), w;
3169
3169
  }
3170
3170
  if (s.common.async)
3171
- return Promise.all(n.map(async (i) => {
3172
- const a = {
3171
+ return Promise.all(n.map(async (a) => {
3172
+ const i = {
3173
3173
  ...s,
3174
3174
  common: {
3175
3175
  ...s.common,
@@ -3178,17 +3178,17 @@ class me extends k {
3178
3178
  parent: null
3179
3179
  };
3180
3180
  return {
3181
- result: await i._parseAsync({
3181
+ result: await a._parseAsync({
3182
3182
  data: s.data,
3183
3183
  path: s.path,
3184
- parent: a
3184
+ parent: i
3185
3185
  }),
3186
- ctx: a
3186
+ ctx: i
3187
3187
  };
3188
3188
  })).then(r);
3189
3189
  {
3190
- let i;
3191
- const a = [];
3190
+ let a;
3191
+ const i = [];
3192
3192
  for (const u of n) {
3193
3193
  const l = {
3194
3194
  ...s,
@@ -3204,11 +3204,11 @@ class me extends k {
3204
3204
  });
3205
3205
  if (f.status === "valid")
3206
3206
  return f;
3207
- f.status === "dirty" && !i && (i = { result: f, ctx: l }), l.common.issues.length && a.push(l.common.issues);
3207
+ f.status === "dirty" && !a && (a = { result: f, ctx: l }), l.common.issues.length && i.push(l.common.issues);
3208
3208
  }
3209
- if (i)
3210
- return s.common.issues.push(...i.ctx.common.issues), i.result;
3211
- const o = a.map((u) => new D(u));
3209
+ if (a)
3210
+ return s.common.issues.push(...a.ctx.common.issues), a.result;
3211
+ const o = i.map((u) => new D(u));
3212
3212
  return m(s, {
3213
3213
  code: h.invalid_union,
3214
3214
  unionErrors: o
@@ -3219,12 +3219,12 @@ class me extends k {
3219
3219
  return this._def.options;
3220
3220
  }
3221
3221
  }
3222
- me.create = (t, e) => new me({
3222
+ ye.create = (t, e) => new ye({
3223
3223
  options: t,
3224
3224
  typeName: v.ZodUnion,
3225
3225
  ...x(e)
3226
3226
  });
3227
- const Re = (t) => t instanceof ve ? Re(t.schema) : t instanceof B ? Re(t.innerType()) : t instanceof _e ? [t.value] : t instanceof X ? t.options : t instanceof be ? Object.keys(t.enum) : t instanceof we ? Re(t._def.innerType) : t instanceof he ? [void 0] : t instanceof pe ? [null] : null;
3227
+ const Re = (t) => t instanceof _e ? Re(t.schema) : t instanceof B ? Re(t.innerType()) : t instanceof be ? [t.value] : t instanceof X ? t.options : t instanceof we ? Object.keys(t.enum) : t instanceof xe ? Re(t._def.innerType) : t instanceof pe ? [void 0] : t instanceof me ? [null] : null;
3228
3228
  class Ke extends k {
3229
3229
  _parse(e) {
3230
3230
  const { ctx: s } = this._processInputParams(e);
@@ -3234,12 +3234,12 @@ class Ke extends k {
3234
3234
  expected: p.object,
3235
3235
  received: s.parsedType
3236
3236
  }), w;
3237
- const n = this.discriminator, r = s.data[n], i = this.optionsMap.get(r);
3238
- return i ? s.common.async ? i._parseAsync({
3237
+ const n = this.discriminator, r = s.data[n], a = this.optionsMap.get(r);
3238
+ return a ? s.common.async ? a._parseAsync({
3239
3239
  data: s.data,
3240
3240
  path: s.path,
3241
3241
  parent: s
3242
- }) : i._parseSync({
3242
+ }) : a._parseSync({
3243
3243
  data: s.data,
3244
3244
  path: s.path,
3245
3245
  parent: s
@@ -3268,14 +3268,14 @@ class Ke extends k {
3268
3268
  */
3269
3269
  static create(e, s, n) {
3270
3270
  const r = /* @__PURE__ */ new Map();
3271
- for (const i of s) {
3272
- const a = Re(i.shape[e]);
3273
- if (!a)
3271
+ for (const a of s) {
3272
+ const i = Re(a.shape[e]);
3273
+ if (!i)
3274
3274
  throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);
3275
- for (const o of a) {
3275
+ for (const o of i) {
3276
3276
  if (r.has(o))
3277
3277
  throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);
3278
- r.set(o, i);
3278
+ r.set(o, a);
3279
3279
  }
3280
3280
  }
3281
3281
  return new Ke({
@@ -3287,25 +3287,25 @@ class Ke extends k {
3287
3287
  });
3288
3288
  }
3289
3289
  }
3290
- function ot(t, e) {
3290
+ function lt(t, e) {
3291
3291
  const s = K(t), n = K(e);
3292
3292
  if (t === e)
3293
3293
  return { valid: !0, data: t };
3294
3294
  if (s === p.object && n === p.object) {
3295
- const r = E.objectKeys(e), i = E.objectKeys(t).filter((o) => r.indexOf(o) !== -1), a = { ...t, ...e };
3296
- for (const o of i) {
3297
- const u = ot(t[o], e[o]);
3295
+ const r = E.objectKeys(e), a = E.objectKeys(t).filter((o) => r.indexOf(o) !== -1), i = { ...t, ...e };
3296
+ for (const o of a) {
3297
+ const u = lt(t[o], e[o]);
3298
3298
  if (!u.valid)
3299
3299
  return { valid: !1 };
3300
- a[o] = u.data;
3300
+ i[o] = u.data;
3301
3301
  }
3302
- return { valid: !0, data: a };
3302
+ return { valid: !0, data: i };
3303
3303
  } else if (s === p.array && n === p.array) {
3304
3304
  if (t.length !== e.length)
3305
3305
  return { valid: !1 };
3306
3306
  const r = [];
3307
- for (let i = 0; i < t.length; i++) {
3308
- const a = t[i], o = e[i], u = ot(a, o);
3307
+ for (let a = 0; a < t.length; a++) {
3308
+ const i = t[a], o = e[a], u = lt(i, o);
3309
3309
  if (!u.valid)
3310
3310
  return { valid: !1 };
3311
3311
  r.push(u.data);
@@ -3314,13 +3314,13 @@ function ot(t, e) {
3314
3314
  } else
3315
3315
  return s === p.date && n === p.date && +t == +e ? { valid: !0, data: t } : { valid: !1 };
3316
3316
  }
3317
- class ye extends k {
3317
+ class ge extends k {
3318
3318
  _parse(e) {
3319
- const { status: s, ctx: n } = this._processInputParams(e), r = (i, a) => {
3320
- if (it(i) || it(a))
3319
+ const { status: s, ctx: n } = this._processInputParams(e), r = (a, i) => {
3320
+ if (it(a) || it(i))
3321
3321
  return w;
3322
- const o = ot(i.value, a.value);
3323
- return o.valid ? ((at(i) || at(a)) && s.dirty(), { status: s.value, value: o.data }) : (m(n, {
3322
+ const o = lt(a.value, i.value);
3323
+ return o.valid ? ((ot(a) || ot(i)) && s.dirty(), { status: s.value, value: o.data }) : (m(n, {
3324
3324
  code: h.invalid_intersection_types
3325
3325
  }), w);
3326
3326
  };
@@ -3335,7 +3335,7 @@ class ye extends k {
3335
3335
  path: n.path,
3336
3336
  parent: n
3337
3337
  })
3338
- ]).then(([i, a]) => r(i, a)) : r(this._def.left._parseSync({
3338
+ ]).then(([a, i]) => r(a, i)) : r(this._def.left._parseSync({
3339
3339
  data: n.data,
3340
3340
  path: n.path,
3341
3341
  parent: n
@@ -3346,13 +3346,13 @@ class ye extends k {
3346
3346
  }));
3347
3347
  }
3348
3348
  }
3349
- ye.create = (t, e, s) => new ye({
3349
+ ge.create = (t, e, s) => new ge({
3350
3350
  left: t,
3351
3351
  right: e,
3352
3352
  typeName: v.ZodIntersection,
3353
3353
  ...x(s)
3354
3354
  });
3355
- class z extends k {
3355
+ class $ extends k {
3356
3356
  _parse(e) {
3357
3357
  const { status: s, ctx: n } = this._processInputParams(e);
3358
3358
  if (n.parsedType !== p.array)
@@ -3376,33 +3376,33 @@ class z extends k {
3376
3376
  exact: !1,
3377
3377
  type: "array"
3378
3378
  }), s.dirty());
3379
- const i = [...n.data].map((a, o) => {
3379
+ const a = [...n.data].map((i, o) => {
3380
3380
  const u = this._def.items[o] || this._def.rest;
3381
- return u ? u._parse(new U(n, a, n.path, o)) : null;
3382
- }).filter((a) => !!a);
3383
- return n.common.async ? Promise.all(i).then((a) => R.mergeArray(s, a)) : R.mergeArray(s, i);
3381
+ return u ? u._parse(new U(n, i, n.path, o)) : null;
3382
+ }).filter((i) => !!i);
3383
+ return n.common.async ? Promise.all(a).then((i) => R.mergeArray(s, i)) : R.mergeArray(s, a);
3384
3384
  }
3385
3385
  get items() {
3386
3386
  return this._def.items;
3387
3387
  }
3388
3388
  rest(e) {
3389
- return new z({
3389
+ return new $({
3390
3390
  ...this._def,
3391
3391
  rest: e
3392
3392
  });
3393
3393
  }
3394
3394
  }
3395
- z.create = (t, e) => {
3395
+ $.create = (t, e) => {
3396
3396
  if (!Array.isArray(t))
3397
3397
  throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
3398
- return new z({
3398
+ return new $({
3399
3399
  items: t,
3400
3400
  typeName: v.ZodTuple,
3401
3401
  rest: null,
3402
3402
  ...x(e)
3403
3403
  });
3404
3404
  };
3405
- class ge extends k {
3405
+ class ve extends k {
3406
3406
  get keySchema() {
3407
3407
  return this._def.keyType;
3408
3408
  }
@@ -3417,11 +3417,11 @@ class ge extends k {
3417
3417
  expected: p.object,
3418
3418
  received: n.parsedType
3419
3419
  }), w;
3420
- const r = [], i = this._def.keyType, a = this._def.valueType;
3420
+ const r = [], a = this._def.keyType, i = this._def.valueType;
3421
3421
  for (const o in n.data)
3422
3422
  r.push({
3423
- key: i._parse(new U(n, o, n.path, o)),
3424
- value: a._parse(new U(n, n.data[o], n.path, o))
3423
+ key: a._parse(new U(n, o, n.path, o)),
3424
+ value: i._parse(new U(n, n.data[o], n.path, o))
3425
3425
  });
3426
3426
  return n.common.async ? R.mergeObjectAsync(s, r) : R.mergeObjectSync(s, r);
3427
3427
  }
@@ -3429,12 +3429,12 @@ class ge extends k {
3429
3429
  return this._def.valueType;
3430
3430
  }
3431
3431
  static create(e, s, n) {
3432
- return s instanceof k ? new ge({
3432
+ return s instanceof k ? new ve({
3433
3433
  keyType: e,
3434
3434
  valueType: s,
3435
3435
  typeName: v.ZodRecord,
3436
3436
  ...x(n)
3437
- }) : new ge({
3437
+ }) : new ve({
3438
3438
  keyType: L.create(),
3439
3439
  valueType: e,
3440
3440
  typeName: v.ZodRecord,
@@ -3451,14 +3451,14 @@ class Me extends k {
3451
3451
  expected: p.map,
3452
3452
  received: n.parsedType
3453
3453
  }), w;
3454
- const r = this._def.keyType, i = this._def.valueType, a = [...n.data.entries()].map(([o, u], l) => ({
3454
+ const r = this._def.keyType, a = this._def.valueType, i = [...n.data.entries()].map(([o, u], l) => ({
3455
3455
  key: r._parse(new U(n, o, n.path, [l, "key"])),
3456
- value: i._parse(new U(n, u, n.path, [l, "value"]))
3456
+ value: a._parse(new U(n, u, n.path, [l, "value"]))
3457
3457
  }));
3458
3458
  if (n.common.async) {
3459
3459
  const o = /* @__PURE__ */ new Map();
3460
3460
  return Promise.resolve().then(async () => {
3461
- for (const u of a) {
3461
+ for (const u of i) {
3462
3462
  const l = await u.key, f = await u.value;
3463
3463
  if (l.status === "aborted" || f.status === "aborted")
3464
3464
  return w;
@@ -3468,7 +3468,7 @@ class Me extends k {
3468
3468
  });
3469
3469
  } else {
3470
3470
  const o = /* @__PURE__ */ new Map();
3471
- for (const u of a) {
3471
+ for (const u of i) {
3472
3472
  const l = u.key, f = u.value;
3473
3473
  if (l.status === "aborted" || f.status === "aborted")
3474
3474
  return w;
@@ -3509,8 +3509,8 @@ class ee extends k {
3509
3509
  exact: !1,
3510
3510
  message: r.maxSize.message
3511
3511
  }), s.dirty());
3512
- const i = this._def.valueType;
3513
- function a(u) {
3512
+ const a = this._def.valueType;
3513
+ function i(u) {
3514
3514
  const l = /* @__PURE__ */ new Set();
3515
3515
  for (const f of u) {
3516
3516
  if (f.status === "aborted")
@@ -3519,8 +3519,8 @@ class ee extends k {
3519
3519
  }
3520
3520
  return { status: s.value, value: l };
3521
3521
  }
3522
- const o = [...n.data.values()].map((u, l) => i._parse(new U(n, u, n.path, l)));
3523
- return n.common.async ? Promise.all(o).then((u) => a(u)) : a(o);
3522
+ const o = [...n.data.values()].map((u, l) => a._parse(new U(n, u, n.path, l)));
3523
+ return n.common.async ? Promise.all(o).then((u) => i(u)) : i(o);
3524
3524
  }
3525
3525
  min(e, s) {
3526
3526
  return new ee({
@@ -3568,7 +3568,7 @@ class re extends k {
3568
3568
  s.common.contextualErrorMap,
3569
3569
  s.schemaErrorMap,
3570
3570
  je(),
3571
- de
3571
+ fe
3572
3572
  ].filter((l) => !!l),
3573
3573
  issueData: {
3574
3574
  code: h.invalid_arguments,
@@ -3584,7 +3584,7 @@ class re extends k {
3584
3584
  s.common.contextualErrorMap,
3585
3585
  s.schemaErrorMap,
3586
3586
  je(),
3587
- de
3587
+ fe
3588
3588
  ].filter((l) => !!l),
3589
3589
  issueData: {
3590
3590
  code: h.invalid_return_type,
@@ -3592,19 +3592,19 @@ class re extends k {
3592
3592
  }
3593
3593
  });
3594
3594
  }
3595
- const i = { errorMap: s.common.contextualErrorMap }, a = s.data;
3595
+ const a = { errorMap: s.common.contextualErrorMap }, i = s.data;
3596
3596
  return this._def.returns instanceof oe ? I(async (...o) => {
3597
- const u = new D([]), l = await this._def.args.parseAsync(o, i).catch((C) => {
3597
+ const u = new D([]), l = await this._def.args.parseAsync(o, a).catch((C) => {
3598
3598
  throw u.addIssue(n(o, C)), u;
3599
- }), f = await a(...l);
3600
- return await this._def.returns._def.type.parseAsync(f, i).catch((C) => {
3599
+ }), f = await i(...l);
3600
+ return await this._def.returns._def.type.parseAsync(f, a).catch((C) => {
3601
3601
  throw u.addIssue(r(f, C)), u;
3602
3602
  });
3603
3603
  }) : I((...o) => {
3604
- const u = this._def.args.safeParse(o, i);
3604
+ const u = this._def.args.safeParse(o, a);
3605
3605
  if (!u.success)
3606
3606
  throw new D([n(o, u.error)]);
3607
- const l = a(...u.data), f = this._def.returns.safeParse(l, i);
3607
+ const l = i(...u.data), f = this._def.returns.safeParse(l, a);
3608
3608
  if (!f.success)
3609
3609
  throw new D([r(l, f.error)]);
3610
3610
  return f.data;
@@ -3619,7 +3619,7 @@ class re extends k {
3619
3619
  args(...e) {
3620
3620
  return new re({
3621
3621
  ...this._def,
3622
- args: z.create(e).rest(Y.create())
3622
+ args: $.create(e).rest(Y.create())
3623
3623
  });
3624
3624
  }
3625
3625
  returns(e) {
@@ -3636,14 +3636,14 @@ class re extends k {
3636
3636
  }
3637
3637
  static create(e, s, n) {
3638
3638
  return new re({
3639
- args: e || z.create([]).rest(Y.create()),
3639
+ args: e || $.create([]).rest(Y.create()),
3640
3640
  returns: s || Y.create(),
3641
3641
  typeName: v.ZodFunction,
3642
3642
  ...x(n)
3643
3643
  });
3644
3644
  }
3645
3645
  }
3646
- class ve extends k {
3646
+ class _e extends k {
3647
3647
  get schema() {
3648
3648
  return this._def.getter();
3649
3649
  }
@@ -3652,12 +3652,12 @@ class ve extends k {
3652
3652
  return this._def.getter()._parse({ data: s.data, path: s.path, parent: s });
3653
3653
  }
3654
3654
  }
3655
- ve.create = (t, e) => new ve({
3655
+ _e.create = (t, e) => new _e({
3656
3656
  getter: t,
3657
3657
  typeName: v.ZodLazy,
3658
3658
  ...x(e)
3659
3659
  });
3660
- class _e extends k {
3660
+ class be extends k {
3661
3661
  _parse(e) {
3662
3662
  if (e.data !== this._def.value) {
3663
3663
  const s = this._getOrReturnCtx(e);
@@ -3673,12 +3673,12 @@ class _e extends k {
3673
3673
  return this._def.value;
3674
3674
  }
3675
3675
  }
3676
- _e.create = (t, e) => new _e({
3676
+ be.create = (t, e) => new be({
3677
3677
  value: t,
3678
3678
  typeName: v.ZodLiteral,
3679
3679
  ...x(e)
3680
3680
  });
3681
- function ns(t, e) {
3681
+ function rs(t, e) {
3682
3682
  return new X({
3683
3683
  values: t,
3684
3684
  typeName: v.ZodEnum,
@@ -3733,8 +3733,8 @@ class X extends k {
3733
3733
  return X.create(this.options.filter((s) => !e.includes(s)));
3734
3734
  }
3735
3735
  }
3736
- X.create = ns;
3737
- class be extends k {
3736
+ X.create = rs;
3737
+ class we extends k {
3738
3738
  _parse(e) {
3739
3739
  const s = E.getValidEnumValues(this._def.values), n = this._getOrReturnCtx(e);
3740
3740
  if (n.parsedType !== p.string && n.parsedType !== p.number) {
@@ -3759,7 +3759,7 @@ class be extends k {
3759
3759
  return this._def.values;
3760
3760
  }
3761
3761
  }
3762
- be.create = (t, e) => new be({
3762
+ we.create = (t, e) => new we({
3763
3763
  values: t,
3764
3764
  typeName: v.ZodNativeEnum,
3765
3765
  ...x(e)
@@ -3798,28 +3798,28 @@ class B extends k {
3798
3798
  _parse(e) {
3799
3799
  const { status: s, ctx: n } = this._processInputParams(e), r = this._def.effect || null;
3800
3800
  if (r.type === "preprocess") {
3801
- const a = r.transform(n.data);
3802
- return n.common.async ? Promise.resolve(a).then((o) => this._def.schema._parseAsync({
3801
+ const i = r.transform(n.data);
3802
+ return n.common.async ? Promise.resolve(i).then((o) => this._def.schema._parseAsync({
3803
3803
  data: o,
3804
3804
  path: n.path,
3805
3805
  parent: n
3806
3806
  })) : this._def.schema._parseSync({
3807
- data: a,
3807
+ data: i,
3808
3808
  path: n.path,
3809
3809
  parent: n
3810
3810
  });
3811
3811
  }
3812
- const i = {
3813
- addIssue: (a) => {
3814
- m(n, a), a.fatal ? s.abort() : s.dirty();
3812
+ const a = {
3813
+ addIssue: (i) => {
3814
+ m(n, i), i.fatal ? s.abort() : s.dirty();
3815
3815
  },
3816
3816
  get path() {
3817
3817
  return n.path;
3818
3818
  }
3819
3819
  };
3820
- if (i.addIssue = i.addIssue.bind(i), r.type === "refinement") {
3821
- const a = (o) => {
3822
- const u = r.refinement(o, i);
3820
+ if (a.addIssue = a.addIssue.bind(a), r.type === "refinement") {
3821
+ const i = (o) => {
3822
+ const u = r.refinement(o, a);
3823
3823
  if (n.common.async)
3824
3824
  return Promise.resolve(u);
3825
3825
  if (u instanceof Promise)
@@ -3832,25 +3832,25 @@ class B extends k {
3832
3832
  path: n.path,
3833
3833
  parent: n
3834
3834
  });
3835
- return o.status === "aborted" ? w : (o.status === "dirty" && s.dirty(), a(o.value), { status: s.value, value: o.value });
3835
+ return o.status === "aborted" ? w : (o.status === "dirty" && s.dirty(), i(o.value), { status: s.value, value: o.value });
3836
3836
  } else
3837
- return this._def.schema._parseAsync({ data: n.data, path: n.path, parent: n }).then((o) => o.status === "aborted" ? w : (o.status === "dirty" && s.dirty(), a(o.value).then(() => ({ status: s.value, value: o.value }))));
3837
+ return this._def.schema._parseAsync({ data: n.data, path: n.path, parent: n }).then((o) => o.status === "aborted" ? w : (o.status === "dirty" && s.dirty(), i(o.value).then(() => ({ status: s.value, value: o.value }))));
3838
3838
  }
3839
3839
  if (r.type === "transform")
3840
3840
  if (n.common.async === !1) {
3841
- const a = this._def.schema._parseSync({
3841
+ const i = this._def.schema._parseSync({
3842
3842
  data: n.data,
3843
3843
  path: n.path,
3844
3844
  parent: n
3845
3845
  });
3846
- if (!Le(a))
3847
- return a;
3848
- const o = r.transform(a.value, i);
3846
+ if (!Le(i))
3847
+ return i;
3848
+ const o = r.transform(i.value, a);
3849
3849
  if (o instanceof Promise)
3850
3850
  throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");
3851
3851
  return { status: s.value, value: o };
3852
3852
  } else
3853
- return this._def.schema._parseAsync({ data: n.data, path: n.path, parent: n }).then((a) => Le(a) ? Promise.resolve(r.transform(a.value, i)).then((o) => ({ status: s.value, value: o })) : a);
3853
+ return this._def.schema._parseAsync({ data: n.data, path: n.path, parent: n }).then((i) => Le(i) ? Promise.resolve(r.transform(i.value, a)).then((o) => ({ status: s.value, value: o })) : i);
3854
3854
  E.assertNever(r);
3855
3855
  }
3856
3856
  }
@@ -3892,7 +3892,7 @@ te.create = (t, e) => new te({
3892
3892
  typeName: v.ZodNullable,
3893
3893
  ...x(e)
3894
3894
  });
3895
- class we extends k {
3895
+ class xe extends k {
3896
3896
  _parse(e) {
3897
3897
  const { ctx: s } = this._processInputParams(e);
3898
3898
  let n = s.data;
@@ -3906,7 +3906,7 @@ class we extends k {
3906
3906
  return this._def.innerType;
3907
3907
  }
3908
3908
  }
3909
- we.create = (t, e) => new we({
3909
+ xe.create = (t, e) => new xe({
3910
3910
  innerType: t,
3911
3911
  typeName: v.ZodDefault,
3912
3912
  defaultValue: typeof e.default == "function" ? e.default : () => e.default,
@@ -3927,9 +3927,9 @@ class Ue extends k {
3927
3927
  ...n
3928
3928
  }
3929
3929
  });
3930
- return De(r) ? r.then((i) => ({
3930
+ return De(r) ? r.then((a) => ({
3931
3931
  status: "valid",
3932
- value: i.status === "valid" ? i.value : this._def.catchValue({
3932
+ value: a.status === "valid" ? a.value : this._def.catchValue({
3933
3933
  get error() {
3934
3934
  return new D(n.common.issues);
3935
3935
  },
@@ -3955,7 +3955,7 @@ Ue.create = (t, e) => new Ue({
3955
3955
  catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
3956
3956
  ...x(e)
3957
3957
  });
3958
- class ze extends k {
3958
+ class $e extends k {
3959
3959
  _parse(e) {
3960
3960
  if (this._getType(e) !== p.nan) {
3961
3961
  const n = this._getOrReturnCtx(e);
@@ -3968,12 +3968,12 @@ class ze extends k {
3968
3968
  return { status: "valid", value: e.data };
3969
3969
  }
3970
3970
  }
3971
- ze.create = (t) => new ze({
3971
+ $e.create = (t) => new $e({
3972
3972
  typeName: v.ZodNaN,
3973
3973
  ...x(t)
3974
3974
  });
3975
3975
  const rr = Symbol("zod_brand");
3976
- class rs extends k {
3976
+ class as extends k {
3977
3977
  _parse(e) {
3978
3978
  const { ctx: s } = this._processInputParams(e), n = s.data;
3979
3979
  return this._def.type._parse({
@@ -3991,13 +3991,13 @@ class Te extends k {
3991
3991
  const { status: s, ctx: n } = this._processInputParams(e);
3992
3992
  if (n.common.async)
3993
3993
  return (async () => {
3994
- const i = await this._def.in._parseAsync({
3994
+ const a = await this._def.in._parseAsync({
3995
3995
  data: n.data,
3996
3996
  path: n.path,
3997
3997
  parent: n
3998
3998
  });
3999
- return i.status === "aborted" ? w : i.status === "dirty" ? (s.dirty(), ss(i.value)) : this._def.out._parseAsync({
4000
- data: i.value,
3999
+ return a.status === "aborted" ? w : a.status === "dirty" ? (s.dirty(), ns(a.value)) : this._def.out._parseAsync({
4000
+ data: a.value,
4001
4001
  path: n.path,
4002
4002
  parent: n
4003
4003
  });
@@ -4026,34 +4026,34 @@ class Te extends k {
4026
4026
  });
4027
4027
  }
4028
4028
  }
4029
- const is = (t, e = {}, s) => t ? ae.create().superRefine((n, r) => {
4030
- var i, a;
4029
+ const is = (t, e = {}, s) => t ? ie.create().superRefine((n, r) => {
4030
+ var a, i;
4031
4031
  if (!t(n)) {
4032
- const o = typeof e == "function" ? e(n) : typeof e == "string" ? { message: e } : e, u = (a = (i = o.fatal) !== null && i !== void 0 ? i : s) !== null && a !== void 0 ? a : !0, l = typeof o == "string" ? { message: o } : o;
4032
+ const o = typeof e == "function" ? e(n) : typeof e == "string" ? { message: e } : e, u = (i = (a = o.fatal) !== null && a !== void 0 ? a : s) !== null && i !== void 0 ? i : !0, l = typeof o == "string" ? { message: o } : o;
4033
4033
  r.addIssue({ code: "custom", ...l, fatal: u });
4034
4034
  }
4035
- }) : ae.create(), ir = {
4035
+ }) : ie.create(), ar = {
4036
4036
  object: N.lazycreate
4037
4037
  };
4038
4038
  var v;
4039
4039
  (function(t) {
4040
4040
  t.ZodString = "ZodString", t.ZodNumber = "ZodNumber", t.ZodNaN = "ZodNaN", t.ZodBigInt = "ZodBigInt", t.ZodBoolean = "ZodBoolean", t.ZodDate = "ZodDate", t.ZodSymbol = "ZodSymbol", t.ZodUndefined = "ZodUndefined", t.ZodNull = "ZodNull", t.ZodAny = "ZodAny", t.ZodUnknown = "ZodUnknown", t.ZodNever = "ZodNever", t.ZodVoid = "ZodVoid", t.ZodArray = "ZodArray", t.ZodObject = "ZodObject", t.ZodUnion = "ZodUnion", t.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", t.ZodIntersection = "ZodIntersection", t.ZodTuple = "ZodTuple", t.ZodRecord = "ZodRecord", t.ZodMap = "ZodMap", t.ZodSet = "ZodSet", t.ZodFunction = "ZodFunction", t.ZodLazy = "ZodLazy", t.ZodLiteral = "ZodLiteral", t.ZodEnum = "ZodEnum", t.ZodEffects = "ZodEffects", t.ZodNativeEnum = "ZodNativeEnum", t.ZodOptional = "ZodOptional", t.ZodNullable = "ZodNullable", t.ZodDefault = "ZodDefault", t.ZodCatch = "ZodCatch", t.ZodPromise = "ZodPromise", t.ZodBranded = "ZodBranded", t.ZodPipeline = "ZodPipeline";
4041
4041
  })(v || (v = {}));
4042
- const ar = (t, e = {
4042
+ const ir = (t, e = {
4043
4043
  message: `Input not instance of ${t.name}`
4044
- }) => is((s) => s instanceof t, e), as = L.create, os = q.create, or = ze.create, lr = G.create, ls = fe.create, cr = Q.create, ur = Pe.create, dr = he.create, fr = pe.create, hr = ae.create, pr = Y.create, mr = J.create, yr = Be.create, gr = P.create, vr = N.create, _r = N.strictCreate, br = me.create, wr = Ke.create, xr = ye.create, kr = z.create, Sr = ge.create, Tr = Me.create, Er = ee.create, Or = re.create, Nr = ve.create, Cr = _e.create, Ar = X.create, Rr = be.create, Ir = oe.create, Nt = B.create, jr = H.create, Zr = te.create, Lr = B.createWithPreprocess, Dr = Te.create, Pr = () => as().optional(), Br = () => os().optional(), Mr = () => ls().optional(), Ur = {
4044
+ }) => is((s) => s instanceof t, e), os = L.create, ls = q.create, or = $e.create, lr = G.create, cs = he.create, cr = Q.create, ur = Pe.create, dr = pe.create, fr = me.create, hr = ie.create, pr = Y.create, mr = J.create, yr = Be.create, gr = P.create, vr = N.create, _r = N.strictCreate, br = ye.create, wr = Ke.create, xr = ge.create, kr = $.create, Sr = ve.create, Tr = Me.create, Er = ee.create, Or = re.create, Nr = _e.create, Cr = be.create, Ar = X.create, Rr = we.create, Ir = oe.create, At = B.create, jr = H.create, Zr = te.create, Lr = B.createWithPreprocess, Dr = Te.create, Pr = () => os().optional(), Br = () => ls().optional(), Mr = () => cs().optional(), Ur = {
4045
4045
  string: (t) => L.create({ ...t, coerce: !0 }),
4046
4046
  number: (t) => q.create({ ...t, coerce: !0 }),
4047
- boolean: (t) => fe.create({
4047
+ boolean: (t) => he.create({
4048
4048
  ...t,
4049
4049
  coerce: !0
4050
4050
  }),
4051
4051
  bigint: (t) => G.create({ ...t, coerce: !0 }),
4052
4052
  date: (t) => Q.create({ ...t, coerce: !0 })
4053
- }, zr = w;
4053
+ }, $r = w;
4054
4054
  var d = /* @__PURE__ */ Object.freeze({
4055
4055
  __proto__: null,
4056
- defaultErrorMap: de,
4056
+ defaultErrorMap: fe,
4057
4057
  setErrorMap: Hn,
4058
4058
  getErrorMap: je,
4059
4059
  makeIssue: Ze,
@@ -4061,17 +4061,17 @@ var d = /* @__PURE__ */ Object.freeze({
4061
4061
  addIssueToContext: m,
4062
4062
  ParseStatus: R,
4063
4063
  INVALID: w,
4064
- DIRTY: ss,
4064
+ DIRTY: ns,
4065
4065
  OK: I,
4066
4066
  isAborted: it,
4067
- isDirty: at,
4067
+ isDirty: ot,
4068
4068
  isValid: Le,
4069
4069
  isAsync: De,
4070
4070
  get util() {
4071
4071
  return E;
4072
4072
  },
4073
4073
  get objectUtil() {
4074
- return rt;
4074
+ return at;
4075
4075
  },
4076
4076
  ZodParsedType: p,
4077
4077
  getParsedType: K,
@@ -4079,44 +4079,44 @@ var d = /* @__PURE__ */ Object.freeze({
4079
4079
  ZodString: L,
4080
4080
  ZodNumber: q,
4081
4081
  ZodBigInt: G,
4082
- ZodBoolean: fe,
4082
+ ZodBoolean: he,
4083
4083
  ZodDate: Q,
4084
4084
  ZodSymbol: Pe,
4085
- ZodUndefined: he,
4086
- ZodNull: pe,
4087
- ZodAny: ae,
4085
+ ZodUndefined: pe,
4086
+ ZodNull: me,
4087
+ ZodAny: ie,
4088
4088
  ZodUnknown: Y,
4089
4089
  ZodNever: J,
4090
4090
  ZodVoid: Be,
4091
4091
  ZodArray: P,
4092
4092
  ZodObject: N,
4093
- ZodUnion: me,
4093
+ ZodUnion: ye,
4094
4094
  ZodDiscriminatedUnion: Ke,
4095
- ZodIntersection: ye,
4096
- ZodTuple: z,
4097
- ZodRecord: ge,
4095
+ ZodIntersection: ge,
4096
+ ZodTuple: $,
4097
+ ZodRecord: ve,
4098
4098
  ZodMap: Me,
4099
4099
  ZodSet: ee,
4100
4100
  ZodFunction: re,
4101
- ZodLazy: ve,
4102
- ZodLiteral: _e,
4101
+ ZodLazy: _e,
4102
+ ZodLiteral: be,
4103
4103
  ZodEnum: X,
4104
- ZodNativeEnum: be,
4104
+ ZodNativeEnum: we,
4105
4105
  ZodPromise: oe,
4106
4106
  ZodEffects: B,
4107
4107
  ZodTransformer: B,
4108
4108
  ZodOptional: H,
4109
4109
  ZodNullable: te,
4110
- ZodDefault: we,
4110
+ ZodDefault: xe,
4111
4111
  ZodCatch: Ue,
4112
- ZodNaN: ze,
4112
+ ZodNaN: $e,
4113
4113
  BRAND: rr,
4114
- ZodBranded: rs,
4114
+ ZodBranded: as,
4115
4115
  ZodPipeline: Te,
4116
4116
  custom: is,
4117
4117
  Schema: k,
4118
4118
  ZodSchema: k,
4119
- late: ir,
4119
+ late: ar,
4120
4120
  get ZodFirstPartyTypeKind() {
4121
4121
  return v;
4122
4122
  },
@@ -4124,13 +4124,13 @@ var d = /* @__PURE__ */ Object.freeze({
4124
4124
  any: hr,
4125
4125
  array: gr,
4126
4126
  bigint: lr,
4127
- boolean: ls,
4127
+ boolean: cs,
4128
4128
  date: cr,
4129
4129
  discriminatedUnion: wr,
4130
- effect: Nt,
4130
+ effect: At,
4131
4131
  enum: Ar,
4132
4132
  function: Or,
4133
- instanceof: ar,
4133
+ instanceof: ir,
4134
4134
  intersection: xr,
4135
4135
  lazy: Nr,
4136
4136
  literal: Cr,
@@ -4140,7 +4140,7 @@ var d = /* @__PURE__ */ Object.freeze({
4140
4140
  never: mr,
4141
4141
  null: fr,
4142
4142
  nullable: Zr,
4143
- number: os,
4143
+ number: ls,
4144
4144
  object: vr,
4145
4145
  oboolean: Mr,
4146
4146
  onumber: Br,
@@ -4152,25 +4152,25 @@ var d = /* @__PURE__ */ Object.freeze({
4152
4152
  record: Sr,
4153
4153
  set: Er,
4154
4154
  strictObject: _r,
4155
- string: as,
4155
+ string: os,
4156
4156
  symbol: ur,
4157
- transformer: Nt,
4157
+ transformer: At,
4158
4158
  tuple: kr,
4159
4159
  undefined: dr,
4160
4160
  union: br,
4161
4161
  unknown: pr,
4162
4162
  void: yr,
4163
- NEVER: zr,
4163
+ NEVER: $r,
4164
4164
  ZodIssueCode: h,
4165
4165
  quotelessJson: Fn,
4166
4166
  ZodError: D
4167
4167
  });
4168
- class $r {
4168
+ class zr {
4169
4169
  constructor(e, s) {
4170
- b(this, "client");
4171
- b(this, "parentId");
4172
- b(this, "images");
4173
- b(this, "length");
4170
+ _(this, "client");
4171
+ _(this, "parentId");
4172
+ _(this, "images");
4173
+ _(this, "length");
4174
4174
  this.client = e, this.parentId = s, this.images = [], this.length = this.images.length;
4175
4175
  }
4176
4176
  async add(e) {
@@ -4192,15 +4192,15 @@ const Vr = d.object({
4192
4192
  });
4193
4193
  class Fr {
4194
4194
  constructor(e) {
4195
- b(this, "handle");
4196
- b(this, "url");
4197
- b(this, "width");
4198
- b(this, "height");
4199
- b(this, "orientation");
4200
- b(this, "taken_at");
4201
- b(this, "camera_make");
4202
- b(this, "camera");
4203
- b(this, "filename");
4195
+ _(this, "handle");
4196
+ _(this, "url");
4197
+ _(this, "width");
4198
+ _(this, "height");
4199
+ _(this, "orientation");
4200
+ _(this, "taken_at");
4201
+ _(this, "camera_make");
4202
+ _(this, "camera");
4203
+ _(this, "filename");
4204
4204
  this.handle = e.handle, this.url = e.url, this.width = e.width, this.height = e.height, this.orientation = e.rotation, this.taken_at = e.captureTime, this.camera_make = e.cameraMake, this.camera = e.cameraModel, this.filename = e.filename;
4205
4205
  }
4206
4206
  }
@@ -4210,14 +4210,15 @@ const Hr = [
4210
4210
  "submitted",
4211
4211
  "storyboarding",
4212
4212
  "deduplication",
4213
- "image selection",
4213
+ "image-selection",
4214
4214
  "designing",
4215
- "layouting",
4215
+ "laying-out",
4216
4216
  "embellishing",
4217
4217
  "polishing",
4218
4218
  "ready",
4219
- "error"
4220
- ], cs = [
4219
+ "error",
4220
+ "cancelled"
4221
+ ], us = [
4221
4222
  "baby",
4222
4223
  "birthday",
4223
4224
  "default",
@@ -4233,7 +4234,7 @@ const Hr = [
4233
4234
  "travel",
4234
4235
  "wedding",
4235
4236
  "year-in-review"
4236
- ], us = {
4237
+ ], ds = {
4237
4238
  1005: { slug: "modern-black-sfly" },
4238
4239
  1101: { slug: "bon-voyage-sfly" },
4239
4240
  1103: { slug: "fun-in-the-sun-sfly" },
@@ -4394,92 +4395,68 @@ const Hr = [
4394
4395
  6097: { slug: "boho-wedding-sfly" },
4395
4396
  6098: { slug: "black-and-white-rustic-sfly" },
4396
4397
  6099: { slug: "bright-color-pop-sfly" }
4397
- }, ds = ["8x8", "10x10", "12x12", "8x11", "11x8", "11x14"], fs = ["sc", "hc", "pl"], hs = ["sp", "sl", "dl"], ps = ["low", "medium", "high"], ms = ["best", "most", "all"], ys = ["none", "few", "lots"], gs = ["none", "few", "lots"], Jr = "https://api.sfly-sls.magicbook.io", Wr = "wss://socket.sfly-sls.magicbook.io", Kr = parseInt("300000") || 3e5;
4398
- class qr {
4398
+ }, fs = ["8x8", "10x10", "12x12", "8x11", "11x8", "11x14"], hs = ["sc", "hc", "pl"], ps = ["sp", "sl", "dl"], ms = ["low", "medium", "high"], ys = ["best", "most", "all"], gs = ["none", "few", "lots"], vs = ["none", "few", "lots"], Jr = {
4399
+ state: "error",
4400
+ slug: "error",
4401
+ progress: 100,
4402
+ message: "Design failed"
4403
+ }, Wr = {
4404
+ state: "cancelled",
4405
+ slug: "cancelled",
4406
+ progress: 100,
4407
+ message: "Design cancelled"
4408
+ };
4409
+ class Kr {
4399
4410
  constructor(e) {
4400
- b(this, "occasion");
4401
- b(this, "style");
4402
- b(this, "book_size");
4403
- b(this, "cover_type");
4404
- b(this, "page_type");
4405
- b(this, "image_density");
4406
- b(this, "image_filtering_level");
4407
- b(this, "embellishment_level");
4408
- b(this, "text_sticker_level");
4411
+ _(this, "occasion");
4412
+ _(this, "style");
4413
+ _(this, "book_size");
4414
+ _(this, "cover_type");
4415
+ _(this, "page_type");
4416
+ _(this, "image_density");
4417
+ _(this, "image_filtering_level");
4418
+ _(this, "embellishment_level");
4419
+ _(this, "text_sticker_level");
4409
4420
  this.occasion = e.occasion, this.style = e.style, this.book_size = e.book_size, this.cover_type = e.cover_type, this.page_type = e.page_type, this.image_density = e.image_density, this.image_filtering_level = e.image_filtering_level, this.embellishment_level = e.embellishment_level, this.text_sticker_level = e.text_sticker_level;
4410
4421
  }
4411
4422
  }
4412
- const Gr = d.object({
4413
- occasion: d.enum(cs),
4423
+ const qr = d.object({
4424
+ occasion: d.enum(us),
4414
4425
  style: d.string(),
4415
- book_size: d.enum(ds),
4416
- cover_type: d.enum(fs),
4417
- page_type: d.enum(hs),
4418
- image_density: d.enum(ps),
4419
- image_filtering_level: d.enum(ms),
4420
- embellishment_level: d.enum(ys),
4421
- text_sticker_level: d.enum(gs)
4422
- }), vs = d.object({
4426
+ book_size: d.enum(fs),
4427
+ cover_type: d.enum(hs),
4428
+ page_type: d.enum(ps),
4429
+ image_density: d.enum(ms),
4430
+ image_filtering_level: d.enum(ys),
4431
+ embellishment_level: d.enum(gs),
4432
+ text_sticker_level: d.enum(vs)
4433
+ }), vt = d.object({
4423
4434
  id: d.string(),
4424
4435
  title: d.string(),
4425
- design_request: Gr,
4436
+ design_request: qr,
4426
4437
  state: d.enum(Hr).optional(),
4427
4438
  guid: d.string().optional()
4428
4439
  });
4429
- class yt {
4440
+ class qe {
4430
4441
  constructor(e) {
4431
- b(this, "id");
4432
- b(this, "title");
4433
- b(this, "design_request");
4434
- b(this, "state");
4435
- b(this, "guid");
4436
- this.id = e.id, this.title = e.title, this.design_request = new qr(e.design_request), this.state = e.state, this.guid = e.guid;
4442
+ _(this, "id");
4443
+ _(this, "title");
4444
+ _(this, "design_request");
4445
+ _(this, "state");
4446
+ _(this, "guid");
4447
+ this.id = e.id, this.title = e.title, this.design_request = new Kr(e.design_request), this.state = e.state, this.guid = e.guid;
4437
4448
  }
4438
4449
  }
4439
- function Ct(t) {
4440
- const e = us[t.style].slug, s = It(JSON.parse(JSON.stringify(t)));
4441
- return s.style = e, new yt({
4442
- id: t.parentId,
4443
- guid: t.guid,
4444
- title: t.title,
4445
- design_request: s
4446
- });
4447
- }
4448
- const Qe = d.object({
4449
- maxPageCount: d.number(),
4450
- minPageCount: d.number(),
4451
- maxImageCount: d.number(),
4452
- avgImageCount: d.number(),
4453
- minImageCount: d.number()
4454
- }), Xr = d.object({
4455
- high: Qe,
4456
- medium: Qe,
4457
- low: Qe
4458
- }), Yr = d.object({
4459
- densities: Xr
4460
- });
4461
- async function Qr({ apiKey: t, apiHost: e }, s, n, r) {
4462
- return Se(async () => {
4463
- const i = await Qt(
4464
- {
4465
- url: `${e}/v1/designoptions/booksize/${s}/imagecount/${n}
4466
- /imagefilteringlevel/${r}`,
4467
- apiKey: t
4468
- }
4469
- ), a = jt(i.data);
4470
- return Yr.parse(a);
4471
- });
4472
- }
4473
- const ei = d.object({
4450
+ const Gr = d.object({
4474
4451
  photoRefId: d.string(),
4475
4452
  finalCrop: d.array(d.number())
4476
- }), ti = d.object({
4453
+ }), Xr = d.object({
4477
4454
  x: d.number(),
4478
4455
  y: d.number(),
4479
4456
  width: d.number().optional(),
4480
4457
  height: d.number().optional(),
4481
4458
  rotation: d.number()
4482
- }), si = d.object({
4459
+ }), Yr = d.object({
4483
4460
  id: d.string(),
4484
4461
  llx: d.number(),
4485
4462
  lly: d.number(),
@@ -4493,13 +4470,13 @@ const ei = d.object({
4493
4470
  source: d.string(),
4494
4471
  rotation: d.number(),
4495
4472
  uploadTime: d.string()
4496
- }), ni = d.object({
4473
+ }), Qr = d.object({
4497
4474
  key: d.string(),
4498
4475
  value: d.any()
4499
- }), ri = d.object({
4476
+ }), ea = d.object({
4500
4477
  type: d.string(),
4501
- imageAssignment: ei.optional(),
4502
- position: ti,
4478
+ imageAssignment: Gr.optional(),
4479
+ position: Xr,
4503
4480
  seqNum: d.number(),
4504
4481
  z: d.number(),
4505
4482
  id: d.string().optional(),
@@ -4510,71 +4487,114 @@ const ei = d.object({
4510
4487
  fontSize: d.number().optional(),
4511
4488
  fontColor: d.string().optional(),
4512
4489
  frame: d.string().optional()
4513
- }), ii = d.object({
4490
+ }), ta = d.object({
4514
4491
  url: d.string(),
4515
4492
  encryptId: d.string(),
4516
4493
  photoRefId: d.string(),
4517
4494
  photoId: d.string(),
4518
- photoMetadata: si
4519
- }), ai = d.object({
4520
- properties: d.array(ni)
4521
- }), oi = d.object({
4495
+ photoMetadata: Yr
4496
+ }), sa = d.object({
4497
+ properties: d.array(Qr)
4498
+ }), na = d.object({
4522
4499
  backgroundId: d.string().nullable(),
4523
- assets: d.array(ri).optional()
4524
- }), li = d.object({
4500
+ assets: d.array(ea).optional()
4501
+ }), ra = d.object({
4525
4502
  pageNum: d.number(),
4526
4503
  type: d.string(),
4527
- canvas: oi
4528
- }), ci = d.object({
4529
- pages: d.array(li),
4530
- photoStrip: d.array(ii)
4531
- }), ui = d.object({
4504
+ canvas: na
4505
+ }), aa = d.object({
4506
+ pages: d.array(ra),
4507
+ photoStrip: d.array(ta)
4508
+ }), ia = d.object({
4532
4509
  title: d.string(),
4533
4510
  binding: d.string(),
4534
4511
  coverSpecId: d.string(),
4535
4512
  styleId: d.number(),
4536
4513
  userId: d.string(),
4537
- magicShopBook: ci,
4538
- reportingData: ai
4514
+ magicShopBook: aa,
4515
+ reportingData: sa
4539
4516
  });
4540
- async function di({ apiHost: t, apiKey: e }, s) {
4541
- return Se(async () => {
4542
- const n = (await es({ url: `${t}/v1/books`, apiKey: e, payload: s })).data;
4543
- return vs.safeParse(n), new yt(n);
4517
+ async function oa({ apiHost: t, apiKey: e }, s) {
4518
+ return ce(async () => {
4519
+ const n = (await gt({ url: `${t}/v1/books`, apiKey: e, payload: s })).data;
4520
+ return vt.safeParse(n), new qe(n);
4521
+ });
4522
+ }
4523
+ async function Rt({ apiHost: t, apiKey: e }, s) {
4524
+ return ce(async () => {
4525
+ const n = (await zn({ url: `${t}/v1/books/${s.id}`, apiKey: e, payload: s })).data;
4526
+ return vt.safeParse(n), new qe(n);
4527
+ });
4528
+ }
4529
+ async function la({ apiHost: t, apiKey: e }, s) {
4530
+ return ce(async () => {
4531
+ const n = (await gt({ url: `${t}/v1/books/${s}/cancel`, apiKey: e })).data;
4532
+ return vt.safeParse(n), new qe(n);
4544
4533
  });
4545
4534
  }
4546
- async function At({ apiHost: t, apiKey: e }, s) {
4547
- return Se(async () => {
4548
- const n = (await $n({ url: `${t}/v1/books/${s.id}`, apiKey: e, payload: s })).data;
4549
- return vs.safeParse(n), new yt(n);
4535
+ async function ca({ apiHost: t, apiKey: e }, s) {
4536
+ return ce(async () => {
4537
+ const n = (await ts({ url: `${t}/v1/books/${s}/format/galleon`, apiKey: e })).data;
4538
+ return ia.parse(n);
4550
4539
  });
4551
4540
  }
4552
- async function fi({ apiHost: t, apiKey: e }, s) {
4553
- return Se(async () => {
4554
- const n = (await Qt({ url: `${t}/v1/books/${s}/format/galleon`, apiKey: e })).data;
4555
- return ui.parse(n);
4541
+ const ua = "https://api.sfly-sls.magicbook.io", da = "wss://socket.sfly-sls.magicbook.io", fa = parseInt("30000") || 3e4;
4542
+ function It(t) {
4543
+ const e = ds[t.style].slug, s = Zt(JSON.parse(JSON.stringify(t)));
4544
+ return s.style = e, new qe({
4545
+ id: t.parentId,
4546
+ guid: t.guid,
4547
+ title: t.title,
4548
+ design_request: s
4549
+ });
4550
+ }
4551
+ const et = d.object({
4552
+ maxPageCount: d.number(),
4553
+ minPageCount: d.number(),
4554
+ maxImageCount: d.number(),
4555
+ avgImageCount: d.number(),
4556
+ minImageCount: d.number()
4557
+ }), ha = d.object({
4558
+ high: et,
4559
+ medium: et,
4560
+ low: et
4561
+ }), pa = d.object({
4562
+ densities: ha
4563
+ });
4564
+ async function ma({ apiKey: t, apiHost: e }, s, n, r) {
4565
+ return ce(async () => {
4566
+ const a = await ts(
4567
+ {
4568
+ url: `${e}/v1/designoptions/booksize/${s}/imagecount/${n}
4569
+ /imagefilteringlevel/${r}`,
4570
+ apiKey: t
4571
+ }
4572
+ ), i = Lt(a.data);
4573
+ return pa.parse(i);
4556
4574
  });
4557
4575
  }
4558
- class hi {
4576
+ class ya {
4559
4577
  constructor(e, s, n) {
4560
- b(this, "client");
4561
- b(this, "parentId");
4562
- b(this, "title");
4563
- b(this, "occasion");
4564
- b(this, "style");
4565
- b(this, "bookSize");
4566
- b(this, "coverType");
4567
- b(this, "pageType");
4568
- b(this, "imageDensity");
4569
- b(this, "imageFilteringLevel");
4570
- b(this, "embellishmentLevel");
4571
- b(this, "textStickerLevel");
4572
- b(this, "images");
4573
- b(this, "guid");
4574
- this.client = s, this.parentId = e, this.title = (n == null ? void 0 : n.title) || "", this.occasion = (n == null ? void 0 : n.occasion) || cs[0], this.style = (n == null ? void 0 : n.style) || parseInt(Object.keys(us)[0]), this.bookSize = (n == null ? void 0 : n.bookSize) || ds[0], this.coverType = (n == null ? void 0 : n.coverType) || fs[0], this.pageType = (n == null ? void 0 : n.pageType) || hs[0], this.imageDensity = (n == null ? void 0 : n.imageDensity) || ps[0], this.imageFilteringLevel = (n == null ? void 0 : n.imageFilteringLevel) || ms[0], this.embellishmentLevel = (n == null ? void 0 : n.embellishmentLevel) || ys[0], this.textStickerLevel = (n == null ? void 0 : n.textStickerLevel) || gs[0], this.images = new $r(this.client, this.parentId);
4578
+ _(this, "client");
4579
+ _(this, "webSocket");
4580
+ _(this, "state");
4581
+ _(this, "parentId");
4582
+ _(this, "title");
4583
+ _(this, "occasion");
4584
+ _(this, "style");
4585
+ _(this, "bookSize");
4586
+ _(this, "coverType");
4587
+ _(this, "pageType");
4588
+ _(this, "imageDensity");
4589
+ _(this, "imageFilteringLevel");
4590
+ _(this, "embellishmentLevel");
4591
+ _(this, "textStickerLevel");
4592
+ _(this, "images");
4593
+ _(this, "guid");
4594
+ this.parentId = e, this.client = s, this.webSocket = new WebSocket(`${this.client.webSocketHost}/?book_id=${this.parentId}`), this.state = "new", this.title = (n == null ? void 0 : n.title) || "", this.occasion = (n == null ? void 0 : n.occasion) || us[0], this.style = (n == null ? void 0 : n.style) || parseInt(Object.keys(ds)[0]), this.bookSize = (n == null ? void 0 : n.bookSize) || fs[0], this.coverType = (n == null ? void 0 : n.coverType) || hs[0], this.pageType = (n == null ? void 0 : n.pageType) || ps[0], this.imageDensity = (n == null ? void 0 : n.imageDensity) || ms[0], this.imageFilteringLevel = (n == null ? void 0 : n.imageFilteringLevel) || ys[0], this.embellishmentLevel = (n == null ? void 0 : n.embellishmentLevel) || gs[0], this.textStickerLevel = (n == null ? void 0 : n.textStickerLevel) || vs[0], this.images = new zr(this.client, this.parentId);
4575
4595
  }
4576
4596
  async getOptions(e) {
4577
- return await Qr(
4597
+ return await ma(
4578
4598
  this.client,
4579
4599
  this.bookSize,
4580
4600
  e || this.images.length,
@@ -4582,58 +4602,65 @@ class hi {
4582
4602
  );
4583
4603
  }
4584
4604
  async submit(e) {
4585
- return e && Object.assign(this, e), this.getProgress(), await At(this.client, Ct(this)), this;
4605
+ return e && Object.assign(this, e), this.getProgress(), await Rt(this.client, It(this)), this;
4586
4606
  }
4587
4607
  async setGuid(e) {
4588
- return this.guid = e, await At(this.client, Ct(this)), this.guid;
4608
+ return this.guid = e, await Rt(this.client, It(this)), this.guid;
4589
4609
  }
4590
4610
  async getJSON() {
4591
- return await fi(this.client, this.parentId);
4611
+ return await ca(this.client, this.parentId);
4612
+ }
4613
+ async cancel() {
4614
+ return await la(this.client, this.parentId), this.state = "cancelled", await this.eventHandler(Wr), this;
4615
+ }
4616
+ async eventHandler(e, s = "MagicBook.designRequestUpdated") {
4617
+ const n = new CustomEvent(s, { detail: e });
4618
+ window.dispatchEvent(n), ["error", "ready", "cancelled"].includes(e.slug) && this.webSocket.close();
4619
+ }
4620
+ timeoutHandler() {
4621
+ return setTimeout(() => {
4622
+ this.eventHandler(Jr);
4623
+ }, fa);
4592
4624
  }
4593
4625
  async getProgress() {
4594
- let e = "new";
4595
- const s = new WebSocket(`${this.client.webSocketHost}/?book_id=${this.parentId}`), n = setTimeout(() => {
4596
- throw s.close(), new Error("Something went wrong. Please try again.");
4597
- }, Kr);
4598
- s.onmessage = (r) => {
4599
- const i = JSON.parse(r.data);
4600
- if (e !== i.state) {
4601
- e = i.state;
4602
- const a = new CustomEvent("MagicBook.designRequestUpdated", { detail: i });
4603
- ["error", "ready"].includes(i.state) && (s.close(), clearTimeout(n)), window.dispatchEvent(a);
4604
- }
4605
- };
4626
+ let e;
4627
+ this.webSocket.onmessage = (s) => {
4628
+ const n = JSON.parse(s.data);
4629
+ this.state !== n.slug && (e && clearTimeout(e), e = this.timeoutHandler(), this.eventHandler(n), this.state = n.slug);
4630
+ }, this.webSocket.onclose = () => clearTimeout(e);
4606
4631
  }
4607
4632
  }
4608
- class mi {
4609
- constructor(e, s = Jr, n = Wr) {
4610
- b(this, "apiKey");
4611
- b(this, "apiHost");
4612
- b(this, "webSocketHost");
4633
+ class va {
4634
+ constructor(e, s = ua, n = da) {
4635
+ _(this, "apiKey");
4636
+ _(this, "apiHost");
4637
+ _(this, "webSocketHost");
4613
4638
  this.apiKey = e, this.apiHost = s, this.webSocketHost = n;
4614
4639
  }
4615
4640
  async createDesignRequest(e) {
4616
- const s = await di(this);
4617
- return new hi(s.id, this, e);
4641
+ const s = await oa(this);
4642
+ return new ya(s.id, this, e);
4618
4643
  }
4619
4644
  }
4620
4645
  export {
4621
- hi as DesignRequest,
4646
+ ya as DesignRequest,
4622
4647
  Fr as ImageServer,
4623
- $r as Images,
4624
- mi as MagicBookClient,
4625
- ds as bookSizes,
4626
- fs as coverTypes,
4627
- Yr as designOptionsSchema,
4628
- ys as embellishmentLevels,
4629
- ps as imageDensities,
4630
- Qe as imageDensityOptionSchema,
4631
- Xr as imageDensityOptionsSchema,
4632
- ms as imageFilteringLevels,
4648
+ zr as Images,
4649
+ va as MagicBookClient,
4650
+ fs as bookSizes,
4651
+ Wr as cancelledMessage,
4652
+ hs as coverTypes,
4653
+ pa as designOptionsSchema,
4654
+ gs as embellishmentLevels,
4655
+ ms as imageDensities,
4656
+ et as imageDensityOptionSchema,
4657
+ ha as imageDensityOptionsSchema,
4658
+ ys as imageFilteringLevels,
4633
4659
  Vr as imageServerSchema,
4634
- cs as occasions,
4635
- hs as pageTypes,
4660
+ us as occasions,
4661
+ ps as pageTypes,
4636
4662
  Hr as states,
4637
- us as styles,
4638
- gs as textStickerLevels
4663
+ ds as styles,
4664
+ vs as textStickerLevels,
4665
+ Jr as timeoutMessage
4639
4666
  };