@qikdev/sdk 1.0.5 → 1.0.6

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
@@ -48,8 +48,8 @@ function Qr() {
48
48
  if (i.length !== 1 || i[0] !== a || !Object.prototype.propertyIsEnumerable.call(r, a))
49
49
  return !1;
50
50
  if (typeof Object.getOwnPropertyDescriptor == "function") {
51
- var m = Object.getOwnPropertyDescriptor(r, a);
52
- if (m.value !== n || m.enumerable !== !0)
51
+ var y = Object.getOwnPropertyDescriptor(r, a);
52
+ if (y.value !== n || y.enumerable !== !0)
53
53
  return !1;
54
54
  }
55
55
  return !0;
@@ -68,45 +68,45 @@ var Ye, Or;
68
68
  function Xr() {
69
69
  if (Or) return Ye;
70
70
  Or = 1;
71
- var e = "Function.prototype.bind called on incompatible ", r = Object.prototype.toString, a = Math.max, t = "[object Function]", n = function(p, y) {
72
- for (var w = [], A = 0; A < p.length; A += 1)
73
- w[A] = p[A];
74
- for (var s = 0; s < y.length; s += 1)
75
- w[s + p.length] = y[s];
71
+ var e = "Function.prototype.bind called on incompatible ", r = Object.prototype.toString, a = Math.max, t = "[object Function]", n = function(p, m) {
72
+ for (var w = [], b = 0; b < p.length; b += 1)
73
+ w[b] = p[b];
74
+ for (var u = 0; u < m.length; u += 1)
75
+ w[u + p.length] = m[u];
76
76
  return w;
77
- }, i = function(p, y) {
78
- for (var w = [], A = y, s = 0; A < p.length; A += 1, s += 1)
79
- w[s] = p[A];
77
+ }, i = function(p, m) {
78
+ for (var w = [], b = m, u = 0; b < p.length; b += 1, u += 1)
79
+ w[u] = p[b];
80
80
  return w;
81
- }, m = function(l, p) {
82
- for (var y = "", w = 0; w < l.length; w += 1)
83
- y += l[w], w + 1 < l.length && (y += p);
84
- return y;
81
+ }, y = function(l, p) {
82
+ for (var m = "", w = 0; w < l.length; w += 1)
83
+ m += l[w], w + 1 < l.length && (m += p);
84
+ return m;
85
85
  };
86
86
  return Ye = function(p) {
87
- var y = this;
88
- if (typeof y != "function" || r.apply(y) !== t)
89
- throw new TypeError(e + y);
90
- for (var w = i(arguments, 1), A, s = function() {
91
- if (this instanceof A) {
92
- var u = y.apply(
87
+ var m = this;
88
+ if (typeof m != "function" || r.apply(m) !== t)
89
+ throw new TypeError(e + m);
90
+ for (var w = i(arguments, 1), b, u = function() {
91
+ if (this instanceof b) {
92
+ var s = m.apply(
93
93
  this,
94
94
  n(w, arguments)
95
95
  );
96
- return Object(u) === u ? u : this;
96
+ return Object(s) === s ? s : this;
97
97
  }
98
- return y.apply(
98
+ return m.apply(
99
99
  p,
100
100
  n(w, arguments)
101
101
  );
102
- }, o = a(0, y.length - w.length), f = [], g = 0; g < o; g++)
103
- f[g] = "$" + g;
104
- if (A = Function("binder", "return function (" + m(f, ",") + "){ return binder.apply(this,arguments); }")(s), y.prototype) {
102
+ }, o = a(0, m.length - w.length), f = [], h = 0; h < o; h++)
103
+ f[h] = "$" + h;
104
+ if (b = Function("binder", "return function (" + y(f, ",") + "){ return binder.apply(this,arguments); }")(u), m.prototype) {
105
105
  var c = function() {
106
106
  };
107
- c.prototype = y.prototype, A.prototype = new c(), c.prototype = null;
107
+ c.prototype = m.prototype, b.prototype = new c(), c.prototype = null;
108
108
  }
109
- return A;
109
+ return b;
110
110
  }, Ye;
111
111
  }
112
112
  var Xe, Mr;
@@ -139,25 +139,25 @@ function hr() {
139
139
  } catch {
140
140
  i = null;
141
141
  }
142
- var m = function() {
142
+ var y = function() {
143
143
  throw new t();
144
144
  }, l = i ? (function() {
145
145
  try {
146
- return arguments.callee, m;
146
+ return arguments.callee, y;
147
147
  } catch {
148
148
  try {
149
149
  return i(arguments, "callee").get;
150
150
  } catch {
151
- return m;
151
+ return y;
152
152
  }
153
153
  }
154
- })() : m, p = Yr()(), y = Object.getPrototypeOf || function($) {
154
+ })() : y, p = Yr()(), m = Object.getPrototypeOf || function($) {
155
155
  return $.__proto__;
156
- }, w = {}, A = typeof Uint8Array > "u" ? e : y(Uint8Array), s = {
156
+ }, w = {}, b = typeof Uint8Array > "u" ? e : m(Uint8Array), u = {
157
157
  "%AggregateError%": typeof AggregateError > "u" ? e : AggregateError,
158
158
  "%Array%": Array,
159
159
  "%ArrayBuffer%": typeof ArrayBuffer > "u" ? e : ArrayBuffer,
160
- "%ArrayIteratorPrototype%": p ? y([][Symbol.iterator]()) : e,
160
+ "%ArrayIteratorPrototype%": p ? m([][Symbol.iterator]()) : e,
161
161
  "%AsyncFromSyncIteratorPrototype%": e,
162
162
  "%AsyncFunction%": w,
163
163
  "%AsyncGenerator%": w,
@@ -186,10 +186,10 @@ function hr() {
186
186
  "%Int32Array%": typeof Int32Array > "u" ? e : Int32Array,
187
187
  "%isFinite%": isFinite,
188
188
  "%isNaN%": isNaN,
189
- "%IteratorPrototype%": p ? y(y([][Symbol.iterator]())) : e,
189
+ "%IteratorPrototype%": p ? m(m([][Symbol.iterator]())) : e,
190
190
  "%JSON%": typeof JSON == "object" ? JSON : e,
191
191
  "%Map%": typeof Map > "u" ? e : Map,
192
- "%MapIteratorPrototype%": typeof Map > "u" || !p ? e : y((/* @__PURE__ */ new Map())[Symbol.iterator]()),
192
+ "%MapIteratorPrototype%": typeof Map > "u" || !p ? e : m((/* @__PURE__ */ new Map())[Symbol.iterator]()),
193
193
  "%Math%": Math,
194
194
  "%Number%": Number,
195
195
  "%Object%": Object,
@@ -202,14 +202,14 @@ function hr() {
202
202
  "%Reflect%": typeof Reflect > "u" ? e : Reflect,
203
203
  "%RegExp%": RegExp,
204
204
  "%Set%": typeof Set > "u" ? e : Set,
205
- "%SetIteratorPrototype%": typeof Set > "u" || !p ? e : y((/* @__PURE__ */ new Set())[Symbol.iterator]()),
205
+ "%SetIteratorPrototype%": typeof Set > "u" || !p ? e : m((/* @__PURE__ */ new Set())[Symbol.iterator]()),
206
206
  "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? e : SharedArrayBuffer,
207
207
  "%String%": String,
208
- "%StringIteratorPrototype%": p ? y(""[Symbol.iterator]()) : e,
208
+ "%StringIteratorPrototype%": p ? m(""[Symbol.iterator]()) : e,
209
209
  "%Symbol%": p ? Symbol : e,
210
210
  "%SyntaxError%": r,
211
211
  "%ThrowTypeError%": l,
212
- "%TypedArray%": A,
212
+ "%TypedArray%": b,
213
213
  "%TypeError%": t,
214
214
  "%Uint8Array%": typeof Uint8Array > "u" ? e : Uint8Array,
215
215
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? e : Uint8ClampedArray,
@@ -232,9 +232,9 @@ function hr() {
232
232
  I && (F = I.prototype);
233
233
  } else if (N === "%AsyncIteratorPrototype%") {
234
234
  var k = $("%AsyncGenerator%");
235
- k && (F = y(k.prototype));
235
+ k && (F = m(k.prototype));
236
236
  }
237
- return s[N] = F, F;
237
+ return u[N] = F, F;
238
238
  }, f = {
239
239
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
240
240
  "%ArrayPrototype%": ["Array", "prototype"],
@@ -287,7 +287,7 @@ function hr() {
287
287
  "%URIErrorPrototype%": ["URIError", "prototype"],
288
288
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
289
289
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
290
- }, g = yr(), c = et(), u = g.call(Function.call, Array.prototype.concat), b = g.call(Function.apply, Array.prototype.splice), S = g.call(Function.call, String.prototype.replace), P = g.call(Function.call, String.prototype.slice), x = g.call(Function.call, RegExp.prototype.exec), T = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, L = /\\(\\)?/g, M = function(N) {
290
+ }, h = yr(), c = et(), s = h.call(Function.call, Array.prototype.concat), A = h.call(Function.apply, Array.prototype.splice), S = h.call(Function.call, String.prototype.replace), P = h.call(Function.call, String.prototype.slice), x = h.call(Function.call, RegExp.prototype.exec), T = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, L = /\\(\\)?/g, M = function(N) {
291
291
  var F = P(N, 0, 1), I = P(N, -1);
292
292
  if (F === "%" && I !== "%")
293
293
  throw new r("invalid intrinsic syntax, expected closing `%`");
@@ -299,8 +299,8 @@ function hr() {
299
299
  }), k;
300
300
  }, V = function(N, F) {
301
301
  var I = N, k;
302
- if (c(f, I) && (k = f[I], I = "%" + k[0] + "%"), c(s, I)) {
303
- var U = s[I];
302
+ if (c(f, I) && (k = f[I], I = "%" + k[0] + "%"), c(u, I)) {
303
+ var U = u[I];
304
304
  if (U === w && (U = o(I)), typeof U > "u" && !F)
305
305
  throw new t("intrinsic " + N + " exists, but is not available. Please file an issue!");
306
306
  return {
@@ -319,13 +319,13 @@ function hr() {
319
319
  if (x(/^%?[^%]*%?$/, N) === null)
320
320
  throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
321
321
  var I = M(N), k = I.length > 0 ? I[0] : "", U = V("%" + k + "%", F), z = U.name, _ = U.value, Z = !1, Q = U.alias;
322
- Q && (k = Q[0], b(I, u([0, 1], Q)));
322
+ Q && (k = Q[0], A(I, s([0, 1], Q)));
323
323
  for (var ne = 1, X = !0; ne < I.length; ne += 1) {
324
324
  var W = I[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), k += "." + W, z = "%" + k + "%", c(s, z))
328
- _ = s[z];
327
+ if ((W === "constructor" || !X) && (Z = !0), k += "." + W, z = "%" + k + "%", c(u, z))
328
+ _ = u[z];
329
329
  else if (_ != null) {
330
330
  if (!(W in _)) {
331
331
  if (!F)
@@ -337,7 +337,7 @@ function hr() {
337
337
  X = !!te, X && "get" in te && !("originalValue" in te.get) ? _ = te.get : _ = _[W];
338
338
  } else
339
339
  X = c(_, W), _ = _[W];
340
- X && !Z && (s[z] = _);
340
+ X && !Z && (u[z] = _);
341
341
  }
342
342
  }
343
343
  return _;
@@ -346,29 +346,29 @@ function hr() {
346
346
  var tr = { exports: {} }, Ir;
347
347
  function rt() {
348
348
  return Ir || (Ir = 1, (function(e) {
349
- var r = yr(), a = hr(), t = a("%Function.prototype.apply%"), n = a("%Function.prototype.call%"), i = a("%Reflect.apply%", !0) || r.call(n, t), m = a("%Object.getOwnPropertyDescriptor%", !0), l = a("%Object.defineProperty%", !0), p = a("%Math.max%");
349
+ var r = yr(), a = hr(), t = a("%Function.prototype.apply%"), n = a("%Function.prototype.call%"), i = a("%Reflect.apply%", !0) || r.call(n, t), y = a("%Object.getOwnPropertyDescriptor%", !0), l = a("%Object.defineProperty%", !0), p = a("%Math.max%");
350
350
  if (l)
351
351
  try {
352
352
  l({}, "a", { value: 1 });
353
353
  } catch {
354
354
  l = null;
355
355
  }
356
- e.exports = function(A) {
357
- var s = i(r, n, arguments);
358
- if (m && l) {
359
- var o = m(s, "length");
356
+ e.exports = function(b) {
357
+ var u = i(r, n, arguments);
358
+ if (y && l) {
359
+ var o = y(u, "length");
360
360
  o.configurable && l(
361
- s,
361
+ u,
362
362
  "length",
363
- { value: 1 + p(0, A.length - (arguments.length - 1)) }
363
+ { value: 1 + p(0, b.length - (arguments.length - 1)) }
364
364
  );
365
365
  }
366
- return s;
366
+ return u;
367
367
  };
368
- var y = function() {
368
+ var m = function() {
369
369
  return i(r, t, arguments);
370
370
  };
371
- l ? l(e.exports, "apply", { value: y }) : e.exports.apply = y;
371
+ l ? l(e.exports, "apply", { value: m }) : e.exports.apply = m;
372
372
  })(tr)), tr.exports;
373
373
  }
374
374
  var ar, kr;
@@ -377,8 +377,8 @@ function tt() {
377
377
  kr = 1;
378
378
  var e = hr(), r = rt(), a = r(e("String.prototype.indexOf"));
379
379
  return ar = function(n, i) {
380
- var m = e(n, !!i);
381
- return typeof m == "function" && a(n, ".prototype.") > -1 ? r(m) : m;
380
+ var y = e(n, !!i);
381
+ return typeof y == "function" && a(n, ".prototype.") > -1 ? r(y) : y;
382
382
  }, ar;
383
383
  }
384
384
  const at = {}, nt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -389,24 +389,24 @@ var nr, _r;
389
389
  function ot() {
390
390
  if (_r) return nr;
391
391
  _r = 1;
392
- var e = typeof Map == "function" && Map.prototype, r = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, a = e && r && typeof r.get == "function" ? r.get : null, t = e && Map.prototype.forEach, n = typeof Set == "function" && Set.prototype, i = Object.getOwnPropertyDescriptor && n ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, m = n && i && typeof i.get == "function" ? i.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, s = typeof WeakRef == "function" && WeakRef.prototype, o = s ? WeakRef.prototype.deref : null, f = Boolean.prototype.valueOf, g = Object.prototype.toString, c = Function.prototype.toString, u = String.prototype.match, b = String.prototype.slice, S = String.prototype.replace, P = String.prototype.toUpperCase, x = String.prototype.toLowerCase, T = RegExp.prototype.test, L = Array.prototype.concat, M = Array.prototype.join, V = Array.prototype.slice, $ = Math.floor, N = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, F = Object.getOwnPropertySymbols, I = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, k = typeof Symbol == "function" && typeof Symbol.iterator == "object", U = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === k || !0) ? Symbol.toStringTag : null, z = Object.prototype.propertyIsEnumerable, _ = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(h) {
393
- return h.__proto__;
392
+ var e = typeof Map == "function" && Map.prototype, r = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, a = e && r && typeof r.get == "function" ? r.get : null, t = e && Map.prototype.forEach, n = typeof Set == "function" && Set.prototype, i = Object.getOwnPropertyDescriptor && n ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, y = n && i && typeof i.get == "function" ? i.get : null, l = n && Set.prototype.forEach, p = typeof WeakMap == "function" && WeakMap.prototype, m = p ? WeakMap.prototype.has : null, w = typeof WeakSet == "function" && WeakSet.prototype, b = w ? WeakSet.prototype.has : null, u = typeof WeakRef == "function" && WeakRef.prototype, o = u ? WeakRef.prototype.deref : null, f = Boolean.prototype.valueOf, h = Object.prototype.toString, c = Function.prototype.toString, s = String.prototype.match, A = String.prototype.slice, S = String.prototype.replace, P = String.prototype.toUpperCase, x = String.prototype.toLowerCase, T = RegExp.prototype.test, L = Array.prototype.concat, M = Array.prototype.join, V = Array.prototype.slice, $ = Math.floor, N = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, F = Object.getOwnPropertySymbols, I = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, k = typeof Symbol == "function" && typeof Symbol.iterator == "object", U = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === k || !0) ? Symbol.toStringTag : null, z = Object.prototype.propertyIsEnumerable, _ = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(g) {
393
+ return g.__proto__;
394
394
  } : null);
395
- function Z(h, v) {
396
- if (h === 1 / 0 || h === -1 / 0 || h !== h || h && h > -1e3 && h < 1e3 || T.call(/e/, v))
395
+ function Z(g, v) {
396
+ if (g === 1 / 0 || g === -1 / 0 || g !== g || g && g > -1e3 && g < 1e3 || T.call(/e/, v))
397
397
  return v;
398
398
  var D = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
399
- if (typeof h == "number") {
400
- var d = h < 0 ? -$(-h) : $(h);
401
- if (d !== h) {
402
- var E = String(d), C = b.call(v, E.length + 1);
399
+ if (typeof g == "number") {
400
+ var d = g < 0 ? -$(-g) : $(g);
401
+ if (d !== g) {
402
+ var E = String(d), C = A.call(v, E.length + 1);
403
403
  return S.call(E, D, "$&_") + "." + S.call(S.call(C, /([0-9]{3})/g, "$&_"), /_$/, "");
404
404
  }
405
405
  }
406
406
  return S.call(v, D, "$&_");
407
407
  }
408
408
  var Q = it, ne = Q.custom, X = se(ne) ? ne : null;
409
- nr = function h(v, D, d, E) {
409
+ nr = function g(v, D, d, E) {
410
410
  var C = D || {};
411
411
  if (J(C, "quoteStyle") && C.quoteStyle !== "single" && C.quoteStyle !== "double")
412
412
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
@@ -451,9 +451,9 @@ function ot() {
451
451
  var xr = {
452
452
  depth: C.depth
453
453
  };
454
- return J(C, "quoteStyle") && (xr.quoteStyle = C.quoteStyle), h(Me, xr, d + 1, E);
454
+ return J(C, "quoteStyle") && (xr.quoteStyle = C.quoteStyle), g(Me, xr, d + 1, E);
455
455
  }
456
- return h(Me, C, d + 1, E);
456
+ return g(Me, C, d + 1, E);
457
457
  }
458
458
  if (typeof v == "function" && !ce(v)) {
459
459
  var Y = Re(v), Ee = ge(v, H);
@@ -494,7 +494,7 @@ function ot() {
494
494
  var Sr = [];
495
495
  return l.call(v, function(Me) {
496
496
  Sr.push(H(Me, v));
497
- }), we("Set", m.call(v), Sr, j);
497
+ }), we("Set", y.call(v), Sr, j);
498
498
  }
499
499
  if (me(v))
500
500
  return fe("WeakMap");
@@ -511,166 +511,166 @@ function ot() {
511
511
  if (oe(v))
512
512
  return le(H(String(v)));
513
513
  if (!te(v) && !ce(v)) {
514
- var He = ge(v, H), wr = _ ? _(v) === Object.prototype : v instanceof Object || v.constructor === Object, Je = v instanceof Object ? "" : "null prototype", Er = !wr && U && Object(v) === v && U in v ? b.call(ee(v), 8, -1) : Je ? "Object" : "", Hr = wr || typeof v.constructor != "function" ? "" : v.constructor.name ? v.constructor.name + " " : "", qe = Hr + (Er || Je ? "[" + M.call(L.call([], Er || [], Je || []), ": ") + "] " : "");
514
+ var He = ge(v, H), wr = _ ? _(v) === Object.prototype : v instanceof Object || v.constructor === Object, Je = v instanceof Object ? "" : "null prototype", Er = !wr && U && Object(v) === v && U in v ? A.call(ee(v), 8, -1) : Je ? "Object" : "", Hr = wr || typeof v.constructor != "function" ? "" : v.constructor.name ? v.constructor.name + " " : "", qe = Hr + (Er || Je ? "[" + M.call(L.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(v);
518
518
  };
519
- function W(h, v, D) {
519
+ function W(g, v, D) {
520
520
  var d = (D.quoteStyle || v) === "double" ? '"' : "'";
521
- return d + h + d;
521
+ return d + g + d;
522
522
  }
523
- function ie(h) {
524
- return S.call(String(h), /"/g, "&quot;");
523
+ function ie(g) {
524
+ return S.call(String(g), /"/g, "&quot;");
525
525
  }
526
- function re(h) {
527
- return ee(h) === "[object Array]" && (!U || !(typeof h == "object" && U in h));
526
+ function re(g) {
527
+ return ee(g) === "[object Array]" && (!U || !(typeof g == "object" && U in g));
528
528
  }
529
- function te(h) {
530
- return ee(h) === "[object Date]" && (!U || !(typeof h == "object" && U in h));
529
+ function te(g) {
530
+ return ee(g) === "[object Date]" && (!U || !(typeof g == "object" && U in g));
531
531
  }
532
- function ce(h) {
533
- return ee(h) === "[object RegExp]" && (!U || !(typeof h == "object" && U in h));
532
+ function ce(g) {
533
+ return ee(g) === "[object RegExp]" && (!U || !(typeof g == "object" && U in g));
534
534
  }
535
- function ue(h) {
536
- return ee(h) === "[object Error]" && (!U || !(typeof h == "object" && U in h));
535
+ function ue(g) {
536
+ return ee(g) === "[object Error]" && (!U || !(typeof g == "object" && U in g));
537
537
  }
538
- function oe(h) {
539
- return ee(h) === "[object String]" && (!U || !(typeof h == "object" && U in h));
538
+ function oe(g) {
539
+ return ee(g) === "[object String]" && (!U || !(typeof g == "object" && U in g));
540
540
  }
541
- function de(h) {
542
- return ee(h) === "[object Number]" && (!U || !(typeof h == "object" && U in h));
541
+ function de(g) {
542
+ return ee(g) === "[object Number]" && (!U || !(typeof g == "object" && U in g));
543
543
  }
544
- function pe(h) {
545
- return ee(h) === "[object Boolean]" && (!U || !(typeof h == "object" && U in h));
544
+ function pe(g) {
545
+ return ee(g) === "[object Boolean]" && (!U || !(typeof g == "object" && U in g));
546
546
  }
547
- function se(h) {
547
+ function se(g) {
548
548
  if (k)
549
- return h && typeof h == "object" && h instanceof Symbol;
550
- if (typeof h == "symbol")
549
+ return g && typeof g == "object" && g instanceof Symbol;
550
+ if (typeof g == "symbol")
551
551
  return !0;
552
- if (!h || typeof h != "object" || !I)
552
+ if (!g || typeof g != "object" || !I)
553
553
  return !1;
554
554
  try {
555
- return I.call(h), !0;
555
+ return I.call(g), !0;
556
556
  } catch {
557
557
  }
558
558
  return !1;
559
559
  }
560
- function ye(h) {
561
- if (!h || typeof h != "object" || !N)
560
+ function ye(g) {
561
+ if (!g || typeof g != "object" || !N)
562
562
  return !1;
563
563
  try {
564
- return N.call(h), !0;
564
+ return N.call(g), !0;
565
565
  } catch {
566
566
  }
567
567
  return !1;
568
568
  }
569
- var Se = Object.prototype.hasOwnProperty || function(h) {
570
- return h in this;
569
+ var Se = Object.prototype.hasOwnProperty || function(g) {
570
+ return g in this;
571
571
  };
572
- function J(h, v) {
573
- return Se.call(h, v);
572
+ function J(g, v) {
573
+ return Se.call(g, v);
574
574
  }
575
- function ee(h) {
576
- return g.call(h);
575
+ function ee(g) {
576
+ return h.call(g);
577
577
  }
578
- function Re(h) {
579
- if (h.name)
580
- return h.name;
581
- var v = u.call(c.call(h), /^function\s*([\w$]+)/);
578
+ function Re(g) {
579
+ if (g.name)
580
+ return g.name;
581
+ var v = s.call(c.call(g), /^function\s*([\w$]+)/);
582
582
  return v ? v[1] : null;
583
583
  }
584
- function xe(h, v) {
585
- if (h.indexOf)
586
- return h.indexOf(v);
587
- for (var D = 0, d = h.length; D < d; D++)
588
- if (h[D] === v)
584
+ function xe(g, v) {
585
+ if (g.indexOf)
586
+ return g.indexOf(v);
587
+ for (var D = 0, d = g.length; D < d; D++)
588
+ if (g[D] === v)
589
589
  return D;
590
590
  return -1;
591
591
  }
592
- function Te(h) {
593
- if (!a || !h || typeof h != "object")
592
+ function Te(g) {
593
+ if (!a || !g || typeof g != "object")
594
594
  return !1;
595
595
  try {
596
- a.call(h);
596
+ a.call(g);
597
597
  try {
598
- m.call(h);
598
+ y.call(g);
599
599
  } catch {
600
600
  return !0;
601
601
  }
602
- return h instanceof Map;
602
+ return g instanceof Map;
603
603
  } catch {
604
604
  }
605
605
  return !1;
606
606
  }
607
- function me(h) {
608
- if (!y || !h || typeof h != "object")
607
+ function me(g) {
608
+ if (!m || !g || typeof g != "object")
609
609
  return !1;
610
610
  try {
611
- y.call(h, y);
611
+ m.call(g, m);
612
612
  try {
613
- A.call(h, A);
613
+ b.call(g, b);
614
614
  } catch {
615
615
  return !0;
616
616
  }
617
- return h instanceof WeakMap;
617
+ return g instanceof WeakMap;
618
618
  } catch {
619
619
  }
620
620
  return !1;
621
621
  }
622
- function Pe(h) {
623
- if (!o || !h || typeof h != "object")
622
+ function Pe(g) {
623
+ if (!o || !g || typeof g != "object")
624
624
  return !1;
625
625
  try {
626
- return o.call(h), !0;
626
+ return o.call(g), !0;
627
627
  } catch {
628
628
  }
629
629
  return !1;
630
630
  }
631
- function Ie(h) {
632
- if (!m || !h || typeof h != "object")
631
+ function Ie(g) {
632
+ if (!y || !g || typeof g != "object")
633
633
  return !1;
634
634
  try {
635
- m.call(h);
635
+ y.call(g);
636
636
  try {
637
- a.call(h);
637
+ a.call(g);
638
638
  } catch {
639
639
  return !0;
640
640
  }
641
- return h instanceof Set;
641
+ return g instanceof Set;
642
642
  } catch {
643
643
  }
644
644
  return !1;
645
645
  }
646
- function ke(h) {
647
- if (!A || !h || typeof h != "object")
646
+ function ke(g) {
647
+ if (!b || !g || typeof g != "object")
648
648
  return !1;
649
649
  try {
650
- A.call(h, A);
650
+ b.call(g, b);
651
651
  try {
652
- y.call(h, y);
652
+ m.call(g, m);
653
653
  } catch {
654
654
  return !0;
655
655
  }
656
- return h instanceof WeakSet;
656
+ return g instanceof WeakSet;
657
657
  } catch {
658
658
  }
659
659
  return !1;
660
660
  }
661
- function _e(h) {
662
- return !h || typeof h != "object" ? !1 : typeof HTMLElement < "u" && h instanceof HTMLElement ? !0 : typeof h.nodeName == "string" && typeof h.getAttribute == "function";
661
+ function _e(g) {
662
+ return !g || typeof g != "object" ? !1 : typeof HTMLElement < "u" && g instanceof HTMLElement ? !0 : typeof g.nodeName == "string" && typeof g.getAttribute == "function";
663
663
  }
664
- function Ce(h, v) {
665
- if (h.length > v.maxStringLength) {
666
- var D = h.length - v.maxStringLength, d = "... " + D + " more character" + (D > 1 ? "s" : "");
667
- return Ce(b.call(h, 0, v.maxStringLength), v) + d;
664
+ function Ce(g, v) {
665
+ if (g.length > v.maxStringLength) {
666
+ var D = g.length - v.maxStringLength, d = "... " + D + " more character" + (D > 1 ? "s" : "");
667
+ return Ce(A.call(g, 0, v.maxStringLength), v) + d;
668
668
  }
669
- var E = S.call(S.call(h, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Le);
669
+ var E = S.call(S.call(g, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Le);
670
670
  return W(E, "single", v);
671
671
  }
672
- function Le(h) {
673
- var v = h.charCodeAt(0), D = {
672
+ function Le(g) {
673
+ var v = g.charCodeAt(0), D = {
674
674
  8: "b",
675
675
  9: "t",
676
676
  10: "n",
@@ -679,29 +679,29 @@ function ot() {
679
679
  }[v];
680
680
  return D ? "\\" + D : "\\x" + (v < 16 ? "0" : "") + P.call(v.toString(16));
681
681
  }
682
- function le(h) {
683
- return "Object(" + h + ")";
682
+ function le(g) {
683
+ return "Object(" + g + ")";
684
684
  }
685
- function fe(h) {
686
- return h + " { ? }";
685
+ function fe(g) {
686
+ return g + " { ? }";
687
687
  }
688
- function we(h, v, D, d) {
688
+ function we(g, v, D, d) {
689
689
  var E = d ? he(D, d) : M.call(D, ", ");
690
- return h + " (" + v + ") {" + E + "}";
690
+ return g + " (" + v + ") {" + E + "}";
691
691
  }
692
- function Oe(h) {
693
- for (var v = 0; v < h.length; v++)
694
- if (xe(h[v], `
692
+ function Oe(g) {
693
+ for (var v = 0; v < g.length; v++)
694
+ if (xe(g[v], `
695
695
  `) >= 0)
696
696
  return !1;
697
697
  return !0;
698
698
  }
699
- function Ne(h, v) {
699
+ function Ne(g, v) {
700
700
  var D;
701
- if (h.indent === " ")
701
+ if (g.indent === " ")
702
702
  D = " ";
703
- else if (typeof h.indent == "number" && h.indent > 0)
704
- D = M.call(Array(h.indent + 1), " ");
703
+ else if (typeof g.indent == "number" && g.indent > 0)
704
+ D = M.call(Array(g.indent + 1), " ");
705
705
  else
706
706
  return null;
707
707
  return {
@@ -709,32 +709,32 @@ function ot() {
709
709
  prev: M.call(Array(v + 1), D)
710
710
  };
711
711
  }
712
- function he(h, v) {
713
- if (h.length === 0)
712
+ function he(g, v) {
713
+ if (g.length === 0)
714
714
  return "";
715
715
  var D = `
716
716
  ` + v.prev + v.base;
717
- return D + M.call(h, "," + D) + `
717
+ return D + M.call(g, "," + D) + `
718
718
  ` + v.prev;
719
719
  }
720
- function ge(h, v) {
721
- var D = re(h), d = [];
720
+ function ge(g, v) {
721
+ var D = re(g), d = [];
722
722
  if (D) {
723
- d.length = h.length;
724
- for (var E = 0; E < h.length; E++)
725
- d[E] = J(h, E) ? v(h[E], h) : "";
723
+ d.length = g.length;
724
+ for (var E = 0; E < g.length; E++)
725
+ d[E] = J(g, E) ? v(g[E], g) : "";
726
726
  }
727
- var C = typeof F == "function" ? F(h) : [], G;
727
+ var C = typeof F == "function" ? F(g) : [], G;
728
728
  if (k) {
729
729
  G = {};
730
730
  for (var ae = 0; ae < C.length; ae++)
731
731
  G["$" + C[ae]] = C[ae];
732
732
  }
733
- for (var K in h)
734
- J(h, K) && (D && String(Number(K)) === K && K < h.length || k && G["$" + K] instanceof Symbol || (T.call(/[^\w$]/, K) ? d.push(v(K, h) + ": " + v(h[K], h)) : d.push(K + ": " + v(h[K], h))));
733
+ for (var K in g)
734
+ J(g, K) && (D && String(Number(K)) === K && K < g.length || k && G["$" + K] instanceof Symbol || (T.call(/[^\w$]/, K) ? d.push(v(K, g) + ": " + v(g[K], g)) : d.push(K + ": " + v(g[K], g))));
735
735
  if (typeof F == "function")
736
736
  for (var O = 0; O < C.length; O++)
737
- z.call(h, C[O]) && d.push("[" + v(C[O]) + "]: " + v(h[C[O]], h));
737
+ z.call(g, C[O]) && d.push("[" + v(C[O]) + "]: " + v(g[C[O]], g));
738
738
  return d;
739
739
  }
740
740
  return nr;
@@ -743,53 +743,53 @@ var ir, Lr;
743
743
  function st() {
744
744
  if (Lr) return ir;
745
745
  Lr = 1;
746
- var e = hr(), r = tt(), a = /* @__PURE__ */ ot(), t = e("%TypeError%"), n = e("%WeakMap%", !0), i = 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), s = function(c, u) {
747
- for (var b = c, S; (S = b.next) !== null; b = S)
748
- if (S.key === u)
749
- return b.next = S.next, S.next = c.next, c.next = S, S;
750
- }, o = function(c, u) {
751
- var b = s(c, u);
752
- return b && b.value;
753
- }, f = function(c, u, b) {
754
- var S = s(c, u);
755
- S ? S.value = b : c.next = {
746
+ var e = hr(), r = tt(), a = /* @__PURE__ */ ot(), t = e("%TypeError%"), n = e("%WeakMap%", !0), i = e("%Map%", !0), y = r("WeakMap.prototype.get", !0), l = r("WeakMap.prototype.set", !0), p = r("WeakMap.prototype.has", !0), m = r("Map.prototype.get", !0), w = r("Map.prototype.set", !0), b = r("Map.prototype.has", !0), u = function(c, s) {
747
+ for (var A = c, S; (S = A.next) !== null; A = S)
748
+ if (S.key === s)
749
+ return A.next = S.next, S.next = c.next, c.next = S, S;
750
+ }, o = function(c, s) {
751
+ var A = u(c, s);
752
+ return A && A.value;
753
+ }, f = function(c, s, A) {
754
+ var S = u(c, s);
755
+ S ? S.value = A : c.next = {
756
756
  // eslint-disable-line no-param-reassign
757
- key: u,
757
+ key: s,
758
758
  next: c.next,
759
- value: b
759
+ value: A
760
760
  };
761
- }, g = function(c, u) {
762
- return !!s(c, u);
761
+ }, h = function(c, s) {
762
+ return !!u(c, s);
763
763
  };
764
764
  return ir = function() {
765
- var u, b, S, P = {
765
+ var s, A, S, P = {
766
766
  assert: function(x) {
767
767
  if (!P.has(x))
768
768
  throw new t("Side channel does not contain " + a(x));
769
769
  },
770
770
  get: function(x) {
771
771
  if (n && x && (typeof x == "object" || typeof x == "function")) {
772
- if (u)
773
- return m(u, x);
772
+ if (s)
773
+ return y(s, x);
774
774
  } else if (i) {
775
- if (b)
776
- return y(b, x);
775
+ if (A)
776
+ return m(A, x);
777
777
  } else if (S)
778
778
  return o(S, x);
779
779
  },
780
780
  has: function(x) {
781
781
  if (n && x && (typeof x == "object" || typeof x == "function")) {
782
- if (u)
783
- return p(u, x);
782
+ if (s)
783
+ return p(s, x);
784
784
  } else if (i) {
785
- if (b)
786
- return A(b, x);
785
+ if (A)
786
+ return b(A, x);
787
787
  } else if (S)
788
- return g(S, x);
788
+ return h(S, x);
789
789
  return !1;
790
790
  },
791
791
  set: function(x, T) {
792
- n && x && (typeof x == "object" || typeof x == "function") ? (u || (u = new n()), l(u, x, T)) : i ? (b || (b = new i()), w(b, x, T)) : (S || (S = { key: {}, next: null }), f(S, x, T));
792
+ n && x && (typeof x == "object" || typeof x == "function") ? (s || (s = new n()), l(s, x, T)) : i ? (A || (A = new i()), w(A, x, T)) : (S || (S = { key: {}, next: null }), f(S, x, T));
793
793
  }
794
794
  };
795
795
  return P;
@@ -822,65 +822,65 @@ function Wr() {
822
822
  if (Fr) return sr;
823
823
  Fr = 1;
824
824
  var e = gr(), r = Object.prototype.hasOwnProperty, a = Array.isArray, t = (function() {
825
- for (var g = [], c = 0; c < 256; ++c)
826
- g.push("%" + ((c < 16 ? "0" : "") + c.toString(16)).toUpperCase());
827
- return g;
825
+ for (var h = [], c = 0; c < 256; ++c)
826
+ h.push("%" + ((c < 16 ? "0" : "") + c.toString(16)).toUpperCase());
827
+ return h;
828
828
  })(), n = function(c) {
829
829
  for (; c.length > 1; ) {
830
- var u = c.pop(), b = u.obj[u.prop];
831
- if (a(b)) {
832
- for (var S = [], P = 0; P < b.length; ++P)
833
- typeof b[P] < "u" && S.push(b[P]);
834
- u.obj[u.prop] = S;
830
+ var s = c.pop(), A = s.obj[s.prop];
831
+ if (a(A)) {
832
+ for (var S = [], P = 0; P < A.length; ++P)
833
+ typeof A[P] < "u" && S.push(A[P]);
834
+ s.obj[s.prop] = S;
835
835
  }
836
836
  }
837
- }, i = function(c, u) {
838
- for (var b = u && u.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, S = 0; S < c.length; ++S)
839
- typeof c[S] < "u" && (b[S] = c[S]);
840
- return b;
841
- }, m = function g(c, u, b) {
842
- if (!u)
837
+ }, i = function(c, s) {
838
+ for (var A = s && s.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, S = 0; S < c.length; ++S)
839
+ typeof c[S] < "u" && (A[S] = c[S]);
840
+ return A;
841
+ }, y = function h(c, s, A) {
842
+ if (!s)
843
843
  return c;
844
- if (typeof u != "object") {
844
+ if (typeof s != "object") {
845
845
  if (a(c))
846
- c.push(u);
846
+ c.push(s);
847
847
  else if (c && typeof c == "object")
848
- (b && (b.plainObjects || b.allowPrototypes) || !r.call(Object.prototype, u)) && (c[u] = !0);
848
+ (A && (A.plainObjects || A.allowPrototypes) || !r.call(Object.prototype, s)) && (c[s] = !0);
849
849
  else
850
- return [c, u];
850
+ return [c, s];
851
851
  return c;
852
852
  }
853
853
  if (!c || typeof c != "object")
854
- return [c].concat(u);
854
+ return [c].concat(s);
855
855
  var S = c;
856
- return a(c) && !a(u) && (S = i(c, b)), a(c) && a(u) ? (u.forEach(function(P, x) {
856
+ return a(c) && !a(s) && (S = i(c, A)), a(c) && a(s) ? (s.forEach(function(P, x) {
857
857
  if (r.call(c, x)) {
858
858
  var T = c[x];
859
- T && typeof T == "object" && P && typeof P == "object" ? c[x] = g(T, P, b) : c.push(P);
859
+ T && typeof T == "object" && P && typeof P == "object" ? c[x] = h(T, P, A) : c.push(P);
860
860
  } else
861
861
  c[x] = P;
862
- }), c) : Object.keys(u).reduce(function(P, x) {
863
- var T = u[x];
864
- return r.call(P, x) ? P[x] = g(P[x], T, b) : P[x] = T, P;
862
+ }), c) : Object.keys(s).reduce(function(P, x) {
863
+ var T = s[x];
864
+ return r.call(P, x) ? P[x] = h(P[x], T, A) : P[x] = T, P;
865
865
  }, S);
866
- }, l = function(c, u) {
867
- return Object.keys(u).reduce(function(b, S) {
868
- return b[S] = u[S], b;
866
+ }, l = function(c, s) {
867
+ return Object.keys(s).reduce(function(A, S) {
868
+ return A[S] = s[S], A;
869
869
  }, c);
870
- }, p = function(g, c, u) {
871
- var b = g.replace(/\+/g, " ");
872
- if (u === "iso-8859-1")
873
- return b.replace(/%[0-9a-f]{2}/gi, unescape);
870
+ }, p = function(h, c, s) {
871
+ var A = h.replace(/\+/g, " ");
872
+ if (s === "iso-8859-1")
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(c, u, b, S, P) {
879
+ }, m = function(c, s, A, S, P) {
880
880
  if (c.length === 0)
881
881
  return c;
882
882
  var x = c;
883
- if (typeof c == "symbol" ? x = Symbol.prototype.toString.call(c) : typeof c != "string" && (x = String(c)), b === "iso-8859-1")
883
+ if (typeof c == "symbol" ? x = Symbol.prototype.toString.call(c) : typeof c != "string" && (x = String(c)), A === "iso-8859-1")
884
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
  });
@@ -906,25 +906,25 @@ function Wr() {
906
906
  }
907
907
  return T;
908
908
  }, w = function(c) {
909
- for (var u = [{ obj: { o: c }, prop: "o" }], b = [], S = 0; S < u.length; ++S)
910
- for (var P = u[S], x = P.obj[P.prop], T = Object.keys(x), L = 0; L < T.length; ++L) {
909
+ for (var s = [{ obj: { o: c }, prop: "o" }], A = [], S = 0; S < s.length; ++S)
910
+ for (var P = s[S], x = P.obj[P.prop], T = Object.keys(x), L = 0; L < T.length; ++L) {
911
911
  var M = T[L], V = x[M];
912
- typeof V == "object" && V !== null && b.indexOf(V) === -1 && (u.push({ obj: x, prop: M }), b.push(V));
912
+ typeof V == "object" && V !== null && A.indexOf(V) === -1 && (s.push({ obj: x, prop: M }), A.push(V));
913
913
  }
914
- return n(u), c;
915
- }, A = function(c) {
914
+ return n(s), c;
915
+ }, b = function(c) {
916
916
  return Object.prototype.toString.call(c) === "[object RegExp]";
917
- }, s = function(c) {
917
+ }, u = function(c) {
918
918
  return !c || typeof c != "object" ? !1 : !!(c.constructor && c.constructor.isBuffer && c.constructor.isBuffer(c));
919
- }, o = function(c, u) {
920
- return [].concat(c, u);
921
- }, f = function(c, u) {
919
+ }, o = function(c, s) {
920
+ return [].concat(c, s);
921
+ }, f = function(c, s) {
922
922
  if (a(c)) {
923
- for (var b = [], S = 0; S < c.length; S += 1)
924
- b.push(u(c[S]));
925
- return b;
923
+ for (var A = [], S = 0; S < c.length; S += 1)
924
+ A.push(s(c[S]));
925
+ return A;
926
926
  }
927
- return u(c);
927
+ return s(c);
928
928
  };
929
929
  return sr = {
930
930
  arrayToObject: i,
@@ -932,11 +932,11 @@ function Wr() {
932
932
  combine: o,
933
933
  compact: w,
934
934
  decode: p,
935
- encode: y,
936
- isBuffer: s,
937
- isRegExp: A,
935
+ encode: m,
936
+ isBuffer: u,
937
+ isRegExp: b,
938
938
  maybeMap: f,
939
- merge: m
939
+ merge: y
940
940
  }, sr;
941
941
  }
942
942
  var ur, Ur;
@@ -944,19 +944,19 @@ function ut() {
944
944
  if (Ur) return ur;
945
945
  Ur = 1;
946
946
  var e = st(), r = Wr(), a = gr(), t = Object.prototype.hasOwnProperty, n = {
947
- brackets: function(u) {
948
- return u + "[]";
947
+ brackets: function(s) {
948
+ return s + "[]";
949
949
  },
950
950
  comma: "comma",
951
- indices: function(u, b) {
952
- return u + "[" + b + "]";
951
+ indices: function(s, A) {
952
+ return s + "[" + A + "]";
953
953
  },
954
- repeat: function(u) {
955
- return u;
954
+ repeat: function(s) {
955
+ return s;
956
956
  }
957
- }, i = Array.isArray, m = String.prototype.split, l = Array.prototype.push, p = function(c, u) {
958
- l.apply(c, i(u) ? u : [u]);
959
- }, y = Date.prototype.toISOString, w = a.default, A = {
957
+ }, i = Array.isArray, y = String.prototype.split, l = Array.prototype.push, p = function(c, s) {
958
+ l.apply(c, i(s) ? s : [s]);
959
+ }, m = Date.prototype.toISOString, w = a.default, b = {
960
960
  addQueryPrefix: !1,
961
961
  allowDots: !1,
962
962
  charset: "utf-8",
@@ -969,16 +969,16 @@ function ut() {
969
969
  formatter: a.formatters[w],
970
970
  // deprecated
971
971
  indices: !1,
972
- serializeDate: function(u) {
973
- return y.call(u);
972
+ serializeDate: function(s) {
973
+ return m.call(s);
974
974
  },
975
975
  skipNulls: !1,
976
976
  strictNullHandling: !1
977
- }, s = function(u) {
978
- return typeof u == "string" || typeof u == "number" || typeof u == "boolean" || typeof u == "symbol" || typeof u == "bigint";
979
- }, o = {}, f = function c(u, b, S, P, x, T, L, M, V, $, N, F, I, k, U, z) {
980
- for (var _ = u, Z = z, Q = 0, ne = !1; (Z = Z.get(o)) !== void 0 && !ne; ) {
981
- var X = Z.get(u);
977
+ }, u = function(s) {
978
+ return typeof s == "string" || typeof s == "number" || typeof s == "boolean" || typeof s == "symbol" || typeof s == "bigint";
979
+ }, o = {}, f = function c(s, A, S, P, x, T, L, M, V, $, N, F, I, k, U, z) {
980
+ for (var _ = s, Z = z, Q = 0, ne = !1; (Z = Z.get(o)) !== void 0 && !ne; ) {
981
+ var X = Z.get(s);
982
982
  if (Q += 1, typeof X < "u") {
983
983
  if (X === Q)
984
984
  throw new RangeError("Cyclic object value");
@@ -986,24 +986,24 @@ function ut() {
986
986
  }
987
987
  typeof Z.get(o) > "u" && (Q = 0);
988
988
  }
989
- if (typeof M == "function" ? _ = M(b, _) : _ instanceof Date ? _ = N(_) : S === "comma" && i(_) && (_ = r.maybeMap(_, function(ee) {
989
+ if (typeof M == "function" ? _ = M(A, _) : _ instanceof Date ? _ = N(_) : S === "comma" && i(_) && (_ = r.maybeMap(_, function(ee) {
990
990
  return ee instanceof Date ? N(ee) : ee;
991
991
  })), _ === null) {
992
992
  if (x)
993
- return L && !k ? L(b, A.encoder, U, "key", F) : b;
993
+ return L && !k ? L(A, b.encoder, U, "key", F) : A;
994
994
  _ = "";
995
995
  }
996
- if (s(_) || r.isBuffer(_)) {
996
+ if (u(_) || r.isBuffer(_)) {
997
997
  if (L) {
998
- var W = k ? b : L(b, A.encoder, U, "key", F);
998
+ var W = k ? A : L(A, b.encoder, U, "key", F);
999
999
  if (S === "comma" && k) {
1000
- for (var ie = m.call(String(_), ","), re = "", te = 0; te < ie.length; ++te)
1001
- re += (te === 0 ? "" : ",") + I(L(ie[te], A.encoder, U, "value", F));
1000
+ for (var ie = y.call(String(_), ","), re = "", te = 0; te < ie.length; ++te)
1001
+ re += (te === 0 ? "" : ",") + I(L(ie[te], b.encoder, U, "value", F));
1002
1002
  return [I(W) + (P && i(_) && ie.length === 1 ? "[]" : "") + "=" + re];
1003
1003
  }
1004
- return [I(W) + "=" + I(L(_, A.encoder, U, "value", F))];
1004
+ return [I(W) + "=" + I(L(_, b.encoder, U, "value", F))];
1005
1005
  }
1006
- return [I(b) + "=" + I(String(_))];
1006
+ return [I(A) + "=" + I(String(_))];
1007
1007
  }
1008
1008
  var ce = [];
1009
1009
  if (typeof _ > "u")
@@ -1017,11 +1017,11 @@ function ut() {
1017
1017
  var oe = Object.keys(_);
1018
1018
  ue = V ? oe.sort(V) : oe;
1019
1019
  }
1020
- for (var de = P && i(_) && _.length === 1 ? b + "[]" : b, pe = 0; pe < ue.length; ++pe) {
1020
+ for (var de = P && i(_) && _.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
1022
  if (!(T && ye === null)) {
1023
1023
  var Se = i(_) ? typeof S == "function" ? S(de, se) : de : de + ($ ? "." + se : "[" + se + "]");
1024
- z.set(u, Q);
1024
+ z.set(s, Q);
1025
1025
  var J = e();
1026
1026
  J.set(o, z), p(ce, c(
1027
1027
  ye,
@@ -1044,56 +1044,56 @@ function ut() {
1044
1044
  }
1045
1045
  }
1046
1046
  return ce;
1047
- }, g = function(u) {
1048
- if (!u)
1049
- return A;
1050
- if (u.encoder !== null && typeof u.encoder < "u" && typeof u.encoder != "function")
1047
+ }, h = function(s) {
1048
+ if (!s)
1049
+ return b;
1050
+ if (s.encoder !== null && typeof s.encoder < "u" && typeof s.encoder != "function")
1051
1051
  throw new TypeError("Encoder has to be a function.");
1052
- var b = u.charset || A.charset;
1053
- if (typeof u.charset < "u" && u.charset !== "utf-8" && u.charset !== "iso-8859-1")
1052
+ var A = s.charset || b.charset;
1053
+ if (typeof s.charset < "u" && s.charset !== "utf-8" && s.charset !== "iso-8859-1")
1054
1054
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1055
1055
  var S = a.default;
1056
- if (typeof u.format < "u") {
1057
- if (!t.call(a.formatters, u.format))
1056
+ if (typeof s.format < "u") {
1057
+ if (!t.call(a.formatters, s.format))
1058
1058
  throw new TypeError("Unknown format option provided.");
1059
- S = u.format;
1059
+ S = s.format;
1060
1060
  }
1061
- var P = a.formatters[S], x = A.filter;
1062
- return (typeof u.filter == "function" || i(u.filter)) && (x = u.filter), {
1063
- addQueryPrefix: typeof u.addQueryPrefix == "boolean" ? u.addQueryPrefix : A.addQueryPrefix,
1064
- allowDots: typeof u.allowDots > "u" ? A.allowDots : !!u.allowDots,
1065
- charset: b,
1066
- charsetSentinel: typeof u.charsetSentinel == "boolean" ? u.charsetSentinel : A.charsetSentinel,
1067
- delimiter: typeof u.delimiter > "u" ? A.delimiter : u.delimiter,
1068
- encode: typeof u.encode == "boolean" ? u.encode : A.encode,
1069
- encoder: typeof u.encoder == "function" ? u.encoder : A.encoder,
1070
- encodeValuesOnly: typeof u.encodeValuesOnly == "boolean" ? u.encodeValuesOnly : A.encodeValuesOnly,
1061
+ var P = a.formatters[S], x = b.filter;
1062
+ return (typeof s.filter == "function" || i(s.filter)) && (x = s.filter), {
1063
+ addQueryPrefix: typeof s.addQueryPrefix == "boolean" ? s.addQueryPrefix : b.addQueryPrefix,
1064
+ allowDots: typeof s.allowDots > "u" ? b.allowDots : !!s.allowDots,
1065
+ charset: A,
1066
+ charsetSentinel: typeof s.charsetSentinel == "boolean" ? s.charsetSentinel : b.charsetSentinel,
1067
+ delimiter: typeof s.delimiter > "u" ? b.delimiter : s.delimiter,
1068
+ encode: typeof s.encode == "boolean" ? s.encode : b.encode,
1069
+ encoder: typeof s.encoder == "function" ? s.encoder : b.encoder,
1070
+ encodeValuesOnly: typeof s.encodeValuesOnly == "boolean" ? s.encodeValuesOnly : b.encodeValuesOnly,
1071
1071
  filter: x,
1072
1072
  format: S,
1073
1073
  formatter: P,
1074
- serializeDate: typeof u.serializeDate == "function" ? u.serializeDate : A.serializeDate,
1075
- skipNulls: typeof u.skipNulls == "boolean" ? u.skipNulls : A.skipNulls,
1076
- sort: typeof u.sort == "function" ? u.sort : null,
1077
- strictNullHandling: typeof u.strictNullHandling == "boolean" ? u.strictNullHandling : A.strictNullHandling
1074
+ serializeDate: typeof s.serializeDate == "function" ? s.serializeDate : b.serializeDate,
1075
+ skipNulls: typeof s.skipNulls == "boolean" ? s.skipNulls : b.skipNulls,
1076
+ sort: typeof s.sort == "function" ? s.sort : null,
1077
+ strictNullHandling: typeof s.strictNullHandling == "boolean" ? s.strictNullHandling : b.strictNullHandling
1078
1078
  };
1079
1079
  };
1080
- return ur = function(c, u) {
1081
- var b = c, S = g(u), P, x;
1082
- typeof S.filter == "function" ? (x = S.filter, b = x("", b)) : i(S.filter) && (x = S.filter, P = x);
1080
+ return ur = function(c, s) {
1081
+ var A = c, S = h(s), P, x;
1082
+ typeof S.filter == "function" ? (x = S.filter, A = x("", A)) : i(S.filter) && (x = S.filter, P = x);
1083
1083
  var T = [];
1084
- if (typeof b != "object" || b === null)
1084
+ if (typeof A != "object" || A === null)
1085
1085
  return "";
1086
1086
  var L;
1087
- u && u.arrayFormat in n ? L = u.arrayFormat : u && "indices" in u ? L = u.indices ? "indices" : "repeat" : L = "indices";
1087
+ s && s.arrayFormat in n ? L = s.arrayFormat : s && "indices" in s ? L = s.indices ? "indices" : "repeat" : L = "indices";
1088
1088
  var M = n[L];
1089
- if (u && "commaRoundTrip" in u && typeof u.commaRoundTrip != "boolean")
1089
+ if (s && "commaRoundTrip" in s && typeof s.commaRoundTrip != "boolean")
1090
1090
  throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
1091
- var V = M === "comma" && u && u.commaRoundTrip;
1092
- P || (P = Object.keys(b)), S.sort && P.sort(S.sort);
1091
+ var V = M === "comma" && s && s.commaRoundTrip;
1092
+ P || (P = Object.keys(A)), S.sort && P.sort(S.sort);
1093
1093
  for (var $ = e(), N = 0; N < P.length; ++N) {
1094
1094
  var F = P[N];
1095
- S.skipNulls && b[F] === null || p(T, f(
1096
- b[F],
1095
+ S.skipNulls && A[F] === null || p(T, f(
1096
+ A[F],
1097
1097
  F,
1098
1098
  M,
1099
1099
  V,
@@ -1136,57 +1136,57 @@ function ct() {
1136
1136
  parseArrays: !0,
1137
1137
  plainObjects: !1,
1138
1138
  strictNullHandling: !1
1139
- }, n = function(s) {
1140
- return s.replace(/&#(\d+);/g, function(o, f) {
1139
+ }, n = function(u) {
1140
+ return u.replace(/&#(\d+);/g, function(o, f) {
1141
1141
  return String.fromCharCode(parseInt(f, 10));
1142
1142
  });
1143
- }, i = function(s, o) {
1144
- return s && typeof s == "string" && o.comma && s.indexOf(",") > -1 ? s.split(",") : s;
1145
- }, m = "utf8=%26%2310003%3B", l = "utf8=%E2%9C%93", p = function(o, f) {
1146
- var g = {}, c = f.ignoreQueryPrefix ? o.replace(/^\?/, "") : o, u = f.parameterLimit === 1 / 0 ? void 0 : f.parameterLimit, b = c.split(f.delimiter, u), S = -1, P, x = f.charset;
1143
+ }, i = function(u, o) {
1144
+ return u && typeof u == "string" && o.comma && u.indexOf(",") > -1 ? u.split(",") : u;
1145
+ }, y = "utf8=%26%2310003%3B", l = "utf8=%E2%9C%93", p = function(o, f) {
1146
+ var h = {}, c = f.ignoreQueryPrefix ? o.replace(/^\?/, "") : o, s = f.parameterLimit === 1 / 0 ? void 0 : f.parameterLimit, A = c.split(f.delimiter, s), S = -1, P, x = f.charset;
1147
1147
  if (f.charsetSentinel)
1148
- for (P = 0; P < b.length; ++P)
1149
- b[P].indexOf("utf8=") === 0 && (b[P] === l ? x = "utf-8" : b[P] === m && (x = "iso-8859-1"), S = P, P = b.length);
1150
- for (P = 0; P < b.length; ++P)
1148
+ for (P = 0; P < A.length; ++P)
1149
+ A[P].indexOf("utf8=") === 0 && (A[P] === l ? x = "utf-8" : A[P] === y && (x = "iso-8859-1"), S = P, P = A.length);
1150
+ for (P = 0; P < A.length; ++P)
1151
1151
  if (P !== S) {
1152
- var T = b[P], L = T.indexOf("]="), M = L === -1 ? T.indexOf("=") : L + 1, V, $;
1152
+ var T = A[P], L = T.indexOf("]="), M = L === -1 ? T.indexOf("=") : L + 1, V, $;
1153
1153
  M === -1 ? (V = f.decoder(T, t.decoder, x, "key"), $ = f.strictNullHandling ? null : "") : (V = f.decoder(T.slice(0, M), t.decoder, x, "key"), $ = e.maybeMap(
1154
1154
  i(T.slice(M + 1), f),
1155
1155
  function(N) {
1156
1156
  return f.decoder(N, t.decoder, x, "value");
1157
1157
  }
1158
- )), $ && f.interpretNumericEntities && x === "iso-8859-1" && ($ = n($)), T.indexOf("[]=") > -1 && ($ = a($) ? [$] : $), r.call(g, V) ? g[V] = e.combine(g[V], $) : g[V] = $;
1158
+ )), $ && f.interpretNumericEntities && x === "iso-8859-1" && ($ = n($)), T.indexOf("[]=") > -1 && ($ = a($) ? [$] : $), r.call(h, V) ? h[V] = e.combine(h[V], $) : h[V] = $;
1159
1159
  }
1160
- return g;
1161
- }, y = function(s, o, f, g) {
1162
- for (var c = g ? o : i(o, f), u = s.length - 1; u >= 0; --u) {
1163
- var b, S = s[u];
1160
+ return h;
1161
+ }, m = function(u, o, f, h) {
1162
+ for (var c = h ? o : i(o, f), s = u.length - 1; s >= 0; --s) {
1163
+ var A, S = u[s];
1164
1164
  if (S === "[]" && f.parseArrays)
1165
- b = [].concat(c);
1165
+ A = [].concat(c);
1166
1166
  else {
1167
- b = f.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1167
+ A = f.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1168
1168
  var P = S.charAt(0) === "[" && S.charAt(S.length - 1) === "]" ? S.slice(1, -1) : S, x = parseInt(P, 10);
1169
- !f.parseArrays && P === "" ? b = { 0: c } : !isNaN(x) && S !== P && String(x) === P && x >= 0 && f.parseArrays && x <= f.arrayLimit ? (b = [], b[x] = c) : P !== "__proto__" && (b[P] = c);
1169
+ !f.parseArrays && P === "" ? A = { 0: c } : !isNaN(x) && S !== P && String(x) === P && x >= 0 && f.parseArrays && x <= f.arrayLimit ? (A = [], A[x] = c) : P !== "__proto__" && (A[P] = c);
1170
1170
  }
1171
- c = b;
1171
+ c = A;
1172
1172
  }
1173
1173
  return c;
1174
- }, w = function(o, f, g, c) {
1174
+ }, w = function(o, f, h, c) {
1175
1175
  if (o) {
1176
- var u = g.allowDots ? o.replace(/\.([^.[]+)/g, "[$1]") : o, b = /(\[[^[\]]*])/, S = /(\[[^[\]]*])/g, P = g.depth > 0 && b.exec(u), x = P ? u.slice(0, P.index) : u, T = [];
1176
+ var s = h.allowDots ? o.replace(/\.([^.[]+)/g, "[$1]") : o, A = /(\[[^[\]]*])/, S = /(\[[^[\]]*])/g, P = h.depth > 0 && A.exec(s), x = P ? s.slice(0, P.index) : s, T = [];
1177
1177
  if (x) {
1178
- if (!g.plainObjects && r.call(Object.prototype, x) && !g.allowPrototypes)
1178
+ if (!h.plainObjects && r.call(Object.prototype, x) && !h.allowPrototypes)
1179
1179
  return;
1180
1180
  T.push(x);
1181
1181
  }
1182
- for (var L = 0; g.depth > 0 && (P = S.exec(u)) !== null && L < g.depth; ) {
1183
- if (L += 1, !g.plainObjects && r.call(Object.prototype, P[1].slice(1, -1)) && !g.allowPrototypes)
1182
+ for (var L = 0; h.depth > 0 && (P = S.exec(s)) !== null && L < h.depth; ) {
1183
+ if (L += 1, !h.plainObjects && r.call(Object.prototype, P[1].slice(1, -1)) && !h.allowPrototypes)
1184
1184
  return;
1185
1185
  T.push(P[1]);
1186
1186
  }
1187
- return P && T.push("[" + u.slice(P.index) + "]"), y(T, f, g, c);
1187
+ return P && T.push("[" + s.slice(P.index) + "]"), m(T, f, h, c);
1188
1188
  }
1189
- }, A = function(o) {
1189
+ }, b = function(o) {
1190
1190
  if (!o)
1191
1191
  return t;
1192
1192
  if (o.decoder !== null && o.decoder !== void 0 && typeof o.decoder != "function")
@@ -1214,12 +1214,12 @@ function ct() {
1214
1214
  strictNullHandling: typeof o.strictNullHandling == "boolean" ? o.strictNullHandling : t.strictNullHandling
1215
1215
  };
1216
1216
  };
1217
- return cr = function(s, o) {
1218
- var f = A(o);
1219
- if (s === "" || s === null || typeof s > "u")
1217
+ return cr = function(u, o) {
1218
+ var f = b(o);
1219
+ if (u === "" || u === null || typeof u > "u")
1220
1220
  return f.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1221
- for (var g = typeof s == "string" ? p(s, f) : s, c = f.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, u = Object.keys(g), b = 0; b < u.length; ++b) {
1222
- var S = u[b], P = w(S, g[S], f, typeof s == "string");
1221
+ for (var h = typeof u == "string" ? p(u, f) : u, c = f.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, s = Object.keys(h), A = 0; A < s.length; ++A) {
1222
+ var S = s[A], P = w(S, h[S], f, typeof u == "string");
1223
1223
  c = e.merge(c, P, f);
1224
1224
  }
1225
1225
  return f.allowSparse === !0 ? c : e.compact(c);
@@ -1237,13 +1237,13 @@ function lt() {
1237
1237
  }, lr;
1238
1238
  }
1239
1239
  var ft = lt();
1240
- const dt = /* @__PURE__ */ mr(ft), vr = "1.0.5", pt = Ae.CancelToken;
1240
+ const dt = /* @__PURE__ */ mr(ft), vr = "1.0.6", pt = Ae.CancelToken;
1241
1241
  var mt = function(e) {
1242
1242
  var r;
1243
1243
  typeof window < "u" && (r = e.cache.get("api"));
1244
1244
  const a = Ae.getAdapter(Ae.defaults.adapter);
1245
1245
  function t(p) {
1246
- var y = [
1246
+ var m = [
1247
1247
  p.method,
1248
1248
  p.url,
1249
1249
  p.headers?.Authorization,
@@ -1253,12 +1253,12 @@ var mt = function(e) {
1253
1253
  data: p.data
1254
1254
  })
1255
1255
  ].filter(Boolean).join("-");
1256
- return y;
1256
+ return m;
1257
1257
  }
1258
- const n = {}, m = l(function(p) {
1259
- var y = t(p);
1260
- return n[y] || (n[y] = new Promise(function(w, A) {
1261
- var s, o;
1258
+ const n = {}, y = l(function(p) {
1259
+ var m = t(p);
1260
+ return n[m] || (n[m] = new Promise(function(w, b) {
1261
+ var u, o;
1262
1262
  switch (String(p.method).toLowerCase()) {
1263
1263
  case "post":
1264
1264
  case "patch":
@@ -1267,92 +1267,107 @@ var mt = function(e) {
1267
1267
  p.cache || (p.cache = !1);
1268
1268
  break;
1269
1269
  }
1270
- return p.cache === !1 || (s = p.cache || r, s && (o = s.get(y))), o ? w(o) : (Object.assign(p, { adapter: a }), Ae.request(p).then(
1270
+ return p.cache === !1 || (u = p.cache || r, u && (o = u.get(m))), o ? w(o) : (Object.assign(p, { adapter: a }), Ae.request(p).then(
1271
1271
  function(f) {
1272
- delete n[y], w(f);
1272
+ delete n[m], w(f);
1273
1273
  },
1274
1274
  function(f) {
1275
- delete n[y], A(f);
1275
+ delete n[m], b(f);
1276
1276
  }
1277
1277
  ));
1278
- })), n[y];
1278
+ })), n[m];
1279
1279
  });
1280
- m.generateEndpointURL = function(p, y, w) {
1281
- w = w || {}, y = y || {};
1282
- var A;
1283
- const s = w.file && e.fileAPI || e.apiURL;
1284
- w.withoutToken || (delete y.access_token, A = e.auth.getCurrentToken()), p[0] == "/" && p.slice(1);
1285
- var o = e.utils.mapParameters(y);
1286
- A ? o = o ? `?access_token=${A}&${o}` : `?access_token=${A}` : o = o ? `?${o}` : "";
1287
- var f = `${s}${p}${o}`;
1280
+ y.generateEndpointURL = function(p, m, w) {
1281
+ w = w || {}, m = m || {};
1282
+ var b;
1283
+ const u = w.file && e.fileAPI || e.apiURL;
1284
+ w.withoutToken || (delete m.access_token, b = e.auth.getCurrentToken()), p[0] == "/" && p.slice(1);
1285
+ var o = e.utils.mapParameters(m);
1286
+ b ? o = o ? `?access_token=${b}&${o}` : `?access_token=${b}` : o = o ? `?${o}` : "";
1287
+ var f = `${u}${p}${o}`;
1288
1288
  return f;
1289
- }, m.wasCancelled = function(p) {
1289
+ }, y.wasCancelled = function(p) {
1290
1290
  return Ae.isCancel(p);
1291
1291
  };
1292
1292
  function l(p) {
1293
- var y = Ae.create({
1293
+ var m = Ae.create({
1294
1294
  paramsSerializer: {
1295
- serialize: (A) => dt.stringify(A, { arrayFormat: "repeat" })
1295
+ serialize: (b) => dt.stringify(b, { arrayFormat: "repeat" })
1296
1296
  },
1297
1297
  adapter: p
1298
1298
  });
1299
- y.defaults.baseURL = e.apiURL, y.defaults.headers.common.Accept = "application/json", y.interceptors.request.use(function(A) {
1300
- if (t(A), A.withoutToken)
1301
- return A;
1302
- if (A.headers["qik-request-date"] = (/* @__PURE__ */ new Date()).getTime(), Intl) {
1299
+ m.defaults.baseURL = e.apiURL, m.defaults.headers.common.Accept = "application/json", m.interceptors.request.use(function(b) {
1300
+ if (t(b), b.withoutToken)
1301
+ return b;
1302
+ if (b.headers["qik-request-date"] = (/* @__PURE__ */ new Date()).getTime(), Intl) {
1303
1303
  const o = Intl.DateTimeFormat().resolvedOptions().timeZone;
1304
- o && (A.headers["qik-request-timezone"] = o);
1304
+ o && (b.headers["qik-request-timezone"] = o);
1305
1305
  }
1306
- A.headers["qik-api-version"] = vr, e?.socket?.windowID && (A.headers["qik-socket-window"] = e.socket.windowID);
1307
- var s = e.auth.getCurrentToken();
1308
- return s && (A.headers.Authorization = `Bearer ${s}`, A.params && A.params.access_token && delete A.params.access_token), A;
1306
+ b.headers["qik-api-version"] = vr, e?.socket?.windowID && (b.headers["qik-socket-window"] = e.socket.windowID);
1307
+ var u = e.auth.getCurrentToken();
1308
+ return u && (b.headers.Authorization = `Bearer ${u}`, b.params && b.params.access_token && delete b.params.access_token), b;
1309
1309
  });
1310
1310
  let w = 0;
1311
- return y.interceptors.response.use(
1312
- function(A) {
1313
- var s = A.config, o = A.status;
1311
+ return m.interceptors.response.use(
1312
+ function(b) {
1313
+ var u = b.config, o = b.status;
1314
1314
  switch (o) {
1315
1315
  case 204:
1316
1316
  if (w < 5)
1317
- return w++, new Promise(function(f, g) {
1317
+ return w++, new Promise(function(f, h) {
1318
1318
  setTimeout(function() {
1319
- return y.request(s).then(f, g);
1319
+ return m.request(u).then(f, h);
1320
1320
  }, 800);
1321
1321
  });
1322
1322
  console.log("Failed after 5 retries"), w = 0;
1323
1323
  break;
1324
1324
  }
1325
- return A;
1325
+ return b;
1326
1326
  },
1327
- function(A) {
1328
- if (Ae.isCancel(A))
1329
- return Promise.reject(A);
1330
- var s = A?.response?.status || A.status;
1331
- switch (s) {
1327
+ function(b) {
1328
+ if (Ae.isCancel(b))
1329
+ return Promise.reject(b);
1330
+ var u = b?.response?.status || b.status;
1331
+ switch (u) {
1332
1332
  case 401:
1333
1333
  break;
1334
+ case 429: {
1335
+ var o = b.config || {};
1336
+ if (o.__retry429 = (o.__retry429 || 0) + 1, o.__retry429 <= 3) {
1337
+ var f = parseInt(
1338
+ b?.response?.headers?.["retry-after"],
1339
+ 10
1340
+ ), h = Number.isFinite(f) ? f * 1e3 : 800 * o.__retry429, c = Math.floor(Math.random() * 500);
1341
+ return new Promise(function(s, A) {
1342
+ setTimeout(function() {
1343
+ return m.request(o).then(s, A);
1344
+ }, h + c);
1345
+ });
1346
+ }
1347
+ break;
1348
+ }
1334
1349
  case 502:
1335
1350
  case 504:
1336
1351
  if (w < 5)
1337
- return w++, new Promise(function(o, f) {
1352
+ return w++, new Promise(function(s, A) {
1338
1353
  setTimeout(function() {
1339
- return y.request(A.config).then(o, f);
1354
+ return m.request(b.config).then(s, A);
1340
1355
  }, 800);
1341
1356
  });
1342
1357
  console.log("Failed after 5 retries"), w = 0;
1343
1358
  break;
1344
1359
  }
1345
- return Promise.reject(A);
1360
+ return Promise.reject(b);
1346
1361
  }
1347
- ), y;
1362
+ ), m;
1348
1363
  }
1349
- return m.CancelToken = pt, m.axios = Ae, m;
1364
+ return y.CancelToken = pt, y.axios = Ae, y;
1350
1365
  }, fr, Gr;
1351
1366
  function yt() {
1352
1367
  if (Gr) return fr;
1353
1368
  Gr = 1;
1354
- var e = "Expected a function", r = "__lodash_hash_undefined__", a = "[object Function]", t = "[object GeneratorFunction]", n = "[object Symbol]", i = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, m = /^\w*$/, l = /^\./, p = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, y = /[\\^$.*+?()[\]{}|]/g, w = /\\(\\)?/g, A = /^\[object .+?Constructor\]$/, s = typeof be == "object" && be && be.Object === Object && be, o = typeof self == "object" && self && self.Object === Object && self, f = s || o || Function("return this")();
1355
- function g(d, E) {
1369
+ var e = "Expected a function", r = "__lodash_hash_undefined__", a = "[object Function]", t = "[object GeneratorFunction]", n = "[object Symbol]", i = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, y = /^\w*$/, l = /^\./, p = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, m = /[\\^$.*+?()[\]{}|]/g, w = /\\(\\)?/g, b = /^\[object .+?Constructor\]$/, u = typeof be == "object" && be && be.Object === Object && be, o = typeof self == "object" && self && self.Object === Object && self, f = u || o || Function("return this")();
1370
+ function h(d, E) {
1356
1371
  return d?.[E];
1357
1372
  }
1358
1373
  function c(d) {
@@ -1364,12 +1379,12 @@ function yt() {
1364
1379
  }
1365
1380
  return E;
1366
1381
  }
1367
- var u = Array.prototype, b = Function.prototype, S = Object.prototype, P = f["__core-js_shared__"], x = (function() {
1382
+ var s = Array.prototype, A = Function.prototype, S = Object.prototype, P = f["__core-js_shared__"], x = (function() {
1368
1383
  var d = /[^.]+$/.exec(P && P.keys && P.keys.IE_PROTO || "");
1369
1384
  return d ? "Symbol(src)_1." + d : "";
1370
- })(), T = b.toString, L = S.hasOwnProperty, M = S.toString, V = RegExp(
1371
- "^" + T.call(L).replace(y, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
1372
- ), $ = f.Symbol, N = u.splice, F = Pe(f, "Map"), I = Pe(Object, "create"), k = $ ? $.prototype : void 0, U = k ? k.toString : void 0;
1385
+ })(), T = A.toString, L = S.hasOwnProperty, M = S.toString, V = RegExp(
1386
+ "^" + T.call(L).replace(m, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
1387
+ ), $ = f.Symbol, N = s.splice, F = Pe(f, "Map"), I = Pe(Object, "create"), k = $ ? $.prototype : void 0, U = k ? k.toString : void 0;
1373
1388
  function z(d) {
1374
1389
  var E = -1, C = d ? d.length : 0;
1375
1390
  for (this.clear(); ++E < C; ) {
@@ -1471,13 +1486,13 @@ function yt() {
1471
1486
  function Re(d) {
1472
1487
  if (!he(d) || _e(d))
1473
1488
  return !1;
1474
- var E = Ne(d) || c(d) ? V : A;
1489
+ var E = Ne(d) || c(d) ? V : b;
1475
1490
  return E.test(le(d));
1476
1491
  }
1477
1492
  function xe(d) {
1478
1493
  if (typeof d == "string")
1479
1494
  return d;
1480
- if (h(d))
1495
+ if (g(d))
1481
1496
  return U ? U.call(d) : "";
1482
1497
  var E = d + "";
1483
1498
  return E == "0" && 1 / d == -1 / 0 ? "-0" : E;
@@ -1490,14 +1505,14 @@ function yt() {
1490
1505
  return ke(E) ? C[typeof E == "string" ? "string" : "hash"] : C.map;
1491
1506
  }
1492
1507
  function Pe(d, E) {
1493
- var C = g(d, E);
1508
+ var C = h(d, E);
1494
1509
  return Re(C) ? C : void 0;
1495
1510
  }
1496
1511
  function Ie(d, E) {
1497
1512
  if (Oe(d))
1498
1513
  return !1;
1499
1514
  var C = typeof d;
1500
- return C == "number" || C == "symbol" || C == "boolean" || d == null || h(d) ? !0 : m.test(d) || !i.test(d) || E != null && d in Object(E);
1515
+ return C == "number" || C == "symbol" || C == "boolean" || d == null || g(d) ? !0 : y.test(d) || !i.test(d) || E != null && d in Object(E);
1501
1516
  }
1502
1517
  function ke(d) {
1503
1518
  var E = typeof d;
@@ -1514,7 +1529,7 @@ function yt() {
1514
1529
  }), E;
1515
1530
  });
1516
1531
  function Le(d) {
1517
- if (typeof d == "string" || h(d))
1532
+ if (typeof d == "string" || g(d))
1518
1533
  return d;
1519
1534
  var E = d + "";
1520
1535
  return E == "0" && 1 / d == -1 / 0 ? "-0" : E;
@@ -1560,7 +1575,7 @@ function yt() {
1560
1575
  function ge(d) {
1561
1576
  return !!d && typeof d == "object";
1562
1577
  }
1563
- function h(d) {
1578
+ function g(d) {
1564
1579
  return typeof d == "symbol" || ge(d) && M.call(d) == n;
1565
1580
  }
1566
1581
  function v(d) {
@@ -1578,9 +1593,9 @@ var dr, Dr;
1578
1593
  function gt() {
1579
1594
  if (Dr) return dr;
1580
1595
  Dr = 1;
1581
- 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", i = "\\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", s = "A-Z\\xc0-\\xd6\\xd8-\\xde", o = "\\ufe0e\\ufe0f", f = p + y + w + A, g = "['’]", c = "[" + t + "]", u = "[" + f + "]", b = "[" + n + i + "]", S = "\\d+", P = "[" + m + "]", x = "[" + l + "]", T = "[^" + t + f + S + m + l + s + "]", L = "\\ud83c[\\udffb-\\udfff]", M = "(?:" + b + "|" + L + ")", V = "[^" + t + "]", $ = "(?:\\ud83c[\\udde6-\\uddff]){2}", N = "[\\ud800-\\udbff][\\udc00-\\udfff]", F = "[" + s + "]", I = "\\u200d", k = "(?:" + x + "|" + T + ")", U = "(?:" + F + "|" + T + ")", z = "(?:" + g + "(?:d|ll|m|re|s|t|ve))?", _ = "(?:" + g + "(?:D|LL|M|RE|S|T|VE))?", Z = M + "?", Q = "[" + o + "]?", ne = "(?:" + I + "(?:" + [V, $, N].join("|") + ")" + Q + Z + ")*", X = Q + Z + ne, W = "(?:" + [P, $, N].join("|") + ")" + X, ie = "(?:" + [V + b + "?", b, $, N, c].join("|") + ")", re = RegExp(g, "g"), te = RegExp(b, "g"), ce = RegExp(L + "(?=" + L + ")|" + ie + X, "g"), ue = RegExp([
1582
- F + "?" + x + "+" + z + "(?=" + [u, F, "$"].join("|") + ")",
1583
- U + "+" + _ + "(?=" + [u, F + k, "$"].join("|") + ")",
1596
+ 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", i = "\\u20d0-\\u20f0", y = "\\u2700-\\u27bf", l = "a-z\\xdf-\\xf6\\xf8-\\xff", p = "\\xac\\xb1\\xd7\\xf7", m = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", w = "\\u2000-\\u206f", b = " \\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", o = "\\ufe0e\\ufe0f", f = p + m + w + b, h = "['’]", c = "[" + t + "]", s = "[" + f + "]", A = "[" + n + i + "]", S = "\\d+", P = "[" + y + "]", x = "[" + l + "]", T = "[^" + t + f + S + y + l + u + "]", L = "\\ud83c[\\udffb-\\udfff]", M = "(?:" + A + "|" + L + ")", V = "[^" + t + "]", $ = "(?:\\ud83c[\\udde6-\\uddff]){2}", N = "[\\ud800-\\udbff][\\udc00-\\udfff]", F = "[" + u + "]", I = "\\u200d", k = "(?:" + x + "|" + T + ")", U = "(?:" + F + "|" + T + ")", z = "(?:" + h + "(?:d|ll|m|re|s|t|ve))?", _ = "(?:" + h + "(?:D|LL|M|RE|S|T|VE))?", Z = M + "?", Q = "[" + o + "]?", ne = "(?:" + I + "(?:" + [V, $, N].join("|") + ")" + Q + Z + ")*", X = Q + Z + ne, W = "(?:" + [P, $, N].join("|") + ")" + X, ie = "(?:" + [V + A + "?", A, $, N, c].join("|") + ")", re = RegExp(h, "g"), te = RegExp(A, "g"), ce = RegExp(L + "(?=" + L + ")|" + ie + X, "g"), ue = RegExp([
1597
+ F + "?" + x + "+" + z + "(?=" + [s, F, "$"].join("|") + ")",
1598
+ U + "+" + _ + "(?=" + [s, F + k, "$"].join("|") + ")",
1584
1599
  F + "?" + k + "+" + z,
1585
1600
  F + "+" + _,
1586
1601
  S,
@@ -1838,7 +1853,7 @@ function gt() {
1838
1853
  return H[O]() + Y;
1839
1854
  };
1840
1855
  }
1841
- function h(O) {
1856
+ function g(O) {
1842
1857
  return function(B) {
1843
1858
  return J(K(G(B).replace(re, "")), O, "");
1844
1859
  };
@@ -1852,7 +1867,7 @@ function gt() {
1852
1867
  function d(O) {
1853
1868
  return O == null ? "" : Ne(O);
1854
1869
  }
1855
- var E = h(function(O, B, j) {
1870
+ var E = g(function(O, B, j) {
1856
1871
  return B = B.toLowerCase(), O + (j ? C(B) : B);
1857
1872
  });
1858
1873
  function C(O) {
@@ -1875,10 +1890,10 @@ function bt() {
1875
1890
  jr = 1, Object.defineProperty(ve, "__esModule", {
1876
1891
  value: !0
1877
1892
  });
1878
- var e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(m) {
1879
- return typeof m;
1880
- } : function(m) {
1881
- return m && typeof Symbol == "function" && m.constructor === Symbol && m !== Symbol.prototype ? "symbol" : typeof m;
1893
+ var e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(y) {
1894
+ return typeof y;
1895
+ } : function(y) {
1896
+ return y && typeof Symbol == "function" && y.constructor === Symbol && y !== Symbol.prototype ? "symbol" : typeof y;
1882
1897
  }, r = typeof window < "u" && typeof window.document < "u", a = typeof process < "u" && process.versions != null && process.versions.node != null, t = (typeof self > "u" ? "undefined" : e(self)) === "object" && self.constructor && self.constructor.name === "DedicatedWorkerGlobalScope", n = typeof window < "u" && window.name === "nodejs" || typeof navigator < "u" && (navigator.userAgent.includes("Node.js") || navigator.userAgent.includes("jsdom")), i = typeof Deno < "u" && typeof Deno.core < "u";
1883
1898
  return ve.isBrowser = r, ve.isWebWorker = t, ve.isNode = a, ve.isJsDom = n, ve.isDeno = i, ve;
1884
1899
  }
@@ -1979,8 +1994,8 @@ R.isValidEmailAddress = function(e) {
1979
1994
  if (t.length > 64) return !1;
1980
1995
  if (n.length > 255) return !1;
1981
1996
  var i = n.split(".");
1982
- return !(i.some(function(m) {
1983
- return m.length > 63;
1997
+ return !(i.some(function(y) {
1998
+ return y.length > 63;
1984
1999
  }) || !r.test(e));
1985
2000
  };
1986
2001
  R.parseEmail = function(e) {
@@ -2025,8 +2040,8 @@ R.cleanValue = function(e, r, a) {
2025
2040
  return typeof e == "object" && e !== null && !Array.isArray(e) ? e : void 0;
2026
2041
  case "string":
2027
2042
  if (R.exists(e)) {
2028
- var m = String(e);
2029
- return m == "[object Object]" ? void 0 : m;
2043
+ var y = String(e);
2044
+ return y == "[object Object]" ? void 0 : y;
2030
2045
  } else
2031
2046
  return;
2032
2047
  // if(!data) {
@@ -2058,8 +2073,8 @@ R.isValidValue = function(e, r, a) {
2058
2073
  case "date":
2059
2074
  if (a && (typeof e != "object" || !(e instanceof Date)))
2060
2075
  return !1;
2061
- var m = R.parseDate(e);
2062
- return m !== void 0;
2076
+ var y = R.parseDate(e);
2077
+ return y !== void 0;
2063
2078
  case "email":
2064
2079
  a ? i = e === R.parseEmail(e) : i = String(e).toLowerCase() === R.parseEmail(e);
2065
2080
  break;
@@ -2072,8 +2087,8 @@ R.isValidValue = function(e, r, a) {
2072
2087
  a ? i = n && Number(e) === R.parseInt(e) : i = Number(e) === R.parseInt(e);
2073
2088
  break;
2074
2089
  case "boolean":
2075
- var m = R.parseBoolean(e);
2076
- a ? (e === !0 || e === !1) && (i = e === m) : i = m === !0 || m === !1;
2090
+ var y = R.parseBoolean(e);
2091
+ a ? (e === !0 || e === !1) && (i = e === y) : i = y === !0 || y === !1;
2077
2092
  break;
2078
2093
  case "reference":
2079
2094
  a ? i = String(e) === R.id(e) : i = !!R.id(e);
@@ -2137,20 +2152,20 @@ R.getAllFields = function(e) {
2137
2152
  fields: n
2138
2153
  };
2139
2154
  t.push(i);
2140
- var m = {
2155
+ var y = {
2141
2156
  title: "Data",
2142
2157
  minimum: 1,
2143
2158
  maximum: 1,
2144
2159
  key: "data",
2145
2160
  asObject: !0,
2146
2161
  type: "group",
2147
- fields: n.map(function(y) {
2148
- return y.type === "reference" && (y = JSON.parse(JSON.stringify(y)), delete y.fields), y;
2162
+ fields: n.map(function(m) {
2163
+ return m.type === "reference" && (m = JSON.parse(JSON.stringify(m)), delete m.fields), m;
2149
2164
  })
2150
2165
  };
2151
- t.push(m);
2166
+ t.push(y);
2152
2167
  } else {
2153
- var m = {
2168
+ var y = {
2154
2169
  title: `${e.title}`,
2155
2170
  minimum: 1,
2156
2171
  maximum: 1,
@@ -2159,7 +2174,7 @@ R.getAllFields = function(e) {
2159
2174
  type: "group",
2160
2175
  fields: n
2161
2176
  };
2162
- t.push(m);
2177
+ t.push(y);
2163
2178
  }
2164
2179
  r && (t.push({
2165
2180
  title: "Age",
@@ -2175,32 +2190,32 @@ R.getAllFields = function(e) {
2175
2190
  type: "date"
2176
2191
  }));
2177
2192
  var l = R.mapFields(t).filter(function(p) {
2178
- var y = p.type == "group" && p.asObject && p.minimum == 1 && p.maximum == 1;
2179
- return !y;
2193
+ var m = p.type == "group" && p.asObject && p.minimum == 1 && p.maximum == 1;
2194
+ return !m;
2180
2195
  }).map(function(p) {
2181
2196
  return p.title = p.filterTitle || p.titles.filter(Boolean).join(" › "), p;
2182
- }).sort(function(p, y) {
2183
- return p.title < y.title ? -1 : 1;
2197
+ }).sort(function(p, m) {
2198
+ return p.title < m.title ? -1 : 1;
2184
2199
  });
2185
2200
  return l;
2186
2201
  };
2187
2202
  R.mapFields = function(e, r) {
2188
2203
  r || (r = {});
2189
- var a = [], t = [], n = [], i = 1, m = r.depth, l = r.arrayDelimeter || "[]";
2204
+ var a = [], t = [], n = [], i = 1, y = r.depth, l = r.arrayDelimeter || "[]";
2190
2205
  e.forEach(p);
2191
- function p(y, w) {
2192
- var A = y.key, s = y.type == "group", o = y.minimum === y.maximum && y.minimum === 1, f = y.asObject, g = s && !f, c = r.original ? y : R.clone(y);
2193
- c.trail = t.slice(), c.trail.push(A), c.path = c.trail.join("."), c.titles = n.slice(), c.titles.push(y.filterTitle || y.title || ""), (!g || r.includeLayout) && a.push(c);
2194
- var b = m && i >= m;
2195
- if (y.fields && y.fields.length)
2196
- if (g)
2197
- y.fields.forEach(p);
2206
+ function p(m, w) {
2207
+ var b = m.key, u = m.type == "group", o = m.minimum === m.maximum && m.minimum === 1, f = m.asObject, h = u && !f, c = r.original ? m : R.clone(m);
2208
+ c.trail = t.slice(), c.trail.push(b), c.path = c.trail.join("."), c.titles = n.slice(), c.titles.push(m.filterTitle || m.title || ""), (!h || r.includeLayout) && a.push(c);
2209
+ var A = y && i >= y;
2210
+ if (m.fields && m.fields.length)
2211
+ if (h)
2212
+ m.fields.forEach(p);
2198
2213
  else {
2199
- if (b)
2214
+ if (A)
2200
2215
  return;
2201
2216
  i++;
2202
- let S = A;
2203
- r.includeArrayDelimeter && (o || (S = `${A}${l}`)), t.push(S), n.push(y.filterTitle || y.title), y.fields.forEach(p), i--, t.pop(), n.pop();
2217
+ let S = b;
2218
+ r.includeArrayDelimeter && (o || (S = `${b}${l}`)), t.push(S), n.push(m.filterTitle || m.title), m.fields.forEach(p), i--, t.pop(), n.pop();
2204
2219
  }
2205
2220
  }
2206
2221
  return a;
@@ -2315,38 +2330,38 @@ R.hash = function(e, r) {
2315
2330
  return a[n] = t, a;
2316
2331
  }, {});
2317
2332
  };
2318
- R.extractFromArray = function(e, r, a, t, n, i, m) {
2319
- m = m || {}, a && (m.sum = a), t && (m.flatten = !0), n && (m.unique = !0), i && (m.excludeNull = !0);
2320
- var l = e.reduce(function(p, y) {
2321
- var w = je(y, r), A = !w && w !== !1 && w !== 0;
2322
- return m.excludeNull && A || p.push(w), p;
2333
+ R.extractFromArray = function(e, r, a, t, n, i, y) {
2334
+ y = y || {}, a && (y.sum = a), t && (y.flatten = !0), n && (y.unique = !0), i && (y.excludeNull = !0);
2335
+ var l = e.reduce(function(p, m) {
2336
+ var w = je(m, r), b = !w && w !== !1 && w !== 0;
2337
+ return y.excludeNull && b || p.push(w), p;
2323
2338
  }, []);
2324
- return m.flatten && (l = l.flat()), m.unique && (l = [...new Set(l)]), m.sum && (l = l.reduce(function(p, y) {
2325
- return p + y;
2339
+ return y.flatten && (l = l.flat()), y.unique && (l = [...new Set(l)]), y.sum && (l = l.reduce(function(p, m) {
2340
+ return p + m;
2326
2341
  }, 0)), l;
2327
2342
  };
2328
2343
  R.matchInArray = function(e, r, a, t) {
2329
2344
  var n = e.filter(function(i) {
2330
- var m = je(i, r), l;
2345
+ var y = je(i, r), l;
2331
2346
  switch (t) {
2332
2347
  case "in":
2333
- l = m.includes(a);
2348
+ l = y.includes(a);
2334
2349
  break;
2335
2350
  case ">=":
2336
- l = m >= a;
2351
+ l = y >= a;
2337
2352
  break;
2338
2353
  case "<=":
2339
- l = m <= a;
2354
+ l = y <= a;
2340
2355
  break;
2341
2356
  case "<":
2342
- l = m < a;
2357
+ l = y < a;
2343
2358
  break;
2344
2359
  case ">":
2345
- l = m > a;
2360
+ l = y > a;
2346
2361
  break;
2347
2362
  case "==":
2348
2363
  default:
2349
- a === void 0 ? l = m : l = m == a;
2364
+ a === void 0 ? l = y : l = y == a;
2350
2365
  break;
2351
2366
  }
2352
2367
  return l;
@@ -2638,35 +2653,35 @@ var Pt = function(e) {
2638
2653
  var p = r.getUser();
2639
2654
  t.onChange && t.onChange(p), n.dispatch("change", p, l);
2640
2655
  }
2641
- t.set = function(l, p, y) {
2656
+ t.set = function(l, p, m) {
2642
2657
  const w = r.getUser();
2643
- if (JSON.stringify(w) != JSON.stringify(l) && (r.setUser(l), !y))
2658
+ if (JSON.stringify(w) != JSON.stringify(l) && (r.setUser(l), !m))
2644
2659
  return i(p);
2645
2660
  }, t.logout = function() {
2646
2661
  return r.clearUser(), e.cache.reset(), i();
2647
2662
  }, t.changeOrganisation = function(l, p) {
2648
2663
  l = e.utils.id(l), p || (p = {});
2649
- var y = !0;
2650
- return p.disableAutoAuthentication && (y = !1), new Promise(function(w, A) {
2651
- e.api.post(`/user/switch/${l}`).then(function(s) {
2652
- y && (e.cache.reset(), t.set(s.data)), w(s.data);
2653
- }).catch(A);
2664
+ var m = !0;
2665
+ return p.disableAutoAuthentication && (m = !1), new Promise(function(w, b) {
2666
+ e.api.post(`/user/switch/${l}`).then(function(u) {
2667
+ m && (e.cache.reset(), t.set(u.data)), w(u.data);
2668
+ }).catch(b);
2654
2669
  });
2655
2670
  }, t.impersonate = function(l, p) {
2656
2671
  l = e.utils.id(l), p || (p = {});
2657
- var y = !0;
2658
- p.disableAutoAuthentication && (y = !1);
2672
+ var m = !0;
2673
+ p.disableAutoAuthentication && (m = !1);
2659
2674
  var w = e.api.post(`/user/impersonate/${l}`);
2660
- return w.then(function(A) {
2661
- y && (e.cache.reset(), t.set(A.data));
2662
- }, function(A) {
2675
+ return w.then(function(b) {
2676
+ m && (e.cache.reset(), t.set(b.data));
2677
+ }, function(b) {
2663
2678
  }), w;
2664
2679
  }, t.login = async function(l, p) {
2665
2680
  p || (p = {});
2666
- var y = !0;
2667
- p.disableAutoAuthentication && (y = !1);
2668
- var w = new Promise(A);
2669
- function A(s, o) {
2681
+ var m = !0;
2682
+ p.disableAutoAuthentication && (m = !1);
2683
+ var w = new Promise(b);
2684
+ function b(u, o) {
2670
2685
  if (!l)
2671
2686
  return o({
2672
2687
  message: "Login requires an email and password"
@@ -2684,17 +2699,17 @@ var Pt = function(e) {
2684
2699
  };
2685
2700
  r.isCookieMode && r.isCookieMode() && (l.useCookies = !0, f.withCredentials = !0);
2686
2701
  var c = `${e.apiURL}/user/login`;
2687
- p.url && (c = p.url), e.api.post(c, l, f).then(function(u) {
2688
- y && t.set(u.data), s(u);
2702
+ p.url && (c = p.url), e.api.post(c, l, f).then(function(s) {
2703
+ m && t.set(s.data), u(s);
2689
2704
  }, o);
2690
2705
  }
2691
2706
  return w;
2692
2707
  }, t.signup = async function(l, p) {
2693
2708
  p || (p = {});
2694
- var y = !0;
2695
- p.disableAutoAuthentication && (y = !1);
2696
- var w = new Promise(A);
2697
- function A(s, o) {
2709
+ var m = !0;
2710
+ p.disableAutoAuthentication && (m = !1);
2711
+ var w = new Promise(b);
2712
+ function b(u, o) {
2698
2713
  if (!l)
2699
2714
  return o({
2700
2715
  message: "Signup details are required"
@@ -2728,40 +2743,40 @@ var Pt = function(e) {
2728
2743
  };
2729
2744
  r.isCookieMode && r.isCookieMode() && (l.useCookies = !0, f.withCredentials = !0);
2730
2745
  var c = `${e.apiURL}/user/signup`;
2731
- p.application && (c = `${e.domain || ""}/qik/application/signup`), p.url && (c = p.url), e.api.post(c, l, f).then(function(u) {
2732
- y && t.set(u.data), s(u);
2746
+ p.application && (c = `${e.domain || ""}/qik/application/signup`), p.url && (c = p.url), e.api.post(c, l, f).then(function(s) {
2747
+ m && t.set(s.data), u(s);
2733
2748
  }, o);
2734
2749
  }
2735
2750
  return w;
2736
2751
  }, t.retrieveUserFromResetToken = async function(l, p) {
2737
2752
  p || (p = {});
2738
- var y = {
2753
+ var m = {
2739
2754
  bypassInterceptor: !0
2740
2755
  };
2741
- return new Promise(function(w, A) {
2742
- e.api.get(p.url || `${e.apiURL}/user/reset/${l}`, y).then(function(s) {
2743
- return w(s.data);
2744
- }, A);
2756
+ return new Promise(function(w, b) {
2757
+ e.api.get(p.url || `${e.apiURL}/user/reset/${l}`, m).then(function(u) {
2758
+ return w(u.data);
2759
+ }, b);
2745
2760
  });
2746
- }, t.updateUserWithToken = async function(l, p, y) {
2747
- y || (y = {});
2761
+ }, t.updateUserWithToken = async function(l, p, m) {
2762
+ m || (m = {});
2748
2763
  var w = !0;
2749
- return y.disableAutoAuthentication && (w = !1), new Promise(function(A, s) {
2764
+ return m.disableAutoAuthentication && (w = !1), new Promise(function(b, u) {
2750
2765
  var o = {
2751
2766
  bypassInterceptor: !0
2752
2767
  };
2753
- e.api.post(y.url || `${e.apiURL}/user/reset/${l}`, p, o).then(function(f) {
2754
- return w && (e.cache.reset(), t.set(f.data)), A(f.data);
2755
- }, s);
2768
+ e.api.post(m.url || `${e.apiURL}/user/reset/${l}`, p, o).then(function(f) {
2769
+ return w && (e.cache.reset(), t.set(f.data)), b(f.data);
2770
+ }, u);
2756
2771
  });
2757
2772
  }, t.sendResetPasswordRequest = function(l, p) {
2758
2773
  return p || (p = {}), l ? !l.email || !l.email.length ? Promise.reject({
2759
2774
  message: "An email address is required for password reset"
2760
- }) : new Promise(function(y, w) {
2761
- var A = {
2775
+ }) : new Promise(function(m, w) {
2776
+ var b = {
2762
2777
  bypassInterceptor: !0
2763
2778
  };
2764
- e.api.post(p.url || `${e.apiURL}/user/forgot`, l, A).then(y, w);
2779
+ e.api.post(p.url || `${e.apiURL}/user/forgot`, l, b).then(m, w);
2765
2780
  }) : Promise.reject({
2766
2781
  message: "Please provide your account details to reset your password"
2767
2782
  });
@@ -2774,53 +2789,53 @@ var Pt = function(e) {
2774
2789
  var { token: w } = p;
2775
2790
  if (!w)
2776
2791
  return Promise.reject("No token");
2777
- var A = /* @__PURE__ */ new Date();
2778
- A.setSeconds(A.getSeconds() + a);
2779
- var s = new Date(w.expires);
2780
- return l ? await t.refreshAccessToken(w.refreshToken) : A < s ? w : await t.refreshAccessToken(w.refreshToken);
2792
+ var b = /* @__PURE__ */ new Date();
2793
+ b.setSeconds(b.getSeconds() + a);
2794
+ var u = new Date(w.expires);
2795
+ return l ? await t.refreshAccessToken(w.refreshToken) : b < u ? w : await t.refreshAccessToken(w.refreshToken);
2781
2796
  };
2782
- const m = {};
2797
+ const y = {};
2783
2798
  return t.refreshAccessToken = async function(l) {
2784
- if (m.inflightRefreshRequest)
2785
- return m.inflightRefreshRequest;
2799
+ if (y.inflightRefreshRequest)
2800
+ return y.inflightRefreshRequest;
2786
2801
  const p = r.isCookieMode && r.isCookieMode();
2787
- return m.inflightRefreshRequest = new Promise(function(y, w) {
2788
- let A = {}, s = {
2802
+ return y.inflightRefreshRequest = new Promise(function(m, w) {
2803
+ let b = {}, u = {
2789
2804
  bypassInterceptor: !0,
2790
2805
  withoutToken: !0
2791
2806
  };
2792
2807
  if (p)
2793
- s.withCredentials = !0;
2808
+ u.withCredentials = !0;
2794
2809
  else {
2795
2810
  if (!l)
2796
- return m.inflightRefreshRequest = null, w(new Error("No refresh token provided for localStorage mode"));
2797
- A.refreshToken = l;
2811
+ return y.inflightRefreshRequest = null, w(new Error("No refresh token provided for localStorage mode"));
2812
+ b.refreshToken = l;
2798
2813
  }
2799
- e.api.post("/user/refresh", A, s).then(function(f) {
2814
+ e.api.post("/user/refresh", b, u).then(function(f) {
2800
2815
  if (!f || !f.data)
2801
- return m.inflightRefreshRequest = null, w(new Error("Invalid refresh response"));
2816
+ return y.inflightRefreshRequest = null, w(new Error("Invalid refresh response"));
2802
2817
  if (t.set(f.data), i(), p)
2803
- y("cookie_token_refreshed");
2818
+ m("cookie_token_refreshed");
2804
2819
  else {
2805
- const g = f.data.token?.accessToken;
2806
- g ? y(g) : w(new Error("No access token in refresh response"));
2820
+ const h = f.data.token?.accessToken;
2821
+ h ? m(h) : w(new Error("No access token in refresh response"));
2807
2822
  }
2808
2823
  setTimeout(function() {
2809
- m.inflightRefreshRequest = null;
2824
+ y.inflightRefreshRequest = null;
2810
2825
  });
2811
2826
  }).catch(function(o) {
2812
2827
  setTimeout(function() {
2813
- m.inflightRefreshRequest = null;
2828
+ y.inflightRefreshRequest = null;
2814
2829
  }), w(o);
2815
2830
  });
2816
- }), m.inflightRefreshRequest;
2831
+ }), y.inflightRefreshRequest;
2817
2832
  }, t.sync = function() {
2818
2833
  return e.api.get("/user").then(function(l) {
2819
2834
  if (l.data) {
2820
2835
  const p = r.getUser();
2821
2836
  if (p) {
2822
- const y = { ...p };
2823
- y.session ? Object.assign(y.session, l.data) : y.session = l.data, t.set(y);
2837
+ const m = { ...p };
2838
+ m.session ? Object.assign(m.session, l.data) : m.session = l.data, t.set(m);
2824
2839
  } else
2825
2840
  t.set(l.data);
2826
2841
  } else
@@ -2838,9 +2853,9 @@ var Pt = function(e) {
2838
2853
  var p = t.getCurrentUser();
2839
2854
  if (!p)
2840
2855
  return e.applicationToken ? e.applicationToken : void 0;
2841
- var { token: y } = p;
2842
- if (y)
2843
- return y.accessToken;
2856
+ var { token: m } = p;
2857
+ if (m)
2858
+ return m.accessToken;
2844
2859
  }, e.api.interceptors.request.use(
2845
2860
  async function(l) {
2846
2861
  if (l.bypassInterceptor)
@@ -2848,25 +2863,25 @@ var Pt = function(e) {
2848
2863
  var p = l;
2849
2864
  if (r.isCookieMode && r.isCookieMode())
2850
2865
  return p.withCredentials || (p.withCredentials = !0), p;
2851
- var w = t.getCurrentUser(), A, s, o;
2866
+ var w = t.getCurrentUser(), b, u, o;
2852
2867
  if (w) {
2853
2868
  var { token: f } = w;
2854
- f && (A = f.accessToken, s = f.refreshToken, o = f.expires);
2869
+ f && (b = f.accessToken, u = f.refreshToken, o = f.expires);
2855
2870
  }
2856
- if (A)
2857
- p.headers.Authorization = `Bearer ${A}`;
2871
+ if (b)
2872
+ p.headers.Authorization = `Bearer ${b}`;
2858
2873
  else
2859
2874
  return p;
2860
- if (!s)
2875
+ if (!u)
2861
2876
  return p;
2862
- var g = /* @__PURE__ */ new Date();
2863
- g.setSeconds(g.getSeconds() + a);
2877
+ var h = /* @__PURE__ */ new Date();
2878
+ h.setSeconds(h.getSeconds() + a);
2864
2879
  var c = new Date(o);
2865
- return g < c ? p : new Promise(async function(u, b) {
2866
- await t.refreshAccessToken(s).then(function(S) {
2867
- return p.headers.Authorization = `Bearer ${S}`, u(p);
2880
+ return h < c ? p : new Promise(async function(s, A) {
2881
+ await t.refreshAccessToken(u).then(function(S) {
2882
+ return p.headers.Authorization = `Bearer ${S}`, s(p);
2868
2883
  }).catch(function(S) {
2869
- return b(S);
2884
+ return A(S);
2870
2885
  });
2871
2886
  });
2872
2887
  },
@@ -2929,8 +2944,8 @@ q.activeFilters = function(e) {
2929
2944
  function a(t, n) {
2930
2945
  if (t) {
2931
2946
  var i = q.isValidFilter(t);
2932
- i && n.push(t), t.filters && t.filters.length && t.filters.forEach(function(m) {
2933
- a(m, n);
2947
+ i && n.push(t), t.filters && t.filters.length && t.filters.forEach(function(y) {
2948
+ a(y, n);
2934
2949
  });
2935
2950
  }
2936
2951
  }
@@ -2939,8 +2954,8 @@ q.activeFilterKeys = function(e, r) {
2939
2954
  r = r || {};
2940
2955
  var a = q.activeFilters(e), t = a.filter(function(i) {
2941
2956
  return !i.operator;
2942
- }).reduce(function(i, m) {
2943
- var l = q.cleanKey(m.key);
2957
+ }).reduce(function(i, y) {
2958
+ var l = q.cleanKey(y.key);
2944
2959
  return r.trimArrayDelimeters !== !1 && (l = l.split("[]").join("")), i[l] = !0, i;
2945
2960
  }, {}), n = Object.keys(t);
2946
2961
  return n;
@@ -2969,8 +2984,8 @@ q.activeFilterValues = function(e, r) {
2969
2984
  }
2970
2985
  var n = a.filter(function(i) {
2971
2986
  return !i.operator;
2972
- }).reduce(function(i, m) {
2973
- return i = [...i, ...(m.values || []).map(t), t(m.value), t(m.value2)], i;
2987
+ }).reduce(function(i, y) {
2988
+ return i = [...i, ...(y.values || []).map(t), t(y.value), t(y.value2)], i;
2974
2989
  }, []).filter(Kr);
2975
2990
  return n;
2976
2991
  };
@@ -2983,16 +2998,16 @@ function Ct(e) {
2983
2998
  return r.downloadUrl = function(a, t, n, i) {
2984
2999
  return i = i || {}, n = n || {}, n.download = !0, t = e.utils.id(t), e.api.generateEndpointURL(`/${a}/${t}`, n, i);
2985
3000
  }, r.duration = function(a) {
2986
- const t = Math.round(a), n = Math.floor(t / 3600), i = Math.floor(t % 3600 / 60), m = t % 60;
2987
- return n > 0 ? `${n}:${i.toString().padStart(2, "0")}:${m.toString().padStart(2, "0")}` : `${i}:${m.toString().padStart(2, "0")}`;
3001
+ const t = Math.round(a), n = Math.floor(t / 3600), i = Math.floor(t % 3600 / 60), y = t % 60;
3002
+ return n > 0 ? `${n}:${i.toString().padStart(2, "0")}:${y.toString().padStart(2, "0")}` : `${i}:${y.toString().padStart(2, "0")}`;
2988
3003
  }, r.mediaUrl = function(a, t, n, i) {
2989
3004
  i = i || {}, n = n || {}, t = e.utils.id(t);
2990
- let m = `/${a}/${t}`;
2991
- return i.extension?.length && (i.extension.includes(".") ? m = `${m}/${i.extension}` : m = `${m}/${a}.${i.extension}`), e.api.generateEndpointURL(m, n, i);
3005
+ let y = `/${a}/${t}`;
3006
+ return i.extension?.length && (i.extension.includes(".") ? y = `${y}/${i.extension}` : y = `${y}/${a}.${i.extension}`), e.api.generateEndpointURL(y, n, i);
2992
3007
  }, r.filesize = function(a, t) {
2993
3008
  if (a == 0) return "0 Bytes";
2994
- var n = 1024, i = t || 2, m = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], l = Math.floor(Math.log(a) / Math.log(n));
2995
- return parseFloat((a / Math.pow(n, l)).toFixed(i)) + " " + m[l];
3009
+ var n = 1024, i = t || 2, y = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], l = Math.floor(Math.log(a) / Math.log(n));
3010
+ return parseFloat((a / Math.pow(n, l)).toFixed(i)) + " " + y[l];
2996
3011
  }, r.getBinaryTypeFromMime = function(a) {
2997
3012
  if (!a)
2998
3013
  return "file";
@@ -3072,8 +3087,8 @@ var Ue = {}, Ot = {
3072
3087
  var t = [];
3073
3088
  n(a);
3074
3089
  function n(i) {
3075
- var m = e.utils.id(i);
3076
- t.push(m), (i.children || []).forEach(function(l) {
3090
+ var y = e.utils.id(i);
3091
+ t.push(y), (i.children || []).forEach(function(l) {
3077
3092
  n(l);
3078
3093
  });
3079
3094
  }
@@ -3081,10 +3096,10 @@ var Ue = {}, Ot = {
3081
3096
  }, r.hashPermissions = function(a) {
3082
3097
  var t = {};
3083
3098
  for (var n in a?.permissions || {}) {
3084
- var i = a?.permissions[n], m = r.getAllDescendants(i);
3099
+ var i = a?.permissions[n], y = r.getAllDescendants(i);
3085
3100
  (i.permissions || []).forEach(function(l) {
3086
3101
  t[l] || (t[l] = []), t[l] = [
3087
- ...new Set(t[l].concat(m))
3102
+ ...new Set(t[l].concat(y))
3088
3103
  ];
3089
3104
  });
3090
3105
  }
@@ -3094,39 +3109,39 @@ var Ue = {}, Ot = {
3094
3109
  function i(l) {
3095
3110
  if (l) {
3096
3111
  var p = e.utils.id(l);
3097
- p && (t[p] = 1, l.children && l.children.length && l.children.forEach(function(y) {
3098
- i(y);
3112
+ p && (t[p] = 1, l.children && l.children.length && l.children.forEach(function(m) {
3113
+ i(m);
3099
3114
  }));
3100
3115
  }
3101
3116
  }
3102
- for (var m in n)
3103
- i(n[m]);
3117
+ for (var y in n)
3118
+ i(n[y]);
3104
3119
  return Object.keys(t);
3105
- }, r.actionableScopes = function(a, t, n, i, m) {
3106
- m = m || {};
3120
+ }, r.actionableScopes = function(a, t, n, i, y) {
3121
+ y = y || {};
3107
3122
  var l = [];
3108
3123
  if (a?.userType == "administrator")
3109
- l = r.allUserScopes(a, m);
3124
+ l = r.allUserScopes(a, y);
3110
3125
  else {
3111
- var p = r.hashPermissions(a), y = n || i;
3112
- if (!y)
3126
+ var p = r.hashPermissions(a), m = n || i;
3127
+ if (!m)
3113
3128
  return l;
3114
- let w = n ? p[`${n}.${t}`] || [] : [], A = i ? p[`${i}.${t}`] || [] : [];
3115
- l = [...w, ...A];
3129
+ let w = n ? p[`${n}.${t}`] || [] : [], b = i ? p[`${i}.${t}`] || [] : [];
3130
+ l = [...w, ...b];
3116
3131
  }
3117
3132
  return l || [];
3118
3133
  }, r.isOwner = function(a, t) {
3119
- var n = e.utils.id(a), i = e.utils.id(a?.persona), m = t.meta;
3120
- if (!m)
3134
+ var n = e.utils.id(a), i = e.utils.id(a?.persona), y = t.meta;
3135
+ if (!y)
3121
3136
  return !1;
3122
- var l = m.userOwners || [], p = e.utils.ids([...l, m.userAuthor]), y = e.utils.hash(p);
3123
- if (y[n])
3137
+ var l = y.userOwners || [], p = e.utils.ids([...l, y.userAuthor]), m = e.utils.hash(p);
3138
+ if (m[n])
3124
3139
  return !0;
3125
- var w = m.personaOwners || [], A = e.utils.ids([
3140
+ var w = y.personaOwners || [], b = e.utils.ids([
3126
3141
  ...w,
3127
- m.personaAuthor
3128
- ]), s = e.utils.hash(A);
3129
- return s[i] ? !0 : r.isAssignee(a, t);
3142
+ y.personaAuthor
3143
+ ]), u = e.utils.hash(b);
3144
+ return u[i] ? !0 : r.isAssignee(a, t);
3130
3145
  }, r.isAssignee = function(a, t) {
3131
3146
  const n = e.utils.ids(a?.profiles);
3132
3147
  if (!n.length)
@@ -3134,8 +3149,8 @@ var Ue = {}, Ot = {
3134
3149
  const i = e.utils.ids(t.assignees);
3135
3150
  if (!i.length)
3136
3151
  return !1;
3137
- const m = new Set(i);
3138
- return !!n.filter((y) => m.has(y)).length;
3152
+ const y = new Set(i);
3153
+ return !!n.filter((m) => y.has(m)).length;
3139
3154
  }, r.allPermissions = function(a) {
3140
3155
  var t = Object.values(a?.permissions || {}).map(function(n) {
3141
3156
  return n.permissions;
@@ -3143,54 +3158,54 @@ var Ue = {}, Ot = {
3143
3158
  return t;
3144
3159
  }, r.allPermissionTypes = function(a, t) {
3145
3160
  return t ? r.allPermissions(a).reduce(function(n, i) {
3146
- var m = i.split(".")[0];
3147
- return n[m] = !0, n;
3161
+ var y = i.split(".")[0];
3162
+ return n[y] = !0, n;
3148
3163
  }, {}) : r.allPermissions(a).map(function(n) {
3149
3164
  return n.split(".")[0];
3150
3165
  });
3151
3166
  }, r.canKnowOf = function(a, t, n) {
3152
3167
  return n = n || {}, n.cache = n.cache || {}, r.allPermissionTypes(a, !0)[t];
3153
- }, r.checkActionAccess = function(a, t, n, i, m) {
3154
- if (m = m || {}, m.cache = m.cache || {}, r.isAdministrator(a))
3168
+ }, r.checkActionAccess = function(a, t, n, i, y) {
3169
+ if (y = y || {}, y.cache = y.cache || {}, r.isAdministrator(a))
3155
3170
  return !0;
3156
3171
  var l = t.meta?.type, p = t.meta?.definition || l;
3157
3172
  if (!p)
3158
3173
  return !1;
3159
3174
  if ((n == "listany" || i == "listown") && l === "scope") {
3160
- var y = e.utils.id(t);
3161
- return !!a.permissions[y];
3175
+ var m = e.utils.id(t);
3176
+ return !!a.permissions[m];
3162
3177
  }
3163
3178
  var w = e.utils.ids(t.meta.scopes || []);
3164
3179
  l === "scope" && (w = [
3165
3180
  ...e.utils.ids(t.path || []),
3166
3181
  e.utils.id(t)
3167
3182
  ]);
3168
- var A, s = `access-${a?.cacheKey}-${n}-${p}-${l}`;
3169
- if (m.cache[s])
3170
- A = m.cache[s];
3183
+ var b, u = `access-${a?.cacheKey}-${n}-${p}-${l}`;
3184
+ if (y.cache[u])
3185
+ b = y.cache[u];
3171
3186
  else {
3172
3187
  var o = e.utils.ids(
3173
- r.actionableScopes(a, n, p, l, m)
3188
+ r.actionableScopes(a, n, p, l, y)
3174
3189
  );
3175
- A = e.utils.hash(o), m.cache[s] = A;
3190
+ b = e.utils.hash(o), y.cache[u] = b;
3176
3191
  }
3177
- if (A) {
3192
+ if (b) {
3178
3193
  var f = w.some(function(P) {
3179
- return A[P];
3194
+ return b[P];
3180
3195
  });
3181
3196
  if (f)
3182
3197
  return !0;
3183
3198
  }
3184
- var g = r.isOwner(a, t);
3185
- if (g) {
3186
- var c, u = `access-${a?.cacheKey}-${i}-${p}-${l}`;
3187
- if (m.cache[u])
3188
- c = m.cache[u];
3199
+ var h = r.isOwner(a, t);
3200
+ if (h) {
3201
+ var c, s = `access-${a?.cacheKey}-${i}-${p}-${l}`;
3202
+ if (y.cache[s])
3203
+ c = y.cache[s];
3189
3204
  else {
3190
- var b = e.utils.ids(
3191
- r.actionableScopes(a, i, p, l, m)
3205
+ var A = e.utils.ids(
3206
+ r.actionableScopes(a, i, p, l, y)
3192
3207
  );
3193
- c = e.utils.hash(b), m.cache[u] = c;
3208
+ c = e.utils.hash(A), y.cache[s] = c;
3194
3209
  }
3195
3210
  if (c) {
3196
3211
  var S = w.some(function(P) {
@@ -3209,13 +3224,13 @@ var Ue = {}, Ot = {
3209
3224
  }, r.canCreate = function(a, t, n, i) {
3210
3225
  if (i = i || {}, i.cache = i.cache || {}, r.isAdministrator(a))
3211
3226
  return !0;
3212
- var m = r.actionableScopes(
3227
+ var y = r.actionableScopes(
3213
3228
  a,
3214
3229
  "create",
3215
3230
  t,
3216
3231
  n
3217
3232
  );
3218
- return m.length;
3233
+ return y.length;
3219
3234
  }, r.canListItem = function(a, t, n) {
3220
3235
  n = n || {}, n.cache = n.cache || {};
3221
3236
  var i = r.checkActionAccess(
@@ -3227,8 +3242,8 @@ var Ue = {}, Ot = {
3227
3242
  );
3228
3243
  if (i)
3229
3244
  return !0;
3230
- var m = r.canViewItem(a, t, n);
3231
- return !!m;
3245
+ var y = r.canViewItem(a, t, n);
3246
+ return !!y;
3232
3247
  }, r.canViewItem = function(a, t, n) {
3233
3248
  n = n || {}, n.cache = n.cache || {};
3234
3249
  var i = r.checkActionAccess(
@@ -3240,8 +3255,8 @@ var Ue = {}, Ot = {
3240
3255
  );
3241
3256
  if (i)
3242
3257
  return !0;
3243
- var m = r.canEditItem(a, t, n);
3244
- return !!m;
3258
+ var y = r.canEditItem(a, t, n);
3259
+ return !!y;
3245
3260
  }, r.canEditItem = function(a, t, n) {
3246
3261
  n = n || {}, n.cache = n.cache || {};
3247
3262
  var i = r.checkActionAccess(
@@ -3287,140 +3302,140 @@ function Rt(e) {
3287
3302
  };
3288
3303
  const a = {};
3289
3304
  let t;
3290
- r.variables = async function(s, o) {
3291
- o = o || {}, s = s || [];
3305
+ r.variables = async function(u, o) {
3306
+ o = o || {}, u = u || [];
3292
3307
  var f = o.refresh || o.reload || !a.data;
3293
3308
  if (f) {
3294
3309
  if (!t) {
3295
3310
  let c = function() {
3296
3311
  t = null;
3297
3312
  };
3298
- t = e.api.post("/variables", { keys: s }), t.then(c, c);
3313
+ t = e.api.post("/variables", { keys: u }), t.then(c, c);
3299
3314
  }
3300
- const { data: g } = await t;
3301
- a.data = g, e.dispatch("variables", g);
3315
+ const { data: h } = await t;
3316
+ a.data = h, e.dispatch("variables", h);
3302
3317
  }
3303
3318
  return a.data;
3304
3319
  };
3305
3320
  const n = e.cache.get("user:glossary");
3306
3321
  let i;
3307
- function m() {
3308
- return new Promise((s) => {
3309
- typeof requestIdleCallback == "function" ? requestIdleCallback(s, { timeout: 50 }) : setTimeout(s, 0);
3322
+ function y() {
3323
+ return new Promise((u) => {
3324
+ typeof requestIdleCallback == "function" ? requestIdleCallback(u, { timeout: 50 }) : setTimeout(u, 0);
3310
3325
  });
3311
3326
  }
3312
- async function l({ _s: s, _k: o, types: f }) {
3313
- function g(b) {
3314
- if (typeof b == "string" && b[0] === "~")
3315
- return s[parseInt(b.slice(1))];
3316
- if (Array.isArray(b)) return b.map(g);
3317
- if (b && typeof b == "object") {
3327
+ async function l({ _s: u, _k: o, types: f }) {
3328
+ function h(A) {
3329
+ if (typeof A == "string" && A[0] === "~")
3330
+ return u[parseInt(A.slice(1))];
3331
+ if (Array.isArray(A)) return A.map(h);
3332
+ if (A && typeof A == "object") {
3318
3333
  const S = {};
3319
- for (const [P, x] of Object.entries(b))
3320
- S[o[P] || P] = g(x);
3334
+ for (const [P, x] of Object.entries(A))
3335
+ S[o[P] || P] = h(x);
3321
3336
  return S;
3322
3337
  }
3323
- return b;
3338
+ return A;
3324
3339
  }
3325
- const c = 50, u = [];
3326
- for (let b = 0; b < f.length; b += c) {
3327
- const S = f.slice(b, b + c);
3328
- u.push(...S.map(g)), b + c < f.length && await m();
3340
+ const c = 50, s = [];
3341
+ for (let A = 0; A < f.length; A += c) {
3342
+ const S = f.slice(A, A + c);
3343
+ s.push(...S.map(h)), A + c < f.length && await y();
3329
3344
  }
3330
- return u;
3345
+ return s;
3331
3346
  }
3332
- r.glossary = async function(s) {
3333
- s = s || {};
3334
- let o = n.get("glossary"), g = !!!s.uncompressed;
3335
- var c = s.refresh || s.reload || !o;
3347
+ r.glossary = async function(u) {
3348
+ u = u || {};
3349
+ let o = n.get("glossary"), h = !!!u.uncompressed;
3350
+ var c = u.refresh || u.reload || !o;
3336
3351
  if (c) {
3337
3352
  if (!i) {
3338
3353
  let x = function() {
3339
3354
  i = null, r.loadingGlossary = !1;
3340
3355
  };
3341
3356
  r.loadingGlossary = !0;
3342
- const P = g ? "/glossary/compressed" : "/glossary";
3357
+ const P = h ? "/glossary/compressed" : "/glossary";
3343
3358
  i = e.api.get(P, { cache: !1 }), i.then(x, x);
3344
3359
  }
3345
- const { data: b } = await i, S = b._s && b._k && b.types ? await l(b) : b;
3360
+ const { data: A } = await i, S = A._s && A._k && A.types ? await l(A) : A;
3346
3361
  n.set("glossary", S), o = S, e.dispatch("glossary", S);
3347
3362
  }
3348
- if (s.hash) {
3349
- var u = e.utils.hash(o, "key");
3350
- return u;
3363
+ if (u.hash) {
3364
+ var s = e.utils.hash(o, "key");
3365
+ return s;
3351
3366
  }
3352
- if (s.hex) {
3353
- var u = e.utils.hash(o, "hex");
3354
- return u;
3367
+ if (u.hex) {
3368
+ var s = e.utils.hash(o, "hex");
3369
+ return s;
3355
3370
  }
3356
3371
  return o;
3357
3372
  };
3358
3373
  const p = {};
3359
- let y;
3360
- r.scopeGlossary = async function(s) {
3361
- s = s || {};
3362
- var o = s.refresh || s.reload || !p.data;
3374
+ let m;
3375
+ r.scopeGlossary = async function(u) {
3376
+ u = u || {};
3377
+ var o = u.refresh || u.reload || !p.data;
3363
3378
  if (o) {
3364
- if (!y) {
3379
+ if (!m) {
3365
3380
  let c = function() {
3366
- y = null;
3381
+ m = null;
3367
3382
  };
3368
- y = e.api.get("/scope/glossary", {
3383
+ m = e.api.get("/scope/glossary", {
3369
3384
  cache: !1
3370
- }), y.then(c, c);
3385
+ }), m.then(c, c);
3371
3386
  }
3372
- const { data: g } = await y;
3373
- p.data = g;
3387
+ const { data: h } = await m;
3388
+ p.data = h;
3374
3389
  }
3375
- if (s.hash) {
3390
+ if (u.hash) {
3376
3391
  var f = e.utils.hash(p.data, "_id");
3377
3392
  return f;
3378
3393
  }
3379
3394
  return p.data;
3380
3395
  };
3381
3396
  const w = {};
3382
- r.comparators = async function(s) {
3383
- s = s || {};
3384
- var o = s.reload || s.refresh || !w.data;
3397
+ r.comparators = async function(u) {
3398
+ u = u || {};
3399
+ var o = u.reload || u.refresh || !w.data;
3385
3400
  if (o) {
3386
3401
  const { data: f } = await e.api.get("/system/comparators");
3387
- f.available = {}, Object.entries(f.types).forEach(([g, c]) => {
3388
- f.available[g] = c.map(function(u) {
3389
- return f.hash[u];
3402
+ f.available = {}, Object.entries(f.types).forEach(([h, c]) => {
3403
+ f.available[h] = c.map(function(s) {
3404
+ return f.hash[s];
3390
3405
  });
3391
3406
  }), w.data = f;
3392
3407
  }
3393
3408
  return w.data;
3394
3409
  };
3395
- function A(s) {
3396
- var { minimum: o, maximum: f } = s;
3410
+ function b(u) {
3411
+ var { minimum: o, maximum: f } = u;
3397
3412
  return o = e.utils.parseInt(o), o = Math.max(o, 0), f = e.utils.parseInt(f), f = Math.max(f, 0), f == 0 || (f = Math.max(f, o)), { minimum: o, maximum: f };
3398
3413
  }
3399
- return r.meetsValidationRequirements = function(s, o, f) {
3414
+ return r.meetsValidationRequirements = function(u, o, f) {
3400
3415
  if (f.minLength) {
3401
- var g = String(s).length;
3402
- if (g < f.minLength)
3416
+ var h = String(u).length;
3417
+ if (h < f.minLength)
3403
3418
  return `Must be at least ${f.minLength} characters`;
3404
3419
  }
3405
3420
  if (f.maxLength) {
3406
- var g = String(s).length;
3407
- if (g > f.maxLength)
3421
+ var h = String(u).length;
3422
+ if (h > f.maxLength)
3408
3423
  return `Can be no more than ${f.maxLength} characters`;
3409
3424
  }
3410
- if (f.minValue && s !== void 0) {
3411
- var c = Number(s);
3425
+ if (f.minValue && u !== void 0) {
3426
+ var c = Number(u);
3412
3427
  if (c < f.minValue)
3413
3428
  return `Must be at least ${f.minValue}`;
3414
3429
  }
3415
- if (f.maxValue && s !== void 0) {
3416
- var c = Number(s);
3430
+ if (f.maxValue && u !== void 0) {
3431
+ var c = Number(u);
3417
3432
  if (c > f.maxValue)
3418
3433
  return `Can be no greater than ${f.maxValue}`;
3419
3434
  }
3420
- }, r.validateField = function(s, o, f) {
3435
+ }, r.validateField = function(u, o, f) {
3421
3436
  f = f || {};
3422
- var g = o.type || "string", { minimum: c, maximum: u } = A(o), b = o.type == "group" && o.asObject, S = b ? c === u && u === 1 : u === 1, P = !S, x = e.utils.exists(s);
3423
- if (o.type === "boolean" && s !== !0 && (x = !1), c) {
3437
+ var h = o.type || "string", { minimum: c, maximum: s } = b(o), A = o.type == "group" && o.asObject, S = A ? c === s && s === 1 : s === 1, P = !S, x = e.utils.exists(u);
3438
+ if (o.type === "boolean" && u !== !0 && (x = !1), c) {
3424
3439
  if (!x)
3425
3440
  return {
3426
3441
  valid: !1,
@@ -3432,30 +3447,30 @@ function Rt(e) {
3432
3447
  valid: !0
3433
3448
  };
3434
3449
  if (P) {
3435
- if (!Array.isArray(s))
3450
+ if (!Array.isArray(u))
3436
3451
  return c ? {
3437
3452
  valid: !1,
3438
3453
  message: `${o.title} requires at least ${c} values`,
3439
3454
  status: 400
3440
- } : (console.log("NOT PROVIDED AS ARRAY", o.title, s), {
3455
+ } : (console.log("NOT PROVIDED AS ARRAY", o.title, u), {
3441
3456
  valid: !1,
3442
3457
  message: `${o.title} must be provided as an array`,
3443
3458
  status: 400
3444
3459
  });
3445
- var T = s;
3460
+ var T = u;
3446
3461
  if (T = T.filter(function(I) {
3447
3462
  var k = I == null || I === "";
3448
3463
  return !k;
3449
- }), c == u && c && T.length != c)
3464
+ }), c == s && c && T.length != c)
3450
3465
  return {
3451
3466
  valid: !1,
3452
- message: `${o.title} requires exactly ${u} values`,
3467
+ message: `${o.title} requires exactly ${s} values`,
3453
3468
  status: 400
3454
3469
  };
3455
- if (u && T.length > u)
3470
+ if (s && T.length > s)
3456
3471
  return {
3457
3472
  valid: !1,
3458
- message: `${o.title} requires less than ${u + 1} values`,
3473
+ message: `${o.title} requires less than ${s + 1} values`,
3459
3474
  status: 400
3460
3475
  };
3461
3476
  if (T.length < c)
@@ -3466,7 +3481,7 @@ function Rt(e) {
3466
3481
  };
3467
3482
  var L;
3468
3483
  if (T.find(function(I) {
3469
- var k = g;
3484
+ var k = h;
3470
3485
  o.type === "group" && (k = "object"), o.type === "reference" && o.widget === "form" && (k = "object");
3471
3486
  var U = e.utils.isValidValue(
3472
3487
  I,
@@ -3478,7 +3493,7 @@ function Rt(e) {
3478
3493
  if (o.validation) {
3479
3494
  var z = r.meetsValidationRequirements(
3480
3495
  I,
3481
- g,
3496
+ h,
3482
3497
  o.validation
3483
3498
  );
3484
3499
  if (z)
@@ -3491,9 +3506,9 @@ function Rt(e) {
3491
3506
  status: 400
3492
3507
  };
3493
3508
  } else {
3494
- var M = g, V = o.widget;
3509
+ var M = h, V = o.widget;
3495
3510
  M === "group" && (M = "object"), M === "reference" && V === "form" && (M = "object");
3496
- var $ = r.getCleanedValue(s, M, f), N = e.utils.isValidValue(
3511
+ var $ = r.getCleanedValue(u, M, f), N = e.utils.isValidValue(
3497
3512
  $,
3498
3513
  M,
3499
3514
  f.strict
@@ -3501,11 +3516,11 @@ function Rt(e) {
3501
3516
  if (!N)
3502
3517
  return {
3503
3518
  valid: !1,
3504
- message: `Single value '${s}' is not a valid ${M} for ${o.title}`,
3519
+ message: `Single value '${u}' is not a valid ${M} for ${o.title}`,
3505
3520
  criteria: {
3506
3521
  isValidValue: N,
3507
3522
  cleanedValue: $,
3508
- fieldType: g,
3523
+ fieldType: h,
3509
3524
  options: f
3510
3525
  },
3511
3526
  status: 400
@@ -3519,8 +3534,8 @@ function Rt(e) {
3519
3534
  o.validation || {}
3520
3535
  );
3521
3536
  var F = r.meetsValidationRequirements(
3522
- s,
3523
- g,
3537
+ u,
3538
+ h,
3524
3539
  U
3525
3540
  );
3526
3541
  if (F)
@@ -3534,73 +3549,73 @@ function Rt(e) {
3534
3549
  return {
3535
3550
  valid: !0
3536
3551
  };
3537
- }, r.getCleanedValue = function(s, o, f) {
3552
+ }, r.getCleanedValue = function(u, o, f) {
3538
3553
  switch (o) {
3539
3554
  case "number":
3540
3555
  case "float":
3541
3556
  case "decimal":
3542
- return e.utils.exists(s) ? Number(s) : void 0;
3557
+ return e.utils.exists(u) ? Number(u) : void 0;
3543
3558
  case "integer":
3544
- return e.utils.exists(s) ? parseInt(s) : void 0;
3559
+ return e.utils.exists(u) ? parseInt(u) : void 0;
3545
3560
  case "boolean":
3546
- return e.utils.exists(s) ? e.utils.parseBoolean(s) : void 0;
3561
+ return e.utils.exists(u) ? e.utils.parseBoolean(u) : void 0;
3547
3562
  case "email":
3548
- return f.strict ? s : String(s).toLowerCase();
3563
+ return f.strict ? u : String(u).toLowerCase();
3549
3564
  case "reference":
3550
- return f.strict ? s : e.utils.id(s);
3565
+ return f.strict ? u : e.utils.id(u);
3551
3566
  default:
3552
- return f.strict ? s : e.utils.cleanValue(s, o, f);
3567
+ return f.strict ? u : e.utils.cleanValue(u, o, f);
3553
3568
  }
3554
- return s;
3555
- }, r.list = async function(s, o, f) {
3569
+ return u;
3570
+ }, r.list = async function(u, o, f) {
3556
3571
  f || (f = {});
3557
- const g = f.remoteURL || `/content/${s}/list`;
3572
+ const h = f.remoteURL || `/content/${u}/list`;
3558
3573
  if (f.cancellable) {
3559
3574
  f.config || (f.config = {});
3560
- const u = e.api.CancelToken.source();
3561
- return f.config.cancelToken = u.token, {
3562
- promise: e.api.post(g, o, f.config),
3575
+ const s = e.api.CancelToken.source();
3576
+ return f.config.cancelToken = s.token, {
3577
+ promise: e.api.post(h, o, f.config),
3563
3578
  cancel(S) {
3564
- u.cancel(S || "Operation canceled by the user.");
3579
+ s.cancel(S || "Operation canceled by the user.");
3565
3580
  }
3566
3581
  };
3567
3582
  } else {
3568
- const { data: c } = await e.api.post(g, o, f.config);
3583
+ const { data: c } = await e.api.post(h, o, f.config);
3569
3584
  return c;
3570
3585
  }
3571
- }, r.create = async function(s, o) {
3586
+ }, r.create = async function(u, o) {
3572
3587
  const f = { ...o };
3573
3588
  f.meta?.scopes && (f.meta.scopes = e.utils.ids(f.meta.scopes));
3574
- const { data: g } = await e.api.post(`/content/${s}/create`, f);
3575
- return g;
3576
- }, r.update = async function(s, o) {
3577
- s = e.utils.id(s);
3589
+ const { data: h } = await e.api.post(`/content/${u}/create`, f);
3590
+ return h;
3591
+ }, r.update = async function(u, o) {
3592
+ u = e.utils.id(u);
3578
3593
  const f = { ...o };
3579
3594
  f.meta?.scopes && (f.meta.scopes = e.utils.ids(f.meta.scopes));
3580
- const { data: g } = await e.api.put(`/content/${s}`, f);
3581
- return g;
3582
- }, r.patch = async function(s, o) {
3583
- s = e.utils.id(s);
3595
+ const { data: h } = await e.api.put(`/content/${u}`, f);
3596
+ return h;
3597
+ }, r.patch = async function(u, o) {
3598
+ u = e.utils.id(u);
3584
3599
  const f = { ...o };
3585
3600
  f.meta?.scopes && (f.meta.scopes = e.utils.ids(f.meta.scopes));
3586
- const { data: g } = await e.api.patch(`/content/${s}`, f);
3587
- return g;
3588
- }, r.get = async function(s, o) {
3589
- s = e.utils.id(s), o = o || {};
3590
- const { data: f } = await e.api.get(`/content/${s}`, o);
3601
+ const { data: h } = await e.api.patch(`/content/${u}`, f);
3602
+ return h;
3603
+ }, r.get = async function(u, o) {
3604
+ u = e.utils.id(u), o = o || {};
3605
+ const { data: f } = await e.api.get(`/content/${u}`, o);
3591
3606
  return f;
3592
- }, r.getFromID = async function(s) {
3593
- return r.get(s);
3594
- }, r.delete = async function(s, o) {
3595
- s = e.utils.id(s);
3596
- const { data: f } = await e.api.delete(`/content/${s}`, o);
3607
+ }, r.getFromID = async function(u) {
3608
+ return r.get(u);
3609
+ }, r.delete = async function(u, o) {
3610
+ u = e.utils.id(u);
3611
+ const { data: f } = await e.api.delete(`/content/${u}`, o);
3597
3612
  return f;
3598
- }, r.restore = async function(s, o) {
3599
- s = e.utils.id(s);
3600
- const { data: f } = await e.api.get(`/content/${s}/restore`, o);
3613
+ }, r.restore = async function(u, o) {
3614
+ u = e.utils.id(u);
3615
+ const { data: f } = await e.api.get(`/content/${u}/restore`, o);
3601
3616
  return f;
3602
- }, r.getFromSlug = async function(s) {
3603
- const { data: o } = await e.api.get(`/content/slug/${s}`);
3617
+ }, r.getFromSlug = async function(u) {
3618
+ const { data: o } = await e.api.get(`/content/slug/${u}`);
3604
3619
  return o;
3605
3620
  }, r;
3606
3621
  }
@@ -3619,11 +3634,11 @@ function It(e) {
3619
3634
  function a() {
3620
3635
  return !(typeof window > "u" || !window.navigator || !window.navigator.geolocation);
3621
3636
  }
3622
- return r.distance = function({ lat: t, lon: n }, { lat: i, lon: m }) {
3637
+ return r.distance = function({ lat: t, lon: n }, { lat: i, lon: y }) {
3623
3638
  function l(f) {
3624
3639
  return f * (Math.PI / 180);
3625
3640
  }
3626
- var p = 6371e3, y = l(i - t), w = l(m - n), A = Math.sin(y / 2) * Math.sin(y / 2) + Math.cos(l(t)) * Math.cos(l(i)) * Math.sin(w / 2) * Math.sin(w / 2), s = 2 * Math.atan2(Math.sqrt(A), Math.sqrt(1 - A)), o = p * s;
3641
+ var p = 6371e3, m = l(i - t), w = l(y - n), b = Math.sin(m / 2) * Math.sin(m / 2) + Math.cos(l(t)) * Math.cos(l(i)) * Math.sin(w / 2) * Math.sin(w / 2), u = 2 * Math.atan2(Math.sqrt(b), Math.sqrt(1 - b)), o = p * u;
3627
3642
  return o;
3628
3643
  }, r.getPosition = async function() {
3629
3644
  return a() ? (console.log("qik:geo: getting location"), new Promise(function(t, n) {
@@ -3631,9 +3646,9 @@ function It(e) {
3631
3646
  })) : Promise.reject({ message: "Geolocation is not enabled" });
3632
3647
  }, r.watchPosition = async function(t) {
3633
3648
  return a() ? (console.log("qik:geo: watching location"), new Promise(function(n, i) {
3634
- const m = navigator.geolocation.watchPosition(t, i);
3649
+ const y = navigator.geolocation.watchPosition(t, i);
3635
3650
  n({
3636
- id: m
3651
+ id: y
3637
3652
  });
3638
3653
  })) : Promise.reject({ message: "Geolocation is not enabled" });
3639
3654
  }, r.stopWatchPosition = async function(t) {
@@ -4368,39 +4383,39 @@ const kt = function(e, r) {
4368
4383
  windowID: a,
4369
4384
  autoreconnect: !0
4370
4385
  }, n, i = {};
4371
- const m = {}, l = new De();
4372
- l.bootstrap(t), t.channel = async function(g) {
4373
- if (i[g])
4374
- return i[g];
4386
+ const y = {}, l = new De();
4387
+ l.bootstrap(t), t.channel = async function(h) {
4388
+ if (i[h])
4389
+ return i[h];
4375
4390
  const c = new De();
4376
- function u(b) {
4377
- c.dispatch("message", b);
4391
+ function s(A) {
4392
+ c.dispatch("message", A);
4378
4393
  }
4379
4394
  return c.destroy = function() {
4380
- t.removeEventListener(g, u), t.unsubscribe(g), c.removeAllListeners(), delete i[g];
4381
- }, i[g] = c, t.connected || await t.connect(), t.subscribe(g), t.addEventListener(g, u), i[g];
4395
+ t.removeEventListener(h, s), t.unsubscribe(h), c.removeAllListeners(), delete i[h];
4396
+ }, i[h] = c, t.connected || await t.connect(), t.subscribe(h), t.addEventListener(h, s), i[h];
4382
4397
  };
4383
- function p(g) {
4384
- t.debug && console.log("[socket] Connection open", g), t.connected = !0, l.dispatch("connected", g);
4398
+ function p(h) {
4399
+ t.debug && console.log("[socket] Connection open", h), t.connected = !0, l.dispatch("connected", h);
4385
4400
  }
4386
- async function y(g) {
4387
- g.wasClean ? t.debug && console.log(`[socket] Connection closed cleanly, code=${g.code} reason=${g.reason}`) : t.debug && console.log("[socket] - connection closed due to error", g), t.connected = !1, l.dispatch("disconnected", g), n = null, t.autoreconnect && t.reconnect();
4401
+ async function m(h) {
4402
+ h.wasClean ? t.debug && console.log(`[socket] Connection closed cleanly, code=${h.code} reason=${h.reason}`) : t.debug && console.log("[socket] - connection closed due to error", h), t.connected = !1, l.dispatch("disconnected", h), n = null, t.autoreconnect && t.reconnect();
4388
4403
  }
4389
- function w(g) {
4390
- console.log("[event] socketError", event), t.debug && console.log("[socket] Error", g), l.dispatch("error", g);
4404
+ function w(h) {
4405
+ console.log("[event] socketError", event), t.debug && console.log("[socket] Error", h), l.dispatch("error", h);
4391
4406
  }
4392
- function A(g) {
4393
- const c = JSON.parse(g.data);
4407
+ function b(h) {
4408
+ const c = JSON.parse(h.data);
4394
4409
  t.debug && console.log("[socket] message received", c), l.dispatch("message", c), c.channel && l.dispatch(c.channel, c);
4395
4410
  }
4396
- async function s(g) {
4397
- n.send(JSON.stringify(g));
4411
+ async function u(h) {
4412
+ n.send(JSON.stringify(h));
4398
4413
  }
4399
4414
  function o() {
4400
- return new Promise(function(g) {
4415
+ return new Promise(function(h) {
4401
4416
  function c() {
4402
4417
  if (t.connected)
4403
- return g(n);
4418
+ return h(n);
4404
4419
  setTimeout(c, 1e3);
4405
4420
  }
4406
4421
  c();
@@ -4409,49 +4424,49 @@ const kt = function(e, r) {
4409
4424
  t.connect = async function() {
4410
4425
  if (n)
4411
4426
  return n.connected ? (console.log("[socket] - Socket is already connected"), n) : o();
4412
- const g = e.auth.getCurrentToken();
4413
- if (!g) {
4427
+ const h = e.auth.getCurrentToken();
4428
+ if (!h) {
4414
4429
  t.debug && console.log("[socket] - Must be authenticated to connect to socket");
4415
4430
  return;
4416
4431
  }
4417
- return n = new WebSocket(`${t.url}?access_token=${g}&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"), o();
4432
+ return n = new WebSocket(`${t.url}?access_token=${h}&windowid=${a}`), n.addEventListener("close", m), n.addEventListener("error", w), n.addEventListener("open", p), n.addEventListener("message", b), t.debug && console.log("[socket] - Connected with event listeners"), o();
4418
4433
  }, t.reconnect = async function() {
4419
4434
  if (t.connected)
4420
4435
  return;
4421
4436
  t.debug && console.log("[socket] reconnecting...");
4422
- const g = await t.connect();
4423
- return Object.keys(m).forEach(function(u) {
4424
- t.subscribe(u);
4425
- }), g;
4437
+ const h = await t.connect();
4438
+ return Object.keys(y).forEach(function(s) {
4439
+ t.subscribe(s);
4440
+ }), h;
4426
4441
  }, t.close = async function() {
4427
4442
  if (!n) {
4428
4443
  console.log("[socket] - Socket is not connected");
4429
4444
  return;
4430
4445
  }
4431
- const g = t.autoreconnect;
4432
- 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 = g;
4433
- }, t.disconnect = t.close, t.subscribe = async function(g) {
4446
+ const h = t.autoreconnect;
4447
+ t.autoreconnect = !1, n.close(), n.removeEventListener("close", m), n.removeEventListener("error", w), n.removeEventListener("open", p), n.removeEventListener("message", b), n = null, m({ wasClean: !0 }), t.autoreconnect = h;
4448
+ }, t.disconnect = t.close, t.subscribe = async function(h) {
4434
4449
  if (!n) {
4435
4450
  console.log("[socket] - Can't subscribe to channel as socket is not connected");
4436
4451
  return;
4437
4452
  }
4438
- s({
4453
+ u({
4439
4454
  action: "subscribe",
4440
- channel: g
4441
- }), m[g] = !0, l.dispatch("subscribe", g), t.debug && console.log(`[socket] - subscribed to ${g}`);
4442
- }, t.unsubscribe = async function(g) {
4455
+ channel: h
4456
+ }), y[h] = !0, l.dispatch("subscribe", h), t.debug && console.log(`[socket] - subscribed to ${h}`);
4457
+ }, t.unsubscribe = async function(h) {
4443
4458
  if (!n) {
4444
4459
  console.log("[socket] - Can't unsubscribe from channel as socket is not connected");
4445
4460
  return;
4446
4461
  }
4447
- s({
4462
+ u({
4448
4463
  action: "unsubscribe",
4449
- channel: g
4450
- }), delete m[g], l.dispatch("unsubscribe", g), t.debug && console.log(`[socket] - unsubscribed from ${g}`);
4464
+ channel: h
4465
+ }), delete y[h], l.dispatch("unsubscribe", h), t.debug && console.log(`[socket] - unsubscribed from ${h}`);
4451
4466
  };
4452
4467
  let f = e.utils.id(e.auth.getCurrentUser()?.organisation);
4453
- return e.auth.addEventListener("change", async function(g) {
4454
- const c = e.utils.id(g?.organisation);
4468
+ return e.auth.addEventListener("change", async function(h) {
4469
+ const c = e.utils.id(h?.organisation);
4455
4470
  c !== f && (f = c, n && (t.debug && console.log("[socket] - organisation changed, reconnecting"), await t.close(), await t.reconnect()));
4456
4471
  }), t;
4457
4472
  };
@@ -4493,8 +4508,8 @@ function Ft(e) {
4493
4508
  writable: !1
4494
4509
  }), new De().bootstrap(r), r.error = function(f) {
4495
4510
  return r.dispatch("error", t.errorMessage(f));
4496
- }, r.notify = function(f, g) {
4497
- return r.dispatch("notification", { message: f, options: g });
4511
+ }, r.notify = function(f, h) {
4512
+ return r.dispatch("notification", { message: f, options: h });
4498
4513
  };
4499
4514
  const l = new mt(r);
4500
4515
  Object.defineProperty(r, "api", {
@@ -4506,9 +4521,9 @@ function Ft(e) {
4506
4521
  value: p,
4507
4522
  writable: !1
4508
4523
  });
4509
- const y = new kt(r);
4524
+ const m = new kt(r);
4510
4525
  Object.defineProperty(r, "socket", {
4511
- value: y,
4526
+ value: m,
4512
4527
  writable: !1
4513
4528
  });
4514
4529
  const w = new Mt(r);
@@ -4516,14 +4531,14 @@ function Ft(e) {
4516
4531
  value: w,
4517
4532
  writable: !1
4518
4533
  });
4519
- const A = new Tt(r);
4534
+ const b = new Tt(r);
4520
4535
  Object.defineProperty(r, "system", {
4521
- value: A,
4536
+ value: b,
4522
4537
  writable: !1
4523
4538
  });
4524
- const s = new It(r);
4539
+ const u = new It(r);
4525
4540
  Object.defineProperty(r, "geo", {
4526
- value: s,
4541
+ value: u,
4527
4542
  writable: !1
4528
4543
  });
4529
4544
  const o = new Rt(r);