@qikdev/sdk 0.2.3 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -28,9 +28,9 @@ function Zr(e) {
28
28
  });
29
29
  }), a;
30
30
  }
31
- var Ze, xr;
31
+ var Ze, Pr;
32
32
  function Qr() {
33
- return xr || (xr = 1, Ze = function() {
33
+ return Pr || (Pr = 1, Ze = function() {
34
34
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
35
35
  return !1;
36
36
  if (typeof Symbol.iterator == "symbol")
@@ -69,14 +69,14 @@ function Xr() {
69
69
  if (Or) return Ye;
70
70
  Or = 1;
71
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];
72
+ for (var w = [], v = 0; v < p.length; v += 1)
73
+ w[v] = p[v];
74
74
  for (var u = 0; u < y.length; u += 1)
75
75
  w[u + p.length] = y[u];
76
76
  return w;
77
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];
78
+ for (var w = [], v = y, u = 0; v < p.length; v += 1, u += 1)
79
+ w[u] = p[v];
80
80
  return w;
81
81
  }, m = function(l, p) {
82
82
  for (var y = "", w = 0; w < l.length; w += 1)
@@ -87,8 +87,8 @@ function Xr() {
87
87
  var y = this;
88
88
  if (typeof y != "function" || r.apply(y) !== t)
89
89
  throw new TypeError(e + y);
90
- for (var w = o(arguments, 1), A, u = function() {
91
- if (this instanceof A) {
90
+ for (var w = o(arguments, 1), v, u = function() {
91
+ if (this instanceof v) {
92
92
  var c = y.apply(
93
93
  this,
94
94
  n(w, arguments)
@@ -101,12 +101,12 @@ function Xr() {
101
101
  );
102
102
  }, s = a(0, y.length - w.length), i = [], S = 0; S < s; S++)
103
103
  i[S] = "$" + S;
104
- if (A = Function("binder", "return function (" + m(i, ",") + "){ return binder.apply(this,arguments); }")(u), y.prototype) {
104
+ if (v = Function("binder", "return function (" + m(i, ",") + "){ return binder.apply(this,arguments); }")(u), y.prototype) {
105
105
  var f = function() {
106
106
  };
107
- f.prototype = y.prototype, A.prototype = new f(), f.prototype = null;
107
+ f.prototype = y.prototype, v.prototype = new f(), f.prototype = null;
108
108
  }
109
- return A;
109
+ return v;
110
110
  }, Ye;
111
111
  }
112
112
  var Xe, Mr;
@@ -116,20 +116,20 @@ function yr() {
116
116
  var e = Xr();
117
117
  return Xe = Function.prototype.bind || e, Xe;
118
118
  }
119
- var er, kr;
119
+ var er, Ir;
120
120
  function et() {
121
- if (kr) return er;
122
- kr = 1;
121
+ if (Ir) return er;
122
+ Ir = 1;
123
123
  var e = yr();
124
124
  return er = e.call(Function.call, Object.prototype.hasOwnProperty), er;
125
125
  }
126
- var rr, Ir;
126
+ var rr, kr;
127
127
  function hr() {
128
- if (Ir) return rr;
129
- Ir = 1;
130
- var e, r = SyntaxError, a = Function, t = TypeError, n = function(U) {
128
+ if (kr) return rr;
129
+ kr = 1;
130
+ var e, r = SyntaxError, a = Function, t = TypeError, n = function($) {
131
131
  try {
132
- return a('"use strict"; return (' + U + ").constructor;")();
132
+ return a('"use strict"; return (' + $ + ").constructor;")();
133
133
  } catch {
134
134
  }
135
135
  }, o = Object.getOwnPropertyDescriptor;
@@ -151,9 +151,9 @@ function hr() {
151
151
  return m;
152
152
  }
153
153
  }
154
- })() : m, p = Yr()(), y = Object.getPrototypeOf || function(U) {
155
- return U.__proto__;
156
- }, w = {}, A = typeof Uint8Array > "u" ? e : y(Uint8Array), u = {
154
+ })() : m, p = Yr()(), y = Object.getPrototypeOf || function($) {
155
+ return $.__proto__;
156
+ }, w = {}, v = 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,
@@ -209,7 +209,7 @@ function hr() {
209
209
  "%Symbol%": p ? Symbol : e,
210
210
  "%SyntaxError%": r,
211
211
  "%ThrowTypeError%": l,
212
- "%TypedArray%": A,
212
+ "%TypedArray%": v,
213
213
  "%TypeError%": t,
214
214
  "%Uint8Array%": typeof Uint8Array > "u" ? e : Uint8Array,
215
215
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? e : Uint8ClampedArray,
@@ -219,7 +219,7 @@ 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 U(L) {
222
+ }, s = function $(L) {
223
223
  var F;
224
224
  if (L === "%AsyncFunction%")
225
225
  F = n("async function () {}");
@@ -228,11 +228,11 @@ function hr() {
228
228
  else if (L === "%AsyncGeneratorFunction%")
229
229
  F = n("async function* () {}");
230
230
  else if (L === "%AsyncGenerator%") {
231
- var T = U("%AsyncGeneratorFunction%");
232
- T && (F = T.prototype);
231
+ var R = $("%AsyncGeneratorFunction%");
232
+ R && (F = R.prototype);
233
233
  } else if (L === "%AsyncIteratorPrototype%") {
234
- var R = U("%AsyncGenerator%");
235
- R && (F = y(R.prototype));
234
+ var T = $("%AsyncGenerator%");
235
+ T && (F = y(T.prototype));
236
236
  }
237
237
  return u[L] = F, F;
238
238
  }, i = {
@@ -287,26 +287,26 @@ function hr() {
287
287
  "%URIErrorPrototype%": ["URIError", "prototype"],
288
288
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
289
289
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
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 !== "%")
290
+ }, S = yr(), f = et(), c = S.call(Function.call, Array.prototype.concat), A = S.call(Function.apply, Array.prototype.splice), b = S.call(Function.call, String.prototype.replace), P = S.call(Function.call, String.prototype.slice), x = S.call(Function.call, RegExp.prototype.exec), k = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, N = /\\(\\)?/g, M = function(L) {
291
+ var F = P(L, 0, 1), R = P(L, -1);
292
+ if (F === "%" && R !== "%")
293
293
  throw new r("invalid intrinsic syntax, expected closing `%`");
294
- if (T === "%" && F !== "%")
294
+ if (R === "%" && F !== "%")
295
295
  throw new r("invalid intrinsic syntax, expected opening `%`");
296
- var R = [];
297
- return v(L, I, function($, z, _, Z) {
298
- R[R.length] = _ ? v(Z, N, "$1") : z || $;
299
- }), R;
296
+ var T = [];
297
+ return b(L, k, function(U, z, _, Z) {
298
+ T[T.length] = _ ? b(Z, N, "$1") : z || U;
299
+ }), T;
300
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)
301
+ var R = L, T;
302
+ if (f(i, R) && (T = i[R], R = "%" + T[0] + "%"), f(u, R)) {
303
+ var U = u[R];
304
+ if (U === w && (U = s(R)), typeof U > "u" && !F)
305
305
  throw new t("intrinsic " + L + " exists, but is not available. Please file an issue!");
306
306
  return {
307
- alias: R,
308
- name: T,
309
- value: $
307
+ alias: T,
308
+ name: R,
309
+ value: U
310
310
  };
311
311
  }
312
312
  throw new r("intrinsic " + L + " does not exist!");
@@ -316,15 +316,15 @@ function hr() {
316
316
  throw new t("intrinsic name must be a non-empty string");
317
317
  if (arguments.length > 1 && typeof F != "boolean")
318
318
  throw new t('"allowMissing" argument must be a boolean');
319
- if (P(/^%?[^%]*%?$/, L) === null)
319
+ if (x(/^%?[^%]*%?$/, 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 = 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
- for (var ne = 1, X = !0; ne < T.length; ne += 1) {
324
- var W = T[ne], ie = C(W, 0, 1), re = C(W, -1);
321
+ var R = M(L), T = R.length > 0 ? R[0] : "", U = V("%" + T + "%", F), z = U.name, _ = U.value, Z = !1, Q = U.alias;
322
+ Q && (T = Q[0], A(R, c([0, 1], Q)));
323
+ for (var ne = 1, X = !0; ne < R.length; ne += 1) {
324
+ var W = R[ne], ie = P(W, 0, 1), re = P(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), R += "." + W, z = "%" + R + "%", f(u, z))
327
+ if ((W === "constructor" || !X) && (Z = !0), T += "." + W, z = "%" + T + "%", f(u, z))
328
328
  _ = u[z];
329
329
  else if (_ != null) {
330
330
  if (!(W in _)) {
@@ -332,7 +332,7 @@ function hr() {
332
332
  throw new t("base intrinsic for " + L + " exists, but the property is not available.");
333
333
  return;
334
334
  }
335
- if (o && ne + 1 >= T.length) {
335
+ if (o && ne + 1 >= R.length) {
336
336
  var te = o(_, W);
337
337
  X = !!te, X && "get" in te && !("originalValue" in te.get) ? _ = te.get : _ = _[W];
338
338
  } else
@@ -343,9 +343,9 @@ function hr() {
343
343
  return _;
344
344
  }, rr;
345
345
  }
346
- var tr = { exports: {} }, Tr;
346
+ var tr = { exports: {} }, Rr;
347
347
  function rt() {
348
- return Tr || (Tr = 1, (function(e) {
348
+ return Rr || (Rr = 1, (function(e) {
349
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
350
  if (l)
351
351
  try {
@@ -353,14 +353,14 @@ function rt() {
353
353
  } catch {
354
354
  l = null;
355
355
  }
356
- e.exports = function(A) {
356
+ e.exports = function(v) {
357
357
  var u = o(r, n, arguments);
358
358
  if (m && l) {
359
359
  var s = m(u, "length");
360
360
  s.configurable && l(
361
361
  u,
362
362
  "length",
363
- { value: 1 + p(0, A.length - (arguments.length - 1)) }
363
+ { value: 1 + p(0, v.length - (arguments.length - 1)) }
364
364
  );
365
365
  }
366
366
  return u;
@@ -371,10 +371,10 @@ function rt() {
371
371
  l ? l(e.exports, "apply", { value: y }) : e.exports.apply = y;
372
372
  })(tr)), tr.exports;
373
373
  }
374
- var ar, Rr;
374
+ var ar, Tr;
375
375
  function tt() {
376
- if (Rr) return ar;
377
- Rr = 1;
376
+ if (Tr) return ar;
377
+ Tr = 1;
378
378
  var e = hr(), r = rt(), a = r(e("String.prototype.indexOf"));
379
379
  return ar = function(n, o) {
380
380
  var m = e(n, !!o);
@@ -389,37 +389,37 @@ 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, 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) {
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, v = 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, A = String.prototype.slice, b = String.prototype.replace, P = String.prototype.toUpperCase, x = String.prototype.toLowerCase, k = RegExp.prototype.test, N = Array.prototype.concat, M = Array.prototype.join, V = Array.prototype.slice, $ = Math.floor, L = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, F = Object.getOwnPropertySymbols, R = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, T = typeof Symbol == "function" && typeof Symbol.iterator == "object", U = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === T || !0) ? Symbol.toStringTag : null, z = Object.prototype.propertyIsEnumerable, _ = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(h) {
393
393
  return h.__proto__;
394
394
  } : null);
395
395
  function Z(h, g) {
396
- if (h === 1 / 0 || h === -1 / 0 || h !== h || h && h > -1e3 && h < 1e3 || I.call(/e/, g))
396
+ if (h === 1 / 0 || h === -1 / 0 || h !== h || h && h > -1e3 && h < 1e3 || k.call(/e/, g))
397
397
  return g;
398
398
  var D = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
399
399
  if (typeof h == "number") {
400
- var d = h < 0 ? -U(-h) : U(h);
400
+ var d = h < 0 ? -$(-h) : $(h);
401
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, "$&_"), /_$/, "");
402
+ var E = String(d), C = A.call(g, E.length + 1);
403
+ return b.call(E, D, "$&_") + "." + b.call(b.call(C, /([0-9]{3})/g, "$&_"), /_$/, "");
404
404
  }
405
405
  }
406
- return v.call(g, D, "$&_");
406
+ return b.call(g, D, "$&_");
407
407
  }
408
408
  var Q = it, ne = Q.custom, X = se(ne) ? ne : null;
409
409
  nr = function h(g, D, d, E) {
410
- var x = D || {};
411
- if (J(x, "quoteStyle") && x.quoteStyle !== "single" && x.quoteStyle !== "double")
410
+ var C = D || {};
411
+ if (J(C, "quoteStyle") && C.quoteStyle !== "single" && C.quoteStyle !== "double")
412
412
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
413
- if (J(x, "maxStringLength") && (typeof x.maxStringLength == "number" ? x.maxStringLength < 0 && x.maxStringLength !== 1 / 0 : x.maxStringLength !== null))
413
+ if (J(C, "maxStringLength") && (typeof C.maxStringLength == "number" ? C.maxStringLength < 0 && C.maxStringLength !== 1 / 0 : C.maxStringLength !== null))
414
414
  throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
415
- var G = J(x, "customInspect") ? x.customInspect : !0;
415
+ var G = J(C, "customInspect") ? C.customInspect : !0;
416
416
  if (typeof G != "boolean" && G !== "symbol")
417
417
  throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
418
- if (J(x, "indent") && x.indent !== null && x.indent !== " " && !(parseInt(x.indent, 10) === x.indent && x.indent > 0))
418
+ if (J(C, "indent") && C.indent !== null && C.indent !== " " && !(parseInt(C.indent, 10) === C.indent && C.indent > 0))
419
419
  throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
420
- if (J(x, "numericSeparator") && typeof x.numericSeparator != "boolean")
420
+ if (J(C, "numericSeparator") && typeof C.numericSeparator != "boolean")
421
421
  throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
422
- var ae = x.numericSeparator;
422
+ var ae = C.numericSeparator;
423
423
  if (typeof g > "u")
424
424
  return "undefined";
425
425
  if (g === null)
@@ -427,7 +427,7 @@ function ot() {
427
427
  if (typeof g == "boolean")
428
428
  return g ? "true" : "false";
429
429
  if (typeof g == "string")
430
- return Ce(g, x);
430
+ return Ce(g, C);
431
431
  if (typeof g == "number") {
432
432
  if (g === 0)
433
433
  return 1 / 0 / g > 0 ? "0" : "-0";
@@ -438,35 +438,35 @@ function ot() {
438
438
  var O = String(g) + "n";
439
439
  return ae ? Z(g, O) : O;
440
440
  }
441
- var B = typeof x.depth > "u" ? 5 : x.depth;
441
+ var B = typeof C.depth > "u" ? 5 : C.depth;
442
442
  if (typeof d > "u" && (d = 0), d >= B && B > 0 && typeof g == "object")
443
443
  return re(g) ? "[Array]" : "[Object]";
444
- var j = Le(x, d);
444
+ var j = Le(C, d);
445
445
  if (typeof E > "u")
446
446
  E = [];
447
- else if (Pe(E, g) >= 0)
447
+ else if (xe(E, g) >= 0)
448
448
  return "[Circular]";
449
- function H(Me, Ge, Jr) {
450
- if (Ge && (E = V.call(E), E.push(Ge)), Jr) {
451
- var Pr = {
452
- depth: x.depth
449
+ function H(Me, Be, Jr) {
450
+ if (Be && (E = V.call(E), E.push(Be)), Jr) {
451
+ var xr = {
452
+ depth: C.depth
453
453
  };
454
- return J(x, "quoteStyle") && (Pr.quoteStyle = x.quoteStyle), h(Me, Pr, d + 1, E);
454
+ return J(C, "quoteStyle") && (xr.quoteStyle = C.quoteStyle), h(Me, xr, d + 1, E);
455
455
  }
456
- return h(Me, x, d + 1, E);
456
+ return h(Me, C, d + 1, E);
457
457
  }
458
458
  if (typeof g == "function" && !ce(g)) {
459
- var Y = ke(g), we = ge(g, H);
459
+ var Y = Ie(g), we = ge(g, H);
460
460
  return "[Function" + (Y ? ": " + Y : " (anonymous)") + "]" + (we.length > 0 ? " { " + M.call(we, ", ") + " }" : "");
461
461
  }
462
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;
463
+ var Ar = T ? b.call(String(g), /^(Symbol\(.*\))_[^)]*$/, "$1") : R.call(g);
464
+ return typeof g == "object" && !T ? le(Ar) : Ar;
465
465
  }
466
466
  if (_e(g)) {
467
- for (var Fe = "<" + P.call(String(g.nodeName)), ze = g.attributes || [], Be = 0; Be < ze.length; Be++)
468
- Fe += " " + ze[Be].name + "=" + W(ie(ze[Be].value), "double", x);
469
- return Fe += ">", g.childNodes && g.childNodes.length && (Fe += "..."), Fe += "</" + P.call(String(g.nodeName)) + ">", Fe;
467
+ for (var Fe = "<" + x.call(String(g.nodeName)), ze = g.attributes || [], $e = 0; $e < ze.length; $e++)
468
+ Fe += " " + ze[$e].name + "=" + W(ie(ze[$e].value), "double", C);
469
+ return Fe += ">", g.childNodes && g.childNodes.length && (Fe += "..."), Fe += "</" + x.call(String(g.nodeName)) + ">", Fe;
470
470
  }
471
471
  if (re(g)) {
472
472
  if (g.length === 0)
@@ -484,13 +484,13 @@ function ot() {
484
484
  if (G !== "symbol" && typeof g.inspect == "function")
485
485
  return g.inspect();
486
486
  }
487
- if (Ie(g)) {
487
+ if (ke(g)) {
488
488
  var br = [];
489
- return t.call(g, function(Me, Ge) {
490
- br.push(H(Ge, g, !0) + " => " + H(Me, g));
489
+ return t.call(g, function(Me, Be) {
490
+ br.push(H(Be, g, !0) + " => " + H(Me, g));
491
491
  }), Se("Map", a.call(g), br, j);
492
492
  }
493
- if (Te(g)) {
493
+ if (Re(g)) {
494
494
  var Sr = [];
495
495
  return l.call(g, function(Me) {
496
496
  Sr.push(H(Me, g));
@@ -498,9 +498,9 @@ function ot() {
498
498
  }
499
499
  if (me(g))
500
500
  return fe("WeakMap");
501
- if (Re(g))
501
+ if (Te(g))
502
502
  return fe("WeakSet");
503
- if (xe(g))
503
+ if (Pe(g))
504
504
  return fe("WeakRef");
505
505
  if (de(g))
506
506
  return le(H(Number(g)));
@@ -511,7 +511,7 @@ function ot() {
511
511
  if (oe(g))
512
512
  return le(H(String(g)));
513
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 || []), ": ") + "] " : "");
514
+ var He = ge(g, H), wr = _ ? _(g) === Object.prototype : g instanceof Object || g.constructor === Object, Je = g instanceof Object ? "" : "null prototype", Er = !wr && U && Object(g) === g && U in g ? A.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
515
  return He.length === 0 ? qe + "{}" : j ? qe + "{" + he(He, j) + "}" : qe + "{ " + M.call(He, ", ") + " }";
516
516
  }
517
517
  return String(g);
@@ -521,38 +521,38 @@ function ot() {
521
521
  return d + h + d;
522
522
  }
523
523
  function ie(h) {
524
- return v.call(String(h), /"/g, "&quot;");
524
+ return b.call(String(h), /"/g, "&quot;");
525
525
  }
526
526
  function re(h) {
527
- return ee(h) === "[object Array]" && (!$ || !(typeof h == "object" && $ in h));
527
+ return ee(h) === "[object Array]" && (!U || !(typeof h == "object" && U in h));
528
528
  }
529
529
  function te(h) {
530
- return ee(h) === "[object Date]" && (!$ || !(typeof h == "object" && $ in h));
530
+ return ee(h) === "[object Date]" && (!U || !(typeof h == "object" && U in h));
531
531
  }
532
532
  function ce(h) {
533
- return ee(h) === "[object RegExp]" && (!$ || !(typeof h == "object" && $ in h));
533
+ return ee(h) === "[object RegExp]" && (!U || !(typeof h == "object" && U in h));
534
534
  }
535
535
  function ue(h) {
536
- return ee(h) === "[object Error]" && (!$ || !(typeof h == "object" && $ in h));
536
+ return ee(h) === "[object Error]" && (!U || !(typeof h == "object" && U in h));
537
537
  }
538
538
  function oe(h) {
539
- return ee(h) === "[object String]" && (!$ || !(typeof h == "object" && $ in h));
539
+ return ee(h) === "[object String]" && (!U || !(typeof h == "object" && U in h));
540
540
  }
541
541
  function de(h) {
542
- return ee(h) === "[object Number]" && (!$ || !(typeof h == "object" && $ in h));
542
+ return ee(h) === "[object Number]" && (!U || !(typeof h == "object" && U in h));
543
543
  }
544
544
  function pe(h) {
545
- return ee(h) === "[object Boolean]" && (!$ || !(typeof h == "object" && $ in h));
545
+ return ee(h) === "[object Boolean]" && (!U || !(typeof h == "object" && U in h));
546
546
  }
547
547
  function se(h) {
548
- if (R)
548
+ if (T)
549
549
  return h && typeof h == "object" && h instanceof Symbol;
550
550
  if (typeof h == "symbol")
551
551
  return !0;
552
- if (!h || typeof h != "object" || !T)
552
+ if (!h || typeof h != "object" || !R)
553
553
  return !1;
554
554
  try {
555
- return T.call(h), !0;
555
+ return R.call(h), !0;
556
556
  } catch {
557
557
  }
558
558
  return !1;
@@ -575,13 +575,13 @@ function ot() {
575
575
  function ee(h) {
576
576
  return S.call(h);
577
577
  }
578
- function ke(h) {
578
+ function Ie(h) {
579
579
  if (h.name)
580
580
  return h.name;
581
581
  var g = c.call(f.call(h), /^function\s*([\w$]+)/);
582
582
  return g ? g[1] : null;
583
583
  }
584
- function Pe(h, g) {
584
+ function xe(h, g) {
585
585
  if (h.indexOf)
586
586
  return h.indexOf(g);
587
587
  for (var D = 0, d = h.length; D < d; D++)
@@ -589,7 +589,7 @@ function ot() {
589
589
  return D;
590
590
  return -1;
591
591
  }
592
- function Ie(h) {
592
+ function ke(h) {
593
593
  if (!a || !h || typeof h != "object")
594
594
  return !1;
595
595
  try {
@@ -610,7 +610,7 @@ function ot() {
610
610
  try {
611
611
  y.call(h, y);
612
612
  try {
613
- A.call(h, A);
613
+ v.call(h, v);
614
614
  } catch {
615
615
  return !0;
616
616
  }
@@ -619,7 +619,7 @@ function ot() {
619
619
  }
620
620
  return !1;
621
621
  }
622
- function xe(h) {
622
+ function Pe(h) {
623
623
  if (!s || !h || typeof h != "object")
624
624
  return !1;
625
625
  try {
@@ -628,7 +628,7 @@ function ot() {
628
628
  }
629
629
  return !1;
630
630
  }
631
- function Te(h) {
631
+ function Re(h) {
632
632
  if (!m || !h || typeof h != "object")
633
633
  return !1;
634
634
  try {
@@ -643,11 +643,11 @@ function ot() {
643
643
  }
644
644
  return !1;
645
645
  }
646
- function Re(h) {
647
- if (!A || !h || typeof h != "object")
646
+ function Te(h) {
647
+ if (!v || !h || typeof h != "object")
648
648
  return !1;
649
649
  try {
650
- A.call(h, A);
650
+ v.call(h, v);
651
651
  try {
652
652
  y.call(h, y);
653
653
  } catch {
@@ -664,9 +664,9 @@ function ot() {
664
664
  function Ce(h, g) {
665
665
  if (h.length > g.maxStringLength) {
666
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;
667
+ return Ce(A.call(h, 0, g.maxStringLength), g) + d;
668
668
  }
669
- var E = v.call(v.call(h, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ne);
669
+ var E = b.call(b.call(h, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ne);
670
670
  return W(E, "single", g);
671
671
  }
672
672
  function Ne(h) {
@@ -677,7 +677,7 @@ function ot() {
677
677
  12: "f",
678
678
  13: "r"
679
679
  }[g];
680
- return D ? "\\" + D : "\\x" + (g < 16 ? "0" : "") + C.call(g.toString(16));
680
+ return D ? "\\" + D : "\\x" + (g < 16 ? "0" : "") + P.call(g.toString(16));
681
681
  }
682
682
  function le(h) {
683
683
  return "Object(" + h + ")";
@@ -691,7 +691,7 @@ function ot() {
691
691
  }
692
692
  function Oe(h) {
693
693
  for (var g = 0; g < h.length; g++)
694
- if (Pe(h[g], `
694
+ if (xe(h[g], `
695
695
  `) >= 0)
696
696
  return !1;
697
697
  return !0;
@@ -724,17 +724,17 @@ function ot() {
724
724
  for (var E = 0; E < h.length; E++)
725
725
  d[E] = J(h, E) ? g(h[E], h) : "";
726
726
  }
727
- var x = typeof F == "function" ? F(h) : [], G;
728
- if (R) {
727
+ var C = typeof F == "function" ? F(h) : [], G;
728
+ if (T) {
729
729
  G = {};
730
- for (var ae = 0; ae < x.length; ae++)
731
- G["$" + x[ae]] = x[ae];
730
+ for (var ae = 0; ae < C.length; ae++)
731
+ G["$" + C[ae]] = C[ae];
732
732
  }
733
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))));
734
+ J(h, K) && (D && String(Number(K)) === K && K < h.length || T && G["$" + K] instanceof Symbol || (k.call(/[^\w$]/, K) ? d.push(g(K, h) + ": " + g(h[K], h)) : d.push(K + ": " + g(h[K], h))));
735
735
  if (typeof F == "function")
736
- for (var O = 0; O < x.length; O++)
737
- z.call(h, x[O]) && d.push("[" + g(x[O]) + "]: " + g(h[x[O]], h));
736
+ for (var O = 0; O < C.length; O++)
737
+ z.call(h, C[O]) && d.push("[" + g(C[O]) + "]: " + g(h[C[O]], h));
738
738
  return d;
739
739
  }
740
740
  return nr;
@@ -743,56 +743,56 @@ 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), 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;
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), v = r("Map.prototype.has", !0), u = function(f, c) {
747
+ for (var A = f, b; (b = A.next) !== null; A = b)
748
+ if (b.key === c)
749
+ return A.next = b.next, b.next = f.next, f.next = b, b;
750
750
  }, s = function(f, c) {
751
+ var A = u(f, c);
752
+ return A && A.value;
753
+ }, i = function(f, c, A) {
751
754
  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 = {
755
+ b ? b.value = A : f.next = {
756
756
  // eslint-disable-line no-param-reassign
757
757
  key: c,
758
758
  next: f.next,
759
- value: b
759
+ value: A
760
760
  };
761
761
  }, S = function(f, c) {
762
762
  return !!u(f, c);
763
763
  };
764
764
  return ir = function() {
765
- var c, b, v, C = {
766
- assert: function(P) {
767
- if (!C.has(P))
768
- throw new t("Side channel does not contain " + a(P));
765
+ var c, A, b, P = {
766
+ assert: function(x) {
767
+ if (!P.has(x))
768
+ throw new t("Side channel does not contain " + a(x));
769
769
  },
770
- get: function(P) {
771
- if (n && P && (typeof P == "object" || typeof P == "function")) {
770
+ get: function(x) {
771
+ if (n && x && (typeof x == "object" || typeof x == "function")) {
772
772
  if (c)
773
- return m(c, P);
773
+ return m(c, x);
774
774
  } else if (o) {
775
- if (b)
776
- return y(b, P);
777
- } else if (v)
778
- return s(v, P);
775
+ if (A)
776
+ return y(A, x);
777
+ } else if (b)
778
+ return s(b, x);
779
779
  },
780
- has: function(P) {
781
- if (n && P && (typeof P == "object" || typeof P == "function")) {
780
+ has: function(x) {
781
+ if (n && x && (typeof x == "object" || typeof x == "function")) {
782
782
  if (c)
783
- return p(c, P);
783
+ return p(c, x);
784
784
  } else if (o) {
785
- if (b)
786
- return A(b, P);
787
- } else if (v)
788
- return S(v, P);
785
+ if (A)
786
+ return v(A, x);
787
+ } else if (b)
788
+ return S(b, x);
789
789
  return !1;
790
790
  },
791
- set: function(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));
791
+ set: function(x, k) {
792
+ n && x && (typeof x == "object" || typeof x == "function") ? (c || (c = new n()), l(c, x, k)) : o ? (A || (A = new o()), w(A, x, k)) : (b || (b = { key: {}, next: null }), i(b, x, k));
793
793
  }
794
794
  };
795
- return C;
795
+ return P;
796
796
  }, ir;
797
797
  }
798
798
  var or, Lr;
@@ -827,92 +827,92 @@ function Wr() {
827
827
  return S;
828
828
  })(), n = function(f) {
829
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;
830
+ var c = f.pop(), A = c.obj[c.prop];
831
+ if (a(A)) {
832
+ for (var b = [], P = 0; P < A.length; ++P)
833
+ typeof A[P] < "u" && b.push(A[P]);
834
+ c.obj[c.prop] = b;
835
835
  }
836
836
  }
837
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) {
838
+ for (var A = c && c.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, b = 0; b < f.length; ++b)
839
+ typeof f[b] < "u" && (A[b] = f[b]);
840
+ return A;
841
+ }, m = function S(f, c, A) {
842
842
  if (!c)
843
843
  return f;
844
844
  if (typeof c != "object") {
845
845
  if (a(f))
846
846
  f.push(c);
847
847
  else if (f && typeof f == "object")
848
- (b && (b.plainObjects || b.allowPrototypes) || !r.call(Object.prototype, c)) && (f[c] = !0);
848
+ (A && (A.plainObjects || A.allowPrototypes) || !r.call(Object.prototype, c)) && (f[c] = !0);
849
849
  else
850
850
  return [f, c];
851
851
  return f;
852
852
  }
853
853
  if (!f || typeof f != "object")
854
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);
855
+ var b = f;
856
+ return a(f) && !a(c) && (b = o(f, A)), a(f) && a(c) ? (c.forEach(function(P, x) {
857
+ if (r.call(f, x)) {
858
+ var k = f[x];
859
+ k && typeof k == "object" && P && typeof P == "object" ? f[x] = S(k, P, A) : f.push(P);
860
860
  } else
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);
861
+ f[x] = P;
862
+ }), f) : Object.keys(c).reduce(function(P, x) {
863
+ var k = c[x];
864
+ return r.call(P, x) ? P[x] = S(P[x], k, A) : P[x] = k, P;
865
+ }, b);
866
866
  }, l = function(f, c) {
867
- return Object.keys(c).reduce(function(b, v) {
868
- return b[v] = c[v], b;
867
+ return Object.keys(c).reduce(function(A, b) {
868
+ return A[b] = c[b], A;
869
869
  }, f);
870
870
  }, p = function(S, f, c) {
871
- var b = S.replace(/\+/g, " ");
871
+ var A = S.replace(/\+/g, " ");
872
872
  if (c === "iso-8859-1")
873
- return b.replace(/%[0-9a-f]{2}/gi, unescape);
873
+ return A.replace(/%[0-9a-f]{2}/gi, unescape);
874
874
  try {
875
- return decodeURIComponent(b);
875
+ return decodeURIComponent(A);
876
876
  } catch {
877
- return b;
877
+ return A;
878
878
  }
879
- }, y = function(f, c, b, v, C) {
879
+ }, y = function(f, c, A, b, P) {
880
880
  if (f.length === 0)
881
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
- return escape(P).replace(/%u[0-9a-f]{4}/gi, function(V) {
882
+ var x = f;
883
+ if (typeof f == "symbol" ? x = Symbol.prototype.toString.call(f) : typeof f != "string" && (x = String(f)), A === "iso-8859-1")
884
+ return escape(x).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 = "", 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);
887
+ for (var k = "", N = 0; N < x.length; ++N) {
888
+ var M = x.charCodeAt(N);
889
+ if (M === 45 || M === 46 || M === 95 || M === 126 || M >= 48 && M <= 57 || M >= 65 && M <= 90 || M >= 97 && M <= 122 || P === e.RFC1738 && (M === 40 || M === 41)) {
890
+ k += x.charAt(N);
891
891
  continue;
892
892
  }
893
893
  if (M < 128) {
894
- I = I + t[M];
894
+ k = k + t[M];
895
895
  continue;
896
896
  }
897
897
  if (M < 2048) {
898
- I = I + (t[192 | M >> 6] + t[128 | M & 63]);
898
+ k = k + (t[192 | M >> 6] + t[128 | M & 63]);
899
899
  continue;
900
900
  }
901
901
  if (M < 55296 || M >= 57344) {
902
- I = I + (t[224 | M >> 12] + t[128 | M >> 6 & 63] + t[128 | M & 63]);
902
+ k = k + (t[224 | M >> 12] + t[128 | M >> 6 & 63] + t[128 | M & 63]);
903
903
  continue;
904
904
  }
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];
905
+ N += 1, M = 65536 + ((M & 1023) << 10 | x.charCodeAt(N) & 1023), k += t[240 | M >> 18] + t[128 | M >> 12 & 63] + t[128 | M >> 6 & 63] + t[128 | M & 63];
906
906
  }
907
- return I;
907
+ return k;
908
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));
909
+ for (var c = [{ obj: { o: f }, prop: "o" }], A = [], b = 0; b < c.length; ++b)
910
+ for (var P = c[b], x = P.obj[P.prop], k = Object.keys(x), N = 0; N < k.length; ++N) {
911
+ var M = k[N], V = x[M];
912
+ typeof V == "object" && V !== null && A.indexOf(V) === -1 && (c.push({ obj: x, prop: M }), A.push(V));
913
913
  }
914
914
  return n(c), f;
915
- }, A = function(f) {
915
+ }, v = function(f) {
916
916
  return Object.prototype.toString.call(f) === "[object RegExp]";
917
917
  }, u = function(f) {
918
918
  return !f || typeof f != "object" ? !1 : !!(f.constructor && f.constructor.isBuffer && f.constructor.isBuffer(f));
@@ -920,9 +920,9 @@ function Wr() {
920
920
  return [].concat(f, c);
921
921
  }, i = function(f, c) {
922
922
  if (a(f)) {
923
- for (var b = [], v = 0; v < f.length; v += 1)
924
- b.push(c(f[v]));
925
- return b;
923
+ for (var A = [], b = 0; b < f.length; b += 1)
924
+ A.push(c(f[b]));
925
+ return A;
926
926
  }
927
927
  return c(f);
928
928
  };
@@ -934,29 +934,29 @@ function Wr() {
934
934
  decode: p,
935
935
  encode: y,
936
936
  isBuffer: u,
937
- isRegExp: A,
937
+ isRegExp: v,
938
938
  maybeMap: i,
939
939
  merge: m
940
940
  }, sr;
941
941
  }
942
- var ur, $r;
942
+ var ur, Ur;
943
943
  function ut() {
944
- if ($r) return ur;
945
- $r = 1;
944
+ if (Ur) return ur;
945
+ Ur = 1;
946
946
  var e = st(), r = Wr(), a = gr(), t = Object.prototype.hasOwnProperty, n = {
947
947
  brackets: function(c) {
948
948
  return c + "[]";
949
949
  },
950
950
  comma: "comma",
951
- indices: function(c, b) {
952
- return c + "[" + b + "]";
951
+ indices: function(c, A) {
952
+ return c + "[" + A + "]";
953
953
  },
954
954
  repeat: function(c) {
955
955
  return c;
956
956
  }
957
957
  }, o = Array.isArray, m = String.prototype.split, l = Array.prototype.push, p = function(f, c) {
958
958
  l.apply(f, o(c) ? c : [c]);
959
- }, y = Date.prototype.toISOString, w = a.default, A = {
959
+ }, y = Date.prototype.toISOString, w = a.default, v = {
960
960
  addQueryPrefix: !1,
961
961
  allowDots: !1,
962
962
  charset: "utf-8",
@@ -976,7 +976,7 @@ function ut() {
976
976
  strictNullHandling: !1
977
977
  }, u = function(c) {
978
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) {
979
+ }, s = {}, i = function f(c, A, b, P, x, k, N, M, V, $, L, F, R, T, U, z) {
980
980
  for (var _ = c, Z = z, Q = 0, ne = !1; (Z = Z.get(s)) !== void 0 && !ne; ) {
981
981
  var X = Z.get(c);
982
982
  if (Q += 1, typeof X < "u") {
@@ -986,30 +986,30 @@ function ut() {
986
986
  }
987
987
  typeof Z.get(s) > "u" && (Q = 0);
988
988
  }
989
- if (typeof M == "function" ? _ = M(b, _) : _ instanceof Date ? _ = L(_) : v === "comma" && o(_) && (_ = r.maybeMap(_, function(ee) {
989
+ if (typeof M == "function" ? _ = M(A, _) : _ instanceof Date ? _ = L(_) : b === "comma" && o(_) && (_ = r.maybeMap(_, function(ee) {
990
990
  return ee instanceof Date ? L(ee) : ee;
991
991
  })), _ === null) {
992
- if (P)
993
- return N && !R ? N(b, A.encoder, $, "key", F) : b;
992
+ if (x)
993
+ return N && !T ? N(A, v.encoder, U, "key", F) : A;
994
994
  _ = "";
995
995
  }
996
996
  if (u(_) || r.isBuffer(_)) {
997
997
  if (N) {
998
- var W = R ? b : N(b, A.encoder, $, "key", F);
999
- if (v === "comma" && R) {
998
+ var W = T ? A : N(A, v.encoder, U, "key", F);
999
+ if (b === "comma" && T) {
1000
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];
1001
+ re += (te === 0 ? "" : ",") + R(N(ie[te], v.encoder, U, "value", F));
1002
+ return [R(W) + (P && o(_) && ie.length === 1 ? "[]" : "") + "=" + re];
1003
1003
  }
1004
- return [T(W) + "=" + T(N(_, A.encoder, $, "value", F))];
1004
+ return [R(W) + "=" + R(N(_, v.encoder, U, "value", F))];
1005
1005
  }
1006
- return [T(b) + "=" + T(String(_))];
1006
+ return [R(A) + "=" + R(String(_))];
1007
1007
  }
1008
1008
  var ce = [];
1009
1009
  if (typeof _ > "u")
1010
1010
  return ce;
1011
1011
  var ue;
1012
- if (v === "comma" && o(_))
1012
+ if (b === "comma" && o(_))
1013
1013
  ue = [{ value: _.length > 0 ? _.join(",") || null : void 0 }];
1014
1014
  else if (o(M))
1015
1015
  ue = M;
@@ -1017,28 +1017,28 @@ function ut() {
1017
1017
  var oe = Object.keys(_);
1018
1018
  ue = V ? oe.sort(V) : oe;
1019
1019
  }
1020
- for (var de = C && o(_) && _.length === 1 ? b + "[]" : b, pe = 0; pe < ue.length; ++pe) {
1020
+ for (var de = P && o(_) && _.length === 1 ? A + "[]" : A, pe = 0; pe < ue.length; ++pe) {
1021
1021
  var se = ue[pe], ye = typeof se == "object" && typeof se.value < "u" ? se.value : _[se];
1022
- if (!(I && ye === null)) {
1023
- var be = o(_) ? typeof v == "function" ? v(de, se) : de : de + (U ? "." + se : "[" + se + "]");
1022
+ if (!(k && ye === null)) {
1023
+ var be = o(_) ? typeof b == "function" ? b(de, se) : de : de + ($ ? "." + se : "[" + se + "]");
1024
1024
  z.set(c, Q);
1025
1025
  var J = e();
1026
1026
  J.set(s, z), p(ce, f(
1027
1027
  ye,
1028
1028
  be,
1029
- v,
1030
- C,
1029
+ b,
1031
1030
  P,
1032
- I,
1031
+ x,
1032
+ k,
1033
1033
  N,
1034
1034
  M,
1035
1035
  V,
1036
- U,
1036
+ $,
1037
1037
  L,
1038
1038
  F,
1039
- T,
1040
1039
  R,
1041
- $,
1040
+ T,
1041
+ U,
1042
1042
  J
1043
1043
  ));
1044
1044
  }
@@ -1046,42 +1046,42 @@ function ut() {
1046
1046
  return ce;
1047
1047
  }, S = function(c) {
1048
1048
  if (!c)
1049
- return A;
1049
+ return v;
1050
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 b = c.charset || A.charset;
1052
+ var A = c.charset || v.charset;
1053
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 v = a.default;
1055
+ var b = a.default;
1056
1056
  if (typeof c.format < "u") {
1057
1057
  if (!t.call(a.formatters, c.format))
1058
1058
  throw new TypeError("Unknown format option provided.");
1059
- v = c.format;
1059
+ b = c.format;
1060
1060
  }
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
- filter: P,
1072
- format: v,
1073
- formatter: C,
1074
- serializeDate: typeof c.serializeDate == "function" ? c.serializeDate : A.serializeDate,
1075
- skipNulls: typeof c.skipNulls == "boolean" ? c.skipNulls : A.skipNulls,
1061
+ var P = a.formatters[b], x = v.filter;
1062
+ return (typeof c.filter == "function" || o(c.filter)) && (x = c.filter), {
1063
+ addQueryPrefix: typeof c.addQueryPrefix == "boolean" ? c.addQueryPrefix : v.addQueryPrefix,
1064
+ allowDots: typeof c.allowDots > "u" ? v.allowDots : !!c.allowDots,
1065
+ charset: A,
1066
+ charsetSentinel: typeof c.charsetSentinel == "boolean" ? c.charsetSentinel : v.charsetSentinel,
1067
+ delimiter: typeof c.delimiter > "u" ? v.delimiter : c.delimiter,
1068
+ encode: typeof c.encode == "boolean" ? c.encode : v.encode,
1069
+ encoder: typeof c.encoder == "function" ? c.encoder : v.encoder,
1070
+ encodeValuesOnly: typeof c.encodeValuesOnly == "boolean" ? c.encodeValuesOnly : v.encodeValuesOnly,
1071
+ filter: x,
1072
+ format: b,
1073
+ formatter: P,
1074
+ serializeDate: typeof c.serializeDate == "function" ? c.serializeDate : v.serializeDate,
1075
+ skipNulls: typeof c.skipNulls == "boolean" ? c.skipNulls : v.skipNulls,
1076
1076
  sort: typeof c.sort == "function" ? c.sort : null,
1077
- strictNullHandling: typeof c.strictNullHandling == "boolean" ? c.strictNullHandling : A.strictNullHandling
1077
+ strictNullHandling: typeof c.strictNullHandling == "boolean" ? c.strictNullHandling : v.strictNullHandling
1078
1078
  };
1079
1079
  };
1080
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
- var I = [];
1084
- if (typeof b != "object" || b === null)
1081
+ var A = f, b = S(c), P, x;
1082
+ typeof b.filter == "function" ? (x = b.filter, A = x("", A)) : o(b.filter) && (x = b.filter, P = x);
1083
+ var k = [];
1084
+ if (typeof A != "object" || A === null)
1085
1085
  return "";
1086
1086
  var N;
1087
1087
  c && c.arrayFormat in n ? N = c.arrayFormat : c && "indices" in c ? N = c.indices ? "indices" : "repeat" : N = "indices";
@@ -1089,36 +1089,36 @@ function ut() {
1089
1089
  if (c && "commaRoundTrip" in c && typeof c.commaRoundTrip != "boolean")
1090
1090
  throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
1091
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],
1092
+ P || (P = Object.keys(A)), b.sort && P.sort(b.sort);
1093
+ for (var $ = e(), L = 0; L < P.length; ++L) {
1094
+ var F = P[L];
1095
+ b.skipNulls && A[F] === null || p(k, i(
1096
+ A[F],
1097
1097
  F,
1098
1098
  M,
1099
1099
  V,
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
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
+ $
1112
1112
  ));
1113
1113
  }
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 : "";
1114
+ var R = k.join(b.delimiter), T = b.addQueryPrefix === !0 ? "?" : "";
1115
+ return b.charsetSentinel && (b.charset === "iso-8859-1" ? T += "utf8=%26%2310003%3B&" : T += "utf8=%E2%9C%93&"), R.length > 0 ? T + R : "";
1116
1116
  }, ur;
1117
1117
  }
1118
- var cr, Ur;
1118
+ var cr, $r;
1119
1119
  function ct() {
1120
- if (Ur) return cr;
1121
- Ur = 1;
1120
+ if ($r) return cr;
1121
+ $r = 1;
1122
1122
  var e = Wr(), r = Object.prototype.hasOwnProperty, a = Array.isArray, t = {
1123
1123
  allowDots: !1,
1124
1124
  allowPrototypes: !1,
@@ -1143,50 +1143,50 @@ function ct() {
1143
1143
  }, o = function(u, s) {
1144
1144
  return u && typeof u == "string" && s.comma && u.indexOf(",") > -1 ? u.split(",") : u;
1145
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;
1146
+ var S = {}, f = i.ignoreQueryPrefix ? s.replace(/^\?/, "") : s, c = i.parameterLimit === 1 / 0 ? void 0 : i.parameterLimit, A = f.split(i.delimiter, c), b = -1, P, x = i.charset;
1147
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),
1148
+ for (P = 0; P < A.length; ++P)
1149
+ A[P].indexOf("utf8=") === 0 && (A[P] === l ? x = "utf-8" : A[P] === m && (x = "iso-8859-1"), b = P, P = A.length);
1150
+ for (P = 0; P < A.length; ++P)
1151
+ if (P !== b) {
1152
+ var k = A[P], N = k.indexOf("]="), M = N === -1 ? k.indexOf("=") : N + 1, V, $;
1153
+ M === -1 ? (V = i.decoder(k, t.decoder, x, "key"), $ = i.strictNullHandling ? null : "") : (V = i.decoder(k.slice(0, M), t.decoder, x, "key"), $ = e.maybeMap(
1154
+ o(k.slice(M + 1), i),
1155
1155
  function(L) {
1156
- return i.decoder(L, t.decoder, P, "value");
1156
+ return i.decoder(L, t.decoder, x, "value");
1157
1157
  }
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;
1158
+ )), $ && i.interpretNumericEntities && x === "iso-8859-1" && ($ = n($)), k.indexOf("[]=") > -1 && ($ = a($) ? [$] : $), r.call(S, V) ? S[V] = e.combine(S[V], $) : S[V] = $;
1159
1159
  }
1160
1160
  return S;
1161
1161
  }, y = function(u, s, i, S) {
1162
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);
1163
+ var A, b = u[c];
1164
+ if (b === "[]" && i.parseArrays)
1165
+ A = [].concat(f);
1166
1166
  else {
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);
1167
+ A = i.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1168
+ var P = b.charAt(0) === "[" && b.charAt(b.length - 1) === "]" ? b.slice(1, -1) : b, x = parseInt(P, 10);
1169
+ !i.parseArrays && P === "" ? A = { 0: f } : !isNaN(x) && b !== P && String(x) === P && x >= 0 && i.parseArrays && x <= i.arrayLimit ? (A = [], A[x] = f) : P !== "__proto__" && (A[P] = f);
1170
1170
  }
1171
- f = b;
1171
+ f = A;
1172
1172
  }
1173
1173
  return f;
1174
1174
  }, w = function(s, i, S, f) {
1175
1175
  if (s) {
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
- if (P) {
1178
- if (!S.plainObjects && r.call(Object.prototype, P) && !S.allowPrototypes)
1176
+ var c = S.allowDots ? s.replace(/\.([^.[]+)/g, "[$1]") : s, A = /(\[[^[\]]*])/, b = /(\[[^[\]]*])/g, P = S.depth > 0 && A.exec(c), x = P ? c.slice(0, P.index) : c, k = [];
1177
+ if (x) {
1178
+ if (!S.plainObjects && r.call(Object.prototype, x) && !S.allowPrototypes)
1179
1179
  return;
1180
- I.push(P);
1180
+ k.push(x);
1181
1181
  }
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)
1182
+ for (var N = 0; S.depth > 0 && (P = b.exec(c)) !== null && N < S.depth; ) {
1183
+ if (N += 1, !S.plainObjects && r.call(Object.prototype, P[1].slice(1, -1)) && !S.allowPrototypes)
1184
1184
  return;
1185
- I.push(C[1]);
1185
+ k.push(P[1]);
1186
1186
  }
1187
- return C && I.push("[" + c.slice(C.index) + "]"), y(I, i, S, f);
1187
+ return P && k.push("[" + c.slice(P.index) + "]"), y(k, i, S, f);
1188
1188
  }
1189
- }, A = function(s) {
1189
+ }, v = function(s) {
1190
1190
  if (!s)
1191
1191
  return t;
1192
1192
  if (s.decoder !== null && s.decoder !== void 0 && typeof s.decoder != "function")
@@ -1215,12 +1215,12 @@ function ct() {
1215
1215
  };
1216
1216
  };
1217
1217
  return cr = function(u, s) {
1218
- var i = A(s);
1218
+ var i = v(s);
1219
1219
  if (u === "" || u === null || typeof u > "u")
1220
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);
1221
+ for (var S = typeof u == "string" ? p(u, i) : u, f = i.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, c = Object.keys(S), A = 0; A < c.length; ++A) {
1222
+ var b = c[A], P = w(b, S[b], i, typeof u == "string");
1223
+ f = e.merge(f, P, i);
1224
1224
  }
1225
1225
  return i.allowSparse === !0 ? f : e.compact(f);
1226
1226
  }, cr;
@@ -1237,7 +1237,7 @@ function lt() {
1237
1237
  }, lr;
1238
1238
  }
1239
1239
  var ft = lt();
1240
- const dt = /* @__PURE__ */ mr(ft), vr = "0.2.3", pt = Ee.CancelToken;
1240
+ const dt = /* @__PURE__ */ mr(ft), vr = "0.4.0", pt = Ee.CancelToken;
1241
1241
  var mt = function(e) {
1242
1242
  var r;
1243
1243
  typeof window < "u" && (r = e.cache.get("api"));
@@ -1257,7 +1257,7 @@ var mt = function(e) {
1257
1257
  }
1258
1258
  const n = {}, m = l(function(p) {
1259
1259
  var y = t(p);
1260
- return n[y] || (n[y] = new Promise(function(w, A) {
1260
+ return n[y] || (n[y] = new Promise(function(w, v) {
1261
1261
  var u, s;
1262
1262
  switch (String(p.method).toLowerCase()) {
1263
1263
  case "post":
@@ -1272,18 +1272,18 @@ var mt = function(e) {
1272
1272
  delete n[y], w(i);
1273
1273
  },
1274
1274
  function(i) {
1275
- delete n[y], A(i);
1275
+ delete n[y], v(i);
1276
1276
  }
1277
1277
  ));
1278
1278
  })), n[y];
1279
1279
  });
1280
1280
  m.generateEndpointURL = function(p, y, w) {
1281
1281
  w = w || {}, y = y || {};
1282
- var A;
1282
+ var v;
1283
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);
1284
+ w.withoutToken || (delete y.access_token, v = e.auth.getCurrentToken()), p[0] == "/" && p.slice(1);
1285
1285
  var s = e.utils.mapParameters(y);
1286
- A ? s = s ? `?access_token=${A}&${s}` : `?access_token=${A}` : s = s ? `?${s}` : "";
1286
+ v ? s = s ? `?access_token=${v}&${s}` : `?access_token=${v}` : s = s ? `?${s}` : "";
1287
1287
  var i = `${u}${p}${s}`;
1288
1288
  return i;
1289
1289
  }, m.wasCancelled = function(p) {
@@ -1291,24 +1291,24 @@ var mt = function(e) {
1291
1291
  };
1292
1292
  function l(p) {
1293
1293
  var y = Ee.create({
1294
- paramsSerializer: (A) => dt.stringify(A, { arrayFormat: "repeat" }),
1294
+ paramsSerializer: (v) => dt.stringify(v, { arrayFormat: "repeat" }),
1295
1295
  adapter: p
1296
1296
  });
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) {
1297
+ y.defaults.baseURL = e.apiURL, y.defaults.headers.common.Accept = "application/json", y.interceptors.request.use(function(v) {
1298
+ if (t(v), v.withoutToken)
1299
+ return v;
1300
+ if (v.headers["qik-request-date"] = (/* @__PURE__ */ new Date()).getTime(), Intl) {
1301
1301
  const s = Intl.DateTimeFormat().resolvedOptions().timeZone;
1302
- s && (A.headers["qik-request-timezone"] = s);
1302
+ s && (v.headers["qik-request-timezone"] = s);
1303
1303
  }
1304
- A.headers["qik-api-version"] = vr, e?.socket?.windowID && (A.headers["qik-socket-window"] = e.socket.windowID);
1304
+ v.headers["qik-api-version"] = vr, e?.socket?.windowID && (v.headers["qik-socket-window"] = e.socket.windowID);
1305
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;
1306
+ return u && (v.headers.Authorization = `Bearer ${u}`, v.params && v.params.access_token && delete v.params.access_token), v;
1307
1307
  });
1308
1308
  let w = 0;
1309
1309
  return y.interceptors.response.use(
1310
- function(A) {
1311
- var u = A.config, s = A.status;
1310
+ function(v) {
1311
+ var u = v.config, s = v.status;
1312
1312
  switch (s) {
1313
1313
  case 204:
1314
1314
  if (w < 5)
@@ -1320,12 +1320,12 @@ var mt = function(e) {
1320
1320
  console.log("Failed after 5 retries"), w = 0;
1321
1321
  break;
1322
1322
  }
1323
- return A;
1323
+ return v;
1324
1324
  },
1325
- function(A) {
1326
- if (Ee.isCancel(A))
1327
- return Promise.reject(A);
1328
- var u = A?.response?.status || A.status;
1325
+ function(v) {
1326
+ if (Ee.isCancel(v))
1327
+ return Promise.reject(v);
1328
+ var u = v?.response?.status || v.status;
1329
1329
  switch (u) {
1330
1330
  case 401:
1331
1331
  break;
@@ -1334,13 +1334,13 @@ var mt = function(e) {
1334
1334
  if (w < 5)
1335
1335
  return w++, new Promise(function(s, i) {
1336
1336
  setTimeout(function() {
1337
- return y.request(A.config).then(s, i);
1337
+ return y.request(v.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(A);
1343
+ return Promise.reject(v);
1344
1344
  }
1345
1345
  ), y;
1346
1346
  }
@@ -1349,7 +1349,7 @@ var mt = function(e) {
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*$/, 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")();
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, v = /^\[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
1353
  function S(d, E) {
1354
1354
  return d?.[E];
1355
1355
  }
@@ -1362,45 +1362,45 @@ function yt() {
1362
1362
  }
1363
1363
  return E;
1364
1364
  }
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 || "");
1365
+ var c = Array.prototype, A = Function.prototype, b = Object.prototype, P = i["__core-js_shared__"], x = (function() {
1366
+ var d = /[^.]+$/.exec(P && P.keys && P.keys.IE_PROTO || "");
1367
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;
1368
+ })(), k = A.toString, N = b.hasOwnProperty, M = b.toString, V = RegExp(
1369
+ "^" + k.call(N).replace(y, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
1370
+ ), $ = i.Symbol, L = c.splice, F = Pe(i, "Map"), R = Pe(Object, "create"), T = $ ? $.prototype : void 0, U = T ? T.toString : void 0;
1371
1371
  function z(d) {
1372
- var E = -1, x = d ? d.length : 0;
1373
- for (this.clear(); ++E < x; ) {
1372
+ var E = -1, C = d ? d.length : 0;
1373
+ for (this.clear(); ++E < C; ) {
1374
1374
  var G = d[E];
1375
1375
  this.set(G[0], G[1]);
1376
1376
  }
1377
1377
  }
1378
1378
  function _() {
1379
- this.__data__ = T ? T(null) : {};
1379
+ this.__data__ = R ? R(null) : {};
1380
1380
  }
1381
1381
  function Z(d) {
1382
1382
  return this.has(d) && delete this.__data__[d];
1383
1383
  }
1384
1384
  function Q(d) {
1385
1385
  var E = this.__data__;
1386
- if (T) {
1387
- var x = E[d];
1388
- return x === r ? void 0 : x;
1386
+ if (R) {
1387
+ var C = E[d];
1388
+ return C === r ? void 0 : C;
1389
1389
  }
1390
1390
  return N.call(E, d) ? E[d] : void 0;
1391
1391
  }
1392
1392
  function ne(d) {
1393
1393
  var E = this.__data__;
1394
- return T ? E[d] !== void 0 : N.call(E, d);
1394
+ return R ? E[d] !== void 0 : N.call(E, d);
1395
1395
  }
1396
1396
  function X(d, E) {
1397
- var x = this.__data__;
1398
- return x[d] = T && E === void 0 ? r : E, this;
1397
+ var C = this.__data__;
1398
+ return C[d] = R && E === void 0 ? r : E, this;
1399
1399
  }
1400
1400
  z.prototype.clear = _, z.prototype.delete = Z, z.prototype.get = Q, z.prototype.has = ne, z.prototype.set = X;
1401
1401
  function W(d) {
1402
- var E = -1, x = d ? d.length : 0;
1403
- for (this.clear(); ++E < x; ) {
1402
+ var E = -1, C = d ? d.length : 0;
1403
+ for (this.clear(); ++E < C; ) {
1404
1404
  var G = d[E];
1405
1405
  this.set(G[0], G[1]);
1406
1406
  }
@@ -1409,27 +1409,27 @@ function yt() {
1409
1409
  this.__data__ = [];
1410
1410
  }
1411
1411
  function re(d) {
1412
- var E = this.__data__, x = J(E, d);
1413
- if (x < 0)
1412
+ var E = this.__data__, C = J(E, d);
1413
+ if (C < 0)
1414
1414
  return !1;
1415
1415
  var G = E.length - 1;
1416
- return x == G ? E.pop() : L.call(E, x, 1), !0;
1416
+ return C == G ? E.pop() : L.call(E, C, 1), !0;
1417
1417
  }
1418
1418
  function te(d) {
1419
- var E = this.__data__, x = J(E, d);
1420
- return x < 0 ? void 0 : E[x][1];
1419
+ var E = this.__data__, C = J(E, d);
1420
+ return C < 0 ? void 0 : E[C][1];
1421
1421
  }
1422
1422
  function ce(d) {
1423
1423
  return J(this.__data__, d) > -1;
1424
1424
  }
1425
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;
1426
+ var C = this.__data__, G = J(C, d);
1427
+ return G < 0 ? C.push([d, E]) : C[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
1430
  function oe(d) {
1431
- var E = -1, x = d ? d.length : 0;
1432
- for (this.clear(); ++E < x; ) {
1431
+ var E = -1, C = d ? d.length : 0;
1432
+ for (this.clear(); ++E < C; ) {
1433
1433
  var G = d[E];
1434
1434
  this.set(G[0], G[1]);
1435
1435
  }
@@ -1455,60 +1455,60 @@ function yt() {
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
1457
  function J(d, E) {
1458
- for (var x = d.length; x--; )
1459
- if (Se(d[x][0], E))
1460
- return x;
1458
+ for (var C = d.length; C--; )
1459
+ if (Se(d[C][0], E))
1460
+ return C;
1461
1461
  return -1;
1462
1462
  }
1463
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;
1464
+ E = Re(E, d) ? [E] : ke(E);
1465
+ for (var C = 0, G = E.length; d != null && C < G; )
1466
+ d = d[Ne(E[C++])];
1467
+ return C && C == G ? d : void 0;
1468
1468
  }
1469
- function ke(d) {
1469
+ function Ie(d) {
1470
1470
  if (!he(d) || _e(d))
1471
1471
  return !1;
1472
- var E = Le(d) || f(d) ? V : A;
1472
+ var E = Le(d) || f(d) ? V : v;
1473
1473
  return E.test(le(d));
1474
1474
  }
1475
- function Pe(d) {
1475
+ function xe(d) {
1476
1476
  if (typeof d == "string")
1477
1477
  return d;
1478
1478
  if (h(d))
1479
- return $ ? $.call(d) : "";
1479
+ return U ? U.call(d) : "";
1480
1480
  var E = d + "";
1481
1481
  return E == "0" && 1 / d == -1 / 0 ? "-0" : E;
1482
1482
  }
1483
- function Ie(d) {
1483
+ function ke(d) {
1484
1484
  return Oe(d) ? d : Ce(d);
1485
1485
  }
1486
1486
  function me(d, E) {
1487
- var x = d.__data__;
1488
- return Re(E) ? x[typeof E == "string" ? "string" : "hash"] : x.map;
1487
+ var C = d.__data__;
1488
+ return Te(E) ? C[typeof E == "string" ? "string" : "hash"] : C.map;
1489
1489
  }
1490
- function xe(d, E) {
1491
- var x = S(d, E);
1492
- return ke(x) ? x : void 0;
1490
+ function Pe(d, E) {
1491
+ var C = S(d, E);
1492
+ return Ie(C) ? C : void 0;
1493
1493
  }
1494
- function Te(d, E) {
1494
+ function Re(d, E) {
1495
1495
  if (Oe(d))
1496
1496
  return !1;
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);
1497
+ var C = typeof d;
1498
+ return C == "number" || C == "symbol" || C == "boolean" || d == null || h(d) ? !0 : m.test(d) || !o.test(d) || E != null && d in Object(E);
1499
1499
  }
1500
- function Re(d) {
1500
+ function Te(d) {
1501
1501
  var E = typeof d;
1502
1502
  return E == "string" || E == "number" || E == "symbol" || E == "boolean" ? d !== "__proto__" : d === null;
1503
1503
  }
1504
1504
  function _e(d) {
1505
- return !!P && P in d;
1505
+ return !!x && x in d;
1506
1506
  }
1507
1507
  var Ce = fe(function(d) {
1508
1508
  d = g(d);
1509
1509
  var E = [];
1510
- return l.test(d) && E.push(""), d.replace(p, function(x, G, ae, K) {
1511
- E.push(ae ? K.replace(w, "$1") : G || x);
1510
+ return l.test(d) && E.push(""), d.replace(p, function(C, G, ae, K) {
1511
+ E.push(ae ? K.replace(w, "$1") : G || C);
1512
1512
  }), E;
1513
1513
  });
1514
1514
  function Ne(d) {
@@ -1520,7 +1520,7 @@ function yt() {
1520
1520
  function le(d) {
1521
1521
  if (d != null) {
1522
1522
  try {
1523
- return I.call(d);
1523
+ return k.call(d);
1524
1524
  } catch {
1525
1525
  }
1526
1526
  try {
@@ -1533,14 +1533,14 @@ function yt() {
1533
1533
  function fe(d, E) {
1534
1534
  if (typeof d != "function" || E && typeof E != "function")
1535
1535
  throw new TypeError(e);
1536
- var x = function() {
1537
- var G = arguments, ae = E ? E.apply(this, G) : G[0], K = x.cache;
1536
+ var C = function() {
1537
+ var G = arguments, ae = E ? E.apply(this, G) : G[0], K = C.cache;
1538
1538
  if (K.has(ae))
1539
1539
  return K.get(ae);
1540
1540
  var O = d.apply(this, G);
1541
- return x.cache = K.set(ae, O), O;
1541
+ return C.cache = K.set(ae, O), O;
1542
1542
  };
1543
- return x.cache = new (fe.Cache || oe)(), x;
1543
+ return C.cache = new (fe.Cache || oe)(), C;
1544
1544
  }
1545
1545
  fe.Cache = oe;
1546
1546
  function Se(d, E) {
@@ -1562,28 +1562,28 @@ function yt() {
1562
1562
  return typeof d == "symbol" || ge(d) && M.call(d) == n;
1563
1563
  }
1564
1564
  function g(d) {
1565
- return d == null ? "" : Pe(d);
1565
+ return d == null ? "" : xe(d);
1566
1566
  }
1567
- function D(d, E, x) {
1567
+ function D(d, E, C) {
1568
1568
  var G = d == null ? void 0 : ee(d, E);
1569
- return G === void 0 ? x : G;
1569
+ return G === void 0 ? C : G;
1570
1570
  }
1571
1571
  return fr = D, fr;
1572
1572
  }
1573
1573
  var ht = yt();
1574
- const Ue = /* @__PURE__ */ mr(ht);
1574
+ const je = /* @__PURE__ */ mr(ht);
1575
1575
  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", 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,
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", v = " \\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 + v, S = "['’]", f = "[" + t + "]", c = "[" + i + "]", A = "[" + n + o + "]", b = "\\d+", P = "[" + m + "]", x = "[" + l + "]", k = "[^" + t + i + b + m + l + u + "]", N = "\\ud83c[\\udffb-\\udfff]", M = "(?:" + A + "|" + N + ")", V = "[^" + t + "]", $ = "(?:\\ud83c[\\udde6-\\uddff]){2}", L = "[\\ud800-\\udbff][\\udc00-\\udfff]", F = "[" + u + "]", R = "\\u200d", T = "(?:" + x + "|" + k + ")", U = "(?:" + F + "|" + k + ")", z = "(?:" + S + "(?:d|ll|m|re|s|t|ve))?", _ = "(?:" + S + "(?:D|LL|M|RE|S|T|VE))?", Z = M + "?", Q = "[" + s + "]?", ne = "(?:" + R + "(?:" + [V, $, L].join("|") + ")" + Q + Z + ")*", X = Q + Z + ne, W = "(?:" + [P, $, L].join("|") + ")" + X, ie = "(?:" + [V + A + "?", A, $, L, f].join("|") + ")", re = RegExp(S, "g"), te = RegExp(A, "g"), ce = RegExp(N + "(?=" + N + ")|" + ie + X, "g"), ue = RegExp([
1580
+ F + "?" + x + "+" + z + "(?=" + [c, F, "$"].join("|") + ")",
1581
+ U + "+" + _ + "(?=" + [c, F + T, "$"].join("|") + ")",
1582
+ F + "?" + T + "+" + z,
1583
1583
  F + "+" + _,
1584
- v,
1584
+ b,
1585
1585
  W
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 = {
1586
+ ].join("|"), "g"), oe = RegExp("[" + R + 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.
1588
1588
  À: "A",
1589
1589
  Á: "A",
@@ -1785,25 +1785,25 @@ function gt() {
1785
1785
  function ee(O) {
1786
1786
  return O.split("");
1787
1787
  }
1788
- function ke(O) {
1788
+ function Ie(O) {
1789
1789
  return O.match(r) || [];
1790
1790
  }
1791
- function Pe(O) {
1791
+ function xe(O) {
1792
1792
  return function(B) {
1793
1793
  return O?.[B];
1794
1794
  };
1795
1795
  }
1796
- var Ie = Pe(pe);
1796
+ var ke = xe(pe);
1797
1797
  function me(O) {
1798
1798
  return oe.test(O);
1799
1799
  }
1800
- function xe(O) {
1800
+ function Pe(O) {
1801
1801
  return de.test(O);
1802
1802
  }
1803
- function Te(O) {
1804
- return me(O) ? Re(O) : ee(O);
1805
- }
1806
1803
  function Re(O) {
1804
+ return me(O) ? Te(O) : ee(O);
1805
+ }
1806
+ function Te(O) {
1807
1807
  return O.match(ce) || [];
1808
1808
  }
1809
1809
  function _e(O) {
@@ -1832,7 +1832,7 @@ function gt() {
1832
1832
  function ge(O) {
1833
1833
  return function(B) {
1834
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);
1835
+ var j = me(B) ? Re(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
  }
@@ -1851,17 +1851,17 @@ function gt() {
1851
1851
  return O == null ? "" : Le(O);
1852
1852
  }
1853
1853
  var E = h(function(O, B, j) {
1854
- return B = B.toLowerCase(), O + (j ? x(B) : B);
1854
+ return B = B.toLowerCase(), O + (j ? C(B) : B);
1855
1855
  });
1856
- function x(O) {
1856
+ function C(O) {
1857
1857
  return ae(d(O).toLowerCase());
1858
1858
  }
1859
1859
  function G(O) {
1860
- return O = d(O), O && O.replace(a, Ie).replace(te, "");
1860
+ return O = d(O), O && O.replace(a, ke).replace(te, "");
1861
1861
  }
1862
1862
  var ae = ge("toUpperCase");
1863
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) || [];
1864
+ return O = d(O), B = B, B === void 0 ? Pe(O) ? _e(O) : Ie(O) : O.match(B) || [];
1865
1865
  }
1866
1866
  return dr = E, dr;
1867
1867
  }
@@ -1881,14 +1881,14 @@ 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 k = {}, De = {};
1885
- k.loadExternalScript = function(e) {
1886
- if (De[e])
1887
- return De[e];
1888
- const r = De[e] = new Promise(a);
1884
+ const I = {}, Ge = {};
1885
+ I.loadExternalScript = function(e) {
1886
+ if (Ge[e])
1887
+ return Ge[e];
1888
+ const r = Ge[e] = new Promise(a);
1889
1889
  function a(t, n) {
1890
1890
  if (!document)
1891
- return delete De[e], n("document is undefined");
1891
+ return delete Ge[e], n("document is undefined");
1892
1892
  var o = document.createElement("script");
1893
1893
  o.type = "text/javascript", o.async = !0, o.onload = function() {
1894
1894
  return console.log("Loaded external script", e), t(e);
@@ -1897,7 +1897,7 @@ k.loadExternalScript = function(e) {
1897
1897
  return r;
1898
1898
  };
1899
1899
  const Vr = {};
1900
- k.loadExternalStyle = function(e) {
1900
+ I.loadExternalStyle = function(e) {
1901
1901
  const r = new Promise(a);
1902
1902
  function a(t, n) {
1903
1903
  if (!document)
@@ -1912,7 +1912,7 @@ k.loadExternalStyle = function(e) {
1912
1912
  }
1913
1913
  return r;
1914
1914
  };
1915
- k.exists = function(e) {
1915
+ I.exists = function(e) {
1916
1916
  var r;
1917
1917
  if (Array.isArray(e) || e === 0)
1918
1918
  return !0;
@@ -1934,7 +1934,7 @@ k.exists = function(e) {
1934
1934
  }
1935
1935
  return !r;
1936
1936
  };
1937
- k.parseDate = function(e) {
1937
+ I.parseDate = function(e) {
1938
1938
  if (e) {
1939
1939
  if (e instanceof Date)
1940
1940
  return e;
@@ -1943,12 +1943,12 @@ k.parseDate = function(e) {
1943
1943
  return r;
1944
1944
  }
1945
1945
  };
1946
- k.parseURL = function(e) {
1946
+ I.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 = k.parseEmail(e);
1951
+ var a = I.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 @@ k.parseURL = function(e) {
1959
1959
  ).test(e);
1960
1960
  return n ? t(e) : !1;
1961
1961
  };
1962
- k.parseNumber = function(e, r) {
1962
+ I.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 = k.parseNumber(a);
1967
+ e = I.parseNumber(a);
1968
1968
  }
1969
1969
  return e;
1970
1970
  };
1971
- k.isValidEmailAddress = function(e) {
1971
+ I.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 @@ k.isValidEmailAddress = function(e) {
1981
1981
  return m.length > 63;
1982
1982
  }) || !r.test(e));
1983
1983
  };
1984
- k.parseEmail = function(e) {
1984
+ I.parseEmail = function(e) {
1985
1985
  if (!e)
1986
1986
  return !1;
1987
- var r = String(e).toLowerCase(), a = k.isValidEmailAddress(r);
1987
+ var r = String(e).toLowerCase(), a = I.isValidEmailAddress(r);
1988
1988
  return a ? r : !1;
1989
1989
  };
1990
- k.parseInt = function(e) {
1990
+ I.parseInt = function(e) {
1991
1991
  return !e || (e = parseInt(e), isNaN(e)) ? 0 : e;
1992
1992
  };
1993
- k.cleanValue = function(e, r, a) {
1993
+ I.cleanValue = function(e, r, a) {
1994
1994
  a || (a = {});
1995
- var t = k.exists(e);
1995
+ var t = I.exists(e);
1996
1996
  if (a.strict && t && r != "boolean")
1997
1997
  return e;
1998
1998
  switch (r) {
1999
1999
  case "reference":
2000
- return k.id(e, !0);
2000
+ return I.id(e, !0);
2001
2001
  case "boolean":
2002
- return k.parseBoolean(e);
2002
+ return I.parseBoolean(e);
2003
2003
  case "url":
2004
- return k.parseURL(e);
2004
+ return I.parseURL(e);
2005
2005
  case "key":
2006
- return k.machineName(e);
2006
+ return I.machineName(e);
2007
2007
  case "email":
2008
- return k.parseEmail(e);
2008
+ return I.parseEmail(e);
2009
2009
  case "date":
2010
- var n = k.parseDate(e, a);
2010
+ var n = I.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 = k.parseNumber(e);
2015
+ var o = I.parseNumber(e);
2016
2016
  return String(o) == String(Number(e)) ? o : void 0;
2017
2017
  case "integer":
2018
- var o = k.parseInt(e);
2018
+ var o = I.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 (k.exists(e)) {
2025
+ if (I.exists(e)) {
2026
2026
  var m = String(e);
2027
2027
  return m == "[object Object]" ? void 0 : m;
2028
2028
  } else
@@ -2042,39 +2042,39 @@ k.cleanValue = function(e, r, a) {
2042
2042
  return String(e);
2043
2043
  }
2044
2044
  };
2045
- k.isValidValue = function(e, r, a) {
2046
- var t = k.exists(e), n = typeof e == "number", o = !1;
2045
+ I.isValidValue = function(e, r, a) {
2046
+ var t = I.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) === k.parseURL(e);
2051
+ a ? o = e.startsWith("/") || e.startsWith("://") || e.startsWith("http://") || e.startsWith("https://") : o = String(e) === I.parseURL(e);
2052
2052
  break;
2053
2053
  case "key":
2054
- o = String(e) === k.machineName(e);
2054
+ o = String(e) === I.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 = k.parseDate(e);
2059
+ var m = I.parseDate(e);
2060
2060
  return m !== void 0;
2061
2061
  case "email":
2062
- a ? o = e === k.parseEmail(e) : o = String(e).toLowerCase() === k.parseEmail(e);
2062
+ a ? o = e === I.parseEmail(e) : o = String(e).toLowerCase() === I.parseEmail(e);
2063
2063
  break;
2064
2064
  case "number":
2065
2065
  case "decimal":
2066
2066
  case "float":
2067
- a ? o = n && Number(e) === k.parseNumber(e) : o = Number(e) === k.parseNumber(e);
2067
+ a ? o = n && Number(e) === I.parseNumber(e) : o = Number(e) === I.parseNumber(e);
2068
2068
  break;
2069
2069
  case "integer":
2070
- a ? o = n && Number(e) === k.parseInt(e) : o = Number(e) === k.parseInt(e);
2070
+ a ? o = n && Number(e) === I.parseInt(e) : o = Number(e) === I.parseInt(e);
2071
2071
  break;
2072
2072
  case "boolean":
2073
- var m = k.parseBoolean(e);
2073
+ var m = I.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) === k.id(e) : o = !!k.id(e);
2077
+ a ? o = String(e) === I.id(e) : o = !!I.id(e);
2078
2078
  break;
2079
2079
  case "string":
2080
2080
  var l = String(e);
@@ -2094,7 +2094,7 @@ k.isValidValue = function(e, r, a) {
2094
2094
  }
2095
2095
  return o;
2096
2096
  };
2097
- k.parseBoolean = function(e) {
2097
+ I.parseBoolean = function(e) {
2098
2098
  switch (String(e).toLowerCase()) {
2099
2099
  case "true":
2100
2100
  case "y":
@@ -2117,10 +2117,10 @@ k.parseBoolean = function(e) {
2117
2117
  }
2118
2118
  return !!e;
2119
2119
  };
2120
- k.clone = function(e) {
2120
+ I.clone = function(e) {
2121
2121
  return JSON.parse(JSON.stringify(e));
2122
2122
  };
2123
- k.getAllFields = function(e) {
2123
+ I.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)
@@ -2172,7 +2172,7 @@ k.getAllFields = function(e) {
2172
2172
  maximum: 1,
2173
2173
  type: "date"
2174
2174
  }));
2175
- var l = k.mapFields(t).filter(function(p) {
2175
+ var l = I.mapFields(t).filter(function(p) {
2176
2176
  var y = p.type == "group" && p.asObject && p.minimum == 1 && p.maximum == 1;
2177
2177
  return !y;
2178
2178
  }).map(function(p) {
@@ -2182,28 +2182,28 @@ k.getAllFields = function(e) {
2182
2182
  });
2183
2183
  return l;
2184
2184
  };
2185
- k.mapFields = function(e, r) {
2185
+ I.mapFields = function(e, r) {
2186
2186
  r || (r = {});
2187
2187
  var a = [], t = [], n = [], o = 1, m = r.depth, l = r.arrayDelimeter || "[]";
2188
2188
  e.forEach(p);
2189
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;
2190
+ var v = y.key, u = y.type == "group", s = y.minimum === y.maximum && y.minimum === 1, i = y.asObject, S = u && !i, f = r.original ? y : I.clone(y);
2191
+ f.trail = t.slice(), f.trail.push(v), f.path = f.trail.join("."), f.titles = n.slice(), f.titles.push(y.filterTitle || y.title || ""), (!S || r.includeLayout) && a.push(f);
2192
+ var A = m && o >= m;
2193
2193
  if (y.fields && y.fields.length)
2194
2194
  if (S)
2195
2195
  y.fields.forEach(p);
2196
2196
  else {
2197
- if (b)
2197
+ if (A)
2198
2198
  return;
2199
2199
  o++;
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();
2200
+ let b = v;
2201
+ r.includeArrayDelimeter && (s || (b = `${v}${l}`)), t.push(b), 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
- k.mapParameters = function(e) {
2206
+ I.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 @@ k.mapParameters = function(e) {
2212
2212
  }) : r.push(encodeURIComponent(a) + "=" + encodeURIComponent(t)));
2213
2213
  }), r.join("&");
2214
2214
  };
2215
- k.formatCurrency = function(e, r, a) {
2215
+ I.formatCurrency = function(e, r, a) {
2216
2216
  (!e || isNaN(e)) && (e = 0), a = a || 2;
2217
- var t = k.currencySymbol(r);
2217
+ var t = I.currencySymbol(r);
2218
2218
  return `${t}${parseFloat(Number(e) / 100).toFixed(a)}`;
2219
2219
  };
2220
- k.getTypeFromID = function(e) {
2221
- if (e = k.id(e), !e)
2220
+ I.getTypeFromID = function(e) {
2221
+ if (e = I.id(e), !e)
2222
2222
  return;
2223
2223
  const r = {
2224
2224
  21: "organisation",
@@ -2280,73 +2280,52 @@ k.getTypeFromID = function(e) {
2280
2280
  var a = e.slice(8, 10);
2281
2281
  return r[a];
2282
2282
  };
2283
- k.currencySymbol = function(e) {
2284
- switch (e = String(e).toLowerCase(), String(e).toLowerCase()) {
2285
- case "gbp":
2286
- return "£";
2287
- case "eur":
2288
- return "€";
2289
- default:
2290
- return "$";
2291
- }
2283
+ const St = { gbp: "£", eur: "€" };
2284
+ I.currencySymbol = function(e) {
2285
+ return St[String(e).toLowerCase()] || "$";
2292
2286
  };
2293
- k.getAvailableCurrencies = function(e) {
2294
- var r = [];
2295
- if (r.push({
2296
- name: `USD (${k.currencySymbol("usd")})`,
2297
- value: "usd",
2298
- countryCode: { US: !0 }
2299
- }), r.push({
2300
- name: `GBP (${k.currencySymbol("gbp")})`,
2301
- value: "gbp",
2302
- countryCode: { GB: !0, UK: !0 }
2303
- }), r.push({
2304
- name: `CAD (${k.currencySymbol("cad")})`,
2305
- value: "cad",
2306
- countryCode: { CA: !0 }
2307
- }), r.push({
2308
- name: `AUD (${k.currencySymbol("aud")})`,
2309
- value: "aud",
2310
- countryCode: { AU: !0 }
2311
- }), r.push({
2312
- name: `NZD (${k.currencySymbol("nzd")})`,
2313
- value: "nzd",
2314
- countryCode: { NZ: !0 }
2315
- }), r.push({
2316
- name: `SGD (${k.currencySymbol("sgd")})`,
2317
- value: "sgd",
2318
- countryCode: { SG: !0 }
2319
- }), e) {
2320
- var a = r.findIndex(function(n) {
2321
- return n.countryCode[e];
2322
- });
2323
- const t = (n, o, m) => {
2324
- const l = [...n];
2325
- return l.splice(m, 0, ...l.splice(o, 1)), l;
2326
- };
2327
- a != -1 && (r = t(r, a, 0));
2287
+ const wt = [
2288
+ { code: "usd", countries: ["US"] },
2289
+ { code: "gbp", countries: ["GB", "UK"] },
2290
+ { code: "cad", countries: ["CA"] },
2291
+ { code: "aud", countries: ["AU"] },
2292
+ { code: "nzd", countries: ["NZ"] },
2293
+ { code: "sgd", countries: ["SG"] }
2294
+ ];
2295
+ I.getAvailableCurrencies = function(e) {
2296
+ let r = wt.map(({ code: a, countries: t }) => ({
2297
+ name: `${a.toUpperCase()} (${I.currencySymbol(a)})`,
2298
+ value: a,
2299
+ countryCode: Object.fromEntries(t.map((n) => [n, !0]))
2300
+ }));
2301
+ if (e) {
2302
+ const a = r.findIndex((t) => t.countryCode[e]);
2303
+ if (a > 0) {
2304
+ const [t] = r.splice(a, 1);
2305
+ r.unshift(t);
2306
+ }
2328
2307
  }
2329
2308
  return r;
2330
2309
  };
2331
- k.hash = function(e, r) {
2310
+ I.hash = function(e, r) {
2332
2311
  return e = Array.isArray(e) ? e : [], e.reduce(function(a, t) {
2333
- const n = r ? Ue(t, r) : t;
2312
+ const n = r ? je(t, r) : t;
2334
2313
  return a[n] = t, a;
2335
2314
  }, {});
2336
2315
  };
2337
- k.extractFromArray = function(e, r, a, t, n, o, m) {
2316
+ I.extractFromArray = function(e, r, a, t, n, o, m) {
2338
2317
  m = m || {}, a && (m.sum = a), t && (m.flatten = !0), n && (m.unique = !0), o && (m.excludeNull = !0);
2339
2318
  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;
2319
+ var w = je(y, r), v = !w && w !== !1 && w !== 0;
2320
+ return m.excludeNull && v || p.push(w), p;
2342
2321
  }, []);
2343
2322
  return m.flatten && (l = l.flat()), m.unique && (l = [...new Set(l)]), m.sum && (l = l.reduce(function(p, y) {
2344
2323
  return p + y;
2345
2324
  }, 0)), l;
2346
2325
  };
2347
- k.matchInArray = function(e, r, a, t) {
2326
+ I.matchInArray = function(e, r, a, t) {
2348
2327
  var n = e.filter(function(o) {
2349
- var m = Ue(o, r), l;
2328
+ var m = je(o, r), l;
2350
2329
  switch (t) {
2351
2330
  case "in":
2352
2331
  l = m.includes(a);
@@ -2372,84 +2351,85 @@ k.matchInArray = function(e, r, a, t) {
2372
2351
  });
2373
2352
  return n;
2374
2353
  };
2375
- k.comma = function(e, r, a) {
2354
+ I.comma = function(e, r, a) {
2376
2355
  return a && (e = e.slice(0, a)), e.filter(function(t) {
2377
2356
  return t != null && t !== void 0 && t !== "";
2378
2357
  }).map(function(t) {
2379
- return r && r.length ? Ue(t, r) : t;
2358
+ return r && r.length ? je(t, r) : t;
2380
2359
  }).join(", ");
2381
2360
  };
2382
- k.id = function(e) {
2361
+ I.id = function(e) {
2383
2362
  if (e) {
2384
2363
  var r;
2385
2364
  e._id ? r = String(e._id) : r = String(e);
2386
- var a = k.isValidID(r);
2365
+ var a = I.isValidID(r);
2387
2366
  if (a)
2388
2367
  return r;
2389
2368
  }
2390
2369
  };
2391
- k.ids = function(e) {
2370
+ I.ids = function(e) {
2392
2371
  if (!e)
2393
2372
  return [];
2394
2373
  var r = Object.keys(
2395
2374
  e.reduce(function(a, t) {
2396
2375
  if (!t)
2397
2376
  return a;
2398
- var n = k.id(t);
2377
+ var n = I.id(t);
2399
2378
  return n && (a[n] = 1), a;
2400
2379
  }, {})
2401
2380
  );
2402
2381
  return r;
2403
2382
  };
2404
- k.isValidID = function(e) {
2383
+ I.isValidID = function(e) {
2405
2384
  var r = new RegExp("^[0-9a-fA-F]{24}$");
2406
2385
  return r.test(String(e));
2407
2386
  };
2408
- k.errorMessage = function(e) {
2409
- if (e) {
2410
- Array.isArray(e) && (e = e[0]);
2411
- var r = ["response.data.message", "response.data", "message"], a;
2412
- return r.forEach(function(t) {
2413
- if (!a) {
2414
- var n = Ue(e, t);
2415
- n && (a = n);
2416
- }
2417
- }), Array.isArray(a) && (a = a[0]), a = a || JSON.stringify(e), a;
2418
- }
2387
+ I.errorMessage = function(e) {
2388
+ if (!e)
2389
+ return;
2390
+ Array.isArray(e) && (e = e[0]);
2391
+ let r = e?.response?.data?.message || (typeof e?.response?.data == "string" ? e.response.data : null) || e?.message || null;
2392
+ return Array.isArray(r) && (r = r[0]), r || JSON.stringify(e);
2419
2393
  };
2420
- k.guid = function() {
2421
- var e = (/* @__PURE__ */ new Date()).getTime().toString(16) + Math.random().toString(16).substring(2) + "0".repeat(16);
2422
- return e.substr(0, 8) + "-" + e.substr(8, 4) + "-4000-8" + e.substr(12, 3) + "-" + e.substr(15, 12);
2394
+ I.guid = function() {
2395
+ return typeof crypto < "u" && crypto.randomUUID ? crypto.randomUUID() : "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
2396
+ const r = Math.random() * 16 | 0;
2397
+ return (e === "x" ? r : r & 3 | 8).toString(16);
2398
+ });
2423
2399
  };
2424
- k.machineName = function(e) {
2400
+ I.machineName = function(e) {
2425
2401
  if (!(!e || !e.length)) {
2426
2402
  var r = /[^a-zA-Z0-9-_]+/g;
2427
2403
  return String(e).replace(r, " ").split("_").map((a) => At(a)).join("_");
2428
2404
  }
2429
2405
  };
2430
- function je() {
2431
- var e = {}, r = {};
2432
- return r.removeAllListeners = function() {
2433
- e = {};
2434
- }, r.dispatch = function(a, t) {
2435
- e[a] && e[a].forEach(function(n) {
2436
- return n(t);
2437
- });
2438
- }, r.addEventListener = function(a, t) {
2439
- e[a] || (e[a] = []);
2440
- const n = typeof t;
2441
- if (n !== "function")
2442
- throw new Error(
2443
- `addEventListener() requires a function but ${n} was added`
2444
- );
2445
- e[a].indexOf(t) == -1 && e[a].push(t);
2446
- }, r.removeEventListener = function(a, t) {
2447
- e[a] || (e[a] = []);
2448
- var n = e[a].indexOf(t);
2449
- n != -1 && e[a].splice(n, 1);
2450
- }, r.bootstrap = function(a) {
2451
- a && (a.dispatch = r.dispatch, a.addEventListener = r.addEventListener, a.removeEventListener = r.removeEventListener, a.removeAllListeners = r.removeAllListeners);
2452
- }, r;
2406
+ function De() {
2407
+ const e = /* @__PURE__ */ new Map(), r = {
2408
+ dispatch(a, t) {
2409
+ const n = e.get(a);
2410
+ if (n)
2411
+ for (const o of n)
2412
+ o(t);
2413
+ },
2414
+ addEventListener(a, t) {
2415
+ if (typeof t != "function")
2416
+ throw new TypeError(
2417
+ `Expected a function for addEventListener, received ${typeof t}`
2418
+ );
2419
+ e.has(a) || e.set(a, /* @__PURE__ */ new Set()), e.get(a).add(t);
2420
+ },
2421
+ removeEventListener(a, t) {
2422
+ const n = e.get(a);
2423
+ n && (n.delete(t), n.size === 0 && e.delete(a));
2424
+ },
2425
+ removeAllListeners() {
2426
+ e.clear();
2427
+ },
2428
+ bootstrap(a) {
2429
+ a && (a.dispatch = r.dispatch, a.addEventListener = r.addEventListener, a.removeEventListener = r.removeEventListener, a.removeAllListeners = r.removeAllListeners);
2430
+ }
2431
+ };
2432
+ return r;
2453
2433
  }
2454
2434
  class Ve {
2455
2435
  constructor() {
@@ -2531,7 +2511,7 @@ class zr extends Ve {
2531
2511
  return !0;
2532
2512
  }
2533
2513
  }
2534
- class St extends Ve {
2514
+ class Et extends Ve {
2535
2515
  constructor(r = {}) {
2536
2516
  super(), this.options = {
2537
2517
  domain: r.domain || this._detectDomain(),
@@ -2627,17 +2607,17 @@ class St extends Ve {
2627
2607
  return { ...this.options };
2628
2608
  }
2629
2609
  }
2630
- function wt(e = {}) {
2610
+ function xt(e = {}) {
2631
2611
  if (e.useHttpOnlyCookies) {
2632
- const r = new St(e.cookieConfig);
2612
+ const r = new Et(e.cookieConfig);
2633
2613
  return r.isAvailable() ? r : (console.warn("Qik SDK: Cookies not available, falling back to localStorage mode"), new zr());
2634
2614
  }
2635
2615
  return new zr();
2636
2616
  }
2637
- var Et = function(e) {
2617
+ var Pt = function(e) {
2638
2618
  if (!e.api)
2639
2619
  throw new Error("Please ensure that QikAPI exists before QikAuth");
2640
- const r = wt({
2620
+ const r = xt({
2641
2621
  useHttpOnlyCookies: e.useHttpOnlyCookies,
2642
2622
  cookieConfig: e.cookieConfig
2643
2623
  }), a = 10, t = {
@@ -2650,7 +2630,7 @@ var Et = function(e) {
2650
2630
  },
2651
2631
  enumerable: !0
2652
2632
  });
2653
- const n = new je();
2633
+ const n = new De();
2654
2634
  n.bootstrap(t);
2655
2635
  function o(l) {
2656
2636
  var p = r.getUser();
@@ -2665,37 +2645,37 @@ var Et = function(e) {
2665
2645
  }, t.changeOrganisation = function(l, p) {
2666
2646
  l = e.utils.id(l), p || (p = {});
2667
2647
  var y = !0;
2668
- return p.disableAutoAuthentication && (y = !1), new Promise(function(w, A) {
2648
+ return p.disableAutoAuthentication && (y = !1), new Promise(function(w, v) {
2669
2649
  e.api.post(`/user/switch/${l}`).then(function(u) {
2670
2650
  y && (e.cache.reset(), t.set(u.data)), w(u.data);
2671
- }).catch(A);
2651
+ }).catch(v);
2672
2652
  });
2673
2653
  }, t.impersonate = function(l, p) {
2674
2654
  l = e.utils.id(l), p || (p = {});
2675
2655
  var y = !0;
2676
2656
  p.disableAutoAuthentication && (y = !1);
2677
2657
  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) {
2658
+ return w.then(function(v) {
2659
+ y && (e.cache.reset(), t.set(v.data));
2660
+ }, function(v) {
2681
2661
  }), w;
2682
2662
  }, t.login = async function(l, p) {
2683
2663
  p || (p = {});
2684
2664
  var y = !0;
2685
2665
  p.disableAutoAuthentication && (y = !1);
2686
- var w = new Promise(A);
2687
- function A(u, s) {
2666
+ var w = new Promise(v);
2667
+ function v(u, s) {
2688
2668
  if (!l)
2689
2669
  return s({
2690
- message: "Missing credentials!"
2670
+ message: "Login requires an email and password"
2691
2671
  });
2692
2672
  if (!l.email || !l.email.length)
2693
2673
  return s({
2694
- message: "Username was not provided"
2674
+ message: "An email address is required to log in"
2695
2675
  });
2696
2676
  if (!l.password || !l.password.length)
2697
2677
  return s({
2698
- message: "Password was not provided"
2678
+ message: "A password is required to log in"
2699
2679
  });
2700
2680
  var i = {
2701
2681
  bypassInterceptor: !0
@@ -2711,35 +2691,35 @@ var Et = function(e) {
2711
2691
  p || (p = {});
2712
2692
  var y = !0;
2713
2693
  p.disableAutoAuthentication && (y = !1);
2714
- var w = new Promise(A);
2715
- function A(u, s) {
2694
+ var w = new Promise(v);
2695
+ function v(u, s) {
2716
2696
  if (!l)
2717
2697
  return s({
2718
- message: "No details provided"
2698
+ message: "Signup details are required"
2719
2699
  });
2720
2700
  if (!l.firstName || !l.firstName.length)
2721
2701
  return s({
2722
- message: "First Name was not provided"
2702
+ message: "Please provide a first name"
2723
2703
  });
2724
2704
  if (!l.lastName || !l.lastName.length)
2725
2705
  return s({
2726
- message: "Last Name was not provided"
2706
+ message: "Please provide a last name"
2727
2707
  });
2728
2708
  if (!l.email || !l.email.length)
2729
2709
  return s({
2730
- message: "Email/Username was not provided"
2710
+ message: "An email address is required to sign up"
2731
2711
  });
2732
2712
  if (!l.password || !l.password.length)
2733
2713
  return s({
2734
- message: "Password was not provided"
2714
+ message: "A password is required to sign up"
2735
2715
  });
2736
2716
  if (!l.confirmPassword || !l.confirmPassword.length)
2737
2717
  return s({
2738
- message: "Confirm Password was not provided"
2718
+ message: "Please confirm your password"
2739
2719
  });
2740
2720
  if (l.confirmPassword != l.password)
2741
2721
  return s({
2742
- message: "Your passwords do not match"
2722
+ message: "Password and confirmation do not match"
2743
2723
  });
2744
2724
  var i = {
2745
2725
  bypassInterceptor: !0
@@ -2756,32 +2736,32 @@ var Et = function(e) {
2756
2736
  var y = {
2757
2737
  bypassInterceptor: !0
2758
2738
  };
2759
- return new Promise(function(w, A) {
2739
+ return new Promise(function(w, v) {
2760
2740
  e.api.get(p.url || `${e.apiURL}/user/reset/${l}`, y).then(function(u) {
2761
2741
  return w(u.data);
2762
- }, A);
2742
+ }, v);
2763
2743
  });
2764
2744
  }, t.updateUserWithToken = async function(l, p, y) {
2765
2745
  y || (y = {});
2766
2746
  var w = !0;
2767
- return y.disableAutoAuthentication && (w = !1), new Promise(function(A, u) {
2747
+ return y.disableAutoAuthentication && (w = !1), new Promise(function(v, u) {
2768
2748
  var s = {
2769
2749
  bypassInterceptor: !0
2770
2750
  };
2771
2751
  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);
2752
+ return w && (e.cache.reset(), t.set(i.data)), v(i.data);
2773
2753
  }, u);
2774
2754
  });
2775
2755
  }, t.sendResetPasswordRequest = function(l, p) {
2776
2756
  return p || (p = {}), l ? !l.email || !l.email.length ? Promise.reject({
2777
- message: "Email is required but was not provided"
2757
+ message: "An email address is required for password reset"
2778
2758
  }) : new Promise(function(y, w) {
2779
- var A = {
2759
+ var v = {
2780
2760
  bypassInterceptor: !0
2781
2761
  };
2782
- e.api.post(p.url || `${e.apiURL}/user/forgot`, l, A).then(y, w);
2762
+ e.api.post(p.url || `${e.apiURL}/user/forgot`, l, v).then(y, w);
2783
2763
  }) : Promise.reject({
2784
- message: "No details were provided for password reset request"
2764
+ message: "Please provide your account details to reset your password"
2785
2765
  });
2786
2766
  }, t.ensureValidToken = async function(l) {
2787
2767
  var p = t.getCurrentUser();
@@ -2792,10 +2772,10 @@ var Et = function(e) {
2792
2772
  var { token: w } = p;
2793
2773
  if (!w)
2794
2774
  return Promise.reject("No token");
2795
- var A = /* @__PURE__ */ new Date();
2796
- A.setSeconds(A.getSeconds() + a);
2775
+ var v = /* @__PURE__ */ new Date();
2776
+ v.setSeconds(v.getSeconds() + a);
2797
2777
  var u = new Date(w.expires);
2798
- return l ? await t.refreshAccessToken(w.refreshToken) : A < u ? w : await t.refreshAccessToken(w.refreshToken);
2778
+ return l ? await t.refreshAccessToken(w.refreshToken) : v < u ? w : await t.refreshAccessToken(w.refreshToken);
2799
2779
  };
2800
2780
  const m = {};
2801
2781
  return t.refreshAccessToken = async function(l) {
@@ -2803,7 +2783,7 @@ var Et = function(e) {
2803
2783
  return m.inflightRefreshRequest;
2804
2784
  const p = r.isCookieMode && r.isCookieMode();
2805
2785
  return m.inflightRefreshRequest = new Promise(function(y, w) {
2806
- let A = {}, u = {
2786
+ let v = {}, u = {
2807
2787
  bypassInterceptor: !0,
2808
2788
  withoutToken: !0
2809
2789
  };
@@ -2812,9 +2792,9 @@ var Et = function(e) {
2812
2792
  else {
2813
2793
  if (!l)
2814
2794
  return m.inflightRefreshRequest = null, w(new Error("No refresh token provided for localStorage mode"));
2815
- A.refreshToken = l;
2795
+ v.refreshToken = l;
2816
2796
  }
2817
- e.api.post("/user/refresh", A, u).then(function(i) {
2797
+ e.api.post("/user/refresh", v, u).then(function(i) {
2818
2798
  if (!i || !i.data)
2819
2799
  return m.inflightRefreshRequest = null, w(new Error("Invalid refresh response"));
2820
2800
  if (t.set(i.data), o(), p)
@@ -2866,13 +2846,13 @@ var Et = function(e) {
2866
2846
  var p = l;
2867
2847
  if (r.isCookieMode && r.isCookieMode())
2868
2848
  return p.withCredentials || (p.withCredentials = !0), p;
2869
- var w = t.getCurrentUser(), A, u, s;
2849
+ var w = t.getCurrentUser(), v, u, s;
2870
2850
  if (w) {
2871
2851
  var { token: i } = w;
2872
- i && (A = i.accessToken, u = i.refreshToken, s = i.expires);
2852
+ i && (v = i.accessToken, u = i.refreshToken, s = i.expires);
2873
2853
  }
2874
- if (A)
2875
- p.headers.Authorization = `Bearer ${A}`;
2854
+ if (v)
2855
+ p.headers.Authorization = `Bearer ${v}`;
2876
2856
  else
2877
2857
  return p;
2878
2858
  if (!u)
@@ -2880,11 +2860,11 @@ var Et = function(e) {
2880
2860
  var S = /* @__PURE__ */ new Date();
2881
2861
  S.setSeconds(S.getSeconds() + a);
2882
2862
  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);
2863
+ return S < f ? p : new Promise(async function(c, A) {
2864
+ await t.refreshAccessToken(u).then(function(b) {
2865
+ return p.headers.Authorization = `Bearer ${b}`, c(p);
2866
+ }).catch(function(b) {
2867
+ return A(b);
2888
2868
  });
2889
2869
  });
2890
2870
  },
@@ -2996,7 +2976,7 @@ q.filterChangeString = function(e) {
2996
2976
  var r = q.activeFilters(e);
2997
2977
  return JSON.stringify(r);
2998
2978
  };
2999
- function Pt(e) {
2979
+ function Ct(e) {
3000
2980
  var r = {};
3001
2981
  return r.downloadUrl = function(a, t, n, o) {
3002
2982
  return o = o || {}, n = n || {}, n.download = !0, t = e.utils.id(t), e.api.generateEndpointURL(`/${a}/${t}`, n, o);
@@ -3050,14 +3030,14 @@ function Pt(e) {
3050
3030
  }
3051
3031
  }, r;
3052
3032
  }
3053
- var $e = {}, xt = {
3033
+ var Ue = {}, Ot = {
3054
3034
  ///////////////////////////////////////////////////
3055
3035
  /**
3056
3036
  * A helper function to reset all caches, useful if changing organisation or logging in or out as another user
3057
3037
  * @alias cache.reset
3058
3038
  */
3059
3039
  reset() {
3060
- Object.entries($e).forEach(([e, r]) => {
3040
+ Object.entries(Ue).forEach(([e, r]) => {
3061
3041
  r.clear ? r.clear() : r.reset && r.reset();
3062
3042
  });
3063
3043
  },
@@ -3069,9 +3049,9 @@ var $e = {}, xt = {
3069
3049
  * @return {LRUCache} The cache store for the specified key
3070
3050
  */
3071
3051
  get(e, r) {
3072
- return r = r || { max: 5 }, $e[e] || ($e[e] = new qr(r)), $e[e];
3052
+ return r = r || { max: 5 }, Ue[e] || (Ue[e] = new qr(r)), Ue[e];
3073
3053
  }
3074
- }, Ct = function(e) {
3054
+ }, Mt = function(e) {
3075
3055
  if (!e.auth)
3076
3056
  throw new Error(
3077
3057
  "Can't Instantiate QikAccess before QikAccess has been initialized"
@@ -3159,8 +3139,8 @@ var $e = {}, xt = {
3159
3139
  var p = r.hashPermissions(a), y = n || o;
3160
3140
  if (!y)
3161
3141
  return l;
3162
- let w = n ? p[`${n}.${t}`] || [] : [], A = o ? p[`${o}.${t}`] || [] : [];
3163
- l = [...w, ...A];
3142
+ let w = n ? p[`${n}.${t}`] || [] : [], v = o ? p[`${o}.${t}`] || [] : [];
3143
+ l = [...w, ...v];
3164
3144
  }
3165
3145
  return l || [];
3166
3146
  }, r.isOwner = function(a, t) {
@@ -3170,10 +3150,10 @@ var $e = {}, xt = {
3170
3150
  var l = m.userOwners || [], p = e.utils.ids([...l, m.userAuthor]), y = e.utils.hash(p);
3171
3151
  if (y[n])
3172
3152
  return !0;
3173
- var w = m.personaOwners || [], A = e.utils.ids([
3153
+ var w = m.personaOwners || [], v = e.utils.ids([
3174
3154
  ...w,
3175
3155
  m.personaAuthor
3176
- ]), u = e.utils.hash(A);
3156
+ ]), u = e.utils.hash(v);
3177
3157
  return u[o] ? !0 : r.isAssignee(a, t);
3178
3158
  }, r.isAssignee = function(a, t) {
3179
3159
  const n = e.utils.ids(a?.profiles);
@@ -3204,36 +3184,45 @@ var $e = {}, xt = {
3204
3184
  var l = t.meta?.type, p = t.meta?.definition || l;
3205
3185
  if (!p)
3206
3186
  return !1;
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];
3187
+ if ((n == "listany" || o == "listown") && l === "scope") {
3188
+ var y = e.utils.id(t);
3189
+ return !!a.permissions[y];
3190
+ }
3191
+ var w = e.utils.ids(t.meta.scopes || []);
3192
+ l === "scope" && (w = [
3193
+ ...e.utils.ids(t.path || []),
3194
+ e.utils.id(t)
3195
+ ]);
3196
+ var v, u = `access-${a?.cacheKey}-${n}-${p}-${l}`;
3197
+ if (m.cache[u])
3198
+ v = m.cache[u];
3210
3199
  else {
3211
- var u = e.utils.ids(
3200
+ var s = e.utils.ids(
3212
3201
  r.actionableScopes(a, n, p, l, m)
3213
3202
  );
3214
- w = e.utils.hash(u), m.cache[A] = w;
3203
+ v = e.utils.hash(s), m.cache[u] = v;
3215
3204
  }
3216
- if (w) {
3217
- var s = y.some(function(v) {
3218
- return w[v];
3205
+ if (v) {
3206
+ var i = w.some(function(P) {
3207
+ return v[P];
3219
3208
  });
3220
- if (s)
3209
+ if (i)
3221
3210
  return !0;
3222
3211
  }
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];
3212
+ var S = r.isOwner(a, t);
3213
+ if (S) {
3214
+ var f, c = `access-${a?.cacheKey}-${o}-${p}-${l}`;
3215
+ if (m.cache[c])
3216
+ f = m.cache[c];
3228
3217
  else {
3229
- var c = e.utils.ids(
3218
+ var A = e.utils.ids(
3230
3219
  r.actionableScopes(a, o, p, l, m)
3231
3220
  );
3232
- S = e.utils.hash(c), m.cache[f] = S;
3221
+ f = e.utils.hash(A), m.cache[c] = f;
3233
3222
  }
3234
- if (S) {
3235
- var b = y.some(function(v) {
3236
- return S[v];
3223
+ if (f) {
3224
+ var b = w.some(function(P) {
3225
+ return f[P];
3237
3226
  });
3238
3227
  if (b)
3239
3228
  return !0;
@@ -3317,7 +3306,7 @@ var $e = {}, xt = {
3317
3306
  );
3318
3307
  }, r;
3319
3308
  };
3320
- function Ot(e) {
3309
+ function It(e) {
3321
3310
  if (!e.api)
3322
3311
  throw new Error("Can't Instantiate QikContent before QikAPI exists");
3323
3312
  var r = {
@@ -3349,22 +3338,22 @@ function Ot(e) {
3349
3338
  });
3350
3339
  }
3351
3340
  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;
3341
+ function S(A) {
3342
+ if (typeof A == "string" && A[0] === "~")
3343
+ return u[parseInt(A.slice(1))];
3344
+ if (Array.isArray(A)) return A.map(S);
3345
+ if (A && typeof A == "object") {
3346
+ const b = {};
3347
+ for (const [P, x] of Object.entries(A))
3348
+ b[s[P] || P] = S(x);
3349
+ return b;
3361
3350
  }
3362
- return b;
3351
+ return A;
3363
3352
  }
3364
3353
  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();
3354
+ for (let A = 0; A < i.length; A += f) {
3355
+ const b = i.slice(A, A + f);
3356
+ c.push(...b.map(S)), A + f < i.length && await m();
3368
3357
  }
3369
3358
  return c;
3370
3359
  }
@@ -3374,15 +3363,15 @@ function Ot(e) {
3374
3363
  var f = u.refresh || u.reload || !s;
3375
3364
  if (f) {
3376
3365
  if (!o) {
3377
- let P = function() {
3366
+ let x = function() {
3378
3367
  o = null, r.loadingGlossary = !1;
3379
3368
  };
3380
3369
  r.loadingGlossary = !0;
3381
- const C = S ? "/glossary/compressed" : "/glossary";
3382
- o = e.api.get(C, { cache: !1 }), o.then(P, P);
3370
+ const P = S ? "/glossary/compressed" : "/glossary";
3371
+ o = e.api.get(P, { cache: !1 }), o.then(x, x);
3383
3372
  }
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);
3373
+ const { data: A } = await o, b = A._s && A._k && A.types ? await l(A) : A;
3374
+ n.set("glossary", b), s = b, e.dispatch("glossary", b);
3386
3375
  }
3387
3376
  if (u.hash) {
3388
3377
  var c = e.utils.hash(s, "key");
@@ -3431,7 +3420,7 @@ function Ot(e) {
3431
3420
  }
3432
3421
  return w.data;
3433
3422
  };
3434
- function A(u) {
3423
+ function v(u) {
3435
3424
  var { minimum: s, maximum: i } = u;
3436
3425
  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
3426
  }
@@ -3458,19 +3447,19 @@ function Ot(e) {
3458
3447
  }
3459
3448
  }, r.validateField = function(u, s, i) {
3460
3449
  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);
3450
+ var S = s.type || "string", { minimum: f, maximum: c } = v(s), A = s.type == "group" && s.asObject, b = A ? f === c && c === 1 : c === 1, P = !b, x = e.utils.exists(u);
3462
3451
  if (f) {
3463
- if (!P)
3452
+ if (!x)
3464
3453
  return {
3465
3454
  valid: !1,
3466
3455
  message: `${s.title} is a required field`,
3467
3456
  status: 400
3468
3457
  };
3469
- } else if (!P)
3458
+ } else if (!x)
3470
3459
  return {
3471
3460
  valid: !0
3472
3461
  };
3473
- if (C) {
3462
+ if (P) {
3474
3463
  if (!Array.isArray(u))
3475
3464
  return f ? {
3476
3465
  valid: !1,
@@ -3481,42 +3470,42 @@ function Ot(e) {
3481
3470
  message: `${s.title} must be provided as an array`,
3482
3471
  status: 400
3483
3472
  });
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)
3473
+ var k = u;
3474
+ if (k = k.filter(function(R) {
3475
+ var T = R == null || R === "";
3476
+ return !T;
3477
+ }), f == c && f && k.length != f)
3489
3478
  return {
3490
3479
  valid: !1,
3491
3480
  message: `${s.title} requires exactly ${c} values`,
3492
3481
  status: 400
3493
3482
  };
3494
- if (c && I.length > c)
3483
+ if (c && k.length > c)
3495
3484
  return {
3496
3485
  valid: !1,
3497
3486
  message: `${s.title} requires less than ${c + 1} values`,
3498
3487
  status: 400
3499
3488
  };
3500
- if (I.length < f)
3489
+ if (k.length < f)
3501
3490
  return {
3502
3491
  valid: !1,
3503
3492
  message: `${s.title} requires at least ${f} values`,
3504
3493
  status: 400
3505
3494
  };
3506
3495
  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");
3510
- var $ = e.utils.isValidValue(
3511
- T,
3496
+ if (k.find(function(R) {
3497
+ var T = S;
3498
+ s.type === "group" && (T = "object"), s.type === "reference" && s.widget === "form" && (T = "object");
3499
+ var U = e.utils.isValidValue(
3512
3500
  R,
3501
+ T,
3513
3502
  i.strict
3514
3503
  );
3515
- if (!$)
3504
+ if (!U)
3516
3505
  return N = !0, !0;
3517
3506
  if (s.validation) {
3518
3507
  var z = r.meetsValidationRequirements(
3519
- T,
3508
+ R,
3520
3509
  S,
3521
3510
  s.validation
3522
3511
  );
@@ -3532,8 +3521,8 @@ function Ot(e) {
3532
3521
  } else {
3533
3522
  var M = S, V = s.widget;
3534
3523
  M === "group" && (M = "object"), M === "reference" && V === "form" && (M = "object");
3535
- var U = r.getCleanedValue(u, M, i), L = e.utils.isValidValue(
3536
- U,
3524
+ var $ = r.getCleanedValue(u, M, i), L = e.utils.isValidValue(
3525
+ $,
3537
3526
  M,
3538
3527
  i.strict
3539
3528
  );
@@ -3543,24 +3532,24 @@ function Ot(e) {
3543
3532
  message: `Single value '${u}' is not a valid ${M} for ${s.title}`,
3544
3533
  criteria: {
3545
3534
  isValidValue: L,
3546
- cleanedValue: U,
3535
+ cleanedValue: $,
3547
3536
  fieldType: S,
3548
3537
  options: i
3549
3538
  },
3550
3539
  status: 400
3551
3540
  };
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) {
3555
- const $ = Object.assign(
3541
+ let R = !1;
3542
+ const T = {};
3543
+ if (String(s.minValue) && (T.minValue = parseInt(s.minValue), R = !0), String(s.maxValue) && (T.maxValue = parseInt(s.maxValue), R = !0), String(s.minLength) && (T.minLength = parseInt(s.minLength), R = !0), String(s.maxLength) && (T.maxLength = parseInt(s.maxLength), R = !0), R) {
3544
+ const U = Object.assign(
3556
3545
  {},
3557
- R,
3546
+ T,
3558
3547
  s.validation || {}
3559
3548
  );
3560
3549
  var F = r.meetsValidationRequirements(
3561
3550
  u,
3562
3551
  S,
3563
- $
3552
+ U
3564
3553
  );
3565
3554
  if (F)
3566
3555
  return {
@@ -3599,8 +3588,8 @@ function Ot(e) {
3599
3588
  const c = e.api.CancelToken.source();
3600
3589
  return i.config.cancelToken = c.token, {
3601
3590
  promise: e.api.post(S, s, i.config),
3602
- cancel(v) {
3603
- c.cancel(v || "Operation canceled by the user.");
3591
+ cancel(b) {
3592
+ c.cancel(b || "Operation canceled by the user.");
3604
3593
  }
3605
3594
  };
3606
3595
  } else {
@@ -3643,7 +3632,7 @@ function Ot(e) {
3643
3632
  return s;
3644
3633
  }, r;
3645
3634
  }
3646
- function Mt(e) {
3635
+ function kt(e) {
3647
3636
  var r = {}, a;
3648
3637
  return r.countries = async function() {
3649
3638
  return a || (a = new Promise(async function(t, n) {
@@ -3653,7 +3642,7 @@ function Mt(e) {
3653
3642
  })), a;
3654
3643
  }, r;
3655
3644
  }
3656
- function kt(e) {
3645
+ function Rt(e) {
3657
3646
  var r = {};
3658
3647
  function a() {
3659
3648
  return !(typeof window > "u" || !window.navigator || !window.navigator.geolocation);
@@ -3662,7 +3651,7 @@ function kt(e) {
3662
3651
  function l(i) {
3663
3652
  return i * (Math.PI / 180);
3664
3653
  }
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;
3654
+ var p = 6371e3, y = l(o - t), w = l(m - n), v = 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(v), Math.sqrt(1 - v)), s = p * u;
3666
3655
  return s;
3667
3656
  }, r.getPosition = async function() {
3668
3657
  return a() ? (console.log("qik:geo: getting location"), new Promise(function(t, n) {
@@ -4396,7 +4385,7 @@ function kt(e) {
4396
4385
  }
4397
4386
  }, r;
4398
4387
  }
4399
- const It = function(e, r) {
4388
+ const Tt = function(e, r) {
4400
4389
  if (r = r || "production", !e.auth)
4401
4390
  throw new Error("Can't Instantiate QikSocket before QikAuth exists");
4402
4391
  const a = e.utils.guid();
@@ -4407,11 +4396,11 @@ const It = function(e, r) {
4407
4396
  windowID: a,
4408
4397
  autoreconnect: !0
4409
4398
  }, n, o = {};
4410
- const m = {}, l = new je();
4399
+ const m = {}, l = new De();
4411
4400
  l.bootstrap(t), t.channel = async function(i) {
4412
4401
  if (o[i])
4413
4402
  return o[i];
4414
- const S = new je();
4403
+ const S = new De();
4415
4404
  o[i] = S, t.connected || await t.connect(), t.subscribe(i), t.addEventListener(i, f);
4416
4405
  function f(c) {
4417
4406
  S.dispatch("message", c);
@@ -4429,7 +4418,7 @@ const It = function(e, r) {
4429
4418
  function w(i) {
4430
4419
  console.log("[event] socketError", event), t.debug && console.log("[socket] Error", i), l.dispatch("error", i);
4431
4420
  }
4432
- function A(i) {
4421
+ function v(i) {
4433
4422
  const S = JSON.parse(i.data);
4434
4423
  t.debug && console.log("[socket] message received", S), l.dispatch("message", S), S.channel && l.dispatch(S.channel, S);
4435
4424
  }
@@ -4454,7 +4443,7 @@ const It = function(e, r) {
4454
4443
  t.debug && console.log("[socket] - Must be authenticated to connect to socket");
4455
4444
  return;
4456
4445
  }
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();
4446
+ 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", v), t.debug && console.log("[socket] - Connected with event listeners"), s();
4458
4447
  }, t.reconnect = async function() {
4459
4448
  if (t.connected)
4460
4449
  return;
@@ -4469,7 +4458,7 @@ const It = function(e, r) {
4469
4458
  return;
4470
4459
  }
4471
4460
  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;
4461
+ t.autoreconnect = !1, n.close(), n.removeEventListener("close", y), n.removeEventListener("error", w), n.removeEventListener("open", p), n.removeEventListener("message", v), n = null, y({ wasClean: !0 }), t.autoreconnect = i;
4473
4462
  }, t.disconnect = t.close, t.subscribe = async function(i) {
4474
4463
  if (!n) {
4475
4464
  console.log("[socket] - Can't subscribe to channel as socket is not connected");
@@ -4490,7 +4479,7 @@ const It = function(e, r) {
4490
4479
  }), delete m[i], l.dispatch("unsubscribe", i), t.debug && console.log(`[socket] - unsubscribed from ${i}`);
4491
4480
  }, t;
4492
4481
  };
4493
- function Nt(e) {
4482
+ function Ft(e) {
4494
4483
  switch (e || (e = {
4495
4484
  // apiURL,
4496
4485
  // applicationToken,
@@ -4507,16 +4496,14 @@ function Nt(e) {
4507
4496
  break;
4508
4497
  }
4509
4498
  const r = Object.assign(e, {
4510
- //Other options
4511
- // domain:'',
4512
4499
  version: vr,
4513
4500
  global: {}
4514
4501
  });
4515
4502
  Object.defineProperty(r, "cache", {
4516
- value: xt,
4503
+ value: Ot,
4517
4504
  writable: !1
4518
4505
  });
4519
- const t = k;
4506
+ const t = I;
4520
4507
  Object.defineProperty(r, "utils", {
4521
4508
  value: t,
4522
4509
  writable: !1
@@ -4524,11 +4511,11 @@ function Nt(e) {
4524
4511
  value: q,
4525
4512
  writable: !1
4526
4513
  });
4527
- const o = new Pt(r);
4514
+ const o = new Ct(r);
4528
4515
  Object.defineProperty(r, "files", {
4529
4516
  value: o,
4530
4517
  writable: !1
4531
- }), new je().bootstrap(r), r.error = function(i) {
4518
+ }), new De().bootstrap(r), r.error = function(i) {
4532
4519
  return r.dispatch("error", t.errorMessage(i));
4533
4520
  }, r.notify = function(i, S) {
4534
4521
  return r.dispatch("notification", { message: i, options: S });
@@ -4538,40 +4525,40 @@ function Nt(e) {
4538
4525
  value: l,
4539
4526
  writable: !1
4540
4527
  });
4541
- const p = new Et(r);
4528
+ const p = new Pt(r);
4542
4529
  Object.defineProperty(r, "auth", {
4543
4530
  value: p,
4544
4531
  writable: !1
4545
4532
  });
4546
- const y = new It(r);
4533
+ const y = new Tt(r);
4547
4534
  Object.defineProperty(r, "socket", {
4548
4535
  value: y,
4549
4536
  writable: !1
4550
4537
  });
4551
- const w = new Ct(r);
4538
+ const w = new Mt(r);
4552
4539
  Object.defineProperty(r, "access", {
4553
4540
  value: w,
4554
4541
  writable: !1
4555
4542
  });
4556
- const A = new Mt(r);
4543
+ const v = new kt(r);
4557
4544
  Object.defineProperty(r, "system", {
4558
- value: A,
4545
+ value: v,
4559
4546
  writable: !1
4560
4547
  });
4561
- const u = new kt(r);
4548
+ const u = new Rt(r);
4562
4549
  Object.defineProperty(r, "geo", {
4563
4550
  value: u,
4564
4551
  writable: !1
4565
4552
  });
4566
- const s = new Ot(r);
4553
+ const s = new It(r);
4567
4554
  return Object.defineProperty(r, "content", {
4568
4555
  value: s,
4569
4556
  writable: !1
4570
4557
  }), r;
4571
4558
  }
4572
- var Tt = `qik ${vr}`;
4573
- console.log(Tt);
4559
+ var _t = `qik ${vr}`;
4560
+ console.log(_t);
4574
4561
  export {
4575
- je as EventDispatcher,
4576
- Nt as default
4562
+ De as EventDispatcher,
4563
+ Ft as default
4577
4564
  };