@qikdev/sdk 0.1.206 → 0.1.208

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -68,45 +68,45 @@ var Ye, Or;
68
68
  function Xr() {
69
69
  if (Or) return Ye;
70
70
  Or = 1;
71
- var e = "Function.prototype.bind called on incompatible ", r = Object.prototype.toString, a = Math.max, t = "[object Function]", n = function(d, h) {
72
- for (var w = [], i = 0; i < d.length; i += 1)
73
- w[i] = d[i];
74
- for (var c = 0; c < h.length; c += 1)
75
- w[c + d.length] = h[c];
71
+ var e = "Function.prototype.bind called on incompatible ", r = Object.prototype.toString, a = Math.max, t = "[object Function]", n = function(p, y) {
72
+ for (var w = [], A = 0; A < p.length; A += 1)
73
+ w[A] = p[A];
74
+ for (var u = 0; u < y.length; u += 1)
75
+ w[u + p.length] = y[u];
76
76
  return w;
77
- }, o = function(d, h) {
78
- for (var w = [], i = h, c = 0; i < d.length; i += 1, c += 1)
79
- w[c] = d[i];
77
+ }, o = function(p, y) {
78
+ for (var w = [], A = y, u = 0; A < p.length; A += 1, u += 1)
79
+ w[u] = p[A];
80
80
  return w;
81
- }, m = function(u, d) {
82
- for (var h = "", w = 0; w < u.length; w += 1)
83
- h += u[w], w + 1 < u.length && (h += d);
84
- return h;
81
+ }, m = function(l, p) {
82
+ for (var y = "", w = 0; w < l.length; w += 1)
83
+ y += l[w], w + 1 < l.length && (y += p);
84
+ return y;
85
85
  };
86
- return Ye = function(d) {
87
- var h = this;
88
- if (typeof h != "function" || r.apply(h) !== t)
89
- throw new TypeError(e + h);
90
- for (var w = o(arguments, 1), i, c = function() {
91
- if (this instanceof i) {
92
- var l = h.apply(
86
+ return Ye = function(p) {
87
+ var y = this;
88
+ if (typeof y != "function" || r.apply(y) !== t)
89
+ throw new TypeError(e + y);
90
+ for (var w = o(arguments, 1), A, u = function() {
91
+ if (this instanceof A) {
92
+ var c = y.apply(
93
93
  this,
94
94
  n(w, arguments)
95
95
  );
96
- return Object(l) === l ? l : this;
96
+ return Object(c) === c ? c : this;
97
97
  }
98
- return h.apply(
99
- d,
98
+ return y.apply(
99
+ p,
100
100
  n(w, arguments)
101
101
  );
102
- }, s = a(0, h.length - w.length), p = [], A = 0; A < s; A++)
103
- p[A] = "$" + A;
104
- if (i = Function("binder", "return function (" + m(p, ",") + "){ return binder.apply(this,arguments); }")(c), h.prototype) {
105
- var y = function() {
102
+ }, s = a(0, y.length - w.length), i = [], S = 0; S < s; S++)
103
+ i[S] = "$" + S;
104
+ if (A = Function("binder", "return function (" + m(i, ",") + "){ return binder.apply(this,arguments); }")(u), y.prototype) {
105
+ var f = function() {
106
106
  };
107
- y.prototype = h.prototype, i.prototype = new y(), y.prototype = null;
107
+ f.prototype = y.prototype, A.prototype = new f(), f.prototype = null;
108
108
  }
109
- return i;
109
+ return A;
110
110
  }, Ye;
111
111
  }
112
112
  var Xe, Mr;
@@ -127,9 +127,9 @@ var rr, Ir;
127
127
  function hr() {
128
128
  if (Ir) return rr;
129
129
  Ir = 1;
130
- var e, r = SyntaxError, a = Function, t = TypeError, n = function(F) {
130
+ var e, r = SyntaxError, a = Function, t = TypeError, n = function(U) {
131
131
  try {
132
- return a('"use strict"; return (' + F + ").constructor;")();
132
+ return a('"use strict"; return (' + U + ").constructor;")();
133
133
  } catch {
134
134
  }
135
135
  }, o = Object.getOwnPropertyDescriptor;
@@ -141,7 +141,7 @@ function hr() {
141
141
  }
142
142
  var m = function() {
143
143
  throw new t();
144
- }, u = o ? (function() {
144
+ }, l = o ? (function() {
145
145
  try {
146
146
  return arguments.callee, m;
147
147
  } catch {
@@ -151,13 +151,13 @@ function hr() {
151
151
  return m;
152
152
  }
153
153
  }
154
- })() : m, d = Yr()(), h = Object.getPrototypeOf || function(F) {
155
- return F.__proto__;
156
- }, w = {}, i = typeof Uint8Array > "u" ? e : h(Uint8Array), c = {
154
+ })() : m, p = Yr()(), y = Object.getPrototypeOf || function(U) {
155
+ return U.__proto__;
156
+ }, w = {}, A = typeof Uint8Array > "u" ? e : y(Uint8Array), u = {
157
157
  "%AggregateError%": typeof AggregateError > "u" ? e : AggregateError,
158
158
  "%Array%": Array,
159
159
  "%ArrayBuffer%": typeof ArrayBuffer > "u" ? e : ArrayBuffer,
160
- "%ArrayIteratorPrototype%": d ? h([][Symbol.iterator]()) : e,
160
+ "%ArrayIteratorPrototype%": p ? y([][Symbol.iterator]()) : e,
161
161
  "%AsyncFromSyncIteratorPrototype%": e,
162
162
  "%AsyncFunction%": w,
163
163
  "%AsyncGenerator%": w,
@@ -186,10 +186,10 @@ function hr() {
186
186
  "%Int32Array%": typeof Int32Array > "u" ? e : Int32Array,
187
187
  "%isFinite%": isFinite,
188
188
  "%isNaN%": isNaN,
189
- "%IteratorPrototype%": d ? h(h([][Symbol.iterator]())) : e,
189
+ "%IteratorPrototype%": p ? y(y([][Symbol.iterator]())) : e,
190
190
  "%JSON%": typeof JSON == "object" ? JSON : e,
191
191
  "%Map%": typeof Map > "u" ? e : Map,
192
- "%MapIteratorPrototype%": typeof Map > "u" || !d ? e : h((/* @__PURE__ */ new Map())[Symbol.iterator]()),
192
+ "%MapIteratorPrototype%": typeof Map > "u" || !p ? e : y((/* @__PURE__ */ new Map())[Symbol.iterator]()),
193
193
  "%Math%": Math,
194
194
  "%Number%": Number,
195
195
  "%Object%": Object,
@@ -202,14 +202,14 @@ function hr() {
202
202
  "%Reflect%": typeof Reflect > "u" ? e : Reflect,
203
203
  "%RegExp%": RegExp,
204
204
  "%Set%": typeof Set > "u" ? e : Set,
205
- "%SetIteratorPrototype%": typeof Set > "u" || !d ? e : h((/* @__PURE__ */ new Set())[Symbol.iterator]()),
205
+ "%SetIteratorPrototype%": typeof Set > "u" || !p ? e : y((/* @__PURE__ */ new Set())[Symbol.iterator]()),
206
206
  "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? e : SharedArrayBuffer,
207
207
  "%String%": String,
208
- "%StringIteratorPrototype%": d ? h(""[Symbol.iterator]()) : e,
209
- "%Symbol%": d ? Symbol : e,
208
+ "%StringIteratorPrototype%": p ? y(""[Symbol.iterator]()) : e,
209
+ "%Symbol%": p ? Symbol : e,
210
210
  "%SyntaxError%": r,
211
- "%ThrowTypeError%": u,
212
- "%TypedArray%": i,
211
+ "%ThrowTypeError%": l,
212
+ "%TypedArray%": A,
213
213
  "%TypeError%": t,
214
214
  "%Uint8Array%": typeof Uint8Array > "u" ? e : Uint8Array,
215
215
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? e : Uint8ClampedArray,
@@ -219,23 +219,23 @@ function hr() {
219
219
  "%WeakMap%": typeof WeakMap > "u" ? e : WeakMap,
220
220
  "%WeakRef%": typeof WeakRef > "u" ? e : WeakRef,
221
221
  "%WeakSet%": typeof WeakSet > "u" ? e : WeakSet
222
- }, s = function F(L) {
223
- var R;
222
+ }, s = function U(L) {
223
+ var F;
224
224
  if (L === "%AsyncFunction%")
225
- R = n("async function () {}");
225
+ F = n("async function () {}");
226
226
  else if (L === "%GeneratorFunction%")
227
- R = n("function* () {}");
227
+ F = n("function* () {}");
228
228
  else if (L === "%AsyncGeneratorFunction%")
229
- R = n("async function* () {}");
229
+ F = n("async function* () {}");
230
230
  else if (L === "%AsyncGenerator%") {
231
- var T = F("%AsyncGeneratorFunction%");
232
- T && (R = T.prototype);
231
+ var T = U("%AsyncGeneratorFunction%");
232
+ T && (F = T.prototype);
233
233
  } else if (L === "%AsyncIteratorPrototype%") {
234
- var $ = F("%AsyncGenerator%");
235
- $ && (R = h($.prototype));
234
+ var R = U("%AsyncGenerator%");
235
+ R && (F = y(R.prototype));
236
236
  }
237
- return c[L] = R, R;
238
- }, p = {
237
+ return u[L] = F, F;
238
+ }, i = {
239
239
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
240
240
  "%ArrayPrototype%": ["Array", "prototype"],
241
241
  "%ArrayProto_entries%": ["Array", "prototype", "entries"],
@@ -287,88 +287,88 @@ function hr() {
287
287
  "%URIErrorPrototype%": ["URIError", "prototype"],
288
288
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
289
289
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
290
- }, A = yr(), y = et(), l = A.call(Function.call, Array.prototype.concat), S = A.call(Function.apply, Array.prototype.splice), b = A.call(Function.call, String.prototype.replace), C = A.call(Function.call, String.prototype.slice), P = A.call(Function.call, RegExp.prototype.exec), I = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, _ = /\\(\\)?/g, k = function(L) {
291
- var R = C(L, 0, 1), T = C(L, -1);
292
- if (R === "%" && T !== "%")
290
+ }, S = yr(), f = et(), c = S.call(Function.call, Array.prototype.concat), b = S.call(Function.apply, Array.prototype.splice), v = S.call(Function.call, String.prototype.replace), C = S.call(Function.call, String.prototype.slice), P = S.call(Function.call, RegExp.prototype.exec), I = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, N = /\\(\\)?/g, M = function(L) {
291
+ var F = C(L, 0, 1), T = C(L, -1);
292
+ if (F === "%" && T !== "%")
293
293
  throw new r("invalid intrinsic syntax, expected closing `%`");
294
- if (T === "%" && R !== "%")
294
+ if (T === "%" && F !== "%")
295
295
  throw new r("invalid intrinsic syntax, expected opening `%`");
296
- var $ = [];
297
- return b(L, I, function(B, z, N, Z) {
298
- $[$.length] = N ? b(Z, _, "$1") : z || B;
299
- }), $;
300
- }, V = function(L, R) {
301
- var T = L, $;
302
- if (y(p, T) && ($ = p[T], T = "%" + $[0] + "%"), y(c, T)) {
303
- var B = c[T];
304
- if (B === w && (B = s(T)), typeof B > "u" && !R)
296
+ var R = [];
297
+ return v(L, I, function($, z, _, Z) {
298
+ R[R.length] = _ ? v(Z, N, "$1") : z || $;
299
+ }), R;
300
+ }, V = function(L, F) {
301
+ var T = L, R;
302
+ if (f(i, T) && (R = i[T], T = "%" + R[0] + "%"), f(u, T)) {
303
+ var $ = u[T];
304
+ if ($ === w && ($ = s(T)), typeof $ > "u" && !F)
305
305
  throw new t("intrinsic " + L + " exists, but is not available. Please file an issue!");
306
306
  return {
307
- alias: $,
307
+ alias: R,
308
308
  name: T,
309
- value: B
309
+ value: $
310
310
  };
311
311
  }
312
312
  throw new r("intrinsic " + L + " does not exist!");
313
313
  };
314
- return rr = function(L, R) {
314
+ return rr = function(L, F) {
315
315
  if (typeof L != "string" || L.length === 0)
316
316
  throw new t("intrinsic name must be a non-empty string");
317
- if (arguments.length > 1 && typeof R != "boolean")
317
+ if (arguments.length > 1 && typeof F != "boolean")
318
318
  throw new t('"allowMissing" argument must be a boolean');
319
319
  if (P(/^%?[^%]*%?$/, L) === null)
320
320
  throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
321
- var T = k(L), $ = T.length > 0 ? T[0] : "", B = V("%" + $ + "%", R), z = B.name, N = B.value, Z = !1, Q = B.alias;
322
- Q && ($ = Q[0], S(T, l([0, 1], Q)));
321
+ var T = M(L), R = T.length > 0 ? T[0] : "", $ = V("%" + R + "%", F), z = $.name, _ = $.value, Z = !1, Q = $.alias;
322
+ Q && (R = Q[0], b(T, c([0, 1], Q)));
323
323
  for (var ne = 1, X = !0; ne < T.length; ne += 1) {
324
324
  var W = T[ne], ie = C(W, 0, 1), re = C(W, -1);
325
325
  if ((ie === '"' || ie === "'" || ie === "`" || re === '"' || re === "'" || re === "`") && ie !== re)
326
326
  throw new r("property names with quotes must have matching quotes");
327
- if ((W === "constructor" || !X) && (Z = !0), $ += "." + W, z = "%" + $ + "%", y(c, z))
328
- N = c[z];
329
- else if (N != null) {
330
- if (!(W in N)) {
331
- if (!R)
327
+ if ((W === "constructor" || !X) && (Z = !0), R += "." + W, z = "%" + R + "%", f(u, z))
328
+ _ = u[z];
329
+ else if (_ != null) {
330
+ if (!(W in _)) {
331
+ if (!F)
332
332
  throw new t("base intrinsic for " + L + " exists, but the property is not available.");
333
333
  return;
334
334
  }
335
335
  if (o && ne + 1 >= T.length) {
336
- var te = o(N, W);
337
- X = !!te, X && "get" in te && !("originalValue" in te.get) ? N = te.get : N = N[W];
336
+ var te = o(_, W);
337
+ X = !!te, X && "get" in te && !("originalValue" in te.get) ? _ = te.get : _ = _[W];
338
338
  } else
339
- X = y(N, W), N = N[W];
340
- X && !Z && (c[z] = N);
339
+ X = f(_, W), _ = _[W];
340
+ X && !Z && (u[z] = _);
341
341
  }
342
342
  }
343
- return N;
343
+ return _;
344
344
  }, rr;
345
345
  }
346
346
  var tr = { exports: {} }, Tr;
347
347
  function rt() {
348
348
  return Tr || (Tr = 1, (function(e) {
349
- var r = yr(), a = hr(), t = a("%Function.prototype.apply%"), n = a("%Function.prototype.call%"), o = a("%Reflect.apply%", !0) || r.call(n, t), m = a("%Object.getOwnPropertyDescriptor%", !0), u = a("%Object.defineProperty%", !0), d = a("%Math.max%");
350
- if (u)
349
+ var r = yr(), a = hr(), t = a("%Function.prototype.apply%"), n = a("%Function.prototype.call%"), o = a("%Reflect.apply%", !0) || r.call(n, t), m = a("%Object.getOwnPropertyDescriptor%", !0), l = a("%Object.defineProperty%", !0), p = a("%Math.max%");
350
+ if (l)
351
351
  try {
352
- u({}, "a", { value: 1 });
352
+ l({}, "a", { value: 1 });
353
353
  } catch {
354
- u = null;
354
+ l = null;
355
355
  }
356
- e.exports = function(i) {
357
- var c = o(r, n, arguments);
358
- if (m && u) {
359
- var s = m(c, "length");
360
- s.configurable && u(
361
- c,
356
+ e.exports = function(A) {
357
+ var u = o(r, n, arguments);
358
+ if (m && l) {
359
+ var s = m(u, "length");
360
+ s.configurable && l(
361
+ u,
362
362
  "length",
363
- { value: 1 + d(0, i.length - (arguments.length - 1)) }
363
+ { value: 1 + p(0, A.length - (arguments.length - 1)) }
364
364
  );
365
365
  }
366
- return c;
366
+ return u;
367
367
  };
368
- var h = function() {
368
+ var y = function() {
369
369
  return o(r, t, arguments);
370
370
  };
371
- u ? u(e.exports, "apply", { value: h }) : e.exports.apply = h;
371
+ l ? l(e.exports, "apply", { value: y }) : e.exports.apply = y;
372
372
  })(tr)), tr.exports;
373
373
  }
374
374
  var ar, Rr;
@@ -389,24 +389,24 @@ var nr, _r;
389
389
  function ot() {
390
390
  if (_r) return nr;
391
391
  _r = 1;
392
- var e = typeof Map == "function" && Map.prototype, r = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, a = e && r && typeof r.get == "function" ? r.get : null, t = e && Map.prototype.forEach, n = typeof Set == "function" && Set.prototype, o = Object.getOwnPropertyDescriptor && n ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, m = n && o && typeof o.get == "function" ? o.get : null, u = n && Set.prototype.forEach, d = typeof WeakMap == "function" && WeakMap.prototype, h = d ? WeakMap.prototype.has : null, w = typeof WeakSet == "function" && WeakSet.prototype, i = w ? WeakSet.prototype.has : null, c = typeof WeakRef == "function" && WeakRef.prototype, s = c ? WeakRef.prototype.deref : null, p = Boolean.prototype.valueOf, A = Object.prototype.toString, y = Function.prototype.toString, l = String.prototype.match, S = String.prototype.slice, b = String.prototype.replace, C = String.prototype.toUpperCase, P = String.prototype.toLowerCase, I = RegExp.prototype.test, _ = Array.prototype.concat, k = Array.prototype.join, V = Array.prototype.slice, F = Math.floor, L = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, R = Object.getOwnPropertySymbols, T = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, $ = typeof Symbol == "function" && typeof Symbol.iterator == "object", B = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === $ || !0) ? Symbol.toStringTag : null, z = Object.prototype.propertyIsEnumerable, N = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(g) {
393
- return g.__proto__;
392
+ var e = typeof Map == "function" && Map.prototype, r = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, a = e && r && typeof r.get == "function" ? r.get : null, t = e && Map.prototype.forEach, n = typeof Set == "function" && Set.prototype, o = Object.getOwnPropertyDescriptor && n ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, m = n && o && typeof o.get == "function" ? o.get : null, l = n && Set.prototype.forEach, p = typeof WeakMap == "function" && WeakMap.prototype, y = p ? WeakMap.prototype.has : null, w = typeof WeakSet == "function" && WeakSet.prototype, A = w ? WeakSet.prototype.has : null, u = typeof WeakRef == "function" && WeakRef.prototype, s = u ? WeakRef.prototype.deref : null, i = Boolean.prototype.valueOf, S = Object.prototype.toString, f = Function.prototype.toString, c = String.prototype.match, b = String.prototype.slice, v = String.prototype.replace, C = String.prototype.toUpperCase, P = String.prototype.toLowerCase, I = RegExp.prototype.test, N = Array.prototype.concat, M = Array.prototype.join, V = Array.prototype.slice, U = Math.floor, L = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, F = Object.getOwnPropertySymbols, T = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, R = typeof Symbol == "function" && typeof Symbol.iterator == "object", $ = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === R || !0) ? Symbol.toStringTag : null, z = Object.prototype.propertyIsEnumerable, _ = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(h) {
393
+ return h.__proto__;
394
394
  } : null);
395
- function Z(g, v) {
396
- if (g === 1 / 0 || g === -1 / 0 || g !== g || g && g > -1e3 && g < 1e3 || I.call(/e/, v))
397
- return v;
395
+ function Z(h, g) {
396
+ if (h === 1 / 0 || h === -1 / 0 || h !== h || h && h > -1e3 && h < 1e3 || I.call(/e/, g))
397
+ return g;
398
398
  var D = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
399
- if (typeof g == "number") {
400
- var f = g < 0 ? -F(-g) : F(g);
401
- if (f !== g) {
402
- var E = String(f), x = S.call(v, E.length + 1);
403
- return b.call(E, D, "$&_") + "." + b.call(b.call(x, /([0-9]{3})/g, "$&_"), /_$/, "");
399
+ if (typeof h == "number") {
400
+ var d = h < 0 ? -U(-h) : U(h);
401
+ if (d !== h) {
402
+ var E = String(d), x = b.call(g, E.length + 1);
403
+ return v.call(E, D, "$&_") + "." + v.call(v.call(x, /([0-9]{3})/g, "$&_"), /_$/, "");
404
404
  }
405
405
  }
406
- return b.call(v, D, "$&_");
406
+ return v.call(g, D, "$&_");
407
407
  }
408
408
  var Q = it, ne = Q.custom, X = se(ne) ? ne : null;
409
- nr = function g(v, D, f, E) {
409
+ nr = function h(g, D, d, E) {
410
410
  var x = D || {};
411
411
  if (J(x, "quoteStyle") && x.quoteStyle !== "single" && x.quoteStyle !== "double")
412
412
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
@@ -420,322 +420,322 @@ function ot() {
420
420
  if (J(x, "numericSeparator") && typeof x.numericSeparator != "boolean")
421
421
  throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
422
422
  var ae = x.numericSeparator;
423
- if (typeof v > "u")
423
+ if (typeof g > "u")
424
424
  return "undefined";
425
- if (v === null)
425
+ if (g === null)
426
426
  return "null";
427
- if (typeof v == "boolean")
428
- return v ? "true" : "false";
429
- if (typeof v == "string")
430
- return Ce(v, x);
431
- if (typeof v == "number") {
432
- if (v === 0)
433
- return 1 / 0 / v > 0 ? "0" : "-0";
434
- var K = String(v);
435
- return ae ? Z(v, K) : K;
427
+ if (typeof g == "boolean")
428
+ return g ? "true" : "false";
429
+ if (typeof g == "string")
430
+ return Ce(g, x);
431
+ if (typeof g == "number") {
432
+ if (g === 0)
433
+ return 1 / 0 / g > 0 ? "0" : "-0";
434
+ var K = String(g);
435
+ return ae ? Z(g, K) : K;
436
436
  }
437
- if (typeof v == "bigint") {
438
- var O = String(v) + "n";
439
- return ae ? Z(v, O) : O;
437
+ if (typeof g == "bigint") {
438
+ var O = String(g) + "n";
439
+ return ae ? Z(g, O) : O;
440
440
  }
441
- var U = typeof x.depth > "u" ? 5 : x.depth;
442
- if (typeof f > "u" && (f = 0), f >= U && U > 0 && typeof v == "object")
443
- return re(v) ? "[Array]" : "[Object]";
444
- var j = Le(x, f);
441
+ var B = typeof x.depth > "u" ? 5 : x.depth;
442
+ if (typeof d > "u" && (d = 0), d >= B && B > 0 && typeof g == "object")
443
+ return re(g) ? "[Array]" : "[Object]";
444
+ var j = Le(x, d);
445
445
  if (typeof E > "u")
446
446
  E = [];
447
- else if (Pe(E, v) >= 0)
447
+ else if (Pe(E, g) >= 0)
448
448
  return "[Circular]";
449
449
  function H(Me, Ge, Jr) {
450
450
  if (Ge && (E = V.call(E), E.push(Ge)), Jr) {
451
451
  var Pr = {
452
452
  depth: x.depth
453
453
  };
454
- return J(x, "quoteStyle") && (Pr.quoteStyle = x.quoteStyle), g(Me, Pr, f + 1, E);
454
+ return J(x, "quoteStyle") && (Pr.quoteStyle = x.quoteStyle), h(Me, Pr, d + 1, E);
455
455
  }
456
- return g(Me, x, f + 1, E);
456
+ return h(Me, x, d + 1, E);
457
457
  }
458
- if (typeof v == "function" && !ce(v)) {
459
- var Y = ke(v), we = ge(v, H);
460
- return "[Function" + (Y ? ": " + Y : " (anonymous)") + "]" + (we.length > 0 ? " { " + k.call(we, ", ") + " }" : "");
458
+ if (typeof g == "function" && !ce(g)) {
459
+ var Y = ke(g), we = ge(g, H);
460
+ return "[Function" + (Y ? ": " + Y : " (anonymous)") + "]" + (we.length > 0 ? " { " + M.call(we, ", ") + " }" : "");
461
461
  }
462
- if (se(v)) {
463
- var Ar = $ ? b.call(String(v), /^(Symbol\(.*\))_[^)]*$/, "$1") : T.call(v);
464
- return typeof v == "object" && !$ ? le(Ar) : Ar;
462
+ if (se(g)) {
463
+ var Ar = R ? v.call(String(g), /^(Symbol\(.*\))_[^)]*$/, "$1") : T.call(g);
464
+ return typeof g == "object" && !R ? le(Ar) : Ar;
465
465
  }
466
- if (_e(v)) {
467
- for (var Fe = "<" + P.call(String(v.nodeName)), ze = v.attributes || [], Be = 0; Be < ze.length; Be++)
466
+ if (_e(g)) {
467
+ for (var Fe = "<" + P.call(String(g.nodeName)), ze = g.attributes || [], Be = 0; Be < ze.length; Be++)
468
468
  Fe += " " + ze[Be].name + "=" + W(ie(ze[Be].value), "double", x);
469
- return Fe += ">", v.childNodes && v.childNodes.length && (Fe += "..."), Fe += "</" + P.call(String(v.nodeName)) + ">", Fe;
469
+ return Fe += ">", g.childNodes && g.childNodes.length && (Fe += "..."), Fe += "</" + P.call(String(g.nodeName)) + ">", Fe;
470
470
  }
471
- if (re(v)) {
472
- if (v.length === 0)
471
+ if (re(g)) {
472
+ if (g.length === 0)
473
473
  return "[]";
474
- var We = ge(v, H);
475
- return j && !Oe(We) ? "[" + he(We, j) + "]" : "[ " + k.call(We, ", ") + " ]";
474
+ var We = ge(g, H);
475
+ return j && !Oe(We) ? "[" + he(We, j) + "]" : "[ " + M.call(We, ", ") + " ]";
476
476
  }
477
- if (ue(v)) {
478
- var Ke = ge(v, H);
479
- return !("cause" in Error.prototype) && "cause" in v && !z.call(v, "cause") ? "{ [" + String(v) + "] " + k.call(_.call("[cause]: " + H(v.cause), Ke), ", ") + " }" : Ke.length === 0 ? "[" + String(v) + "]" : "{ [" + String(v) + "] " + k.call(Ke, ", ") + " }";
477
+ if (ue(g)) {
478
+ var Ke = ge(g, H);
479
+ return !("cause" in Error.prototype) && "cause" in g && !z.call(g, "cause") ? "{ [" + String(g) + "] " + M.call(N.call("[cause]: " + H(g.cause), Ke), ", ") + " }" : Ke.length === 0 ? "[" + String(g) + "]" : "{ [" + String(g) + "] " + M.call(Ke, ", ") + " }";
480
480
  }
481
- if (typeof v == "object" && G) {
482
- if (X && typeof v[X] == "function" && Q)
483
- return Q(v, { depth: U - f });
484
- if (G !== "symbol" && typeof v.inspect == "function")
485
- return v.inspect();
481
+ if (typeof g == "object" && G) {
482
+ if (X && typeof g[X] == "function" && Q)
483
+ return Q(g, { depth: B - d });
484
+ if (G !== "symbol" && typeof g.inspect == "function")
485
+ return g.inspect();
486
486
  }
487
- if (Ie(v)) {
487
+ if (Ie(g)) {
488
488
  var br = [];
489
- return t.call(v, function(Me, Ge) {
490
- br.push(H(Ge, v, !0) + " => " + H(Me, v));
491
- }), Se("Map", a.call(v), br, j);
489
+ return t.call(g, function(Me, Ge) {
490
+ br.push(H(Ge, g, !0) + " => " + H(Me, g));
491
+ }), Se("Map", a.call(g), br, j);
492
492
  }
493
- if (Te(v)) {
493
+ if (Te(g)) {
494
494
  var Sr = [];
495
- return u.call(v, function(Me) {
496
- Sr.push(H(Me, v));
497
- }), Se("Set", m.call(v), Sr, j);
495
+ return l.call(g, function(Me) {
496
+ Sr.push(H(Me, g));
497
+ }), Se("Set", m.call(g), Sr, j);
498
498
  }
499
- if (me(v))
499
+ if (me(g))
500
500
  return fe("WeakMap");
501
- if (Re(v))
501
+ if (Re(g))
502
502
  return fe("WeakSet");
503
- if (xe(v))
503
+ if (xe(g))
504
504
  return fe("WeakRef");
505
- if (de(v))
506
- return le(H(Number(v)));
507
- if (ye(v))
508
- return le(H(L.call(v)));
509
- if (pe(v))
510
- return le(p.call(v));
511
- if (oe(v))
512
- return le(H(String(v)));
513
- if (!te(v) && !ce(v)) {
514
- var He = ge(v, H), wr = N ? N(v) === Object.prototype : v instanceof Object || v.constructor === Object, Je = v instanceof Object ? "" : "null prototype", Er = !wr && B && Object(v) === v && B in v ? S.call(ee(v), 8, -1) : Je ? "Object" : "", Hr = wr || typeof v.constructor != "function" ? "" : v.constructor.name ? v.constructor.name + " " : "", qe = Hr + (Er || Je ? "[" + k.call(_.call([], Er || [], Je || []), ": ") + "] " : "");
515
- return He.length === 0 ? qe + "{}" : j ? qe + "{" + he(He, j) + "}" : qe + "{ " + k.call(He, ", ") + " }";
505
+ if (de(g))
506
+ return le(H(Number(g)));
507
+ if (ye(g))
508
+ return le(H(L.call(g)));
509
+ if (pe(g))
510
+ return le(i.call(g));
511
+ if (oe(g))
512
+ return le(H(String(g)));
513
+ if (!te(g) && !ce(g)) {
514
+ var He = ge(g, H), wr = _ ? _(g) === Object.prototype : g instanceof Object || g.constructor === Object, Je = g instanceof Object ? "" : "null prototype", Er = !wr && $ && Object(g) === g && $ in g ? b.call(ee(g), 8, -1) : Je ? "Object" : "", Hr = wr || typeof g.constructor != "function" ? "" : g.constructor.name ? g.constructor.name + " " : "", qe = Hr + (Er || Je ? "[" + M.call(N.call([], Er || [], Je || []), ": ") + "] " : "");
515
+ return He.length === 0 ? qe + "{}" : j ? qe + "{" + he(He, j) + "}" : qe + "{ " + M.call(He, ", ") + " }";
516
516
  }
517
- return String(v);
517
+ return String(g);
518
518
  };
519
- function W(g, v, D) {
520
- var f = (D.quoteStyle || v) === "double" ? '"' : "'";
521
- return f + g + f;
519
+ function W(h, g, D) {
520
+ var d = (D.quoteStyle || g) === "double" ? '"' : "'";
521
+ return d + h + d;
522
522
  }
523
- function ie(g) {
524
- return b.call(String(g), /"/g, "&quot;");
523
+ function ie(h) {
524
+ return v.call(String(h), /"/g, "&quot;");
525
525
  }
526
- function re(g) {
527
- return ee(g) === "[object Array]" && (!B || !(typeof g == "object" && B in g));
526
+ function re(h) {
527
+ return ee(h) === "[object Array]" && (!$ || !(typeof h == "object" && $ in h));
528
528
  }
529
- function te(g) {
530
- return ee(g) === "[object Date]" && (!B || !(typeof g == "object" && B in g));
529
+ function te(h) {
530
+ return ee(h) === "[object Date]" && (!$ || !(typeof h == "object" && $ in h));
531
531
  }
532
- function ce(g) {
533
- return ee(g) === "[object RegExp]" && (!B || !(typeof g == "object" && B in g));
532
+ function ce(h) {
533
+ return ee(h) === "[object RegExp]" && (!$ || !(typeof h == "object" && $ in h));
534
534
  }
535
- function ue(g) {
536
- return ee(g) === "[object Error]" && (!B || !(typeof g == "object" && B in g));
535
+ function ue(h) {
536
+ return ee(h) === "[object Error]" && (!$ || !(typeof h == "object" && $ in h));
537
537
  }
538
- function oe(g) {
539
- return ee(g) === "[object String]" && (!B || !(typeof g == "object" && B in g));
538
+ function oe(h) {
539
+ return ee(h) === "[object String]" && (!$ || !(typeof h == "object" && $ in h));
540
540
  }
541
- function de(g) {
542
- return ee(g) === "[object Number]" && (!B || !(typeof g == "object" && B in g));
541
+ function de(h) {
542
+ return ee(h) === "[object Number]" && (!$ || !(typeof h == "object" && $ in h));
543
543
  }
544
- function pe(g) {
545
- return ee(g) === "[object Boolean]" && (!B || !(typeof g == "object" && B in g));
544
+ function pe(h) {
545
+ return ee(h) === "[object Boolean]" && (!$ || !(typeof h == "object" && $ in h));
546
546
  }
547
- function se(g) {
548
- if ($)
549
- return g && typeof g == "object" && g instanceof Symbol;
550
- if (typeof g == "symbol")
547
+ function se(h) {
548
+ if (R)
549
+ return h && typeof h == "object" && h instanceof Symbol;
550
+ if (typeof h == "symbol")
551
551
  return !0;
552
- if (!g || typeof g != "object" || !T)
552
+ if (!h || typeof h != "object" || !T)
553
553
  return !1;
554
554
  try {
555
- return T.call(g), !0;
555
+ return T.call(h), !0;
556
556
  } catch {
557
557
  }
558
558
  return !1;
559
559
  }
560
- function ye(g) {
561
- if (!g || typeof g != "object" || !L)
560
+ function ye(h) {
561
+ if (!h || typeof h != "object" || !L)
562
562
  return !1;
563
563
  try {
564
- return L.call(g), !0;
564
+ return L.call(h), !0;
565
565
  } catch {
566
566
  }
567
567
  return !1;
568
568
  }
569
- var be = Object.prototype.hasOwnProperty || function(g) {
570
- return g in this;
569
+ var be = Object.prototype.hasOwnProperty || function(h) {
570
+ return h in this;
571
571
  };
572
- function J(g, v) {
573
- return be.call(g, v);
574
- }
575
- function ee(g) {
576
- return A.call(g);
577
- }
578
- function ke(g) {
579
- if (g.name)
580
- return g.name;
581
- var v = l.call(y.call(g), /^function\s*([\w$]+)/);
582
- return v ? v[1] : null;
583
- }
584
- function Pe(g, v) {
585
- if (g.indexOf)
586
- return g.indexOf(v);
587
- for (var D = 0, f = g.length; D < f; D++)
588
- if (g[D] === v)
572
+ function J(h, g) {
573
+ return be.call(h, g);
574
+ }
575
+ function ee(h) {
576
+ return S.call(h);
577
+ }
578
+ function ke(h) {
579
+ if (h.name)
580
+ return h.name;
581
+ var g = c.call(f.call(h), /^function\s*([\w$]+)/);
582
+ return g ? g[1] : null;
583
+ }
584
+ function Pe(h, g) {
585
+ if (h.indexOf)
586
+ return h.indexOf(g);
587
+ for (var D = 0, d = h.length; D < d; D++)
588
+ if (h[D] === g)
589
589
  return D;
590
590
  return -1;
591
591
  }
592
- function Ie(g) {
593
- if (!a || !g || typeof g != "object")
592
+ function Ie(h) {
593
+ if (!a || !h || typeof h != "object")
594
594
  return !1;
595
595
  try {
596
- a.call(g);
596
+ a.call(h);
597
597
  try {
598
- m.call(g);
598
+ m.call(h);
599
599
  } catch {
600
600
  return !0;
601
601
  }
602
- return g instanceof Map;
602
+ return h instanceof Map;
603
603
  } catch {
604
604
  }
605
605
  return !1;
606
606
  }
607
- function me(g) {
608
- if (!h || !g || typeof g != "object")
607
+ function me(h) {
608
+ if (!y || !h || typeof h != "object")
609
609
  return !1;
610
610
  try {
611
- h.call(g, h);
611
+ y.call(h, y);
612
612
  try {
613
- i.call(g, i);
613
+ A.call(h, A);
614
614
  } catch {
615
615
  return !0;
616
616
  }
617
- return g instanceof WeakMap;
617
+ return h instanceof WeakMap;
618
618
  } catch {
619
619
  }
620
620
  return !1;
621
621
  }
622
- function xe(g) {
623
- if (!s || !g || typeof g != "object")
622
+ function xe(h) {
623
+ if (!s || !h || typeof h != "object")
624
624
  return !1;
625
625
  try {
626
- return s.call(g), !0;
626
+ return s.call(h), !0;
627
627
  } catch {
628
628
  }
629
629
  return !1;
630
630
  }
631
- function Te(g) {
632
- if (!m || !g || typeof g != "object")
631
+ function Te(h) {
632
+ if (!m || !h || typeof h != "object")
633
633
  return !1;
634
634
  try {
635
- m.call(g);
635
+ m.call(h);
636
636
  try {
637
- a.call(g);
637
+ a.call(h);
638
638
  } catch {
639
639
  return !0;
640
640
  }
641
- return g instanceof Set;
641
+ return h instanceof Set;
642
642
  } catch {
643
643
  }
644
644
  return !1;
645
645
  }
646
- function Re(g) {
647
- if (!i || !g || typeof g != "object")
646
+ function Re(h) {
647
+ if (!A || !h || typeof h != "object")
648
648
  return !1;
649
649
  try {
650
- i.call(g, i);
650
+ A.call(h, A);
651
651
  try {
652
- h.call(g, h);
652
+ y.call(h, y);
653
653
  } catch {
654
654
  return !0;
655
655
  }
656
- return g instanceof WeakSet;
656
+ return h instanceof WeakSet;
657
657
  } catch {
658
658
  }
659
659
  return !1;
660
660
  }
661
- function _e(g) {
662
- return !g || typeof g != "object" ? !1 : typeof HTMLElement < "u" && g instanceof HTMLElement ? !0 : typeof g.nodeName == "string" && typeof g.getAttribute == "function";
661
+ function _e(h) {
662
+ return !h || typeof h != "object" ? !1 : typeof HTMLElement < "u" && h instanceof HTMLElement ? !0 : typeof h.nodeName == "string" && typeof h.getAttribute == "function";
663
663
  }
664
- function Ce(g, v) {
665
- if (g.length > v.maxStringLength) {
666
- var D = g.length - v.maxStringLength, f = "... " + D + " more character" + (D > 1 ? "s" : "");
667
- return Ce(S.call(g, 0, v.maxStringLength), v) + f;
664
+ function Ce(h, g) {
665
+ if (h.length > g.maxStringLength) {
666
+ var D = h.length - g.maxStringLength, d = "... " + D + " more character" + (D > 1 ? "s" : "");
667
+ return Ce(b.call(h, 0, g.maxStringLength), g) + d;
668
668
  }
669
- var E = b.call(b.call(g, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ne);
670
- return W(E, "single", v);
669
+ var E = v.call(v.call(h, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ne);
670
+ return W(E, "single", g);
671
671
  }
672
- function Ne(g) {
673
- var v = g.charCodeAt(0), D = {
672
+ function Ne(h) {
673
+ var g = h.charCodeAt(0), D = {
674
674
  8: "b",
675
675
  9: "t",
676
676
  10: "n",
677
677
  12: "f",
678
678
  13: "r"
679
- }[v];
680
- return D ? "\\" + D : "\\x" + (v < 16 ? "0" : "") + C.call(v.toString(16));
679
+ }[g];
680
+ return D ? "\\" + D : "\\x" + (g < 16 ? "0" : "") + C.call(g.toString(16));
681
681
  }
682
- function le(g) {
683
- return "Object(" + g + ")";
682
+ function le(h) {
683
+ return "Object(" + h + ")";
684
684
  }
685
- function fe(g) {
686
- return g + " { ? }";
685
+ function fe(h) {
686
+ return h + " { ? }";
687
687
  }
688
- function Se(g, v, D, f) {
689
- var E = f ? he(D, f) : k.call(D, ", ");
690
- return g + " (" + v + ") {" + E + "}";
688
+ function Se(h, g, D, d) {
689
+ var E = d ? he(D, d) : M.call(D, ", ");
690
+ return h + " (" + g + ") {" + E + "}";
691
691
  }
692
- function Oe(g) {
693
- for (var v = 0; v < g.length; v++)
694
- if (Pe(g[v], `
692
+ function Oe(h) {
693
+ for (var g = 0; g < h.length; g++)
694
+ if (Pe(h[g], `
695
695
  `) >= 0)
696
696
  return !1;
697
697
  return !0;
698
698
  }
699
- function Le(g, v) {
699
+ function Le(h, g) {
700
700
  var D;
701
- if (g.indent === " ")
701
+ if (h.indent === " ")
702
702
  D = " ";
703
- else if (typeof g.indent == "number" && g.indent > 0)
704
- D = k.call(Array(g.indent + 1), " ");
703
+ else if (typeof h.indent == "number" && h.indent > 0)
704
+ D = M.call(Array(h.indent + 1), " ");
705
705
  else
706
706
  return null;
707
707
  return {
708
708
  base: D,
709
- prev: k.call(Array(v + 1), D)
709
+ prev: M.call(Array(g + 1), D)
710
710
  };
711
711
  }
712
- function he(g, v) {
713
- if (g.length === 0)
712
+ function he(h, g) {
713
+ if (h.length === 0)
714
714
  return "";
715
715
  var D = `
716
- ` + v.prev + v.base;
717
- return D + k.call(g, "," + D) + `
718
- ` + v.prev;
716
+ ` + g.prev + g.base;
717
+ return D + M.call(h, "," + D) + `
718
+ ` + g.prev;
719
719
  }
720
- function ge(g, v) {
721
- var D = re(g), f = [];
720
+ function ge(h, g) {
721
+ var D = re(h), d = [];
722
722
  if (D) {
723
- f.length = g.length;
724
- for (var E = 0; E < g.length; E++)
725
- f[E] = J(g, E) ? v(g[E], g) : "";
723
+ d.length = h.length;
724
+ for (var E = 0; E < h.length; E++)
725
+ d[E] = J(h, E) ? g(h[E], h) : "";
726
726
  }
727
- var x = typeof R == "function" ? R(g) : [], G;
728
- if ($) {
727
+ var x = typeof F == "function" ? F(h) : [], G;
728
+ if (R) {
729
729
  G = {};
730
730
  for (var ae = 0; ae < x.length; ae++)
731
731
  G["$" + x[ae]] = x[ae];
732
732
  }
733
- for (var K in g)
734
- J(g, K) && (D && String(Number(K)) === K && K < g.length || $ && G["$" + K] instanceof Symbol || (I.call(/[^\w$]/, K) ? f.push(v(K, g) + ": " + v(g[K], g)) : f.push(K + ": " + v(g[K], g))));
735
- if (typeof R == "function")
733
+ for (var K in h)
734
+ J(h, K) && (D && String(Number(K)) === K && K < h.length || R && G["$" + K] instanceof Symbol || (I.call(/[^\w$]/, K) ? d.push(g(K, h) + ": " + g(h[K], h)) : d.push(K + ": " + g(h[K], h))));
735
+ if (typeof F == "function")
736
736
  for (var O = 0; O < x.length; O++)
737
- z.call(g, x[O]) && f.push("[" + v(x[O]) + "]: " + v(g[x[O]], g));
738
- return f;
737
+ z.call(h, x[O]) && d.push("[" + g(x[O]) + "]: " + g(h[x[O]], h));
738
+ return d;
739
739
  }
740
740
  return nr;
741
741
  }
@@ -743,53 +743,53 @@ var ir, Nr;
743
743
  function st() {
744
744
  if (Nr) return ir;
745
745
  Nr = 1;
746
- var e = hr(), r = tt(), a = /* @__PURE__ */ ot(), t = e("%TypeError%"), n = e("%WeakMap%", !0), o = e("%Map%", !0), m = r("WeakMap.prototype.get", !0), u = r("WeakMap.prototype.set", !0), d = r("WeakMap.prototype.has", !0), h = r("Map.prototype.get", !0), w = r("Map.prototype.set", !0), i = r("Map.prototype.has", !0), c = function(y, l) {
747
- for (var S = y, b; (b = S.next) !== null; S = b)
748
- if (b.key === l)
749
- return S.next = b.next, b.next = y.next, y.next = b, b;
750
- }, s = function(y, l) {
751
- var S = c(y, l);
752
- return S && S.value;
753
- }, p = function(y, l, S) {
754
- var b = c(y, l);
755
- b ? b.value = S : y.next = {
746
+ var e = hr(), r = tt(), a = /* @__PURE__ */ ot(), t = e("%TypeError%"), n = e("%WeakMap%", !0), o = e("%Map%", !0), m = r("WeakMap.prototype.get", !0), l = r("WeakMap.prototype.set", !0), p = r("WeakMap.prototype.has", !0), y = r("Map.prototype.get", !0), w = r("Map.prototype.set", !0), A = r("Map.prototype.has", !0), u = function(f, c) {
747
+ for (var b = f, v; (v = b.next) !== null; b = v)
748
+ if (v.key === c)
749
+ return b.next = v.next, v.next = f.next, f.next = v, v;
750
+ }, s = function(f, c) {
751
+ var b = u(f, c);
752
+ return b && b.value;
753
+ }, i = function(f, c, b) {
754
+ var v = u(f, c);
755
+ v ? v.value = b : f.next = {
756
756
  // eslint-disable-line no-param-reassign
757
- key: l,
758
- next: y.next,
759
- value: S
757
+ key: c,
758
+ next: f.next,
759
+ value: b
760
760
  };
761
- }, A = function(y, l) {
762
- return !!c(y, l);
761
+ }, S = function(f, c) {
762
+ return !!u(f, c);
763
763
  };
764
764
  return ir = function() {
765
- var l, S, b, C = {
765
+ var c, b, v, C = {
766
766
  assert: function(P) {
767
767
  if (!C.has(P))
768
768
  throw new t("Side channel does not contain " + a(P));
769
769
  },
770
770
  get: function(P) {
771
771
  if (n && P && (typeof P == "object" || typeof P == "function")) {
772
- if (l)
773
- return m(l, P);
772
+ if (c)
773
+ return m(c, P);
774
774
  } else if (o) {
775
- if (S)
776
- return h(S, P);
777
- } else if (b)
778
- return s(b, P);
775
+ if (b)
776
+ return y(b, P);
777
+ } else if (v)
778
+ return s(v, P);
779
779
  },
780
780
  has: function(P) {
781
781
  if (n && P && (typeof P == "object" || typeof P == "function")) {
782
- if (l)
783
- return d(l, P);
782
+ if (c)
783
+ return p(c, P);
784
784
  } else if (o) {
785
- if (S)
786
- return i(S, P);
787
- } else if (b)
788
- return A(b, P);
785
+ if (b)
786
+ return A(b, P);
787
+ } else if (v)
788
+ return S(v, P);
789
789
  return !1;
790
790
  },
791
791
  set: function(P, I) {
792
- n && P && (typeof P == "object" || typeof P == "function") ? (l || (l = new n()), u(l, P, I)) : o ? (S || (S = new o()), w(S, P, I)) : (b || (b = { key: {}, next: null }), p(b, P, I));
792
+ n && P && (typeof P == "object" || typeof P == "function") ? (c || (c = new n()), l(c, P, I)) : o ? (b || (b = new o()), w(b, P, I)) : (v || (v = { key: {}, next: null }), i(v, P, I));
793
793
  }
794
794
  };
795
795
  return C;
@@ -822,120 +822,120 @@ function Wr() {
822
822
  if (Fr) return sr;
823
823
  Fr = 1;
824
824
  var e = gr(), r = Object.prototype.hasOwnProperty, a = Array.isArray, t = (function() {
825
- for (var A = [], y = 0; y < 256; ++y)
826
- A.push("%" + ((y < 16 ? "0" : "") + y.toString(16)).toUpperCase());
827
- return A;
828
- })(), n = function(y) {
829
- for (; y.length > 1; ) {
830
- var l = y.pop(), S = l.obj[l.prop];
831
- if (a(S)) {
832
- for (var b = [], C = 0; C < S.length; ++C)
833
- typeof S[C] < "u" && b.push(S[C]);
834
- l.obj[l.prop] = b;
825
+ for (var S = [], f = 0; f < 256; ++f)
826
+ S.push("%" + ((f < 16 ? "0" : "") + f.toString(16)).toUpperCase());
827
+ return S;
828
+ })(), n = function(f) {
829
+ for (; f.length > 1; ) {
830
+ var c = f.pop(), b = c.obj[c.prop];
831
+ if (a(b)) {
832
+ for (var v = [], C = 0; C < b.length; ++C)
833
+ typeof b[C] < "u" && v.push(b[C]);
834
+ c.obj[c.prop] = v;
835
835
  }
836
836
  }
837
- }, o = function(y, l) {
838
- for (var S = l && l.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, b = 0; b < y.length; ++b)
839
- typeof y[b] < "u" && (S[b] = y[b]);
840
- return S;
841
- }, m = function A(y, l, S) {
842
- if (!l)
843
- return y;
844
- if (typeof l != "object") {
845
- if (a(y))
846
- y.push(l);
847
- else if (y && typeof y == "object")
848
- (S && (S.plainObjects || S.allowPrototypes) || !r.call(Object.prototype, l)) && (y[l] = !0);
837
+ }, o = function(f, c) {
838
+ for (var b = c && c.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, v = 0; v < f.length; ++v)
839
+ typeof f[v] < "u" && (b[v] = f[v]);
840
+ return b;
841
+ }, m = function S(f, c, b) {
842
+ if (!c)
843
+ return f;
844
+ if (typeof c != "object") {
845
+ if (a(f))
846
+ f.push(c);
847
+ else if (f && typeof f == "object")
848
+ (b && (b.plainObjects || b.allowPrototypes) || !r.call(Object.prototype, c)) && (f[c] = !0);
849
849
  else
850
- return [y, l];
851
- return y;
850
+ return [f, c];
851
+ return f;
852
852
  }
853
- if (!y || typeof y != "object")
854
- return [y].concat(l);
855
- var b = y;
856
- return a(y) && !a(l) && (b = o(y, S)), a(y) && a(l) ? (l.forEach(function(C, P) {
857
- if (r.call(y, P)) {
858
- var I = y[P];
859
- I && typeof I == "object" && C && typeof C == "object" ? y[P] = A(I, C, S) : y.push(C);
853
+ if (!f || typeof f != "object")
854
+ return [f].concat(c);
855
+ var v = f;
856
+ return a(f) && !a(c) && (v = o(f, b)), a(f) && a(c) ? (c.forEach(function(C, P) {
857
+ if (r.call(f, P)) {
858
+ var I = f[P];
859
+ I && typeof I == "object" && C && typeof C == "object" ? f[P] = S(I, C, b) : f.push(C);
860
860
  } else
861
- y[P] = C;
862
- }), y) : Object.keys(l).reduce(function(C, P) {
863
- var I = l[P];
864
- return r.call(C, P) ? C[P] = A(C[P], I, S) : C[P] = I, C;
865
- }, b);
866
- }, u = function(y, l) {
867
- return Object.keys(l).reduce(function(S, b) {
868
- return S[b] = l[b], S;
869
- }, y);
870
- }, d = function(A, y, l) {
871
- var S = A.replace(/\+/g, " ");
872
- if (l === "iso-8859-1")
873
- return S.replace(/%[0-9a-f]{2}/gi, unescape);
861
+ f[P] = C;
862
+ }), f) : Object.keys(c).reduce(function(C, P) {
863
+ var I = c[P];
864
+ return r.call(C, P) ? C[P] = S(C[P], I, b) : C[P] = I, C;
865
+ }, v);
866
+ }, l = function(f, c) {
867
+ return Object.keys(c).reduce(function(b, v) {
868
+ return b[v] = c[v], b;
869
+ }, f);
870
+ }, p = function(S, f, c) {
871
+ var b = S.replace(/\+/g, " ");
872
+ if (c === "iso-8859-1")
873
+ return b.replace(/%[0-9a-f]{2}/gi, unescape);
874
874
  try {
875
- return decodeURIComponent(S);
875
+ return decodeURIComponent(b);
876
876
  } catch {
877
- return S;
877
+ return b;
878
878
  }
879
- }, h = function(y, l, S, b, C) {
880
- if (y.length === 0)
881
- return y;
882
- var P = y;
883
- if (typeof y == "symbol" ? P = Symbol.prototype.toString.call(y) : typeof y != "string" && (P = String(y)), S === "iso-8859-1")
879
+ }, y = function(f, c, b, v, C) {
880
+ if (f.length === 0)
881
+ return f;
882
+ var P = f;
883
+ if (typeof f == "symbol" ? P = Symbol.prototype.toString.call(f) : typeof f != "string" && (P = String(f)), b === "iso-8859-1")
884
884
  return escape(P).replace(/%u[0-9a-f]{4}/gi, function(V) {
885
885
  return "%26%23" + parseInt(V.slice(2), 16) + "%3B";
886
886
  });
887
- for (var I = "", _ = 0; _ < P.length; ++_) {
888
- var k = P.charCodeAt(_);
889
- if (k === 45 || k === 46 || k === 95 || k === 126 || k >= 48 && k <= 57 || k >= 65 && k <= 90 || k >= 97 && k <= 122 || C === e.RFC1738 && (k === 40 || k === 41)) {
890
- I += P.charAt(_);
887
+ for (var I = "", N = 0; N < P.length; ++N) {
888
+ var M = P.charCodeAt(N);
889
+ if (M === 45 || M === 46 || M === 95 || M === 126 || M >= 48 && M <= 57 || M >= 65 && M <= 90 || M >= 97 && M <= 122 || C === e.RFC1738 && (M === 40 || M === 41)) {
890
+ I += P.charAt(N);
891
891
  continue;
892
892
  }
893
- if (k < 128) {
894
- I = I + t[k];
893
+ if (M < 128) {
894
+ I = I + t[M];
895
895
  continue;
896
896
  }
897
- if (k < 2048) {
898
- I = I + (t[192 | k >> 6] + t[128 | k & 63]);
897
+ if (M < 2048) {
898
+ I = I + (t[192 | M >> 6] + t[128 | M & 63]);
899
899
  continue;
900
900
  }
901
- if (k < 55296 || k >= 57344) {
902
- I = I + (t[224 | k >> 12] + t[128 | k >> 6 & 63] + t[128 | k & 63]);
901
+ if (M < 55296 || M >= 57344) {
902
+ I = I + (t[224 | M >> 12] + t[128 | M >> 6 & 63] + t[128 | M & 63]);
903
903
  continue;
904
904
  }
905
- _ += 1, k = 65536 + ((k & 1023) << 10 | P.charCodeAt(_) & 1023), I += t[240 | k >> 18] + t[128 | k >> 12 & 63] + t[128 | k >> 6 & 63] + t[128 | k & 63];
905
+ N += 1, M = 65536 + ((M & 1023) << 10 | P.charCodeAt(N) & 1023), I += t[240 | M >> 18] + t[128 | M >> 12 & 63] + t[128 | M >> 6 & 63] + t[128 | M & 63];
906
906
  }
907
907
  return I;
908
- }, w = function(y) {
909
- for (var l = [{ obj: { o: y }, prop: "o" }], S = [], b = 0; b < l.length; ++b)
910
- for (var C = l[b], P = C.obj[C.prop], I = Object.keys(P), _ = 0; _ < I.length; ++_) {
911
- var k = I[_], V = P[k];
912
- typeof V == "object" && V !== null && S.indexOf(V) === -1 && (l.push({ obj: P, prop: k }), S.push(V));
908
+ }, w = function(f) {
909
+ for (var c = [{ obj: { o: f }, prop: "o" }], b = [], v = 0; v < c.length; ++v)
910
+ for (var C = c[v], P = C.obj[C.prop], I = Object.keys(P), N = 0; N < I.length; ++N) {
911
+ var M = I[N], V = P[M];
912
+ typeof V == "object" && V !== null && b.indexOf(V) === -1 && (c.push({ obj: P, prop: M }), b.push(V));
913
913
  }
914
- return n(l), y;
915
- }, i = function(y) {
916
- return Object.prototype.toString.call(y) === "[object RegExp]";
917
- }, c = function(y) {
918
- return !y || typeof y != "object" ? !1 : !!(y.constructor && y.constructor.isBuffer && y.constructor.isBuffer(y));
919
- }, s = function(y, l) {
920
- return [].concat(y, l);
921
- }, p = function(y, l) {
922
- if (a(y)) {
923
- for (var S = [], b = 0; b < y.length; b += 1)
924
- S.push(l(y[b]));
925
- return S;
914
+ return n(c), f;
915
+ }, A = function(f) {
916
+ return Object.prototype.toString.call(f) === "[object RegExp]";
917
+ }, u = function(f) {
918
+ return !f || typeof f != "object" ? !1 : !!(f.constructor && f.constructor.isBuffer && f.constructor.isBuffer(f));
919
+ }, s = function(f, c) {
920
+ return [].concat(f, c);
921
+ }, i = function(f, c) {
922
+ if (a(f)) {
923
+ for (var b = [], v = 0; v < f.length; v += 1)
924
+ b.push(c(f[v]));
925
+ return b;
926
926
  }
927
- return l(y);
927
+ return c(f);
928
928
  };
929
929
  return sr = {
930
930
  arrayToObject: o,
931
- assign: u,
931
+ assign: l,
932
932
  combine: s,
933
933
  compact: w,
934
- decode: d,
935
- encode: h,
936
- isBuffer: c,
937
- isRegExp: i,
938
- maybeMap: p,
934
+ decode: p,
935
+ encode: y,
936
+ isBuffer: u,
937
+ isRegExp: A,
938
+ maybeMap: i,
939
939
  merge: m
940
940
  }, sr;
941
941
  }
@@ -944,19 +944,19 @@ function ut() {
944
944
  if ($r) return ur;
945
945
  $r = 1;
946
946
  var e = st(), r = Wr(), a = gr(), t = Object.prototype.hasOwnProperty, n = {
947
- brackets: function(l) {
948
- return l + "[]";
947
+ brackets: function(c) {
948
+ return c + "[]";
949
949
  },
950
950
  comma: "comma",
951
- indices: function(l, S) {
952
- return l + "[" + S + "]";
951
+ indices: function(c, b) {
952
+ return c + "[" + b + "]";
953
953
  },
954
- repeat: function(l) {
955
- return l;
954
+ repeat: function(c) {
955
+ return c;
956
956
  }
957
- }, o = Array.isArray, m = String.prototype.split, u = Array.prototype.push, d = function(y, l) {
958
- u.apply(y, o(l) ? l : [l]);
959
- }, h = Date.prototype.toISOString, w = a.default, i = {
957
+ }, o = Array.isArray, m = String.prototype.split, l = Array.prototype.push, p = function(f, c) {
958
+ l.apply(f, o(c) ? c : [c]);
959
+ }, y = Date.prototype.toISOString, w = a.default, A = {
960
960
  addQueryPrefix: !1,
961
961
  allowDots: !1,
962
962
  charset: "utf-8",
@@ -969,16 +969,16 @@ function ut() {
969
969
  formatter: a.formatters[w],
970
970
  // deprecated
971
971
  indices: !1,
972
- serializeDate: function(l) {
973
- return h.call(l);
972
+ serializeDate: function(c) {
973
+ return y.call(c);
974
974
  },
975
975
  skipNulls: !1,
976
976
  strictNullHandling: !1
977
- }, c = function(l) {
978
- return typeof l == "string" || typeof l == "number" || typeof l == "boolean" || typeof l == "symbol" || typeof l == "bigint";
979
- }, s = {}, p = function y(l, S, b, C, P, I, _, k, V, F, L, R, T, $, B, z) {
980
- for (var N = l, Z = z, Q = 0, ne = !1; (Z = Z.get(s)) !== void 0 && !ne; ) {
981
- var X = Z.get(l);
977
+ }, u = function(c) {
978
+ return typeof c == "string" || typeof c == "number" || typeof c == "boolean" || typeof c == "symbol" || typeof c == "bigint";
979
+ }, s = {}, i = function f(c, b, v, C, P, I, N, M, V, U, L, F, T, R, $, z) {
980
+ for (var _ = c, Z = z, Q = 0, ne = !1; (Z = Z.get(s)) !== void 0 && !ne; ) {
981
+ var X = Z.get(c);
982
982
  if (Q += 1, typeof X < "u") {
983
983
  if (X === Q)
984
984
  throw new RangeError("Cyclic object value");
@@ -986,133 +986,133 @@ function ut() {
986
986
  }
987
987
  typeof Z.get(s) > "u" && (Q = 0);
988
988
  }
989
- if (typeof k == "function" ? N = k(S, N) : N instanceof Date ? N = L(N) : b === "comma" && o(N) && (N = r.maybeMap(N, function(ee) {
989
+ if (typeof M == "function" ? _ = M(b, _) : _ instanceof Date ? _ = L(_) : v === "comma" && o(_) && (_ = r.maybeMap(_, function(ee) {
990
990
  return ee instanceof Date ? L(ee) : ee;
991
- })), N === null) {
991
+ })), _ === null) {
992
992
  if (P)
993
- return _ && !$ ? _(S, i.encoder, B, "key", R) : S;
994
- N = "";
993
+ return N && !R ? N(b, A.encoder, $, "key", F) : b;
994
+ _ = "";
995
995
  }
996
- if (c(N) || r.isBuffer(N)) {
997
- if (_) {
998
- var W = $ ? S : _(S, i.encoder, B, "key", R);
999
- if (b === "comma" && $) {
1000
- for (var ie = m.call(String(N), ","), re = "", te = 0; te < ie.length; ++te)
1001
- re += (te === 0 ? "" : ",") + T(_(ie[te], i.encoder, B, "value", R));
1002
- return [T(W) + (C && o(N) && ie.length === 1 ? "[]" : "") + "=" + re];
996
+ if (u(_) || r.isBuffer(_)) {
997
+ if (N) {
998
+ var W = R ? b : N(b, A.encoder, $, "key", F);
999
+ if (v === "comma" && R) {
1000
+ for (var ie = m.call(String(_), ","), re = "", te = 0; te < ie.length; ++te)
1001
+ re += (te === 0 ? "" : ",") + T(N(ie[te], A.encoder, $, "value", F));
1002
+ return [T(W) + (C && o(_) && ie.length === 1 ? "[]" : "") + "=" + re];
1003
1003
  }
1004
- return [T(W) + "=" + T(_(N, i.encoder, B, "value", R))];
1004
+ return [T(W) + "=" + T(N(_, A.encoder, $, "value", F))];
1005
1005
  }
1006
- return [T(S) + "=" + T(String(N))];
1006
+ return [T(b) + "=" + T(String(_))];
1007
1007
  }
1008
1008
  var ce = [];
1009
- if (typeof N > "u")
1009
+ if (typeof _ > "u")
1010
1010
  return ce;
1011
1011
  var ue;
1012
- if (b === "comma" && o(N))
1013
- ue = [{ value: N.length > 0 ? N.join(",") || null : void 0 }];
1014
- else if (o(k))
1015
- ue = k;
1012
+ if (v === "comma" && o(_))
1013
+ ue = [{ value: _.length > 0 ? _.join(",") || null : void 0 }];
1014
+ else if (o(M))
1015
+ ue = M;
1016
1016
  else {
1017
- var oe = Object.keys(N);
1017
+ var oe = Object.keys(_);
1018
1018
  ue = V ? oe.sort(V) : oe;
1019
1019
  }
1020
- for (var de = C && o(N) && N.length === 1 ? S + "[]" : S, pe = 0; pe < ue.length; ++pe) {
1021
- var se = ue[pe], ye = typeof se == "object" && typeof se.value < "u" ? se.value : N[se];
1020
+ for (var de = C && o(_) && _.length === 1 ? b + "[]" : b, pe = 0; pe < ue.length; ++pe) {
1021
+ var se = ue[pe], ye = typeof se == "object" && typeof se.value < "u" ? se.value : _[se];
1022
1022
  if (!(I && ye === null)) {
1023
- var be = o(N) ? typeof b == "function" ? b(de, se) : de : de + (F ? "." + se : "[" + se + "]");
1024
- z.set(l, Q);
1023
+ var be = o(_) ? typeof v == "function" ? v(de, se) : de : de + (U ? "." + se : "[" + se + "]");
1024
+ z.set(c, Q);
1025
1025
  var J = e();
1026
- J.set(s, z), d(ce, y(
1026
+ J.set(s, z), p(ce, f(
1027
1027
  ye,
1028
1028
  be,
1029
- b,
1029
+ v,
1030
1030
  C,
1031
1031
  P,
1032
1032
  I,
1033
- _,
1034
- k,
1033
+ N,
1034
+ M,
1035
1035
  V,
1036
- F,
1036
+ U,
1037
1037
  L,
1038
- R,
1038
+ F,
1039
1039
  T,
1040
+ R,
1040
1041
  $,
1041
- B,
1042
1042
  J
1043
1043
  ));
1044
1044
  }
1045
1045
  }
1046
1046
  return ce;
1047
- }, A = function(l) {
1048
- if (!l)
1049
- return i;
1050
- if (l.encoder !== null && typeof l.encoder < "u" && typeof l.encoder != "function")
1047
+ }, S = function(c) {
1048
+ if (!c)
1049
+ return A;
1050
+ if (c.encoder !== null && typeof c.encoder < "u" && typeof c.encoder != "function")
1051
1051
  throw new TypeError("Encoder has to be a function.");
1052
- var S = l.charset || i.charset;
1053
- if (typeof l.charset < "u" && l.charset !== "utf-8" && l.charset !== "iso-8859-1")
1052
+ var b = c.charset || A.charset;
1053
+ if (typeof c.charset < "u" && c.charset !== "utf-8" && c.charset !== "iso-8859-1")
1054
1054
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1055
- var b = a.default;
1056
- if (typeof l.format < "u") {
1057
- if (!t.call(a.formatters, l.format))
1055
+ var v = a.default;
1056
+ if (typeof c.format < "u") {
1057
+ if (!t.call(a.formatters, c.format))
1058
1058
  throw new TypeError("Unknown format option provided.");
1059
- b = l.format;
1059
+ v = c.format;
1060
1060
  }
1061
- var C = a.formatters[b], P = i.filter;
1062
- return (typeof l.filter == "function" || o(l.filter)) && (P = l.filter), {
1063
- addQueryPrefix: typeof l.addQueryPrefix == "boolean" ? l.addQueryPrefix : i.addQueryPrefix,
1064
- allowDots: typeof l.allowDots > "u" ? i.allowDots : !!l.allowDots,
1065
- charset: S,
1066
- charsetSentinel: typeof l.charsetSentinel == "boolean" ? l.charsetSentinel : i.charsetSentinel,
1067
- delimiter: typeof l.delimiter > "u" ? i.delimiter : l.delimiter,
1068
- encode: typeof l.encode == "boolean" ? l.encode : i.encode,
1069
- encoder: typeof l.encoder == "function" ? l.encoder : i.encoder,
1070
- encodeValuesOnly: typeof l.encodeValuesOnly == "boolean" ? l.encodeValuesOnly : i.encodeValuesOnly,
1061
+ var C = a.formatters[v], P = A.filter;
1062
+ return (typeof c.filter == "function" || o(c.filter)) && (P = c.filter), {
1063
+ addQueryPrefix: typeof c.addQueryPrefix == "boolean" ? c.addQueryPrefix : A.addQueryPrefix,
1064
+ allowDots: typeof c.allowDots > "u" ? A.allowDots : !!c.allowDots,
1065
+ charset: b,
1066
+ charsetSentinel: typeof c.charsetSentinel == "boolean" ? c.charsetSentinel : A.charsetSentinel,
1067
+ delimiter: typeof c.delimiter > "u" ? A.delimiter : c.delimiter,
1068
+ encode: typeof c.encode == "boolean" ? c.encode : A.encode,
1069
+ encoder: typeof c.encoder == "function" ? c.encoder : A.encoder,
1070
+ encodeValuesOnly: typeof c.encodeValuesOnly == "boolean" ? c.encodeValuesOnly : A.encodeValuesOnly,
1071
1071
  filter: P,
1072
- format: b,
1072
+ format: v,
1073
1073
  formatter: C,
1074
- serializeDate: typeof l.serializeDate == "function" ? l.serializeDate : i.serializeDate,
1075
- skipNulls: typeof l.skipNulls == "boolean" ? l.skipNulls : i.skipNulls,
1076
- sort: typeof l.sort == "function" ? l.sort : null,
1077
- strictNullHandling: typeof l.strictNullHandling == "boolean" ? l.strictNullHandling : i.strictNullHandling
1074
+ serializeDate: typeof c.serializeDate == "function" ? c.serializeDate : A.serializeDate,
1075
+ skipNulls: typeof c.skipNulls == "boolean" ? c.skipNulls : A.skipNulls,
1076
+ sort: typeof c.sort == "function" ? c.sort : null,
1077
+ strictNullHandling: typeof c.strictNullHandling == "boolean" ? c.strictNullHandling : A.strictNullHandling
1078
1078
  };
1079
1079
  };
1080
- return ur = function(y, l) {
1081
- var S = y, b = A(l), C, P;
1082
- typeof b.filter == "function" ? (P = b.filter, S = P("", S)) : o(b.filter) && (P = b.filter, C = P);
1080
+ return ur = function(f, c) {
1081
+ var b = f, v = S(c), C, P;
1082
+ typeof v.filter == "function" ? (P = v.filter, b = P("", b)) : o(v.filter) && (P = v.filter, C = P);
1083
1083
  var I = [];
1084
- if (typeof S != "object" || S === null)
1084
+ if (typeof b != "object" || b === null)
1085
1085
  return "";
1086
- var _;
1087
- l && l.arrayFormat in n ? _ = l.arrayFormat : l && "indices" in l ? _ = l.indices ? "indices" : "repeat" : _ = "indices";
1088
- var k = n[_];
1089
- if (l && "commaRoundTrip" in l && typeof l.commaRoundTrip != "boolean")
1086
+ var N;
1087
+ c && c.arrayFormat in n ? N = c.arrayFormat : c && "indices" in c ? N = c.indices ? "indices" : "repeat" : N = "indices";
1088
+ var M = n[N];
1089
+ if (c && "commaRoundTrip" in c && typeof c.commaRoundTrip != "boolean")
1090
1090
  throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
1091
- var V = k === "comma" && l && l.commaRoundTrip;
1092
- C || (C = Object.keys(S)), b.sort && C.sort(b.sort);
1093
- for (var F = e(), L = 0; L < C.length; ++L) {
1094
- var R = C[L];
1095
- b.skipNulls && S[R] === null || d(I, p(
1096
- S[R],
1097
- R,
1098
- k,
1091
+ var V = M === "comma" && c && c.commaRoundTrip;
1092
+ C || (C = Object.keys(b)), v.sort && C.sort(v.sort);
1093
+ for (var U = e(), L = 0; L < C.length; ++L) {
1094
+ var F = C[L];
1095
+ v.skipNulls && b[F] === null || p(I, i(
1096
+ b[F],
1097
+ F,
1098
+ M,
1099
1099
  V,
1100
- b.strictNullHandling,
1101
- b.skipNulls,
1102
- b.encode ? b.encoder : null,
1103
- b.filter,
1104
- b.sort,
1105
- b.allowDots,
1106
- b.serializeDate,
1107
- b.format,
1108
- b.formatter,
1109
- b.encodeValuesOnly,
1110
- b.charset,
1111
- F
1100
+ v.strictNullHandling,
1101
+ v.skipNulls,
1102
+ v.encode ? v.encoder : null,
1103
+ v.filter,
1104
+ v.sort,
1105
+ v.allowDots,
1106
+ v.serializeDate,
1107
+ v.format,
1108
+ v.formatter,
1109
+ v.encodeValuesOnly,
1110
+ v.charset,
1111
+ U
1112
1112
  ));
1113
1113
  }
1114
- var T = I.join(b.delimiter), $ = b.addQueryPrefix === !0 ? "?" : "";
1115
- return b.charsetSentinel && (b.charset === "iso-8859-1" ? $ += "utf8=%26%2310003%3B&" : $ += "utf8=%E2%9C%93&"), T.length > 0 ? $ + T : "";
1114
+ var T = I.join(v.delimiter), R = v.addQueryPrefix === !0 ? "?" : "";
1115
+ return v.charsetSentinel && (v.charset === "iso-8859-1" ? R += "utf8=%26%2310003%3B&" : R += "utf8=%E2%9C%93&"), T.length > 0 ? R + T : "";
1116
1116
  }, ur;
1117
1117
  }
1118
1118
  var cr, Ur;
@@ -1136,70 +1136,70 @@ function ct() {
1136
1136
  parseArrays: !0,
1137
1137
  plainObjects: !1,
1138
1138
  strictNullHandling: !1
1139
- }, n = function(c) {
1140
- return c.replace(/&#(\d+);/g, function(s, p) {
1141
- return String.fromCharCode(parseInt(p, 10));
1139
+ }, n = function(u) {
1140
+ return u.replace(/&#(\d+);/g, function(s, i) {
1141
+ return String.fromCharCode(parseInt(i, 10));
1142
1142
  });
1143
- }, o = function(c, s) {
1144
- return c && typeof c == "string" && s.comma && c.indexOf(",") > -1 ? c.split(",") : c;
1145
- }, m = "utf8=%26%2310003%3B", u = "utf8=%E2%9C%93", d = function(s, p) {
1146
- var A = {}, y = p.ignoreQueryPrefix ? s.replace(/^\?/, "") : s, l = p.parameterLimit === 1 / 0 ? void 0 : p.parameterLimit, S = y.split(p.delimiter, l), b = -1, C, P = p.charset;
1147
- if (p.charsetSentinel)
1148
- for (C = 0; C < S.length; ++C)
1149
- S[C].indexOf("utf8=") === 0 && (S[C] === u ? P = "utf-8" : S[C] === m && (P = "iso-8859-1"), b = C, C = S.length);
1150
- for (C = 0; C < S.length; ++C)
1151
- if (C !== b) {
1152
- var I = S[C], _ = I.indexOf("]="), k = _ === -1 ? I.indexOf("=") : _ + 1, V, F;
1153
- k === -1 ? (V = p.decoder(I, t.decoder, P, "key"), F = p.strictNullHandling ? null : "") : (V = p.decoder(I.slice(0, k), t.decoder, P, "key"), F = e.maybeMap(
1154
- o(I.slice(k + 1), p),
1143
+ }, o = function(u, s) {
1144
+ return u && typeof u == "string" && s.comma && u.indexOf(",") > -1 ? u.split(",") : u;
1145
+ }, m = "utf8=%26%2310003%3B", l = "utf8=%E2%9C%93", p = function(s, i) {
1146
+ var S = {}, f = i.ignoreQueryPrefix ? s.replace(/^\?/, "") : s, c = i.parameterLimit === 1 / 0 ? void 0 : i.parameterLimit, b = f.split(i.delimiter, c), v = -1, C, P = i.charset;
1147
+ if (i.charsetSentinel)
1148
+ for (C = 0; C < b.length; ++C)
1149
+ b[C].indexOf("utf8=") === 0 && (b[C] === l ? P = "utf-8" : b[C] === m && (P = "iso-8859-1"), v = C, C = b.length);
1150
+ for (C = 0; C < b.length; ++C)
1151
+ if (C !== v) {
1152
+ var I = b[C], N = I.indexOf("]="), M = N === -1 ? I.indexOf("=") : N + 1, V, U;
1153
+ M === -1 ? (V = i.decoder(I, t.decoder, P, "key"), U = i.strictNullHandling ? null : "") : (V = i.decoder(I.slice(0, M), t.decoder, P, "key"), U = e.maybeMap(
1154
+ o(I.slice(M + 1), i),
1155
1155
  function(L) {
1156
- return p.decoder(L, t.decoder, P, "value");
1156
+ return i.decoder(L, t.decoder, P, "value");
1157
1157
  }
1158
- )), F && p.interpretNumericEntities && P === "iso-8859-1" && (F = n(F)), I.indexOf("[]=") > -1 && (F = a(F) ? [F] : F), r.call(A, V) ? A[V] = e.combine(A[V], F) : A[V] = F;
1158
+ )), U && i.interpretNumericEntities && P === "iso-8859-1" && (U = n(U)), I.indexOf("[]=") > -1 && (U = a(U) ? [U] : U), r.call(S, V) ? S[V] = e.combine(S[V], U) : S[V] = U;
1159
1159
  }
1160
- return A;
1161
- }, h = function(c, s, p, A) {
1162
- for (var y = A ? s : o(s, p), l = c.length - 1; l >= 0; --l) {
1163
- var S, b = c[l];
1164
- if (b === "[]" && p.parseArrays)
1165
- S = [].concat(y);
1160
+ return S;
1161
+ }, y = function(u, s, i, S) {
1162
+ for (var f = S ? s : o(s, i), c = u.length - 1; c >= 0; --c) {
1163
+ var b, v = u[c];
1164
+ if (v === "[]" && i.parseArrays)
1165
+ b = [].concat(f);
1166
1166
  else {
1167
- S = p.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1168
- var C = b.charAt(0) === "[" && b.charAt(b.length - 1) === "]" ? b.slice(1, -1) : b, P = parseInt(C, 10);
1169
- !p.parseArrays && C === "" ? S = { 0: y } : !isNaN(P) && b !== C && String(P) === C && P >= 0 && p.parseArrays && P <= p.arrayLimit ? (S = [], S[P] = y) : C !== "__proto__" && (S[C] = y);
1167
+ b = i.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1168
+ var C = v.charAt(0) === "[" && v.charAt(v.length - 1) === "]" ? v.slice(1, -1) : v, P = parseInt(C, 10);
1169
+ !i.parseArrays && C === "" ? b = { 0: f } : !isNaN(P) && v !== C && String(P) === C && P >= 0 && i.parseArrays && P <= i.arrayLimit ? (b = [], b[P] = f) : C !== "__proto__" && (b[C] = f);
1170
1170
  }
1171
- y = S;
1171
+ f = b;
1172
1172
  }
1173
- return y;
1174
- }, w = function(s, p, A, y) {
1173
+ return f;
1174
+ }, w = function(s, i, S, f) {
1175
1175
  if (s) {
1176
- var l = A.allowDots ? s.replace(/\.([^.[]+)/g, "[$1]") : s, S = /(\[[^[\]]*])/, b = /(\[[^[\]]*])/g, C = A.depth > 0 && S.exec(l), P = C ? l.slice(0, C.index) : l, I = [];
1176
+ var c = S.allowDots ? s.replace(/\.([^.[]+)/g, "[$1]") : s, b = /(\[[^[\]]*])/, v = /(\[[^[\]]*])/g, C = S.depth > 0 && b.exec(c), P = C ? c.slice(0, C.index) : c, I = [];
1177
1177
  if (P) {
1178
- if (!A.plainObjects && r.call(Object.prototype, P) && !A.allowPrototypes)
1178
+ if (!S.plainObjects && r.call(Object.prototype, P) && !S.allowPrototypes)
1179
1179
  return;
1180
1180
  I.push(P);
1181
1181
  }
1182
- for (var _ = 0; A.depth > 0 && (C = b.exec(l)) !== null && _ < A.depth; ) {
1183
- if (_ += 1, !A.plainObjects && r.call(Object.prototype, C[1].slice(1, -1)) && !A.allowPrototypes)
1182
+ for (var N = 0; S.depth > 0 && (C = v.exec(c)) !== null && N < S.depth; ) {
1183
+ if (N += 1, !S.plainObjects && r.call(Object.prototype, C[1].slice(1, -1)) && !S.allowPrototypes)
1184
1184
  return;
1185
1185
  I.push(C[1]);
1186
1186
  }
1187
- return C && I.push("[" + l.slice(C.index) + "]"), h(I, p, A, y);
1187
+ return C && I.push("[" + c.slice(C.index) + "]"), y(I, i, S, f);
1188
1188
  }
1189
- }, i = function(s) {
1189
+ }, A = function(s) {
1190
1190
  if (!s)
1191
1191
  return t;
1192
1192
  if (s.decoder !== null && s.decoder !== void 0 && typeof s.decoder != "function")
1193
1193
  throw new TypeError("Decoder has to be a function.");
1194
1194
  if (typeof s.charset < "u" && s.charset !== "utf-8" && s.charset !== "iso-8859-1")
1195
1195
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1196
- var p = typeof s.charset > "u" ? t.charset : s.charset;
1196
+ var i = typeof s.charset > "u" ? t.charset : s.charset;
1197
1197
  return {
1198
1198
  allowDots: typeof s.allowDots > "u" ? t.allowDots : !!s.allowDots,
1199
1199
  allowPrototypes: typeof s.allowPrototypes == "boolean" ? s.allowPrototypes : t.allowPrototypes,
1200
1200
  allowSparse: typeof s.allowSparse == "boolean" ? s.allowSparse : t.allowSparse,
1201
1201
  arrayLimit: typeof s.arrayLimit == "number" ? s.arrayLimit : t.arrayLimit,
1202
- charset: p,
1202
+ charset: i,
1203
1203
  charsetSentinel: typeof s.charsetSentinel == "boolean" ? s.charsetSentinel : t.charsetSentinel,
1204
1204
  comma: typeof s.comma == "boolean" ? s.comma : t.comma,
1205
1205
  decoder: typeof s.decoder == "function" ? s.decoder : t.decoder,
@@ -1214,15 +1214,15 @@ function ct() {
1214
1214
  strictNullHandling: typeof s.strictNullHandling == "boolean" ? s.strictNullHandling : t.strictNullHandling
1215
1215
  };
1216
1216
  };
1217
- return cr = function(c, s) {
1218
- var p = i(s);
1219
- if (c === "" || c === null || typeof c > "u")
1220
- return p.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1221
- for (var A = typeof c == "string" ? d(c, p) : c, y = p.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, l = Object.keys(A), S = 0; S < l.length; ++S) {
1222
- var b = l[S], C = w(b, A[b], p, typeof c == "string");
1223
- y = e.merge(y, C, p);
1217
+ return cr = function(u, s) {
1218
+ var i = A(s);
1219
+ if (u === "" || u === null || typeof u > "u")
1220
+ return i.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1221
+ for (var S = typeof u == "string" ? p(u, i) : u, f = i.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, c = Object.keys(S), b = 0; b < c.length; ++b) {
1222
+ var v = c[b], C = w(v, S[v], i, typeof u == "string");
1223
+ f = e.merge(f, C, i);
1224
1224
  }
1225
- return p.allowSparse === !0 ? y : e.compact(y);
1225
+ return i.allowSparse === !0 ? f : e.compact(f);
1226
1226
  }, cr;
1227
1227
  }
1228
1228
  var lr, Br;
@@ -1237,335 +1237,335 @@ function lt() {
1237
1237
  }, lr;
1238
1238
  }
1239
1239
  var ft = lt();
1240
- const dt = /* @__PURE__ */ mr(ft), vr = "0.1.205", pt = Ee.CancelToken;
1240
+ const dt = /* @__PURE__ */ mr(ft), vr = "0.1.207", pt = Ee.CancelToken;
1241
1241
  var mt = function(e) {
1242
1242
  var r;
1243
1243
  typeof window < "u" && (r = e.cache.get("api"));
1244
1244
  const a = Ee.defaults.adapter;
1245
- function t(d) {
1246
- var h = [
1247
- d.method,
1248
- d.url,
1249
- d.headers?.Authorization,
1250
- d.headers.Accept,
1245
+ function t(p) {
1246
+ var y = [
1247
+ p.method,
1248
+ p.url,
1249
+ p.headers?.Authorization,
1250
+ p.headers.Accept,
1251
1251
  JSON.stringify({
1252
- params: d.params,
1253
- data: d.data
1252
+ params: p.params,
1253
+ data: p.data
1254
1254
  })
1255
1255
  ].filter(Boolean).join("-");
1256
- return h;
1256
+ return y;
1257
1257
  }
1258
- const n = {}, m = u(function(d) {
1259
- var h = t(d);
1260
- return n[h] || (n[h] = new Promise(function(w, i) {
1261
- var c, s;
1262
- switch (String(d.method).toLowerCase()) {
1258
+ const n = {}, m = l(function(p) {
1259
+ var y = t(p);
1260
+ return n[y] || (n[y] = new Promise(function(w, A) {
1261
+ var u, s;
1262
+ switch (String(p.method).toLowerCase()) {
1263
1263
  case "post":
1264
1264
  case "patch":
1265
1265
  case "put":
1266
1266
  case "delete":
1267
- d.cache || (d.cache = !1);
1267
+ p.cache || (p.cache = !1);
1268
1268
  break;
1269
1269
  }
1270
- return d.cache === !1 || (c = d.cache || r, c && (s = c.get(h))), s ? w(s) : (Object.assign(d, { adapter: a }), Ee.request(d).then(
1271
- function(p) {
1272
- delete n[h], w(p);
1270
+ return p.cache === !1 || (u = p.cache || r, u && (s = u.get(y))), s ? w(s) : (Object.assign(p, { adapter: a }), Ee.request(p).then(
1271
+ function(i) {
1272
+ delete n[y], w(i);
1273
1273
  },
1274
- function(p) {
1275
- delete n[h], i(p);
1274
+ function(i) {
1275
+ delete n[y], A(i);
1276
1276
  }
1277
1277
  ));
1278
- })), n[h];
1278
+ })), n[y];
1279
1279
  });
1280
- m.generateEndpointURL = function(d, h, w) {
1281
- w = w || {}, h = h || {};
1282
- var i;
1283
- const c = w.file && e.fileAPI || e.apiURL;
1284
- w.withoutToken || (delete h.access_token, i = e.auth.getCurrentToken()), d[0] == "/" && d.slice(1);
1285
- var s = e.utils.mapParameters(h);
1286
- i ? s = s ? `?access_token=${i}&${s}` : `?access_token=${i}` : s = s ? `?${s}` : "";
1287
- var p = `${c}${d}${s}`;
1288
- return p;
1289
- }, m.wasCancelled = function(d) {
1290
- return Ee.isCancel(d);
1280
+ m.generateEndpointURL = function(p, y, w) {
1281
+ w = w || {}, y = y || {};
1282
+ var A;
1283
+ const u = w.file && e.fileAPI || e.apiURL;
1284
+ w.withoutToken || (delete y.access_token, A = e.auth.getCurrentToken()), p[0] == "/" && p.slice(1);
1285
+ var s = e.utils.mapParameters(y);
1286
+ A ? s = s ? `?access_token=${A}&${s}` : `?access_token=${A}` : s = s ? `?${s}` : "";
1287
+ var i = `${u}${p}${s}`;
1288
+ return i;
1289
+ }, m.wasCancelled = function(p) {
1290
+ return Ee.isCancel(p);
1291
1291
  };
1292
- function u(d) {
1293
- var h = Ee.create({
1294
- paramsSerializer: (i) => dt.stringify(i, { arrayFormat: "repeat" }),
1295
- adapter: d
1292
+ function l(p) {
1293
+ var y = Ee.create({
1294
+ paramsSerializer: (A) => dt.stringify(A, { arrayFormat: "repeat" }),
1295
+ adapter: p
1296
1296
  });
1297
- h.defaults.baseURL = e.apiURL, h.defaults.headers.common.Accept = "application/json", h.interceptors.request.use(function(i) {
1298
- if (t(i), i.withoutToken)
1299
- return i;
1300
- if (i.headers["qik-request-date"] = (/* @__PURE__ */ new Date()).getTime(), Intl) {
1297
+ y.defaults.baseURL = e.apiURL, y.defaults.headers.common.Accept = "application/json", y.interceptors.request.use(function(A) {
1298
+ if (t(A), A.withoutToken)
1299
+ return A;
1300
+ if (A.headers["qik-request-date"] = (/* @__PURE__ */ new Date()).getTime(), Intl) {
1301
1301
  const s = Intl.DateTimeFormat().resolvedOptions().timeZone;
1302
- s && (i.headers["qik-request-timezone"] = s);
1302
+ s && (A.headers["qik-request-timezone"] = s);
1303
1303
  }
1304
- i.headers["qik-api-version"] = vr, e?.socket?.windowID && (i.headers["qik-socket-window"] = e.socket.windowID);
1305
- var c = e.auth.getCurrentToken();
1306
- return c && (i.headers.Authorization = `Bearer ${c}`, i.params && i.params.access_token && delete i.params.access_token), i;
1304
+ A.headers["qik-api-version"] = vr, e?.socket?.windowID && (A.headers["qik-socket-window"] = e.socket.windowID);
1305
+ var u = e.auth.getCurrentToken();
1306
+ return u && (A.headers.Authorization = `Bearer ${u}`, A.params && A.params.access_token && delete A.params.access_token), A;
1307
1307
  });
1308
1308
  let w = 0;
1309
- return h.interceptors.response.use(
1310
- function(i) {
1311
- var c = i.config, s = i.status;
1309
+ return y.interceptors.response.use(
1310
+ function(A) {
1311
+ var u = A.config, s = A.status;
1312
1312
  switch (s) {
1313
1313
  case 204:
1314
1314
  if (w < 5)
1315
- return w++, new Promise(function(p, A) {
1315
+ return w++, new Promise(function(i, S) {
1316
1316
  setTimeout(function() {
1317
- return h.request(c).then(p, A);
1317
+ return y.request(u).then(i, S);
1318
1318
  }, 800);
1319
1319
  });
1320
1320
  console.log("Failed after 5 retries"), w = 0;
1321
1321
  break;
1322
1322
  }
1323
- return i;
1323
+ return A;
1324
1324
  },
1325
- function(i) {
1326
- if (Ee.isCancel(i))
1327
- return Promise.reject(i);
1328
- var c = i?.response?.status || i.status;
1329
- switch (c) {
1325
+ function(A) {
1326
+ if (Ee.isCancel(A))
1327
+ return Promise.reject(A);
1328
+ var u = A?.response?.status || A.status;
1329
+ switch (u) {
1330
1330
  case 401:
1331
1331
  break;
1332
1332
  case 502:
1333
1333
  case 504:
1334
1334
  if (w < 5)
1335
- return w++, new Promise(function(s, p) {
1335
+ return w++, new Promise(function(s, i) {
1336
1336
  setTimeout(function() {
1337
- return h.request(i.config).then(s, p);
1337
+ return y.request(A.config).then(s, i);
1338
1338
  }, 800);
1339
1339
  });
1340
1340
  console.log("Failed after 5 retries"), w = 0;
1341
1341
  break;
1342
1342
  }
1343
- return Promise.reject(i);
1343
+ return Promise.reject(A);
1344
1344
  }
1345
- ), h;
1345
+ ), y;
1346
1346
  }
1347
1347
  return m.CancelToken = pt, m.axios = Ee, m;
1348
1348
  }, fr, Gr;
1349
1349
  function yt() {
1350
1350
  if (Gr) return fr;
1351
1351
  Gr = 1;
1352
- var e = "Expected a function", r = "__lodash_hash_undefined__", a = "[object Function]", t = "[object GeneratorFunction]", n = "[object Symbol]", o = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, m = /^\w*$/, u = /^\./, d = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, h = /[\\^$.*+?()[\]{}|]/g, w = /\\(\\)?/g, i = /^\[object .+?Constructor\]$/, c = typeof Ae == "object" && Ae && Ae.Object === Object && Ae, s = typeof self == "object" && self && self.Object === Object && self, p = c || s || Function("return this")();
1353
- function A(f, E) {
1354
- return f?.[E];
1352
+ var e = "Expected a function", r = "__lodash_hash_undefined__", a = "[object Function]", t = "[object GeneratorFunction]", n = "[object Symbol]", o = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, m = /^\w*$/, l = /^\./, p = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, y = /[\\^$.*+?()[\]{}|]/g, w = /\\(\\)?/g, A = /^\[object .+?Constructor\]$/, u = typeof Ae == "object" && Ae && Ae.Object === Object && Ae, s = typeof self == "object" && self && self.Object === Object && self, i = u || s || Function("return this")();
1353
+ function S(d, E) {
1354
+ return d?.[E];
1355
1355
  }
1356
- function y(f) {
1356
+ function f(d) {
1357
1357
  var E = !1;
1358
- if (f != null && typeof f.toString != "function")
1358
+ if (d != null && typeof d.toString != "function")
1359
1359
  try {
1360
- E = !!(f + "");
1360
+ E = !!(d + "");
1361
1361
  } catch {
1362
1362
  }
1363
1363
  return E;
1364
1364
  }
1365
- var l = Array.prototype, S = Function.prototype, b = Object.prototype, C = p["__core-js_shared__"], P = (function() {
1366
- var f = /[^.]+$/.exec(C && C.keys && C.keys.IE_PROTO || "");
1367
- return f ? "Symbol(src)_1." + f : "";
1368
- })(), I = S.toString, _ = b.hasOwnProperty, k = b.toString, V = RegExp(
1369
- "^" + I.call(_).replace(h, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
1370
- ), F = p.Symbol, L = l.splice, R = xe(p, "Map"), T = xe(Object, "create"), $ = F ? F.prototype : void 0, B = $ ? $.toString : void 0;
1371
- function z(f) {
1372
- var E = -1, x = f ? f.length : 0;
1365
+ var c = Array.prototype, b = Function.prototype, v = Object.prototype, C = i["__core-js_shared__"], P = (function() {
1366
+ var d = /[^.]+$/.exec(C && C.keys && C.keys.IE_PROTO || "");
1367
+ return d ? "Symbol(src)_1." + d : "";
1368
+ })(), I = b.toString, N = v.hasOwnProperty, M = v.toString, V = RegExp(
1369
+ "^" + I.call(N).replace(y, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
1370
+ ), U = i.Symbol, L = c.splice, F = xe(i, "Map"), T = xe(Object, "create"), R = U ? U.prototype : void 0, $ = R ? R.toString : void 0;
1371
+ function z(d) {
1372
+ var E = -1, x = d ? d.length : 0;
1373
1373
  for (this.clear(); ++E < x; ) {
1374
- var G = f[E];
1374
+ var G = d[E];
1375
1375
  this.set(G[0], G[1]);
1376
1376
  }
1377
1377
  }
1378
- function N() {
1378
+ function _() {
1379
1379
  this.__data__ = T ? T(null) : {};
1380
1380
  }
1381
- function Z(f) {
1382
- return this.has(f) && delete this.__data__[f];
1381
+ function Z(d) {
1382
+ return this.has(d) && delete this.__data__[d];
1383
1383
  }
1384
- function Q(f) {
1384
+ function Q(d) {
1385
1385
  var E = this.__data__;
1386
1386
  if (T) {
1387
- var x = E[f];
1387
+ var x = E[d];
1388
1388
  return x === r ? void 0 : x;
1389
1389
  }
1390
- return _.call(E, f) ? E[f] : void 0;
1390
+ return N.call(E, d) ? E[d] : void 0;
1391
1391
  }
1392
- function ne(f) {
1392
+ function ne(d) {
1393
1393
  var E = this.__data__;
1394
- return T ? E[f] !== void 0 : _.call(E, f);
1394
+ return T ? E[d] !== void 0 : N.call(E, d);
1395
1395
  }
1396
- function X(f, E) {
1396
+ function X(d, E) {
1397
1397
  var x = this.__data__;
1398
- return x[f] = T && E === void 0 ? r : E, this;
1398
+ return x[d] = T && E === void 0 ? r : E, this;
1399
1399
  }
1400
- z.prototype.clear = N, z.prototype.delete = Z, z.prototype.get = Q, z.prototype.has = ne, z.prototype.set = X;
1401
- function W(f) {
1402
- var E = -1, x = f ? f.length : 0;
1400
+ z.prototype.clear = _, z.prototype.delete = Z, z.prototype.get = Q, z.prototype.has = ne, z.prototype.set = X;
1401
+ function W(d) {
1402
+ var E = -1, x = d ? d.length : 0;
1403
1403
  for (this.clear(); ++E < x; ) {
1404
- var G = f[E];
1404
+ var G = d[E];
1405
1405
  this.set(G[0], G[1]);
1406
1406
  }
1407
1407
  }
1408
1408
  function ie() {
1409
1409
  this.__data__ = [];
1410
1410
  }
1411
- function re(f) {
1412
- var E = this.__data__, x = J(E, f);
1411
+ function re(d) {
1412
+ var E = this.__data__, x = J(E, d);
1413
1413
  if (x < 0)
1414
1414
  return !1;
1415
1415
  var G = E.length - 1;
1416
1416
  return x == G ? E.pop() : L.call(E, x, 1), !0;
1417
1417
  }
1418
- function te(f) {
1419
- var E = this.__data__, x = J(E, f);
1418
+ function te(d) {
1419
+ var E = this.__data__, x = J(E, d);
1420
1420
  return x < 0 ? void 0 : E[x][1];
1421
1421
  }
1422
- function ce(f) {
1423
- return J(this.__data__, f) > -1;
1422
+ function ce(d) {
1423
+ return J(this.__data__, d) > -1;
1424
1424
  }
1425
- function ue(f, E) {
1426
- var x = this.__data__, G = J(x, f);
1427
- return G < 0 ? x.push([f, E]) : x[G][1] = E, this;
1425
+ function ue(d, E) {
1426
+ var x = this.__data__, G = J(x, d);
1427
+ return G < 0 ? x.push([d, E]) : x[G][1] = E, this;
1428
1428
  }
1429
1429
  W.prototype.clear = ie, W.prototype.delete = re, W.prototype.get = te, W.prototype.has = ce, W.prototype.set = ue;
1430
- function oe(f) {
1431
- var E = -1, x = f ? f.length : 0;
1430
+ function oe(d) {
1431
+ var E = -1, x = d ? d.length : 0;
1432
1432
  for (this.clear(); ++E < x; ) {
1433
- var G = f[E];
1433
+ var G = d[E];
1434
1434
  this.set(G[0], G[1]);
1435
1435
  }
1436
1436
  }
1437
1437
  function de() {
1438
1438
  this.__data__ = {
1439
1439
  hash: new z(),
1440
- map: new (R || W)(),
1440
+ map: new (F || W)(),
1441
1441
  string: new z()
1442
1442
  };
1443
1443
  }
1444
- function pe(f) {
1445
- return me(this, f).delete(f);
1444
+ function pe(d) {
1445
+ return me(this, d).delete(d);
1446
1446
  }
1447
- function se(f) {
1448
- return me(this, f).get(f);
1447
+ function se(d) {
1448
+ return me(this, d).get(d);
1449
1449
  }
1450
- function ye(f) {
1451
- return me(this, f).has(f);
1450
+ function ye(d) {
1451
+ return me(this, d).has(d);
1452
1452
  }
1453
- function be(f, E) {
1454
- return me(this, f).set(f, E), this;
1453
+ function be(d, E) {
1454
+ return me(this, d).set(d, E), this;
1455
1455
  }
1456
1456
  oe.prototype.clear = de, oe.prototype.delete = pe, oe.prototype.get = se, oe.prototype.has = ye, oe.prototype.set = be;
1457
- function J(f, E) {
1458
- for (var x = f.length; x--; )
1459
- if (Se(f[x][0], E))
1457
+ function J(d, E) {
1458
+ for (var x = d.length; x--; )
1459
+ if (Se(d[x][0], E))
1460
1460
  return x;
1461
1461
  return -1;
1462
1462
  }
1463
- function ee(f, E) {
1464
- E = Te(E, f) ? [E] : Ie(E);
1465
- for (var x = 0, G = E.length; f != null && x < G; )
1466
- f = f[Ne(E[x++])];
1467
- return x && x == G ? f : void 0;
1463
+ function ee(d, E) {
1464
+ E = Te(E, d) ? [E] : Ie(E);
1465
+ for (var x = 0, G = E.length; d != null && x < G; )
1466
+ d = d[Ne(E[x++])];
1467
+ return x && x == G ? d : void 0;
1468
1468
  }
1469
- function ke(f) {
1470
- if (!he(f) || _e(f))
1469
+ function ke(d) {
1470
+ if (!he(d) || _e(d))
1471
1471
  return !1;
1472
- var E = Le(f) || y(f) ? V : i;
1473
- return E.test(le(f));
1474
- }
1475
- function Pe(f) {
1476
- if (typeof f == "string")
1477
- return f;
1478
- if (g(f))
1479
- return B ? B.call(f) : "";
1480
- var E = f + "";
1481
- return E == "0" && 1 / f == -1 / 0 ? "-0" : E;
1482
- }
1483
- function Ie(f) {
1484
- return Oe(f) ? f : Ce(f);
1485
- }
1486
- function me(f, E) {
1487
- var x = f.__data__;
1472
+ var E = Le(d) || f(d) ? V : A;
1473
+ return E.test(le(d));
1474
+ }
1475
+ function Pe(d) {
1476
+ if (typeof d == "string")
1477
+ return d;
1478
+ if (h(d))
1479
+ return $ ? $.call(d) : "";
1480
+ var E = d + "";
1481
+ return E == "0" && 1 / d == -1 / 0 ? "-0" : E;
1482
+ }
1483
+ function Ie(d) {
1484
+ return Oe(d) ? d : Ce(d);
1485
+ }
1486
+ function me(d, E) {
1487
+ var x = d.__data__;
1488
1488
  return Re(E) ? x[typeof E == "string" ? "string" : "hash"] : x.map;
1489
1489
  }
1490
- function xe(f, E) {
1491
- var x = A(f, E);
1490
+ function xe(d, E) {
1491
+ var x = S(d, E);
1492
1492
  return ke(x) ? x : void 0;
1493
1493
  }
1494
- function Te(f, E) {
1495
- if (Oe(f))
1494
+ function Te(d, E) {
1495
+ if (Oe(d))
1496
1496
  return !1;
1497
- var x = typeof f;
1498
- return x == "number" || x == "symbol" || x == "boolean" || f == null || g(f) ? !0 : m.test(f) || !o.test(f) || E != null && f in Object(E);
1497
+ var x = typeof d;
1498
+ return x == "number" || x == "symbol" || x == "boolean" || d == null || h(d) ? !0 : m.test(d) || !o.test(d) || E != null && d in Object(E);
1499
1499
  }
1500
- function Re(f) {
1501
- var E = typeof f;
1502
- return E == "string" || E == "number" || E == "symbol" || E == "boolean" ? f !== "__proto__" : f === null;
1500
+ function Re(d) {
1501
+ var E = typeof d;
1502
+ return E == "string" || E == "number" || E == "symbol" || E == "boolean" ? d !== "__proto__" : d === null;
1503
1503
  }
1504
- function _e(f) {
1505
- return !!P && P in f;
1504
+ function _e(d) {
1505
+ return !!P && P in d;
1506
1506
  }
1507
- var Ce = fe(function(f) {
1508
- f = v(f);
1507
+ var Ce = fe(function(d) {
1508
+ d = g(d);
1509
1509
  var E = [];
1510
- return u.test(f) && E.push(""), f.replace(d, function(x, G, ae, K) {
1510
+ return l.test(d) && E.push(""), d.replace(p, function(x, G, ae, K) {
1511
1511
  E.push(ae ? K.replace(w, "$1") : G || x);
1512
1512
  }), E;
1513
1513
  });
1514
- function Ne(f) {
1515
- if (typeof f == "string" || g(f))
1516
- return f;
1517
- var E = f + "";
1518
- return E == "0" && 1 / f == -1 / 0 ? "-0" : E;
1519
- }
1520
- function le(f) {
1521
- if (f != null) {
1514
+ function Ne(d) {
1515
+ if (typeof d == "string" || h(d))
1516
+ return d;
1517
+ var E = d + "";
1518
+ return E == "0" && 1 / d == -1 / 0 ? "-0" : E;
1519
+ }
1520
+ function le(d) {
1521
+ if (d != null) {
1522
1522
  try {
1523
- return I.call(f);
1523
+ return I.call(d);
1524
1524
  } catch {
1525
1525
  }
1526
1526
  try {
1527
- return f + "";
1527
+ return d + "";
1528
1528
  } catch {
1529
1529
  }
1530
1530
  }
1531
1531
  return "";
1532
1532
  }
1533
- function fe(f, E) {
1534
- if (typeof f != "function" || E && typeof E != "function")
1533
+ function fe(d, E) {
1534
+ if (typeof d != "function" || E && typeof E != "function")
1535
1535
  throw new TypeError(e);
1536
1536
  var x = function() {
1537
1537
  var G = arguments, ae = E ? E.apply(this, G) : G[0], K = x.cache;
1538
1538
  if (K.has(ae))
1539
1539
  return K.get(ae);
1540
- var O = f.apply(this, G);
1540
+ var O = d.apply(this, G);
1541
1541
  return x.cache = K.set(ae, O), O;
1542
1542
  };
1543
1543
  return x.cache = new (fe.Cache || oe)(), x;
1544
1544
  }
1545
1545
  fe.Cache = oe;
1546
- function Se(f, E) {
1547
- return f === E || f !== f && E !== E;
1546
+ function Se(d, E) {
1547
+ return d === E || d !== d && E !== E;
1548
1548
  }
1549
1549
  var Oe = Array.isArray;
1550
- function Le(f) {
1551
- var E = he(f) ? k.call(f) : "";
1550
+ function Le(d) {
1551
+ var E = he(d) ? M.call(d) : "";
1552
1552
  return E == a || E == t;
1553
1553
  }
1554
- function he(f) {
1555
- var E = typeof f;
1556
- return !!f && (E == "object" || E == "function");
1554
+ function he(d) {
1555
+ var E = typeof d;
1556
+ return !!d && (E == "object" || E == "function");
1557
1557
  }
1558
- function ge(f) {
1559
- return !!f && typeof f == "object";
1558
+ function ge(d) {
1559
+ return !!d && typeof d == "object";
1560
1560
  }
1561
- function g(f) {
1562
- return typeof f == "symbol" || ge(f) && k.call(f) == n;
1561
+ function h(d) {
1562
+ return typeof d == "symbol" || ge(d) && M.call(d) == n;
1563
1563
  }
1564
- function v(f) {
1565
- return f == null ? "" : Pe(f);
1564
+ function g(d) {
1565
+ return d == null ? "" : Pe(d);
1566
1566
  }
1567
- function D(f, E, x) {
1568
- var G = f == null ? void 0 : ee(f, E);
1567
+ function D(d, E, x) {
1568
+ var G = d == null ? void 0 : ee(d, E);
1569
1569
  return G === void 0 ? x : G;
1570
1570
  }
1571
1571
  return fr = D, fr;
@@ -1576,12 +1576,12 @@ var dr, Dr;
1576
1576
  function gt() {
1577
1577
  if (Dr) return dr;
1578
1578
  Dr = 1;
1579
- var e = "[object Symbol]", r = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, a = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, t = "\\ud800-\\udfff", n = "\\u0300-\\u036f\\ufe20-\\ufe23", o = "\\u20d0-\\u20f0", m = "\\u2700-\\u27bf", u = "a-z\\xdf-\\xf6\\xf8-\\xff", d = "\\xac\\xb1\\xd7\\xf7", h = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", w = "\\u2000-\\u206f", i = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", c = "A-Z\\xc0-\\xd6\\xd8-\\xde", s = "\\ufe0e\\ufe0f", p = d + h + w + i, A = "['’]", y = "[" + t + "]", l = "[" + p + "]", S = "[" + n + o + "]", b = "\\d+", C = "[" + m + "]", P = "[" + u + "]", I = "[^" + t + p + b + m + u + c + "]", _ = "\\ud83c[\\udffb-\\udfff]", k = "(?:" + S + "|" + _ + ")", V = "[^" + t + "]", F = "(?:\\ud83c[\\udde6-\\uddff]){2}", L = "[\\ud800-\\udbff][\\udc00-\\udfff]", R = "[" + c + "]", T = "\\u200d", $ = "(?:" + P + "|" + I + ")", B = "(?:" + R + "|" + I + ")", z = "(?:" + A + "(?:d|ll|m|re|s|t|ve))?", N = "(?:" + A + "(?:D|LL|M|RE|S|T|VE))?", Z = k + "?", Q = "[" + s + "]?", ne = "(?:" + T + "(?:" + [V, F, L].join("|") + ")" + Q + Z + ")*", X = Q + Z + ne, W = "(?:" + [C, F, L].join("|") + ")" + X, ie = "(?:" + [V + S + "?", S, F, L, y].join("|") + ")", re = RegExp(A, "g"), te = RegExp(S, "g"), ce = RegExp(_ + "(?=" + _ + ")|" + ie + X, "g"), ue = RegExp([
1580
- R + "?" + P + "+" + z + "(?=" + [l, R, "$"].join("|") + ")",
1581
- B + "+" + N + "(?=" + [l, R + $, "$"].join("|") + ")",
1582
- R + "?" + $ + "+" + z,
1583
- R + "+" + N,
1584
- b,
1579
+ var e = "[object Symbol]", r = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, a = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, t = "\\ud800-\\udfff", n = "\\u0300-\\u036f\\ufe20-\\ufe23", o = "\\u20d0-\\u20f0", m = "\\u2700-\\u27bf", l = "a-z\\xdf-\\xf6\\xf8-\\xff", p = "\\xac\\xb1\\xd7\\xf7", y = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", w = "\\u2000-\\u206f", A = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", u = "A-Z\\xc0-\\xd6\\xd8-\\xde", s = "\\ufe0e\\ufe0f", i = p + y + w + A, S = "['’]", f = "[" + t + "]", c = "[" + i + "]", b = "[" + n + o + "]", v = "\\d+", C = "[" + m + "]", P = "[" + l + "]", I = "[^" + t + i + v + m + l + u + "]", N = "\\ud83c[\\udffb-\\udfff]", M = "(?:" + b + "|" + N + ")", V = "[^" + t + "]", U = "(?:\\ud83c[\\udde6-\\uddff]){2}", L = "[\\ud800-\\udbff][\\udc00-\\udfff]", F = "[" + u + "]", T = "\\u200d", R = "(?:" + P + "|" + I + ")", $ = "(?:" + F + "|" + I + ")", z = "(?:" + S + "(?:d|ll|m|re|s|t|ve))?", _ = "(?:" + S + "(?:D|LL|M|RE|S|T|VE))?", Z = M + "?", Q = "[" + s + "]?", ne = "(?:" + T + "(?:" + [V, U, L].join("|") + ")" + Q + Z + ")*", X = Q + Z + ne, W = "(?:" + [C, U, L].join("|") + ")" + X, ie = "(?:" + [V + b + "?", b, U, L, f].join("|") + ")", re = RegExp(S, "g"), te = RegExp(b, "g"), ce = RegExp(N + "(?=" + N + ")|" + ie + X, "g"), ue = RegExp([
1580
+ F + "?" + P + "+" + z + "(?=" + [c, F, "$"].join("|") + ")",
1581
+ $ + "+" + _ + "(?=" + [c, F + R, "$"].join("|") + ")",
1582
+ F + "?" + R + "+" + z,
1583
+ F + "+" + _,
1584
+ v,
1585
1585
  W
1586
1586
  ].join("|"), "g"), oe = RegExp("[" + T + t + n + o + s + "]"), de = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, pe = {
1587
1587
  // Latin-1 Supplement block.
@@ -1777,9 +1777,9 @@ function gt() {
1777
1777
  ʼn: "'n",
1778
1778
  ſ: "ss"
1779
1779
  }, se = typeof Ae == "object" && Ae && Ae.Object === Object && Ae, ye = typeof self == "object" && self && self.Object === Object && self, be = se || ye || Function("return this")();
1780
- function J(O, U, j, H) {
1780
+ function J(O, B, j, H) {
1781
1781
  for (var Y = -1, we = O ? O.length : 0; ++Y < we; )
1782
- j = U(j, O[Y], Y, O);
1782
+ j = B(j, O[Y], Y, O);
1783
1783
  return j;
1784
1784
  }
1785
1785
  function ee(O) {
@@ -1789,8 +1789,8 @@ function gt() {
1789
1789
  return O.match(r) || [];
1790
1790
  }
1791
1791
  function Pe(O) {
1792
- return function(U) {
1793
- return O?.[U];
1792
+ return function(B) {
1793
+ return O?.[B];
1794
1794
  };
1795
1795
  }
1796
1796
  var Ie = Pe(pe);
@@ -1810,11 +1810,11 @@ function gt() {
1810
1810
  return O.match(ue) || [];
1811
1811
  }
1812
1812
  var Ce = Object.prototype, Ne = Ce.toString, le = be.Symbol, fe = le ? le.prototype : void 0, Se = fe ? fe.toString : void 0;
1813
- function Oe(O, U, j) {
1813
+ function Oe(O, B, j) {
1814
1814
  var H = -1, Y = O.length;
1815
- U < 0 && (U = -U > Y ? 0 : Y + U), j = j > Y ? Y : j, j < 0 && (j += Y), Y = U > j ? 0 : j - U >>> 0, U >>>= 0;
1815
+ B < 0 && (B = -B > Y ? 0 : Y + B), j = j > Y ? Y : j, j < 0 && (j += Y), Y = B > j ? 0 : j - B >>> 0, B >>>= 0;
1816
1816
  for (var we = Array(Y); ++H < Y; )
1817
- we[H] = O[H + U];
1817
+ we[H] = O[H + B];
1818
1818
  return we;
1819
1819
  }
1820
1820
  function Le(O) {
@@ -1822,46 +1822,46 @@ function gt() {
1822
1822
  return O;
1823
1823
  if (D(O))
1824
1824
  return Se ? Se.call(O) : "";
1825
- var U = O + "";
1826
- return U == "0" && 1 / O == -1 / 0 ? "-0" : U;
1825
+ var B = O + "";
1826
+ return B == "0" && 1 / O == -1 / 0 ? "-0" : B;
1827
1827
  }
1828
- function he(O, U, j) {
1828
+ function he(O, B, j) {
1829
1829
  var H = O.length;
1830
- return j = j === void 0 ? H : j, !U && j >= H ? O : Oe(O, U, j);
1830
+ return j = j === void 0 ? H : j, !B && j >= H ? O : Oe(O, B, j);
1831
1831
  }
1832
1832
  function ge(O) {
1833
- return function(U) {
1834
- U = f(U);
1835
- var j = me(U) ? Te(U) : void 0, H = j ? j[0] : U.charAt(0), Y = j ? he(j, 1).join("") : U.slice(1);
1833
+ return function(B) {
1834
+ B = d(B);
1835
+ var j = me(B) ? Te(B) : void 0, H = j ? j[0] : B.charAt(0), Y = j ? he(j, 1).join("") : B.slice(1);
1836
1836
  return H[O]() + Y;
1837
1837
  };
1838
1838
  }
1839
- function g(O) {
1840
- return function(U) {
1841
- return J(K(G(U).replace(re, "")), O, "");
1839
+ function h(O) {
1840
+ return function(B) {
1841
+ return J(K(G(B).replace(re, "")), O, "");
1842
1842
  };
1843
1843
  }
1844
- function v(O) {
1844
+ function g(O) {
1845
1845
  return !!O && typeof O == "object";
1846
1846
  }
1847
1847
  function D(O) {
1848
- return typeof O == "symbol" || v(O) && Ne.call(O) == e;
1848
+ return typeof O == "symbol" || g(O) && Ne.call(O) == e;
1849
1849
  }
1850
- function f(O) {
1850
+ function d(O) {
1851
1851
  return O == null ? "" : Le(O);
1852
1852
  }
1853
- var E = g(function(O, U, j) {
1854
- return U = U.toLowerCase(), O + (j ? x(U) : U);
1853
+ var E = h(function(O, B, j) {
1854
+ return B = B.toLowerCase(), O + (j ? x(B) : B);
1855
1855
  });
1856
1856
  function x(O) {
1857
- return ae(f(O).toLowerCase());
1857
+ return ae(d(O).toLowerCase());
1858
1858
  }
1859
1859
  function G(O) {
1860
- return O = f(O), O && O.replace(a, Ie).replace(te, "");
1860
+ return O = d(O), O && O.replace(a, Ie).replace(te, "");
1861
1861
  }
1862
1862
  var ae = ge("toUpperCase");
1863
- function K(O, U, j) {
1864
- return O = f(O), U = U, U === void 0 ? xe(O) ? _e(O) : ke(O) : O.match(U) || [];
1863
+ function K(O, B, j) {
1864
+ return O = d(O), B = B, B === void 0 ? xe(O) ? _e(O) : ke(O) : O.match(B) || [];
1865
1865
  }
1866
1866
  return dr = E, dr;
1867
1867
  }
@@ -1881,8 +1881,8 @@ function bt() {
1881
1881
  return ve.isBrowser = r, ve.isWebWorker = t, ve.isNode = a, ve.isJsDom = n, ve.isDeno = o, ve;
1882
1882
  }
1883
1883
  bt();
1884
- const M = {}, De = {};
1885
- M.loadExternalScript = function(e) {
1884
+ const k = {}, De = {};
1885
+ k.loadExternalScript = function(e) {
1886
1886
  if (De[e])
1887
1887
  return De[e];
1888
1888
  const r = De[e] = new Promise(a);
@@ -1897,7 +1897,7 @@ M.loadExternalScript = function(e) {
1897
1897
  return r;
1898
1898
  };
1899
1899
  const Vr = {};
1900
- M.loadExternalStyle = function(e) {
1900
+ k.loadExternalStyle = function(e) {
1901
1901
  const r = new Promise(a);
1902
1902
  function a(t, n) {
1903
1903
  if (!document)
@@ -1912,7 +1912,7 @@ M.loadExternalStyle = function(e) {
1912
1912
  }
1913
1913
  return r;
1914
1914
  };
1915
- M.exists = function(e) {
1915
+ k.exists = function(e) {
1916
1916
  var r;
1917
1917
  if (Array.isArray(e) || e === 0)
1918
1918
  return !0;
@@ -1934,7 +1934,7 @@ M.exists = function(e) {
1934
1934
  }
1935
1935
  return !r;
1936
1936
  };
1937
- M.parseDate = function(e) {
1937
+ k.parseDate = function(e) {
1938
1938
  if (e) {
1939
1939
  if (e instanceof Date)
1940
1940
  return e;
@@ -1943,12 +1943,12 @@ M.parseDate = function(e) {
1943
1943
  return r;
1944
1944
  }
1945
1945
  };
1946
- M.parseURL = function(e) {
1946
+ k.parseURL = function(e) {
1947
1947
  if (!e)
1948
1948
  return !1;
1949
1949
  if (e.startsWith("/") || e.startsWith("://") || e.startsWith("mailto:") || e.startsWith("tel:") || e.startsWith("sms:"))
1950
1950
  return e;
1951
- var a = M.parseEmail(e);
1951
+ var a = k.parseEmail(e);
1952
1952
  if (a && a === e)
1953
1953
  return `mailto:${a}`;
1954
1954
  const t = (o) => /^https?:\/\//i.test(o) ? o : `http://${o}`;
@@ -1959,16 +1959,16 @@ M.parseURL = function(e) {
1959
1959
  ).test(e);
1960
1960
  return n ? t(e) : !1;
1961
1961
  };
1962
- M.parseNumber = function(e, r) {
1962
+ k.parseNumber = function(e, r) {
1963
1963
  if (!e || (e = Number(e), isNaN(e)))
1964
1964
  return 0;
1965
1965
  if (r) {
1966
1966
  var a = e.toFixed(r);
1967
- e = M.parseNumber(a);
1967
+ e = k.parseNumber(a);
1968
1968
  }
1969
1969
  return e;
1970
1970
  };
1971
- M.isValidEmailAddress = function(e) {
1971
+ k.isValidEmailAddress = function(e) {
1972
1972
  var r = /^[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/;
1973
1973
  if (!e) return !1;
1974
1974
  var a = e.split("@");
@@ -1981,48 +1981,48 @@ M.isValidEmailAddress = function(e) {
1981
1981
  return m.length > 63;
1982
1982
  }) || !r.test(e));
1983
1983
  };
1984
- M.parseEmail = function(e) {
1984
+ k.parseEmail = function(e) {
1985
1985
  if (!e)
1986
1986
  return !1;
1987
- var r = String(e).toLowerCase(), a = M.isValidEmailAddress(r);
1987
+ var r = String(e).toLowerCase(), a = k.isValidEmailAddress(r);
1988
1988
  return a ? r : !1;
1989
1989
  };
1990
- M.parseInt = function(e) {
1990
+ k.parseInt = function(e) {
1991
1991
  return !e || (e = parseInt(e), isNaN(e)) ? 0 : e;
1992
1992
  };
1993
- M.cleanValue = function(e, r, a) {
1993
+ k.cleanValue = function(e, r, a) {
1994
1994
  a || (a = {});
1995
- var t = M.exists(e);
1995
+ var t = k.exists(e);
1996
1996
  if (a.strict && t && r != "boolean")
1997
1997
  return e;
1998
1998
  switch (r) {
1999
1999
  case "reference":
2000
- return M.id(e, !0);
2000
+ return k.id(e, !0);
2001
2001
  case "boolean":
2002
- return M.parseBoolean(e);
2002
+ return k.parseBoolean(e);
2003
2003
  case "url":
2004
- return M.parseURL(e);
2004
+ return k.parseURL(e);
2005
2005
  case "key":
2006
- return M.machineName(e);
2006
+ return k.machineName(e);
2007
2007
  case "email":
2008
- return M.parseEmail(e);
2008
+ return k.parseEmail(e);
2009
2009
  case "date":
2010
- var n = M.parseDate(e, a);
2010
+ var n = k.parseDate(e, a);
2011
2011
  return n === void 0 ? void 0 : n;
2012
2012
  case "number":
2013
2013
  case "decimal":
2014
2014
  case "float":
2015
- var o = M.parseNumber(e);
2015
+ var o = k.parseNumber(e);
2016
2016
  return String(o) == String(Number(e)) ? o : void 0;
2017
2017
  case "integer":
2018
- var o = M.parseInt(e);
2018
+ var o = k.parseInt(e);
2019
2019
  return String(o) == String(parseInt(e)) ? o : void 0;
2020
2020
  case "group":
2021
2021
  return e;
2022
2022
  case "object":
2023
2023
  return typeof e == "object" && e !== null && !Array.isArray(e) ? e : void 0;
2024
2024
  case "string":
2025
- if (M.exists(e)) {
2025
+ if (k.exists(e)) {
2026
2026
  var m = String(e);
2027
2027
  return m == "[object Object]" ? void 0 : m;
2028
2028
  } else
@@ -2042,43 +2042,43 @@ M.cleanValue = function(e, r, a) {
2042
2042
  return String(e);
2043
2043
  }
2044
2044
  };
2045
- M.isValidValue = function(e, r, a) {
2046
- var t = M.exists(e), n = typeof e == "number", o = !1;
2045
+ k.isValidValue = function(e, r, a) {
2046
+ var t = k.exists(e), n = typeof e == "number", o = !1;
2047
2047
  if (!t)
2048
2048
  return !1;
2049
2049
  switch (r) {
2050
2050
  case "url":
2051
- a ? o = e.startsWith("/") || e.startsWith("://") || e.startsWith("http://") || e.startsWith("https://") : o = String(e) === M.parseURL(e);
2051
+ a ? o = e.startsWith("/") || e.startsWith("://") || e.startsWith("http://") || e.startsWith("https://") : o = String(e) === k.parseURL(e);
2052
2052
  break;
2053
2053
  case "key":
2054
- o = String(e) === M.machineName(e);
2054
+ o = String(e) === k.machineName(e);
2055
2055
  break;
2056
2056
  case "date":
2057
2057
  if (a && (typeof e != "object" || !(e instanceof Date)))
2058
2058
  return !1;
2059
- var m = M.parseDate(e);
2059
+ var m = k.parseDate(e);
2060
2060
  return m !== void 0;
2061
2061
  case "email":
2062
- a ? o = e === M.parseEmail(e) : o = String(e).toLowerCase() === M.parseEmail(e);
2062
+ a ? o = e === k.parseEmail(e) : o = String(e).toLowerCase() === k.parseEmail(e);
2063
2063
  break;
2064
2064
  case "number":
2065
2065
  case "decimal":
2066
2066
  case "float":
2067
- a ? o = n && Number(e) === M.parseNumber(e) : o = Number(e) === M.parseNumber(e);
2067
+ a ? o = n && Number(e) === k.parseNumber(e) : o = Number(e) === k.parseNumber(e);
2068
2068
  break;
2069
2069
  case "integer":
2070
- a ? o = n && Number(e) === M.parseInt(e) : o = Number(e) === M.parseInt(e);
2070
+ a ? o = n && Number(e) === k.parseInt(e) : o = Number(e) === k.parseInt(e);
2071
2071
  break;
2072
2072
  case "boolean":
2073
- var m = M.parseBoolean(e);
2073
+ var m = k.parseBoolean(e);
2074
2074
  a ? (e === !0 || e === !1) && (o = e === m) : o = m === !0 || m === !1;
2075
2075
  break;
2076
2076
  case "reference":
2077
- a ? o = String(e) === M.id(e) : o = !!M.id(e);
2077
+ a ? o = String(e) === k.id(e) : o = !!k.id(e);
2078
2078
  break;
2079
2079
  case "string":
2080
- var u = String(e);
2081
- if (a && typeof e != "string" || u == "[object Object]")
2080
+ var l = String(e);
2081
+ if (a && typeof e != "string" || l == "[object Object]")
2082
2082
  return !1;
2083
2083
  o = !0;
2084
2084
  break;
@@ -2094,7 +2094,7 @@ M.isValidValue = function(e, r, a) {
2094
2094
  }
2095
2095
  return o;
2096
2096
  };
2097
- M.parseBoolean = function(e) {
2097
+ k.parseBoolean = function(e) {
2098
2098
  switch (String(e).toLowerCase()) {
2099
2099
  case "true":
2100
2100
  case "y":
@@ -2117,10 +2117,10 @@ M.parseBoolean = function(e) {
2117
2117
  }
2118
2118
  return !!e;
2119
2119
  };
2120
- M.clone = function(e) {
2120
+ k.clone = function(e) {
2121
2121
  return JSON.parse(JSON.stringify(e));
2122
2122
  };
2123
- M.getAllFields = function(e) {
2123
+ k.getAllFields = function(e) {
2124
2124
  const r = e.definesType === "profile" || e.key === "profile", a = e.definesType === "submission";
2125
2125
  var t = [...e.fields], n = e.definedFields || [];
2126
2126
  if (n.length)
@@ -2142,8 +2142,8 @@ M.getAllFields = function(e) {
2142
2142
  key: "data",
2143
2143
  asObject: !0,
2144
2144
  type: "group",
2145
- fields: n.map(function(h) {
2146
- return h.type === "reference" && (h = JSON.parse(JSON.stringify(h)), delete h.fields), h;
2145
+ fields: n.map(function(y) {
2146
+ return y.type === "reference" && (y = JSON.parse(JSON.stringify(y)), delete y.fields), y;
2147
2147
  })
2148
2148
  };
2149
2149
  t.push(m);
@@ -2172,38 +2172,38 @@ M.getAllFields = function(e) {
2172
2172
  maximum: 1,
2173
2173
  type: "date"
2174
2174
  }));
2175
- var u = M.mapFields(t).filter(function(d) {
2176
- var h = d.type == "group" && d.asObject && d.minimum == 1 && d.maximum == 1;
2177
- return !h;
2178
- }).map(function(d) {
2179
- return d.title = d.filterTitle || d.titles.filter(Boolean).join(" › "), d;
2180
- }).sort(function(d, h) {
2181
- return d.title < h.title ? -1 : 1;
2175
+ var l = k.mapFields(t).filter(function(p) {
2176
+ var y = p.type == "group" && p.asObject && p.minimum == 1 && p.maximum == 1;
2177
+ return !y;
2178
+ }).map(function(p) {
2179
+ return p.title = p.filterTitle || p.titles.filter(Boolean).join(" › "), p;
2180
+ }).sort(function(p, y) {
2181
+ return p.title < y.title ? -1 : 1;
2182
2182
  });
2183
- return u;
2183
+ return l;
2184
2184
  };
2185
- M.mapFields = function(e, r) {
2185
+ k.mapFields = function(e, r) {
2186
2186
  r || (r = {});
2187
- var a = [], t = [], n = [], o = 1, m = r.depth, u = r.arrayDelimeter || "[]";
2188
- e.forEach(d);
2189
- function d(h, w) {
2190
- var i = h.key, c = h.type == "group", s = h.minimum === h.maximum && h.minimum === 1, p = h.asObject, A = c && !p, y = r.original ? h : M.clone(h);
2191
- y.trail = t.slice(), y.trail.push(i), y.path = y.trail.join("."), y.titles = n.slice(), y.titles.push(h.filterTitle || h.title || ""), (!A || r.includeLayout) && a.push(y);
2192
- var S = m && o >= m;
2193
- if (h.fields && h.fields.length)
2194
- if (A)
2195
- h.fields.forEach(d);
2187
+ var a = [], t = [], n = [], o = 1, m = r.depth, l = r.arrayDelimeter || "[]";
2188
+ e.forEach(p);
2189
+ function p(y, w) {
2190
+ var A = y.key, u = y.type == "group", s = y.minimum === y.maximum && y.minimum === 1, i = y.asObject, S = u && !i, f = r.original ? y : k.clone(y);
2191
+ f.trail = t.slice(), f.trail.push(A), f.path = f.trail.join("."), f.titles = n.slice(), f.titles.push(y.filterTitle || y.title || ""), (!S || r.includeLayout) && a.push(f);
2192
+ var b = m && o >= m;
2193
+ if (y.fields && y.fields.length)
2194
+ if (S)
2195
+ y.fields.forEach(p);
2196
2196
  else {
2197
- if (S)
2197
+ if (b)
2198
2198
  return;
2199
2199
  o++;
2200
- let b = i;
2201
- r.includeArrayDelimeter && (s || (b = `${i}${u}`)), t.push(b), n.push(h.filterTitle || h.title), h.fields.forEach(d), o--, t.pop(), n.pop();
2200
+ let v = A;
2201
+ r.includeArrayDelimeter && (s || (v = `${A}${l}`)), t.push(v), n.push(y.filterTitle || y.title), y.fields.forEach(p), o--, t.pop(), n.pop();
2202
2202
  }
2203
2203
  }
2204
2204
  return a;
2205
2205
  };
2206
- M.mapParameters = function(e) {
2206
+ k.mapParameters = function(e) {
2207
2207
  e = e || {};
2208
2208
  var r = [];
2209
2209
  return Object.entries(e).forEach(function([a, t]) {
@@ -2212,13 +2212,13 @@ M.mapParameters = function(e) {
2212
2212
  }) : r.push(encodeURIComponent(a) + "=" + encodeURIComponent(t)));
2213
2213
  }), r.join("&");
2214
2214
  };
2215
- M.formatCurrency = function(e, r, a) {
2215
+ k.formatCurrency = function(e, r, a) {
2216
2216
  (!e || isNaN(e)) && (e = 0), a = a || 2;
2217
- var t = M.currencySymbol(r);
2217
+ var t = k.currencySymbol(r);
2218
2218
  return `${t}${parseFloat(Number(e) / 100).toFixed(a)}`;
2219
2219
  };
2220
- M.getTypeFromID = function(e) {
2221
- if (e = M.id(e), !e)
2220
+ k.getTypeFromID = function(e) {
2221
+ if (e = k.id(e), !e)
2222
2222
  return;
2223
2223
  const r = {
2224
2224
  21: "organisation",
@@ -2280,7 +2280,7 @@ M.getTypeFromID = function(e) {
2280
2280
  var a = e.slice(8, 10);
2281
2281
  return r[a];
2282
2282
  };
2283
- M.currencySymbol = function(e) {
2283
+ k.currencySymbol = function(e) {
2284
2284
  switch (e = String(e).toLowerCase(), String(e).toLowerCase()) {
2285
2285
  case "gbp":
2286
2286
  return "£";
@@ -2290,30 +2290,30 @@ M.currencySymbol = function(e) {
2290
2290
  return "$";
2291
2291
  }
2292
2292
  };
2293
- M.getAvailableCurrencies = function(e) {
2293
+ k.getAvailableCurrencies = function(e) {
2294
2294
  var r = [];
2295
2295
  if (r.push({
2296
- name: `USD (${M.currencySymbol("usd")})`,
2296
+ name: `USD (${k.currencySymbol("usd")})`,
2297
2297
  value: "usd",
2298
2298
  countryCode: { US: !0 }
2299
2299
  }), r.push({
2300
- name: `GBP (${M.currencySymbol("gbp")})`,
2300
+ name: `GBP (${k.currencySymbol("gbp")})`,
2301
2301
  value: "gbp",
2302
2302
  countryCode: { GB: !0, UK: !0 }
2303
2303
  }), r.push({
2304
- name: `CAD (${M.currencySymbol("cad")})`,
2304
+ name: `CAD (${k.currencySymbol("cad")})`,
2305
2305
  value: "cad",
2306
2306
  countryCode: { CA: !0 }
2307
2307
  }), r.push({
2308
- name: `AUD (${M.currencySymbol("aud")})`,
2308
+ name: `AUD (${k.currencySymbol("aud")})`,
2309
2309
  value: "aud",
2310
2310
  countryCode: { AU: !0 }
2311
2311
  }), r.push({
2312
- name: `NZD (${M.currencySymbol("nzd")})`,
2312
+ name: `NZD (${k.currencySymbol("nzd")})`,
2313
2313
  value: "nzd",
2314
2314
  countryCode: { NZ: !0 }
2315
2315
  }), r.push({
2316
- name: `SGD (${M.currencySymbol("sgd")})`,
2316
+ name: `SGD (${k.currencySymbol("sgd")})`,
2317
2317
  value: "sgd",
2318
2318
  countryCode: { SG: !0 }
2319
2319
  }), e) {
@@ -2321,91 +2321,91 @@ M.getAvailableCurrencies = function(e) {
2321
2321
  return n.countryCode[e];
2322
2322
  });
2323
2323
  const t = (n, o, m) => {
2324
- const u = [...n];
2325
- return u.splice(m, 0, ...u.splice(o, 1)), u;
2324
+ const l = [...n];
2325
+ return l.splice(m, 0, ...l.splice(o, 1)), l;
2326
2326
  };
2327
2327
  a != -1 && (r = t(r, a, 0));
2328
2328
  }
2329
2329
  return r;
2330
2330
  };
2331
- M.hash = function(e, r) {
2331
+ k.hash = function(e, r) {
2332
2332
  return e = Array.isArray(e) ? e : [], e.reduce(function(a, t) {
2333
2333
  const n = r ? Ue(t, r) : t;
2334
2334
  return a[n] = t, a;
2335
2335
  }, {});
2336
2336
  };
2337
- M.extractFromArray = function(e, r, a, t, n, o, m) {
2337
+ k.extractFromArray = function(e, r, a, t, n, o, m) {
2338
2338
  m = m || {}, a && (m.sum = a), t && (m.flatten = !0), n && (m.unique = !0), o && (m.excludeNull = !0);
2339
- var u = e.reduce(function(d, h) {
2340
- var w = Ue(h, r), i = !w && w !== !1 && w !== 0;
2341
- return m.excludeNull && i || d.push(w), d;
2339
+ var l = e.reduce(function(p, y) {
2340
+ var w = Ue(y, r), A = !w && w !== !1 && w !== 0;
2341
+ return m.excludeNull && A || p.push(w), p;
2342
2342
  }, []);
2343
- return m.flatten && (u = u.flat()), m.unique && (u = [...new Set(u)]), m.sum && (u = u.reduce(function(d, h) {
2344
- return d + h;
2345
- }, 0)), u;
2343
+ return m.flatten && (l = l.flat()), m.unique && (l = [...new Set(l)]), m.sum && (l = l.reduce(function(p, y) {
2344
+ return p + y;
2345
+ }, 0)), l;
2346
2346
  };
2347
- M.matchInArray = function(e, r, a, t) {
2347
+ k.matchInArray = function(e, r, a, t) {
2348
2348
  var n = e.filter(function(o) {
2349
- var m = Ue(o, r), u;
2349
+ var m = Ue(o, r), l;
2350
2350
  switch (t) {
2351
2351
  case "in":
2352
- u = m.includes(a);
2352
+ l = m.includes(a);
2353
2353
  break;
2354
2354
  case ">=":
2355
- u = m >= a;
2355
+ l = m >= a;
2356
2356
  break;
2357
2357
  case "<=":
2358
- u = m <= a;
2358
+ l = m <= a;
2359
2359
  break;
2360
2360
  case "<":
2361
- u = m < a;
2361
+ l = m < a;
2362
2362
  break;
2363
2363
  case ">":
2364
- u = m > a;
2364
+ l = m > a;
2365
2365
  break;
2366
2366
  case "==":
2367
2367
  default:
2368
- a === void 0 ? u = m : u = m == a;
2368
+ a === void 0 ? l = m : l = m == a;
2369
2369
  break;
2370
2370
  }
2371
- return u;
2371
+ return l;
2372
2372
  });
2373
2373
  return n;
2374
2374
  };
2375
- M.comma = function(e, r, a) {
2375
+ k.comma = function(e, r, a) {
2376
2376
  return a && (e = e.slice(0, a)), e.filter(function(t) {
2377
2377
  return t != null && t !== void 0 && t !== "";
2378
2378
  }).map(function(t) {
2379
2379
  return r && r.length ? Ue(t, r) : t;
2380
2380
  }).join(", ");
2381
2381
  };
2382
- M.id = function(e) {
2382
+ k.id = function(e) {
2383
2383
  if (e) {
2384
2384
  var r;
2385
2385
  e._id ? r = String(e._id) : r = String(e);
2386
- var a = M.isValidID(r);
2386
+ var a = k.isValidID(r);
2387
2387
  if (a)
2388
2388
  return r;
2389
2389
  }
2390
2390
  };
2391
- M.ids = function(e) {
2391
+ k.ids = function(e) {
2392
2392
  if (!e)
2393
2393
  return [];
2394
2394
  var r = Object.keys(
2395
2395
  e.reduce(function(a, t) {
2396
2396
  if (!t)
2397
2397
  return a;
2398
- var n = M.id(t);
2398
+ var n = k.id(t);
2399
2399
  return n && (a[n] = 1), a;
2400
2400
  }, {})
2401
2401
  );
2402
2402
  return r;
2403
2403
  };
2404
- M.isValidID = function(e) {
2404
+ k.isValidID = function(e) {
2405
2405
  var r = new RegExp("^[0-9a-fA-F]{24}$");
2406
2406
  return r.test(String(e));
2407
2407
  };
2408
- M.errorMessage = function(e) {
2408
+ k.errorMessage = function(e) {
2409
2409
  if (e) {
2410
2410
  Array.isArray(e) && (e = e[0]);
2411
2411
  var r = ["response.data.message", "response.data", "message"], a;
@@ -2417,11 +2417,11 @@ M.errorMessage = function(e) {
2417
2417
  }), Array.isArray(a) && (a = a[0]), a = a || JSON.stringify(e), a;
2418
2418
  }
2419
2419
  };
2420
- M.guid = function() {
2420
+ k.guid = function() {
2421
2421
  var e = (/* @__PURE__ */ new Date()).getTime().toString(16) + Math.random().toString(16).substring(2) + "0".repeat(16);
2422
2422
  return e.substr(0, 8) + "-" + e.substr(8, 4) + "-4000-8" + e.substr(12, 3) + "-" + e.substr(15, 12);
2423
2423
  };
2424
- M.machineName = function(e) {
2424
+ k.machineName = function(e) {
2425
2425
  if (!(!e || !e.length)) {
2426
2426
  var r = /[^a-zA-Z0-9-_]+/g;
2427
2427
  return String(e).replace(r, " ").split("_").map((a) => At(a)).join("_");
@@ -2652,176 +2652,176 @@ var Et = function(e) {
2652
2652
  });
2653
2653
  const n = new je();
2654
2654
  n.bootstrap(t);
2655
- function o(u) {
2656
- var d = r.getUser();
2657
- t.onChange && t.onChange(d), n.dispatch("change", d, u);
2655
+ function o(l) {
2656
+ var p = r.getUser();
2657
+ t.onChange && t.onChange(p), n.dispatch("change", p, l);
2658
2658
  }
2659
- t.set = function(u, d, h) {
2659
+ t.set = function(l, p, y) {
2660
2660
  const w = r.getUser();
2661
- if (JSON.stringify(w) != JSON.stringify(u) && (r.setUser(u), !h))
2662
- return o(d);
2661
+ if (JSON.stringify(w) != JSON.stringify(l) && (r.setUser(l), !y))
2662
+ return o(p);
2663
2663
  }, t.logout = function() {
2664
2664
  return r.clearUser(), e.cache.reset(), o();
2665
- }, t.changeOrganisation = function(u, d) {
2666
- u = e.utils.id(u), d || (d = {});
2667
- var h = !0;
2668
- return d.disableAutoAuthentication && (h = !1), new Promise(function(w, i) {
2669
- e.api.post(`/user/switch/${u}`).then(function(c) {
2670
- h && (e.cache.reset(), t.set(c.data)), w(c.data);
2671
- }).catch(i);
2665
+ }, t.changeOrganisation = function(l, p) {
2666
+ l = e.utils.id(l), p || (p = {});
2667
+ var y = !0;
2668
+ return p.disableAutoAuthentication && (y = !1), new Promise(function(w, A) {
2669
+ e.api.post(`/user/switch/${l}`).then(function(u) {
2670
+ y && (e.cache.reset(), t.set(u.data)), w(u.data);
2671
+ }).catch(A);
2672
2672
  });
2673
- }, t.impersonate = function(u, d) {
2674
- u = e.utils.id(u), d || (d = {});
2675
- var h = !0;
2676
- d.disableAutoAuthentication && (h = !1);
2677
- var w = e.api.post(`/user/impersonate/${u}`);
2678
- return w.then(function(i) {
2679
- h && (e.cache.reset(), t.set(i.data));
2680
- }, function(i) {
2673
+ }, t.impersonate = function(l, p) {
2674
+ l = e.utils.id(l), p || (p = {});
2675
+ var y = !0;
2676
+ p.disableAutoAuthentication && (y = !1);
2677
+ var w = e.api.post(`/user/impersonate/${l}`);
2678
+ return w.then(function(A) {
2679
+ y && (e.cache.reset(), t.set(A.data));
2680
+ }, function(A) {
2681
2681
  }), w;
2682
- }, t.login = async function(u, d) {
2683
- d || (d = {});
2684
- var h = !0;
2685
- d.disableAutoAuthentication && (h = !1);
2686
- var w = new Promise(i);
2687
- function i(c, s) {
2688
- if (!u)
2682
+ }, t.login = async function(l, p) {
2683
+ p || (p = {});
2684
+ var y = !0;
2685
+ p.disableAutoAuthentication && (y = !1);
2686
+ var w = new Promise(A);
2687
+ function A(u, s) {
2688
+ if (!l)
2689
2689
  return s({
2690
2690
  message: "Missing credentials!"
2691
2691
  });
2692
- if (!u.email || !u.email.length)
2692
+ if (!l.email || !l.email.length)
2693
2693
  return s({
2694
2694
  message: "Username was not provided"
2695
2695
  });
2696
- if (!u.password || !u.password.length)
2696
+ if (!l.password || !l.password.length)
2697
2697
  return s({
2698
2698
  message: "Password was not provided"
2699
2699
  });
2700
- var p = {
2700
+ var i = {
2701
2701
  bypassInterceptor: !0
2702
2702
  };
2703
- r.isCookieMode && r.isCookieMode() && (u.useCookies = !0, p.withCredentials = !0);
2704
- var y = `${e.apiURL}/user/login`;
2705
- d.url && (y = d.url), e.api.post(y, u, p).then(function(l) {
2706
- h && t.set(l.data), c(l);
2703
+ r.isCookieMode && r.isCookieMode() && (l.useCookies = !0, i.withCredentials = !0);
2704
+ var f = `${e.apiURL}/user/login`;
2705
+ p.url && (f = p.url), e.api.post(f, l, i).then(function(c) {
2706
+ y && t.set(c.data), u(c);
2707
2707
  }, s);
2708
2708
  }
2709
2709
  return w;
2710
- }, t.signup = async function(u, d) {
2711
- d || (d = {});
2712
- var h = !0;
2713
- d.disableAutoAuthentication && (h = !1);
2714
- var w = new Promise(i);
2715
- function i(c, s) {
2716
- if (!u)
2710
+ }, t.signup = async function(l, p) {
2711
+ p || (p = {});
2712
+ var y = !0;
2713
+ p.disableAutoAuthentication && (y = !1);
2714
+ var w = new Promise(A);
2715
+ function A(u, s) {
2716
+ if (!l)
2717
2717
  return s({
2718
2718
  message: "No details provided"
2719
2719
  });
2720
- if (!u.firstName || !u.firstName.length)
2720
+ if (!l.firstName || !l.firstName.length)
2721
2721
  return s({
2722
2722
  message: "First Name was not provided"
2723
2723
  });
2724
- if (!u.lastName || !u.lastName.length)
2724
+ if (!l.lastName || !l.lastName.length)
2725
2725
  return s({
2726
2726
  message: "Last Name was not provided"
2727
2727
  });
2728
- if (!u.email || !u.email.length)
2728
+ if (!l.email || !l.email.length)
2729
2729
  return s({
2730
2730
  message: "Email/Username was not provided"
2731
2731
  });
2732
- if (!u.password || !u.password.length)
2732
+ if (!l.password || !l.password.length)
2733
2733
  return s({
2734
2734
  message: "Password was not provided"
2735
2735
  });
2736
- if (!u.confirmPassword || !u.confirmPassword.length)
2736
+ if (!l.confirmPassword || !l.confirmPassword.length)
2737
2737
  return s({
2738
2738
  message: "Confirm Password was not provided"
2739
2739
  });
2740
- if (u.confirmPassword != u.password)
2740
+ if (l.confirmPassword != l.password)
2741
2741
  return s({
2742
2742
  message: "Your passwords do not match"
2743
2743
  });
2744
- var p = {
2744
+ var i = {
2745
2745
  bypassInterceptor: !0
2746
2746
  };
2747
- r.isCookieMode && r.isCookieMode() && (u.useCookies = !0, p.withCredentials = !0);
2748
- var y = `${e.apiURL}/user/signup`;
2749
- d.application && (y = `${e.domain || ""}/qik/application/signup`), d.url && (y = d.url), e.api.post(y, u, p).then(function(l) {
2750
- h && t.set(l.data), c(l);
2747
+ r.isCookieMode && r.isCookieMode() && (l.useCookies = !0, i.withCredentials = !0);
2748
+ var f = `${e.apiURL}/user/signup`;
2749
+ p.application && (f = `${e.domain || ""}/qik/application/signup`), p.url && (f = p.url), e.api.post(f, l, i).then(function(c) {
2750
+ y && t.set(c.data), u(c);
2751
2751
  }, s);
2752
2752
  }
2753
2753
  return w;
2754
- }, t.retrieveUserFromResetToken = async function(u, d) {
2755
- d || (d = {});
2756
- var h = {
2754
+ }, t.retrieveUserFromResetToken = async function(l, p) {
2755
+ p || (p = {});
2756
+ var y = {
2757
2757
  bypassInterceptor: !0
2758
2758
  };
2759
- return new Promise(function(w, i) {
2760
- e.api.get(d.url || `${e.apiURL}/user/reset/${u}`, h).then(function(c) {
2761
- return w(c.data);
2762
- }, i);
2759
+ return new Promise(function(w, A) {
2760
+ e.api.get(p.url || `${e.apiURL}/user/reset/${l}`, y).then(function(u) {
2761
+ return w(u.data);
2762
+ }, A);
2763
2763
  });
2764
- }, t.updateUserWithToken = async function(u, d, h) {
2765
- h || (h = {});
2764
+ }, t.updateUserWithToken = async function(l, p, y) {
2765
+ y || (y = {});
2766
2766
  var w = !0;
2767
- return h.disableAutoAuthentication && (w = !1), new Promise(function(i, c) {
2767
+ return y.disableAutoAuthentication && (w = !1), new Promise(function(A, u) {
2768
2768
  var s = {
2769
2769
  bypassInterceptor: !0
2770
2770
  };
2771
- e.api.post(h.url || `${e.apiURL}/user/reset/${u}`, d, s).then(function(p) {
2772
- return w && (e.cache.reset(), t.set(p.data)), i(p.data);
2773
- }, c);
2771
+ e.api.post(y.url || `${e.apiURL}/user/reset/${l}`, p, s).then(function(i) {
2772
+ return w && (e.cache.reset(), t.set(i.data)), A(i.data);
2773
+ }, u);
2774
2774
  });
2775
- }, t.sendResetPasswordRequest = function(u, d) {
2776
- return d || (d = {}), u ? !u.email || !u.email.length ? Promise.reject({
2775
+ }, t.sendResetPasswordRequest = function(l, p) {
2776
+ return p || (p = {}), l ? !l.email || !l.email.length ? Promise.reject({
2777
2777
  message: "Email is required but was not provided"
2778
- }) : new Promise(function(h, w) {
2779
- var i = {
2778
+ }) : new Promise(function(y, w) {
2779
+ var A = {
2780
2780
  bypassInterceptor: !0
2781
2781
  };
2782
- e.api.post(d.url || `${e.apiURL}/user/forgot`, u, i).then(h, w);
2782
+ e.api.post(p.url || `${e.apiURL}/user/forgot`, l, A).then(y, w);
2783
2783
  }) : Promise.reject({
2784
2784
  message: "No details were provided for password reset request"
2785
2785
  });
2786
- }, t.ensureValidToken = async function(u) {
2787
- var d = t.getCurrentUser();
2788
- if (!d)
2786
+ }, t.ensureValidToken = async function(l) {
2787
+ var p = t.getCurrentUser();
2788
+ if (!p)
2789
2789
  return Promise.reject("No user");
2790
2790
  if (r.isCookieMode && r.isCookieMode())
2791
- return u ? await t.refreshAccessToken() : "cookie_mode_token";
2792
- var { token: w } = d;
2791
+ return l ? await t.refreshAccessToken() : "cookie_mode_token";
2792
+ var { token: w } = p;
2793
2793
  if (!w)
2794
2794
  return Promise.reject("No token");
2795
- var i = /* @__PURE__ */ new Date();
2796
- i.setSeconds(i.getSeconds() + a);
2797
- var c = new Date(w.expires);
2798
- return u ? await t.refreshAccessToken(w.refreshToken) : i < c ? w : await t.refreshAccessToken(w.refreshToken);
2795
+ var A = /* @__PURE__ */ new Date();
2796
+ A.setSeconds(A.getSeconds() + a);
2797
+ var u = new Date(w.expires);
2798
+ return l ? await t.refreshAccessToken(w.refreshToken) : A < u ? w : await t.refreshAccessToken(w.refreshToken);
2799
2799
  };
2800
2800
  const m = {};
2801
- return t.refreshAccessToken = async function(u) {
2801
+ return t.refreshAccessToken = async function(l) {
2802
2802
  if (m.inflightRefreshRequest)
2803
2803
  return m.inflightRefreshRequest;
2804
- const d = r.isCookieMode && r.isCookieMode();
2805
- return m.inflightRefreshRequest = new Promise(function(h, w) {
2806
- let i = {}, c = {
2804
+ const p = r.isCookieMode && r.isCookieMode();
2805
+ return m.inflightRefreshRequest = new Promise(function(y, w) {
2806
+ let A = {}, u = {
2807
2807
  bypassInterceptor: !0,
2808
2808
  withoutToken: !0
2809
2809
  };
2810
- if (d)
2811
- c.withCredentials = !0;
2810
+ if (p)
2811
+ u.withCredentials = !0;
2812
2812
  else {
2813
- if (!u)
2813
+ if (!l)
2814
2814
  return m.inflightRefreshRequest = null, w(new Error("No refresh token provided for localStorage mode"));
2815
- i.refreshToken = u;
2815
+ A.refreshToken = l;
2816
2816
  }
2817
- e.api.post("/user/refresh", i, c).then(function(p) {
2818
- if (!p || !p.data)
2817
+ e.api.post("/user/refresh", A, u).then(function(i) {
2818
+ if (!i || !i.data)
2819
2819
  return m.inflightRefreshRequest = null, w(new Error("Invalid refresh response"));
2820
- if (t.set(p.data), o(), d)
2821
- h("cookie_token_refreshed");
2820
+ if (t.set(i.data), o(), p)
2821
+ y("cookie_token_refreshed");
2822
2822
  else {
2823
- const A = p.data.token?.accessToken;
2824
- A ? h(A) : w(new Error("No access token in refresh response"));
2823
+ const S = i.data.token?.accessToken;
2824
+ S ? y(S) : w(new Error("No access token in refresh response"));
2825
2825
  }
2826
2826
  setTimeout(function() {
2827
2827
  m.inflightRefreshRequest = null;
@@ -2833,74 +2833,74 @@ var Et = function(e) {
2833
2833
  });
2834
2834
  }), m.inflightRefreshRequest;
2835
2835
  }, t.sync = function() {
2836
- return e.api.get("/user").then(function(u) {
2837
- if (u.data) {
2838
- const d = r.getUser();
2839
- if (d) {
2840
- const h = { ...d };
2841
- h.session ? Object.assign(h.session, u.data) : h.session = u.data, t.set(h);
2836
+ return e.api.get("/user").then(function(l) {
2837
+ if (l.data) {
2838
+ const p = r.getUser();
2839
+ if (p) {
2840
+ const y = { ...p };
2841
+ y.session ? Object.assign(y.session, l.data) : y.session = l.data, t.set(y);
2842
2842
  } else
2843
- t.set(u.data);
2843
+ t.set(l.data);
2844
2844
  } else
2845
2845
  t.set(null);
2846
2846
  o();
2847
- }).catch(function(u) {
2847
+ }).catch(function(l) {
2848
2848
  t.set(null), o();
2849
2849
  });
2850
2850
  }, t.getCurrentUser = function() {
2851
2851
  return r.getUser();
2852
2852
  }, t.getCurrentToken = function() {
2853
- var u = r.getAccessToken();
2854
- if (u)
2855
- return u;
2856
- var d = t.getCurrentUser();
2857
- if (!d)
2853
+ var l = r.getAccessToken();
2854
+ if (l)
2855
+ return l;
2856
+ var p = t.getCurrentUser();
2857
+ if (!p)
2858
2858
  return e.applicationToken ? e.applicationToken : void 0;
2859
- var { token: h } = d;
2860
- if (h)
2861
- return h.accessToken;
2859
+ var { token: y } = p;
2860
+ if (y)
2861
+ return y.accessToken;
2862
2862
  }, e.api.interceptors.request.use(
2863
- async function(u) {
2864
- if (u.bypassInterceptor)
2865
- return u;
2866
- var d = u;
2863
+ async function(l) {
2864
+ if (l.bypassInterceptor)
2865
+ return l;
2866
+ var p = l;
2867
2867
  if (r.isCookieMode && r.isCookieMode())
2868
- return d.withCredentials || (d.withCredentials = !0), d;
2869
- var w = t.getCurrentUser(), i, c, s;
2868
+ return p.withCredentials || (p.withCredentials = !0), p;
2869
+ var w = t.getCurrentUser(), A, u, s;
2870
2870
  if (w) {
2871
- var { token: p } = w;
2872
- p && (i = p.accessToken, c = p.refreshToken, s = p.expires);
2871
+ var { token: i } = w;
2872
+ i && (A = i.accessToken, u = i.refreshToken, s = i.expires);
2873
2873
  }
2874
- if (i)
2875
- d.headers.Authorization = `Bearer ${i}`;
2874
+ if (A)
2875
+ p.headers.Authorization = `Bearer ${A}`;
2876
2876
  else
2877
- return d;
2878
- if (!c)
2879
- return d;
2880
- var A = /* @__PURE__ */ new Date();
2881
- A.setSeconds(A.getSeconds() + a);
2882
- var y = new Date(s);
2883
- return A < y ? d : new Promise(async function(l, S) {
2884
- await t.refreshAccessToken(c).then(function(b) {
2885
- return d.headers.Authorization = `Bearer ${b}`, l(d);
2886
- }).catch(function(b) {
2887
- return S(b);
2877
+ return p;
2878
+ if (!u)
2879
+ return p;
2880
+ var S = /* @__PURE__ */ new Date();
2881
+ S.setSeconds(S.getSeconds() + a);
2882
+ var f = new Date(s);
2883
+ return S < f ? p : new Promise(async function(c, b) {
2884
+ await t.refreshAccessToken(u).then(function(v) {
2885
+ return p.headers.Authorization = `Bearer ${v}`, c(p);
2886
+ }).catch(function(v) {
2887
+ return b(v);
2888
2888
  });
2889
2889
  });
2890
2890
  },
2891
- function(u) {
2892
- return Promise.reject(u);
2891
+ function(l) {
2892
+ return Promise.reject(l);
2893
2893
  }
2894
- ), e.api.interceptors.response.use(function(u) {
2895
- return u;
2896
- }, function(u) {
2897
- var d = u && u.response && u.response.status || u.status;
2898
- switch (d) {
2894
+ ), e.api.interceptors.response.use(function(l) {
2895
+ return l;
2896
+ }, function(l) {
2897
+ var p = l && l.response && l.response.status || l.status;
2898
+ switch (p) {
2899
2899
  case 401:
2900
2900
  t.logout();
2901
2901
  break;
2902
2902
  }
2903
- return Promise.reject(u);
2903
+ return Promise.reject(l);
2904
2904
  }), t;
2905
2905
  }, q = {};
2906
2906
  function pr(e) {
@@ -2958,8 +2958,8 @@ q.activeFilterKeys = function(e, r) {
2958
2958
  var a = q.activeFilters(e), t = a.filter(function(o) {
2959
2959
  return !o.operator;
2960
2960
  }).reduce(function(o, m) {
2961
- var u = q.cleanKey(m.key);
2962
- return r.trimArrayDelimeters !== !1 && (u = u.split("[]").join("")), o[u] = !0, o;
2961
+ var l = q.cleanKey(m.key);
2962
+ return r.trimArrayDelimeters !== !1 && (l = l.split("[]").join("")), o[l] = !0, o;
2963
2963
  }, {}), n = Object.keys(t);
2964
2964
  return n;
2965
2965
  };
@@ -3009,8 +3009,8 @@ function Pt(e) {
3009
3009
  return o.extension?.length && (o.extension.includes(".") ? m = `${m}/${o.extension}` : m = `${m}/${a}.${o.extension}`), e.api.generateEndpointURL(m, n, o);
3010
3010
  }, r.filesize = function(a, t) {
3011
3011
  if (a == 0) return "0 Bytes";
3012
- var n = 1024, o = t || 2, m = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], u = Math.floor(Math.log(a) / Math.log(n));
3013
- return parseFloat((a / Math.pow(n, u)).toFixed(o)) + " " + m[u];
3012
+ var n = 1024, o = t || 2, m = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], l = Math.floor(Math.log(a) / Math.log(n));
3013
+ return parseFloat((a / Math.pow(n, l)).toFixed(o)) + " " + m[l];
3014
3014
  }, r.getBinaryTypeFromMime = function(a) {
3015
3015
  if (!a)
3016
3016
  return "file";
@@ -3121,8 +3121,8 @@ var $e = {}, xt = {
3121
3121
  n(a);
3122
3122
  function n(o) {
3123
3123
  var m = e.utils.id(o);
3124
- t.push(m), (o.children || []).forEach(function(u) {
3125
- n(u);
3124
+ t.push(m), (o.children || []).forEach(function(l) {
3125
+ n(l);
3126
3126
  });
3127
3127
  }
3128
3128
  return t;
@@ -3130,20 +3130,20 @@ var $e = {}, xt = {
3130
3130
  var t = {};
3131
3131
  for (var n in a?.permissions || {}) {
3132
3132
  var o = a?.permissions[n], m = r.getAllDescendants(o);
3133
- (o.permissions || []).forEach(function(u) {
3134
- t[u] || (t[u] = []), t[u] = [
3135
- ...new Set(t[u].concat(m))
3133
+ (o.permissions || []).forEach(function(l) {
3134
+ t[l] || (t[l] = []), t[l] = [
3135
+ ...new Set(t[l].concat(m))
3136
3136
  ];
3137
3137
  });
3138
3138
  }
3139
3139
  return t;
3140
3140
  }, r.allUserScopes = function(a) {
3141
3141
  var t = {}, n = a?.permissions || {};
3142
- function o(u) {
3143
- if (u) {
3144
- var d = e.utils.id(u);
3145
- d && (t[d] = 1, u.children && u.children.length && u.children.forEach(function(h) {
3146
- o(h);
3142
+ function o(l) {
3143
+ if (l) {
3144
+ var p = e.utils.id(l);
3145
+ p && (t[p] = 1, l.children && l.children.length && l.children.forEach(function(y) {
3146
+ o(y);
3147
3147
  }));
3148
3148
  }
3149
3149
  }
@@ -3152,29 +3152,29 @@ var $e = {}, xt = {
3152
3152
  return Object.keys(t);
3153
3153
  }, r.actionableScopes = function(a, t, n, o, m) {
3154
3154
  m = m || {};
3155
- var u = [];
3155
+ var l = [];
3156
3156
  if (a?.userType == "administrator")
3157
- u = r.allUserScopes(a, m);
3157
+ l = r.allUserScopes(a, m);
3158
3158
  else {
3159
- var d = r.hashPermissions(a), h = n || o;
3160
- if (!h)
3161
- return u;
3162
- let w = n ? d[`${n}.${t}`] || [] : [], i = o ? d[`${o}.${t}`] || [] : [];
3163
- u = [...w, ...i];
3159
+ var p = r.hashPermissions(a), y = n || o;
3160
+ if (!y)
3161
+ return l;
3162
+ let w = n ? p[`${n}.${t}`] || [] : [], A = o ? p[`${o}.${t}`] || [] : [];
3163
+ l = [...w, ...A];
3164
3164
  }
3165
- return u || [];
3165
+ return l || [];
3166
3166
  }, r.isOwner = function(a, t) {
3167
3167
  var n = e.utils.id(a), o = e.utils.id(a?.persona), m = t.meta;
3168
3168
  if (!m)
3169
3169
  return !1;
3170
- var u = m.userOwners || [], d = e.utils.ids([...u, m.userAuthor]), h = e.utils.hash(d);
3171
- if (h[n])
3170
+ var l = m.userOwners || [], p = e.utils.ids([...l, m.userAuthor]), y = e.utils.hash(p);
3171
+ if (y[n])
3172
3172
  return !0;
3173
- var w = m.personaOwners || [], i = e.utils.ids([
3173
+ var w = m.personaOwners || [], A = e.utils.ids([
3174
3174
  ...w,
3175
3175
  m.personaAuthor
3176
- ]), c = e.utils.hash(i);
3177
- return c[o] ? !0 : r.isAssignee(a, t);
3176
+ ]), u = e.utils.hash(A);
3177
+ return u[o] ? !0 : r.isAssignee(a, t);
3178
3178
  }, r.isAssignee = function(a, t) {
3179
3179
  const n = e.utils.ids(a?.profiles);
3180
3180
  if (!n.length)
@@ -3183,7 +3183,7 @@ var $e = {}, xt = {
3183
3183
  if (!o.length)
3184
3184
  return !1;
3185
3185
  const m = new Set(o);
3186
- return !!n.filter((h) => m.has(h)).length;
3186
+ return !!n.filter((y) => m.has(y)).length;
3187
3187
  }, r.allPermissions = function(a) {
3188
3188
  var t = Object.values(a?.permissions || {}).map(function(n) {
3189
3189
  return n.permissions;
@@ -3201,41 +3201,41 @@ var $e = {}, xt = {
3201
3201
  }, r.checkActionAccess = function(a, t, n, o, m) {
3202
3202
  if (m = m || {}, m.cache = m.cache || {}, r.isAdministrator(a))
3203
3203
  return !0;
3204
- var u = t.meta?.type, d = t.meta?.definition || u;
3205
- if (!d)
3204
+ var l = t.meta?.type, p = t.meta?.definition || l;
3205
+ if (!p)
3206
3206
  return !1;
3207
- var h = e.utils.ids(t.meta.scopes || []), w, i = `access-${a?.cacheKey}-${n}-${d}-${u}`;
3208
- if (m.cache[i])
3209
- w = m.cache[i];
3207
+ var y = e.utils.ids(t.meta.scopes || []), w, A = `access-${a?.cacheKey}-${n}-${p}-${l}`;
3208
+ if (m.cache[A])
3209
+ w = m.cache[A];
3210
3210
  else {
3211
- var c = e.utils.ids(
3212
- r.actionableScopes(a, n, d, u, m)
3211
+ var u = e.utils.ids(
3212
+ r.actionableScopes(a, n, p, l, m)
3213
3213
  );
3214
- w = e.utils.hash(c), m.cache[i] = w;
3214
+ w = e.utils.hash(u), m.cache[A] = w;
3215
3215
  }
3216
3216
  if (w) {
3217
- var s = h.some(function(b) {
3218
- return w[b];
3217
+ var s = y.some(function(v) {
3218
+ return w[v];
3219
3219
  });
3220
3220
  if (s)
3221
3221
  return !0;
3222
3222
  }
3223
- var p = r.isOwner(a, t);
3224
- if (p) {
3225
- var A, y = `access-${a?.cacheKey}-${o}-${d}-${u}`;
3226
- if (m.cache[y])
3227
- A = m.cache[y];
3223
+ var i = r.isOwner(a, t);
3224
+ if (i) {
3225
+ var S, f = `access-${a?.cacheKey}-${o}-${p}-${l}`;
3226
+ if (m.cache[f])
3227
+ S = m.cache[f];
3228
3228
  else {
3229
- var l = e.utils.ids(
3230
- r.actionableScopes(a, o, d, u, m)
3229
+ var c = e.utils.ids(
3230
+ r.actionableScopes(a, o, p, l, m)
3231
3231
  );
3232
- A = e.utils.hash(l), m.cache[y] = A;
3232
+ S = e.utils.hash(c), m.cache[f] = S;
3233
3233
  }
3234
- if (A) {
3235
- var S = h.some(function(b) {
3236
- return A[b];
3234
+ if (S) {
3235
+ var b = y.some(function(v) {
3236
+ return S[v];
3237
3237
  });
3238
- if (S)
3238
+ if (b)
3239
3239
  return !0;
3240
3240
  }
3241
3241
  }
@@ -3326,236 +3326,246 @@ function Ot(e) {
3326
3326
  };
3327
3327
  const a = {};
3328
3328
  let t;
3329
- r.variables = async function(i, c) {
3330
- c = c || {}, i = i || [];
3331
- var s = c.refresh || c.reload || !a.data;
3332
- if (s) {
3329
+ r.variables = async function(u, s) {
3330
+ s = s || {}, u = u || [];
3331
+ var i = s.refresh || s.reload || !a.data;
3332
+ if (i) {
3333
3333
  if (!t) {
3334
- let A = function() {
3334
+ let f = function() {
3335
3335
  t = null;
3336
3336
  };
3337
- t = e.api.post("/variables", { keys: i }), t.then(A, A);
3337
+ t = e.api.post("/variables", { keys: u }), t.then(f, f);
3338
3338
  }
3339
- const { data: p } = await t;
3340
- a.data = p, e.dispatch("variables", p);
3339
+ const { data: S } = await t;
3340
+ a.data = S, e.dispatch("variables", S);
3341
3341
  }
3342
3342
  return a.data;
3343
3343
  };
3344
3344
  const n = e.cache.get("user:glossary");
3345
3345
  let o;
3346
- function m({ _s: i, _k: c, types: s }) {
3347
- function p(A) {
3348
- if (typeof A == "string" && A[0] === "~")
3349
- return i[parseInt(A.slice(1))];
3350
- if (Array.isArray(A)) return A.map(p);
3351
- if (A && typeof A == "object") {
3352
- const y = {};
3353
- for (const [l, S] of Object.entries(A))
3354
- y[c[l] || l] = p(S);
3355
- return y;
3346
+ function m() {
3347
+ return new Promise((u) => {
3348
+ typeof requestIdleCallback == "function" ? requestIdleCallback(u, { timeout: 50 }) : setTimeout(u, 0);
3349
+ });
3350
+ }
3351
+ async function l({ _s: u, _k: s, types: i }) {
3352
+ function S(b) {
3353
+ if (typeof b == "string" && b[0] === "~")
3354
+ return u[parseInt(b.slice(1))];
3355
+ if (Array.isArray(b)) return b.map(S);
3356
+ if (b && typeof b == "object") {
3357
+ const v = {};
3358
+ for (const [C, P] of Object.entries(b))
3359
+ v[s[C] || C] = S(P);
3360
+ return v;
3356
3361
  }
3357
- return A;
3362
+ return b;
3363
+ }
3364
+ const f = 50, c = [];
3365
+ for (let b = 0; b < i.length; b += f) {
3366
+ const v = i.slice(b, b + f);
3367
+ c.push(...v.map(S)), b + f < i.length && await m();
3358
3368
  }
3359
- return s.map(p);
3369
+ return c;
3360
3370
  }
3361
- r.glossary = async function(i) {
3362
- i = i || {};
3363
- let c = n.get("glossary");
3364
- var s = i.refresh || i.reload || !c;
3365
- if (s) {
3371
+ r.glossary = async function(u) {
3372
+ u = u || {};
3373
+ let s = n.get("glossary"), S = !!!u.uncompressed;
3374
+ var f = u.refresh || u.reload || !s;
3375
+ if (f) {
3366
3376
  if (!o) {
3367
- let S = function() {
3377
+ let P = function() {
3368
3378
  o = null, r.loadingGlossary = !1;
3369
3379
  };
3370
3380
  r.loadingGlossary = !0;
3371
- const l = i.compressed ? "/glossary/compressed" : "/glossary";
3372
- o = e.api.get(l, { cache: !1 }), o.then(S, S);
3381
+ const C = S ? "/glossary/compressed" : "/glossary";
3382
+ o = e.api.get(C, { cache: !1 }), o.then(P, P);
3373
3383
  }
3374
- const { data: A } = await o, y = A._s && A._k && A.types ? m(A) : A;
3375
- n.set("glossary", y), c = y, e.dispatch("glossary", y);
3384
+ const { data: b } = await o, v = b._s && b._k && b.types ? await l(b) : b;
3385
+ n.set("glossary", v), s = v, e.dispatch("glossary", v);
3376
3386
  }
3377
- if (i.hash) {
3378
- var p = e.utils.hash(c, "key");
3379
- return p;
3387
+ if (u.hash) {
3388
+ var c = e.utils.hash(s, "key");
3389
+ return c;
3380
3390
  }
3381
- if (i.hex) {
3382
- var p = e.utils.hash(c, "hex");
3383
- return p;
3391
+ if (u.hex) {
3392
+ var c = e.utils.hash(s, "hex");
3393
+ return c;
3384
3394
  }
3385
- return c;
3395
+ return s;
3386
3396
  };
3387
- const u = {};
3388
- let d;
3389
- r.scopeGlossary = async function(i) {
3390
- i = i || {};
3391
- var c = i.refresh || i.reload || !u.data;
3392
- if (c) {
3393
- if (!d) {
3394
- let A = function() {
3395
- d = null;
3397
+ const p = {};
3398
+ let y;
3399
+ r.scopeGlossary = async function(u) {
3400
+ u = u || {};
3401
+ var s = u.refresh || u.reload || !p.data;
3402
+ if (s) {
3403
+ if (!y) {
3404
+ let f = function() {
3405
+ y = null;
3396
3406
  };
3397
- d = e.api.get("/scope/glossary", {
3407
+ y = e.api.get("/scope/glossary", {
3398
3408
  cache: !1
3399
- }), d.then(A, A);
3409
+ }), y.then(f, f);
3400
3410
  }
3401
- const { data: p } = await d;
3402
- u.data = p;
3411
+ const { data: S } = await y;
3412
+ p.data = S;
3403
3413
  }
3404
- if (i.hash) {
3405
- var s = e.utils.hash(u.data, "_id");
3406
- return s;
3414
+ if (u.hash) {
3415
+ var i = e.utils.hash(p.data, "_id");
3416
+ return i;
3407
3417
  }
3408
- return u.data;
3418
+ return p.data;
3409
3419
  };
3410
- const h = {};
3411
- r.comparators = async function(i) {
3412
- i = i || {};
3413
- var c = i.reload || i.refresh || !h.data;
3414
- if (c) {
3415
- const { data: s } = await e.api.get("/system/comparators");
3416
- s.available = {}, Object.entries(s.types).forEach(([p, A]) => {
3417
- s.available[p] = A.map(function(y) {
3418
- return s.hash[y];
3420
+ const w = {};
3421
+ r.comparators = async function(u) {
3422
+ u = u || {};
3423
+ var s = u.reload || u.refresh || !w.data;
3424
+ if (s) {
3425
+ const { data: i } = await e.api.get("/system/comparators");
3426
+ i.available = {}, Object.entries(i.types).forEach(([S, f]) => {
3427
+ i.available[S] = f.map(function(c) {
3428
+ return i.hash[c];
3419
3429
  });
3420
- }), h.data = s;
3430
+ }), w.data = i;
3421
3431
  }
3422
- return h.data;
3432
+ return w.data;
3423
3433
  };
3424
- function w(i) {
3425
- var { minimum: c, maximum: s } = i;
3426
- return c = e.utils.parseInt(c), c = Math.max(c, 0), s = e.utils.parseInt(s), s = Math.max(s, 0), s == 0 || (s = Math.max(s, c)), { minimum: c, maximum: s };
3427
- }
3428
- return r.meetsValidationRequirements = function(i, c, s) {
3429
- if (s.minLength) {
3430
- var p = String(i).length;
3431
- if (p < s.minLength)
3432
- return `Must be at least ${s.minLength} characters`;
3434
+ function A(u) {
3435
+ var { minimum: s, maximum: i } = u;
3436
+ return s = e.utils.parseInt(s), s = Math.max(s, 0), i = e.utils.parseInt(i), i = Math.max(i, 0), i == 0 || (i = Math.max(i, s)), { minimum: s, maximum: i };
3437
+ }
3438
+ return r.meetsValidationRequirements = function(u, s, i) {
3439
+ if (i.minLength) {
3440
+ var S = String(u).length;
3441
+ if (S < i.minLength)
3442
+ return `Must be at least ${i.minLength} characters`;
3433
3443
  }
3434
- if (s.maxLength) {
3435
- var p = String(i).length;
3436
- if (p > s.maxLength)
3437
- return `Can be no more than ${s.maxLength} characters`;
3444
+ if (i.maxLength) {
3445
+ var S = String(u).length;
3446
+ if (S > i.maxLength)
3447
+ return `Can be no more than ${i.maxLength} characters`;
3438
3448
  }
3439
- if (s.minValue && i !== void 0) {
3440
- var A = Number(i);
3441
- if (A < s.minValue)
3442
- return `Must be at least ${s.minValue}`;
3449
+ if (i.minValue && u !== void 0) {
3450
+ var f = Number(u);
3451
+ if (f < i.minValue)
3452
+ return `Must be at least ${i.minValue}`;
3443
3453
  }
3444
- if (s.maxValue && i !== void 0) {
3445
- var A = Number(i);
3446
- if (A > s.maxValue)
3447
- return `Can be no greater than ${s.maxValue}`;
3454
+ if (i.maxValue && u !== void 0) {
3455
+ var f = Number(u);
3456
+ if (f > i.maxValue)
3457
+ return `Can be no greater than ${i.maxValue}`;
3448
3458
  }
3449
- }, r.validateField = function(i, c, s) {
3450
- s = s || {};
3451
- var p = c.type || "string", { minimum: A, maximum: y } = w(c), l = c.type == "group" && c.asObject, S = l ? A === y && y === 1 : y === 1, b = !S, C = e.utils.exists(i);
3452
- if (A) {
3453
- if (!C)
3459
+ }, r.validateField = function(u, s, i) {
3460
+ i = i || {};
3461
+ var S = s.type || "string", { minimum: f, maximum: c } = A(s), b = s.type == "group" && s.asObject, v = b ? f === c && c === 1 : c === 1, C = !v, P = e.utils.exists(u);
3462
+ if (f) {
3463
+ if (!P)
3454
3464
  return {
3455
3465
  valid: !1,
3456
- message: `${c.title} is a required field`,
3466
+ message: `${s.title} is a required field`,
3457
3467
  status: 400
3458
3468
  };
3459
- } else if (!C)
3469
+ } else if (!P)
3460
3470
  return {
3461
3471
  valid: !0
3462
3472
  };
3463
- if (b) {
3464
- if (!Array.isArray(i))
3465
- return A ? {
3473
+ if (C) {
3474
+ if (!Array.isArray(u))
3475
+ return f ? {
3466
3476
  valid: !1,
3467
- message: `${c.title} requires at least ${A} values`,
3477
+ message: `${s.title} requires at least ${f} values`,
3468
3478
  status: 400
3469
- } : (console.log("NOT PROVIDED AS ARRAY", c.title, i), {
3479
+ } : (console.log("NOT PROVIDED AS ARRAY", s.title, u), {
3470
3480
  valid: !1,
3471
- message: `${c.title} must be provided as an array`,
3481
+ message: `${s.title} must be provided as an array`,
3472
3482
  status: 400
3473
3483
  });
3474
- var P = i;
3475
- if (P = P.filter(function(R) {
3476
- var T = R == null || R === "";
3477
- return !T;
3478
- }), A == y && A && P.length != A)
3484
+ var I = u;
3485
+ if (I = I.filter(function(T) {
3486
+ var R = T == null || T === "";
3487
+ return !R;
3488
+ }), f == c && f && I.length != f)
3479
3489
  return {
3480
3490
  valid: !1,
3481
- message: `${c.title} requires exactly ${y} values`,
3491
+ message: `${s.title} requires exactly ${c} values`,
3482
3492
  status: 400
3483
3493
  };
3484
- if (y && P.length > y)
3494
+ if (c && I.length > c)
3485
3495
  return {
3486
3496
  valid: !1,
3487
- message: `${c.title} requires less than ${y + 1} values`,
3497
+ message: `${s.title} requires less than ${c + 1} values`,
3488
3498
  status: 400
3489
3499
  };
3490
- if (P.length < A)
3500
+ if (I.length < f)
3491
3501
  return {
3492
3502
  valid: !1,
3493
- message: `${c.title} requires at least ${A} values`,
3503
+ message: `${s.title} requires at least ${f} values`,
3494
3504
  status: 400
3495
3505
  };
3496
- var I;
3497
- if (P.find(function(R) {
3498
- var T = p;
3499
- c.type === "group" && (T = "object"), c.type === "reference" && c.widget === "form" && (T = "object");
3506
+ var N;
3507
+ if (I.find(function(T) {
3508
+ var R = S;
3509
+ s.type === "group" && (R = "object"), s.type === "reference" && s.widget === "form" && (R = "object");
3500
3510
  var $ = e.utils.isValidValue(
3501
- R,
3502
3511
  T,
3503
- s.strict
3512
+ R,
3513
+ i.strict
3504
3514
  );
3505
3515
  if (!$)
3506
- return I = !0, !0;
3507
- if (c.validation) {
3508
- var B = r.meetsValidationRequirements(
3509
- R,
3510
- p,
3511
- c.validation
3516
+ return N = !0, !0;
3517
+ if (s.validation) {
3518
+ var z = r.meetsValidationRequirements(
3519
+ T,
3520
+ S,
3521
+ s.validation
3512
3522
  );
3513
- if (B)
3514
- return I = !0, !0;
3523
+ if (z)
3524
+ return N = !0, !0;
3515
3525
  }
3516
- }), I)
3526
+ }), N)
3517
3527
  return {
3518
3528
  valid: !1,
3519
- message: `Invalid input for ${c.title}`,
3529
+ message: `Invalid input for ${s.title}`,
3520
3530
  status: 400
3521
3531
  };
3522
3532
  } else {
3523
- var _ = p, k = c.widget;
3524
- _ === "group" && (_ = "object"), _ === "reference" && k === "form" && (_ = "object");
3525
- var V = r.getCleanedValue(i, _, s), F = e.utils.isValidValue(
3526
- V,
3527
- _,
3528
- s.strict
3533
+ var M = S, V = s.widget;
3534
+ M === "group" && (M = "object"), M === "reference" && V === "form" && (M = "object");
3535
+ var U = r.getCleanedValue(u, M, i), L = e.utils.isValidValue(
3536
+ U,
3537
+ M,
3538
+ i.strict
3529
3539
  );
3530
- if (!F)
3540
+ if (!L)
3531
3541
  return {
3532
3542
  valid: !1,
3533
- message: `Single value '${i}' is not a valid ${_} for ${c.title}`,
3543
+ message: `Single value '${u}' is not a valid ${M} for ${s.title}`,
3534
3544
  criteria: {
3535
- isValidValue: F,
3536
- cleanedValue: V,
3537
- fieldType: p,
3538
- options: s
3545
+ isValidValue: L,
3546
+ cleanedValue: U,
3547
+ fieldType: S,
3548
+ options: i
3539
3549
  },
3540
3550
  status: 400
3541
3551
  };
3542
- let R = !1;
3543
- const T = {};
3544
- if (String(c.minValue) && (T.minValue = parseInt(c.minValue), R = !0), String(c.maxValue) && (T.maxValue = parseInt(c.maxValue), R = !0), String(c.minLength) && (T.minLength = parseInt(c.minLength), R = !0), String(c.maxLength) && (T.maxLength = parseInt(c.maxLength), R = !0), R) {
3552
+ let T = !1;
3553
+ const R = {};
3554
+ if (String(s.minValue) && (R.minValue = parseInt(s.minValue), T = !0), String(s.maxValue) && (R.maxValue = parseInt(s.maxValue), T = !0), String(s.minLength) && (R.minLength = parseInt(s.minLength), T = !0), String(s.maxLength) && (R.maxLength = parseInt(s.maxLength), T = !0), T) {
3545
3555
  const $ = Object.assign(
3546
3556
  {},
3547
- T,
3548
- c.validation || {}
3557
+ R,
3558
+ s.validation || {}
3549
3559
  );
3550
- var L = r.meetsValidationRequirements(
3551
- i,
3552
- p,
3560
+ var F = r.meetsValidationRequirements(
3561
+ u,
3562
+ S,
3553
3563
  $
3554
3564
  );
3555
- if (L)
3565
+ if (F)
3556
3566
  return {
3557
3567
  valid: !1,
3558
- message: L,
3568
+ message: F,
3559
3569
  status: 400
3560
3570
  };
3561
3571
  }
@@ -3563,74 +3573,74 @@ function Ot(e) {
3563
3573
  return {
3564
3574
  valid: !0
3565
3575
  };
3566
- }, r.getCleanedValue = function(i, c, s) {
3567
- switch (c) {
3576
+ }, r.getCleanedValue = function(u, s, i) {
3577
+ switch (s) {
3568
3578
  case "number":
3569
3579
  case "float":
3570
3580
  case "decimal":
3571
- return e.utils.exists(i) ? Number(i) : void 0;
3581
+ return e.utils.exists(u) ? Number(u) : void 0;
3572
3582
  case "integer":
3573
- return e.utils.exists(i) ? parseInt(i) : void 0;
3583
+ return e.utils.exists(u) ? parseInt(u) : void 0;
3574
3584
  case "boolean":
3575
- return e.utils.exists(i) ? e.utils.parseBoolean(i) : void 0;
3585
+ return e.utils.exists(u) ? e.utils.parseBoolean(u) : void 0;
3576
3586
  case "email":
3577
- return s.strict ? i : String(i).toLowerCase();
3587
+ return i.strict ? u : String(u).toLowerCase();
3578
3588
  case "reference":
3579
- return s.strict ? i : e.utils.id(i);
3589
+ return i.strict ? u : e.utils.id(u);
3580
3590
  default:
3581
- return s.strict ? i : e.utils.cleanValue(i, c, s);
3591
+ return i.strict ? u : e.utils.cleanValue(u, s, i);
3582
3592
  }
3583
- return i;
3584
- }, r.list = async function(i, c, s) {
3585
- s || (s = {});
3586
- const p = s.remoteURL || `/content/${i}/list`;
3587
- if (s.cancellable) {
3588
- s.config || (s.config = {});
3589
- const y = e.api.CancelToken.source();
3590
- return s.config.cancelToken = y.token, {
3591
- promise: e.api.post(p, c, s.config),
3592
- cancel(S) {
3593
- y.cancel(S || "Operation canceled by the user.");
3593
+ return u;
3594
+ }, r.list = async function(u, s, i) {
3595
+ i || (i = {});
3596
+ const S = i.remoteURL || `/content/${u}/list`;
3597
+ if (i.cancellable) {
3598
+ i.config || (i.config = {});
3599
+ const c = e.api.CancelToken.source();
3600
+ return i.config.cancelToken = c.token, {
3601
+ promise: e.api.post(S, s, i.config),
3602
+ cancel(v) {
3603
+ c.cancel(v || "Operation canceled by the user.");
3594
3604
  }
3595
3605
  };
3596
3606
  } else {
3597
- const { data: A } = await e.api.post(p, c, s.config);
3598
- return A;
3607
+ const { data: f } = await e.api.post(S, s, i.config);
3608
+ return f;
3599
3609
  }
3600
- }, r.create = async function(i, c) {
3601
- const s = { ...c };
3602
- s.meta?.scopes && (s.meta.scopes = e.utils.ids(s.meta.scopes));
3603
- const { data: p } = await e.api.post(`/content/${i}/create`, s);
3604
- return p;
3605
- }, r.update = async function(i, c) {
3606
- i = e.utils.id(i);
3607
- const s = { ...c };
3608
- s.meta?.scopes && (s.meta.scopes = e.utils.ids(s.meta.scopes));
3609
- const { data: p } = await e.api.put(`/content/${i}`, s);
3610
- return p;
3611
- }, r.patch = async function(i, c) {
3612
- i = e.utils.id(i);
3613
- const s = { ...c };
3614
- s.meta?.scopes && (s.meta.scopes = e.utils.ids(s.meta.scopes));
3615
- const { data: p } = await e.api.patch(`/content/${i}`, s);
3616
- return p;
3617
- }, r.get = async function(i, c) {
3618
- i = e.utils.id(i), c = c || {};
3619
- const { data: s } = await e.api.get(`/content/${i}`, c);
3620
- return s;
3621
- }, r.getFromID = async function(i) {
3622
- return r.get(i);
3623
- }, r.delete = async function(i, c) {
3624
- i = e.utils.id(i);
3625
- const { data: s } = await e.api.delete(`/content/${i}`, c);
3626
- return s;
3627
- }, r.restore = async function(i, c) {
3628
- i = e.utils.id(i);
3629
- const { data: s } = await e.api.get(`/content/${i}/restore`, c);
3610
+ }, r.create = async function(u, s) {
3611
+ const i = { ...s };
3612
+ i.meta?.scopes && (i.meta.scopes = e.utils.ids(i.meta.scopes));
3613
+ const { data: S } = await e.api.post(`/content/${u}/create`, i);
3614
+ return S;
3615
+ }, r.update = async function(u, s) {
3616
+ u = e.utils.id(u);
3617
+ const i = { ...s };
3618
+ i.meta?.scopes && (i.meta.scopes = e.utils.ids(i.meta.scopes));
3619
+ const { data: S } = await e.api.put(`/content/${u}`, i);
3620
+ return S;
3621
+ }, r.patch = async function(u, s) {
3622
+ u = e.utils.id(u);
3623
+ const i = { ...s };
3624
+ i.meta?.scopes && (i.meta.scopes = e.utils.ids(i.meta.scopes));
3625
+ const { data: S } = await e.api.patch(`/content/${u}`, i);
3626
+ return S;
3627
+ }, r.get = async function(u, s) {
3628
+ u = e.utils.id(u), s = s || {};
3629
+ const { data: i } = await e.api.get(`/content/${u}`, s);
3630
+ return i;
3631
+ }, r.getFromID = async function(u) {
3632
+ return r.get(u);
3633
+ }, r.delete = async function(u, s) {
3634
+ u = e.utils.id(u);
3635
+ const { data: i } = await e.api.delete(`/content/${u}`, s);
3636
+ return i;
3637
+ }, r.restore = async function(u, s) {
3638
+ u = e.utils.id(u);
3639
+ const { data: i } = await e.api.get(`/content/${u}/restore`, s);
3640
+ return i;
3641
+ }, r.getFromSlug = async function(u) {
3642
+ const { data: s } = await e.api.get(`/content/slug/${u}`);
3630
3643
  return s;
3631
- }, r.getFromSlug = async function(i) {
3632
- const { data: c } = await e.api.get(`/content/slug/${i}`);
3633
- return c;
3634
3644
  }, r;
3635
3645
  }
3636
3646
  function Mt(e) {
@@ -3649,10 +3659,10 @@ function kt(e) {
3649
3659
  return !(typeof window > "u" || !window.navigator || !window.navigator.geolocation);
3650
3660
  }
3651
3661
  return r.distance = function({ lat: t, lon: n }, { lat: o, lon: m }) {
3652
- function u(p) {
3653
- return p * (Math.PI / 180);
3662
+ function l(i) {
3663
+ return i * (Math.PI / 180);
3654
3664
  }
3655
- var d = 6371e3, h = u(o - t), w = u(m - n), i = Math.sin(h / 2) * Math.sin(h / 2) + Math.cos(u(t)) * Math.cos(u(o)) * Math.sin(w / 2) * Math.sin(w / 2), c = 2 * Math.atan2(Math.sqrt(i), Math.sqrt(1 - i)), s = d * c;
3665
+ var p = 6371e3, y = l(o - t), w = l(m - n), A = Math.sin(y / 2) * Math.sin(y / 2) + Math.cos(l(t)) * Math.cos(l(o)) * Math.sin(w / 2) * Math.sin(w / 2), u = 2 * Math.atan2(Math.sqrt(A), Math.sqrt(1 - A)), s = p * u;
3656
3666
  return s;
3657
3667
  }, r.getPosition = async function() {
3658
3668
  return a() ? (console.log("qik:geo: getting location"), new Promise(function(t, n) {
@@ -4397,87 +4407,87 @@ const It = function(e, r) {
4397
4407
  windowID: a,
4398
4408
  autoreconnect: !0
4399
4409
  }, n, o = {};
4400
- const m = {}, u = new je();
4401
- u.bootstrap(t), t.channel = async function(p) {
4402
- if (o[p])
4403
- return o[p];
4404
- const A = new je();
4405
- o[p] = A, t.connected || await t.connect(), t.subscribe(p), t.addEventListener(p, y);
4406
- function y(l) {
4407
- A.dispatch("message", l);
4410
+ const m = {}, l = new je();
4411
+ l.bootstrap(t), t.channel = async function(i) {
4412
+ if (o[i])
4413
+ return o[i];
4414
+ const S = new je();
4415
+ o[i] = S, t.connected || await t.connect(), t.subscribe(i), t.addEventListener(i, f);
4416
+ function f(c) {
4417
+ S.dispatch("message", c);
4408
4418
  }
4409
- return A.destroy = function() {
4410
- t.removeAllListeners(), o[p] = null;
4411
- }, o[p];
4419
+ return S.destroy = function() {
4420
+ t.removeAllListeners(), o[i] = null;
4421
+ }, o[i];
4412
4422
  };
4413
- function d(p) {
4414
- t.debug && console.log("[socket] Connection open", p), t.connected = !0, u.dispatch("connected", p);
4423
+ function p(i) {
4424
+ t.debug && console.log("[socket] Connection open", i), t.connected = !0, l.dispatch("connected", i);
4415
4425
  }
4416
- async function h(p) {
4417
- p.wasClean ? t.debug && console.log(`[socket] Connection closed cleanly, code=${p.code} reason=${p.reason}`) : t.debug && console.log("[socket] - connection closed due to error", p), t.connected = !1, u.dispatch("disconnected", p), n = null, t.autoreconnect && t.reconnect();
4426
+ async function y(i) {
4427
+ i.wasClean ? t.debug && console.log(`[socket] Connection closed cleanly, code=${i.code} reason=${i.reason}`) : t.debug && console.log("[socket] - connection closed due to error", i), t.connected = !1, l.dispatch("disconnected", i), n = null, t.autoreconnect && t.reconnect();
4418
4428
  }
4419
- function w(p) {
4420
- console.log("[event] socketError", event), t.debug && console.log("[socket] Error", p), u.dispatch("error", p);
4429
+ function w(i) {
4430
+ console.log("[event] socketError", event), t.debug && console.log("[socket] Error", i), l.dispatch("error", i);
4421
4431
  }
4422
- function i(p) {
4423
- const A = JSON.parse(p.data);
4424
- t.debug && console.log("[socket] message received", A), u.dispatch("message", A), A.channel && u.dispatch(A.channel, A);
4432
+ function A(i) {
4433
+ const S = JSON.parse(i.data);
4434
+ t.debug && console.log("[socket] message received", S), l.dispatch("message", S), S.channel && l.dispatch(S.channel, S);
4425
4435
  }
4426
- async function c(p) {
4427
- n.send(JSON.stringify(p));
4436
+ async function u(i) {
4437
+ n.send(JSON.stringify(i));
4428
4438
  }
4429
4439
  function s() {
4430
- return new Promise(function(p) {
4431
- function A() {
4440
+ return new Promise(function(i) {
4441
+ function S() {
4432
4442
  if (t.connected)
4433
- return p(n);
4434
- setTimeout(A, 1e3);
4443
+ return i(n);
4444
+ setTimeout(S, 1e3);
4435
4445
  }
4436
- A();
4446
+ S();
4437
4447
  });
4438
4448
  }
4439
4449
  return t.connect = async function() {
4440
4450
  if (n)
4441
4451
  return n.connected ? (console.log("[socket] - Socket is already connected"), n) : s();
4442
- const p = e.auth.getCurrentToken();
4443
- if (!p) {
4452
+ const i = e.auth.getCurrentToken();
4453
+ if (!i) {
4444
4454
  t.debug && console.log("[socket] - Must be authenticated to connect to socket");
4445
4455
  return;
4446
4456
  }
4447
- return n = new WebSocket(`${t.url}?access_token=${p}&windowid=${a}`), n.addEventListener("close", h), n.addEventListener("error", w), n.addEventListener("open", d), n.addEventListener("message", i), t.debug && console.log("[socket] - Connected with event listeners"), s();
4457
+ return n = new WebSocket(`${t.url}?access_token=${i}&windowid=${a}`), n.addEventListener("close", y), n.addEventListener("error", w), n.addEventListener("open", p), n.addEventListener("message", A), t.debug && console.log("[socket] - Connected with event listeners"), s();
4448
4458
  }, t.reconnect = async function() {
4449
4459
  if (t.connected)
4450
4460
  return;
4451
4461
  t.debug && console.log("[socket] reconnecting...");
4452
- const p = await t.connect();
4453
- return Object.keys(m).forEach(function(y) {
4454
- t.subscribe(y);
4455
- }), p;
4462
+ const i = await t.connect();
4463
+ return Object.keys(m).forEach(function(f) {
4464
+ t.subscribe(f);
4465
+ }), i;
4456
4466
  }, t.close = async function() {
4457
4467
  if (!n) {
4458
4468
  console.log("[socket] - Socket is not connected");
4459
4469
  return;
4460
4470
  }
4461
- const p = t.autoreconnect;
4462
- t.autoreconnect = !1, n.close(), n.removeEventListener("close", h), n.removeEventListener("error", w), n.removeEventListener("open", d), n.removeEventListener("message", i), n = null, h({ wasClean: !0 }), t.autoreconnect = p;
4463
- }, t.disconnect = t.close, t.subscribe = async function(p) {
4471
+ const i = t.autoreconnect;
4472
+ t.autoreconnect = !1, n.close(), n.removeEventListener("close", y), n.removeEventListener("error", w), n.removeEventListener("open", p), n.removeEventListener("message", A), n = null, y({ wasClean: !0 }), t.autoreconnect = i;
4473
+ }, t.disconnect = t.close, t.subscribe = async function(i) {
4464
4474
  if (!n) {
4465
4475
  console.log("[socket] - Can't subscribe to channel as socket is not connected");
4466
4476
  return;
4467
4477
  }
4468
- c({
4478
+ u({
4469
4479
  action: "subscribe",
4470
- channel: p
4471
- }), m[p] = !0, u.dispatch("subscribe", p), t.debug && console.log(`[socket] - subscribed to ${p}`);
4472
- }, t.unsubscribe = async function(p) {
4480
+ channel: i
4481
+ }), m[i] = !0, l.dispatch("subscribe", i), t.debug && console.log(`[socket] - subscribed to ${i}`);
4482
+ }, t.unsubscribe = async function(i) {
4473
4483
  if (!n) {
4474
4484
  console.log("[socket] - Can't unsubscribe from channel as socket is not connected");
4475
4485
  return;
4476
4486
  }
4477
- c({
4487
+ u({
4478
4488
  action: "unsubscribe",
4479
- channel: p
4480
- }), delete m[p], u.dispatch("unsubscribe", p), t.debug && console.log(`[socket] - unsubscribed from ${p}`);
4489
+ channel: i
4490
+ }), delete m[i], l.dispatch("unsubscribe", i), t.debug && console.log(`[socket] - unsubscribed from ${i}`);
4481
4491
  }, t;
4482
4492
  };
4483
4493
  function Nt(e) {
@@ -4506,7 +4516,7 @@ function Nt(e) {
4506
4516
  value: xt,
4507
4517
  writable: !1
4508
4518
  });
4509
- const t = M;
4519
+ const t = k;
4510
4520
  Object.defineProperty(r, "utils", {
4511
4521
  value: t,
4512
4522
  writable: !1
@@ -4518,24 +4528,24 @@ function Nt(e) {
4518
4528
  Object.defineProperty(r, "files", {
4519
4529
  value: o,
4520
4530
  writable: !1
4521
- }), new je().bootstrap(r), r.error = function(p) {
4522
- return r.dispatch("error", t.errorMessage(p));
4523
- }, r.notify = function(p, A) {
4524
- return r.dispatch("notification", { message: p, options: A });
4531
+ }), new je().bootstrap(r), r.error = function(i) {
4532
+ return r.dispatch("error", t.errorMessage(i));
4533
+ }, r.notify = function(i, S) {
4534
+ return r.dispatch("notification", { message: i, options: S });
4525
4535
  };
4526
- const u = new mt(r);
4536
+ const l = new mt(r);
4527
4537
  Object.defineProperty(r, "api", {
4528
- value: u,
4538
+ value: l,
4529
4539
  writable: !1
4530
4540
  });
4531
- const d = new Et(r);
4541
+ const p = new Et(r);
4532
4542
  Object.defineProperty(r, "auth", {
4533
- value: d,
4543
+ value: p,
4534
4544
  writable: !1
4535
4545
  });
4536
- const h = new It(r);
4546
+ const y = new It(r);
4537
4547
  Object.defineProperty(r, "socket", {
4538
- value: h,
4548
+ value: y,
4539
4549
  writable: !1
4540
4550
  });
4541
4551
  const w = new Ct(r);
@@ -4543,14 +4553,14 @@ function Nt(e) {
4543
4553
  value: w,
4544
4554
  writable: !1
4545
4555
  });
4546
- const i = new Mt(r);
4556
+ const A = new Mt(r);
4547
4557
  Object.defineProperty(r, "system", {
4548
- value: i,
4558
+ value: A,
4549
4559
  writable: !1
4550
4560
  });
4551
- const c = new kt(r);
4561
+ const u = new kt(r);
4552
4562
  Object.defineProperty(r, "geo", {
4553
- value: c,
4563
+ value: u,
4554
4564
  writable: !1
4555
4565
  });
4556
4566
  const s = new Ot(r);