@qikdev/sdk 1.0.8 → 1.0.10

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
@@ -8,25 +8,25 @@ function Zr(e) {
8
8
  if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
9
9
  var r = e.default;
10
10
  if (typeof r == "function") {
11
- var a = function t() {
12
- var n = !1;
11
+ var i = function t() {
12
+ var a = !1;
13
13
  try {
14
- n = this instanceof t;
14
+ a = this instanceof t;
15
15
  } catch {
16
16
  }
17
- return n ? Reflect.construct(r, arguments, this.constructor) : r.apply(this, arguments);
17
+ return a ? Reflect.construct(r, arguments, this.constructor) : r.apply(this, arguments);
18
18
  };
19
- a.prototype = r.prototype;
20
- } else a = {};
21
- return Object.defineProperty(a, "__esModule", { value: !0 }), Object.keys(e).forEach(function(t) {
22
- var n = Object.getOwnPropertyDescriptor(e, t);
23
- Object.defineProperty(a, t, n.get ? n : {
19
+ i.prototype = r.prototype;
20
+ } else i = {};
21
+ return Object.defineProperty(i, "__esModule", { value: !0 }), Object.keys(e).forEach(function(t) {
22
+ var a = Object.getOwnPropertyDescriptor(e, t);
23
+ Object.defineProperty(i, t, a.get ? a : {
24
24
  enumerable: !0,
25
25
  get: function() {
26
26
  return e[t];
27
27
  }
28
28
  });
29
- }), a;
29
+ }), i;
30
30
  }
31
31
  var Ze, Pr;
32
32
  function Qr() {
@@ -35,21 +35,21 @@ function Qr() {
35
35
  return !1;
36
36
  if (typeof Symbol.iterator == "symbol")
37
37
  return !0;
38
- var r = {}, a = Symbol("test"), t = Object(a);
39
- if (typeof a == "string" || Object.prototype.toString.call(a) !== "[object Symbol]" || Object.prototype.toString.call(t) !== "[object Symbol]")
38
+ var r = {}, i = Symbol("test"), t = Object(i);
39
+ if (typeof i == "string" || Object.prototype.toString.call(i) !== "[object Symbol]" || Object.prototype.toString.call(t) !== "[object Symbol]")
40
40
  return !1;
41
- var n = 42;
42
- r[a] = n;
43
- for (a in r)
41
+ var a = 42;
42
+ r[i] = a;
43
+ for (i in r)
44
44
  return !1;
45
45
  if (typeof Object.keys == "function" && Object.keys(r).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(r).length !== 0)
46
46
  return !1;
47
- var i = Object.getOwnPropertySymbols(r);
48
- if (i.length !== 1 || i[0] !== a || !Object.prototype.propertyIsEnumerable.call(r, a))
47
+ var n = Object.getOwnPropertySymbols(r);
48
+ if (n.length !== 1 || n[0] !== i || !Object.prototype.propertyIsEnumerable.call(r, i))
49
49
  return !1;
50
50
  if (typeof Object.getOwnPropertyDescriptor == "function") {
51
- var y = Object.getOwnPropertyDescriptor(r, a);
52
- if (y.value !== n || y.enumerable !== !0)
51
+ var s = Object.getOwnPropertyDescriptor(r, i);
52
+ if (s.value !== a || s.enumerable !== !0)
53
53
  return !1;
54
54
  }
55
55
  return !0;
@@ -68,45 +68,45 @@ var Ye, Cr;
68
68
  function Xr() {
69
69
  if (Cr) return Ye;
70
70
  Cr = 1;
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];
71
+ var e = "Function.prototype.bind called on incompatible ", r = Object.prototype.toString, i = Math.max, t = "[object Function]", a = function(c, p) {
72
+ for (var w = [], A = 0; A < c.length; A += 1)
73
+ w[A] = c[A];
74
+ for (var u = 0; u < p.length; u += 1)
75
+ w[u + c.length] = p[u];
76
76
  return w;
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];
77
+ }, n = function(c, p) {
78
+ for (var w = [], A = p, u = 0; A < c.length; A += 1, u += 1)
79
+ w[u] = c[A];
80
80
  return w;
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;
81
+ }, s = function(f, c) {
82
+ for (var p = "", w = 0; w < f.length; w += 1)
83
+ p += f[w], w + 1 < f.length && (p += c);
84
+ return p;
85
85
  };
86
- return Ye = function(p) {
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(
86
+ return Ye = function(c) {
87
+ var p = this;
88
+ if (typeof p != "function" || r.apply(p) !== t)
89
+ throw new TypeError(e + p);
90
+ for (var w = n(arguments, 1), A, u = function() {
91
+ if (this instanceof A) {
92
+ var l = p.apply(
93
93
  this,
94
- n(w, arguments)
94
+ a(w, arguments)
95
95
  );
96
- return Object(s) === s ? s : this;
96
+ return Object(l) === l ? l : this;
97
97
  }
98
- return m.apply(
99
- p,
100
- n(w, arguments)
98
+ return p.apply(
99
+ c,
100
+ a(w, arguments)
101
101
  );
102
- }, o = a(0, m.length - w.length), f = [], g = 0; g < o; g++)
103
- f[g] = "$" + g;
104
- if (b = Function("binder", "return function (" + y(f, ",") + "){ return binder.apply(this,arguments); }")(u), m.prototype) {
105
- var c = function() {
102
+ }, o = i(0, p.length - w.length), m = [], h = 0; h < o; h++)
103
+ m[h] = "$" + h;
104
+ if (A = Function("binder", "return function (" + s(m, ",") + "){ return binder.apply(this,arguments); }")(u), p.prototype) {
105
+ var d = function() {
106
106
  };
107
- c.prototype = m.prototype, b.prototype = new c(), c.prototype = null;
107
+ d.prototype = p.prototype, A.prototype = new d(), d.prototype = null;
108
108
  }
109
- return b;
109
+ return A;
110
110
  }, Ye;
111
111
  }
112
112
  var Xe, Mr;
@@ -127,37 +127,37 @@ var rr, Tr;
127
127
  function hr() {
128
128
  if (Tr) return rr;
129
129
  Tr = 1;
130
- var e, r = SyntaxError, a = Function, t = TypeError, n = function($) {
130
+ var e, r = SyntaxError, i = Function, t = TypeError, a = function($) {
131
131
  try {
132
- return a('"use strict"; return (' + $ + ").constructor;")();
132
+ return i('"use strict"; return (' + $ + ").constructor;")();
133
133
  } catch {
134
134
  }
135
- }, i = Object.getOwnPropertyDescriptor;
136
- if (i)
135
+ }, n = Object.getOwnPropertyDescriptor;
136
+ if (n)
137
137
  try {
138
- i({}, "");
138
+ n({}, "");
139
139
  } catch {
140
- i = null;
140
+ n = null;
141
141
  }
142
- var y = function() {
142
+ var s = function() {
143
143
  throw new t();
144
- }, l = i ? (function() {
144
+ }, f = n ? (function() {
145
145
  try {
146
- return arguments.callee, y;
146
+ return arguments.callee, s;
147
147
  } catch {
148
148
  try {
149
- return i(arguments, "callee").get;
149
+ return n(arguments, "callee").get;
150
150
  } catch {
151
- return y;
151
+ return s;
152
152
  }
153
153
  }
154
- })() : y, p = Yr()(), m = Object.getPrototypeOf || function($) {
154
+ })() : s, c = Yr()(), p = Object.getPrototypeOf || function($) {
155
155
  return $.__proto__;
156
- }, w = {}, b = typeof Uint8Array > "u" ? e : m(Uint8Array), u = {
156
+ }, w = {}, A = typeof Uint8Array > "u" ? e : p(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 ? m([][Symbol.iterator]()) : e,
160
+ "%ArrayIteratorPrototype%": c ? p([][Symbol.iterator]()) : e,
161
161
  "%AsyncFromSyncIteratorPrototype%": e,
162
162
  "%AsyncFunction%": w,
163
163
  "%AsyncGenerator%": w,
@@ -179,17 +179,17 @@ function hr() {
179
179
  "%Float32Array%": typeof Float32Array > "u" ? e : Float32Array,
180
180
  "%Float64Array%": typeof Float64Array > "u" ? e : Float64Array,
181
181
  "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? e : FinalizationRegistry,
182
- "%Function%": a,
182
+ "%Function%": i,
183
183
  "%GeneratorFunction%": w,
184
184
  "%Int8Array%": typeof Int8Array > "u" ? e : Int8Array,
185
185
  "%Int16Array%": typeof Int16Array > "u" ? e : Int16Array,
186
186
  "%Int32Array%": typeof Int32Array > "u" ? e : Int32Array,
187
187
  "%isFinite%": isFinite,
188
188
  "%isNaN%": isNaN,
189
- "%IteratorPrototype%": p ? m(m([][Symbol.iterator]())) : e,
189
+ "%IteratorPrototype%": c ? p(p([][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 : m((/* @__PURE__ */ new Map())[Symbol.iterator]()),
192
+ "%MapIteratorPrototype%": typeof Map > "u" || !c ? e : p((/* @__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 : m((/* @__PURE__ */ new Set())[Symbol.iterator]()),
205
+ "%SetIteratorPrototype%": typeof Set > "u" || !c ? e : p((/* @__PURE__ */ new Set())[Symbol.iterator]()),
206
206
  "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? e : SharedArrayBuffer,
207
207
  "%String%": String,
208
- "%StringIteratorPrototype%": p ? m(""[Symbol.iterator]()) : e,
209
- "%Symbol%": p ? Symbol : e,
208
+ "%StringIteratorPrototype%": c ? p(""[Symbol.iterator]()) : e,
209
+ "%Symbol%": c ? Symbol : e,
210
210
  "%SyntaxError%": r,
211
- "%ThrowTypeError%": l,
212
- "%TypedArray%": b,
211
+ "%ThrowTypeError%": f,
212
+ "%TypedArray%": A,
213
213
  "%TypeError%": t,
214
214
  "%Uint8Array%": typeof Uint8Array > "u" ? e : Uint8Array,
215
215
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? e : Uint8ClampedArray,
@@ -222,20 +222,20 @@ function hr() {
222
222
  }, o = function $(L) {
223
223
  var F;
224
224
  if (L === "%AsyncFunction%")
225
- F = n("async function () {}");
225
+ F = a("async function () {}");
226
226
  else if (L === "%GeneratorFunction%")
227
- F = n("function* () {}");
227
+ F = a("function* () {}");
228
228
  else if (L === "%AsyncGeneratorFunction%")
229
- F = n("async function* () {}");
229
+ F = a("async function* () {}");
230
230
  else if (L === "%AsyncGenerator%") {
231
- var R = $("%AsyncGeneratorFunction%");
232
- R && (F = R.prototype);
231
+ var k = $("%AsyncGeneratorFunction%");
232
+ k && (F = k.prototype);
233
233
  } else if (L === "%AsyncIteratorPrototype%") {
234
- var k = $("%AsyncGenerator%");
235
- k && (F = m(k.prototype));
234
+ var R = $("%AsyncGenerator%");
235
+ R && (F = p(R.prototype));
236
236
  }
237
237
  return u[L] = F, F;
238
- }, f = {
238
+ }, m = {
239
239
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
240
240
  "%ArrayPrototype%": ["Array", "prototype"],
241
241
  "%ArrayProto_entries%": ["Array", "prototype", "entries"],
@@ -287,25 +287,25 @@ function hr() {
287
287
  "%URIErrorPrototype%": ["URIError", "prototype"],
288
288
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
289
289
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
290
- }, g = yr(), c = et(), s = g.call(Function.call, Array.prototype.concat), A = 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, N = /\\(\\)?/g, M = function(L) {
291
- var F = P(L, 0, 1), R = P(L, -1);
292
- if (F === "%" && R !== "%")
290
+ }, h = yr(), d = et(), l = h.call(Function.call, Array.prototype.concat), v = h.call(Function.apply, Array.prototype.splice), S = h.call(Function.call, String.prototype.replace), O = h.call(Function.call, String.prototype.slice), x = h.call(Function.call, RegExp.prototype.exec), T = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, N = /\\(\\)?/g, M = function(L) {
291
+ var F = O(L, 0, 1), k = O(L, -1);
292
+ if (F === "%" && k !== "%")
293
293
  throw new r("invalid intrinsic syntax, expected closing `%`");
294
- if (R === "%" && F !== "%")
294
+ if (k === "%" && F !== "%")
295
295
  throw new r("invalid intrinsic syntax, expected opening `%`");
296
- var k = [];
296
+ var R = [];
297
297
  return S(L, T, function(U, z, _, Z) {
298
- k[k.length] = _ ? S(Z, N, "$1") : z || U;
299
- }), k;
298
+ R[R.length] = _ ? S(Z, N, "$1") : z || U;
299
+ }), R;
300
300
  }, V = function(L, F) {
301
- var R = L, k;
302
- if (c(f, R) && (k = f[R], R = "%" + k[0] + "%"), c(u, R)) {
303
- var U = u[R];
304
- if (U === w && (U = o(R)), typeof U > "u" && !F)
301
+ var k = L, R;
302
+ if (d(m, k) && (R = m[k], k = "%" + R[0] + "%"), d(u, k)) {
303
+ var U = u[k];
304
+ if (U === w && (U = o(k)), typeof U > "u" && !F)
305
305
  throw new t("intrinsic " + L + " exists, but is not available. Please file an issue!");
306
306
  return {
307
- alias: k,
308
- name: R,
307
+ alias: R,
308
+ name: k,
309
309
  value: U
310
310
  };
311
311
  }
@@ -318,67 +318,67 @@ function hr() {
318
318
  throw new t('"allowMissing" argument must be a boolean');
319
319
  if (x(/^%?[^%]*%?$/, L) === null)
320
320
  throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
321
- var R = M(L), k = R.length > 0 ? R[0] : "", U = V("%" + k + "%", F), z = U.name, _ = U.value, Z = !1, Q = U.alias;
322
- Q && (k = Q[0], A(R, s([0, 1], Q)));
323
- for (var ne = 1, X = !0; ne < R.length; ne += 1) {
324
- var W = R[ne], ie = P(W, 0, 1), re = P(W, -1);
321
+ var k = M(L), R = k.length > 0 ? k[0] : "", U = V("%" + R + "%", F), z = U.name, _ = U.value, Z = !1, Q = U.alias;
322
+ Q && (R = Q[0], v(k, l([0, 1], Q)));
323
+ for (var ne = 1, X = !0; ne < k.length; ne += 1) {
324
+ var K = k[ne], ie = O(K, 0, 1), re = O(K, -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(u, z))
327
+ if ((K === "constructor" || !X) && (Z = !0), R += "." + K, z = "%" + R + "%", d(u, z))
328
328
  _ = u[z];
329
329
  else if (_ != null) {
330
- if (!(W in _)) {
330
+ if (!(K in _)) {
331
331
  if (!F)
332
332
  throw new t("base intrinsic for " + L + " exists, but the property is not available.");
333
333
  return;
334
334
  }
335
- if (i && ne + 1 >= R.length) {
336
- var te = i(_, W);
337
- X = !!te, X && "get" in te && !("originalValue" in te.get) ? _ = te.get : _ = _[W];
335
+ if (n && ne + 1 >= k.length) {
336
+ var te = n(_, K);
337
+ X = !!te, X && "get" in te && !("originalValue" in te.get) ? _ = te.get : _ = _[K];
338
338
  } else
339
- X = c(_, W), _ = _[W];
339
+ X = d(_, K), _ = _[K];
340
340
  X && !Z && (u[z] = _);
341
341
  }
342
342
  }
343
343
  return _;
344
344
  }, rr;
345
345
  }
346
- var tr = { exports: {} }, Rr;
346
+ var tr = { exports: {} }, kr;
347
347
  function rt() {
348
- return Rr || (Rr = 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), y = a("%Object.getOwnPropertyDescriptor%", !0), l = a("%Object.defineProperty%", !0), p = a("%Math.max%");
350
- if (l)
348
+ return kr || (kr = 1, (function(e) {
349
+ var r = yr(), i = hr(), t = i("%Function.prototype.apply%"), a = i("%Function.prototype.call%"), n = i("%Reflect.apply%", !0) || r.call(a, t), s = i("%Object.getOwnPropertyDescriptor%", !0), f = i("%Object.defineProperty%", !0), c = i("%Math.max%");
350
+ if (f)
351
351
  try {
352
- l({}, "a", { value: 1 });
352
+ f({}, "a", { value: 1 });
353
353
  } catch {
354
- l = null;
354
+ f = null;
355
355
  }
356
- e.exports = function(b) {
357
- var u = i(r, n, arguments);
358
- if (y && l) {
359
- var o = y(u, "length");
360
- o.configurable && l(
356
+ e.exports = function(A) {
357
+ var u = n(r, a, arguments);
358
+ if (s && f) {
359
+ var o = s(u, "length");
360
+ o.configurable && f(
361
361
  u,
362
362
  "length",
363
- { value: 1 + p(0, b.length - (arguments.length - 1)) }
363
+ { value: 1 + c(0, A.length - (arguments.length - 1)) }
364
364
  );
365
365
  }
366
366
  return u;
367
367
  };
368
- var m = function() {
369
- return i(r, t, arguments);
368
+ var p = function() {
369
+ return n(r, t, arguments);
370
370
  };
371
- l ? l(e.exports, "apply", { value: m }) : e.exports.apply = m;
371
+ f ? f(e.exports, "apply", { value: p }) : e.exports.apply = p;
372
372
  })(tr)), tr.exports;
373
373
  }
374
- var ar, kr;
374
+ var ar, Rr;
375
375
  function tt() {
376
- if (kr) return ar;
377
- kr = 1;
378
- var e = hr(), r = rt(), a = r(e("String.prototype.indexOf"));
379
- return ar = function(n, i) {
380
- var y = e(n, !!i);
381
- return typeof y == "function" && a(n, ".prototype.") > -1 ? r(y) : y;
376
+ if (Rr) return ar;
377
+ Rr = 1;
378
+ var e = hr(), r = rt(), i = r(e("String.prototype.indexOf"));
379
+ return ar = function(a, n) {
380
+ var s = e(a, !!n);
381
+ return typeof s == "function" && i(a, ".prototype.") > -1 ? r(s) : s;
382
382
  }, ar;
383
383
  }
384
384
  const at = {}, nt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -389,353 +389,353 @@ 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, 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, g = 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, N = Array.prototype.concat, M = Array.prototype.join, V = Array.prototype.slice, $ = Math.floor, L = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, F = Object.getOwnPropertySymbols, R = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, 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, i = e && r && typeof r.get == "function" ? r.get : null, t = e && Map.prototype.forEach, a = typeof Set == "function" && Set.prototype, n = Object.getOwnPropertyDescriptor && a ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, s = a && n && typeof n.get == "function" ? n.get : null, f = a && Set.prototype.forEach, c = typeof WeakMap == "function" && WeakMap.prototype, p = c ? WeakMap.prototype.has : null, w = typeof WeakSet == "function" && WeakSet.prototype, A = w ? WeakSet.prototype.has : null, u = typeof WeakRef == "function" && WeakRef.prototype, o = u ? WeakRef.prototype.deref : null, m = Boolean.prototype.valueOf, h = Object.prototype.toString, d = Function.prototype.toString, l = String.prototype.match, v = String.prototype.slice, S = String.prototype.replace, O = String.prototype.toUpperCase, x = String.prototype.toLowerCase, T = RegExp.prototype.test, N = Array.prototype.concat, M = Array.prototype.join, V = Array.prototype.slice, $ = Math.floor, L = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, F = Object.getOwnPropertySymbols, k = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, R = typeof Symbol == "function" && typeof Symbol.iterator == "object", U = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === R || !0) ? Symbol.toStringTag : null, z = Object.prototype.propertyIsEnumerable, _ = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(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))
397
- return v;
395
+ function Z(g, b) {
396
+ if (g === 1 / 0 || g === -1 / 0 || g !== g || g && g > -1e3 && g < 1e3 || T.call(/e/, b))
397
+ return b;
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), O = A.call(v, E.length + 1);
403
- return S.call(E, D, "$&_") + "." + S.call(S.call(O, /([0-9]{3})/g, "$&_"), /_$/, "");
399
+ if (typeof g == "number") {
400
+ var y = g < 0 ? -$(-g) : $(g);
401
+ if (y !== g) {
402
+ var E = String(y), P = v.call(b, E.length + 1);
403
+ return S.call(E, D, "$&_") + "." + S.call(S.call(P, /([0-9]{3})/g, "$&_"), /_$/, "");
404
404
  }
405
405
  }
406
- return S.call(v, D, "$&_");
406
+ return S.call(b, D, "$&_");
407
407
  }
408
408
  var Q = it, ne = Q.custom, X = se(ne) ? ne : null;
409
- nr = function h(v, D, d, E) {
410
- var O = D || {};
411
- if (J(O, "quoteStyle") && O.quoteStyle !== "single" && O.quoteStyle !== "double")
409
+ nr = function g(b, D, y, E) {
410
+ var P = D || {};
411
+ if (J(P, "quoteStyle") && P.quoteStyle !== "single" && P.quoteStyle !== "double")
412
412
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
413
- if (J(O, "maxStringLength") && (typeof O.maxStringLength == "number" ? O.maxStringLength < 0 && O.maxStringLength !== 1 / 0 : O.maxStringLength !== null))
413
+ if (J(P, "maxStringLength") && (typeof P.maxStringLength == "number" ? P.maxStringLength < 0 && P.maxStringLength !== 1 / 0 : P.maxStringLength !== null))
414
414
  throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
415
- var G = J(O, "customInspect") ? O.customInspect : !0;
415
+ var G = J(P, "customInspect") ? P.customInspect : !0;
416
416
  if (typeof G != "boolean" && G !== "symbol")
417
417
  throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
418
- if (J(O, "indent") && O.indent !== null && O.indent !== " " && !(parseInt(O.indent, 10) === O.indent && O.indent > 0))
418
+ if (J(P, "indent") && P.indent !== null && P.indent !== " " && !(parseInt(P.indent, 10) === P.indent && P.indent > 0))
419
419
  throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
420
- if (J(O, "numericSeparator") && typeof O.numericSeparator != "boolean")
420
+ if (J(P, "numericSeparator") && typeof P.numericSeparator != "boolean")
421
421
  throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
422
- var ae = O.numericSeparator;
423
- if (typeof v > "u")
422
+ var ae = P.numericSeparator;
423
+ if (typeof b > "u")
424
424
  return "undefined";
425
- if (v === null)
425
+ if (b === null)
426
426
  return "null";
427
- if (typeof v == "boolean")
428
- return v ? "true" : "false";
429
- if (typeof v == "string")
430
- return Oe(v, O);
431
- if (typeof v == "number") {
432
- if (v === 0)
433
- return 1 / 0 / v > 0 ? "0" : "-0";
434
- var K = String(v);
435
- return ae ? Z(v, K) : K;
427
+ if (typeof b == "boolean")
428
+ return b ? "true" : "false";
429
+ if (typeof b == "string")
430
+ return Oe(b, P);
431
+ if (typeof b == "number") {
432
+ if (b === 0)
433
+ return 1 / 0 / b > 0 ? "0" : "-0";
434
+ var W = String(b);
435
+ return ae ? Z(b, W) : W;
436
436
  }
437
- if (typeof v == "bigint") {
438
- var C = String(v) + "n";
439
- return ae ? Z(v, C) : C;
437
+ if (typeof b == "bigint") {
438
+ var C = String(b) + "n";
439
+ return ae ? Z(b, C) : C;
440
440
  }
441
- var B = typeof O.depth > "u" ? 5 : O.depth;
442
- if (typeof d > "u" && (d = 0), d >= B && B > 0 && typeof v == "object")
443
- return re(v) ? "[Array]" : "[Object]";
444
- var j = Le(O, d);
441
+ var B = typeof P.depth > "u" ? 5 : P.depth;
442
+ if (typeof y > "u" && (y = 0), y >= B && B > 0 && typeof b == "object")
443
+ return re(b) ? "[Array]" : "[Object]";
444
+ var j = Le(P, y);
445
445
  if (typeof E > "u")
446
446
  E = [];
447
- else if (xe(E, v) >= 0)
447
+ else if (xe(E, b) >= 0)
448
448
  return "[Circular]";
449
449
  function H(Me, Be, Jr) {
450
450
  if (Be && (E = V.call(E), E.push(Be)), Jr) {
451
451
  var xr = {
452
- depth: O.depth
452
+ depth: P.depth
453
453
  };
454
- return J(O, "quoteStyle") && (xr.quoteStyle = O.quoteStyle), h(Me, xr, d + 1, E);
454
+ return J(P, "quoteStyle") && (xr.quoteStyle = P.quoteStyle), g(Me, xr, y + 1, E);
455
455
  }
456
- return h(Me, O, d + 1, E);
456
+ return g(Me, P, y + 1, E);
457
457
  }
458
- if (typeof v == "function" && !ce(v)) {
459
- var Y = Ie(v), Ee = ge(v, H);
458
+ if (typeof b == "function" && !ce(b)) {
459
+ var Y = Ie(b), Ee = ge(b, H);
460
460
  return "[Function" + (Y ? ": " + Y : " (anonymous)") + "]" + (Ee.length > 0 ? " { " + M.call(Ee, ", ") + " }" : "");
461
461
  }
462
- if (se(v)) {
463
- var Ar = k ? S.call(String(v), /^(Symbol\(.*\))_[^)]*$/, "$1") : R.call(v);
464
- return typeof v == "object" && !k ? le(Ar) : Ar;
462
+ if (se(b)) {
463
+ var Ar = R ? S.call(String(b), /^(Symbol\(.*\))_[^)]*$/, "$1") : k.call(b);
464
+ return typeof b == "object" && !R ? le(Ar) : Ar;
465
465
  }
466
- if (_e(v)) {
467
- for (var Fe = "<" + x.call(String(v.nodeName)), ze = v.attributes || [], $e = 0; $e < ze.length; $e++)
468
- Fe += " " + ze[$e].name + "=" + W(ie(ze[$e].value), "double", O);
469
- return Fe += ">", v.childNodes && v.childNodes.length && (Fe += "..."), Fe += "</" + x.call(String(v.nodeName)) + ">", Fe;
466
+ if (_e(b)) {
467
+ for (var Fe = "<" + x.call(String(b.nodeName)), ze = b.attributes || [], $e = 0; $e < ze.length; $e++)
468
+ Fe += " " + ze[$e].name + "=" + K(ie(ze[$e].value), "double", P);
469
+ return Fe += ">", b.childNodes && b.childNodes.length && (Fe += "..."), Fe += "</" + x.call(String(b.nodeName)) + ">", Fe;
470
470
  }
471
- if (re(v)) {
472
- if (v.length === 0)
471
+ if (re(b)) {
472
+ if (b.length === 0)
473
473
  return "[]";
474
- var We = ge(v, H);
475
- return j && !Ce(We) ? "[" + he(We, j) + "]" : "[ " + M.call(We, ", ") + " ]";
474
+ var Ke = ge(b, H);
475
+ return j && !Ce(Ke) ? "[" + he(Ke, j) + "]" : "[ " + M.call(Ke, ", ") + " ]";
476
476
  }
477
- if (ue(v)) {
478
- var Ke = ge(v, H);
479
- return !("cause" in Error.prototype) && "cause" in v && !z.call(v, "cause") ? "{ [" + String(v) + "] " + M.call(N.call("[cause]: " + H(v.cause), Ke), ", ") + " }" : Ke.length === 0 ? "[" + String(v) + "]" : "{ [" + String(v) + "] " + M.call(Ke, ", ") + " }";
477
+ if (ue(b)) {
478
+ var We = ge(b, H);
479
+ return !("cause" in Error.prototype) && "cause" in b && !z.call(b, "cause") ? "{ [" + String(b) + "] " + M.call(N.call("[cause]: " + H(b.cause), We), ", ") + " }" : We.length === 0 ? "[" + String(b) + "]" : "{ [" + String(b) + "] " + M.call(We, ", ") + " }";
480
480
  }
481
- if (typeof v == "object" && G) {
482
- if (X && typeof v[X] == "function" && Q)
483
- return Q(v, { depth: B - d });
484
- if (G !== "symbol" && typeof v.inspect == "function")
485
- return v.inspect();
481
+ if (typeof b == "object" && G) {
482
+ if (X && typeof b[X] == "function" && Q)
483
+ return Q(b, { depth: B - y });
484
+ if (G !== "symbol" && typeof b.inspect == "function")
485
+ return b.inspect();
486
486
  }
487
- if (Te(v)) {
487
+ if (Te(b)) {
488
488
  var br = [];
489
- return t.call(v, function(Me, Be) {
490
- br.push(H(Be, v, !0) + " => " + H(Me, v));
491
- }), we("Map", a.call(v), br, j);
489
+ return t.call(b, function(Me, Be) {
490
+ br.push(H(Be, b, !0) + " => " + H(Me, b));
491
+ }), we("Map", i.call(b), br, j);
492
492
  }
493
- if (Re(v)) {
493
+ if (ke(b)) {
494
494
  var Sr = [];
495
- return l.call(v, function(Me) {
496
- Sr.push(H(Me, v));
497
- }), we("Set", y.call(v), Sr, j);
495
+ return f.call(b, function(Me) {
496
+ Sr.push(H(Me, b));
497
+ }), we("Set", s.call(b), Sr, j);
498
498
  }
499
- if (me(v))
499
+ if (me(b))
500
500
  return fe("WeakMap");
501
- if (ke(v))
501
+ if (Re(b))
502
502
  return fe("WeakSet");
503
- if (Pe(v))
503
+ if (Pe(b))
504
504
  return fe("WeakRef");
505
- if (de(v))
506
- return le(H(Number(v)));
507
- if (ye(v))
508
- return le(H(L.call(v)));
509
- if (pe(v))
510
- return le(f.call(v));
511
- if (oe(v))
512
- return le(H(String(v)));
513
- if (!te(v) && !ce(v)) {
514
- var He = ge(v, H), wr = _ ? _(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(N.call([], Er || [], Je || []), ": ") + "] " : "");
505
+ if (de(b))
506
+ return le(H(Number(b)));
507
+ if (ye(b))
508
+ return le(H(L.call(b)));
509
+ if (pe(b))
510
+ return le(m.call(b));
511
+ if (oe(b))
512
+ return le(H(String(b)));
513
+ if (!te(b) && !ce(b)) {
514
+ var He = ge(b, H), wr = _ ? _(b) === Object.prototype : b instanceof Object || b.constructor === Object, Je = b instanceof Object ? "" : "null prototype", Er = !wr && U && Object(b) === b && U in b ? v.call(ee(b), 8, -1) : Je ? "Object" : "", Hr = wr || typeof b.constructor != "function" ? "" : b.constructor.name ? b.constructor.name + " " : "", qe = Hr + (Er || Je ? "[" + M.call(N.call([], Er || [], Je || []), ": ") + "] " : "");
515
515
  return He.length === 0 ? qe + "{}" : j ? qe + "{" + he(He, j) + "}" : qe + "{ " + M.call(He, ", ") + " }";
516
516
  }
517
- return String(v);
517
+ return String(b);
518
518
  };
519
- function W(h, v, D) {
520
- var d = (D.quoteStyle || v) === "double" ? '"' : "'";
521
- return d + h + d;
519
+ function K(g, b, D) {
520
+ var y = (D.quoteStyle || b) === "double" ? '"' : "'";
521
+ return y + g + y;
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) {
548
- if (k)
549
- return h && typeof h == "object" && h instanceof Symbol;
550
- if (typeof h == "symbol")
547
+ function se(g) {
548
+ if (R)
549
+ return g && typeof g == "object" && g instanceof Symbol;
550
+ if (typeof g == "symbol")
551
551
  return !0;
552
- if (!h || typeof h != "object" || !R)
552
+ if (!g || typeof g != "object" || !k)
553
553
  return !1;
554
554
  try {
555
- return R.call(h), !0;
555
+ return k.call(g), !0;
556
556
  } catch {
557
557
  }
558
558
  return !1;
559
559
  }
560
- function ye(h) {
561
- if (!h || typeof h != "object" || !L)
560
+ function ye(g) {
561
+ if (!g || typeof g != "object" || !L)
562
562
  return !1;
563
563
  try {
564
- return L.call(h), !0;
564
+ return L.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);
574
- }
575
- function ee(h) {
576
- return g.call(h);
577
- }
578
- function Ie(h) {
579
- if (h.name)
580
- return h.name;
581
- var v = s.call(c.call(h), /^function\s*([\w$]+)/);
582
- return v ? v[1] : null;
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)
572
+ function J(g, b) {
573
+ return Se.call(g, b);
574
+ }
575
+ function ee(g) {
576
+ return h.call(g);
577
+ }
578
+ function Ie(g) {
579
+ if (g.name)
580
+ return g.name;
581
+ var b = l.call(d.call(g), /^function\s*([\w$]+)/);
582
+ return b ? b[1] : null;
583
+ }
584
+ function xe(g, b) {
585
+ if (g.indexOf)
586
+ return g.indexOf(b);
587
+ for (var D = 0, y = g.length; D < y; D++)
588
+ if (g[D] === b)
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 (!i || !g || typeof g != "object")
594
594
  return !1;
595
595
  try {
596
- a.call(h);
596
+ i.call(g);
597
597
  try {
598
- y.call(h);
598
+ s.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 (!m || !h || typeof h != "object")
607
+ function me(g) {
608
+ if (!p || !g || typeof g != "object")
609
609
  return !1;
610
610
  try {
611
- m.call(h, m);
611
+ p.call(g, p);
612
612
  try {
613
- b.call(h, b);
613
+ A.call(g, A);
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 Re(h) {
632
- if (!y || !h || typeof h != "object")
631
+ function ke(g) {
632
+ if (!s || !g || typeof g != "object")
633
633
  return !1;
634
634
  try {
635
- y.call(h);
635
+ s.call(g);
636
636
  try {
637
- a.call(h);
637
+ i.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 (!b || !h || typeof h != "object")
646
+ function Re(g) {
647
+ if (!A || !g || typeof g != "object")
648
648
  return !1;
649
649
  try {
650
- b.call(h, b);
650
+ A.call(g, A);
651
651
  try {
652
- m.call(h, m);
652
+ p.call(g, p);
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 Oe(h, v) {
665
- if (h.length > v.maxStringLength) {
666
- var D = h.length - v.maxStringLength, d = "... " + D + " more character" + (D > 1 ? "s" : "");
667
- return Oe(A.call(h, 0, v.maxStringLength), v) + d;
664
+ function Oe(g, b) {
665
+ if (g.length > b.maxStringLength) {
666
+ var D = g.length - b.maxStringLength, y = "... " + D + " more character" + (D > 1 ? "s" : "");
667
+ return Oe(v.call(g, 0, b.maxStringLength), b) + y;
668
668
  }
669
- var E = S.call(S.call(h, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ne);
670
- return W(E, "single", v);
669
+ var E = S.call(S.call(g, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ne);
670
+ return K(E, "single", b);
671
671
  }
672
- function Ne(h) {
673
- var v = h.charCodeAt(0), D = {
672
+ function Ne(g) {
673
+ var b = g.charCodeAt(0), D = {
674
674
  8: "b",
675
675
  9: "t",
676
676
  10: "n",
677
677
  12: "f",
678
678
  13: "r"
679
- }[v];
680
- return D ? "\\" + D : "\\x" + (v < 16 ? "0" : "") + P.call(v.toString(16));
679
+ }[b];
680
+ return D ? "\\" + D : "\\x" + (b < 16 ? "0" : "") + O.call(b.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) {
689
- var E = d ? he(D, d) : M.call(D, ", ");
690
- return h + " (" + v + ") {" + E + "}";
688
+ function we(g, b, D, y) {
689
+ var E = y ? he(D, y) : M.call(D, ", ");
690
+ return g + " (" + b + ") {" + E + "}";
691
691
  }
692
- function Ce(h) {
693
- for (var v = 0; v < h.length; v++)
694
- if (xe(h[v], `
692
+ function Ce(g) {
693
+ for (var b = 0; b < g.length; b++)
694
+ if (xe(g[b], `
695
695
  `) >= 0)
696
696
  return !1;
697
697
  return !0;
698
698
  }
699
- function Le(h, v) {
699
+ function Le(g, b) {
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 {
708
708
  base: D,
709
- prev: M.call(Array(v + 1), D)
709
+ prev: M.call(Array(b + 1), D)
710
710
  };
711
711
  }
712
- function he(h, v) {
713
- if (h.length === 0)
712
+ function he(g, b) {
713
+ if (g.length === 0)
714
714
  return "";
715
715
  var D = `
716
- ` + v.prev + v.base;
717
- return D + M.call(h, "," + D) + `
718
- ` + v.prev;
716
+ ` + b.prev + b.base;
717
+ return D + M.call(g, "," + D) + `
718
+ ` + b.prev;
719
719
  }
720
- function ge(h, v) {
721
- var D = re(h), d = [];
720
+ function ge(g, b) {
721
+ var D = re(g), y = [];
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
+ y.length = g.length;
724
+ for (var E = 0; E < g.length; E++)
725
+ y[E] = J(g, E) ? b(g[E], g) : "";
726
726
  }
727
- var O = typeof F == "function" ? F(h) : [], G;
728
- if (k) {
727
+ var P = typeof F == "function" ? F(g) : [], G;
728
+ if (R) {
729
729
  G = {};
730
- for (var ae = 0; ae < O.length; ae++)
731
- G["$" + O[ae]] = O[ae];
730
+ for (var ae = 0; ae < P.length; ae++)
731
+ G["$" + P[ae]] = P[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 W in g)
734
+ J(g, W) && (D && String(Number(W)) === W && W < g.length || R && G["$" + W] instanceof Symbol || (T.call(/[^\w$]/, W) ? y.push(b(W, g) + ": " + b(g[W], g)) : y.push(W + ": " + b(g[W], g))));
735
735
  if (typeof F == "function")
736
- for (var C = 0; C < O.length; C++)
737
- z.call(h, O[C]) && d.push("[" + v(O[C]) + "]: " + v(h[O[C]], h));
738
- return d;
736
+ for (var C = 0; C < P.length; C++)
737
+ z.call(g, P[C]) && y.push("[" + b(P[C]) + "]: " + b(g[P[C]], g));
738
+ return y;
739
739
  }
740
740
  return nr;
741
741
  }
@@ -743,68 +743,68 @@ var ir, Nr;
743
743
  function st() {
744
744
  if (Nr) return ir;
745
745
  Nr = 1;
746
- var e = hr(), r = tt(), a = /* @__PURE__ */ ot(), t = e("%TypeError%"), n = e("%WeakMap%", !0), 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 = {
746
+ var e = hr(), r = tt(), i = /* @__PURE__ */ ot(), t = e("%TypeError%"), a = e("%WeakMap%", !0), n = e("%Map%", !0), s = r("WeakMap.prototype.get", !0), f = r("WeakMap.prototype.set", !0), c = r("WeakMap.prototype.has", !0), p = r("Map.prototype.get", !0), w = r("Map.prototype.set", !0), A = r("Map.prototype.has", !0), u = function(d, l) {
747
+ for (var v = d, S; (S = v.next) !== null; v = S)
748
+ if (S.key === l)
749
+ return v.next = S.next, S.next = d.next, d.next = S, S;
750
+ }, o = function(d, l) {
751
+ var v = u(d, l);
752
+ return v && v.value;
753
+ }, m = function(d, l, v) {
754
+ var S = u(d, l);
755
+ S ? S.value = v : d.next = {
756
756
  // eslint-disable-line no-param-reassign
757
- key: s,
758
- next: c.next,
759
- value: A
757
+ key: l,
758
+ next: d.next,
759
+ value: v
760
760
  };
761
- }, g = function(c, s) {
762
- return !!u(c, s);
761
+ }, h = function(d, l) {
762
+ return !!u(d, l);
763
763
  };
764
764
  return ir = function() {
765
- var s, A, S, P = {
765
+ var l, v, S, O = {
766
766
  assert: function(x) {
767
- if (!P.has(x))
768
- throw new t("Side channel does not contain " + a(x));
767
+ if (!O.has(x))
768
+ throw new t("Side channel does not contain " + i(x));
769
769
  },
770
770
  get: function(x) {
771
- if (n && x && (typeof x == "object" || typeof x == "function")) {
772
- if (s)
773
- return y(s, x);
774
- } else if (i) {
775
- if (A)
776
- return m(A, x);
771
+ if (a && x && (typeof x == "object" || typeof x == "function")) {
772
+ if (l)
773
+ return s(l, x);
774
+ } else if (n) {
775
+ if (v)
776
+ return p(v, x);
777
777
  } else if (S)
778
778
  return o(S, x);
779
779
  },
780
780
  has: function(x) {
781
- if (n && x && (typeof x == "object" || typeof x == "function")) {
782
- if (s)
783
- return p(s, x);
784
- } else if (i) {
785
- if (A)
786
- return b(A, x);
781
+ if (a && x && (typeof x == "object" || typeof x == "function")) {
782
+ if (l)
783
+ return c(l, x);
784
+ } else if (n) {
785
+ if (v)
786
+ return A(v, 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") ? (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));
792
+ a && x && (typeof x == "object" || typeof x == "function") ? (l || (l = new a()), f(l, x, T)) : n ? (v || (v = new n()), w(v, x, T)) : (S || (S = { key: {}, next: null }), m(S, x, T));
793
793
  }
794
794
  };
795
- return P;
795
+ return O;
796
796
  }, ir;
797
797
  }
798
798
  var or, Lr;
799
799
  function gr() {
800
800
  if (Lr) return or;
801
801
  Lr = 1;
802
- var e = String.prototype.replace, r = /%20/g, a = {
802
+ var e = String.prototype.replace, r = /%20/g, i = {
803
803
  RFC1738: "RFC1738",
804
804
  RFC3986: "RFC3986"
805
805
  };
806
806
  return or = {
807
- default: a.RFC3986,
807
+ default: i.RFC3986,
808
808
  formatters: {
809
809
  RFC1738: function(t) {
810
810
  return e.call(t, r, "+");
@@ -813,80 +813,80 @@ function gr() {
813
813
  return String(t);
814
814
  }
815
815
  },
816
- RFC1738: a.RFC1738,
817
- RFC3986: a.RFC3986
816
+ RFC1738: i.RFC1738,
817
+ RFC3986: i.RFC3986
818
818
  }, or;
819
819
  }
820
820
  var sr, Fr;
821
- function Wr() {
821
+ function Kr() {
822
822
  if (Fr) return sr;
823
823
  Fr = 1;
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;
828
- })(), n = function(c) {
829
- for (; c.length > 1; ) {
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;
824
+ var e = gr(), r = Object.prototype.hasOwnProperty, i = Array.isArray, t = (function() {
825
+ for (var h = [], d = 0; d < 256; ++d)
826
+ h.push("%" + ((d < 16 ? "0" : "") + d.toString(16)).toUpperCase());
827
+ return h;
828
+ })(), a = function(d) {
829
+ for (; d.length > 1; ) {
830
+ var l = d.pop(), v = l.obj[l.prop];
831
+ if (i(v)) {
832
+ for (var S = [], O = 0; O < v.length; ++O)
833
+ typeof v[O] < "u" && S.push(v[O]);
834
+ l.obj[l.prop] = S;
835
835
  }
836
836
  }
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 g(c, s, A) {
842
- if (!s)
843
- return c;
844
- if (typeof s != "object") {
845
- if (a(c))
846
- c.push(s);
847
- else if (c && typeof c == "object")
848
- (A && (A.plainObjects || A.allowPrototypes) || !r.call(Object.prototype, s)) && (c[s] = !0);
837
+ }, n = function(d, l) {
838
+ for (var v = l && l.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, S = 0; S < d.length; ++S)
839
+ typeof d[S] < "u" && (v[S] = d[S]);
840
+ return v;
841
+ }, s = function h(d, l, v) {
842
+ if (!l)
843
+ return d;
844
+ if (typeof l != "object") {
845
+ if (i(d))
846
+ d.push(l);
847
+ else if (d && typeof d == "object")
848
+ (v && (v.plainObjects || v.allowPrototypes) || !r.call(Object.prototype, l)) && (d[l] = !0);
849
849
  else
850
- return [c, s];
851
- return c;
850
+ return [d, l];
851
+ return d;
852
852
  }
853
- if (!c || typeof c != "object")
854
- return [c].concat(s);
855
- var S = c;
856
- return a(c) && !a(s) && (S = i(c, A)), a(c) && a(s) ? (s.forEach(function(P, x) {
857
- if (r.call(c, x)) {
858
- var T = c[x];
859
- T && typeof T == "object" && P && typeof P == "object" ? c[x] = g(T, P, A) : c.push(P);
853
+ if (!d || typeof d != "object")
854
+ return [d].concat(l);
855
+ var S = d;
856
+ return i(d) && !i(l) && (S = n(d, v)), i(d) && i(l) ? (l.forEach(function(O, x) {
857
+ if (r.call(d, x)) {
858
+ var T = d[x];
859
+ T && typeof T == "object" && O && typeof O == "object" ? d[x] = h(T, O, v) : d.push(O);
860
860
  } else
861
- c[x] = P;
862
- }), c) : Object.keys(s).reduce(function(P, x) {
863
- var T = s[x];
864
- return r.call(P, x) ? P[x] = g(P[x], T, A) : P[x] = T, P;
861
+ d[x] = O;
862
+ }), d) : Object.keys(l).reduce(function(O, x) {
863
+ var T = l[x];
864
+ return r.call(O, x) ? O[x] = h(O[x], T, v) : O[x] = T, O;
865
865
  }, S);
866
- }, l = function(c, s) {
867
- return Object.keys(s).reduce(function(A, S) {
868
- return A[S] = s[S], A;
869
- }, c);
870
- }, p = function(g, c, s) {
871
- var A = g.replace(/\+/g, " ");
872
- if (s === "iso-8859-1")
873
- return A.replace(/%[0-9a-f]{2}/gi, unescape);
866
+ }, f = function(d, l) {
867
+ return Object.keys(l).reduce(function(v, S) {
868
+ return v[S] = l[S], v;
869
+ }, d);
870
+ }, c = function(h, d, l) {
871
+ var v = h.replace(/\+/g, " ");
872
+ if (l === "iso-8859-1")
873
+ return v.replace(/%[0-9a-f]{2}/gi, unescape);
874
874
  try {
875
- return decodeURIComponent(A);
875
+ return decodeURIComponent(v);
876
876
  } catch {
877
- return A;
877
+ return v;
878
878
  }
879
- }, m = function(c, s, A, S, P) {
880
- if (c.length === 0)
881
- return c;
882
- var x = c;
883
- if (typeof c == "symbol" ? x = Symbol.prototype.toString.call(c) : typeof c != "string" && (x = String(c)), A === "iso-8859-1")
879
+ }, p = function(d, l, v, S, O) {
880
+ if (d.length === 0)
881
+ return d;
882
+ var x = d;
883
+ if (typeof d == "symbol" ? x = Symbol.prototype.toString.call(d) : typeof d != "string" && (x = String(d)), v === "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
  });
887
887
  for (var T = "", N = 0; N < x.length; ++N) {
888
888
  var M = x.charCodeAt(N);
889
- if (M === 45 || M === 46 || M === 95 || M === 126 || M >= 48 && M <= 57 || M >= 65 && M <= 90 || M >= 97 && M <= 122 || P === e.RFC1738 && (M === 40 || M === 41)) {
889
+ if (M === 45 || M === 46 || M === 95 || M === 126 || M >= 48 && M <= 57 || M >= 65 && M <= 90 || M >= 97 && M <= 122 || O === e.RFC1738 && (M === 40 || M === 41)) {
890
890
  T += x.charAt(N);
891
891
  continue;
892
892
  }
@@ -905,58 +905,58 @@ function Wr() {
905
905
  N += 1, M = 65536 + ((M & 1023) << 10 | x.charCodeAt(N) & 1023), T += t[240 | M >> 18] + t[128 | M >> 12 & 63] + t[128 | M >> 6 & 63] + t[128 | M & 63];
906
906
  }
907
907
  return T;
908
- }, w = function(c) {
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), N = 0; N < T.length; ++N) {
908
+ }, w = function(d) {
909
+ for (var l = [{ obj: { o: d }, prop: "o" }], v = [], S = 0; S < l.length; ++S)
910
+ for (var O = l[S], x = O.obj[O.prop], T = Object.keys(x), N = 0; N < T.length; ++N) {
911
911
  var M = T[N], V = x[M];
912
- typeof V == "object" && V !== null && A.indexOf(V) === -1 && (s.push({ obj: x, prop: M }), A.push(V));
912
+ typeof V == "object" && V !== null && v.indexOf(V) === -1 && (l.push({ obj: x, prop: M }), v.push(V));
913
913
  }
914
- return n(s), c;
915
- }, b = function(c) {
916
- return Object.prototype.toString.call(c) === "[object RegExp]";
917
- }, u = function(c) {
918
- return !c || typeof c != "object" ? !1 : !!(c.constructor && c.constructor.isBuffer && c.constructor.isBuffer(c));
919
- }, o = function(c, s) {
920
- return [].concat(c, s);
921
- }, f = function(c, s) {
922
- if (a(c)) {
923
- for (var A = [], S = 0; S < c.length; S += 1)
924
- A.push(s(c[S]));
925
- return A;
914
+ return a(l), d;
915
+ }, A = function(d) {
916
+ return Object.prototype.toString.call(d) === "[object RegExp]";
917
+ }, u = function(d) {
918
+ return !d || typeof d != "object" ? !1 : !!(d.constructor && d.constructor.isBuffer && d.constructor.isBuffer(d));
919
+ }, o = function(d, l) {
920
+ return [].concat(d, l);
921
+ }, m = function(d, l) {
922
+ if (i(d)) {
923
+ for (var v = [], S = 0; S < d.length; S += 1)
924
+ v.push(l(d[S]));
925
+ return v;
926
926
  }
927
- return s(c);
927
+ return l(d);
928
928
  };
929
929
  return sr = {
930
- arrayToObject: i,
931
- assign: l,
930
+ arrayToObject: n,
931
+ assign: f,
932
932
  combine: o,
933
933
  compact: w,
934
- decode: p,
935
- encode: m,
934
+ decode: c,
935
+ encode: p,
936
936
  isBuffer: u,
937
- isRegExp: b,
938
- maybeMap: f,
939
- merge: y
937
+ isRegExp: A,
938
+ maybeMap: m,
939
+ merge: s
940
940
  }, sr;
941
941
  }
942
942
  var ur, Ur;
943
943
  function ut() {
944
944
  if (Ur) return ur;
945
945
  Ur = 1;
946
- var e = st(), r = Wr(), a = gr(), t = Object.prototype.hasOwnProperty, n = {
947
- brackets: function(s) {
948
- return s + "[]";
946
+ var e = st(), r = Kr(), i = gr(), t = Object.prototype.hasOwnProperty, a = {
947
+ brackets: function(l) {
948
+ return l + "[]";
949
949
  },
950
950
  comma: "comma",
951
- indices: function(s, A) {
952
- return s + "[" + A + "]";
951
+ indices: function(l, v) {
952
+ return l + "[" + v + "]";
953
953
  },
954
- repeat: function(s) {
955
- return s;
954
+ repeat: function(l) {
955
+ return l;
956
956
  }
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 = {
957
+ }, n = Array.isArray, s = String.prototype.split, f = Array.prototype.push, c = function(d, l) {
958
+ f.apply(d, n(l) ? l : [l]);
959
+ }, p = Date.prototype.toISOString, w = i.default, A = {
960
960
  addQueryPrefix: !1,
961
961
  allowDots: !1,
962
962
  charset: "utf-8",
@@ -966,19 +966,19 @@ function ut() {
966
966
  encoder: r.encode,
967
967
  encodeValuesOnly: !1,
968
968
  format: w,
969
- formatter: a.formatters[w],
969
+ formatter: i.formatters[w],
970
970
  // deprecated
971
971
  indices: !1,
972
- serializeDate: function(s) {
973
- return m.call(s);
972
+ serializeDate: function(l) {
973
+ return p.call(l);
974
974
  },
975
975
  skipNulls: !1,
976
976
  strictNullHandling: !1
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, N, M, V, $, L, F, R, 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);
977
+ }, u = function(l) {
978
+ return typeof l == "string" || typeof l == "number" || typeof l == "boolean" || typeof l == "symbol" || typeof l == "bigint";
979
+ }, o = {}, m = function d(l, v, S, O, x, T, N, M, V, $, L, F, k, R, U, z) {
980
+ for (var _ = l, Z = z, Q = 0, ne = !1; (Z = Z.get(o)) !== void 0 && !ne; ) {
981
+ var X = Z.get(l);
982
982
  if (Q += 1, typeof X < "u") {
983
983
  if (X === Q)
984
984
  throw new RangeError("Cyclic object value");
@@ -986,48 +986,48 @@ function ut() {
986
986
  }
987
987
  typeof Z.get(o) > "u" && (Q = 0);
988
988
  }
989
- if (typeof M == "function" ? _ = M(A, _) : _ instanceof Date ? _ = L(_) : S === "comma" && i(_) && (_ = r.maybeMap(_, function(ee) {
989
+ if (typeof M == "function" ? _ = M(v, _) : _ instanceof Date ? _ = L(_) : S === "comma" && n(_) && (_ = r.maybeMap(_, function(ee) {
990
990
  return ee instanceof Date ? L(ee) : ee;
991
991
  })), _ === null) {
992
992
  if (x)
993
- return N && !k ? N(A, b.encoder, U, "key", F) : A;
993
+ return N && !R ? N(v, A.encoder, U, "key", F) : v;
994
994
  _ = "";
995
995
  }
996
996
  if (u(_) || r.isBuffer(_)) {
997
997
  if (N) {
998
- var W = k ? A : N(A, b.encoder, U, "key", F);
999
- if (S === "comma" && k) {
1000
- for (var ie = y.call(String(_), ","), re = "", te = 0; te < ie.length; ++te)
1001
- re += (te === 0 ? "" : ",") + R(N(ie[te], b.encoder, U, "value", F));
1002
- return [R(W) + (P && i(_) && ie.length === 1 ? "[]" : "") + "=" + re];
998
+ var K = R ? v : N(v, A.encoder, U, "key", F);
999
+ if (S === "comma" && R) {
1000
+ for (var ie = s.call(String(_), ","), re = "", te = 0; te < ie.length; ++te)
1001
+ re += (te === 0 ? "" : ",") + k(N(ie[te], A.encoder, U, "value", F));
1002
+ return [k(K) + (O && n(_) && ie.length === 1 ? "[]" : "") + "=" + re];
1003
1003
  }
1004
- return [R(W) + "=" + R(N(_, b.encoder, U, "value", F))];
1004
+ return [k(K) + "=" + k(N(_, A.encoder, U, "value", F))];
1005
1005
  }
1006
- return [R(A) + "=" + R(String(_))];
1006
+ return [k(v) + "=" + k(String(_))];
1007
1007
  }
1008
1008
  var ce = [];
1009
1009
  if (typeof _ > "u")
1010
1010
  return ce;
1011
1011
  var ue;
1012
- if (S === "comma" && i(_))
1012
+ if (S === "comma" && n(_))
1013
1013
  ue = [{ value: _.length > 0 ? _.join(",") || null : void 0 }];
1014
- else if (i(M))
1014
+ else if (n(M))
1015
1015
  ue = M;
1016
1016
  else {
1017
1017
  var oe = Object.keys(_);
1018
1018
  ue = V ? oe.sort(V) : oe;
1019
1019
  }
1020
- for (var de = P && i(_) && _.length === 1 ? A + "[]" : A, pe = 0; pe < ue.length; ++pe) {
1020
+ for (var de = O && n(_) && _.length === 1 ? v + "[]" : v, 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
- var Se = i(_) ? typeof S == "function" ? S(de, se) : de : de + ($ ? "." + se : "[" + se + "]");
1024
- z.set(s, Q);
1023
+ var Se = n(_) ? typeof S == "function" ? S(de, se) : de : de + ($ ? "." + se : "[" + se + "]");
1024
+ z.set(l, Q);
1025
1025
  var J = e();
1026
- J.set(o, z), p(ce, c(
1026
+ J.set(o, z), c(ce, d(
1027
1027
  ye,
1028
1028
  Se,
1029
1029
  S,
1030
- P,
1030
+ O,
1031
1031
  x,
1032
1032
  T,
1033
1033
  N,
@@ -1036,64 +1036,64 @@ function ut() {
1036
1036
  $,
1037
1037
  L,
1038
1038
  F,
1039
- R,
1040
1039
  k,
1040
+ R,
1041
1041
  U,
1042
1042
  J
1043
1043
  ));
1044
1044
  }
1045
1045
  }
1046
1046
  return ce;
1047
- }, g = function(s) {
1048
- if (!s)
1049
- return b;
1050
- if (s.encoder !== null && typeof s.encoder < "u" && typeof s.encoder != "function")
1047
+ }, h = function(l) {
1048
+ if (!l)
1049
+ return A;
1050
+ if (l.encoder !== null && typeof l.encoder < "u" && typeof l.encoder != "function")
1051
1051
  throw new TypeError("Encoder has to be a function.");
1052
- var A = s.charset || b.charset;
1053
- if (typeof s.charset < "u" && s.charset !== "utf-8" && s.charset !== "iso-8859-1")
1052
+ var v = l.charset || A.charset;
1053
+ if (typeof l.charset < "u" && l.charset !== "utf-8" && l.charset !== "iso-8859-1")
1054
1054
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1055
- var S = a.default;
1056
- if (typeof s.format < "u") {
1057
- if (!t.call(a.formatters, s.format))
1055
+ var S = i.default;
1056
+ if (typeof l.format < "u") {
1057
+ if (!t.call(i.formatters, l.format))
1058
1058
  throw new TypeError("Unknown format option provided.");
1059
- S = s.format;
1059
+ S = l.format;
1060
1060
  }
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,
1061
+ var O = i.formatters[S], x = A.filter;
1062
+ return (typeof l.filter == "function" || n(l.filter)) && (x = l.filter), {
1063
+ addQueryPrefix: typeof l.addQueryPrefix == "boolean" ? l.addQueryPrefix : A.addQueryPrefix,
1064
+ allowDots: typeof l.allowDots > "u" ? A.allowDots : !!l.allowDots,
1065
+ charset: v,
1066
+ charsetSentinel: typeof l.charsetSentinel == "boolean" ? l.charsetSentinel : A.charsetSentinel,
1067
+ delimiter: typeof l.delimiter > "u" ? A.delimiter : l.delimiter,
1068
+ encode: typeof l.encode == "boolean" ? l.encode : A.encode,
1069
+ encoder: typeof l.encoder == "function" ? l.encoder : A.encoder,
1070
+ encodeValuesOnly: typeof l.encodeValuesOnly == "boolean" ? l.encodeValuesOnly : A.encodeValuesOnly,
1071
1071
  filter: x,
1072
1072
  format: S,
1073
- formatter: P,
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
1073
+ formatter: O,
1074
+ serializeDate: typeof l.serializeDate == "function" ? l.serializeDate : A.serializeDate,
1075
+ skipNulls: typeof l.skipNulls == "boolean" ? l.skipNulls : A.skipNulls,
1076
+ sort: typeof l.sort == "function" ? l.sort : null,
1077
+ strictNullHandling: typeof l.strictNullHandling == "boolean" ? l.strictNullHandling : A.strictNullHandling
1078
1078
  };
1079
1079
  };
1080
- return ur = function(c, s) {
1081
- var A = c, S = g(s), P, x;
1082
- typeof S.filter == "function" ? (x = S.filter, A = x("", A)) : i(S.filter) && (x = S.filter, P = x);
1080
+ return ur = function(d, l) {
1081
+ var v = d, S = h(l), O, x;
1082
+ typeof S.filter == "function" ? (x = S.filter, v = x("", v)) : n(S.filter) && (x = S.filter, O = x);
1083
1083
  var T = [];
1084
- if (typeof A != "object" || A === null)
1084
+ if (typeof v != "object" || v === null)
1085
1085
  return "";
1086
1086
  var N;
1087
- s && s.arrayFormat in n ? N = s.arrayFormat : s && "indices" in s ? N = s.indices ? "indices" : "repeat" : N = "indices";
1088
- var M = n[N];
1089
- if (s && "commaRoundTrip" in s && typeof s.commaRoundTrip != "boolean")
1087
+ l && l.arrayFormat in a ? N = l.arrayFormat : l && "indices" in l ? N = l.indices ? "indices" : "repeat" : N = "indices";
1088
+ var M = a[N];
1089
+ if (l && "commaRoundTrip" in l && typeof l.commaRoundTrip != "boolean")
1090
1090
  throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
1091
- var V = M === "comma" && s && s.commaRoundTrip;
1092
- P || (P = Object.keys(A)), S.sort && P.sort(S.sort);
1093
- for (var $ = e(), L = 0; L < P.length; ++L) {
1094
- var F = P[L];
1095
- S.skipNulls && A[F] === null || p(T, f(
1096
- A[F],
1091
+ var V = M === "comma" && l && l.commaRoundTrip;
1092
+ O || (O = Object.keys(v)), S.sort && O.sort(S.sort);
1093
+ for (var $ = e(), L = 0; L < O.length; ++L) {
1094
+ var F = O[L];
1095
+ S.skipNulls && v[F] === null || c(T, m(
1096
+ v[F],
1097
1097
  F,
1098
1098
  M,
1099
1099
  V,
@@ -1111,15 +1111,15 @@ function ut() {
1111
1111
  $
1112
1112
  ));
1113
1113
  }
1114
- var R = T.join(S.delimiter), k = S.addQueryPrefix === !0 ? "?" : "";
1115
- return S.charsetSentinel && (S.charset === "iso-8859-1" ? k += "utf8=%26%2310003%3B&" : k += "utf8=%E2%9C%93&"), R.length > 0 ? k + R : "";
1114
+ var k = T.join(S.delimiter), R = S.addQueryPrefix === !0 ? "?" : "";
1115
+ return S.charsetSentinel && (S.charset === "iso-8859-1" ? R += "utf8=%26%2310003%3B&" : R += "utf8=%E2%9C%93&"), k.length > 0 ? R + k : "";
1116
1116
  }, ur;
1117
1117
  }
1118
1118
  var cr, $r;
1119
1119
  function ct() {
1120
1120
  if ($r) return cr;
1121
1121
  $r = 1;
1122
- var e = Wr(), r = Object.prototype.hasOwnProperty, a = Array.isArray, t = {
1122
+ var e = Kr(), r = Object.prototype.hasOwnProperty, i = Array.isArray, t = {
1123
1123
  allowDots: !1,
1124
1124
  allowPrototypes: !1,
1125
1125
  allowSparse: !1,
@@ -1136,70 +1136,70 @@ function ct() {
1136
1136
  parseArrays: !0,
1137
1137
  plainObjects: !1,
1138
1138
  strictNullHandling: !1
1139
- }, n = function(u) {
1140
- return u.replace(/&#(\d+);/g, function(o, f) {
1141
- return String.fromCharCode(parseInt(f, 10));
1139
+ }, a = function(u) {
1140
+ return u.replace(/&#(\d+);/g, function(o, m) {
1141
+ return String.fromCharCode(parseInt(m, 10));
1142
1142
  });
1143
- }, i = function(u, o) {
1143
+ }, n = function(u, o) {
1144
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 g = {}, 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
- if (f.charsetSentinel)
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
- if (P !== S) {
1152
- var T = A[P], N = T.indexOf("]="), M = N === -1 ? T.indexOf("=") : N + 1, V, $;
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
- i(T.slice(M + 1), f),
1145
+ }, s = "utf8=%26%2310003%3B", f = "utf8=%E2%9C%93", c = function(o, m) {
1146
+ var h = {}, d = m.ignoreQueryPrefix ? o.replace(/^\?/, "") : o, l = m.parameterLimit === 1 / 0 ? void 0 : m.parameterLimit, v = d.split(m.delimiter, l), S = -1, O, x = m.charset;
1147
+ if (m.charsetSentinel)
1148
+ for (O = 0; O < v.length; ++O)
1149
+ v[O].indexOf("utf8=") === 0 && (v[O] === f ? x = "utf-8" : v[O] === s && (x = "iso-8859-1"), S = O, O = v.length);
1150
+ for (O = 0; O < v.length; ++O)
1151
+ if (O !== S) {
1152
+ var T = v[O], N = T.indexOf("]="), M = N === -1 ? T.indexOf("=") : N + 1, V, $;
1153
+ M === -1 ? (V = m.decoder(T, t.decoder, x, "key"), $ = m.strictNullHandling ? null : "") : (V = m.decoder(T.slice(0, M), t.decoder, x, "key"), $ = e.maybeMap(
1154
+ n(T.slice(M + 1), m),
1155
1155
  function(L) {
1156
- return f.decoder(L, t.decoder, x, "value");
1156
+ return m.decoder(L, 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
+ )), $ && m.interpretNumericEntities && x === "iso-8859-1" && ($ = a($)), T.indexOf("[]=") > -1 && ($ = i($) ? [$] : $), r.call(h, V) ? h[V] = e.combine(h[V], $) : h[V] = $;
1159
1159
  }
1160
- return g;
1161
- }, m = function(u, o, f, g) {
1162
- for (var c = g ? o : i(o, f), s = u.length - 1; s >= 0; --s) {
1163
- var A, S = u[s];
1164
- if (S === "[]" && f.parseArrays)
1165
- A = [].concat(c);
1160
+ return h;
1161
+ }, p = function(u, o, m, h) {
1162
+ for (var d = h ? o : n(o, m), l = u.length - 1; l >= 0; --l) {
1163
+ var v, S = u[l];
1164
+ if (S === "[]" && m.parseArrays)
1165
+ v = [].concat(d);
1166
1166
  else {
1167
- A = f.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1168
- var P = S.charAt(0) === "[" && S.charAt(S.length - 1) === "]" ? S.slice(1, -1) : S, x = parseInt(P, 10);
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);
1167
+ v = m.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1168
+ var O = S.charAt(0) === "[" && S.charAt(S.length - 1) === "]" ? S.slice(1, -1) : S, x = parseInt(O, 10);
1169
+ !m.parseArrays && O === "" ? v = { 0: d } : !isNaN(x) && S !== O && String(x) === O && x >= 0 && m.parseArrays && x <= m.arrayLimit ? (v = [], v[x] = d) : O !== "__proto__" && (v[O] = d);
1170
1170
  }
1171
- c = A;
1171
+ d = v;
1172
1172
  }
1173
- return c;
1174
- }, w = function(o, f, g, c) {
1173
+ return d;
1174
+ }, w = function(o, m, h, d) {
1175
1175
  if (o) {
1176
- var s = g.allowDots ? o.replace(/\.([^.[]+)/g, "[$1]") : o, A = /(\[[^[\]]*])/, S = /(\[[^[\]]*])/g, P = g.depth > 0 && A.exec(s), x = P ? s.slice(0, P.index) : s, T = [];
1176
+ var l = h.allowDots ? o.replace(/\.([^.[]+)/g, "[$1]") : o, v = /(\[[^[\]]*])/, S = /(\[[^[\]]*])/g, O = h.depth > 0 && v.exec(l), x = O ? l.slice(0, O.index) : l, 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 N = 0; g.depth > 0 && (P = S.exec(s)) !== null && N < g.depth; ) {
1183
- if (N += 1, !g.plainObjects && r.call(Object.prototype, P[1].slice(1, -1)) && !g.allowPrototypes)
1182
+ for (var N = 0; h.depth > 0 && (O = S.exec(l)) !== null && N < h.depth; ) {
1183
+ if (N += 1, !h.plainObjects && r.call(Object.prototype, O[1].slice(1, -1)) && !h.allowPrototypes)
1184
1184
  return;
1185
- T.push(P[1]);
1185
+ T.push(O[1]);
1186
1186
  }
1187
- return P && T.push("[" + s.slice(P.index) + "]"), m(T, f, g, c);
1187
+ return O && T.push("[" + l.slice(O.index) + "]"), p(T, m, h, d);
1188
1188
  }
1189
- }, b = function(o) {
1189
+ }, A = function(o) {
1190
1190
  if (!o)
1191
1191
  return t;
1192
1192
  if (o.decoder !== null && o.decoder !== void 0 && typeof o.decoder != "function")
1193
1193
  throw new TypeError("Decoder has to be a function.");
1194
1194
  if (typeof o.charset < "u" && o.charset !== "utf-8" && o.charset !== "iso-8859-1")
1195
1195
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1196
- var f = typeof o.charset > "u" ? t.charset : o.charset;
1196
+ var m = typeof o.charset > "u" ? t.charset : o.charset;
1197
1197
  return {
1198
1198
  allowDots: typeof o.allowDots > "u" ? t.allowDots : !!o.allowDots,
1199
1199
  allowPrototypes: typeof o.allowPrototypes == "boolean" ? o.allowPrototypes : t.allowPrototypes,
1200
1200
  allowSparse: typeof o.allowSparse == "boolean" ? o.allowSparse : t.allowSparse,
1201
1201
  arrayLimit: typeof o.arrayLimit == "number" ? o.arrayLimit : t.arrayLimit,
1202
- charset: f,
1202
+ charset: m,
1203
1203
  charsetSentinel: typeof o.charsetSentinel == "boolean" ? o.charsetSentinel : t.charsetSentinel,
1204
1204
  comma: typeof o.comma == "boolean" ? o.comma : t.comma,
1205
1205
  decoder: typeof o.decoder == "function" ? o.decoder : t.decoder,
@@ -1215,133 +1215,133 @@ function ct() {
1215
1215
  };
1216
1216
  };
1217
1217
  return cr = function(u, o) {
1218
- var f = b(o);
1218
+ var m = A(o);
1219
1219
  if (u === "" || u === null || typeof u > "u")
1220
- return f.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1221
- for (var g = typeof u == "string" ? p(u, f) : u, c = f.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, s = Object.keys(g), A = 0; A < s.length; ++A) {
1222
- var S = s[A], P = w(S, g[S], f, typeof u == "string");
1223
- c = e.merge(c, P, f);
1220
+ return m.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1221
+ for (var h = typeof u == "string" ? c(u, m) : u, d = m.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, l = Object.keys(h), v = 0; v < l.length; ++v) {
1222
+ var S = l[v], O = w(S, h[S], m, typeof u == "string");
1223
+ d = e.merge(d, O, m);
1224
1224
  }
1225
- return f.allowSparse === !0 ? c : e.compact(c);
1225
+ return m.allowSparse === !0 ? d : e.compact(d);
1226
1226
  }, cr;
1227
1227
  }
1228
1228
  var lr, Br;
1229
1229
  function lt() {
1230
1230
  if (Br) return lr;
1231
1231
  Br = 1;
1232
- var e = ut(), r = ct(), a = gr();
1232
+ var e = ut(), r = ct(), i = gr();
1233
1233
  return lr = {
1234
- formats: a,
1234
+ formats: i,
1235
1235
  parse: r,
1236
1236
  stringify: e
1237
1237
  }, lr;
1238
1238
  }
1239
1239
  var ft = lt();
1240
- const dt = /* @__PURE__ */ mr(ft), vr = "1.0.8", pt = Ae.CancelToken;
1240
+ const dt = /* @__PURE__ */ mr(ft), vr = "1.0.10", pt = Ae.CancelToken;
1241
1241
  var mt = function(e) {
1242
1242
  var r;
1243
1243
  typeof window < "u" && (r = e.cache.get("api"));
1244
- const a = Ae.getAdapter(Ae.defaults.adapter);
1245
- function t(p) {
1246
- var m = [
1247
- p.method,
1248
- p.url,
1249
- p.headers?.Authorization,
1250
- p.headers.Accept,
1244
+ const i = Ae.getAdapter(Ae.defaults.adapter);
1245
+ function t(c) {
1246
+ var p = [
1247
+ c.method,
1248
+ c.url,
1249
+ c.headers?.Authorization,
1250
+ c.headers.Accept,
1251
1251
  JSON.stringify({
1252
- params: p.params,
1253
- data: p.data
1252
+ params: c.params,
1253
+ data: c.data
1254
1254
  })
1255
1255
  ].filter(Boolean).join("-");
1256
- return m;
1256
+ return p;
1257
1257
  }
1258
- const n = {}, y = l(function(p) {
1259
- var m = t(p);
1260
- return n[m] || (n[m] = new Promise(function(w, b) {
1258
+ const a = {}, s = f(function(c) {
1259
+ var p = t(c);
1260
+ return a[p] || (a[p] = new Promise(function(w, A) {
1261
1261
  var u, o;
1262
- switch (String(p.method).toLowerCase()) {
1262
+ switch (String(c.method).toLowerCase()) {
1263
1263
  case "post":
1264
1264
  case "patch":
1265
1265
  case "put":
1266
1266
  case "delete":
1267
- p.cache || (p.cache = !1);
1267
+ c.cache || (c.cache = !1);
1268
1268
  break;
1269
1269
  }
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
- function(f) {
1272
- delete n[m], w(f);
1270
+ return c.cache === !1 || (u = c.cache || r, u && (o = u.get(p))), o ? w(o) : (Object.assign(c, { adapter: i }), Ae.request(c).then(
1271
+ function(m) {
1272
+ delete a[p], w(m);
1273
1273
  },
1274
- function(f) {
1275
- delete n[m], b(f);
1274
+ function(m) {
1275
+ delete a[p], A(m);
1276
1276
  }
1277
1277
  ));
1278
- })), n[m];
1278
+ })), a[p];
1279
1279
  });
1280
- y.generateEndpointURL = function(p, m, w) {
1281
- w = w || {}, m = m || {};
1282
- var b;
1280
+ s.generateEndpointURL = function(c, p, w) {
1281
+ w = w || {}, p = p || {};
1282
+ var A;
1283
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
- return f;
1289
- }, y.wasCancelled = function(p) {
1290
- return Ae.isCancel(p);
1284
+ w.withoutToken || (delete p.access_token, A = e.auth.getCurrentToken()), c[0] == "/" && c.slice(1);
1285
+ var o = e.utils.mapParameters(p);
1286
+ A ? o = o ? `?access_token=${A}&${o}` : `?access_token=${A}` : o = o ? `?${o}` : "";
1287
+ var m = `${u}${c}${o}`;
1288
+ return m;
1289
+ }, s.wasCancelled = function(c) {
1290
+ return Ae.isCancel(c);
1291
1291
  };
1292
- function l(p) {
1293
- var m = Ae.create({
1292
+ function f(c) {
1293
+ var p = Ae.create({
1294
1294
  paramsSerializer: {
1295
- serialize: (b) => dt.stringify(b, { arrayFormat: "repeat" })
1295
+ serialize: (A) => dt.stringify(A, { arrayFormat: "repeat" })
1296
1296
  },
1297
- adapter: p
1297
+ adapter: c
1298
1298
  });
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) {
1299
+ p.defaults.baseURL = e.apiURL, p.defaults.headers.common.Accept = "application/json", p.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) {
1303
1303
  const o = Intl.DateTimeFormat().resolvedOptions().timeZone;
1304
- o && (b.headers["qik-request-timezone"] = o);
1304
+ o && (A.headers["qik-request-timezone"] = o);
1305
1305
  }
1306
- b.headers["qik-api-version"] = vr, e?.socket?.windowID && (b.headers["qik-socket-window"] = e.socket.windowID);
1306
+ A.headers["qik-api-version"] = vr, e?.socket?.windowID && (A.headers["qik-socket-window"] = e.socket.windowID);
1307
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;
1308
+ return u && (A.headers.Authorization = `Bearer ${u}`, A.params && A.params.access_token && delete A.params.access_token), A;
1309
1309
  });
1310
1310
  let w = 0;
1311
- return m.interceptors.response.use(
1312
- function(b) {
1313
- var u = b.config, o = b.status;
1311
+ return p.interceptors.response.use(
1312
+ function(A) {
1313
+ var u = A.config, o = A.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(m, h) {
1318
1318
  setTimeout(function() {
1319
- return m.request(u).then(f, g);
1319
+ return p.request(u).then(m, h);
1320
1320
  }, 800);
1321
1321
  });
1322
1322
  console.log("Failed after 5 retries"), w = 0;
1323
1323
  break;
1324
1324
  }
1325
- return b;
1325
+ return A;
1326
1326
  },
1327
- function(b) {
1328
- if (Ae.isCancel(b))
1329
- return Promise.reject(b);
1330
- var u = b?.response?.status || b.status;
1327
+ function(A) {
1328
+ if (Ae.isCancel(A))
1329
+ return Promise.reject(A);
1330
+ var u = A?.response?.status || A.status;
1331
1331
  switch (u) {
1332
1332
  case 401:
1333
1333
  break;
1334
1334
  case 429: {
1335
- var o = b.config || {};
1335
+ var o = A.config || {};
1336
1336
  if (o.__retry429 = (o.__retry429 || 0) + 1, o.__retry429 <= 3) {
1337
- var f = parseInt(
1338
- b?.response?.headers?.["retry-after"],
1337
+ var m = parseInt(
1338
+ A?.response?.headers?.["retry-after"],
1339
1339
  10
1340
- ), g = Number.isFinite(f) ? f * 1e3 : 800 * o.__retry429, c = Math.floor(Math.random() * 500);
1341
- return new Promise(function(s, A) {
1340
+ ), h = Number.isFinite(m) ? m * 1e3 : 800 * o.__retry429, d = Math.floor(Math.random() * 500);
1341
+ return new Promise(function(l, v) {
1342
1342
  setTimeout(function() {
1343
- return m.request(o).then(s, A);
1344
- }, g + c);
1343
+ return p.request(o).then(l, v);
1344
+ }, h + d);
1345
1345
  });
1346
1346
  }
1347
1347
  break;
@@ -1349,241 +1349,241 @@ var mt = function(e) {
1349
1349
  case 502:
1350
1350
  case 504:
1351
1351
  if (w < 5)
1352
- return w++, new Promise(function(s, A) {
1352
+ return w++, new Promise(function(l, v) {
1353
1353
  setTimeout(function() {
1354
- return m.request(b.config).then(s, A);
1354
+ return p.request(A.config).then(l, v);
1355
1355
  }, 800);
1356
1356
  });
1357
1357
  console.log("Failed after 5 retries"), w = 0;
1358
1358
  break;
1359
1359
  }
1360
- return Promise.reject(b);
1360
+ return Promise.reject(A);
1361
1361
  }
1362
- ), m;
1362
+ ), p;
1363
1363
  }
1364
- return y.CancelToken = pt, y.axios = Ae, y;
1364
+ return s.CancelToken = pt, s.axios = Ae, s;
1365
1365
  }, fr, Gr;
1366
1366
  function yt() {
1367
1367
  if (Gr) return fr;
1368
1368
  Gr = 1;
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 g(d, E) {
1371
- return d?.[E];
1369
+ var e = "Expected a function", r = "__lodash_hash_undefined__", i = "[object Function]", t = "[object GeneratorFunction]", a = "[object Symbol]", n = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, s = /^\w*$/, f = /^\./, c = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, p = /[\\^$.*+?()[\]{}|]/g, w = /\\(\\)?/g, A = /^\[object .+?Constructor\]$/, u = typeof be == "object" && be && be.Object === Object && be, o = typeof self == "object" && self && self.Object === Object && self, m = u || o || Function("return this")();
1370
+ function h(y, E) {
1371
+ return y?.[E];
1372
1372
  }
1373
- function c(d) {
1373
+ function d(y) {
1374
1374
  var E = !1;
1375
- if (d != null && typeof d.toString != "function")
1375
+ if (y != null && typeof y.toString != "function")
1376
1376
  try {
1377
- E = !!(d + "");
1377
+ E = !!(y + "");
1378
1378
  } catch {
1379
1379
  }
1380
1380
  return E;
1381
1381
  }
1382
- var s = Array.prototype, A = Function.prototype, S = Object.prototype, P = f["__core-js_shared__"], x = (function() {
1383
- var d = /[^.]+$/.exec(P && P.keys && P.keys.IE_PROTO || "");
1384
- return d ? "Symbol(src)_1." + d : "";
1385
- })(), T = A.toString, N = S.hasOwnProperty, M = S.toString, V = RegExp(
1386
- "^" + T.call(N).replace(m, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
1387
- ), $ = f.Symbol, L = s.splice, F = Pe(f, "Map"), R = Pe(Object, "create"), k = $ ? $.prototype : void 0, U = k ? k.toString : void 0;
1388
- function z(d) {
1389
- var E = -1, O = d ? d.length : 0;
1390
- for (this.clear(); ++E < O; ) {
1391
- var G = d[E];
1382
+ var l = Array.prototype, v = Function.prototype, S = Object.prototype, O = m["__core-js_shared__"], x = (function() {
1383
+ var y = /[^.]+$/.exec(O && O.keys && O.keys.IE_PROTO || "");
1384
+ return y ? "Symbol(src)_1." + y : "";
1385
+ })(), T = v.toString, N = S.hasOwnProperty, M = S.toString, V = RegExp(
1386
+ "^" + T.call(N).replace(p, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
1387
+ ), $ = m.Symbol, L = l.splice, F = Pe(m, "Map"), k = Pe(Object, "create"), R = $ ? $.prototype : void 0, U = R ? R.toString : void 0;
1388
+ function z(y) {
1389
+ var E = -1, P = y ? y.length : 0;
1390
+ for (this.clear(); ++E < P; ) {
1391
+ var G = y[E];
1392
1392
  this.set(G[0], G[1]);
1393
1393
  }
1394
1394
  }
1395
1395
  function _() {
1396
- this.__data__ = R ? R(null) : {};
1396
+ this.__data__ = k ? k(null) : {};
1397
1397
  }
1398
- function Z(d) {
1399
- return this.has(d) && delete this.__data__[d];
1398
+ function Z(y) {
1399
+ return this.has(y) && delete this.__data__[y];
1400
1400
  }
1401
- function Q(d) {
1401
+ function Q(y) {
1402
1402
  var E = this.__data__;
1403
- if (R) {
1404
- var O = E[d];
1405
- return O === r ? void 0 : O;
1403
+ if (k) {
1404
+ var P = E[y];
1405
+ return P === r ? void 0 : P;
1406
1406
  }
1407
- return N.call(E, d) ? E[d] : void 0;
1407
+ return N.call(E, y) ? E[y] : void 0;
1408
1408
  }
1409
- function ne(d) {
1409
+ function ne(y) {
1410
1410
  var E = this.__data__;
1411
- return R ? E[d] !== void 0 : N.call(E, d);
1411
+ return k ? E[y] !== void 0 : N.call(E, y);
1412
1412
  }
1413
- function X(d, E) {
1414
- var O = this.__data__;
1415
- return O[d] = R && E === void 0 ? r : E, this;
1413
+ function X(y, E) {
1414
+ var P = this.__data__;
1415
+ return P[y] = k && E === void 0 ? r : E, this;
1416
1416
  }
1417
1417
  z.prototype.clear = _, z.prototype.delete = Z, z.prototype.get = Q, z.prototype.has = ne, z.prototype.set = X;
1418
- function W(d) {
1419
- var E = -1, O = d ? d.length : 0;
1420
- for (this.clear(); ++E < O; ) {
1421
- var G = d[E];
1418
+ function K(y) {
1419
+ var E = -1, P = y ? y.length : 0;
1420
+ for (this.clear(); ++E < P; ) {
1421
+ var G = y[E];
1422
1422
  this.set(G[0], G[1]);
1423
1423
  }
1424
1424
  }
1425
1425
  function ie() {
1426
1426
  this.__data__ = [];
1427
1427
  }
1428
- function re(d) {
1429
- var E = this.__data__, O = J(E, d);
1430
- if (O < 0)
1428
+ function re(y) {
1429
+ var E = this.__data__, P = J(E, y);
1430
+ if (P < 0)
1431
1431
  return !1;
1432
1432
  var G = E.length - 1;
1433
- return O == G ? E.pop() : L.call(E, O, 1), !0;
1433
+ return P == G ? E.pop() : L.call(E, P, 1), !0;
1434
1434
  }
1435
- function te(d) {
1436
- var E = this.__data__, O = J(E, d);
1437
- return O < 0 ? void 0 : E[O][1];
1435
+ function te(y) {
1436
+ var E = this.__data__, P = J(E, y);
1437
+ return P < 0 ? void 0 : E[P][1];
1438
1438
  }
1439
- function ce(d) {
1440
- return J(this.__data__, d) > -1;
1439
+ function ce(y) {
1440
+ return J(this.__data__, y) > -1;
1441
1441
  }
1442
- function ue(d, E) {
1443
- var O = this.__data__, G = J(O, d);
1444
- return G < 0 ? O.push([d, E]) : O[G][1] = E, this;
1442
+ function ue(y, E) {
1443
+ var P = this.__data__, G = J(P, y);
1444
+ return G < 0 ? P.push([y, E]) : P[G][1] = E, this;
1445
1445
  }
1446
- W.prototype.clear = ie, W.prototype.delete = re, W.prototype.get = te, W.prototype.has = ce, W.prototype.set = ue;
1447
- function oe(d) {
1448
- var E = -1, O = d ? d.length : 0;
1449
- for (this.clear(); ++E < O; ) {
1450
- var G = d[E];
1446
+ K.prototype.clear = ie, K.prototype.delete = re, K.prototype.get = te, K.prototype.has = ce, K.prototype.set = ue;
1447
+ function oe(y) {
1448
+ var E = -1, P = y ? y.length : 0;
1449
+ for (this.clear(); ++E < P; ) {
1450
+ var G = y[E];
1451
1451
  this.set(G[0], G[1]);
1452
1452
  }
1453
1453
  }
1454
1454
  function de() {
1455
1455
  this.__data__ = {
1456
1456
  hash: new z(),
1457
- map: new (F || W)(),
1457
+ map: new (F || K)(),
1458
1458
  string: new z()
1459
1459
  };
1460
1460
  }
1461
- function pe(d) {
1462
- return me(this, d).delete(d);
1461
+ function pe(y) {
1462
+ return me(this, y).delete(y);
1463
1463
  }
1464
- function se(d) {
1465
- return me(this, d).get(d);
1464
+ function se(y) {
1465
+ return me(this, y).get(y);
1466
1466
  }
1467
- function ye(d) {
1468
- return me(this, d).has(d);
1467
+ function ye(y) {
1468
+ return me(this, y).has(y);
1469
1469
  }
1470
- function Se(d, E) {
1471
- return me(this, d).set(d, E), this;
1470
+ function Se(y, E) {
1471
+ return me(this, y).set(y, E), this;
1472
1472
  }
1473
1473
  oe.prototype.clear = de, oe.prototype.delete = pe, oe.prototype.get = se, oe.prototype.has = ye, oe.prototype.set = Se;
1474
- function J(d, E) {
1475
- for (var O = d.length; O--; )
1476
- if (we(d[O][0], E))
1477
- return O;
1474
+ function J(y, E) {
1475
+ for (var P = y.length; P--; )
1476
+ if (we(y[P][0], E))
1477
+ return P;
1478
1478
  return -1;
1479
1479
  }
1480
- function ee(d, E) {
1481
- E = Re(E, d) ? [E] : Te(E);
1482
- for (var O = 0, G = E.length; d != null && O < G; )
1483
- d = d[Ne(E[O++])];
1484
- return O && O == G ? d : void 0;
1480
+ function ee(y, E) {
1481
+ E = ke(E, y) ? [E] : Te(E);
1482
+ for (var P = 0, G = E.length; y != null && P < G; )
1483
+ y = y[Ne(E[P++])];
1484
+ return P && P == G ? y : void 0;
1485
1485
  }
1486
- function Ie(d) {
1487
- if (!he(d) || _e(d))
1486
+ function Ie(y) {
1487
+ if (!he(y) || _e(y))
1488
1488
  return !1;
1489
- var E = Le(d) || c(d) ? V : b;
1490
- return E.test(le(d));
1491
- }
1492
- function xe(d) {
1493
- if (typeof d == "string")
1494
- return d;
1495
- if (h(d))
1496
- return U ? U.call(d) : "";
1497
- var E = d + "";
1498
- return E == "0" && 1 / d == -1 / 0 ? "-0" : E;
1499
- }
1500
- function Te(d) {
1501
- return Ce(d) ? d : Oe(d);
1502
- }
1503
- function me(d, E) {
1504
- var O = d.__data__;
1505
- return ke(E) ? O[typeof E == "string" ? "string" : "hash"] : O.map;
1506
- }
1507
- function Pe(d, E) {
1508
- var O = g(d, E);
1509
- return Ie(O) ? O : void 0;
1510
- }
1511
- function Re(d, E) {
1512
- if (Ce(d))
1489
+ var E = Le(y) || d(y) ? V : A;
1490
+ return E.test(le(y));
1491
+ }
1492
+ function xe(y) {
1493
+ if (typeof y == "string")
1494
+ return y;
1495
+ if (g(y))
1496
+ return U ? U.call(y) : "";
1497
+ var E = y + "";
1498
+ return E == "0" && 1 / y == -1 / 0 ? "-0" : E;
1499
+ }
1500
+ function Te(y) {
1501
+ return Ce(y) ? y : Oe(y);
1502
+ }
1503
+ function me(y, E) {
1504
+ var P = y.__data__;
1505
+ return Re(E) ? P[typeof E == "string" ? "string" : "hash"] : P.map;
1506
+ }
1507
+ function Pe(y, E) {
1508
+ var P = h(y, E);
1509
+ return Ie(P) ? P : void 0;
1510
+ }
1511
+ function ke(y, E) {
1512
+ if (Ce(y))
1513
1513
  return !1;
1514
- var O = typeof d;
1515
- return O == "number" || O == "symbol" || O == "boolean" || d == null || h(d) ? !0 : y.test(d) || !i.test(d) || E != null && d in Object(E);
1514
+ var P = typeof y;
1515
+ return P == "number" || P == "symbol" || P == "boolean" || y == null || g(y) ? !0 : s.test(y) || !n.test(y) || E != null && y in Object(E);
1516
1516
  }
1517
- function ke(d) {
1518
- var E = typeof d;
1519
- return E == "string" || E == "number" || E == "symbol" || E == "boolean" ? d !== "__proto__" : d === null;
1517
+ function Re(y) {
1518
+ var E = typeof y;
1519
+ return E == "string" || E == "number" || E == "symbol" || E == "boolean" ? y !== "__proto__" : y === null;
1520
1520
  }
1521
- function _e(d) {
1522
- return !!x && x in d;
1521
+ function _e(y) {
1522
+ return !!x && x in y;
1523
1523
  }
1524
- var Oe = fe(function(d) {
1525
- d = v(d);
1524
+ var Oe = fe(function(y) {
1525
+ y = b(y);
1526
1526
  var E = [];
1527
- return l.test(d) && E.push(""), d.replace(p, function(O, G, ae, K) {
1528
- E.push(ae ? K.replace(w, "$1") : G || O);
1527
+ return f.test(y) && E.push(""), y.replace(c, function(P, G, ae, W) {
1528
+ E.push(ae ? W.replace(w, "$1") : G || P);
1529
1529
  }), E;
1530
1530
  });
1531
- function Ne(d) {
1532
- if (typeof d == "string" || h(d))
1533
- return d;
1534
- var E = d + "";
1535
- return E == "0" && 1 / d == -1 / 0 ? "-0" : E;
1536
- }
1537
- function le(d) {
1538
- if (d != null) {
1531
+ function Ne(y) {
1532
+ if (typeof y == "string" || g(y))
1533
+ return y;
1534
+ var E = y + "";
1535
+ return E == "0" && 1 / y == -1 / 0 ? "-0" : E;
1536
+ }
1537
+ function le(y) {
1538
+ if (y != null) {
1539
1539
  try {
1540
- return T.call(d);
1540
+ return T.call(y);
1541
1541
  } catch {
1542
1542
  }
1543
1543
  try {
1544
- return d + "";
1544
+ return y + "";
1545
1545
  } catch {
1546
1546
  }
1547
1547
  }
1548
1548
  return "";
1549
1549
  }
1550
- function fe(d, E) {
1551
- if (typeof d != "function" || E && typeof E != "function")
1550
+ function fe(y, E) {
1551
+ if (typeof y != "function" || E && typeof E != "function")
1552
1552
  throw new TypeError(e);
1553
- var O = function() {
1554
- var G = arguments, ae = E ? E.apply(this, G) : G[0], K = O.cache;
1555
- if (K.has(ae))
1556
- return K.get(ae);
1557
- var C = d.apply(this, G);
1558
- return O.cache = K.set(ae, C), C;
1553
+ var P = function() {
1554
+ var G = arguments, ae = E ? E.apply(this, G) : G[0], W = P.cache;
1555
+ if (W.has(ae))
1556
+ return W.get(ae);
1557
+ var C = y.apply(this, G);
1558
+ return P.cache = W.set(ae, C), C;
1559
1559
  };
1560
- return O.cache = new (fe.Cache || oe)(), O;
1560
+ return P.cache = new (fe.Cache || oe)(), P;
1561
1561
  }
1562
1562
  fe.Cache = oe;
1563
- function we(d, E) {
1564
- return d === E || d !== d && E !== E;
1563
+ function we(y, E) {
1564
+ return y === E || y !== y && E !== E;
1565
1565
  }
1566
1566
  var Ce = Array.isArray;
1567
- function Le(d) {
1568
- var E = he(d) ? M.call(d) : "";
1569
- return E == a || E == t;
1567
+ function Le(y) {
1568
+ var E = he(y) ? M.call(y) : "";
1569
+ return E == i || E == t;
1570
1570
  }
1571
- function he(d) {
1572
- var E = typeof d;
1573
- return !!d && (E == "object" || E == "function");
1571
+ function he(y) {
1572
+ var E = typeof y;
1573
+ return !!y && (E == "object" || E == "function");
1574
1574
  }
1575
- function ge(d) {
1576
- return !!d && typeof d == "object";
1575
+ function ge(y) {
1576
+ return !!y && typeof y == "object";
1577
1577
  }
1578
- function h(d) {
1579
- return typeof d == "symbol" || ge(d) && M.call(d) == n;
1578
+ function g(y) {
1579
+ return typeof y == "symbol" || ge(y) && M.call(y) == a;
1580
1580
  }
1581
- function v(d) {
1582
- return d == null ? "" : xe(d);
1581
+ function b(y) {
1582
+ return y == null ? "" : xe(y);
1583
1583
  }
1584
- function D(d, E, O) {
1585
- var G = d == null ? void 0 : ee(d, E);
1586
- return G === void 0 ? O : G;
1584
+ function D(y, E, P) {
1585
+ var G = y == null ? void 0 : ee(y, E);
1586
+ return G === void 0 ? P : G;
1587
1587
  }
1588
1588
  return fr = D, fr;
1589
1589
  }
@@ -1593,14 +1593,14 @@ var dr, Dr;
1593
1593
  function gt() {
1594
1594
  if (Dr) return dr;
1595
1595
  Dr = 1;
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, g = "['’]", c = "[" + t + "]", s = "[" + f + "]", A = "[" + n + i + "]", S = "\\d+", P = "[" + y + "]", x = "[" + l + "]", T = "[^" + t + f + S + y + l + u + "]", N = "\\ud83c[\\udffb-\\udfff]", M = "(?:" + A + "|" + N + ")", V = "[^" + t + "]", $ = "(?:\\ud83c[\\udde6-\\uddff]){2}", L = "[\\ud800-\\udbff][\\udc00-\\udfff]", F = "[" + u + "]", R = "\\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 = "(?:" + R + "(?:" + [V, $, L].join("|") + ")" + Q + Z + ")*", X = Q + Z + ne, W = "(?:" + [P, $, L].join("|") + ")" + X, ie = "(?:" + [V + A + "?", A, $, L, c].join("|") + ")", re = RegExp(g, "g"), te = RegExp(A, "g"), ce = RegExp(N + "(?=" + N + ")|" + ie + X, "g"), ue = RegExp([
1597
- F + "?" + x + "+" + z + "(?=" + [s, F, "$"].join("|") + ")",
1598
- U + "+" + _ + "(?=" + [s, F + k, "$"].join("|") + ")",
1599
- F + "?" + k + "+" + z,
1596
+ var e = "[object Symbol]", r = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, i = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, t = "\\ud800-\\udfff", a = "\\u0300-\\u036f\\ufe20-\\ufe23", n = "\\u20d0-\\u20f0", s = "\\u2700-\\u27bf", f = "a-z\\xdf-\\xf6\\xf8-\\xff", c = "\\xac\\xb1\\xd7\\xf7", p = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", w = "\\u2000-\\u206f", A = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", u = "A-Z\\xc0-\\xd6\\xd8-\\xde", o = "\\ufe0e\\ufe0f", m = c + p + w + A, h = "['’]", d = "[" + t + "]", l = "[" + m + "]", v = "[" + a + n + "]", S = "\\d+", O = "[" + s + "]", x = "[" + f + "]", T = "[^" + t + m + S + s + f + u + "]", N = "\\ud83c[\\udffb-\\udfff]", M = "(?:" + v + "|" + N + ")", V = "[^" + t + "]", $ = "(?:\\ud83c[\\udde6-\\uddff]){2}", L = "[\\ud800-\\udbff][\\udc00-\\udfff]", F = "[" + u + "]", k = "\\u200d", R = "(?:" + 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 = "(?:" + k + "(?:" + [V, $, L].join("|") + ")" + Q + Z + ")*", X = Q + Z + ne, K = "(?:" + [O, $, L].join("|") + ")" + X, ie = "(?:" + [V + v + "?", v, $, L, d].join("|") + ")", re = RegExp(h, "g"), te = RegExp(v, "g"), ce = RegExp(N + "(?=" + N + ")|" + ie + X, "g"), ue = RegExp([
1597
+ F + "?" + x + "+" + z + "(?=" + [l, F, "$"].join("|") + ")",
1598
+ U + "+" + _ + "(?=" + [l, F + R, "$"].join("|") + ")",
1599
+ F + "?" + R + "+" + z,
1600
1600
  F + "+" + _,
1601
1601
  S,
1602
- W
1603
- ].join("|"), "g"), oe = RegExp("[" + R + t + n + i + o + "]"), de = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, pe = {
1602
+ K
1603
+ ].join("|"), "g"), oe = RegExp("[" + k + t + a + n + o + "]"), de = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, pe = {
1604
1604
  // Latin-1 Supplement block.
1605
1605
  À: "A",
1606
1606
  Á: "A",
@@ -1817,10 +1817,10 @@ function gt() {
1817
1817
  function Pe(C) {
1818
1818
  return de.test(C);
1819
1819
  }
1820
- function Re(C) {
1821
- return me(C) ? ke(C) : ee(C);
1822
- }
1823
1820
  function ke(C) {
1821
+ return me(C) ? Re(C) : ee(C);
1822
+ }
1823
+ function Re(C) {
1824
1824
  return C.match(ce) || [];
1825
1825
  }
1826
1826
  function _e(C) {
@@ -1848,37 +1848,37 @@ function gt() {
1848
1848
  }
1849
1849
  function ge(C) {
1850
1850
  return function(B) {
1851
- B = d(B);
1852
- var j = me(B) ? Re(B) : void 0, H = j ? j[0] : B.charAt(0), Y = j ? he(j, 1).join("") : B.slice(1);
1851
+ B = y(B);
1852
+ var j = me(B) ? ke(B) : void 0, H = j ? j[0] : B.charAt(0), Y = j ? he(j, 1).join("") : B.slice(1);
1853
1853
  return H[C]() + Y;
1854
1854
  };
1855
1855
  }
1856
- function h(C) {
1856
+ function g(C) {
1857
1857
  return function(B) {
1858
- return J(K(G(B).replace(re, "")), C, "");
1858
+ return J(W(G(B).replace(re, "")), C, "");
1859
1859
  };
1860
1860
  }
1861
- function v(C) {
1861
+ function b(C) {
1862
1862
  return !!C && typeof C == "object";
1863
1863
  }
1864
1864
  function D(C) {
1865
- return typeof C == "symbol" || v(C) && Ne.call(C) == e;
1865
+ return typeof C == "symbol" || b(C) && Ne.call(C) == e;
1866
1866
  }
1867
- function d(C) {
1867
+ function y(C) {
1868
1868
  return C == null ? "" : Le(C);
1869
1869
  }
1870
- var E = h(function(C, B, j) {
1871
- return B = B.toLowerCase(), C + (j ? O(B) : B);
1870
+ var E = g(function(C, B, j) {
1871
+ return B = B.toLowerCase(), C + (j ? P(B) : B);
1872
1872
  });
1873
- function O(C) {
1874
- return ae(d(C).toLowerCase());
1873
+ function P(C) {
1874
+ return ae(y(C).toLowerCase());
1875
1875
  }
1876
1876
  function G(C) {
1877
- return C = d(C), C && C.replace(a, Te).replace(te, "");
1877
+ return C = y(C), C && C.replace(i, Te).replace(te, "");
1878
1878
  }
1879
1879
  var ae = ge("toUpperCase");
1880
- function K(C, B, j) {
1881
- return C = d(C), B = B, B === void 0 ? Pe(C) ? _e(C) : Ie(C) : C.match(B) || [];
1880
+ function W(C, B, j) {
1881
+ return C = y(C), B = B, B === void 0 ? Pe(C) ? _e(C) : Ie(C) : C.match(B) || [];
1882
1882
  }
1883
1883
  return dr = E, dr;
1884
1884
  }
@@ -1890,42 +1890,42 @@ function bt() {
1890
1890
  jr = 1, Object.defineProperty(ve, "__esModule", {
1891
1891
  value: !0
1892
1892
  });
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;
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";
1898
- return ve.isBrowser = r, ve.isWebWorker = t, ve.isNode = a, ve.isJsDom = n, ve.isDeno = i, ve;
1893
+ var e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(s) {
1894
+ return typeof s;
1895
+ } : function(s) {
1896
+ return s && typeof Symbol == "function" && s.constructor === Symbol && s !== Symbol.prototype ? "symbol" : typeof s;
1897
+ }, r = typeof window < "u" && typeof window.document < "u", i = typeof process < "u" && process.versions != null && process.versions.node != null, t = (typeof self > "u" ? "undefined" : e(self)) === "object" && self.constructor && self.constructor.name === "DedicatedWorkerGlobalScope", a = typeof window < "u" && window.name === "nodejs" || typeof navigator < "u" && (navigator.userAgent.includes("Node.js") || navigator.userAgent.includes("jsdom")), n = typeof Deno < "u" && typeof Deno.core < "u";
1898
+ return ve.isBrowser = r, ve.isWebWorker = t, ve.isNode = i, ve.isJsDom = a, ve.isDeno = n, ve;
1899
1899
  }
1900
1900
  bt();
1901
1901
  const I = {}, Ge = {};
1902
1902
  I.loadExternalScript = function(e) {
1903
1903
  if (Ge[e])
1904
1904
  return Ge[e];
1905
- const r = Ge[e] = new Promise(a);
1906
- function a(t, n) {
1905
+ const r = Ge[e] = new Promise(i);
1906
+ function i(t, a) {
1907
1907
  if (!document)
1908
- return delete Ge[e], n("document is undefined");
1909
- var i = document.createElement("script");
1910
- i.type = "text/javascript", i.async = !0, i.onload = function() {
1908
+ return delete Ge[e], a("document is undefined");
1909
+ var n = document.createElement("script");
1910
+ n.type = "text/javascript", n.async = !0, n.onload = function() {
1911
1911
  return console.log("Loaded external script", e), t(e);
1912
- }, i.src = e, document.head.appendChild(i);
1912
+ }, n.src = e, document.head.appendChild(n);
1913
1913
  }
1914
1914
  return r;
1915
1915
  };
1916
1916
  const Vr = {};
1917
1917
  I.loadExternalStyle = function(e) {
1918
- const r = new Promise(a);
1919
- function a(t, n) {
1918
+ const r = new Promise(i);
1919
+ function i(t, a) {
1920
1920
  if (!document)
1921
- return n("document is undefined");
1921
+ return a("document is undefined");
1922
1922
  if (Vr[e])
1923
1923
  return t(e);
1924
1924
  Vr[e] = !0;
1925
- var i = document.createElement("link");
1926
- i.setAttribute("rel", "stylesheet"), i.setAttribute("type", "text/css"), i.setAttribute("href", e), i.onload = function() {
1925
+ var n = document.createElement("link");
1926
+ n.setAttribute("rel", "stylesheet"), n.setAttribute("type", "text/css"), n.setAttribute("href", e), n.onload = function() {
1927
1927
  return console.log("Loaded external stylesheet", e), t(e);
1928
- }, document.head.appendChild(i);
1928
+ }, document.head.appendChild(n);
1929
1929
  }
1930
1930
  return r;
1931
1931
  };
@@ -1939,8 +1939,8 @@ I.exists = function(e) {
1939
1939
  r = !0;
1940
1940
  break;
1941
1941
  default:
1942
- var a = String(e).toLowerCase();
1943
- switch (a) {
1942
+ var i = String(e).toLowerCase();
1943
+ switch (i) {
1944
1944
  case "":
1945
1945
  case "undefined":
1946
1946
  case "null":
@@ -1955,8 +1955,8 @@ I.parseDate = function(e) {
1955
1955
  if (e) {
1956
1956
  if (e instanceof Date)
1957
1957
  return e;
1958
- var r = new Date(e), a = r instanceof Date && !isNaN(r);
1959
- if (a)
1958
+ var r = new Date(e), i = r instanceof Date && !isNaN(r);
1959
+ if (i)
1960
1960
  return r;
1961
1961
  }
1962
1962
  };
@@ -1965,29 +1965,29 @@ I.parseURL = function(e) {
1965
1965
  return !1;
1966
1966
  if (e.startsWith("/") || e.startsWith("://") || e.startsWith("mailto:") || e.startsWith("tel:") || e.startsWith("sms:"))
1967
1967
  return e;
1968
- var a = I.parseEmail(e);
1969
- if (a && a === e)
1970
- return `mailto:${a}`;
1971
- const t = (m) => /^https?:\/\//i.test(m) ? m : `http://${m}`;
1968
+ var i = I.parseEmail(e);
1969
+ if (i && i === e)
1970
+ return `mailto:${i}`;
1971
+ const t = (p) => /^https?:\/\//i.test(p) ? p : `http://${p}`;
1972
1972
  e = t(e), e = e.replace(/\s/g, "");
1973
- var n = String(e).replace(/^https?:\/\//i, "").split(/[/?#]/)[0], i = n.lastIndexOf(":");
1974
- if (i !== -1) {
1975
- if (!/^\d+$/.test(n.slice(i + 1)))
1973
+ var a = String(e).replace(/^https?:\/\//i, "").split(/[/?#]/)[0], n = a.lastIndexOf(":");
1974
+ if (n !== -1) {
1975
+ if (!/^\d+$/.test(a.slice(n + 1)))
1976
1976
  return !1;
1977
- n = n.slice(0, i);
1977
+ a = a.slice(0, n);
1978
1978
  }
1979
- if (!n)
1979
+ if (!a)
1980
1980
  return !1;
1981
- var y = n.split("."), l = y.length === 4 && y.every(function(m) {
1982
- return /^\d{1,3}$/.test(m);
1981
+ var s = a.split("."), f = s.length === 4 && s.every(function(p) {
1982
+ return /^\d{1,3}$/.test(p);
1983
1983
  });
1984
- if (!l) {
1985
- if (y.length < 2)
1984
+ if (!f) {
1985
+ if (s.length < 2)
1986
1986
  return !1;
1987
- var p = y.every(function(m) {
1988
- return /^[a-z\d]([a-z\d-]*[a-z\d])?$/i.test(m);
1987
+ var c = s.every(function(p) {
1988
+ return /^[a-z\d]([a-z\d-]*[a-z\d])?$/i.test(p);
1989
1989
  });
1990
- if (!p || !/^[a-z]{2,}$/i.test(y[y.length - 1]))
1990
+ if (!c || !/^[a-z]{2,}$/i.test(s[s.length - 1]))
1991
1991
  return !1;
1992
1992
  }
1993
1993
  return t(e);
@@ -1996,37 +1996,37 @@ I.parseNumber = function(e, r) {
1996
1996
  if (!e || (e = Number(e), isNaN(e)))
1997
1997
  return 0;
1998
1998
  if (r) {
1999
- var a = e.toFixed(r);
2000
- e = I.parseNumber(a);
1999
+ var i = e.toFixed(r);
2000
+ e = I.parseNumber(i);
2001
2001
  }
2002
2002
  return e;
2003
2003
  };
2004
2004
  I.isValidEmailAddress = function(e) {
2005
2005
  var r = /^[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/;
2006
2006
  if (!e) return !1;
2007
- var a = e.split("@");
2008
- if (a.length !== 2) return !1;
2009
- var t = a[0], n = a[1];
2007
+ var i = e.split("@");
2008
+ if (i.length !== 2) return !1;
2009
+ var t = i[0], a = i[1];
2010
2010
  if (t.length > 64) return !1;
2011
- if (n.length > 255) return !1;
2012
- var i = n.split(".");
2013
- return !(i.some(function(y) {
2014
- return y.length > 63;
2011
+ if (a.length > 255) return !1;
2012
+ var n = a.split(".");
2013
+ return !(n.some(function(s) {
2014
+ return s.length > 63;
2015
2015
  }) || !r.test(e));
2016
2016
  };
2017
2017
  I.parseEmail = function(e) {
2018
2018
  if (!e)
2019
2019
  return !1;
2020
- var r = String(e).toLowerCase(), a = I.isValidEmailAddress(r);
2021
- return a ? r : !1;
2020
+ var r = String(e).toLowerCase(), i = I.isValidEmailAddress(r);
2021
+ return i ? r : !1;
2022
2022
  };
2023
2023
  I.parseInt = function(e) {
2024
2024
  return !e || (e = parseInt(e), isNaN(e)) ? 0 : e;
2025
2025
  };
2026
- I.cleanValue = function(e, r, a) {
2027
- a || (a = {});
2026
+ I.cleanValue = function(e, r, i) {
2027
+ i || (i = {});
2028
2028
  var t = I.exists(e);
2029
- if (a.strict && t && r != "boolean")
2029
+ if (i.strict && t && r != "boolean")
2030
2030
  return e;
2031
2031
  switch (r) {
2032
2032
  case "reference":
@@ -2040,24 +2040,24 @@ I.cleanValue = function(e, r, a) {
2040
2040
  case "email":
2041
2041
  return I.parseEmail(e);
2042
2042
  case "date":
2043
- var n = I.parseDate(e, a);
2044
- return n === void 0 ? void 0 : n;
2043
+ var a = I.parseDate(e, i);
2044
+ return a === void 0 ? void 0 : a;
2045
2045
  case "number":
2046
2046
  case "decimal":
2047
2047
  case "float":
2048
- var i = I.parseNumber(e);
2049
- return String(i) == String(Number(e)) ? i : void 0;
2048
+ var n = I.parseNumber(e);
2049
+ return String(n) == String(Number(e)) ? n : void 0;
2050
2050
  case "integer":
2051
- var i = I.parseInt(e);
2052
- return String(i) == String(parseInt(e)) ? i : void 0;
2051
+ var n = I.parseInt(e);
2052
+ return String(n) == String(parseInt(e)) ? n : void 0;
2053
2053
  case "group":
2054
2054
  return e;
2055
2055
  case "object":
2056
2056
  return typeof e == "object" && e !== null && !Array.isArray(e) ? e : void 0;
2057
2057
  case "string":
2058
2058
  if (I.exists(e)) {
2059
- var y = String(e);
2060
- return y == "[object Object]" ? void 0 : y;
2059
+ var s = String(e);
2060
+ return s == "[object Object]" ? void 0 : s;
2061
2061
  } else
2062
2062
  return;
2063
2063
  // if(!data) {
@@ -2075,57 +2075,57 @@ I.cleanValue = function(e, r, a) {
2075
2075
  return String(e);
2076
2076
  }
2077
2077
  };
2078
- I.isValidValue = function(e, r, a) {
2079
- var t = I.exists(e), n = typeof e == "number", i = !1;
2078
+ I.isValidValue = function(e, r, i) {
2079
+ var t = I.exists(e), a = typeof e == "number", n = !1;
2080
2080
  if (!t)
2081
2081
  return !1;
2082
2082
  switch (r) {
2083
2083
  case "url":
2084
- a ? i = e.startsWith("/") || e.startsWith("://") || e.startsWith("http://") || e.startsWith("https://") : i = String(e) === I.parseURL(e);
2084
+ i ? n = e.startsWith("/") || e.startsWith("://") || e.startsWith("http://") || e.startsWith("https://") : n = String(e) === I.parseURL(e);
2085
2085
  break;
2086
2086
  case "key":
2087
- i = String(e) === I.machineName(e);
2087
+ n = String(e) === I.machineName(e);
2088
2088
  break;
2089
2089
  case "date":
2090
- if (a && (typeof e != "object" || !(e instanceof Date)))
2090
+ if (i && (typeof e != "object" || !(e instanceof Date)))
2091
2091
  return !1;
2092
- var y = I.parseDate(e);
2093
- return y !== void 0;
2092
+ var s = I.parseDate(e);
2093
+ return s !== void 0;
2094
2094
  case "email":
2095
- a ? i = e === I.parseEmail(e) : i = String(e).toLowerCase() === I.parseEmail(e);
2095
+ i ? n = e === I.parseEmail(e) : n = String(e).toLowerCase() === I.parseEmail(e);
2096
2096
  break;
2097
2097
  case "number":
2098
2098
  case "decimal":
2099
2099
  case "float":
2100
- a ? i = n && Number(e) === I.parseNumber(e) : i = Number(e) === I.parseNumber(e);
2100
+ i ? n = a && Number(e) === I.parseNumber(e) : n = Number(e) === I.parseNumber(e);
2101
2101
  break;
2102
2102
  case "integer":
2103
- a ? i = n && Number(e) === I.parseInt(e) : i = Number(e) === I.parseInt(e);
2103
+ i ? n = a && Number(e) === I.parseInt(e) : n = Number(e) === I.parseInt(e);
2104
2104
  break;
2105
2105
  case "boolean":
2106
- var y = I.parseBoolean(e);
2107
- a ? (e === !0 || e === !1) && (i = e === y) : i = y === !0 || y === !1;
2106
+ var s = I.parseBoolean(e);
2107
+ i ? (e === !0 || e === !1) && (n = e === s) : n = s === !0 || s === !1;
2108
2108
  break;
2109
2109
  case "reference":
2110
- a ? i = String(e) === I.id(e) : i = !!I.id(e);
2110
+ i ? n = String(e) === I.id(e) : n = !!I.id(e);
2111
2111
  break;
2112
2112
  case "string":
2113
- var l = String(e);
2114
- if (a && typeof e != "string" || l == "[object Object]")
2113
+ var f = String(e);
2114
+ if (i && typeof e != "string" || f == "[object Object]")
2115
2115
  return !1;
2116
- i = !0;
2116
+ n = !0;
2117
2117
  break;
2118
2118
  // case 'group':
2119
2119
  // isValidEntry = _isObject(value);
2120
2120
  // break;
2121
2121
  case "object":
2122
- i = typeof e == "object" && e !== null && !Array.isArray(e);
2122
+ n = typeof e == "object" && e !== null && !Array.isArray(e);
2123
2123
  break;
2124
2124
  case "array":
2125
- i = Array.isArray(e);
2125
+ n = Array.isArray(e);
2126
2126
  break;
2127
2127
  }
2128
- return i;
2128
+ return n;
2129
2129
  };
2130
2130
  I.parseBoolean = function(e) {
2131
2131
  switch (String(e).toLowerCase()) {
@@ -2154,43 +2154,43 @@ I.clone = function(e) {
2154
2154
  return JSON.parse(JSON.stringify(e));
2155
2155
  };
2156
2156
  I.getAllFields = function(e) {
2157
- const r = e.definesType === "profile" || e.key === "profile", a = e.definesType === "submission";
2158
- var t = [...e.fields], n = e.definedFields || [];
2159
- if (n.length)
2160
- if (a) {
2161
- var i = {
2157
+ const r = e.definesType === "profile" || e.key === "profile", i = e.definesType === "submission";
2158
+ var t = [...e.fields], a = e.definedFields || [];
2159
+ if (a.length)
2160
+ if (i) {
2161
+ var n = {
2162
2162
  title: "Form Data",
2163
2163
  minimum: 1,
2164
2164
  maximum: 1,
2165
2165
  key: "formData",
2166
2166
  asObject: !0,
2167
2167
  type: "group",
2168
- fields: n
2168
+ fields: a
2169
2169
  };
2170
- t.push(i);
2171
- var y = {
2170
+ t.push(n);
2171
+ var s = {
2172
2172
  title: "Data",
2173
2173
  minimum: 1,
2174
2174
  maximum: 1,
2175
2175
  key: "data",
2176
2176
  asObject: !0,
2177
2177
  type: "group",
2178
- fields: n.map(function(m) {
2179
- return m.type === "reference" && (m = JSON.parse(JSON.stringify(m)), delete m.fields), m;
2178
+ fields: a.map(function(p) {
2179
+ return p.type === "reference" && (p = JSON.parse(JSON.stringify(p)), delete p.fields), p;
2180
2180
  })
2181
2181
  };
2182
- t.push(y);
2182
+ t.push(s);
2183
2183
  } else {
2184
- var y = {
2184
+ var s = {
2185
2185
  title: `${e.title}`,
2186
2186
  minimum: 1,
2187
2187
  maximum: 1,
2188
2188
  key: "data",
2189
2189
  asObject: !0,
2190
2190
  type: "group",
2191
- fields: n
2191
+ fields: a
2192
2192
  };
2193
- t.push(y);
2193
+ t.push(s);
2194
2194
  }
2195
2195
  r && (t.push({
2196
2196
  title: "Age",
@@ -2205,50 +2205,50 @@ I.getAllFields = function(e) {
2205
2205
  maximum: 1,
2206
2206
  type: "date"
2207
2207
  }));
2208
- var l = I.mapFields(t).filter(function(p) {
2209
- var m = p.type == "group" && p.asObject && p.minimum == 1 && p.maximum == 1;
2210
- return !m;
2211
- }).map(function(p) {
2212
- return p.title = p.filterTitle || p.titles.filter(Boolean).join(" › "), p;
2213
- }).sort(function(p, m) {
2214
- return p.title < m.title ? -1 : 1;
2208
+ var f = I.mapFields(t).filter(function(c) {
2209
+ var p = c.type == "group" && c.asObject && c.minimum == 1 && c.maximum == 1;
2210
+ return !p;
2211
+ }).map(function(c) {
2212
+ return c.title = c.filterTitle || c.titles.filter(Boolean).join(" › "), c;
2213
+ }).sort(function(c, p) {
2214
+ return c.title < p.title ? -1 : 1;
2215
2215
  });
2216
- return l;
2216
+ return f;
2217
2217
  };
2218
2218
  I.mapFields = function(e, r) {
2219
2219
  r || (r = {});
2220
- var a = [], t = [], n = [], i = 1, y = r.depth, l = r.arrayDelimeter || "[]";
2221
- e.forEach(p);
2222
- function p(m, w) {
2223
- var b = m.key, u = m.type == "group", o = m.minimum === m.maximum && m.minimum === 1, f = m.asObject, g = u && !f, c = r.original ? m : I.clone(m);
2224
- c.trail = t.slice(), c.trail.push(b), c.path = c.trail.join("."), c.titles = n.slice(), c.titles.push(m.filterTitle || m.title || ""), (!g || r.includeLayout) && a.push(c);
2225
- var A = y && i >= y;
2226
- if (m.fields && m.fields.length)
2227
- if (g)
2228
- m.fields.forEach(p);
2220
+ var i = [], t = [], a = [], n = 1, s = r.depth, f = r.arrayDelimeter || "[]";
2221
+ e.forEach(c);
2222
+ function c(p, w) {
2223
+ var A = p.key, u = p.type == "group", o = p.minimum === p.maximum && p.minimum === 1, m = p.asObject, h = u && !m, d = r.original ? p : I.clone(p);
2224
+ d.trail = t.slice(), d.trail.push(A), d.path = d.trail.join("."), d.titles = a.slice(), d.titles.push(p.filterTitle || p.title || ""), (!h || r.includeLayout) && i.push(d);
2225
+ var v = s && n >= s;
2226
+ if (p.fields && p.fields.length)
2227
+ if (h)
2228
+ p.fields.forEach(c);
2229
2229
  else {
2230
- if (A)
2230
+ if (v)
2231
2231
  return;
2232
- i++;
2233
- let S = b;
2234
- r.includeArrayDelimeter && (o || (S = `${b}${l}`)), t.push(S), n.push(m.filterTitle || m.title), m.fields.forEach(p), i--, t.pop(), n.pop();
2232
+ n++;
2233
+ let S = A;
2234
+ r.includeArrayDelimeter && (o || (S = `${A}${f}`)), t.push(S), a.push(p.filterTitle || p.title), p.fields.forEach(c), n--, t.pop(), a.pop();
2235
2235
  }
2236
2236
  }
2237
- return a;
2237
+ return i;
2238
2238
  };
2239
2239
  I.mapParameters = function(e) {
2240
2240
  e = e || {};
2241
2241
  var r = [];
2242
- return Object.entries(e).forEach(function([a, t]) {
2243
- t == null || t == !1 || (Array.isArray(t) ? t.forEach(function(n) {
2244
- r.push(`${a}=${encodeURIComponent(n)}`);
2245
- }) : r.push(encodeURIComponent(a) + "=" + encodeURIComponent(t)));
2242
+ return Object.entries(e).forEach(function([i, t]) {
2243
+ t == null || t == !1 || (Array.isArray(t) ? t.forEach(function(a) {
2244
+ r.push(`${i}=${encodeURIComponent(a)}`);
2245
+ }) : r.push(encodeURIComponent(i) + "=" + encodeURIComponent(t)));
2246
2246
  }), r.join("&");
2247
2247
  };
2248
- I.formatCurrency = function(e, r, a) {
2249
- (!e || isNaN(e)) && (e = 0), a = a || 2;
2248
+ I.formatCurrency = function(e, r, i) {
2249
+ (!e || isNaN(e)) && (e = 0), i = i || 2;
2250
2250
  var t = I.currencySymbol(r);
2251
- return `${t}${parseFloat(Number(e) / 100).toFixed(a)}`;
2251
+ return `${t}${parseFloat(Number(e) / 100).toFixed(i)}`;
2252
2252
  };
2253
2253
  I.getTypeFromID = function(e) {
2254
2254
  if (e = I.id(e), !e)
@@ -2310,8 +2310,8 @@ I.getTypeFromID = function(e) {
2310
2310
  "4d": "paymentmethod",
2311
2311
  "6c": "sslcertificate"
2312
2312
  };
2313
- var a = e.slice(8, 10);
2314
- return r[a];
2313
+ var i = e.slice(8, 10);
2314
+ return r[i];
2315
2315
  };
2316
2316
  const St = { gbp: "£", eur: "€" };
2317
2317
  I.currencySymbol = function(e) {
@@ -2326,66 +2326,66 @@ const wt = [
2326
2326
  { code: "sgd", countries: ["SG"] }
2327
2327
  ];
2328
2328
  I.getAvailableCurrencies = function(e) {
2329
- let r = wt.map(({ code: a, countries: t }) => ({
2330
- name: `${a.toUpperCase()} (${I.currencySymbol(a)})`,
2331
- value: a,
2332
- countryCode: Object.fromEntries(t.map((n) => [n, !0]))
2329
+ let r = wt.map(({ code: i, countries: t }) => ({
2330
+ name: `${i.toUpperCase()} (${I.currencySymbol(i)})`,
2331
+ value: i,
2332
+ countryCode: Object.fromEntries(t.map((a) => [a, !0]))
2333
2333
  }));
2334
2334
  if (e) {
2335
- const a = r.findIndex((t) => t.countryCode[e]);
2336
- if (a > 0) {
2337
- const [t] = r.splice(a, 1);
2335
+ const i = r.findIndex((t) => t.countryCode[e]);
2336
+ if (i > 0) {
2337
+ const [t] = r.splice(i, 1);
2338
2338
  r.unshift(t);
2339
2339
  }
2340
2340
  }
2341
2341
  return r;
2342
2342
  };
2343
2343
  I.hash = function(e, r) {
2344
- return e = Array.isArray(e) ? e : [], e.reduce(function(a, t) {
2345
- const n = r ? je(t, r) : t;
2346
- return a[n] = t, a;
2344
+ return e = Array.isArray(e) ? e : [], e.reduce(function(i, t) {
2345
+ const a = r ? je(t, r) : t;
2346
+ return i[a] = t, i;
2347
2347
  }, {});
2348
2348
  };
2349
- I.extractFromArray = function(e, r, a, t, n, i, y) {
2350
- y = y || {}, a && (y.sum = a), t && (y.flatten = !0), n && (y.unique = !0), i && (y.excludeNull = !0);
2351
- var l = e.reduce(function(p, m) {
2352
- var w = je(m, r), b = !w && w !== !1 && w !== 0;
2353
- return y.excludeNull && b || p.push(w), p;
2349
+ I.extractFromArray = function(e, r, i, t, a, n, s) {
2350
+ s = s || {}, i && (s.sum = i), t && (s.flatten = !0), a && (s.unique = !0), n && (s.excludeNull = !0);
2351
+ var f = e.reduce(function(c, p) {
2352
+ var w = je(p, r), A = !w && w !== !1 && w !== 0;
2353
+ return s.excludeNull && A || c.push(w), c;
2354
2354
  }, []);
2355
- return y.flatten && (l = l.flat()), y.unique && (l = [...new Set(l)]), y.sum && (l = l.reduce(function(p, m) {
2356
- return p + m;
2357
- }, 0)), l;
2355
+ return s.flatten && (f = f.flat()), s.unique && (f = [...new Set(f)]), s.sum && (f = f.reduce(function(c, p) {
2356
+ return c + p;
2357
+ }, 0)), f;
2358
2358
  };
2359
- I.matchInArray = function(e, r, a, t) {
2360
- var n = e.filter(function(i) {
2361
- var y = je(i, r), l;
2359
+ I.matchInArray = function(e, r, i, t) {
2360
+ var a = e.filter(function(n) {
2361
+ var s = je(n, r), f;
2362
2362
  switch (t) {
2363
2363
  case "in":
2364
- l = y.includes(a);
2364
+ f = s.includes(i);
2365
2365
  break;
2366
2366
  case ">=":
2367
- l = y >= a;
2367
+ f = s >= i;
2368
2368
  break;
2369
2369
  case "<=":
2370
- l = y <= a;
2370
+ f = s <= i;
2371
2371
  break;
2372
2372
  case "<":
2373
- l = y < a;
2373
+ f = s < i;
2374
2374
  break;
2375
2375
  case ">":
2376
- l = y > a;
2376
+ f = s > i;
2377
2377
  break;
2378
2378
  case "==":
2379
2379
  default:
2380
- a === void 0 ? l = y : l = y == a;
2380
+ i === void 0 ? f = s : f = s == i;
2381
2381
  break;
2382
2382
  }
2383
- return l;
2383
+ return f;
2384
2384
  });
2385
- return n;
2385
+ return a;
2386
2386
  };
2387
- I.comma = function(e, r, a) {
2388
- return a && (e = e.slice(0, a)), e.filter(function(t) {
2387
+ I.comma = function(e, r, i) {
2388
+ return i && (e = e.slice(0, i)), e.filter(function(t) {
2389
2389
  return t != null && t !== void 0 && t !== "";
2390
2390
  }).map(function(t) {
2391
2391
  return r && r.length ? je(t, r) : t;
@@ -2395,8 +2395,8 @@ I.id = function(e) {
2395
2395
  if (e) {
2396
2396
  var r;
2397
2397
  e._id ? r = String(e._id) : r = String(e);
2398
- var a = I.isValidID(r);
2399
- if (a)
2398
+ var i = I.isValidID(r);
2399
+ if (i)
2400
2400
  return r;
2401
2401
  }
2402
2402
  };
@@ -2404,11 +2404,11 @@ I.ids = function(e) {
2404
2404
  if (!e)
2405
2405
  return [];
2406
2406
  var r = Object.keys(
2407
- e.reduce(function(a, t) {
2407
+ e.reduce(function(i, t) {
2408
2408
  if (!t)
2409
- return a;
2410
- var n = I.id(t);
2411
- return n && (a[n] = 1), a;
2409
+ return i;
2410
+ var a = I.id(t);
2411
+ return a && (i[a] = 1), i;
2412
2412
  }, {})
2413
2413
  );
2414
2414
  return r;
@@ -2433,33 +2433,33 @@ I.guid = function() {
2433
2433
  I.machineName = function(e) {
2434
2434
  if (!(!e || !e.length)) {
2435
2435
  var r = /[^a-zA-Z0-9-_]+/g;
2436
- return String(e).replace(r, " ").split("_").map((a) => At(a)).join("_");
2436
+ return String(e).replace(r, " ").split("_").map((i) => At(i)).join("_");
2437
2437
  }
2438
2438
  };
2439
2439
  function De() {
2440
2440
  const e = /* @__PURE__ */ new Map(), r = {
2441
- dispatch(a, t) {
2442
- const n = e.get(a);
2443
- if (n)
2444
- for (const i of n)
2445
- i(t);
2441
+ dispatch(i, t) {
2442
+ const a = e.get(i);
2443
+ if (a)
2444
+ for (const n of a)
2445
+ n(t);
2446
2446
  },
2447
- addEventListener(a, t) {
2447
+ addEventListener(i, t) {
2448
2448
  if (typeof t != "function")
2449
2449
  throw new TypeError(
2450
2450
  `Expected a function for addEventListener, received ${typeof t}`
2451
2451
  );
2452
- e.has(a) || e.set(a, /* @__PURE__ */ new Set()), e.get(a).add(t);
2452
+ e.has(i) || e.set(i, /* @__PURE__ */ new Set()), e.get(i).add(t);
2453
2453
  },
2454
- removeEventListener(a, t) {
2455
- const n = e.get(a);
2456
- n && (n.delete(t), n.size === 0 && e.delete(a));
2454
+ removeEventListener(i, t) {
2455
+ const a = e.get(i);
2456
+ a && (a.delete(t), a.size === 0 && e.delete(i));
2457
2457
  },
2458
2458
  removeAllListeners() {
2459
2459
  e.clear();
2460
2460
  },
2461
- bootstrap(a) {
2462
- a && (a.dispatch = r.dispatch, a.addEventListener = r.addEventListener, a.removeEventListener = r.removeEventListener, a.removeAllListeners = r.removeAllListeners);
2461
+ bootstrap(i) {
2462
+ i && (i.dispatch = r.dispatch, i.addEventListener = r.addEventListener, i.removeEventListener = r.removeEventListener, i.removeAllListeners = r.removeAllListeners);
2463
2463
  }
2464
2464
  };
2465
2465
  return r;
@@ -2563,8 +2563,8 @@ class Et extends Ve {
2563
2563
  const r = window.location.hostname;
2564
2564
  if (r === "localhost" || r === "127.0.0.1" || /^\d+\.\d+\.\d+\.\d+$/.test(r))
2565
2565
  return null;
2566
- const a = r.split(".");
2567
- return a.length > 2 ? "." + a.slice(-2).join(".") : null;
2566
+ const i = r.split(".");
2567
+ return i.length > 2 ? "." + i.slice(-2).join(".") : null;
2568
2568
  }
2569
2569
  /**
2570
2570
  * Read a cookie value
@@ -2579,11 +2579,11 @@ class Et extends Ve {
2579
2579
  * Set a cookie value (for non-httpOnly cookies only)
2580
2580
  * @private
2581
2581
  */
2582
- _setCookie(r, a, t = {}) {
2582
+ _setCookie(r, i, t = {}) {
2583
2583
  if (typeof document > "u") return;
2584
- const n = { ...this.options, ...t };
2585
- let i = `${r}=${a}`;
2586
- n.domain && (i += `; Domain=${n.domain}`), n.secure && (i += "; Secure"), n.sameSite && (i += `; SameSite=${n.sameSite}`), n.maxAge && (i += `; Max-Age=${n.maxAge}`), document.cookie = i;
2584
+ const a = { ...this.options, ...t };
2585
+ let n = `${r}=${i}`;
2586
+ a.domain && (n += `; Domain=${a.domain}`), a.secure && (n += "; Secure"), a.sameSite && (n += `; SameSite=${a.sameSite}`), a.maxAge && (n += `; Max-Age=${a.maxAge}`), document.cookie = n;
2587
2587
  }
2588
2588
  /**
2589
2589
  * Delete a cookie
@@ -2597,7 +2597,7 @@ class Et extends Ve {
2597
2597
  }
2598
2598
  setUser(r) {
2599
2599
  if (r) {
2600
- const { token: a, ...t } = r;
2600
+ const { token: i, ...t } = r;
2601
2601
  this.sessionStorage.user = t;
2602
2602
  } else
2603
2603
  this.sessionStorage.user = null;
@@ -2619,8 +2619,8 @@ class Et extends Ve {
2619
2619
  try {
2620
2620
  const r = "qik_test_cookie";
2621
2621
  this._setCookie(r, "test");
2622
- const a = this._getCookie(r) === "test";
2623
- return this._deleteCookie(r), a;
2622
+ const i = this._getCookie(r) === "test";
2623
+ return this._deleteCookie(r), i;
2624
2624
  } catch {
2625
2625
  return !1;
2626
2626
  }
@@ -2653,7 +2653,7 @@ var Pt = function(e) {
2653
2653
  const r = xt({
2654
2654
  useHttpOnlyCookies: e.useHttpOnlyCookies,
2655
2655
  cookieConfig: e.cookieConfig
2656
- }), a = 10, t = {
2656
+ }), i = 10, t = {
2657
2657
  debug: !1,
2658
2658
  storageAdapter: r
2659
2659
  };
@@ -2663,257 +2663,257 @@ var Pt = function(e) {
2663
2663
  },
2664
2664
  enumerable: !0
2665
2665
  });
2666
- const n = new De();
2667
- n.bootstrap(t);
2668
- function i(l) {
2669
- var p = r.getUser();
2670
- t.onChange && t.onChange(p), n.dispatch("change", p, l);
2666
+ const a = new De();
2667
+ a.bootstrap(t);
2668
+ function n(f) {
2669
+ var c = r.getUser();
2670
+ t.onChange && t.onChange(c), a.dispatch("change", c, f);
2671
2671
  }
2672
- t.set = function(l, p, m) {
2672
+ t.set = function(f, c, p) {
2673
2673
  const w = r.getUser();
2674
- if (JSON.stringify(w) != JSON.stringify(l) && (r.setUser(l), !m))
2675
- return i(p);
2674
+ if (JSON.stringify(w) != JSON.stringify(f) && (r.setUser(f), !p))
2675
+ return n(c);
2676
2676
  }, t.logout = function() {
2677
- return r.clearUser(), e.cache.reset(), i();
2678
- }, t.changeOrganisation = function(l, p) {
2679
- l = e.utils.id(l), p || (p = {});
2680
- var m = !0;
2681
- return p.disableAutoAuthentication && (m = !1), new Promise(function(w, b) {
2682
- e.api.post(`/user/switch/${l}`).then(function(u) {
2683
- m && (e.cache.reset(), t.set(u.data)), w(u.data);
2684
- }).catch(b);
2677
+ return r.clearUser(), e.cache.reset(), n();
2678
+ }, t.changeOrganisation = function(f, c) {
2679
+ f = e.utils.id(f), c || (c = {});
2680
+ var p = !0;
2681
+ return c.disableAutoAuthentication && (p = !1), new Promise(function(w, A) {
2682
+ e.api.post(`/user/switch/${f}`).then(function(u) {
2683
+ p && (e.cache.reset(), t.set(u.data)), w(u.data);
2684
+ }).catch(A);
2685
2685
  });
2686
- }, t.impersonate = function(l, p) {
2687
- l = e.utils.id(l), p || (p = {});
2688
- var m = !0;
2689
- p.disableAutoAuthentication && (m = !1);
2690
- var w = e.api.post(`/user/impersonate/${l}`);
2691
- return w.then(function(b) {
2692
- m && (e.cache.reset(), t.set(b.data));
2693
- }, function(b) {
2686
+ }, t.impersonate = function(f, c) {
2687
+ f = e.utils.id(f), c || (c = {});
2688
+ var p = !0;
2689
+ c.disableAutoAuthentication && (p = !1);
2690
+ var w = e.api.post(`/user/impersonate/${f}`);
2691
+ return w.then(function(A) {
2692
+ p && (e.cache.reset(), t.set(A.data));
2693
+ }, function(A) {
2694
2694
  }), w;
2695
- }, t.login = async function(l, p) {
2696
- p || (p = {});
2697
- var m = !0;
2698
- p.disableAutoAuthentication && (m = !1);
2699
- var w = new Promise(b);
2700
- function b(u, o) {
2701
- if (!l)
2695
+ }, t.login = async function(f, c) {
2696
+ c || (c = {});
2697
+ var p = !0;
2698
+ c.disableAutoAuthentication && (p = !1);
2699
+ var w = new Promise(A);
2700
+ function A(u, o) {
2701
+ if (!f)
2702
2702
  return o({
2703
2703
  message: "Login requires an email and password"
2704
2704
  });
2705
- if (!l.email || !l.email.length)
2705
+ if (!f.email || !f.email.length)
2706
2706
  return o({
2707
2707
  message: "An email address is required to log in"
2708
2708
  });
2709
- if (!l.password || !l.password.length)
2709
+ if (!f.password || !f.password.length)
2710
2710
  return o({
2711
2711
  message: "A password is required to log in"
2712
2712
  });
2713
- var f = {
2713
+ var m = {
2714
2714
  bypassInterceptor: !0
2715
2715
  };
2716
- r.isCookieMode && r.isCookieMode() && (l.useCookies = !0, f.withCredentials = !0);
2717
- var c = `${e.apiURL}/user/login`;
2718
- p.url && (c = p.url), e.api.post(c, l, f).then(function(s) {
2719
- m && t.set(s.data), u(s);
2716
+ r.isCookieMode && r.isCookieMode() && (f.useCookies = !0, m.withCredentials = !0);
2717
+ var d = `${e.apiURL}/user/login`;
2718
+ c.url && (d = c.url), e.api.post(d, f, m).then(function(l) {
2719
+ p && t.set(l.data), u(l);
2720
2720
  }, o);
2721
2721
  }
2722
2722
  return w;
2723
- }, t.signup = async function(l, p) {
2724
- p || (p = {});
2725
- var m = !0;
2726
- p.disableAutoAuthentication && (m = !1);
2727
- var w = new Promise(b);
2728
- function b(u, o) {
2729
- if (!l)
2723
+ }, t.signup = async function(f, c) {
2724
+ c || (c = {});
2725
+ var p = !0;
2726
+ c.disableAutoAuthentication && (p = !1);
2727
+ var w = new Promise(A);
2728
+ function A(u, o) {
2729
+ if (!f)
2730
2730
  return o({
2731
2731
  message: "Signup details are required"
2732
2732
  });
2733
- if (!l.firstName || !l.firstName.length)
2733
+ if (!f.firstName || !f.firstName.length)
2734
2734
  return o({
2735
2735
  message: "Please provide a first name"
2736
2736
  });
2737
- if (!l.lastName || !l.lastName.length)
2737
+ if (!f.lastName || !f.lastName.length)
2738
2738
  return o({
2739
2739
  message: "Please provide a last name"
2740
2740
  });
2741
- if (!l.email || !l.email.length)
2741
+ if (!f.email || !f.email.length)
2742
2742
  return o({
2743
2743
  message: "An email address is required to sign up"
2744
2744
  });
2745
- if (!l.password || !l.password.length)
2745
+ if (!f.password || !f.password.length)
2746
2746
  return o({
2747
2747
  message: "A password is required to sign up"
2748
2748
  });
2749
- if (!l.confirmPassword || !l.confirmPassword.length)
2749
+ if (!f.confirmPassword || !f.confirmPassword.length)
2750
2750
  return o({
2751
2751
  message: "Please confirm your password"
2752
2752
  });
2753
- if (l.confirmPassword != l.password)
2753
+ if (f.confirmPassword != f.password)
2754
2754
  return o({
2755
2755
  message: "Password and confirmation do not match"
2756
2756
  });
2757
- var f = {
2757
+ var m = {
2758
2758
  bypassInterceptor: !0
2759
2759
  };
2760
- r.isCookieMode && r.isCookieMode() && (l.useCookies = !0, f.withCredentials = !0);
2761
- var c = `${e.apiURL}/user/signup`;
2762
- p.application && (c = `${e.domain || ""}/qik/application/signup`), p.url && (c = p.url), e.api.post(c, l, f).then(function(s) {
2763
- m && t.set(s.data), u(s);
2760
+ r.isCookieMode && r.isCookieMode() && (f.useCookies = !0, m.withCredentials = !0);
2761
+ var d = `${e.apiURL}/user/signup`;
2762
+ c.application && (d = `${e.domain || ""}/qik/application/signup`), c.url && (d = c.url), e.api.post(d, f, m).then(function(l) {
2763
+ p && t.set(l.data), u(l);
2764
2764
  }, o);
2765
2765
  }
2766
2766
  return w;
2767
- }, t.retrieveUserFromResetToken = async function(l, p) {
2768
- p || (p = {});
2769
- var m = {
2767
+ }, t.retrieveUserFromResetToken = async function(f, c) {
2768
+ c || (c = {});
2769
+ var p = {
2770
2770
  bypassInterceptor: !0
2771
2771
  };
2772
- return new Promise(function(w, b) {
2773
- e.api.get(p.url || `${e.apiURL}/user/reset/${l}`, m).then(function(u) {
2772
+ return new Promise(function(w, A) {
2773
+ e.api.get(c.url || `${e.apiURL}/user/reset/${f}`, p).then(function(u) {
2774
2774
  return w(u.data);
2775
- }, b);
2775
+ }, A);
2776
2776
  });
2777
- }, t.updateUserWithToken = async function(l, p, m) {
2778
- m || (m = {});
2777
+ }, t.updateUserWithToken = async function(f, c, p) {
2778
+ p || (p = {});
2779
2779
  var w = !0;
2780
- return m.disableAutoAuthentication && (w = !1), new Promise(function(b, u) {
2780
+ return p.disableAutoAuthentication && (w = !1), new Promise(function(A, u) {
2781
2781
  var o = {
2782
2782
  bypassInterceptor: !0
2783
2783
  };
2784
- e.api.post(m.url || `${e.apiURL}/user/reset/${l}`, p, o).then(function(f) {
2785
- return w && (e.cache.reset(), t.set(f.data)), b(f.data);
2784
+ e.api.post(p.url || `${e.apiURL}/user/reset/${f}`, c, o).then(function(m) {
2785
+ return w && (e.cache.reset(), t.set(m.data)), A(m.data);
2786
2786
  }, u);
2787
2787
  });
2788
- }, t.sendResetPasswordRequest = function(l, p) {
2789
- return p || (p = {}), l ? !l.email || !l.email.length ? Promise.reject({
2788
+ }, t.sendResetPasswordRequest = function(f, c) {
2789
+ return c || (c = {}), f ? !f.email || !f.email.length ? Promise.reject({
2790
2790
  message: "An email address is required for password reset"
2791
- }) : new Promise(function(m, w) {
2792
- var b = {
2791
+ }) : new Promise(function(p, w) {
2792
+ var A = {
2793
2793
  bypassInterceptor: !0
2794
2794
  };
2795
- e.api.post(p.url || `${e.apiURL}/user/forgot`, l, b).then(m, w);
2795
+ e.api.post(c.url || `${e.apiURL}/user/forgot`, f, A).then(p, w);
2796
2796
  }) : Promise.reject({
2797
2797
  message: "Please provide your account details to reset your password"
2798
2798
  });
2799
- }, t.ensureValidToken = async function(l) {
2800
- var p = t.getCurrentUser();
2801
- if (!p)
2799
+ }, t.ensureValidToken = async function(f) {
2800
+ var c = t.getCurrentUser();
2801
+ if (!c)
2802
2802
  return Promise.reject(new Error("No user"));
2803
2803
  if (r.isCookieMode && r.isCookieMode())
2804
- return l ? await t.refreshAccessToken() : "cookie_mode_token";
2805
- var { token: w } = p;
2804
+ return f ? await t.refreshAccessToken() : "cookie_mode_token";
2805
+ var { token: w } = c;
2806
2806
  if (!w)
2807
2807
  return Promise.reject("No token");
2808
- var b = /* @__PURE__ */ new Date();
2809
- b.setSeconds(b.getSeconds() + a);
2808
+ var A = /* @__PURE__ */ new Date();
2809
+ A.setSeconds(A.getSeconds() + i);
2810
2810
  var u = new Date(w.expires);
2811
- return l ? await t.refreshAccessToken(w.refreshToken) : b < u ? w : await t.refreshAccessToken(w.refreshToken);
2811
+ return f ? await t.refreshAccessToken(w.refreshToken) : A < u ? w : await t.refreshAccessToken(w.refreshToken);
2812
2812
  };
2813
- const y = {};
2814
- return t.refreshAccessToken = async function(l) {
2815
- if (y.inflightRefreshRequest)
2816
- return y.inflightRefreshRequest;
2817
- const p = r.isCookieMode && r.isCookieMode();
2818
- return y.inflightRefreshRequest = new Promise(function(m, w) {
2819
- let b = {}, u = {
2813
+ const s = {};
2814
+ return t.refreshAccessToken = async function(f) {
2815
+ if (s.inflightRefreshRequest)
2816
+ return s.inflightRefreshRequest;
2817
+ const c = r.isCookieMode && r.isCookieMode();
2818
+ return s.inflightRefreshRequest = new Promise(function(p, w) {
2819
+ let A = {}, u = {
2820
2820
  bypassInterceptor: !0,
2821
2821
  withoutToken: !0
2822
2822
  };
2823
- if (p)
2823
+ if (c)
2824
2824
  u.withCredentials = !0;
2825
2825
  else {
2826
- if (!l)
2827
- return y.inflightRefreshRequest = null, w(new Error("No refresh token provided for localStorage mode"));
2828
- b.refreshToken = l;
2826
+ if (!f)
2827
+ return s.inflightRefreshRequest = null, w(new Error("No refresh token provided for localStorage mode"));
2828
+ A.refreshToken = f;
2829
2829
  }
2830
- e.api.post("/user/refresh", b, u).then(function(f) {
2831
- if (!f || !f.data)
2832
- return y.inflightRefreshRequest = null, w(new Error("Invalid refresh response"));
2833
- if (t.set(f.data), i(), p)
2834
- m("cookie_token_refreshed");
2830
+ e.api.post("/user/refresh", A, u).then(function(m) {
2831
+ if (!m || !m.data)
2832
+ return s.inflightRefreshRequest = null, w(new Error("Invalid refresh response"));
2833
+ if (t.set(m.data), n(), c)
2834
+ p("cookie_token_refreshed");
2835
2835
  else {
2836
- const g = f.data.token?.accessToken;
2837
- g ? m(g) : w(new Error("No access token in refresh response"));
2836
+ const h = m.data.token?.accessToken;
2837
+ h ? p(h) : w(new Error("No access token in refresh response"));
2838
2838
  }
2839
2839
  setTimeout(function() {
2840
- y.inflightRefreshRequest = null;
2840
+ s.inflightRefreshRequest = null;
2841
2841
  });
2842
2842
  }).catch(function(o) {
2843
2843
  setTimeout(function() {
2844
- y.inflightRefreshRequest = null;
2844
+ s.inflightRefreshRequest = null;
2845
2845
  }), w(o);
2846
2846
  });
2847
- }), y.inflightRefreshRequest;
2847
+ }), s.inflightRefreshRequest;
2848
2848
  }, t.sync = function() {
2849
- return e.api.get("/user").then(function(l) {
2850
- if (l.data) {
2851
- const p = r.getUser();
2852
- if (p) {
2853
- const m = { ...p };
2854
- m.session ? Object.assign(m.session, l.data) : m.session = l.data, t.set(m);
2849
+ return e.api.get("/user").then(function(f) {
2850
+ if (f.data) {
2851
+ const c = r.getUser();
2852
+ if (c) {
2853
+ const p = { ...c };
2854
+ p.session ? Object.assign(p.session, f.data) : p.session = f.data, t.set(p);
2855
2855
  } else
2856
- t.set(l.data);
2856
+ t.set(f.data);
2857
2857
  } else
2858
2858
  t.set(null);
2859
- i();
2860
- }).catch(function(l) {
2861
- t.set(null), i();
2859
+ n();
2860
+ }).catch(function(f) {
2861
+ t.set(null), n();
2862
2862
  });
2863
2863
  }, t.getCurrentUser = function() {
2864
2864
  return r.getUser();
2865
2865
  }, t.getCurrentToken = function() {
2866
- var l = r.getAccessToken();
2867
- if (l)
2868
- return l;
2869
- var p = t.getCurrentUser();
2870
- if (!p)
2866
+ var f = r.getAccessToken();
2867
+ if (f)
2868
+ return f;
2869
+ var c = t.getCurrentUser();
2870
+ if (!c)
2871
2871
  return e.applicationToken ? e.applicationToken : void 0;
2872
- var { token: m } = p;
2873
- if (m)
2874
- return m.accessToken;
2872
+ var { token: p } = c;
2873
+ if (p)
2874
+ return p.accessToken;
2875
2875
  }, e.api.interceptors.request.use(
2876
- async function(l) {
2877
- if (l.bypassInterceptor)
2878
- return l;
2879
- var p = l;
2876
+ async function(f) {
2877
+ if (f.bypassInterceptor)
2878
+ return f;
2879
+ var c = f;
2880
2880
  if (r.isCookieMode && r.isCookieMode())
2881
- return p.withCredentials || (p.withCredentials = !0), p;
2882
- var w = t.getCurrentUser(), b, u, o;
2881
+ return c.withCredentials || (c.withCredentials = !0), c;
2882
+ var w = t.getCurrentUser(), A, u, o;
2883
2883
  if (w) {
2884
- var { token: f } = w;
2885
- f && (b = f.accessToken, u = f.refreshToken, o = f.expires);
2884
+ var { token: m } = w;
2885
+ m && (A = m.accessToken, u = m.refreshToken, o = m.expires);
2886
2886
  }
2887
- if (b)
2888
- p.headers.Authorization = `Bearer ${b}`;
2887
+ if (A)
2888
+ c.headers.Authorization = `Bearer ${A}`;
2889
2889
  else
2890
- return p;
2890
+ return c;
2891
2891
  if (!u)
2892
- return p;
2893
- var g = /* @__PURE__ */ new Date();
2894
- g.setSeconds(g.getSeconds() + a);
2895
- var c = new Date(o);
2896
- return g < c ? p : new Promise(async function(s, A) {
2892
+ return c;
2893
+ var h = /* @__PURE__ */ new Date();
2894
+ h.setSeconds(h.getSeconds() + i);
2895
+ var d = new Date(o);
2896
+ return h < d ? c : new Promise(async function(l, v) {
2897
2897
  await t.refreshAccessToken(u).then(function(S) {
2898
- return p.headers.Authorization = `Bearer ${S}`, s(p);
2898
+ return c.headers.Authorization = `Bearer ${S}`, l(c);
2899
2899
  }).catch(function(S) {
2900
- return A(S);
2900
+ return v(S);
2901
2901
  });
2902
2902
  });
2903
2903
  },
2904
- function(l) {
2905
- return Promise.reject(l);
2904
+ function(f) {
2905
+ return Promise.reject(f);
2906
2906
  }
2907
- ), e.api.interceptors.response.use(function(l) {
2908
- return l;
2909
- }, function(l) {
2910
- var p = l && l.response && l.response.status || l.status;
2911
- switch (p) {
2907
+ ), e.api.interceptors.response.use(function(f) {
2908
+ return f;
2909
+ }, function(f) {
2910
+ var c = f && f.response && f.response.status || f.status;
2911
+ switch (c) {
2912
2912
  case 401:
2913
2913
  t.logout();
2914
2914
  break;
2915
2915
  }
2916
- return Promise.reject(l);
2916
+ return Promise.reject(f);
2917
2917
  }), t;
2918
2918
  }, q = {};
2919
2919
  function pr(e) {
@@ -2922,7 +2922,7 @@ function pr(e) {
2922
2922
  var r = typeof e > "u" || e === null || String(e).trim() === "";
2923
2923
  return !!(r || e === "undefined" || e === "null");
2924
2924
  }
2925
- function Kr(e) {
2925
+ function Wr(e) {
2926
2926
  return !pr(e);
2927
2927
  }
2928
2928
  q.cleanKey = function(e) {
@@ -2951,59 +2951,59 @@ q.isValidFilter = function(e) {
2951
2951
  case "datethismonth":
2952
2952
  return !0;
2953
2953
  }
2954
- var a = (e.values || []).filter(Kr);
2955
- return !pr(e.value) || !pr(e.value2) || a.length;
2954
+ var i = (e.values || []).filter(Wr);
2955
+ return !pr(e.value) || !pr(e.value2) || i.length;
2956
2956
  };
2957
2957
  q.activeFilters = function(e) {
2958
2958
  var r = [];
2959
- return a(e, r), r;
2960
- function a(t, n) {
2959
+ return i(e, r), r;
2960
+ function i(t, a) {
2961
2961
  if (t) {
2962
- var i = q.isValidFilter(t);
2963
- i && n.push(t), t.filters && t.filters.length && t.filters.forEach(function(y) {
2964
- a(y, n);
2962
+ var n = q.isValidFilter(t);
2963
+ n && a.push(t), t.filters && t.filters.length && t.filters.forEach(function(s) {
2964
+ i(s, a);
2965
2965
  });
2966
2966
  }
2967
2967
  }
2968
2968
  };
2969
2969
  q.activeFilterKeys = function(e, r) {
2970
2970
  r = r || {};
2971
- var a = q.activeFilters(e), t = a.filter(function(i) {
2972
- return !i.operator;
2973
- }).reduce(function(i, y) {
2974
- var l = q.cleanKey(y.key);
2975
- return r.trimArrayDelimeters !== !1 && (l = l.split("[]").join("")), i[l] = !0, i;
2976
- }, {}), n = Object.keys(t);
2977
- return n;
2971
+ var i = q.activeFilters(e), t = i.filter(function(n) {
2972
+ return !n.operator;
2973
+ }).reduce(function(n, s) {
2974
+ var f = q.cleanKey(s.key);
2975
+ return r.trimArrayDelimeters !== !1 && (f = f.split("[]").join("")), n[f] = !0, n;
2976
+ }, {}), a = Object.keys(t);
2977
+ return a;
2978
2978
  };
2979
2979
  q.activeFilterComparators = function(e) {
2980
- var r = q.activeFilters(e).filter(function(a) {
2981
- return !a.operator;
2982
- }).reduce(function(a, t) {
2983
- return a[t.comparator] = !0, a;
2980
+ var r = q.activeFilters(e).filter(function(i) {
2981
+ return !i.operator;
2982
+ }).reduce(function(i, t) {
2983
+ return i[t.comparator] = !0, i;
2984
2984
  }, {});
2985
2985
  return Object.keys(r);
2986
2986
  };
2987
2987
  q.activeFilterOperators = function(e) {
2988
- var r = q.activeFilters(e).filter(function(a) {
2989
- return a.operator;
2990
- }).reduce(function(a, t) {
2991
- return a[t.operator] = !0, a;
2988
+ var r = q.activeFilters(e).filter(function(i) {
2989
+ return i.operator;
2990
+ }).reduce(function(i, t) {
2991
+ return i[t.operator] = !0, i;
2992
2992
  }, {});
2993
2993
  return Object.keys(r);
2994
2994
  };
2995
2995
  q.activeFilterValues = function(e, r) {
2996
- var a = q.activeFilters(e);
2997
- function t(i) {
2998
- if (i)
2999
- return i._id || i.id || i.title || i.name || i;
2996
+ var i = q.activeFilters(e);
2997
+ function t(n) {
2998
+ if (n)
2999
+ return n._id || n.id || n.title || n.name || n;
3000
3000
  }
3001
- var n = a.filter(function(i) {
3002
- return !i.operator;
3003
- }).reduce(function(i, y) {
3004
- return i = [...i, ...(y.values || []).map(t), t(y.value), t(y.value2)], i;
3005
- }, []).filter(Kr);
3006
- return n;
3001
+ var a = i.filter(function(n) {
3002
+ return !n.operator;
3003
+ }).reduce(function(n, s) {
3004
+ return n = [...n, ...(s.values || []).map(t), t(s.value), t(s.value2)], n;
3005
+ }, []).filter(Wr);
3006
+ return a;
3007
3007
  };
3008
3008
  q.filterChangeString = function(e) {
3009
3009
  var r = q.activeFilters(e);
@@ -3011,23 +3011,23 @@ q.filterChangeString = function(e) {
3011
3011
  };
3012
3012
  function Ot(e) {
3013
3013
  var r = {};
3014
- return r.downloadUrl = function(a, t, n, i) {
3015
- return i = i || {}, n = n || {}, n.download = !0, t = e.utils.id(t), e.api.generateEndpointURL(`/${a}/${t}`, n, i);
3016
- }, r.duration = function(a) {
3017
- const t = Math.round(a), n = Math.floor(t / 3600), i = Math.floor(t % 3600 / 60), y = t % 60;
3018
- return n > 0 ? `${n}:${i.toString().padStart(2, "0")}:${y.toString().padStart(2, "0")}` : `${i}:${y.toString().padStart(2, "0")}`;
3019
- }, r.mediaUrl = function(a, t, n, i) {
3020
- i = i || {}, n = n || {}, t = e.utils.id(t);
3021
- let y = `/${a}/${t}`;
3022
- return i.extension?.length && (i.extension.includes(".") ? y = `${y}/${i.extension}` : y = `${y}/${a}.${i.extension}`), e.api.generateEndpointURL(y, n, i);
3023
- }, r.filesize = function(a, t) {
3024
- if (a == 0) return "0 Bytes";
3025
- 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));
3026
- return parseFloat((a / Math.pow(n, l)).toFixed(i)) + " " + y[l];
3027
- }, r.getBinaryTypeFromMime = function(a) {
3028
- if (!a)
3014
+ return r.downloadUrl = function(i, t, a, n) {
3015
+ return n = n || {}, a = a || {}, a.download = !0, t = e.utils.id(t), e.api.generateEndpointURL(`/${i}/${t}`, a, n);
3016
+ }, r.duration = function(i) {
3017
+ const t = Math.round(i), a = Math.floor(t / 3600), n = Math.floor(t % 3600 / 60), s = t % 60;
3018
+ return a > 0 ? `${a}:${n.toString().padStart(2, "0")}:${s.toString().padStart(2, "0")}` : `${n}:${s.toString().padStart(2, "0")}`;
3019
+ }, r.mediaUrl = function(i, t, a, n) {
3020
+ n = n || {}, a = a || {}, t = e.utils.id(t);
3021
+ let s = `/${i}/${t}`;
3022
+ return n.extension?.length && (n.extension.includes(".") ? s = `${s}/${n.extension}` : s = `${s}/${i}.${n.extension}`), e.api.generateEndpointURL(s, a, n);
3023
+ }, r.filesize = function(i, t) {
3024
+ if (i == 0) return "0 Bytes";
3025
+ var a = 1024, n = t || 2, s = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], f = Math.floor(Math.log(i) / Math.log(a));
3026
+ return parseFloat((i / Math.pow(a, f)).toFixed(n)) + " " + s[f];
3027
+ }, r.getBinaryTypeFromMime = function(i) {
3028
+ if (!i)
3029
3029
  return "file";
3030
- switch (a) {
3030
+ switch (i) {
3031
3031
  case "image/jpeg":
3032
3032
  case "image/png":
3033
3033
  case "image/gif":
@@ -3050,7 +3050,7 @@ function Ot(e) {
3050
3050
  case "audio/webm":
3051
3051
  return "audio";
3052
3052
  default:
3053
- var t = a.split("/")[0];
3053
+ var t = i.split("/")[0];
3054
3054
  switch (t) {
3055
3055
  case "image":
3056
3056
  case "video":
@@ -3094,218 +3094,227 @@ var Ue = {}, Ct = {
3094
3094
  "Can't Instantiate QikAccess before QikCore.utils has been initialized"
3095
3095
  );
3096
3096
  var r = {};
3097
- return r.hasFeature = function(a, t) {
3098
- const n = a?.organisation?.features || {};
3099
- return n.all ? !0 : !!n[t];
3097
+ r.hasFeature = function(a, n) {
3098
+ const s = a?.organisation?.features || {};
3099
+ return s.all ? !0 : !!s[n];
3100
3100
  }, r.isAdministrator = function(a) {
3101
3101
  return a && a?.userType == "administrator";
3102
3102
  }, r.getAllDescendants = function(a) {
3103
- var t = [];
3104
- n(a);
3105
- function n(i) {
3106
- var y = e.utils.id(i);
3107
- t.push(y), (i.children || []).forEach(function(l) {
3108
- n(l);
3103
+ var n = /* @__PURE__ */ new Set();
3104
+ s(a);
3105
+ function s(f) {
3106
+ var c = e.utils.id(f);
3107
+ n.add(c), (f.children || []).forEach(function(p) {
3108
+ s(p);
3109
3109
  });
3110
3110
  }
3111
- return t;
3112
- }, r.hashPermissions = function(a) {
3113
- var t = {};
3114
- for (var n in a?.permissions || {}) {
3115
- var i = a?.permissions[n], y = r.getAllDescendants(i);
3116
- (i.permissions || []).forEach(function(l) {
3117
- t[l] || (t[l] = []), t[l] = [
3118
- ...new Set(t[l].concat(y))
3119
- ];
3111
+ return Array.from(n);
3112
+ };
3113
+ var i = 5e3, t = null;
3114
+ return r.hashPermissions = function(a) {
3115
+ var n = a?.cacheKey;
3116
+ if (n && t && t.key === n && Date.now() - t.at < i)
3117
+ return t.value;
3118
+ var s = /* @__PURE__ */ new Map();
3119
+ for (var f in a?.permissions || {}) {
3120
+ var c = a?.permissions[f], p = r.getAllDescendants(c);
3121
+ (c.permissions || []).forEach(function(A) {
3122
+ var u = s.get(A);
3123
+ u || (u = /* @__PURE__ */ new Set(), s.set(A, u));
3124
+ for (var o = 0; o < p.length; o++)
3125
+ u.add(p[o]);
3120
3126
  });
3121
3127
  }
3122
- return t;
3128
+ var w = {};
3129
+ return s.forEach(function(A, u) {
3130
+ w[u] = Array.from(A);
3131
+ }), n && (t = { key: n, value: w, at: Date.now() }), w;
3123
3132
  }, r.allUserScopes = function(a) {
3124
- var t = {}, n = a?.permissions || {};
3125
- function i(l) {
3126
- if (l) {
3127
- var p = e.utils.id(l);
3128
- p && (t[p] = 1, l.children && l.children.length && l.children.forEach(function(m) {
3129
- i(m);
3133
+ var n = {}, s = a?.permissions || {};
3134
+ function f(p) {
3135
+ if (p) {
3136
+ var w = e.utils.id(p);
3137
+ w && (n[w] = 1, p.children && p.children.length && p.children.forEach(function(A) {
3138
+ f(A);
3130
3139
  }));
3131
3140
  }
3132
3141
  }
3133
- for (var y in n)
3134
- i(n[y]);
3135
- return Object.keys(t);
3136
- }, r.actionableScopes = function(a, t, n, i, y) {
3137
- y = y || {};
3138
- var l = [];
3142
+ for (var c in s)
3143
+ f(s[c]);
3144
+ return Object.keys(n);
3145
+ }, r.actionableScopes = function(a, n, s, f, c) {
3146
+ c = c || {};
3147
+ var p = [];
3139
3148
  if (a?.userType == "administrator")
3140
- l = r.allUserScopes(a, y);
3149
+ p = r.allUserScopes(a, c);
3141
3150
  else {
3142
- var p = r.hashPermissions(a), m = n || i;
3143
- if (!m)
3144
- return l;
3145
- let w = n ? p[`${n}.${t}`] || [] : [], b = i ? p[`${i}.${t}`] || [] : [];
3146
- l = [...w, ...b];
3151
+ var w = r.hashPermissions(a), A = s || f;
3152
+ if (!A)
3153
+ return p;
3154
+ let u = s ? w[`${s}.${n}`] || [] : [], o = f ? w[`${f}.${n}`] || [] : [];
3155
+ p = [...u, ...o];
3147
3156
  }
3148
- return l || [];
3149
- }, r.isOwner = function(a, t) {
3150
- var n = e.utils.id(a), i = e.utils.id(a?.persona), y = t.meta;
3151
- if (!y)
3157
+ return p || [];
3158
+ }, r.isOwner = function(a, n) {
3159
+ var s = e.utils.id(a), f = e.utils.id(a?.persona), c = n.meta;
3160
+ if (!c)
3152
3161
  return !1;
3153
- var l = y.userOwners || [], p = e.utils.ids([...l, y.userAuthor]), m = e.utils.hash(p);
3154
- if (m[n])
3162
+ var p = c.userOwners || [], w = e.utils.ids([...p, c.userAuthor]), A = e.utils.hash(w);
3163
+ if (A[s])
3155
3164
  return !0;
3156
- var w = y.personaOwners || [], b = e.utils.ids([
3157
- ...w,
3158
- y.personaAuthor
3159
- ]), u = e.utils.hash(b);
3160
- return u[i] ? !0 : r.isAssignee(a, t);
3161
- }, r.isAssignee = function(a, t) {
3162
- const n = e.utils.ids(a?.profiles);
3163
- if (!n.length)
3165
+ var u = c.personaOwners || [], o = e.utils.ids([
3166
+ ...u,
3167
+ c.personaAuthor
3168
+ ]), m = e.utils.hash(o);
3169
+ return m[f] ? !0 : r.isAssignee(a, n);
3170
+ }, r.isAssignee = function(a, n) {
3171
+ const s = e.utils.ids(a?.profiles);
3172
+ if (!s.length)
3164
3173
  return !1;
3165
- const i = e.utils.ids(t.assignees);
3166
- if (!i.length)
3174
+ const f = e.utils.ids(n.assignees);
3175
+ if (!f.length)
3167
3176
  return !1;
3168
- const y = new Set(i);
3169
- return !!n.filter((m) => y.has(m)).length;
3177
+ const c = new Set(f);
3178
+ return !!s.filter((A) => c.has(A)).length;
3170
3179
  }, r.allPermissions = function(a) {
3171
- var t = Object.values(a?.permissions || {}).map(function(n) {
3172
- return n.permissions;
3180
+ var n = Object.values(a?.permissions || {}).map(function(s) {
3181
+ return s.permissions;
3173
3182
  }).flat();
3174
- return t;
3175
- }, r.allPermissionTypes = function(a, t) {
3176
- return t ? r.allPermissions(a).reduce(function(n, i) {
3177
- var y = i.split(".")[0];
3178
- return n[y] = !0, n;
3179
- }, {}) : r.allPermissions(a).map(function(n) {
3180
- return n.split(".")[0];
3183
+ return n;
3184
+ }, r.allPermissionTypes = function(a, n) {
3185
+ return n ? r.allPermissions(a).reduce(function(s, f) {
3186
+ var c = f.split(".")[0];
3187
+ return s[c] = !0, s;
3188
+ }, {}) : r.allPermissions(a).map(function(s) {
3189
+ return s.split(".")[0];
3181
3190
  });
3182
- }, r.canKnowOf = function(a, t, n) {
3183
- return n = n || {}, n.cache = n.cache || {}, r.allPermissionTypes(a, !0)[t];
3184
- }, r.checkActionAccess = function(a, t, n, i, y) {
3185
- if (y = y || {}, y.cache = y.cache || {}, r.isAdministrator(a))
3191
+ }, r.canKnowOf = function(a, n, s) {
3192
+ return s = s || {}, s.cache = s.cache || {}, r.allPermissionTypes(a, !0)[n];
3193
+ }, r.checkActionAccess = function(a, n, s, f, c) {
3194
+ if (c = c || {}, c.cache = c.cache || {}, r.isAdministrator(a))
3186
3195
  return !0;
3187
- var l = t.meta?.type, p = t.meta?.definition || l;
3188
- if (!p)
3196
+ var p = n.meta?.type, w = n.meta?.definition || p;
3197
+ if (!w)
3189
3198
  return !1;
3190
- if ((n == "listany" || i == "listown") && l === "scope") {
3191
- var m = e.utils.id(t);
3192
- return !!a.permissions[m];
3199
+ if ((s == "listany" || f == "listown") && p === "scope") {
3200
+ var A = e.utils.id(n);
3201
+ return !!a.permissions[A];
3193
3202
  }
3194
- var w = e.utils.ids(t.meta.scopes || []);
3195
- l === "scope" && (w = [
3196
- ...e.utils.ids(t.path || []),
3197
- e.utils.id(t)
3203
+ var u = e.utils.ids(n.meta.scopes || []);
3204
+ p === "scope" && (u = [
3205
+ ...e.utils.ids(n.path || []),
3206
+ e.utils.id(n)
3198
3207
  ]);
3199
- var b, u = `access-${a?.cacheKey}-${n}-${p}-${l}`;
3200
- if (y.cache[u])
3201
- b = y.cache[u];
3208
+ var o, m = `access-${a?.cacheKey}-${s}-${w}-${p}`;
3209
+ if (c.cache[m])
3210
+ o = c.cache[m];
3202
3211
  else {
3203
- var o = e.utils.ids(
3204
- r.actionableScopes(a, n, p, l, y)
3212
+ var h = e.utils.ids(
3213
+ r.actionableScopes(a, s, w, p, c)
3205
3214
  );
3206
- b = e.utils.hash(o), y.cache[u] = b;
3215
+ o = e.utils.hash(h), c.cache[m] = o;
3207
3216
  }
3208
- if (b) {
3209
- var f = w.some(function(P) {
3210
- return b[P];
3217
+ if (o) {
3218
+ var d = u.some(function(T) {
3219
+ return o[T];
3211
3220
  });
3212
- if (f)
3221
+ if (d)
3213
3222
  return !0;
3214
3223
  }
3215
- var g = r.isOwner(a, t);
3216
- if (g) {
3217
- var c, s = `access-${a?.cacheKey}-${i}-${p}-${l}`;
3218
- if (y.cache[s])
3219
- c = y.cache[s];
3224
+ var l = r.isOwner(a, n);
3225
+ if (l) {
3226
+ var v, S = `access-${a?.cacheKey}-${f}-${w}-${p}`;
3227
+ if (c.cache[S])
3228
+ v = c.cache[S];
3220
3229
  else {
3221
- var A = e.utils.ids(
3222
- r.actionableScopes(a, i, p, l, y)
3230
+ var O = e.utils.ids(
3231
+ r.actionableScopes(a, f, w, p, c)
3223
3232
  );
3224
- c = e.utils.hash(A), y.cache[s] = c;
3233
+ v = e.utils.hash(O), c.cache[S] = v;
3225
3234
  }
3226
- if (c) {
3227
- var S = w.some(function(P) {
3228
- return c[P];
3235
+ if (v) {
3236
+ var x = u.some(function(T) {
3237
+ return v[T];
3229
3238
  });
3230
- if (S)
3239
+ if (x)
3231
3240
  return !0;
3232
3241
  }
3233
3242
  }
3234
3243
  return !1;
3235
- }, r.has = function(a, t) {
3244
+ }, r.has = function(a, n) {
3236
3245
  if (r.isAdministrator(a))
3237
3246
  return !0;
3238
- var n = r.hashPermissions(a);
3239
- return n[t];
3240
- }, r.canCreate = function(a, t, n, i) {
3241
- if (i = i || {}, i.cache = i.cache || {}, r.isAdministrator(a))
3247
+ var s = r.hashPermissions(a);
3248
+ return s[n];
3249
+ }, r.canCreate = function(a, n, s, f) {
3250
+ if (f = f || {}, f.cache = f.cache || {}, r.isAdministrator(a))
3242
3251
  return !0;
3243
- var y = r.actionableScopes(
3252
+ var c = r.actionableScopes(
3244
3253
  a,
3245
3254
  "create",
3246
- t,
3247
- n
3255
+ n,
3256
+ s
3248
3257
  );
3249
- return y.length;
3250
- }, r.canListItem = function(a, t, n) {
3251
- n = n || {}, n.cache = n.cache || {};
3252
- var i = r.checkActionAccess(
3258
+ return c.length;
3259
+ }, r.canListItem = function(a, n, s) {
3260
+ s = s || {}, s.cache = s.cache || {};
3261
+ var f = r.checkActionAccess(
3253
3262
  a,
3254
- t,
3263
+ n,
3255
3264
  "listany",
3256
3265
  "listown",
3257
- n
3266
+ s
3258
3267
  );
3259
- if (i)
3268
+ if (f)
3260
3269
  return !0;
3261
- var y = r.canViewItem(a, t, n);
3262
- return !!y;
3263
- }, r.canViewItem = function(a, t, n) {
3264
- n = n || {}, n.cache = n.cache || {};
3265
- var i = r.checkActionAccess(
3270
+ var c = r.canViewItem(a, n, s);
3271
+ return !!c;
3272
+ }, r.canViewItem = function(a, n, s) {
3273
+ s = s || {}, s.cache = s.cache || {};
3274
+ var f = r.checkActionAccess(
3266
3275
  a,
3267
- t,
3276
+ n,
3268
3277
  "viewany",
3269
3278
  "viewOwn",
3270
- n
3279
+ s
3271
3280
  );
3272
- if (i)
3281
+ if (f)
3273
3282
  return !0;
3274
- var y = r.canEditItem(a, t, n);
3275
- return !!y;
3276
- }, r.canEditItem = function(a, t, n) {
3277
- n = n || {}, n.cache = n.cache || {};
3278
- var i = r.checkActionAccess(
3283
+ var c = r.canEditItem(a, n, s);
3284
+ return !!c;
3285
+ }, r.canEditItem = function(a, n, s) {
3286
+ s = s || {}, s.cache = s.cache || {};
3287
+ var f = r.checkActionAccess(
3279
3288
  a,
3280
- t,
3289
+ n,
3281
3290
  "editany",
3282
3291
  "editown",
3283
- n
3292
+ s
3284
3293
  );
3285
- return i;
3286
- }, r.canDeleteItem = function(a, t, n) {
3287
- return n = n || {}, n.cache = n.cache || {}, r.checkActionAccess(
3294
+ return f;
3295
+ }, r.canDeleteItem = function(a, n, s) {
3296
+ return s = s || {}, s.cache = s.cache || {}, r.checkActionAccess(
3288
3297
  a,
3289
- t,
3298
+ n,
3290
3299
  "deleteany",
3291
3300
  "deleteown",
3292
- n
3301
+ s
3293
3302
  );
3294
- }, r.canRestoreItem = function(a, t, n) {
3295
- return n = n || {}, n.cache = n.cache || {}, r.checkActionAccess(
3303
+ }, r.canRestoreItem = function(a, n, s) {
3304
+ return s = s || {}, s.cache = s.cache || {}, r.checkActionAccess(
3296
3305
  a,
3297
- t,
3306
+ n,
3298
3307
  "restoreany",
3299
3308
  "restoreown",
3300
- n
3309
+ s
3301
3310
  );
3302
- }, r.canEraseItem = function(a, t, n) {
3303
- return n = n || {}, n.cache = n.cache || {}, r.checkActionAccess(
3311
+ }, r.canEraseItem = function(a, n, s) {
3312
+ return s = s || {}, s.cache = s.cache || {}, r.checkActionAccess(
3304
3313
  a,
3305
- t,
3314
+ n,
3306
3315
  "eraseany",
3307
3316
  "eraseown",
3308
- n
3317
+ s
3309
3318
  );
3310
3319
  }, r;
3311
3320
  };
@@ -3316,142 +3325,142 @@ function It(e) {
3316
3325
  debug: !1,
3317
3326
  loadingGlossary: !1
3318
3327
  };
3319
- const a = {};
3328
+ const i = {};
3320
3329
  let t;
3321
3330
  r.variables = async function(u, o) {
3322
3331
  o = o || {}, u = u || [];
3323
- var f = o.refresh || o.reload || !a.data;
3324
- if (f) {
3332
+ var m = o.refresh || o.reload || !i.data;
3333
+ if (m) {
3325
3334
  if (!t) {
3326
- let c = function() {
3335
+ let d = function() {
3327
3336
  t = null;
3328
3337
  };
3329
- t = e.api.post("/variables", { keys: u }), t.then(c, c);
3338
+ t = e.api.post("/variables", { keys: u }), t.then(d, d);
3330
3339
  }
3331
- const { data: g } = await t;
3332
- a.data = g, e.dispatch("variables", g);
3340
+ const { data: h } = await t;
3341
+ i.data = h, e.dispatch("variables", h);
3333
3342
  }
3334
- return a.data;
3343
+ return i.data;
3335
3344
  };
3336
- const n = e.cache.get("user:glossary");
3337
- let i;
3338
- function y() {
3345
+ const a = e.cache.get("user:glossary");
3346
+ let n;
3347
+ function s() {
3339
3348
  return new Promise((u) => {
3340
3349
  typeof requestIdleCallback == "function" ? requestIdleCallback(u, { timeout: 50 }) : setTimeout(u, 0);
3341
3350
  });
3342
3351
  }
3343
- async function l({ _s: u, _k: o, types: f }) {
3344
- function g(A) {
3345
- if (typeof A == "string" && A[0] === "~")
3346
- return u[parseInt(A.slice(1))];
3347
- if (Array.isArray(A)) return A.map(g);
3348
- if (A && typeof A == "object") {
3352
+ async function f({ _s: u, _k: o, types: m }) {
3353
+ function h(v) {
3354
+ if (typeof v == "string" && v[0] === "~")
3355
+ return u[parseInt(v.slice(1))];
3356
+ if (Array.isArray(v)) return v.map(h);
3357
+ if (v && typeof v == "object") {
3349
3358
  const S = {};
3350
- for (const [P, x] of Object.entries(A))
3351
- S[o[P] || P] = g(x);
3359
+ for (const [O, x] of Object.entries(v))
3360
+ S[o[O] || O] = h(x);
3352
3361
  return S;
3353
3362
  }
3354
- return A;
3363
+ return v;
3355
3364
  }
3356
- const c = 50, s = [];
3357
- for (let A = 0; A < f.length; A += c) {
3358
- const S = f.slice(A, A + c);
3359
- s.push(...S.map(g)), A + c < f.length && await y();
3365
+ const d = 50, l = [];
3366
+ for (let v = 0; v < m.length; v += d) {
3367
+ const S = m.slice(v, v + d);
3368
+ l.push(...S.map(h)), v + d < m.length && await s();
3360
3369
  }
3361
- return s;
3370
+ return l;
3362
3371
  }
3363
3372
  r.glossary = async function(u) {
3364
3373
  u = u || {};
3365
- let o = n.get("glossary"), g = !!!u.uncompressed;
3366
- var c = u.refresh || u.reload || !o;
3367
- if (c) {
3368
- if (!i) {
3374
+ let o = a.get("glossary"), h = !!!u.uncompressed;
3375
+ var d = u.refresh || u.reload || !o;
3376
+ if (d) {
3377
+ if (!n) {
3369
3378
  let x = function() {
3370
- i = null, r.loadingGlossary = !1;
3379
+ n = null, r.loadingGlossary = !1;
3371
3380
  };
3372
3381
  r.loadingGlossary = !0;
3373
- const P = g ? "/glossary/compressed" : "/glossary";
3374
- i = e.api.get(P, { cache: !1 }), i.then(x, x);
3382
+ const O = h ? "/glossary/compressed" : "/glossary";
3383
+ n = e.api.get(O, { cache: !1 }), n.then(x, x);
3375
3384
  }
3376
- const { data: A } = await i, S = A._s && A._k && A.types ? await l(A) : A;
3377
- n.set("glossary", S), o = S, e.dispatch("glossary", S);
3385
+ const { data: v } = await n, S = v._s && v._k && v.types ? await f(v) : v;
3386
+ a.set("glossary", S), o = S, e.dispatch("glossary", S);
3378
3387
  }
3379
3388
  if (u.hash) {
3380
- var s = e.utils.hash(o, "key");
3381
- return s;
3389
+ var l = e.utils.hash(o, "key");
3390
+ return l;
3382
3391
  }
3383
3392
  if (u.hex) {
3384
- var s = e.utils.hash(o, "hex");
3385
- return s;
3393
+ var l = e.utils.hash(o, "hex");
3394
+ return l;
3386
3395
  }
3387
3396
  return o;
3388
3397
  };
3389
- const p = {};
3390
- let m;
3398
+ const c = {};
3399
+ let p;
3391
3400
  r.scopeGlossary = async function(u) {
3392
3401
  u = u || {};
3393
- var o = u.refresh || u.reload || !p.data;
3402
+ var o = u.refresh || u.reload || !c.data;
3394
3403
  if (o) {
3395
- if (!m) {
3396
- let c = function() {
3397
- m = null;
3404
+ if (!p) {
3405
+ let d = function() {
3406
+ p = null;
3398
3407
  };
3399
- m = e.api.get("/scope/glossary", {
3408
+ p = e.api.get("/scope/glossary", {
3400
3409
  cache: !1
3401
- }), m.then(c, c);
3410
+ }), p.then(d, d);
3402
3411
  }
3403
- const { data: g } = await m;
3404
- p.data = g;
3412
+ const { data: h } = await p;
3413
+ c.data = h;
3405
3414
  }
3406
3415
  if (u.hash) {
3407
- var f = e.utils.hash(p.data, "_id");
3408
- return f;
3416
+ var m = e.utils.hash(c.data, "_id");
3417
+ return m;
3409
3418
  }
3410
- return p.data;
3419
+ return c.data;
3411
3420
  };
3412
3421
  const w = {};
3413
3422
  r.comparators = async function(u) {
3414
3423
  u = u || {};
3415
3424
  var o = u.reload || u.refresh || !w.data;
3416
3425
  if (o) {
3417
- const { data: f } = await e.api.get("/system/comparators");
3418
- f.available = {}, Object.entries(f.types).forEach(([g, c]) => {
3419
- f.available[g] = c.map(function(s) {
3420
- return f.hash[s];
3426
+ const { data: m } = await e.api.get("/system/comparators");
3427
+ m.available = {}, Object.entries(m.types).forEach(([h, d]) => {
3428
+ m.available[h] = d.map(function(l) {
3429
+ return m.hash[l];
3421
3430
  });
3422
- }), w.data = f;
3431
+ }), w.data = m;
3423
3432
  }
3424
3433
  return w.data;
3425
3434
  };
3426
- function b(u) {
3427
- var { minimum: o, maximum: f } = u;
3428
- 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 };
3429
- }
3430
- return r.meetsValidationRequirements = function(u, o, f) {
3431
- if (f.minLength) {
3432
- var g = String(u).length;
3433
- if (g < f.minLength)
3434
- return `Must be at least ${f.minLength} characters`;
3435
+ function A(u) {
3436
+ var { minimum: o, maximum: m } = u;
3437
+ return o = e.utils.parseInt(o), o = Math.max(o, 0), m = e.utils.parseInt(m), m = Math.max(m, 0), m == 0 || (m = Math.max(m, o)), { minimum: o, maximum: m };
3438
+ }
3439
+ return r.meetsValidationRequirements = function(u, o, m) {
3440
+ if (m.minLength) {
3441
+ var h = String(u).length;
3442
+ if (h < m.minLength)
3443
+ return `Must be at least ${m.minLength} characters`;
3435
3444
  }
3436
- if (f.maxLength) {
3437
- var g = String(u).length;
3438
- if (g > f.maxLength)
3439
- return `Can be no more than ${f.maxLength} characters`;
3445
+ if (m.maxLength) {
3446
+ var h = String(u).length;
3447
+ if (h > m.maxLength)
3448
+ return `Can be no more than ${m.maxLength} characters`;
3440
3449
  }
3441
- if (f.minValue && u !== void 0) {
3442
- var c = Number(u);
3443
- if (c < f.minValue)
3444
- return `Must be at least ${f.minValue}`;
3450
+ if (m.minValue && u !== void 0) {
3451
+ var d = Number(u);
3452
+ if (d < m.minValue)
3453
+ return `Must be at least ${m.minValue}`;
3445
3454
  }
3446
- if (f.maxValue && u !== void 0) {
3447
- var c = Number(u);
3448
- if (c > f.maxValue)
3449
- return `Can be no greater than ${f.maxValue}`;
3455
+ if (m.maxValue && u !== void 0) {
3456
+ var d = Number(u);
3457
+ if (d > m.maxValue)
3458
+ return `Can be no greater than ${m.maxValue}`;
3450
3459
  }
3451
- }, r.validateField = function(u, o, f) {
3452
- f = f || {};
3453
- var g = 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);
3454
- if (o.type === "boolean" && u !== !0 && (x = !1), c) {
3460
+ }, r.validateField = function(u, o, m) {
3461
+ m = m || {};
3462
+ var h = o.type || "string", { minimum: d, maximum: l } = A(o), v = o.type == "group" && o.asObject, S = v ? d === l && l === 1 : l === 1, O = !S, x = e.utils.exists(u);
3463
+ if (o.type === "boolean" && u !== !0 && (x = !1), d) {
3455
3464
  if (!x)
3456
3465
  return {
3457
3466
  valid: !1,
@@ -3462,11 +3471,11 @@ function It(e) {
3462
3471
  return {
3463
3472
  valid: !0
3464
3473
  };
3465
- if (P) {
3474
+ if (O) {
3466
3475
  if (!Array.isArray(u))
3467
- return c ? {
3476
+ return d ? {
3468
3477
  valid: !1,
3469
- message: `${o.title} requires at least ${c} values`,
3478
+ message: `${o.title} requires at least ${d} values`,
3470
3479
  status: 400
3471
3480
  } : (console.log("NOT PROVIDED AS ARRAY", o.title, u), {
3472
3481
  valid: !1,
@@ -3474,42 +3483,42 @@ function It(e) {
3474
3483
  status: 400
3475
3484
  });
3476
3485
  var T = u;
3477
- if (T = T.filter(function(R) {
3478
- var k = R == null || R === "";
3479
- return !k;
3480
- }), c == s && c && T.length != c)
3486
+ if (T = T.filter(function(k) {
3487
+ var R = k == null || k === "";
3488
+ return !R;
3489
+ }), d == l && d && T.length != d)
3481
3490
  return {
3482
3491
  valid: !1,
3483
- message: `${o.title} requires exactly ${s} values`,
3492
+ message: `${o.title} requires exactly ${l} values`,
3484
3493
  status: 400
3485
3494
  };
3486
- if (s && T.length > s)
3495
+ if (l && T.length > l)
3487
3496
  return {
3488
3497
  valid: !1,
3489
- message: `${o.title} requires less than ${s + 1} values`,
3498
+ message: `${o.title} requires less than ${l + 1} values`,
3490
3499
  status: 400
3491
3500
  };
3492
- if (T.length < c)
3501
+ if (T.length < d)
3493
3502
  return {
3494
3503
  valid: !1,
3495
- message: `${o.title} requires at least ${c} values`,
3504
+ message: `${o.title} requires at least ${d} values`,
3496
3505
  status: 400
3497
3506
  };
3498
3507
  var N;
3499
- if (T.find(function(R) {
3500
- var k = g;
3501
- o.type === "group" && (k = "object"), o.type === "reference" && o.widget === "form" && (k = "object");
3508
+ if (T.find(function(k) {
3509
+ var R = h;
3510
+ o.type === "group" && (R = "object"), o.type === "reference" && o.widget === "form" && (R = "object");
3502
3511
  var U = e.utils.isValidValue(
3503
- R,
3504
3512
  k,
3505
- f.strict
3513
+ R,
3514
+ m.strict
3506
3515
  );
3507
3516
  if (!U)
3508
3517
  return N = !0, !0;
3509
3518
  if (o.validation) {
3510
3519
  var z = r.meetsValidationRequirements(
3511
- R,
3512
- g,
3520
+ k,
3521
+ h,
3513
3522
  o.validation
3514
3523
  );
3515
3524
  if (z)
@@ -3522,12 +3531,12 @@ function It(e) {
3522
3531
  status: 400
3523
3532
  };
3524
3533
  } else {
3525
- var M = g, V = o.widget;
3534
+ var M = h, V = o.widget;
3526
3535
  M === "group" && (M = "object"), M === "reference" && V === "form" && (M = "object");
3527
- var $ = r.getCleanedValue(u, M, f), L = e.utils.isValidValue(
3536
+ var $ = r.getCleanedValue(u, M, m), L = e.utils.isValidValue(
3528
3537
  $,
3529
3538
  M,
3530
- f.strict
3539
+ m.strict
3531
3540
  );
3532
3541
  if (!L)
3533
3542
  return {
@@ -3536,22 +3545,22 @@ function It(e) {
3536
3545
  criteria: {
3537
3546
  isValidValue: L,
3538
3547
  cleanedValue: $,
3539
- fieldType: g,
3540
- options: f
3548
+ fieldType: h,
3549
+ options: m
3541
3550
  },
3542
3551
  status: 400
3543
3552
  };
3544
- let R = !1;
3545
- const k = {};
3546
- if (String(o.minValue) && (k.minValue = parseInt(o.minValue), R = !0), String(o.maxValue) && (k.maxValue = parseInt(o.maxValue), R = !0), String(o.minLength) && (k.minLength = parseInt(o.minLength), R = !0), String(o.maxLength) && (k.maxLength = parseInt(o.maxLength), R = !0), R) {
3553
+ let k = !1;
3554
+ const R = {};
3555
+ if (String(o.minValue) && (R.minValue = parseInt(o.minValue), k = !0), String(o.maxValue) && (R.maxValue = parseInt(o.maxValue), k = !0), String(o.minLength) && (R.minLength = parseInt(o.minLength), k = !0), String(o.maxLength) && (R.maxLength = parseInt(o.maxLength), k = !0), k) {
3547
3556
  const U = Object.assign(
3548
3557
  {},
3549
- k,
3558
+ R,
3550
3559
  o.validation || {}
3551
3560
  );
3552
3561
  var F = r.meetsValidationRequirements(
3553
3562
  u,
3554
- g,
3563
+ h,
3555
3564
  U
3556
3565
  );
3557
3566
  if (F)
@@ -3565,7 +3574,7 @@ function It(e) {
3565
3574
  return {
3566
3575
  valid: !0
3567
3576
  };
3568
- }, r.getCleanedValue = function(u, o, f) {
3577
+ }, r.getCleanedValue = function(u, o, m) {
3569
3578
  switch (o) {
3570
3579
  case "number":
3571
3580
  case "float":
@@ -3576,105 +3585,105 @@ function It(e) {
3576
3585
  case "boolean":
3577
3586
  return e.utils.exists(u) ? e.utils.parseBoolean(u) : void 0;
3578
3587
  case "email":
3579
- return f.strict ? u : String(u).toLowerCase();
3588
+ return m.strict ? u : String(u).toLowerCase();
3580
3589
  case "reference":
3581
- return f.strict ? u : e.utils.id(u);
3590
+ return m.strict ? u : e.utils.id(u);
3582
3591
  default:
3583
- return f.strict ? u : e.utils.cleanValue(u, o, f);
3592
+ return m.strict ? u : e.utils.cleanValue(u, o, m);
3584
3593
  }
3585
3594
  return u;
3586
- }, r.list = async function(u, o, f) {
3587
- f || (f = {});
3588
- const g = f.remoteURL || `/content/${u}/list`;
3589
- if (f.cancellable) {
3590
- f.config || (f.config = {});
3591
- const s = e.api.CancelToken.source();
3592
- return f.config.cancelToken = s.token, {
3593
- promise: e.api.post(g, o, f.config),
3595
+ }, r.list = async function(u, o, m) {
3596
+ m || (m = {});
3597
+ const h = m.remoteURL || `/content/${u}/list`;
3598
+ if (m.cancellable) {
3599
+ m.config || (m.config = {});
3600
+ const l = e.api.CancelToken.source();
3601
+ return m.config.cancelToken = l.token, {
3602
+ promise: e.api.post(h, o, m.config),
3594
3603
  cancel(S) {
3595
- s.cancel(S || "Operation canceled by the user.");
3604
+ l.cancel(S || "Operation canceled by the user.");
3596
3605
  }
3597
3606
  };
3598
3607
  } else {
3599
- const { data: c } = await e.api.post(g, o, f.config);
3600
- return c;
3608
+ const { data: d } = await e.api.post(h, o, m.config);
3609
+ return d;
3601
3610
  }
3602
3611
  }, r.create = async function(u, o) {
3603
- const f = { ...o };
3604
- f.meta?.scopes && (f.meta.scopes = e.utils.ids(f.meta.scopes));
3605
- const { data: g } = await e.api.post(`/content/${u}/create`, f);
3606
- return g;
3612
+ const m = { ...o };
3613
+ m.meta?.scopes && (m.meta.scopes = e.utils.ids(m.meta.scopes));
3614
+ const { data: h } = await e.api.post(`/content/${u}/create`, m);
3615
+ return h;
3607
3616
  }, r.update = async function(u, o) {
3608
3617
  u = e.utils.id(u);
3609
- const f = { ...o };
3610
- f.meta?.scopes && (f.meta.scopes = e.utils.ids(f.meta.scopes));
3611
- const { data: g } = await e.api.put(`/content/${u}`, f);
3612
- return g;
3618
+ const m = { ...o };
3619
+ m.meta?.scopes && (m.meta.scopes = e.utils.ids(m.meta.scopes));
3620
+ const { data: h } = await e.api.put(`/content/${u}`, m);
3621
+ return h;
3613
3622
  }, r.patch = async function(u, o) {
3614
3623
  u = e.utils.id(u);
3615
- const f = { ...o };
3616
- f.meta?.scopes && (f.meta.scopes = e.utils.ids(f.meta.scopes));
3617
- const { data: g } = await e.api.patch(`/content/${u}`, f);
3618
- return g;
3624
+ const m = { ...o };
3625
+ m.meta?.scopes && (m.meta.scopes = e.utils.ids(m.meta.scopes));
3626
+ const { data: h } = await e.api.patch(`/content/${u}`, m);
3627
+ return h;
3619
3628
  }, r.get = async function(u, o) {
3620
3629
  u = e.utils.id(u), o = o || {};
3621
- const { data: f } = await e.api.get(`/content/${u}`, o);
3622
- return f;
3630
+ const { data: m } = await e.api.get(`/content/${u}`, o);
3631
+ return m;
3623
3632
  }, r.getFromID = async function(u) {
3624
3633
  return r.get(u);
3625
3634
  }, r.delete = async function(u, o) {
3626
3635
  u = e.utils.id(u);
3627
- const { data: f } = await e.api.delete(`/content/${u}`, o);
3628
- return f;
3636
+ const { data: m } = await e.api.delete(`/content/${u}`, o);
3637
+ return m;
3629
3638
  }, r.restore = async function(u, o) {
3630
3639
  u = e.utils.id(u);
3631
- const { data: f } = await e.api.get(`/content/${u}/restore`, o);
3632
- return f;
3640
+ const { data: m } = await e.api.get(`/content/${u}/restore`, o);
3641
+ return m;
3633
3642
  }, r.getFromSlug = async function(u) {
3634
3643
  const { data: o } = await e.api.get(`/content/slug/${u}`);
3635
3644
  return o;
3636
3645
  }, r;
3637
3646
  }
3638
3647
  function Tt(e) {
3639
- var r = {}, a;
3648
+ var r = {}, i;
3640
3649
  return r.countries = async function() {
3641
- return a || (a = new Promise(async function(t, n) {
3642
- e.api.get("/system/countries").then(function(i) {
3643
- return t(i.data);
3644
- }).catch(n);
3645
- })), a;
3650
+ return i || (i = new Promise(async function(t, a) {
3651
+ e.api.get("/system/countries").then(function(n) {
3652
+ return t(n.data);
3653
+ }).catch(a);
3654
+ })), i;
3646
3655
  }, r;
3647
3656
  }
3648
- function Rt(e) {
3657
+ function kt(e) {
3649
3658
  var r = {};
3650
- function a() {
3659
+ function i() {
3651
3660
  return !(typeof window > "u" || !window.navigator || !window.navigator.geolocation);
3652
3661
  }
3653
- return r.distance = function({ lat: t, lon: n }, { lat: i, lon: y }) {
3654
- function l(f) {
3655
- return f * (Math.PI / 180);
3662
+ return r.distance = function({ lat: t, lon: a }, { lat: n, lon: s }) {
3663
+ function f(m) {
3664
+ return m * (Math.PI / 180);
3656
3665
  }
3657
- 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;
3666
+ var c = 6371e3, p = f(n - t), w = f(s - a), A = Math.sin(p / 2) * Math.sin(p / 2) + Math.cos(f(t)) * Math.cos(f(n)) * Math.sin(w / 2) * Math.sin(w / 2), u = 2 * Math.atan2(Math.sqrt(A), Math.sqrt(1 - A)), o = c * u;
3658
3667
  return o;
3659
3668
  }, r.getPosition = async function() {
3660
- return a() ? (console.log("qik:geo: getting location"), new Promise(function(t, n) {
3661
- navigator.geolocation.getCurrentPosition(t, n);
3669
+ return i() ? (console.log("qik:geo: getting location"), new Promise(function(t, a) {
3670
+ navigator.geolocation.getCurrentPosition(t, a);
3662
3671
  })) : Promise.reject({ message: "Geolocation is not enabled" });
3663
3672
  }, r.watchPosition = async function(t) {
3664
- return a() ? (console.log("qik:geo: watching location"), new Promise(function(n, i) {
3665
- const y = navigator.geolocation.watchPosition(t, i);
3666
- n({
3667
- id: y
3673
+ return i() ? (console.log("qik:geo: watching location"), new Promise(function(a, n) {
3674
+ const s = navigator.geolocation.watchPosition(t, n);
3675
+ a({
3676
+ id: s
3668
3677
  });
3669
3678
  })) : Promise.reject({ message: "Geolocation is not enabled" });
3670
3679
  }, r.stopWatchPosition = async function(t) {
3671
- return a() ? (console.log("qik:geo: watch stopped"), navigator.geolocation.clearWatch(this.watchID), !0) : Promise.reject({ message: "Geolocation is not enabled" });
3680
+ return i() ? (console.log("qik:geo: watch stopped"), navigator.geolocation.clearWatch(this.watchID), !0) : Promise.reject({ message: "Geolocation is not enabled" });
3672
3681
  }, r.getDefaultTimezone = function() {
3673
3682
  const { session: t } = e.auth.getCurrentUser();
3674
3683
  if (t) {
3675
- const n = t?.organisation?.timezone;
3676
- if (n)
3677
- return n;
3684
+ const a = t?.organisation?.timezone;
3685
+ if (a)
3686
+ return a;
3678
3687
  }
3679
3688
  if (!(typeof window > "u") && window.Intl)
3680
3689
  return window.Intl.DateTimeFormat().resolvedOptions().timeZone;
@@ -4377,117 +4386,117 @@ function Rt(e) {
4377
4386
  ], r.getDefaultCountry = function() {
4378
4387
  const { session: t } = e.auth.getCurrentUser();
4379
4388
  if (t) {
4380
- const n = t?.organisation?.countryCode;
4381
- if (n) {
4382
- const i = r.countryLookup[n];
4389
+ const a = t?.organisation?.countryCode;
4390
+ if (a) {
4391
+ const n = r.countryLookup[a];
4383
4392
  return {
4384
- code: n,
4385
- name: i
4393
+ code: a,
4394
+ name: n
4386
4395
  };
4387
4396
  }
4388
4397
  }
4389
4398
  }, r;
4390
4399
  }
4391
- const kt = function(e, r) {
4400
+ const Rt = function(e, r) {
4392
4401
  if (r = r || "production", !e.auth)
4393
4402
  throw new Error("Can't Instantiate QikSocket before QikAuth exists");
4394
- const a = e.utils.guid();
4403
+ const i = e.utils.guid();
4395
4404
  let t = {
4396
4405
  debug: !1,
4397
4406
  url: `wss://iqtm6zjz3l.execute-api.ap-southeast-2.amazonaws.com/${r}`,
4398
4407
  connected: !1,
4399
- windowID: a,
4408
+ windowID: i,
4400
4409
  autoreconnect: !0
4401
- }, n, i = {};
4402
- const y = {}, l = new De();
4403
- l.bootstrap(t), t.channel = async function(g) {
4404
- if (i[g])
4405
- return i[g];
4406
- const c = new De();
4407
- function s(A) {
4408
- c.dispatch("message", A);
4410
+ }, a, n = {};
4411
+ const s = {}, f = new De();
4412
+ f.bootstrap(t), t.channel = async function(h) {
4413
+ if (n[h])
4414
+ return n[h];
4415
+ const d = new De();
4416
+ function l(v) {
4417
+ d.dispatch("message", v);
4409
4418
  }
4410
- return c.destroy = function() {
4411
- t.removeEventListener(g, s), t.unsubscribe(g), c.removeAllListeners(), delete i[g];
4412
- }, i[g] = c, t.connected || await t.connect(), t.subscribe(g), t.addEventListener(g, s), i[g];
4419
+ return d.destroy = function() {
4420
+ t.removeEventListener(h, l), t.unsubscribe(h), d.removeAllListeners(), delete n[h];
4421
+ }, n[h] = d, t.connected || await t.connect(), t.subscribe(h), t.addEventListener(h, l), n[h];
4413
4422
  };
4414
- function p(g) {
4415
- t.debug && console.log("[socket] Connection open", g), t.connected = !0, l.dispatch("connected", g), Object.keys(y).forEach(function(c) {
4423
+ function c(h) {
4424
+ t.debug && console.log("[socket] Connection open", h), t.connected = !0, f.dispatch("connected", h), Object.keys(s).forEach(function(d) {
4416
4425
  u({
4417
4426
  action: "subscribe",
4418
- channel: c
4427
+ channel: d
4419
4428
  });
4420
4429
  });
4421
4430
  }
4422
- async function m(g) {
4423
- 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();
4431
+ async function p(h) {
4432
+ 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, f.dispatch("disconnected", h), a = null, t.autoreconnect && t.reconnect();
4424
4433
  }
4425
- function w(g) {
4426
- console.log("[event] socketError", event), t.debug && console.log("[socket] Error", g), l.dispatch("error", g);
4434
+ function w(h) {
4435
+ console.log("[event] socketError", event), t.debug && console.log("[socket] Error", h), f.dispatch("error", h);
4427
4436
  }
4428
- function b(g) {
4429
- const c = JSON.parse(g.data);
4430
- t.debug && console.log("[socket] message received", c), l.dispatch("message", c), c.channel && l.dispatch(c.channel, c);
4437
+ function A(h) {
4438
+ const d = JSON.parse(h.data);
4439
+ t.debug && console.log("[socket] message received", d), f.dispatch("message", d), d.channel && f.dispatch(d.channel, d);
4431
4440
  }
4432
- async function u(g) {
4433
- if (!n || n.readyState !== WebSocket.OPEN) {
4434
- t.debug && console.log("[socket] - frame dropped, socket not open", g);
4441
+ async function u(h) {
4442
+ if (!a || a.readyState !== WebSocket.OPEN) {
4443
+ t.debug && console.log("[socket] - frame dropped, socket not open", h);
4435
4444
  return;
4436
4445
  }
4437
- n.send(JSON.stringify(g));
4446
+ a.send(JSON.stringify(h));
4438
4447
  }
4439
4448
  function o() {
4440
- return new Promise(function(g) {
4441
- function c() {
4449
+ return new Promise(function(h) {
4450
+ function d() {
4442
4451
  if (t.connected)
4443
- return g(n);
4444
- setTimeout(c, 1e3);
4452
+ return h(a);
4453
+ setTimeout(d, 1e3);
4445
4454
  }
4446
- c();
4455
+ d();
4447
4456
  });
4448
4457
  }
4449
4458
  t.connect = async function() {
4450
- if (n)
4451
- return n.connected ? (console.log("[socket] - Socket is already connected"), n) : o();
4452
- const g = e.auth.getCurrentToken();
4453
- if (!g) {
4459
+ if (a)
4460
+ return a.connected ? (console.log("[socket] - Socket is already connected"), a) : o();
4461
+ const h = e.auth.getCurrentToken();
4462
+ if (!h) {
4454
4463
  t.debug && console.log("[socket] - Must be authenticated to connect to socket");
4455
4464
  return;
4456
4465
  }
4457
- return n = new WebSocket(`${t.url}?access_token=${g}&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();
4466
+ return a = new WebSocket(`${t.url}?access_token=${h}&windowid=${i}`), a.addEventListener("close", p), a.addEventListener("error", w), a.addEventListener("open", c), a.addEventListener("message", A), t.debug && console.log("[socket] - Connected with event listeners"), o();
4458
4467
  }, t.reconnect = async function() {
4459
4468
  if (!t.connected)
4460
4469
  return t.debug && console.log("[socket] reconnecting..."), await t.connect();
4461
4470
  }, t.close = async function() {
4462
- if (!n) {
4471
+ if (!a) {
4463
4472
  console.log("[socket] - Socket is not connected");
4464
4473
  return;
4465
4474
  }
4466
- const g = t.autoreconnect;
4467
- 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 = g;
4468
- }, t.disconnect = t.close, t.subscribe = async function(g) {
4469
- if (!n) {
4475
+ const h = t.autoreconnect;
4476
+ t.autoreconnect = !1, a.close(), a.removeEventListener("close", p), a.removeEventListener("error", w), a.removeEventListener("open", c), a.removeEventListener("message", A), a = null, p({ wasClean: !0 }), t.autoreconnect = h;
4477
+ }, t.disconnect = t.close, t.subscribe = async function(h) {
4478
+ if (!a) {
4470
4479
  console.log("[socket] - Can't subscribe to channel as socket is not connected");
4471
4480
  return;
4472
4481
  }
4473
4482
  u({
4474
4483
  action: "subscribe",
4475
- channel: g
4476
- }), y[g] = !0, l.dispatch("subscribe", g), t.debug && console.log(`[socket] - subscribed to ${g}`);
4477
- }, t.unsubscribe = async function(g) {
4478
- if (!n) {
4484
+ channel: h
4485
+ }), s[h] = !0, f.dispatch("subscribe", h), t.debug && console.log(`[socket] - subscribed to ${h}`);
4486
+ }, t.unsubscribe = async function(h) {
4487
+ if (!a) {
4479
4488
  console.log("[socket] - Can't unsubscribe from channel as socket is not connected");
4480
4489
  return;
4481
4490
  }
4482
4491
  u({
4483
4492
  action: "unsubscribe",
4484
- channel: g
4485
- }), delete y[g], l.dispatch("unsubscribe", g), t.debug && console.log(`[socket] - unsubscribed from ${g}`);
4493
+ channel: h
4494
+ }), delete s[h], f.dispatch("unsubscribe", h), t.debug && console.log(`[socket] - unsubscribed from ${h}`);
4486
4495
  };
4487
- let f = e.utils.id(e.auth.getCurrentUser()?.organisation);
4488
- return e.auth.addEventListener("change", async function(g) {
4489
- const c = e.utils.id(g?.organisation);
4490
- c !== f && (f = c, n && (t.debug && console.log("[socket] - organisation changed, reconnecting"), await t.close(), await t.reconnect()));
4496
+ let m = e.utils.id(e.auth.getCurrentUser()?.organisation);
4497
+ return e.auth.addEventListener("change", async function(h) {
4498
+ const d = e.utils.id(h?.organisation);
4499
+ d !== m && (m = d, a && (t.debug && console.log("[socket] - organisation changed, reconnecting"), await t.close(), await t.reconnect()));
4491
4500
  }), t;
4492
4501
  };
4493
4502
  function Ft(e) {
@@ -4522,28 +4531,28 @@ function Ft(e) {
4522
4531
  value: q,
4523
4532
  writable: !1
4524
4533
  });
4525
- const i = new Ot(r);
4534
+ const n = new Ot(r);
4526
4535
  Object.defineProperty(r, "files", {
4527
- value: i,
4536
+ value: n,
4528
4537
  writable: !1
4529
- }), new De().bootstrap(r), r.error = function(f) {
4530
- return r.dispatch("error", t.errorMessage(f));
4531
- }, r.notify = function(f, g) {
4532
- return r.dispatch("notification", { message: f, options: g });
4538
+ }), new De().bootstrap(r), r.error = function(m) {
4539
+ return r.dispatch("error", t.errorMessage(m));
4540
+ }, r.notify = function(m, h) {
4541
+ return r.dispatch("notification", { message: m, options: h });
4533
4542
  };
4534
- const l = new mt(r);
4543
+ const f = new mt(r);
4535
4544
  Object.defineProperty(r, "api", {
4536
- value: l,
4545
+ value: f,
4537
4546
  writable: !1
4538
4547
  });
4539
- const p = new Pt(r);
4548
+ const c = new Pt(r);
4540
4549
  Object.defineProperty(r, "auth", {
4541
- value: p,
4550
+ value: c,
4542
4551
  writable: !1
4543
4552
  });
4544
- const m = new kt(r);
4553
+ const p = new Rt(r);
4545
4554
  Object.defineProperty(r, "socket", {
4546
- value: m,
4555
+ value: p,
4547
4556
  writable: !1
4548
4557
  });
4549
4558
  const w = new Mt(r);
@@ -4551,12 +4560,12 @@ function Ft(e) {
4551
4560
  value: w,
4552
4561
  writable: !1
4553
4562
  });
4554
- const b = new Tt(r);
4563
+ const A = new Tt(r);
4555
4564
  Object.defineProperty(r, "system", {
4556
- value: b,
4565
+ value: A,
4557
4566
  writable: !1
4558
4567
  });
4559
- const u = new Rt(r);
4568
+ const u = new kt(r);
4560
4569
  Object.defineProperty(r, "geo", {
4561
4570
  value: u,
4562
4571
  writable: !1