@aikaara/chat-sdk 1.5.30 → 1.5.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- class lc {
1
+ class cc {
2
2
  identifier;
3
3
  callbacks = {};
4
4
  sendFn;
@@ -63,7 +63,7 @@ class Us {
63
63
  this.ws && (this.ws.onclose = null, this.ws.close(), this.ws = null), this.subscriptions.forEach((e) => e._notifyDisconnected()), this.subscriptions.clear();
64
64
  }
65
65
  subscribe(e) {
66
- const t = JSON.stringify(e), r = new lc(t, (i) => {
66
+ const t = JSON.stringify(e), r = new cc(t, (i) => {
67
67
  this.send({
68
68
  command: "message",
69
69
  identifier: t,
@@ -163,8 +163,8 @@ class pa {
163
163
  this.handlers.clear();
164
164
  }
165
165
  }
166
- const cc = 1e3, uc = 10, dc = 400, hc = 600, Bs = "#6366f1", fc = 12, pc = "system-ui, -apple-system, sans-serif", Fs = "Type a message...", mc = "bottom-right", gc = "light", bc = { x: 20, y: 20 }, cn = "aikaara_conversation_id";
167
- class yc extends pa {
166
+ const uc = 1e3, dc = 10, hc = 400, fc = 600, Bs = "#6366f1", pc = 12, mc = "system-ui, -apple-system, sans-serif", Fs = "Type a message...", gc = "bottom-right", bc = "light", yc = { x: 20, y: 20 }, cn = "aikaara_conversation_id";
167
+ class vc extends pa {
168
168
  client;
169
169
  config;
170
170
  state = "disconnected";
@@ -221,13 +221,13 @@ class yc extends pa {
221
221
  this.state !== e && (this.state = e, this.emit("connection:state", e));
222
222
  }
223
223
  scheduleReconnect() {
224
- const e = this.config.maxReconnectAttempts ?? uc;
224
+ const e = this.config.maxReconnectAttempts ?? dc;
225
225
  if (this.reconnectAttempt >= e) {
226
226
  this.emit("error", new Error("Max reconnection attempts reached"));
227
227
  return;
228
228
  }
229
229
  this.setState("reconnecting");
230
- const r = (this.config.reconnectInterval ?? cc) * Math.pow(2, this.reconnectAttempt);
230
+ const r = (this.config.reconnectInterval ?? uc) * Math.pow(2, this.reconnectAttempt);
231
231
  this.reconnectAttempt++, this.reconnectTimer = setTimeout(async () => {
232
232
  try {
233
233
  const i = this.buildWsUrl(this.config.baseUrl, this.config.userToken);
@@ -247,7 +247,7 @@ class yc extends pa {
247
247
  return `${e.replace(/^http/, "ws")}/cable?token=${t}`;
248
248
  }
249
249
  }
250
- class vc {
250
+ class wc {
251
251
  baseUrl;
252
252
  apiKey;
253
253
  authToken;
@@ -354,7 +354,7 @@ class vc {
354
354
  return r && (n.body = JSON.stringify(r)), fetch(e, n);
355
355
  }
356
356
  }
357
- class wc {
357
+ class kc {
358
358
  _messages = [];
359
359
  optimisticCounter = 0;
360
360
  get messages() {
@@ -512,7 +512,7 @@ function ma(s) {
512
512
  const r = e.payload?.elements?.[0]?.action?.url;
513
513
  return typeof r == "string" ? r : void 0;
514
514
  }
515
- class kc {
515
+ class xc {
516
516
  _conversationId;
517
517
  persist;
518
518
  constructor(e, t = !0) {
@@ -546,23 +546,23 @@ class kc {
546
546
  }
547
547
  }
548
548
  }
549
- var xs = Object.defineProperty, xc = Object.getOwnPropertyDescriptor, _c = Object.getOwnPropertyNames, Sc = Object.prototype.hasOwnProperty, Qe = (s, e) => () => (s && (e = s(s = 0)), e), me = (s, e) => () => (e || s((e = { exports: {} }).exports, e), e.exports), Qt = (s, e) => {
549
+ var xs = Object.defineProperty, _c = Object.getOwnPropertyDescriptor, Sc = Object.getOwnPropertyNames, Ec = Object.prototype.hasOwnProperty, Qe = (s, e) => () => (s && (e = s(s = 0)), e), me = (s, e) => () => (e || s((e = { exports: {} }).exports, e), e.exports), Qt = (s, e) => {
550
550
  for (var t in e) xs(s, t, { get: e[t], enumerable: !0 });
551
- }, Ec = (s, e, t, r) => {
552
- if (e && typeof e == "object" || typeof e == "function") for (let i of _c(e)) !Sc.call(s, i) && i !== t && xs(s, i, { get: () => e[i], enumerable: !(r = xc(e, i)) || r.enumerable });
551
+ }, Ac = (s, e, t, r) => {
552
+ if (e && typeof e == "object" || typeof e == "function") for (let i of Sc(e)) !Ec.call(s, i) && i !== t && xs(s, i, { get: () => e[i], enumerable: !(r = _c(e, i)) || r.enumerable });
553
553
  return s;
554
- }, Re = (s) => Ec(xs({}, "__esModule", { value: !0 }), s), le = Qe(() => {
554
+ }, Re = (s) => Ac(xs({}, "__esModule", { value: !0 }), s), le = Qe(() => {
555
555
  }), De = {};
556
556
  Qt(De, { _debugEnd: () => ti, _debugProcess: () => ei, _events: () => gi, _eventsCount: () => bi, _exiting: () => Bn, _fatalExceptions: () => Qn, _getActiveHandles: () => xa, _getActiveRequests: () => ka, _kill: () => Hn, _linkedBinding: () => va, _maxListeners: () => mi, _preload_modules: () => fi, _rawDebug: () => Dn, _startProfilerIdleNotifier: () => ri, _stopProfilerIdleNotifier: () => ni, _tickCallback: () => Zn, abort: () => ai, addListener: () => yi, allowedNodeEnvironmentFlags: () => Yn, arch: () => _n, argv: () => An, argv0: () => hi, assert: () => _a, binding: () => On, browser: () => jn, chdir: () => Nn, config: () => Fn, cpuUsage: () => ar, cwd: () => Mn, debugPort: () => di, default: () => Ss, dlopen: () => wa, domain: () => Un, emit: () => _i, emitWarning: () => Pn, env: () => En, execArgv: () => In, execPath: () => ui, exit: () => Kn, features: () => Jn, hasUncaughtExceptionCaptureCallback: () => Sa, hrtime: () => Sr, kill: () => Vn, listeners: () => Aa, memoryUsage: () => zn, moduleLoadList: () => $n, nextTick: () => ba, off: () => wi, on: () => pt, once: () => vi, openStdin: () => Gn, pid: () => li, platform: () => Sn, ppid: () => ci, prependListener: () => Si, prependOnceListener: () => Ei, reallyExit: () => qn, release: () => Rn, removeAllListeners: () => xi, removeListener: () => ki, resourceUsage: () => Wn, setSourceMapsEnabled: () => pi, setUncaughtExceptionCaptureCallback: () => Xn, stderr: () => si, stdin: () => oi, stdout: () => ii, title: () => xn, umask: () => Ln, uptime: () => Ea, version: () => Tn, versions: () => Cn });
557
557
  function _s(s) {
558
558
  throw new Error("Node.js process " + s + " is not supported by JSPM core outside of Node.js");
559
559
  }
560
- function Ac() {
560
+ function Ic() {
561
561
  !Dt || !Rt || (Dt = !1, Rt.length ? dt = Rt.concat(dt) : hr = -1, dt.length && ga());
562
562
  }
563
563
  function ga() {
564
564
  if (!Dt) {
565
- var s = setTimeout(Ac, 0);
565
+ var s = setTimeout(Ic, 0);
566
566
  Dt = !0;
567
567
  for (var e = dt.length; e; ) {
568
568
  for (Rt = dt, dt = []; ++hr < e; ) Rt && Rt[hr].run();
@@ -612,7 +612,7 @@ function pt() {
612
612
  function Aa(s) {
613
613
  return [];
614
614
  }
615
- var dt, Dt, Rt, hr, xn, _n, Sn, En, An, In, Tn, Cn, Pn, On, Ln, Mn, Nn, Rn, jn, Dn, $n, Un, Bn, Fn, qn, Hn, ar, Wn, zn, Vn, Kn, Gn, Yn, Jn, Qn, Xn, Zn, ei, ti, ri, ni, ii, si, oi, ai, li, ci, ui, di, hi, fi, pi, gt, un, Er, mi, gi, bi, yi, vi, wi, ki, xi, _i, Si, Ei, Ss, Ic = Qe(() => {
615
+ var dt, Dt, Rt, hr, xn, _n, Sn, En, An, In, Tn, Cn, Pn, On, Ln, Mn, Nn, Rn, jn, Dn, $n, Un, Bn, Fn, qn, Hn, ar, Wn, zn, Vn, Kn, Gn, Yn, Jn, Qn, Xn, Zn, ei, ti, ri, ni, ii, si, oi, ai, li, ci, ui, di, hi, fi, pi, gt, un, Er, mi, gi, bi, yi, vi, wi, ki, xi, _i, Si, Ei, Ss, Tc = Qe(() => {
616
616
  le(), ue(), ce(), dt = [], Dt = !1, hr = -1, ya.prototype.run = function() {
617
617
  this.fun.apply(null, this.array);
618
618
  }, xn = "browser", _n = "x64", Sn = "browser", En = { PATH: "/usr/bin", LANG: typeof navigator < "u" ? navigator.language + ".UTF-8" : void 0, PWD: "/", HOME: "/home", TMP: "/tmp" }, An = ["/usr/bin/node"], In = [], Tn = "v16.8.0", Cn = {}, Pn = function(s, e) {
@@ -631,9 +631,9 @@ var dt, Dt, Rt, hr, xn, _n, Sn, En, An, In, Tn, Cn, Pn, On, Ln, Mn, Nn, Rn, jn,
631
631
  return typeof BigInt > "u" ? e[0] * Er + e[1] : BigInt(e[0] * Er) + BigInt(e[1]);
632
632
  }, mi = 10, gi = {}, bi = 0, yi = pt, vi = pt, wi = pt, ki = pt, xi = pt, _i = We, Si = pt, Ei = pt, Ss = { version: Tn, versions: Cn, arch: _n, platform: Sn, browser: jn, release: Rn, _rawDebug: Dn, moduleLoadList: $n, binding: On, _linkedBinding: va, _events: gi, _eventsCount: bi, _maxListeners: mi, on: pt, addListener: yi, once: vi, off: wi, removeListener: ki, removeAllListeners: xi, emit: _i, prependListener: Si, prependOnceListener: Ei, listeners: Aa, domain: Un, _exiting: Bn, config: Fn, dlopen: wa, uptime: Ea, _getActiveRequests: ka, _getActiveHandles: xa, reallyExit: qn, _kill: Hn, cpuUsage: ar, resourceUsage: Wn, memoryUsage: zn, kill: Vn, exit: Kn, openStdin: Gn, allowedNodeEnvironmentFlags: Yn, assert: _a, features: Jn, _fatalExceptions: Qn, setUncaughtExceptionCaptureCallback: Xn, hasUncaughtExceptionCaptureCallback: Sa, emitWarning: Pn, nextTick: ba, _tickCallback: Zn, _debugProcess: ei, _debugEnd: ti, _startProfilerIdleNotifier: ri, _stopProfilerIdleNotifier: ni, stdout: ii, stdin: oi, stderr: si, abort: ai, umask: Ln, chdir: Nn, cwd: Mn, env: En, title: xn, argv: An, execArgv: In, pid: li, ppid: ci, execPath: ui, debugPort: di, hrtime: Sr, argv0: hi, _preload_modules: fi, setSourceMapsEnabled: pi };
633
633
  }), ce = Qe(() => {
634
- Ic();
634
+ Tc();
635
635
  });
636
- function Tc() {
636
+ function Cc() {
637
637
  if (Ai) return Wt;
638
638
  Ai = !0, Wt.byteLength = a, Wt.toByteArray = c, Wt.fromByteArray = p;
639
639
  for (var s = [], e = [], t = typeof Uint8Array < "u" ? Uint8Array : Array, r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", i = 0, n = r.length; i < n; ++i) s[i] = r[i], e[r.charCodeAt(i)] = i;
@@ -671,7 +671,7 @@ function Tc() {
671
671
  }
672
672
  return Wt;
673
673
  }
674
- function Cc() {
674
+ function Pc() {
675
675
  return Ii ? lr : (Ii = !0, lr.read = function(s, e, t, r, i) {
676
676
  var n, o, a = i * 8 - r - 1, l = (1 << a) - 1, c = l >> 1, u = -7, d = t ? i - 1 : 0, p = t ? -1 : 1, g = s[e + d];
677
677
  for (d += p, n = g & (1 << -u) - 1, g >>= -u, u += a; u > 0; n = n * 256 + s[e + d], d += p, u -= 8) ;
@@ -689,10 +689,10 @@ function Cc() {
689
689
  s[t + g - h] |= b * 128;
690
690
  }, lr);
691
691
  }
692
- function Pc() {
692
+ function Oc() {
693
693
  if (Ti) return It;
694
694
  Ti = !0;
695
- let s = Tc(), e = Cc(), t = typeof Symbol == "function" && typeof Symbol.for == "function" ? /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom") : null;
695
+ let s = Cc(), e = Pc(), t = typeof Symbol == "function" && typeof Symbol.for == "function" ? /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom") : null;
696
696
  It.Buffer = o, It.SlowBuffer = w, It.INSPECT_MAX_BYTES = 50;
697
697
  let r = 2147483647;
698
698
  It.kMaxLength = r, o.TYPED_ARRAY_SUPPORT = i(), !o.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");
@@ -1447,12 +1447,12 @@ function Pc() {
1447
1447
  }
1448
1448
  return It;
1449
1449
  }
1450
- var Wt, Ai, lr, Ii, It, Ti, Oc = Qe(() => {
1450
+ var Wt, Ai, lr, Ii, It, Ti, Lc = Qe(() => {
1451
1451
  le(), ue(), ce(), Wt = {}, Ai = !1, lr = {}, Ii = !1, It = {}, Ti = !1;
1452
1452
  }), Fe = {};
1453
1453
  Qt(Fe, { Buffer: () => Jr, INSPECT_MAX_BYTES: () => Ia, default: () => mt, kMaxLength: () => Ta });
1454
1454
  var mt, Jr, Ia, Ta, qe = Qe(() => {
1455
- le(), ue(), ce(), Oc(), mt = Pc(), mt.Buffer, mt.SlowBuffer, mt.INSPECT_MAX_BYTES, mt.kMaxLength, Jr = mt.Buffer, Ia = mt.INSPECT_MAX_BYTES, Ta = mt.kMaxLength;
1455
+ le(), ue(), ce(), Lc(), mt = Oc(), mt.Buffer, mt.SlowBuffer, mt.INSPECT_MAX_BYTES, mt.kMaxLength, Jr = mt.Buffer, Ia = mt.INSPECT_MAX_BYTES, Ta = mt.kMaxLength;
1456
1456
  }), ue = Qe(() => {
1457
1457
  qe();
1458
1458
  }), Ue = me((s, e) => {
@@ -1699,7 +1699,7 @@ var mt, Jr, Ia, Ta, qe = Qe(() => {
1699
1699
  e.exports = t, e.exports.AbortSignal = r, e.exports.default = t;
1700
1700
  }), Pt = {};
1701
1701
  Qt(Pt, { EventEmitter: () => Pa, default: () => zt, defaultMaxListeners: () => Oa, init: () => La, listenerCount: () => Ma, on: () => Na, once: () => Ra });
1702
- function Lc() {
1702
+ function Mc() {
1703
1703
  if (Ci) return cr;
1704
1704
  Ci = !0;
1705
1705
  var s = typeof Reflect == "object" ? Reflect : null, e = s && typeof s.apply == "function" ? s.apply : function(_, v, S) {
@@ -1871,7 +1871,7 @@ function Lc() {
1871
1871
  return cr;
1872
1872
  }
1873
1873
  var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
1874
- le(), ue(), ce(), cr = {}, Ci = !1, zt = Lc(), zt.once, zt.once = function(s, e) {
1874
+ le(), ue(), ce(), cr = {}, Ci = !1, zt = Mc(), zt.once, zt.once = function(s, e) {
1875
1875
  return new Promise((t, r) => {
1876
1876
  function i(...o) {
1877
1877
  n !== void 0 && s.removeListener("error", n), t(o);
@@ -2507,7 +2507,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
2507
2507
  }
2508
2508
  return g;
2509
2509
  };
2510
- }), Mc = me((s, e) => {
2510
+ }), Nc = me((s, e) => {
2511
2511
  le(), ue(), ce();
2512
2512
  var { StringPrototypeSlice: t, SymbolIterator: r, TypedArrayPrototypeSet: i, Uint8Array: n } = Ue(), { Buffer: o } = (qe(), Re(Fe)), { inspect: a } = Je();
2513
2513
  e.exports = class {
@@ -2610,7 +2610,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
2610
2610
  return c(p.objectMode);
2611
2611
  }
2612
2612
  e.exports = { getHighWaterMark: d, getDefaultHighWaterMark: c, setDefaultHighWaterMark: u };
2613
- }), Nc = me((s, e) => {
2613
+ }), Rc = me((s, e) => {
2614
2614
  le(), ue(), ce();
2615
2615
  var t = (qe(), Re(Fe)), r = t.Buffer;
2616
2616
  function i(o, a) {
@@ -2634,9 +2634,9 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
2634
2634
  if (typeof o != "number") throw new TypeError("Argument must be a number");
2635
2635
  return t.SlowBuffer(o);
2636
2636
  };
2637
- }), Rc = me((s) => {
2637
+ }), jc = me((s) => {
2638
2638
  le(), ue(), ce();
2639
- var e = Nc().Buffer, t = e.isEncoding || function(m) {
2639
+ var e = Rc().Buffer, t = e.isEncoding || function(m) {
2640
2640
  switch (m = "" + m, m && m.toLowerCase()) {
2641
2641
  case "hex":
2642
2642
  case "utf8":
@@ -2835,7 +2835,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
2835
2835
  e.exports = ae, ae.ReadableState = we;
2836
2836
  var { EventEmitter: b } = (Ut(), Re(Pt)), { Stream: y, prependListener: w } = Es(), { Buffer: m } = (qe(), Re(Fe)), { addAbortSignal: k } = tn(), _ = Ot(), v = Je().debuglog("stream", (C) => {
2837
2837
  v = C;
2838
- }), S = Mc(), E = Xt(), { getHighWaterMark: I, getDefaultHighWaterMark: P } = rn(), { aggregateTwoErrors: L, codes: { ERR_INVALID_ARG_TYPE: D, ERR_METHOD_NOT_IMPLEMENTED: T, ERR_OUT_OF_RANGE: q, ERR_STREAM_PUSH_AFTER_EOF: F, ERR_STREAM_UNSHIFT_AFTER_END_EVENT: $ }, AbortError: se } = Ye(), { validateObject: j } = gr(), W = h("kPaused"), { StringDecoder: re } = Rc(), U = ja();
2838
+ }), S = Nc(), E = Xt(), { getHighWaterMark: I, getDefaultHighWaterMark: P } = rn(), { aggregateTwoErrors: L, codes: { ERR_INVALID_ARG_TYPE: D, ERR_METHOD_NOT_IMPLEMENTED: T, ERR_OUT_OF_RANGE: q, ERR_STREAM_PUSH_AFTER_EOF: F, ERR_STREAM_UNSHIFT_AFTER_END_EVENT: $ }, AbortError: se } = Ye(), { validateObject: j } = gr(), W = h("kPaused"), { StringDecoder: re } = jc(), U = ja();
2839
2839
  c(ae.prototype, y.prototype), c(ae, y);
2840
2840
  var Q = () => {
2841
2841
  }, { errorOrDestroy: O } = E, J = 1, fe = 2, ee = 4, ve = 8, G = 16, R = 32, ne = 64, V = 128, Y = 256, X = 512, be = 1024, oe = 2048, M = 4096, H = 8192, te = 16384, he = 32768, pe = 65536, ye = 1 << 17, z = 1 << 18;
@@ -3415,7 +3415,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
3415
3415
  }, j.toWeb = function(M) {
3416
3416
  return oe().newWritableStreamFromStreamWritable(M);
3417
3417
  };
3418
- }), jc = me((s, e) => {
3418
+ }), Dc = me((s, e) => {
3419
3419
  le(), ue(), ce();
3420
3420
  var t = Bt(), r = (qe(), Re(Fe)), { isReadable: i, isWritable: n, isIterable: o, isNodeStream: a, isReadableNodeStream: l, isWritableNodeStream: c, isDuplexNodeStream: u, isReadableStream: d, isWritableStream: p } = wt(), g = Ot(), { AbortError: h, codes: { ERR_INVALID_ARG_TYPE: b, ERR_INVALID_RETURN_VALUE: y } } = Ye(), { destroyer: w } = Xt(), m = yt(), k = nn(), _ = As(), { createDeferredPromise: v } = Je(), S = ja(), E = globalThis.Blob || r.Blob, I = typeof E < "u" ? function(F) {
3421
3421
  return F instanceof E;
@@ -3572,7 +3572,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
3572
3572
  };
3573
3573
  var d;
3574
3574
  l.from = function(p) {
3575
- return d || (d = jc()), d(p, "body");
3575
+ return d || (d = Dc()), d(p, "body");
3576
3576
  };
3577
3577
  }), Da = me((s, e) => {
3578
3578
  le(), ue(), ce();
@@ -3892,7 +3892,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
3892
3892
  !T && v !== null && (T = new p()), _ = null, m = null, k = null, v === null ? q(T) : (v = q, n(P) && i(P, T));
3893
3893
  }, S;
3894
3894
  };
3895
- }), Dc = me((s, e) => {
3895
+ }), $c = me((s, e) => {
3896
3896
  le(), ue(), ce();
3897
3897
  var t = globalThis.AbortController || pr().AbortController, { codes: { ERR_INVALID_ARG_VALUE: r, ERR_INVALID_ARG_TYPE: i, ERR_MISSING_ARGS: n, ERR_OUT_OF_RANGE: o }, AbortError: a } = Ye(), { validateAbortSignal: l, validateInteger: c, validateObject: u } = gr(), d = Ue().Symbol("kWeak"), p = Ue().Symbol("kResistStopPropagation"), { finished: g } = Ot(), h = Ua(), { addAbortSignalNoValidate: b } = tn(), { isWritable: y, isNodeStream: w } = wt(), { deprecate: m } = Je(), { ArrayPrototypePush: k, Boolean: _, MathFloor: v, Number: S, NumberIsNaN: E, Promise: I, PromiseReject: P, PromiseResolve: L, PromisePrototypeThen: D, Symbol: T } = Ue(), q = T("kEmpty"), F = T("kEof");
3898
3898
  function $(V, Y) {
@@ -4089,7 +4089,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
4089
4089
  e.exports = { finished: l, pipeline: c };
4090
4090
  }), Fa = me((s, e) => {
4091
4091
  le(), ue(), ce();
4092
- var { Buffer: t } = (qe(), Re(Fe)), { ObjectDefineProperty: r, ObjectKeys: i, ReflectApply: n } = Ue(), { promisify: { custom: o } } = Je(), { streamReturningOperators: a, promiseReturningOperators: l } = Dc(), { codes: { ERR_ILLEGAL_CONSTRUCTOR: c } } = Ye(), u = Ua(), { setDefaultHighWaterMark: d, getDefaultHighWaterMark: p } = rn(), { pipeline: g } = Is(), { destroyer: h } = Xt(), b = Ot(), y = Ba(), w = wt(), m = e.exports = Es().Stream;
4092
+ var { Buffer: t } = (qe(), Re(Fe)), { ObjectDefineProperty: r, ObjectKeys: i, ReflectApply: n } = Ue(), { promisify: { custom: o } } = Je(), { streamReturningOperators: a, promiseReturningOperators: l } = $c(), { codes: { ERR_ILLEGAL_CONSTRUCTOR: c } } = Ye(), u = Ua(), { setDefaultHighWaterMark: d, getDefaultHighWaterMark: p } = rn(), { pipeline: g } = Is(), { destroyer: h } = Xt(), b = Ot(), y = Ba(), w = wt(), m = e.exports = Es().Stream;
4093
4093
  m.isDestroyed = w.isDestroyed, m.isDisturbed = w.isDisturbed, m.isErrored = w.isErrored, m.isReadable = w.isReadable, m.isWritable = w.isWritable, m.Readable = nn();
4094
4094
  for (let _ of i(a)) {
4095
4095
  let v = function(...E) {
@@ -4124,7 +4124,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
4124
4124
  e.exports = t.Readable, e.exports._uint8ArrayToBuffer = t._uint8ArrayToBuffer, e.exports._isUint8Array = t._isUint8Array, e.exports.isDisturbed = t.isDisturbed, e.exports.isErrored = t.isErrored, e.exports.isReadable = t.isReadable, e.exports.Readable = t.Readable, e.exports.Writable = t.Writable, e.exports.Duplex = t.Duplex, e.exports.Transform = t.Transform, e.exports.PassThrough = t.PassThrough, e.exports.addAbortSignal = t.addAbortSignal, e.exports.finished = t.finished, e.exports.destroy = t.destroy, e.exports.destroy = i, e.exports.pipeline = t.pipeline, e.exports.compose = t.compose, Object.defineProperty(t, "promises", { configurable: !0, enumerable: !0, get() {
4125
4125
  return r;
4126
4126
  } }), e.exports.Stream = t.Stream, e.exports.default = e.exports;
4127
- }), $c = me((s, e) => {
4127
+ }), Uc = me((s, e) => {
4128
4128
  le(), ue(), ce(), typeof Object.create == "function" ? e.exports = function(t, r) {
4129
4129
  r && (t.super_ = r, t.prototype = Object.create(r.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }));
4130
4130
  } : e.exports = function(t, r) {
@@ -4135,7 +4135,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
4135
4135
  i.prototype = r.prototype, t.prototype = new i(), t.prototype.constructor = t;
4136
4136
  }
4137
4137
  };
4138
- }), Uc = me((s, e) => {
4138
+ }), Bc = me((s, e) => {
4139
4139
  le(), ue(), ce();
4140
4140
  var { Buffer: t } = (qe(), Re(Fe)), r = /* @__PURE__ */ Symbol.for("BufferList");
4141
4141
  function i(n) {
@@ -4259,9 +4259,9 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
4259
4259
  }, i.isBufferList = function(n) {
4260
4260
  return n != null && n[r];
4261
4261
  }, e.exports = i;
4262
- }), Bc = me((s, e) => {
4262
+ }), Fc = me((s, e) => {
4263
4263
  le(), ue(), ce();
4264
- var t = Ft().Duplex, r = $c(), i = Uc();
4264
+ var t = Ft().Duplex, r = Uc(), i = Bc();
4265
4265
  function n(o) {
4266
4266
  if (!(this instanceof n)) return new n(o);
4267
4267
  if (typeof o == "function") {
@@ -4291,7 +4291,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
4291
4291
  }, n.prototype._isBufferList = function(o) {
4292
4292
  return o instanceof n || o instanceof i || n.isBufferList(o);
4293
4293
  }, n.isBufferList = i.isBufferList, e.exports = n, e.exports.BufferListStream = n, e.exports.BufferList = i;
4294
- }), Fc = me((s, e) => {
4294
+ }), qc = me((s, e) => {
4295
4295
  le(), ue(), ce();
4296
4296
  var t = class {
4297
4297
  constructor() {
@@ -4325,7 +4325,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
4325
4325
  })));
4326
4326
  }
4327
4327
  t.PUBLISH_HEADER = i("publish"), t.SUBSCRIBE_HEADER = i("subscribe"), t.SUBSCRIBE_OPTIONS_QOS_MASK = 3, t.SUBSCRIBE_OPTIONS_NL_MASK = 1, t.SUBSCRIBE_OPTIONS_NL_SHIFT = 2, t.SUBSCRIBE_OPTIONS_RAP_MASK = 1, t.SUBSCRIBE_OPTIONS_RAP_SHIFT = 3, t.SUBSCRIBE_OPTIONS_RH_MASK = 3, t.SUBSCRIBE_OPTIONS_RH_SHIFT = 4, t.SUBSCRIBE_OPTIONS_RH = [0, 16, 32], t.SUBSCRIBE_OPTIONS_NL = 4, t.SUBSCRIBE_OPTIONS_RAP = 8, t.SUBSCRIBE_OPTIONS_QOS = [0, 1, 2], t.UNSUBSCRIBE_HEADER = i("unsubscribe"), t.ACKS = { unsuback: i("unsuback"), puback: i("puback"), pubcomp: i("pubcomp"), pubrel: i("pubrel"), pubrec: i("pubrec") }, t.SUBACK_HEADER = r.from([t.codes.suback << t.CMD_SHIFT]), t.VERSION3 = r.from([3]), t.VERSION4 = r.from([4]), t.VERSION5 = r.from([5]), t.VERSION131 = r.from([131]), t.VERSION132 = r.from([132]), t.QOS = [0, 1, 2].map((n) => r.from([n])), t.EMPTY = { pingreq: r.from([t.codes.pingreq << 4, 0]), pingresp: r.from([t.codes.pingresp << 4, 0]), disconnect: r.from([t.codes.disconnect << 4, 0]) }, t.MQTT5_PUBACK_PUBREC_CODES = { 0: "Success", 16: "No matching subscribers", 128: "Unspecified error", 131: "Implementation specific error", 135: "Not authorized", 144: "Topic Name invalid", 145: "Packet identifier in use", 151: "Quota exceeded", 153: "Payload format invalid" }, t.MQTT5_PUBREL_PUBCOMP_CODES = { 0: "Success", 146: "Packet Identifier not found" }, t.MQTT5_SUBACK_CODES = { 0: "Granted QoS 0", 1: "Granted QoS 1", 2: "Granted QoS 2", 128: "Unspecified error", 131: "Implementation specific error", 135: "Not authorized", 143: "Topic Filter invalid", 145: "Packet Identifier in use", 151: "Quota exceeded", 158: "Shared Subscriptions not supported", 161: "Subscription Identifiers not supported", 162: "Wildcard Subscriptions not supported" }, t.MQTT5_UNSUBACK_CODES = { 0: "Success", 17: "No subscription existed", 128: "Unspecified error", 131: "Implementation specific error", 135: "Not authorized", 143: "Topic Filter invalid", 145: "Packet Identifier in use" }, t.MQTT5_DISCONNECT_CODES = { 0: "Normal disconnection", 4: "Disconnect with Will Message", 128: "Unspecified error", 129: "Malformed Packet", 130: "Protocol Error", 131: "Implementation specific error", 135: "Not authorized", 137: "Server busy", 139: "Server shutting down", 141: "Keep Alive timeout", 142: "Session taken over", 143: "Topic Filter invalid", 144: "Topic Name invalid", 147: "Receive Maximum exceeded", 148: "Topic Alias invalid", 149: "Packet too large", 150: "Message rate too high", 151: "Quota exceeded", 152: "Administrative action", 153: "Payload format invalid", 154: "Retain not supported", 155: "QoS not supported", 156: "Use another server", 157: "Server moved", 158: "Shared Subscriptions not supported", 159: "Connection rate exceeded", 160: "Maximum connect time", 161: "Subscription Identifiers not supported", 162: "Wildcard Subscriptions not supported" }, t.MQTT5_AUTH_CODES = { 0: "Success", 24: "Continue authentication", 25: "Re-authenticate" };
4328
- }), qc = me((s, e) => {
4328
+ }), Hc = me((s, e) => {
4329
4329
  le(), ue(), ce();
4330
4330
  var t = 1e3, r = t * 60, i = r * 60, n = i * 24, o = n * 7, a = n * 365.25;
4331
4331
  e.exports = function(p, g) {
@@ -4397,10 +4397,10 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
4397
4397
  var y = g >= h * 1.5;
4398
4398
  return Math.round(p / h) + " " + b + (y ? "s" : "");
4399
4399
  }
4400
- }), Hc = me((s, e) => {
4400
+ }), Wc = me((s, e) => {
4401
4401
  le(), ue(), ce();
4402
4402
  function t(r) {
4403
- n.debug = n, n.default = n, n.coerce = d, n.disable = c, n.enable = a, n.enabled = u, n.humanize = qc(), n.destroy = p, Object.keys(r).forEach((g) => {
4403
+ n.debug = n, n.default = n, n.coerce = d, n.disable = c, n.enable = a, n.enabled = u, n.humanize = Hc(), n.destroy = p, Object.keys(r).forEach((g) => {
4404
4404
  n[g] = r[g];
4405
4405
  }), n.names = [], n.skips = [], n.formatters = {};
4406
4406
  function i(g) {
@@ -4510,7 +4510,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
4510
4510
  } catch {
4511
4511
  }
4512
4512
  }
4513
- e.exports = Hc()(s);
4513
+ e.exports = Wc()(s);
4514
4514
  var { formatters: a } = e.exports;
4515
4515
  a.j = function(l) {
4516
4516
  try {
@@ -4519,9 +4519,9 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
4519
4519
  return "[UnexpectedJSONParseError]: " + c.message;
4520
4520
  }
4521
4521
  };
4522
- }), Wc = me((s, e) => {
4522
+ }), zc = me((s, e) => {
4523
4523
  le(), ue(), ce();
4524
- var t = Bc(), { EventEmitter: r } = (Ut(), Re(Pt)), i = Fc(), n = qa(), o = vt()("mqtt-packet:parser"), a = class Pi extends r {
4524
+ var t = Fc(), { EventEmitter: r } = (Ut(), Re(Pt)), i = qc(), n = qa(), o = vt()("mqtt-packet:parser"), a = class Pi extends r {
4525
4525
  constructor() {
4526
4526
  super(), this.parser = this.constructor.parser;
4527
4527
  }
@@ -4872,7 +4872,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
4872
4872
  }
4873
4873
  };
4874
4874
  e.exports = a;
4875
- }), zc = me((s, e) => {
4875
+ }), Vc = me((s, e) => {
4876
4876
  le(), ue(), ce();
4877
4877
  var { Buffer: t } = (qe(), Re(Fe)), r = 65536, i = {}, n = t.isBuffer(t.from([1, 2]).subarray(0, 1));
4878
4878
  function o(u) {
@@ -4894,7 +4894,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
4894
4894
  return d.writeUInt32BE(u, 0), d;
4895
4895
  }
4896
4896
  e.exports = { cache: i, generateCache: a, generateNumber: o, genBufVariableByteInt: l, generate4ByteBuffer: c };
4897
- }), Vc = me((s, e) => {
4897
+ }), Kc = me((s, e) => {
4898
4898
  le(), ue(), ce(), typeof De > "u" || !De.version || De.version.indexOf("v0.") === 0 || De.version.indexOf("v1.") === 0 && De.version.indexOf("v1.8.") !== 0 ? e.exports = { nextTick: t } : e.exports = De;
4899
4899
  function t(r, i, n, o) {
4900
4900
  if (typeof r != "function") throw new TypeError('"callback" argument must be a function');
@@ -4924,7 +4924,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
4924
4924
  }
4925
4925
  }), Ha = me((s, e) => {
4926
4926
  le(), ue(), ce();
4927
- var t = qa(), { Buffer: r } = (qe(), Re(Fe)), i = r.allocUnsafe(0), n = r.from([0]), o = zc(), a = Vc().nextTick, l = vt()("mqtt-packet:writeToStream"), c = o.cache, u = o.generateNumber, d = o.generateCache, p = o.genBufVariableByteInt, g = o.generate4ByteBuffer, h = j, b = !0;
4927
+ var t = qa(), { Buffer: r } = (qe(), Re(Fe)), i = r.allocUnsafe(0), n = r.from([0]), o = Vc(), a = Kc().nextTick, l = vt()("mqtt-packet:writeToStream"), c = o.cache, u = o.generateNumber, d = o.generateCache, p = o.genBufVariableByteInt, g = o.generate4ByteBuffer, h = j, b = !0;
4928
4928
  function y(G, R, ne) {
4929
4929
  switch (l("generate called"), R.cork && (R.cork(), a(w, R)), b && (b = !1, d()), l("generate: packet.cmd: %s", G.cmd), G.cmd) {
4930
4930
  case "connect":
@@ -5305,7 +5305,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
5305
5305
  return typeof G == "string" || G instanceof r;
5306
5306
  }
5307
5307
  e.exports = y;
5308
- }), Kc = me((s, e) => {
5308
+ }), Gc = me((s, e) => {
5309
5309
  le(), ue(), ce();
5310
5310
  var t = Ha(), { EventEmitter: r } = (Ut(), Re(Pt)), { Buffer: i } = (qe(), Re(Fe));
5311
5311
  function n(a, l) {
@@ -5331,9 +5331,9 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
5331
5331
  }
5332
5332
  };
5333
5333
  e.exports = n;
5334
- }), Gc = me((s) => {
5335
- le(), ue(), ce(), s.parser = Wc().parser, s.generate = Kc(), s.writeToStream = Ha();
5336
- }), Yc = me((s, e) => {
5334
+ }), Yc = me((s) => {
5335
+ le(), ue(), ce(), s.parser = zc().parser, s.generate = Gc(), s.writeToStream = Ha();
5336
+ }), Jc = me((s, e) => {
5337
5337
  le(), ue(), ce(), e.exports = r;
5338
5338
  function t(n) {
5339
5339
  return n instanceof Jr ? Jr.from(n) : new n.constructor(n.buffer.slice(), n.byteOffset, n.length);
@@ -5433,8 +5433,8 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
5433
5433
  return o.pop(), a.pop(), h;
5434
5434
  }
5435
5435
  }
5436
- }), Jc = me((s, e) => {
5437
- le(), ue(), ce(), e.exports = Yc()();
5436
+ }), Qc = me((s, e) => {
5437
+ le(), ue(), ce(), e.exports = Jc()();
5438
5438
  }), Wa = me((s) => {
5439
5439
  le(), ue(), ce(), Object.defineProperty(s, "__esModule", { value: !0 }), s.validateTopic = e, s.validateTopics = t;
5440
5440
  function e(r) {
@@ -5486,7 +5486,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
5486
5486
  }
5487
5487
  };
5488
5488
  s.default = i;
5489
- }), Qc = me((s) => {
5489
+ }), Xc = me((s) => {
5490
5490
  le(), ue(), ce(), Object.defineProperty(s, "__esModule", { value: !0 });
5491
5491
  var e = [0, 16, 128, 131, 135, 144, 145, 151, 153], t = (r, i, n) => {
5492
5492
  r.log("handlePublish: packet %o", i), n = typeof n < "u" ? n : r.noop;
@@ -5541,7 +5541,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
5541
5541
  }
5542
5542
  };
5543
5543
  s.default = t;
5544
- }), Xc = me((s, e) => {
5544
+ }), Zc = me((s, e) => {
5545
5545
  e.exports = { version: "5.15.0" };
5546
5546
  }), Zt = me((s) => {
5547
5547
  le(), ue(), ce(), Object.defineProperty(s, "__esModule", { value: !0 }), s.MQTTJS_VERSION = s.nextTick = s.ErrorWithSubackPacket = s.ErrorWithReasonCode = void 0, s.applyMixin = r;
@@ -5570,7 +5570,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
5570
5570
  }
5571
5571
  s.nextTick = typeof De?.nextTick == "function" ? De.nextTick : (i) => {
5572
5572
  setTimeout(i, 0);
5573
- }, s.MQTTJS_VERSION = Xc().version;
5573
+ }, s.MQTTJS_VERSION = Zc().version;
5574
5574
  }), sn = me((s) => {
5575
5575
  le(), ue(), ce(), Object.defineProperty(s, "__esModule", { value: !0 }), s.ReasonCodes = void 0;
5576
5576
  var e = Zt();
@@ -5624,7 +5624,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
5624
5624
  r.disconnecting && Object.keys(r.outgoing).length === 0 && r.emit("outgoingEmpty");
5625
5625
  };
5626
5626
  s.default = t;
5627
- }), Zc = me((s) => {
5627
+ }), eu = me((s) => {
5628
5628
  le(), ue(), ce(), Object.defineProperty(s, "__esModule", { value: !0 });
5629
5629
  var e = Zt(), t = sn(), r = (i, n) => {
5630
5630
  let { options: o } = i, a = o.protocolVersion, l = a === 5 ? n.reasonCode : n.returnCode;
@@ -5646,7 +5646,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
5646
5646
  });
5647
5647
  };
5648
5648
  s.default = r;
5649
- }), eu = me((s) => {
5649
+ }), tu = me((s) => {
5650
5650
  le(), ue(), ce(), Object.defineProperty(s, "__esModule", { value: !0 }), s.LRUCache = void 0;
5651
5651
  var e = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date, t = /* @__PURE__ */ new Set(), r = typeof De == "object" && De ? De : {}, i = (g, h, b, y) => {
5652
5652
  typeof r.emitWarning == "function" ? r.emitWarning(g, h, b, y) : console.error(`[${b}] ${h}: ${g}`);
@@ -6190,7 +6190,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
6190
6190
  var r = class extends t {
6191
6191
  };
6192
6192
  s.Container = r;
6193
- }), tu = me((s) => {
6193
+ }), ru = me((s) => {
6194
6194
  le(), ue(), ce(), Object.defineProperty(s, "t", { value: !0 }), s.default = void 0;
6195
6195
  var e = kt(), t = class extends e.Base {
6196
6196
  constructor(i = []) {
@@ -6214,7 +6214,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
6214
6214
  }
6215
6215
  }, r = t;
6216
6216
  s.default = r;
6217
- }), ru = me((s) => {
6217
+ }), nu = me((s) => {
6218
6218
  le(), ue(), ce(), Object.defineProperty(s, "t", { value: !0 }), s.default = void 0;
6219
6219
  var e = kt(), t = class extends e.Base {
6220
6220
  constructor(i = []) {
@@ -6246,7 +6246,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
6246
6246
  }
6247
6247
  }, r = t;
6248
6248
  s.default = r;
6249
- }), nu = me((s) => {
6249
+ }), iu = me((s) => {
6250
6250
  le(), ue(), ce(), Object.defineProperty(s, "t", { value: !0 }), s.default = void 0;
6251
6251
  var e = kt(), t = class extends e.Base {
6252
6252
  constructor(i = [], n = function(a, l) {
@@ -6344,7 +6344,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
6344
6344
  }
6345
6345
  };
6346
6346
  s.RandomIterator = r;
6347
- }), iu = me((s) => {
6347
+ }), su = me((s) => {
6348
6348
  le(), ue(), ce(), Object.defineProperty(s, "t", { value: !0 }), s.default = void 0;
6349
6349
  var e = r(Ts()), t = Ya();
6350
6350
  function r(a) {
@@ -6445,7 +6445,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
6445
6445
  }
6446
6446
  }, o = n;
6447
6447
  s.default = o;
6448
- }), su = me((s) => {
6448
+ }), ou = me((s) => {
6449
6449
  le(), ue(), ce(), Object.defineProperty(s, "t", { value: !0 }), s.default = void 0;
6450
6450
  var e = i(Ts()), t = kt(), r = xt();
6451
6451
  function i(l) {
@@ -6630,7 +6630,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
6630
6630
  }
6631
6631
  }, a = o;
6632
6632
  s.default = a;
6633
- }), ou = me((s) => {
6633
+ }), au = me((s) => {
6634
6634
  le(), ue(), ce(), Object.defineProperty(s, "t", { value: !0 }), s.default = void 0;
6635
6635
  var e = r(Ts()), t = Ya();
6636
6636
  function r(a) {
@@ -6815,7 +6815,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
6815
6815
  }
6816
6816
  }, o = n;
6817
6817
  s.default = o;
6818
- }), au = me((s) => {
6818
+ }), lu = me((s) => {
6819
6819
  le(), ue(), ce(), Object.defineProperty(s, "t", { value: !0 }), s.TreeNodeEnableIndex = s.TreeNode = void 0;
6820
6820
  var e = class {
6821
6821
  constructor(r, i) {
@@ -6872,7 +6872,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
6872
6872
  s.TreeNodeEnableIndex = t;
6873
6873
  }), Za = me((s) => {
6874
6874
  le(), ue(), ce(), Object.defineProperty(s, "t", { value: !0 }), s.default = void 0;
6875
- var e = au(), t = kt(), r = xt(), i = class extends t.Container {
6875
+ var e = lu(), t = kt(), r = xt(), i = class extends t.Container {
6876
6876
  constructor(o = function(l, c) {
6877
6877
  return l < c ? -1 : l > c ? 1 : 0;
6878
6878
  }, a = !1) {
@@ -7150,7 +7150,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
7150
7150
  }
7151
7151
  }, i = r;
7152
7152
  s.default = i;
7153
- }), lu = me((s) => {
7153
+ }), cu = me((s) => {
7154
7154
  le(), ue(), ce(), Object.defineProperty(s, "t", { value: !0 }), s.default = void 0;
7155
7155
  var e = i(Za()), t = i(el()), r = xt();
7156
7156
  function i(l) {
@@ -7229,7 +7229,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
7229
7229
  }
7230
7230
  }, a = o;
7231
7231
  s.default = a;
7232
- }), cu = me((s) => {
7232
+ }), uu = me((s) => {
7233
7233
  le(), ue(), ce(), Object.defineProperty(s, "t", { value: !0 }), s.default = void 0;
7234
7234
  var e = i(Za()), t = i(el()), r = xt();
7235
7235
  function i(l) {
@@ -7407,7 +7407,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
7407
7407
  }
7408
7408
  };
7409
7409
  s.HashContainer = o;
7410
- }), uu = me((s) => {
7410
+ }), du = me((s) => {
7411
7411
  le(), ue(), ce(), Object.defineProperty(s, "t", { value: !0 }), s.default = void 0;
7412
7412
  var e = il(), t = xt(), r = class sl extends e.HashContainerIterator {
7413
7413
  constructor(a, l, c, u) {
@@ -7470,7 +7470,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
7470
7470
  }
7471
7471
  }, n = i;
7472
7472
  s.default = n;
7473
- }), du = me((s) => {
7473
+ }), hu = me((s) => {
7474
7474
  le(), ue(), ce(), Object.defineProperty(s, "t", { value: !0 }), s.default = void 0;
7475
7475
  var e = il(), t = i(nl()), r = xt();
7476
7476
  function i(l) {
@@ -7553,7 +7553,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
7553
7553
  }
7554
7554
  }, a = o;
7555
7555
  s.default = a;
7556
- }), hu = me((s) => {
7556
+ }), fu = me((s) => {
7557
7557
  le(), ue(), ce(), Object.defineProperty(s, "t", { value: !0 }), Object.defineProperty(s, "Deque", { enumerable: !0, get: function() {
7558
7558
  return o.default;
7559
7559
  } }), Object.defineProperty(s, "HashMap", { enumerable: !0, get: function() {
@@ -7575,13 +7575,13 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
7575
7575
  } }), Object.defineProperty(s, "Vector", { enumerable: !0, get: function() {
7576
7576
  return i.default;
7577
7577
  } });
7578
- var e = d(tu()), t = d(ru()), r = d(nu()), i = d(iu()), n = d(su()), o = d(ou()), a = d(lu()), l = d(cu()), c = d(uu()), u = d(du());
7578
+ var e = d(ru()), t = d(nu()), r = d(iu()), i = d(su()), n = d(ou()), o = d(au()), a = d(cu()), l = d(uu()), c = d(du()), u = d(hu());
7579
7579
  function d(p) {
7580
7580
  return p && p.t ? p : { default: p };
7581
7581
  }
7582
- }), fu = me((s, e) => {
7582
+ }), pu = me((s, e) => {
7583
7583
  le(), ue(), ce();
7584
- var t = hu().OrderedSet, r = vt()("number-allocator:trace"), i = vt()("number-allocator:error");
7584
+ var t = fu().OrderedSet, r = vt()("number-allocator:trace"), i = vt()("number-allocator:error");
7585
7585
  function n(a, l) {
7586
7586
  this.low = a, this.high = l;
7587
7587
  }
@@ -7642,11 +7642,11 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
7642
7642
  }, e.exports = o;
7643
7643
  }), al = me((s, e) => {
7644
7644
  le(), ue(), ce();
7645
- var t = fu();
7645
+ var t = pu();
7646
7646
  e.exports.NumberAllocator = t;
7647
- }), pu = me((s) => {
7647
+ }), mu = me((s) => {
7648
7648
  le(), ue(), ce(), Object.defineProperty(s, "__esModule", { value: !0 });
7649
- var e = eu(), t = al(), r = class {
7649
+ var e = tu(), t = al(), r = class {
7650
7650
  aliasToTopic;
7651
7651
  topicToAlias;
7652
7652
  max;
@@ -7675,13 +7675,13 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
7675
7675
  }
7676
7676
  };
7677
7677
  s.default = r;
7678
- }), mu = me((s) => {
7678
+ }), gu = me((s) => {
7679
7679
  le(), ue(), ce();
7680
7680
  var e = s && s.__importDefault || function(o) {
7681
7681
  return o && o.__esModule ? o : { default: o };
7682
7682
  };
7683
7683
  Object.defineProperty(s, "__esModule", { value: !0 });
7684
- var t = sn(), r = e(pu()), i = Zt(), n = (o, a) => {
7684
+ var t = sn(), r = e(mu()), i = Zt(), n = (o, a) => {
7685
7685
  o.log("_handleConnack");
7686
7686
  let { options: l } = o, c = l.protocolVersion === 5 ? a.reasonCode : a.returnCode;
7687
7687
  if (clearTimeout(o.connackTimer), delete o.topicAliasSend, a.properties) {
@@ -7701,7 +7701,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
7701
7701
  }
7702
7702
  };
7703
7703
  s.default = n;
7704
- }), gu = me((s) => {
7704
+ }), bu = me((s) => {
7705
7705
  le(), ue(), ce(), Object.defineProperty(s, "__esModule", { value: !0 });
7706
7706
  var e = (t, r, i) => {
7707
7707
  t.log("handling pubrel packet");
@@ -7714,13 +7714,13 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
7714
7714
  });
7715
7715
  };
7716
7716
  s.default = e;
7717
- }), bu = me((s) => {
7717
+ }), yu = me((s) => {
7718
7718
  le(), ue(), ce();
7719
7719
  var e = s && s.__importDefault || function(l) {
7720
7720
  return l && l.__esModule ? l : { default: l };
7721
7721
  };
7722
7722
  Object.defineProperty(s, "__esModule", { value: !0 });
7723
- var t = e(Qc()), r = e(Zc()), i = e(mu()), n = e(sn()), o = e(gu()), a = (l, c, u) => {
7723
+ var t = e(Xc()), r = e(eu()), i = e(gu()), n = e(sn()), o = e(bu()), a = (l, c, u) => {
7724
7724
  let { options: d } = l;
7725
7725
  if (d.protocolVersion === 5 && d.properties && d.properties.maximumPacketSize && d.properties.maximumPacketSize < c.length) return l.emit("error", new Error(`exceeding packets size ${c.cmd}`)), l.end({ reasonCode: 149, properties: { reasonString: "Maximum packet size was exceeded" } }), l;
7726
7726
  switch (l.log("_handlePacket :: emitting packetreceive"), l.emit("packetreceive", c), c.cmd) {
@@ -7778,7 +7778,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
7778
7778
  }
7779
7779
  };
7780
7780
  s.default = e;
7781
- }), yu = me((s) => {
7781
+ }), vu = me((s) => {
7782
7782
  le(), ue(), ce(), Object.defineProperty(s, "__esModule", { value: !0 });
7783
7783
  var e = class {
7784
7784
  aliasToTopic;
@@ -7798,7 +7798,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
7798
7798
  }
7799
7799
  };
7800
7800
  s.default = e;
7801
- }), vu = me((s) => {
7801
+ }), wu = me((s) => {
7802
7802
  le(), ue(), ce();
7803
7803
  var e = s && s.__importDefault || function(n) {
7804
7804
  return n && n.__esModule ? n : { default: n };
@@ -7818,7 +7818,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
7818
7818
  }, e.exports.__esModule = !0, e.exports.default = e.exports, t(r);
7819
7819
  }
7820
7820
  e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
7821
- }), wu = me((s, e) => {
7821
+ }), ku = me((s, e) => {
7822
7822
  le(), ue(), ce();
7823
7823
  var t = on().default;
7824
7824
  function r(i, n) {
@@ -7832,28 +7832,28 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
7832
7832
  return (n === "string" ? String : Number)(i);
7833
7833
  }
7834
7834
  e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
7835
- }), ku = me((s, e) => {
7835
+ }), xu = me((s, e) => {
7836
7836
  le(), ue(), ce();
7837
- var t = on().default, r = wu();
7837
+ var t = on().default, r = ku();
7838
7838
  function i(n) {
7839
7839
  var o = r(n, "string");
7840
7840
  return t(o) == "symbol" ? o : o + "";
7841
7841
  }
7842
7842
  e.exports = i, e.exports.__esModule = !0, e.exports.default = e.exports;
7843
- }), xu = me((s, e) => {
7843
+ }), _u = me((s, e) => {
7844
7844
  le(), ue(), ce();
7845
- var t = ku();
7845
+ var t = xu();
7846
7846
  function r(i, n, o) {
7847
7847
  return (n = t(n)) in i ? Object.defineProperty(i, n, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : i[n] = o, i;
7848
7848
  }
7849
7849
  e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
7850
- }), _u = me((s, e) => {
7850
+ }), Su = me((s, e) => {
7851
7851
  le(), ue(), ce();
7852
7852
  function t(r) {
7853
7853
  if (Array.isArray(r)) return r;
7854
7854
  }
7855
7855
  e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
7856
- }), Su = me((s, e) => {
7856
+ }), Eu = me((s, e) => {
7857
7857
  le(), ue(), ce();
7858
7858
  function t(r, i) {
7859
7859
  var n = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
@@ -7877,7 +7877,7 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
7877
7877
  }
7878
7878
  }
7879
7879
  e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
7880
- }), Eu = me((s, e) => {
7880
+ }), Au = me((s, e) => {
7881
7881
  le(), ue(), ce();
7882
7882
  function t(r, i) {
7883
7883
  (i == null || i > r.length) && (i = r.length);
@@ -7885,9 +7885,9 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
7885
7885
  return o;
7886
7886
  }
7887
7887
  e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
7888
- }), Au = me((s, e) => {
7888
+ }), Iu = me((s, e) => {
7889
7889
  le(), ue(), ce();
7890
- var t = Eu();
7890
+ var t = Au();
7891
7891
  function r(i, n) {
7892
7892
  if (i) {
7893
7893
  if (typeof i == "string") return t(i, n);
@@ -7896,16 +7896,16 @@ var cr, Ci, zt, Pa, Oa, La, Ma, Na, Ra, Ut = Qe(() => {
7896
7896
  }
7897
7897
  }
7898
7898
  e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
7899
- }), Iu = me((s, e) => {
7899
+ }), Tu = me((s, e) => {
7900
7900
  le(), ue(), ce();
7901
7901
  function t() {
7902
7902
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
7903
7903
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
7904
7904
  }
7905
7905
  e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
7906
- }), Tu = me((s, e) => {
7906
+ }), Cu = me((s, e) => {
7907
7907
  le(), ue(), ce();
7908
- var t = _u(), r = Su(), i = Au(), n = Iu();
7908
+ var t = Su(), r = Eu(), i = Iu(), n = Tu();
7909
7909
  function o(a, l) {
7910
7910
  return t(a) || r(a, l) || i(a, l) || n();
7911
7911
  }
@@ -7938,7 +7938,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7938
7938
  }, c = /* @__PURE__ */ new WeakMap(), u = i(c), d = l(u, c), p = r(d);
7939
7939
  t.addUniqueNumber = p, t.generateUniqueNumber = d;
7940
7940
  });
7941
- }), Cu = me((s, e) => {
7941
+ }), Pu = me((s, e) => {
7942
7942
  le(), ue(), ce();
7943
7943
  function t(i, n, o, a, l, c, u) {
7944
7944
  try {
@@ -8094,7 +8094,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8094
8094
  return new r(t().w(n, o, a, l), c || Promise);
8095
8095
  }
8096
8096
  e.exports = i, e.exports.__esModule = !0, e.exports.default = e.exports;
8097
- }), Pu = me((s, e) => {
8097
+ }), Ou = me((s, e) => {
8098
8098
  le(), ue(), ce();
8099
8099
  var t = pl();
8100
8100
  function r(i, n, o, a, l) {
@@ -8104,7 +8104,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8104
8104
  });
8105
8105
  }
8106
8106
  e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
8107
- }), Ou = me((s, e) => {
8107
+ }), Lu = me((s, e) => {
8108
8108
  le(), ue(), ce();
8109
8109
  function t(r) {
8110
8110
  var i = Object(r), n = [];
@@ -8115,7 +8115,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8115
8115
  };
8116
8116
  }
8117
8117
  e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
8118
- }), Lu = me((s, e) => {
8118
+ }), Mu = me((s, e) => {
8119
8119
  le(), ue(), ce();
8120
8120
  var t = on().default;
8121
8121
  function r(i) {
@@ -8130,9 +8130,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8130
8130
  throw new TypeError(t(i) + " is not iterable");
8131
8131
  }
8132
8132
  e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
8133
- }), Mu = me((s, e) => {
8133
+ }), Nu = me((s, e) => {
8134
8134
  le(), ue(), ce();
8135
- var t = ul(), r = hl(), i = Pu(), n = pl(), o = fl(), a = Ou(), l = Lu();
8135
+ var t = ul(), r = hl(), i = Ou(), n = pl(), o = fl(), a = Lu(), l = Mu();
8136
8136
  function c() {
8137
8137
  var u = r(), d = u.m(c), p = (Object.getPrototypeOf ? Object.getPrototypeOf(d) : d.__proto__).constructor;
8138
8138
  function g(y) {
@@ -8179,18 +8179,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8179
8179
  }, e.exports.__esModule = !0, e.exports.default = e.exports)();
8180
8180
  }
8181
8181
  e.exports = c, e.exports.__esModule = !0, e.exports.default = e.exports;
8182
- }), Nu = me((s, e) => {
8182
+ }), Ru = me((s, e) => {
8183
8183
  le(), ue(), ce();
8184
- var t = Mu()();
8184
+ var t = Nu()();
8185
8185
  e.exports = t;
8186
8186
  try {
8187
8187
  regeneratorRuntime = t;
8188
8188
  } catch {
8189
8189
  typeof globalThis == "object" ? globalThis.regeneratorRuntime = t : Function("r", "regeneratorRuntime = r")(t);
8190
8190
  }
8191
- }), Ru = me((s, e) => {
8191
+ }), ju = me((s, e) => {
8192
8192
  le(), ue(), ce(), (function(t, r) {
8193
- typeof s == "object" && typeof e < "u" ? r(s, xu(), Tu(), cl(), Cu(), Nu()) : typeof define == "function" && define.amd ? define(["exports", "@babel/runtime/helpers/defineProperty", "@babel/runtime/helpers/slicedToArray", "fast-unique-numbers", "@babel/runtime/helpers/asyncToGenerator", "@babel/runtime/regenerator"], r) : (t = typeof globalThis < "u" ? globalThis : t || self, r(t.brokerFactory = {}, t._defineProperty, t._slicedToArray, t.fastUniqueNumbers, t._asyncToGenerator, t._regeneratorRuntime));
8193
+ typeof s == "object" && typeof e < "u" ? r(s, _u(), Cu(), cl(), Pu(), Ru()) : typeof define == "function" && define.amd ? define(["exports", "@babel/runtime/helpers/defineProperty", "@babel/runtime/helpers/slicedToArray", "fast-unique-numbers", "@babel/runtime/helpers/asyncToGenerator", "@babel/runtime/regenerator"], r) : (t = typeof globalThis < "u" ? globalThis : t || self, r(t.brokerFactory = {}, t._defineProperty, t._slicedToArray, t.fastUniqueNumbers, t._asyncToGenerator, t._regeneratorRuntime));
8194
8194
  })(s, function(t, r, i, n, o, a) {
8195
8195
  var l = function(m) {
8196
8196
  return typeof m.start == "function";
@@ -8319,9 +8319,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8319
8319
  };
8320
8320
  t.createBroker = w;
8321
8321
  });
8322
- }), ju = me((s, e) => {
8322
+ }), Du = me((s, e) => {
8323
8323
  le(), ue(), ce(), (function(t, r) {
8324
- typeof s == "object" && typeof e < "u" ? r(s, on(), Ru(), cl()) : typeof define == "function" && define.amd ? define(["exports", "@babel/runtime/helpers/typeof", "broker-factory", "fast-unique-numbers"], r) : (t = typeof globalThis < "u" ? globalThis : t || self, r(t.workerTimersBroker = {}, t._typeof, t.brokerFactory, t.fastUniqueNumbers));
8324
+ typeof s == "object" && typeof e < "u" ? r(s, on(), ju(), cl()) : typeof define == "function" && define.amd ? define(["exports", "@babel/runtime/helpers/typeof", "broker-factory", "fast-unique-numbers"], r) : (t = typeof globalThis < "u" ? globalThis : t || self, r(t.workerTimersBroker = {}, t._typeof, t.brokerFactory, t.fastUniqueNumbers));
8325
8325
  })(s, function(t, r, i, n) {
8326
8326
  var o = /* @__PURE__ */ new Map([[0, null]]), a = /* @__PURE__ */ new Map([[0, null]]), l = i.createBroker({ clearInterval: function(u) {
8327
8327
  var d = u.call;
@@ -8369,9 +8369,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8369
8369
  };
8370
8370
  t.load = c, t.wrap = l;
8371
8371
  });
8372
- }), Du = me((s, e) => {
8372
+ }), $u = me((s, e) => {
8373
8373
  le(), ue(), ce(), (function(t, r) {
8374
- typeof s == "object" && typeof e < "u" ? r(s, ju()) : typeof define == "function" && define.amd ? define(["exports", "worker-timers-broker"], r) : (t = typeof globalThis < "u" ? globalThis : t || self, r(t.workerTimers = {}, t.workerTimersBroker));
8374
+ typeof s == "object" && typeof e < "u" ? r(s, Du()) : typeof define == "function" && define.amd ? define(["exports", "worker-timers-broker"], r) : (t = typeof globalThis < "u" ? globalThis : t || self, r(t.workerTimers = {}, t.workerTimersBroker));
8375
8375
  })(s, function(t, r) {
8376
8376
  var i = function(d, p) {
8377
8377
  var g = null;
@@ -8399,7 +8399,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8399
8399
  le(), ue(), ce(), Object.defineProperty(s, "__esModule", { value: !0 }), s.isReactNativeBrowser = s.isWebWorker = void 0;
8400
8400
  var e = () => typeof window < "u" ? typeof navigator < "u" && navigator.userAgent?.toLowerCase().indexOf(" electron/") > -1 && De?.versions ? !Object.prototype.hasOwnProperty.call(De.versions, "electron") : typeof window.document < "u" : !1, t = () => !!(typeof self == "object" && self?.constructor?.name?.includes("WorkerGlobalScope") && typeof Deno > "u"), r = () => typeof navigator < "u" && navigator.product === "ReactNative", i = e() || t() || r();
8401
8401
  s.isWebWorker = t(), s.isReactNativeBrowser = r(), s.default = i;
8402
- }), $u = me((s) => {
8402
+ }), Uu = me((s) => {
8403
8403
  le(), ue(), ce();
8404
8404
  var e = s && s.__createBinding || (Object.create ? function(c, u, d, p) {
8405
8405
  p === void 0 && (p = d);
@@ -8429,7 +8429,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8429
8429
  };
8430
8430
  })();
8431
8431
  Object.defineProperty(s, "__esModule", { value: !0 });
8432
- var i = Du(), n = r(an()), o = { set: i.setInterval, clear: i.clearInterval }, a = { set: (c, u) => setInterval(c, u), clear: (c) => clearInterval(c) }, l = (c) => {
8432
+ var i = $u(), n = r(an()), o = { set: i.setInterval, clear: i.clearInterval }, a = { set: (c, u) => setInterval(c, u), clear: (c) => clearInterval(c) }, l = (c) => {
8433
8433
  switch (c) {
8434
8434
  case "native":
8435
8435
  return a;
@@ -8446,7 +8446,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8446
8446
  return i && i.__esModule ? i : { default: i };
8447
8447
  };
8448
8448
  Object.defineProperty(s, "__esModule", { value: !0 });
8449
- var t = e($u()), r = class {
8449
+ var t = e(Uu()), r = class {
8450
8450
  _keepalive;
8451
8451
  timerId;
8452
8452
  timer;
@@ -8519,7 +8519,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8519
8519
  return v && v.__esModule ? v : { default: v };
8520
8520
  };
8521
8521
  Object.defineProperty(s, "__esModule", { value: !0 });
8522
- var n = i(Gc()), o = Ft(), a = i(Jc()), l = i(vt()), c = r(Wa()), u = i(za()), d = i(bu()), p = i(ll()), g = i(yu()), h = Zt(), b = vu(), y = i(ml()), w = r(an()), m = globalThis.setImmediate || ((...v) => {
8522
+ var n = i(Yc()), o = Ft(), a = i(Qc()), l = i(vt()), c = r(Wa()), u = i(za()), d = i(yu()), p = i(ll()), g = i(vu()), h = Zt(), b = wu(), y = i(ml()), w = r(an()), m = globalThis.setImmediate || ((...v) => {
8523
8523
  let S = v.shift();
8524
8524
  (0, h.nextTick)(() => {
8525
8525
  S(...v);
@@ -9021,7 +9021,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
9021
9021
  }
9022
9022
  };
9023
9023
  s.default = _;
9024
- }), Uu = me((s) => {
9024
+ }), Bu = me((s) => {
9025
9025
  le(), ue(), ce(), Object.defineProperty(s, "__esModule", { value: !0 });
9026
9026
  var e = al(), t = class {
9027
9027
  numberAllocator;
@@ -9047,7 +9047,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
9047
9047
  };
9048
9048
  s.default = t;
9049
9049
  });
9050
- function Bu() {
9050
+ function Fu() {
9051
9051
  if (Mi) return Ar;
9052
9052
  Mi = !0;
9053
9053
  let s = 2147483647, e = 36, t = 1, r = 26, i = 38, n = 700, o = 72, a = 128, l = "-", c = /^xn--/, u = /[^\0-\x7F]/, d = /[\x2E\u3002\uFF0E\uFF61]/g, p = { overflow: "Overflow: input needs wider integers to process", "not-basic": "Illegal input >= 0x80 (not a basic code point)", "invalid-input": "Invalid input" }, g = e - t, h = Math.floor, b = String.fromCharCode;
@@ -9138,10 +9138,10 @@ function Bu() {
9138
9138
  });
9139
9139
  } }, Ar;
9140
9140
  }
9141
- var Ar, Mi, Tt, Fu = Qe(() => {
9142
- le(), ue(), ce(), Ar = {}, Mi = !1, Tt = Bu(), Tt.decode, Tt.encode, Tt.toASCII, Tt.toUnicode, Tt.ucs2, Tt.version;
9141
+ var Ar, Mi, Tt, qu = Qe(() => {
9142
+ le(), ue(), ce(), Ar = {}, Mi = !1, Tt = Fu(), Tt.decode, Tt.encode, Tt.toASCII, Tt.toUnicode, Tt.ucs2, Tt.version;
9143
9143
  });
9144
- function qu() {
9144
+ function Hu() {
9145
9145
  return Ri || (Ri = !0, Ni = function() {
9146
9146
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function") return !1;
9147
9147
  if (typeof Symbol.iterator == "symbol") return !0;
@@ -9160,16 +9160,16 @@ function qu() {
9160
9160
  return !0;
9161
9161
  }), Ni;
9162
9162
  }
9163
- function Hu() {
9163
+ function Wu() {
9164
9164
  return Di || (Di = !0, ji = Error), ji;
9165
9165
  }
9166
- function Wu() {
9166
+ function zu() {
9167
9167
  return Ui || (Ui = !0, $i = EvalError), $i;
9168
9168
  }
9169
- function zu() {
9169
+ function Vu() {
9170
9170
  return Fi || (Fi = !0, Bi = RangeError), Bi;
9171
9171
  }
9172
- function Vu() {
9172
+ function Ku() {
9173
9173
  return Hi || (Hi = !0, qi = ReferenceError), qi;
9174
9174
  }
9175
9175
  function gl() {
@@ -9178,18 +9178,18 @@ function gl() {
9178
9178
  function br() {
9179
9179
  return Ki || (Ki = !0, Vi = TypeError), Vi;
9180
9180
  }
9181
- function Ku() {
9181
+ function Gu() {
9182
9182
  return Yi || (Yi = !0, Gi = URIError), Gi;
9183
9183
  }
9184
- function Gu() {
9184
+ function Yu() {
9185
9185
  if (Ji) return Ir;
9186
9186
  Ji = !0;
9187
- var s = typeof Symbol < "u" && Symbol, e = qu();
9187
+ var s = typeof Symbol < "u" && Symbol, e = Hu();
9188
9188
  return Ir = function() {
9189
9189
  return typeof s != "function" || typeof Symbol != "function" || typeof s("foo") != "symbol" || typeof /* @__PURE__ */ Symbol("bar") != "symbol" ? !1 : e();
9190
9190
  }, Ir;
9191
9191
  }
9192
- function Yu() {
9192
+ function Ju() {
9193
9193
  if (Qi) return Tr;
9194
9194
  Qi = !0;
9195
9195
  var s = { __proto__: null, foo: {} }, e = Object;
@@ -9197,7 +9197,7 @@ function Yu() {
9197
9197
  return { __proto__: s }.foo === s.foo && !(s instanceof e);
9198
9198
  }, Tr;
9199
9199
  }
9200
- function Ju() {
9200
+ function Qu() {
9201
9201
  if (Xi) return Cr;
9202
9202
  Xi = !0;
9203
9203
  var s = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, t = Math.max, r = "[object Function]", i = function(a, l) {
@@ -9232,10 +9232,10 @@ function Ju() {
9232
9232
  function Cs() {
9233
9233
  if (Zi) return Pr;
9234
9234
  Zi = !0;
9235
- var s = Ju();
9235
+ var s = Qu();
9236
9236
  return Pr = Function.prototype.bind || s, Pr;
9237
9237
  }
9238
- function Qu() {
9238
+ function Xu() {
9239
9239
  if (es) return Or;
9240
9240
  es = !0;
9241
9241
  var s = Function.prototype.call, e = Object.prototype.hasOwnProperty, t = Cs();
@@ -9244,7 +9244,7 @@ function Qu() {
9244
9244
  function er() {
9245
9245
  if (ts) return Lr;
9246
9246
  ts = !0;
9247
- var s, e = Hu(), t = Wu(), r = zu(), i = Vu(), n = gl(), o = br(), a = Ku(), l = Function, c = function(j) {
9247
+ var s, e = Wu(), t = zu(), r = Vu(), i = Ku(), n = gl(), o = br(), a = Gu(), l = Function, c = function(j) {
9248
9248
  try {
9249
9249
  return l('"use strict"; return (' + j + ").constructor;")();
9250
9250
  } catch {
@@ -9267,7 +9267,7 @@ function er() {
9267
9267
  return d;
9268
9268
  }
9269
9269
  }
9270
- })() : d, g = Gu()(), h = Yu()(), b = Object.getPrototypeOf || (h ? function(j) {
9270
+ })() : d, g = Yu()(), h = Ju()(), b = Object.getPrototypeOf || (h ? function(j) {
9271
9271
  return j.__proto__;
9272
9272
  } : null), y = {}, w = typeof Uint8Array > "u" || !b ? s : b(Uint8Array), m = { __proto__: null, "%AggregateError%": typeof AggregateError > "u" ? s : AggregateError, "%Array%": Array, "%ArrayBuffer%": typeof ArrayBuffer > "u" ? s : ArrayBuffer, "%ArrayIteratorPrototype%": g && b ? b([][Symbol.iterator]()) : s, "%AsyncFromSyncIteratorPrototype%": s, "%AsyncFunction%": y, "%AsyncGenerator%": y, "%AsyncGeneratorFunction%": y, "%AsyncIteratorPrototype%": y, "%Atomics%": typeof Atomics > "u" ? s : Atomics, "%BigInt%": typeof BigInt > "u" ? s : BigInt, "%BigInt64Array%": typeof BigInt64Array > "u" ? s : BigInt64Array, "%BigUint64Array%": typeof BigUint64Array > "u" ? s : BigUint64Array, "%Boolean%": Boolean, "%DataView%": typeof DataView > "u" ? s : DataView, "%Date%": Date, "%decodeURI%": decodeURI, "%decodeURIComponent%": decodeURIComponent, "%encodeURI%": encodeURI, "%encodeURIComponent%": encodeURIComponent, "%Error%": e, "%eval%": eval, "%EvalError%": t, "%Float32Array%": typeof Float32Array > "u" ? s : Float32Array, "%Float64Array%": typeof Float64Array > "u" ? s : Float64Array, "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? s : FinalizationRegistry, "%Function%": l, "%GeneratorFunction%": y, "%Int8Array%": typeof Int8Array > "u" ? s : Int8Array, "%Int16Array%": typeof Int16Array > "u" ? s : Int16Array, "%Int32Array%": typeof Int32Array > "u" ? s : Int32Array, "%isFinite%": isFinite, "%isNaN%": isNaN, "%IteratorPrototype%": g && b ? b(b([][Symbol.iterator]())) : s, "%JSON%": typeof JSON == "object" ? JSON : s, "%Map%": typeof Map > "u" ? s : Map, "%MapIteratorPrototype%": typeof Map > "u" || !g || !b ? s : b((/* @__PURE__ */ new Map())[Symbol.iterator]()), "%Math%": Math, "%Number%": Number, "%Object%": Object, "%parseFloat%": parseFloat, "%parseInt%": parseInt, "%Promise%": typeof Promise > "u" ? s : Promise, "%Proxy%": typeof Proxy > "u" ? s : Proxy, "%RangeError%": r, "%ReferenceError%": i, "%Reflect%": typeof Reflect > "u" ? s : Reflect, "%RegExp%": RegExp, "%Set%": typeof Set > "u" ? s : Set, "%SetIteratorPrototype%": typeof Set > "u" || !g || !b ? s : b((/* @__PURE__ */ new Set())[Symbol.iterator]()), "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? s : SharedArrayBuffer, "%String%": String, "%StringIteratorPrototype%": g && b ? b(""[Symbol.iterator]()) : s, "%Symbol%": g ? Symbol : s, "%SyntaxError%": n, "%ThrowTypeError%": p, "%TypedArray%": w, "%TypeError%": o, "%Uint8Array%": typeof Uint8Array > "u" ? s : Uint8Array, "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? s : Uint8ClampedArray, "%Uint16Array%": typeof Uint16Array > "u" ? s : Uint16Array, "%Uint32Array%": typeof Uint32Array > "u" ? s : Uint32Array, "%URIError%": a, "%WeakMap%": typeof WeakMap > "u" ? s : WeakMap, "%WeakRef%": typeof WeakRef > "u" ? s : WeakRef, "%WeakSet%": typeof WeakSet > "u" ? s : WeakSet };
9273
9273
  if (b) try {
@@ -9289,7 +9289,7 @@ function er() {
9289
9289
  Q && b && (re = b(Q.prototype));
9290
9290
  }
9291
9291
  return m[W] = re, re;
9292
- }, v = { __proto__: null, "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], "%ArrayPrototype%": ["Array", "prototype"], "%ArrayProto_entries%": ["Array", "prototype", "entries"], "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], "%ArrayProto_keys%": ["Array", "prototype", "keys"], "%ArrayProto_values%": ["Array", "prototype", "values"], "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"], "%BooleanPrototype%": ["Boolean", "prototype"], "%DataViewPrototype%": ["DataView", "prototype"], "%DatePrototype%": ["Date", "prototype"], "%ErrorPrototype%": ["Error", "prototype"], "%EvalErrorPrototype%": ["EvalError", "prototype"], "%Float32ArrayPrototype%": ["Float32Array", "prototype"], "%Float64ArrayPrototype%": ["Float64Array", "prototype"], "%FunctionPrototype%": ["Function", "prototype"], "%Generator%": ["GeneratorFunction", "prototype"], "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"], "%Int8ArrayPrototype%": ["Int8Array", "prototype"], "%Int16ArrayPrototype%": ["Int16Array", "prototype"], "%Int32ArrayPrototype%": ["Int32Array", "prototype"], "%JSONParse%": ["JSON", "parse"], "%JSONStringify%": ["JSON", "stringify"], "%MapPrototype%": ["Map", "prototype"], "%NumberPrototype%": ["Number", "prototype"], "%ObjectPrototype%": ["Object", "prototype"], "%ObjProto_toString%": ["Object", "prototype", "toString"], "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], "%PromisePrototype%": ["Promise", "prototype"], "%PromiseProto_then%": ["Promise", "prototype", "then"], "%Promise_all%": ["Promise", "all"], "%Promise_reject%": ["Promise", "reject"], "%Promise_resolve%": ["Promise", "resolve"], "%RangeErrorPrototype%": ["RangeError", "prototype"], "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], "%RegExpPrototype%": ["RegExp", "prototype"], "%SetPrototype%": ["Set", "prototype"], "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], "%StringPrototype%": ["String", "prototype"], "%SymbolPrototype%": ["Symbol", "prototype"], "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], "%TypedArrayPrototype%": ["TypedArray", "prototype"], "%TypeErrorPrototype%": ["TypeError", "prototype"], "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], "%URIErrorPrototype%": ["URIError", "prototype"], "%WeakMapPrototype%": ["WeakMap", "prototype"], "%WeakSetPrototype%": ["WeakSet", "prototype"] }, S = Cs(), E = Qu(), I = S.call(Function.call, Array.prototype.concat), P = S.call(Function.apply, Array.prototype.splice), L = S.call(Function.call, String.prototype.replace), D = S.call(Function.call, String.prototype.slice), T = S.call(Function.call, RegExp.prototype.exec), q = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, F = /\\(\\)?/g, $ = function(j) {
9292
+ }, v = { __proto__: null, "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], "%ArrayPrototype%": ["Array", "prototype"], "%ArrayProto_entries%": ["Array", "prototype", "entries"], "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], "%ArrayProto_keys%": ["Array", "prototype", "keys"], "%ArrayProto_values%": ["Array", "prototype", "values"], "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"], "%BooleanPrototype%": ["Boolean", "prototype"], "%DataViewPrototype%": ["DataView", "prototype"], "%DatePrototype%": ["Date", "prototype"], "%ErrorPrototype%": ["Error", "prototype"], "%EvalErrorPrototype%": ["EvalError", "prototype"], "%Float32ArrayPrototype%": ["Float32Array", "prototype"], "%Float64ArrayPrototype%": ["Float64Array", "prototype"], "%FunctionPrototype%": ["Function", "prototype"], "%Generator%": ["GeneratorFunction", "prototype"], "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"], "%Int8ArrayPrototype%": ["Int8Array", "prototype"], "%Int16ArrayPrototype%": ["Int16Array", "prototype"], "%Int32ArrayPrototype%": ["Int32Array", "prototype"], "%JSONParse%": ["JSON", "parse"], "%JSONStringify%": ["JSON", "stringify"], "%MapPrototype%": ["Map", "prototype"], "%NumberPrototype%": ["Number", "prototype"], "%ObjectPrototype%": ["Object", "prototype"], "%ObjProto_toString%": ["Object", "prototype", "toString"], "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], "%PromisePrototype%": ["Promise", "prototype"], "%PromiseProto_then%": ["Promise", "prototype", "then"], "%Promise_all%": ["Promise", "all"], "%Promise_reject%": ["Promise", "reject"], "%Promise_resolve%": ["Promise", "resolve"], "%RangeErrorPrototype%": ["RangeError", "prototype"], "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], "%RegExpPrototype%": ["RegExp", "prototype"], "%SetPrototype%": ["Set", "prototype"], "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], "%StringPrototype%": ["String", "prototype"], "%SymbolPrototype%": ["Symbol", "prototype"], "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], "%TypedArrayPrototype%": ["TypedArray", "prototype"], "%TypeErrorPrototype%": ["TypeError", "prototype"], "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], "%URIErrorPrototype%": ["URIError", "prototype"], "%WeakMapPrototype%": ["WeakMap", "prototype"], "%WeakSetPrototype%": ["WeakSet", "prototype"] }, S = Cs(), E = Xu(), I = S.call(Function.call, Array.prototype.concat), P = S.call(Function.apply, Array.prototype.splice), L = S.call(Function.call, String.prototype.replace), D = S.call(Function.call, String.prototype.slice), T = S.call(Function.call, RegExp.prototype.exec), q = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, F = /\\(\\)?/g, $ = function(j) {
9293
9293
  var W = D(j, 0, 1), re = D(j, -1);
9294
9294
  if (W === "%" && re !== "%") throw new n("invalid intrinsic syntax, expected closing `%`");
9295
9295
  if (re === "%" && W !== "%") throw new n("invalid intrinsic syntax, expected opening `%`");
@@ -9353,7 +9353,7 @@ function bl() {
9353
9353
  }
9354
9354
  return Nr = e, Nr;
9355
9355
  }
9356
- function Xu() {
9356
+ function Zu() {
9357
9357
  if (is) return Rr;
9358
9358
  is = !0;
9359
9359
  var s = Ps(), e = gl(), t = br(), r = bl();
@@ -9370,7 +9370,7 @@ function Xu() {
9370
9370
  else throw new e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
9371
9371
  }, Rr;
9372
9372
  }
9373
- function Zu() {
9373
+ function ed() {
9374
9374
  if (ss) return jr;
9375
9375
  ss = !0;
9376
9376
  var s = Ps(), e = function() {
@@ -9385,10 +9385,10 @@ function Zu() {
9385
9385
  }
9386
9386
  }, jr = e, jr;
9387
9387
  }
9388
- function ed() {
9388
+ function td() {
9389
9389
  if (os) return Dr;
9390
9390
  os = !0;
9391
- var s = er(), e = Xu(), t = Zu()(), r = bl(), i = br(), n = s("%Math.floor%");
9391
+ var s = er(), e = Zu(), t = ed()(), r = bl(), i = br(), n = s("%Math.floor%");
9392
9392
  return Dr = function(o, a) {
9393
9393
  if (typeof o != "function") throw new i("`fn` is not a function");
9394
9394
  if (typeof a != "number" || a < 0 || a > 4294967295 || n(a) !== a) throw new i("`length` must be a positive 32-bit integer");
@@ -9400,10 +9400,10 @@ function ed() {
9400
9400
  return (c || u || !l) && (t ? e(o, "length", a, !0, !0) : e(o, "length", a)), o;
9401
9401
  }, Dr;
9402
9402
  }
9403
- function td() {
9403
+ function rd() {
9404
9404
  if (as) return Vt;
9405
9405
  as = !0;
9406
- var s = Cs(), e = er(), t = ed(), r = br(), i = e("%Function.prototype.apply%"), n = e("%Function.prototype.call%"), o = e("%Reflect.apply%", !0) || s.call(n, i), a = Ps(), l = e("%Math.max%");
9406
+ var s = Cs(), e = er(), t = td(), r = br(), i = e("%Function.prototype.apply%"), n = e("%Function.prototype.call%"), o = e("%Reflect.apply%", !0) || s.call(n, i), a = Ps(), l = e("%Math.max%");
9407
9407
  Vt = function(u) {
9408
9408
  if (typeof u != "function") throw new r("a function is required");
9409
9409
  var d = o(s, n, arguments);
@@ -9414,27 +9414,27 @@ function td() {
9414
9414
  };
9415
9415
  return a ? a(Vt, "apply", { value: c }) : Vt.apply = c, Vt;
9416
9416
  }
9417
- function rd() {
9417
+ function nd() {
9418
9418
  if (ls) return $r;
9419
9419
  ls = !0;
9420
- var s = er(), e = td(), t = e(s("String.prototype.indexOf"));
9420
+ var s = er(), e = rd(), t = e(s("String.prototype.indexOf"));
9421
9421
  return $r = function(r, i) {
9422
9422
  var n = s(r, !!i);
9423
9423
  return typeof n == "function" && t(r, ".prototype.") > -1 ? e(n) : n;
9424
9424
  }, $r;
9425
9425
  }
9426
- var Ni, Ri, ji, Di, $i, Ui, Bi, Fi, qi, Hi, Wi, zi, Vi, Ki, Gi, Yi, Ir, Ji, Tr, Qi, Cr, Xi, Pr, Zi, Or, es, Lr, ts, Mr, rs, Nr, ns, Rr, is, jr, ss, Dr, os, Vt, as, $r, ls, nd = Qe(() => {
9426
+ var Ni, Ri, ji, Di, $i, Ui, Bi, Fi, qi, Hi, Wi, zi, Vi, Ki, Gi, Yi, Ir, Ji, Tr, Qi, Cr, Xi, Pr, Zi, Or, es, Lr, ts, Mr, rs, Nr, ns, Rr, is, jr, ss, Dr, os, Vt, as, $r, ls, id = Qe(() => {
9427
9427
  le(), ue(), ce(), Ni = {}, Ri = !1, ji = {}, Di = !1, $i = {}, Ui = !1, Bi = {}, Fi = !1, qi = {}, Hi = !1, Wi = {}, zi = !1, Vi = {}, Ki = !1, Gi = {}, Yi = !1, Ir = {}, Ji = !1, Tr = {}, Qi = !1, Cr = {}, Xi = !1, Pr = {}, Zi = !1, Or = {}, es = !1, Lr = {}, ts = !1, Mr = {}, rs = !1, Nr = {}, ns = !1, Rr = {}, is = !1, jr = {}, ss = !1, Dr = {}, os = !1, Vt = {}, as = !1, $r = {}, ls = !1;
9428
9428
  });
9429
9429
  function Os(s) {
9430
9430
  throw new Error("Node.js process " + s + " is not supported by JSPM core outside of Node.js");
9431
9431
  }
9432
- function id() {
9432
+ function sd() {
9433
9433
  !$t || !jt || ($t = !1, jt.length ? ht = jt.concat(ht) : fr = -1, ht.length && yl());
9434
9434
  }
9435
9435
  function yl() {
9436
9436
  if (!$t) {
9437
- var s = setTimeout(id, 0);
9437
+ var s = setTimeout(sd, 0);
9438
9438
  $t = !0;
9439
9439
  for (var e = ht.length; e; ) {
9440
9440
  for (jt = ht, ht = []; ++fr < e; ) jt && jt[fr].run();
@@ -9443,7 +9443,7 @@ function yl() {
9443
9443
  jt = null, $t = !1, clearTimeout(s);
9444
9444
  }
9445
9445
  }
9446
- function sd(s) {
9446
+ function od(s) {
9447
9447
  var e = new Array(arguments.length - 1);
9448
9448
  if (arguments.length > 1) for (var t = 1; t < arguments.length; t++) e[t - 1] = arguments[t];
9449
9449
  ht.push(new vl(s, e)), ht.length === 1 && !$t && setTimeout(yl, 0);
@@ -9453,25 +9453,25 @@ function vl(s, e) {
9453
9453
  }
9454
9454
  function ze() {
9455
9455
  }
9456
- function od(s) {
9456
+ function ad(s) {
9457
9457
  Os("_linkedBinding");
9458
9458
  }
9459
- function ad(s) {
9459
+ function ld(s) {
9460
9460
  Os("dlopen");
9461
9461
  }
9462
- function ld() {
9462
+ function cd() {
9463
9463
  return [];
9464
9464
  }
9465
- function cd() {
9465
+ function ud() {
9466
9466
  return [];
9467
9467
  }
9468
- function ud(s, e) {
9468
+ function dd(s, e) {
9469
9469
  if (!s) throw new Error(e || "assertion error");
9470
9470
  }
9471
- function dd() {
9471
+ function hd() {
9472
9472
  return !1;
9473
9473
  }
9474
- function hd() {
9474
+ function fd() {
9475
9475
  return bt.now() / 1e3;
9476
9476
  }
9477
9477
  function dn(s) {
@@ -9481,7 +9481,7 @@ function dn(s) {
9481
9481
  function Et() {
9482
9482
  return Ls;
9483
9483
  }
9484
- function fd(s) {
9484
+ function pd(s) {
9485
9485
  return [];
9486
9486
  }
9487
9487
  var ht, $t, jt, fr, zs, Vs, Ks, Gs, Ys, Js, Qs, Xs, Zs, eo, to, ro, no, io, so, oo, ao, lo, co, uo, ho, wr, fo, po, mo, go, bo, yo, vo, wo, ko, xo, _o, So, Eo, Ao, Io, To, Co, Po, Oo, Lo, Mo, No, Ro, jo, Do, bt, hn, Ur, $o, Uo, Bo, Fo, qo, Ho, Wo, zo, Vo, Ko, Go, Ls, wl = Qe(() => {
@@ -9501,9 +9501,9 @@ var ht, $t, jt, fr, zs, Vs, Ks, Gs, Ys, Js, Qs, Xs, Zs, eo, to, ro, no, io, so,
9501
9501
  }, fo = wr, po = wr, mo = ze, go = ze, bo = ze, yo = {}, vo = { inspector: !1, debug: !1, uv: !1, ipv6: !1, tls_alpn: !1, tls_sni: !1, tls_ocsp: !1, tls: !1, cached_builtins: !0 }, wo = ze, ko = ze, xo = ze, _o = ze, So = ze, Eo = ze, Ao = ze, Io = void 0, To = void 0, Co = void 0, Po = ze, Oo = 2, Lo = 1, Mo = "/bin/usr/node", No = 9229, Ro = "node", jo = [], Do = ze, bt = { now: typeof performance < "u" ? performance.now.bind(performance) : void 0, timing: typeof performance < "u" ? performance.timing : void 0 }, bt.now === void 0 && (hn = Date.now(), bt.timing && bt.timing.navigationStart && (hn = bt.timing.navigationStart), bt.now = () => Date.now() - hn), Ur = 1e9, dn.bigint = function(s) {
9502
9502
  var e = dn(s);
9503
9503
  return typeof BigInt > "u" ? e[0] * Ur + e[1] : BigInt(e[0] * Ur) + BigInt(e[1]);
9504
- }, $o = 10, Uo = {}, Bo = 0, Fo = Et, qo = Et, Ho = Et, Wo = Et, zo = Et, Vo = ze, Ko = Et, Go = Et, Ls = { version: Qs, versions: Xs, arch: Vs, platform: Ks, release: io, _rawDebug: so, moduleLoadList: oo, binding: eo, _linkedBinding: od, _events: Uo, _eventsCount: Bo, _maxListeners: $o, on: Et, addListener: Fo, once: qo, off: Ho, removeListener: Wo, removeAllListeners: zo, emit: Vo, prependListener: Ko, prependOnceListener: Go, listeners: fd, domain: ao, _exiting: lo, config: co, dlopen: ad, uptime: hd, _getActiveRequests: ld, _getActiveHandles: cd, reallyExit: uo, _kill: ho, cpuUsage: wr, resourceUsage: fo, memoryUsage: po, kill: mo, exit: go, openStdin: bo, allowedNodeEnvironmentFlags: yo, assert: ud, features: vo, _fatalExceptions: wo, setUncaughtExceptionCaptureCallback: ko, hasUncaughtExceptionCaptureCallback: dd, emitWarning: Zs, nextTick: sd, _tickCallback: xo, _debugProcess: _o, _debugEnd: So, _startProfilerIdleNotifier: Eo, _stopProfilerIdleNotifier: Ao, stdout: Io, stdin: Co, stderr: To, abort: Po, umask: to, chdir: no, cwd: ro, env: Gs, title: zs, argv: Ys, execArgv: Js, pid: Oo, ppid: Lo, execPath: Mo, debugPort: No, hrtime: dn, argv0: Ro, _preload_modules: jo, setSourceMapsEnabled: Do };
9504
+ }, $o = 10, Uo = {}, Bo = 0, Fo = Et, qo = Et, Ho = Et, Wo = Et, zo = Et, Vo = ze, Ko = Et, Go = Et, Ls = { version: Qs, versions: Xs, arch: Vs, platform: Ks, release: io, _rawDebug: so, moduleLoadList: oo, binding: eo, _linkedBinding: ad, _events: Uo, _eventsCount: Bo, _maxListeners: $o, on: Et, addListener: Fo, once: qo, off: Ho, removeListener: Wo, removeAllListeners: zo, emit: Vo, prependListener: Ko, prependOnceListener: Go, listeners: pd, domain: ao, _exiting: lo, config: co, dlopen: ld, uptime: fd, _getActiveRequests: cd, _getActiveHandles: ud, reallyExit: uo, _kill: ho, cpuUsage: wr, resourceUsage: fo, memoryUsage: po, kill: mo, exit: go, openStdin: bo, allowedNodeEnvironmentFlags: yo, assert: dd, features: vo, _fatalExceptions: wo, setUncaughtExceptionCaptureCallback: ko, hasUncaughtExceptionCaptureCallback: hd, emitWarning: Zs, nextTick: od, _tickCallback: xo, _debugProcess: _o, _debugEnd: So, _startProfilerIdleNotifier: Eo, _stopProfilerIdleNotifier: Ao, stdout: Io, stdin: Co, stderr: To, abort: Po, umask: to, chdir: no, cwd: ro, env: Gs, title: zs, argv: Ys, execArgv: Js, pid: Oo, ppid: Lo, execPath: Mo, debugPort: No, hrtime: dn, argv0: Ro, _preload_modules: jo, setSourceMapsEnabled: Do };
9505
9505
  });
9506
- function pd() {
9506
+ function md() {
9507
9507
  if (cs) return Br;
9508
9508
  cs = !0;
9509
9509
  var s = Ls;
@@ -9654,11 +9654,11 @@ function pd() {
9654
9654
  }, sep: "/", delimiter: ":", win32: null, posix: null };
9655
9655
  return i.posix = i, Br = i, Br;
9656
9656
  }
9657
- var Br, cs, us, md = Qe(() => {
9658
- le(), ue(), ce(), wl(), Br = {}, cs = !1, us = pd();
9657
+ var Br, cs, us, gd = Qe(() => {
9658
+ le(), ue(), ce(), wl(), Br = {}, cs = !1, us = md();
9659
9659
  }), kl = {};
9660
9660
  Qt(kl, { URL: () => Ol, Url: () => Al, default: () => Ke, fileURLToPath: () => _l, format: () => Il, parse: () => Pl, pathToFileURL: () => Sl, resolve: () => Tl, resolveObject: () => Cl });
9661
- function gd() {
9661
+ function bd() {
9662
9662
  if (ds) return Fr;
9663
9663
  ds = !0;
9664
9664
  var s = typeof Map == "function" && Map.prototype, e = Object.getOwnPropertyDescriptor && s ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = s && e && typeof e.get == "function" ? e.get : null, r = s && Map.prototype.forEach, i = typeof Set == "function" && Set.prototype, n = Object.getOwnPropertyDescriptor && i ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, o = i && n && typeof n.get == "function" ? n.get : null, a = i && Set.prototype.forEach, l = typeof WeakMap == "function" && WeakMap.prototype, c = l ? WeakMap.prototype.has : null, u = typeof WeakSet == "function" && WeakSet.prototype, d = u ? WeakSet.prototype.has : null, p = typeof WeakRef == "function" && WeakRef.prototype, g = p ? WeakRef.prototype.deref : null, h = Boolean.prototype.valueOf, b = Object.prototype.toString, y = Function.prototype.toString, w = String.prototype.match, m = String.prototype.slice, k = String.prototype.replace, _ = String.prototype.toUpperCase, v = String.prototype.toLowerCase, S = RegExp.prototype.test, E = Array.prototype.concat, I = Array.prototype.join, P = Array.prototype.slice, L = Math.floor, D = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, T = Object.getOwnPropertySymbols, q = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, F = typeof Symbol == "function" && typeof Symbol.iterator == "object", $ = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === F || !0) ? Symbol.toStringTag : null, se = Object.prototype.propertyIsEnumerable, j = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(K) {
@@ -9953,10 +9953,10 @@ function gd() {
9953
9953
  }
9954
9954
  return Fr;
9955
9955
  }
9956
- function bd() {
9956
+ function yd() {
9957
9957
  if (hs) return Hr;
9958
9958
  hs = !0;
9959
- var s = er(), e = rd(), t = gd(), r = br(), i = s("%WeakMap%", !0), n = s("%Map%", !0), o = e("WeakMap.prototype.get", !0), a = e("WeakMap.prototype.set", !0), l = e("WeakMap.prototype.has", !0), c = e("Map.prototype.get", !0), u = e("Map.prototype.set", !0), d = e("Map.prototype.has", !0), p = function(y, w) {
9959
+ var s = er(), e = nd(), t = bd(), r = br(), i = s("%WeakMap%", !0), n = s("%Map%", !0), o = e("WeakMap.prototype.get", !0), a = e("WeakMap.prototype.set", !0), l = e("WeakMap.prototype.has", !0), c = e("Map.prototype.get", !0), u = e("Map.prototype.set", !0), d = e("Map.prototype.has", !0), p = function(y, w) {
9960
9960
  for (var m = y, k; (k = m.next) !== null; m = k) if (k.key === w) return m.next = k.next, k.next = y.next, y.next = k, k;
9961
9961
  }, g = function(y, w) {
9962
9962
  var m = p(y, w);
@@ -10098,10 +10098,10 @@ function xl() {
10098
10098
  };
10099
10099
  return zr = { arrayToObject: n, assign: a, combine: h, compact: d, decode: l, encode: u, isBuffer: g, isRegExp: p, maybeMap: b, merge: o }, zr;
10100
10100
  }
10101
- function yd() {
10101
+ function vd() {
10102
10102
  if (ms) return Vr;
10103
10103
  ms = !0;
10104
- var s = bd(), e = xl(), t = Ms(), r = Object.prototype.hasOwnProperty, i = { brackets: function(b) {
10104
+ var s = yd(), e = xl(), t = Ms(), r = Object.prototype.hasOwnProperty, i = { brackets: function(b) {
10105
10105
  return b + "[]";
10106
10106
  }, comma: "comma", indices: function(b, y) {
10107
10107
  return b + "[" + y + "]";
@@ -10190,7 +10190,7 @@ function yd() {
10190
10190
  return m.charsetSentinel && (m.charset === "iso-8859-1" ? T += "utf8=%26%2310003%3B&" : T += "utf8=%E2%9C%93&"), D.length > 0 ? T + D : "";
10191
10191
  }, Vr;
10192
10192
  }
10193
- function vd() {
10193
+ function wd() {
10194
10194
  if (gs) return Kr;
10195
10195
  gs = !0;
10196
10196
  var s = xl(), e = Object.prototype.hasOwnProperty, t = Array.isArray, r = { allowDots: !1, allowEmptyArrays: !1, allowPrototypes: !1, allowSparse: !1, arrayLimit: 20, charset: "utf-8", charsetSentinel: !1, comma: !1, decodeDotInKeys: !1, decoder: s.decode, delimiter: "&", depth: 5, duplicates: "combine", ignoreQueryPrefix: !1, interpretNumericEntities: !1, parameterLimit: 1e3, parseArrays: !0, plainObjects: !1, strictDepth: !1, strictNullHandling: !1 }, i = function(p) {
@@ -10263,13 +10263,13 @@ function vd() {
10263
10263
  return h.allowSparse === !0 ? y : s.compact(y);
10264
10264
  }, Kr;
10265
10265
  }
10266
- function wd() {
10266
+ function kd() {
10267
10267
  if (bs) return Gr;
10268
10268
  bs = !0;
10269
- var s = yd(), e = vd(), t = Ms();
10269
+ var s = vd(), e = wd(), t = Ms();
10270
10270
  return Gr = { formats: t, parse: e, stringify: s }, Gr;
10271
10271
  }
10272
- function kd() {
10272
+ function xd() {
10273
10273
  if (ys) return Ct;
10274
10274
  ys = !0;
10275
10275
  var s = Tt;
@@ -10277,7 +10277,7 @@ function kd() {
10277
10277
  this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
10278
10278
  }
10279
10279
  var t = /^([a-z0-9.+-]+:)/i, r = /:[0-9]*$/, i = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/, n = ["<", ">", '"', "`", " ", "\r", `
10280
- `, " "], o = ["{", "}", "|", "\\", "^", "`"].concat(n), a = ["'"].concat(o), l = ["%", "/", "?", ";", "#"].concat(a), c = ["/", "?", "#"], u = 255, d = /^[+a-z0-9A-Z_-]{0,63}$/, p = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, g = { javascript: !0, "javascript:": !0 }, h = { javascript: !0, "javascript:": !0 }, b = { http: !0, https: !0, ftp: !0, gopher: !0, file: !0, "http:": !0, "https:": !0, "ftp:": !0, "gopher:": !0, "file:": !0 }, y = wd();
10280
+ `, " "], o = ["{", "}", "|", "\\", "^", "`"].concat(n), a = ["'"].concat(o), l = ["%", "/", "?", ";", "#"].concat(a), c = ["/", "?", "#"], u = 255, d = /^[+a-z0-9A-Z_-]{0,63}$/, p = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, g = { javascript: !0, "javascript:": !0 }, h = { javascript: !0, "javascript:": !0 }, b = { http: !0, https: !0, ftp: !0, gopher: !0, file: !0, "http:": !0, "https:": !0, "ftp:": !0, "gopher:": !0, "file:": !0 }, y = kd();
10281
10281
  function w(v, S, E) {
10282
10282
  if (v && typeof v == "object" && v instanceof e) return v;
10283
10283
  var I = new e();
@@ -10434,9 +10434,9 @@ function _l(s) {
10434
10434
  if (typeof s == "string") s = new URL(s);
10435
10435
  else if (!(s instanceof URL)) throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");
10436
10436
  if (s.protocol !== "file:") throw new Deno.errors.InvalidData("invalid url scheme");
10437
- return Qr ? xd(s) : _d(s);
10437
+ return Qr ? _d(s) : Sd(s);
10438
10438
  }
10439
- function xd(s) {
10439
+ function _d(s) {
10440
10440
  let e = s.hostname, t = s.pathname;
10441
10441
  for (let r = 0; r < t.length; r++) if (t[r] === "%") {
10442
10442
  let i = t.codePointAt(r + 2) || 32;
@@ -10449,7 +10449,7 @@ function xd(s) {
10449
10449
  return t.slice(1);
10450
10450
  }
10451
10451
  }
10452
- function _d(s) {
10452
+ function Sd(s) {
10453
10453
  if (s.hostname !== "") throw new Deno.errors.InvalidData("invalid file url hostname");
10454
10454
  let e = s.pathname;
10455
10455
  for (let t = 0; t < e.length; t++) if (e[t] === "%") {
@@ -10465,9 +10465,9 @@ function Sl(s) {
10465
10465
  return e.includes("%") && (e = e.replace(Dl, "%25")), !Qr && e.includes("\\") && (e = e.replace($l, "%5C")), e.includes(`
10466
10466
  `) && (e = e.replace(Ul, "%0A")), e.includes("\r") && (e = e.replace(Bl, "%0D")), e.includes(" ") && (e = e.replace(Fl, "%09")), r.pathname = e, r;
10467
10467
  }
10468
- var El, Fr, ds, qr, Hr, hs, Wr, fs, zr, ps, Vr, ms, Kr, gs, Gr, bs, Ct, ys, Ke, Yo, Al, Il, Tl, Cl, Pl, Ol, Ll, Ml, Nl, Rl, Qr, jl, Dl, $l, Ul, Bl, Fl, Sd = Qe(() => {
10469
- le(), ue(), ce(), Fu(), nd(), md(), wl(), El = Object.freeze(/* @__PURE__ */ Object.create(null)), Fr = {}, ds = !1, qr = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : global, Hr = {}, hs = !1, Wr = {}, fs = !1, zr = {}, ps = !1, Vr = {}, ms = !1, Kr = {}, gs = !1, Gr = {}, bs = !1, Ct = {}, ys = !1, Ke = kd(), Ke.parse, Ke.resolve, Ke.resolveObject, Ke.format, Ke.Url, Yo = typeof Deno < "u" ? Deno.build.os === "windows" ? "win32" : Deno.build.os : void 0, Ke.URL = typeof URL < "u" ? URL : null, Ke.pathToFileURL = Sl, Ke.fileURLToPath = _l, Al = Ke.Url, Il = Ke.format, Tl = Ke.resolve, Cl = Ke.resolveObject, Pl = Ke.parse, Ol = Ke.URL, Ll = 92, Ml = 47, Nl = 97, Rl = 122, Qr = Yo === "win32", jl = /\//g, Dl = /%/g, $l = /\\/g, Ul = /\n/g, Bl = /\r/g, Fl = /\t/g;
10470
- }), Ed = me((s, e) => {
10468
+ var El, Fr, ds, qr, Hr, hs, Wr, fs, zr, ps, Vr, ms, Kr, gs, Gr, bs, Ct, ys, Ke, Yo, Al, Il, Tl, Cl, Pl, Ol, Ll, Ml, Nl, Rl, Qr, jl, Dl, $l, Ul, Bl, Fl, Ed = Qe(() => {
10469
+ le(), ue(), ce(), qu(), id(), gd(), wl(), El = Object.freeze(/* @__PURE__ */ Object.create(null)), Fr = {}, ds = !1, qr = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : global, Hr = {}, hs = !1, Wr = {}, fs = !1, zr = {}, ps = !1, Vr = {}, ms = !1, Kr = {}, gs = !1, Gr = {}, bs = !1, Ct = {}, ys = !1, Ke = xd(), Ke.parse, Ke.resolve, Ke.resolveObject, Ke.format, Ke.Url, Yo = typeof Deno < "u" ? Deno.build.os === "windows" ? "win32" : Deno.build.os : void 0, Ke.URL = typeof URL < "u" ? URL : null, Ke.pathToFileURL = Sl, Ke.fileURLToPath = _l, Al = Ke.Url, Il = Ke.format, Tl = Ke.resolve, Cl = Ke.resolveObject, Pl = Ke.parse, Ol = Ke.URL, Ll = 92, Ml = 47, Nl = 97, Rl = 122, Qr = Yo === "win32", jl = /\//g, Dl = /%/g, $l = /\\/g, Ul = /\n/g, Bl = /\r/g, Fl = /\t/g;
10470
+ }), Ad = me((s, e) => {
10471
10471
  le(), ue(), ce(), e.exports = function() {
10472
10472
  throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object");
10473
10473
  };
@@ -10521,7 +10521,7 @@ var El, Fr, ds, qr, Hr, hs, Wr, fs, zr, ps, Vr, ms, Kr, gs, Gr, bs, Ct, ys, Ke,
10521
10521
  return w && w.__esModule ? w : { default: w };
10522
10522
  };
10523
10523
  Object.defineProperty(s, "__esModule", { value: !0 }), s.streamBuilder = s.browserStreamBuilder = void 0;
10524
- var t = (qe(), Re(Fe)), r = e(Ed()), i = e(vt()), n = Ft(), o = e(an()), a = Ns(), l = (0, i.default)("mqttjs:ws"), c = ["rejectUnauthorized", "ca", "cert", "key", "pfx", "passphrase"];
10524
+ var t = (qe(), Re(Fe)), r = e(Ad()), i = e(vt()), n = Ft(), o = e(an()), a = Ns(), l = (0, i.default)("mqttjs:ws"), c = ["rejectUnauthorized", "ca", "cert", "key", "pfx", "passphrase"];
10525
10525
  function u(w, m) {
10526
10526
  let k = `${w.protocol}://${w.hostname}:${w.port}${w.path}`;
10527
10527
  return typeof w.transformWsUrl == "function" && (k = w.transformWsUrl(k, w, m)), k;
@@ -10632,7 +10632,7 @@ var ql, Hl = Qe(() => {
10632
10632
  s.default = o;
10633
10633
  }), zl = {};
10634
10634
  Qt(zl, { default: () => Vl });
10635
- var Vl, Ad = Qe(() => {
10635
+ var Vl, Id = Qe(() => {
10636
10636
  le(), ue(), ce(), Vl = {};
10637
10637
  }), Qo = me((s) => {
10638
10638
  le(), ue(), ce();
@@ -10640,7 +10640,7 @@ var Vl, Ad = Qe(() => {
10640
10640
  return c && c.__esModule ? c : { default: c };
10641
10641
  };
10642
10642
  Object.defineProperty(s, "__esModule", { value: !0 });
10643
- var t = (Ad(), Re(zl)), r = e((Hl(), Re(Rs))), i = e(vt()), n = e(Wl()), o = (0, i.default)("mqttjs:tls");
10643
+ var t = (Id(), Re(zl)), r = e((Hl(), Re(Rs))), i = e(vt()), n = e(Wl()), o = (0, i.default)("mqttjs:tls");
10644
10644
  function a(c) {
10645
10645
  let { host: u, port: d, socksProxy: p, ...g } = c;
10646
10646
  if (p !== void 0) {
@@ -10771,13 +10771,13 @@ var Vl, Ad = Qe(() => {
10771
10771
  return i = h.my, i.connectSocket({ url: y, protocols: b }), n = l(), o = new r.BufferedDuplex(h, n, i), d(), o;
10772
10772
  };
10773
10773
  s.default = p;
10774
- }), Id = me((s) => {
10774
+ }), Td = me((s) => {
10775
10775
  le(), ue(), ce();
10776
10776
  var e = s && s.__importDefault || function(d) {
10777
10777
  return d && d.__esModule ? d : { default: d };
10778
10778
  };
10779
10779
  Object.defineProperty(s, "__esModule", { value: !0 }), s.connectAsync = u;
10780
- var t = e(vt()), r = e((Sd(), Re(kl))), i = e(Oi()), n = e(an());
10780
+ var t = e(vt()), r = e((Ed(), Re(kl))), i = e(Oi()), n = e(an());
10781
10781
  typeof De?.nextTick != "function" && (De.nextTick = setImmediate);
10782
10782
  var o = (0, t.default)("mqttjs"), a = null;
10783
10783
  function l(d) {
@@ -10885,11 +10885,11 @@ var Vl, Ad = Qe(() => {
10885
10885
  s.MqttClient = o.default;
10886
10886
  var a = n(ll());
10887
10887
  s.DefaultMessageIdProvider = a.default;
10888
- var l = n(Uu());
10888
+ var l = n(Bu());
10889
10889
  s.UniqueMessageIdProvider = l.default;
10890
10890
  var c = n(za());
10891
10891
  s.Store = c.default;
10892
- var u = r(Id());
10892
+ var u = r(Td());
10893
10893
  s.connect = u.default, Object.defineProperty(s, "connectAsync", { enumerable: !0, get: function() {
10894
10894
  return u.connectAsync;
10895
10895
  } });
@@ -10899,7 +10899,7 @@ var Vl, Ad = Qe(() => {
10899
10899
  Object.defineProperty(s, "ReasonCodes", { enumerable: !0, get: function() {
10900
10900
  return p.ReasonCodes;
10901
10901
  } });
10902
- }), Td = me((s) => {
10902
+ }), Cd = me((s) => {
10903
10903
  le(), ue(), ce();
10904
10904
  var e = s && s.__createBinding || (Object.create ? function(o, a, l, c) {
10905
10905
  c === void 0 && (c = l);
@@ -10934,25 +10934,25 @@ var Vl, Ad = Qe(() => {
10934
10934
  var n = r(ea());
10935
10935
  s.default = n, i(ea(), s);
10936
10936
  });
10937
- const Cd = Td();
10938
- const Pd = {
10937
+ const Pd = Cd();
10938
+ const Od = {
10939
10939
  inbound: "apps/{appId}/users/{userId}/messages/{conversationId}/clientadded",
10940
10940
  inboundUpdate: "apps/{appId}/users/{userId}/messages/{conversationId}/{messageId}/update",
10941
10941
  outbound: "apps/{appId}/outgoing/users/{userId}/messages/{conversationId}/outgoing",
10942
10942
  presence: "apps/{appId}/users/{userId}/presence/{clientId}",
10943
10943
  wildcardSubscribe: "apps/{appId}/users/{userId}/#"
10944
- }, Od = 300, Ld = {
10944
+ }, Ld = 300, Md = {
10945
10945
  templateId: "7",
10946
10946
  type: "link",
10947
10947
  isDeepLink: !0
10948
- }, Md = {
10948
+ }, Nd = {
10949
10949
  channelType: "group",
10950
10950
  channel: "chat21",
10951
10951
  requestChannel: "chat21",
10952
10952
  platform: "WEBSITE",
10953
10953
  medium: "CHATBUDDY"
10954
10954
  };
10955
- class Nd {
10955
+ class Rd {
10956
10956
  client = null;
10957
10957
  config;
10958
10958
  currentToken;
@@ -10979,7 +10979,7 @@ class Nd {
10979
10979
  inboundRegex;
10980
10980
  inboundUpdateRegex;
10981
10981
  constructor(e) {
10982
- this.config = e, this.currentToken = e.jwtToken, this.appId = e.appId ?? "tilechat", this.clientId = e.clientId ?? this.freshClientId(), this.topics = { ...Pd, ...e.topicTemplates ?? {} }, this.maxReconnectAttempts = e.maxReconnectAttempts ?? 1 / 0, this.reconnectMaxDelayMs = e.reconnectMaxDelayMs ?? 3e4, this.inboundRegex = this.buildTopicRegex(
10982
+ this.config = e, this.currentToken = e.jwtToken, this.appId = e.appId ?? "tilechat", this.clientId = e.clientId ?? this.freshClientId(), this.topics = { ...Od, ...e.topicTemplates ?? {} }, this.maxReconnectAttempts = e.maxReconnectAttempts ?? 1 / 0, this.reconnectMaxDelayMs = e.reconnectMaxDelayMs ?? 3e4, this.inboundRegex = this.buildTopicRegex(
10983
10983
  this.topics.inbound,
10984
10984
  ["conversationId"]
10985
10985
  ), this.inboundUpdateRegex = this.buildTopicRegex(
@@ -11031,7 +11031,7 @@ class Nd {
11031
11031
  () => c("connect-timeout"),
11032
11032
  r + 500
11033
11033
  );
11034
- this.client = Cd.connect(this.config.mqttEndpoint, i), this.client.on("connect", () => {
11034
+ this.client = Pd.connect(this.config.mqttEndpoint, i), this.client.on("connect", () => {
11035
11035
  if (this.connectedAt = Date.now(), a || l(() => n()), this.debugLog("CONNECT", { endpoint: this.config.mqttEndpoint, clientId: this.clientId }), this.notifyStateChange(!0), this.config.enablePresence !== !1) {
11036
11036
  const d = this.config.presencePayloadConnected ?? { connected: !0 };
11037
11037
  this.client.publish(e, JSON.stringify(d), { qos: 0, retain: !1 }), this.debugLog("PUBLISH", { topic: e, payload: d });
@@ -11096,9 +11096,9 @@ class Nd {
11096
11096
  publishFileMessage(e, t) {
11097
11097
  if (!this.client) return;
11098
11098
  const r = {
11099
- ...Ld,
11099
+ ...Md,
11100
11100
  ...this.config.fileTemplate ?? {},
11101
- ...Rd(t)
11101
+ ...jd(t)
11102
11102
  }, i = {
11103
11103
  metadata: {
11104
11104
  contentType: "300",
@@ -11137,7 +11137,7 @@ class Nd {
11137
11137
  * Send a read receipt for a message. Tiledesk widgets publish
11138
11138
  * `{"status":300}` to apps/{appId}/users/{userId}/messages/{convId}/{msgId}/update.
11139
11139
  */
11140
- publishReadReceipt(e, t, r = Od) {
11140
+ publishReadReceipt(e, t, r = Ld) {
11141
11141
  if (!this.client) return;
11142
11142
  const i = this.renderTemplate(this.topics.inboundUpdate, { conversationId: e, messageId: t });
11143
11143
  this.client.publish(i, JSON.stringify({ status: r }), {
@@ -11268,7 +11268,7 @@ class Nd {
11268
11268
  this.messageHandlers.forEach((c) => c(i, l));
11269
11269
  }
11270
11270
  buildOutgoingEnvelope(e, t) {
11271
- const r = { ...Md, ...this.config.messageDefaults ?? {} }, i = this.config.senderFullname ?? this.config.userName ?? this.config.userId, n = this.config.recipientFullnameResolver?.(e), o = {
11271
+ const r = { ...Nd, ...this.config.messageDefaults ?? {} }, i = this.config.senderFullname ?? this.config.userName ?? this.config.userId, n = this.config.recipientFullnameResolver?.(e), o = {
11272
11272
  projectId: this.config.projectId,
11273
11273
  ...r.departmentId ? { departmentId: r.departmentId } : {},
11274
11274
  ...this.config.userName ? { userFullname: this.config.userName } : {},
@@ -11342,16 +11342,16 @@ class Nd {
11342
11342
  return new RegExp(`^${r}$`);
11343
11343
  }
11344
11344
  }
11345
- function Rd(s) {
11345
+ function jd(s) {
11346
11346
  const e = {};
11347
11347
  for (const [t, r] of Object.entries(s))
11348
11348
  r !== void 0 && (e[t] = r);
11349
11349
  return e;
11350
11350
  }
11351
- function jd(s, e) {
11351
+ function Dd(s, e) {
11352
11352
  return (s.sender ?? "").toString() === e;
11353
11353
  }
11354
- function Dd(s, e) {
11354
+ function $d(s, e) {
11355
11355
  const t = (s.sender ?? "").toString(), r = e.systemSenders ?? ["metadata", "system"], i = e.botSenderPrefix ?? "bot_";
11356
11356
  return t ? t === e.userId ? "user" : t.startsWith(i) ? "assistant" : r.includes(t) ? "system" : "agent" : "system";
11357
11357
  }
@@ -11372,7 +11372,7 @@ function Kl(s) {
11372
11372
  }
11373
11373
  return e;
11374
11374
  }
11375
- function $d(s) {
11375
+ function Ud(s) {
11376
11376
  const e = Kl(s);
11377
11377
  if (e.contentType !== "300") return null;
11378
11378
  const t = e.payload, r = t && Array.isArray(t.elements) ? t.elements : null;
@@ -11386,10 +11386,10 @@ function $d(s) {
11386
11386
  };
11387
11387
  }
11388
11388
  function ta(s, e, t) {
11389
- const r = Dd(s, t), i = Kl(s), n = $d(s);
11389
+ const r = $d(s, t), i = Kl(s), n = Ud(s);
11390
11390
  let o = "";
11391
11391
  i.innerMessage ? o = i.innerMessage : typeof s.text == "string" && (s.text.trim().startsWith("{") ? i.contentType !== "300" && (o = s.text) : o = s.text);
11392
- const a = typeof s.message_id == "string" ? s.message_id : `td_${Date.now()}_${Math.random().toString(36).slice(2, 8)}`, l = typeof s.timestamp == "number" ? new Date(s.timestamp).toISOString() : (/* @__PURE__ */ new Date()).toISOString(), c = r === "assistant" ? "assistant" : r === "agent" ? "agent" : r === "system" ? "system" : "user", u = typeof s.status == "number" ? Ud(s.status) : "delivered", d = {
11392
+ const a = typeof s.message_id == "string" ? s.message_id : `td_${Date.now()}_${Math.random().toString(36).slice(2, 8)}`, l = typeof s.timestamp == "number" ? new Date(s.timestamp).toISOString() : (/* @__PURE__ */ new Date()).toISOString(), c = r === "assistant" ? "assistant" : r === "agent" ? "agent" : r === "system" ? "system" : "user", u = typeof s.status == "number" ? Bd(s.status) : "delivered", d = {
11393
11393
  id: a,
11394
11394
  externalId: a,
11395
11395
  conversationId: e,
@@ -11416,10 +11416,10 @@ function ta(s, e, t) {
11416
11416
  }
11417
11417
  ]), { message: d, template: i };
11418
11418
  }
11419
- function Ud(s) {
11419
+ function Bd(s) {
11420
11420
  return s < 0 ? "error" : s >= 250 ? "read" : s >= 150 ? "delivered" : "sent";
11421
11421
  }
11422
- class Bd extends pa {
11422
+ class Fd extends pa {
11423
11423
  connection = null;
11424
11424
  tiledesk = null;
11425
11425
  api;
@@ -11432,7 +11432,7 @@ class Bd extends pa {
11432
11432
  historyAdapter;
11433
11433
  tiledeskUnsubs = [];
11434
11434
  constructor(e, t) {
11435
- super(), this.config = e, this.mode = e.transport ?? "aikaara", this.uploadAdapter = t?.uploadAdapter ?? null, this.historyAdapter = t?.historyAdapter ?? null, this.api = new vc(e.baseUrl, e.userToken, e.apiKey, e.authToken), this.messageStore = new wc(), this.conversationManager = new kc(e.conversationId), this.usesAikaara() && (this.connection = new yc(e), this.connection.on("connection:state", (r) => {
11435
+ super(), this.config = e, this.mode = e.transport ?? "aikaara", this.uploadAdapter = t?.uploadAdapter ?? null, this.historyAdapter = t?.historyAdapter ?? null, this.api = new wc(e.baseUrl, e.userToken, e.apiKey, e.authToken), this.messageStore = new kc(), this.conversationManager = new xc(e.conversationId), this.usesAikaara() && (this.connection = new vc(e), this.connection.on("connection:state", (r) => {
11436
11436
  this.emit("connection:state", r), this.config.onConnectionStateChange?.(r);
11437
11437
  }), this.connection.on("error", (r) => {
11438
11438
  this.emit("error", r), this.config.onError?.(r);
@@ -11452,7 +11452,7 @@ class Bd extends pa {
11452
11452
  throw new Error("AikaaraChatClient: tiledesk transport requires `config.tiledesk` (TiledeskTransportConfig)");
11453
11453
  if (!t?.userId)
11454
11454
  throw new Error("AikaaraChatClient: tiledesk transport requires `config.tiledeskIdentity.userId`");
11455
- this.tiledesk = new Nd({
11455
+ this.tiledesk = new Rd({
11456
11456
  ...e,
11457
11457
  userId: t.userId,
11458
11458
  userName: t.userName ?? e.userName,
@@ -11668,7 +11668,7 @@ class Bd extends pa {
11668
11668
  systemSenders: this.config.tiledesk?.messageDefaults?.attributes?.systemSenders
11669
11669
  });
11670
11670
  if (this.mode === "dual" && o.role === "assistant") return;
11671
- if (jd(e, n)) {
11671
+ if (Dd(e, n)) {
11672
11672
  const u = this.messageStore.reconcileOptimistic(o);
11673
11673
  if (u) {
11674
11674
  this.emit("message:updated", u);
@@ -11818,12 +11818,12 @@ const ra = {
11818
11818
  doc: "application/msword",
11819
11819
  json: "application/json"
11820
11820
  };
11821
- function Fd(s) {
11821
+ function qd(s) {
11822
11822
  const e = s.lastIndexOf(".");
11823
11823
  return e < 0 || e === s.length - 1 ? "" : s.slice(e + 1).toLowerCase();
11824
11824
  }
11825
- function qd(s, e, t) {
11826
- const r = Fd(s.name || "");
11825
+ function Hd(s, e, t) {
11826
+ const r = qd(s.name || "");
11827
11827
  if (r && e && e[r]) return e[r];
11828
11828
  const i = s.type;
11829
11829
  return i && i.trim().length > 0 ? i : r && ra[r] ? ra[r] : t;
@@ -11831,7 +11831,7 @@ function qd(s, e, t) {
11831
11831
  function sr(s, e) {
11832
11832
  return s.replace(/\{(\w+)\}/g, (t, r) => e[r] ?? "");
11833
11833
  }
11834
- function Hd(s, e) {
11834
+ function Wd(s, e) {
11835
11835
  const t = e.split(".");
11836
11836
  let r = s;
11837
11837
  for (const i of t)
@@ -11840,11 +11840,11 @@ function Hd(s, e) {
11840
11840
  else return "";
11841
11841
  return typeof r == "string" ? r : "";
11842
11842
  }
11843
- function Wd(s) {
11843
+ function zd(s) {
11844
11844
  const e = s.signedUrlPath || "data.s3SignedUrl";
11845
11845
  return {
11846
11846
  async upload(t, r) {
11847
- const i = t.name || `upload-${Date.now()}`, n = qd(
11847
+ const i = t.name || `upload-${Date.now()}`, n = Hd(
11848
11848
  t,
11849
11849
  s.contentTypeMap,
11850
11850
  s.contentTypeFallback ?? "application/octet-stream"
@@ -11882,7 +11882,7 @@ function Wd(s) {
11882
11882
  const d = await fetch(c, u);
11883
11883
  if (!d.ok)
11884
11884
  throw new Error(`Sign request failed: ${d.status}`);
11885
- const p = await d.json().catch(() => ({})), g = Hd(p, e);
11885
+ const p = await d.json().catch(() => ({})), g = Wd(p, e);
11886
11886
  if (!g) throw new Error(`Sign response missing path "${e}"`);
11887
11887
  const h = s.s3HostRewrite ? g.replace(/^https:\/\/[^/]+/i, s.s3HostRewrite) : g, b = await fetch(h, {
11888
11888
  method: "PUT",
@@ -11949,9 +11949,9 @@ function Gl(s) {
11949
11949
  }
11950
11950
  };
11951
11951
  }
11952
- const zd = "/tilechat/{userId}/conversations/{conversationId}/messages?pageSize={pageSize}";
11953
- function Vd(s) {
11954
- const e = s.apiBase.replace(/\/$/, ""), t = s.pageSize ?? 200, r = s.pathTemplate ?? zd;
11952
+ const Vd = "/tilechat/{userId}/conversations/{conversationId}/messages?pageSize={pageSize}";
11953
+ function Kd(s) {
11954
+ const e = s.apiBase.replace(/\/$/, ""), t = s.pageSize ?? 200, r = s.pathTemplate ?? Vd;
11955
11955
  return {
11956
11956
  async fetchMessages(i, n) {
11957
11957
  const o = r.replace("{userId}", encodeURIComponent(n.userId)).replace("{conversationId}", encodeURIComponent(i)).replace("{appId}", encodeURIComponent(n.appId ?? "tilechat")).replace("{projectId}", encodeURIComponent(n.projectId ?? "")).replace("{pageSize}", String(t)), a = o.startsWith("http") ? o : `${e}${o.startsWith("/") ? o : `/${o}`}`, l = {
@@ -11977,7 +11977,7 @@ function Vd(s) {
11977
11977
  }
11978
11978
  };
11979
11979
  }
11980
- const Kd = "^[A-Z]{4}[0-9]{5}[A-Z]$", Gd = "^\\S{12}$", Yl = "^[A-Z]{4}0[A-Z0-9]{6}$", Jl = "^[0-9]{6}$", Yd = {
11980
+ const Gd = "^[A-Z]{4}[0-9]{5}[A-Z]$", Yd = "^\\S{12}$", Yl = "^[A-Z]{4}0[A-Z0-9]{6}$", Jl = "^[0-9]{6}$", Jd = {
11981
11981
  id: "house-property",
11982
11982
  title: "House Property",
11983
11983
  icon: "🏠",
@@ -12049,7 +12049,7 @@ const Kd = "^[A-Z]{4}[0-9]{5}[A-Z]$", Gd = "^\\S{12}$", Yl = "^[A-Z]{4}0[A-Z0-9]
12049
12049
  }
12050
12050
  ],
12051
12051
  submitLabel: "Save"
12052
- }, Jd = {
12052
+ }, Qd = {
12053
12053
  id: "salary-hra",
12054
12054
  title: "Salary / HRA / Allowances",
12055
12055
  icon: "💰",
@@ -12074,7 +12074,7 @@ const Kd = "^[A-Z]{4}[0-9]{5}[A-Z]$", Gd = "^\\S{12}$", Yl = "^[A-Z]{4}0[A-Z0-9]
12074
12074
  // Optional: the pattern check only fires on a non-empty value, so a
12075
12075
  // blank TAN saves cleanly while a malformed one is still caught.
12076
12076
  label: "TAN (Tax Deduction Account Number)",
12077
- pattern: Kd,
12077
+ pattern: Gd,
12078
12078
  uppercase: !0,
12079
12079
  maxLength: 10
12080
12080
  }
@@ -12103,7 +12103,7 @@ const Kd = "^[A-Z]{4}[0-9]{5}[A-Z]$", Gd = "^\\S{12}$", Yl = "^[A-Z]{4}0[A-Z0-9]
12103
12103
  }
12104
12104
  ],
12105
12105
  submitLabel: "Save"
12106
- }, Qd = {
12106
+ }, Xd = {
12107
12107
  id: "deductions",
12108
12108
  title: "Deductions",
12109
12109
  icon: "📋",
@@ -12147,7 +12147,7 @@ const Kd = "^[A-Z]{4}[0-9]{5}[A-Z]$", Gd = "^\\S{12}$", Yl = "^[A-Z]{4}0[A-Z0-9]
12147
12147
  id: "us80ccd1bPanNo",
12148
12148
  type: "text",
12149
12149
  label: "PRAN No.",
12150
- pattern: Gd,
12150
+ pattern: Yd,
12151
12151
  maxLength: 12
12152
12152
  }
12153
12153
  ]
@@ -12383,7 +12383,7 @@ const Kd = "^[A-Z]{4}[0-9]{5}[A-Z]$", Gd = "^\\S{12}$", Yl = "^[A-Z]{4}0[A-Z0-9]
12383
12383
  }
12384
12384
  ],
12385
12385
  submitLabel: "Save"
12386
- }, Xd = {
12386
+ }, Zd = {
12387
12387
  id: "other-sources",
12388
12388
  title: "Income from Other Sources",
12389
12389
  icon: "💵",
@@ -12439,7 +12439,7 @@ const Kd = "^[A-Z]{4}[0-9]{5}[A-Z]$", Gd = "^\\S{12}$", Yl = "^[A-Z]{4}0[A-Z0-9]
12439
12439
  }
12440
12440
  ],
12441
12441
  submitLabel: "Save"
12442
- }, Zd = {
12442
+ }, eh = {
12443
12443
  id: "crypto-income",
12444
12444
  title: "Crypto Income",
12445
12445
  icon: "🪙",
@@ -12468,7 +12468,7 @@ const Kd = "^[A-Z]{4}[0-9]{5}[A-Z]$", Gd = "^\\S{12}$", Yl = "^[A-Z]{4}0[A-Z0-9]
12468
12468
  }
12469
12469
  ],
12470
12470
  submitLabel: "Save"
12471
- }, eh = {
12471
+ }, th = {
12472
12472
  id: "business-profession",
12473
12473
  title: "Business / Profession",
12474
12474
  icon: "💼",
@@ -12541,7 +12541,7 @@ const Kd = "^[A-Z]{4}[0-9]{5}[A-Z]$", Gd = "^\\S{12}$", Yl = "^[A-Z]{4}0[A-Z0-9]
12541
12541
  }
12542
12542
  ],
12543
12543
  submitLabel: "Save"
12544
- }, th = {
12544
+ }, rh = {
12545
12545
  id: "agricultural-income",
12546
12546
  title: "Agricultural Income",
12547
12547
  icon: "🌾",
@@ -12605,7 +12605,7 @@ const Kd = "^[A-Z]{4}[0-9]{5}[A-Z]$", Gd = "^\\S{12}$", Yl = "^[A-Z]{4}0[A-Z0-9]
12605
12605
  }
12606
12606
  ],
12607
12607
  submitLabel: "Save"
12608
- }, rh = {
12608
+ }, nh = {
12609
12609
  id: "bank-details",
12610
12610
  title: "Personal / Bank Details",
12611
12611
  icon: "🏦",
@@ -12658,22 +12658,22 @@ const Kd = "^[A-Z]{4}[0-9]{5}[A-Z]$", Gd = "^\\S{12}$", Yl = "^[A-Z]{4}0[A-Z0-9]
12658
12658
  // },
12659
12659
  ],
12660
12660
  submitLabel: "Save"
12661
- }, nh = [
12662
- Jd,
12663
- eh,
12664
- Xd,
12665
- Zd,
12666
- Yd,
12661
+ }, ih = [
12667
12662
  Qd,
12668
12663
  th,
12669
- rh
12664
+ Zd,
12665
+ eh,
12666
+ Jd,
12667
+ Xd,
12668
+ rh,
12669
+ nh
12670
12670
  // Hidden for now — re-enable to restore the full set:
12671
12671
  // capitalGains,
12672
12672
  // exemptIncome,
12673
12673
  // taxPaidTds,
12674
12674
  // haveAQuestion,
12675
12675
  ];
12676
- function ih(s, e) {
12676
+ function sh(s, e) {
12677
12677
  const t = s || {}, r = {
12678
12678
  userId: nt(e.userId),
12679
12679
  assessmentYear: e.assessmentYear,
@@ -12683,37 +12683,42 @@ function ih(s, e) {
12683
12683
  isRevised: e.isRevised || "N",
12684
12684
  timestamp: yh()
12685
12685
  };
12686
- r.us80cAmount = _e(t.us80cAmount), r.us80dForSelfAndFamilyAmount = _e(t.us80dForSelfAndFamilyAmount), r.us80dForParentsAmount = _e(t.us80dForParentsAmount), r.hasParentOverSixty = mr(t.hasParentOverSixty), r.preventiveHealthCheckUp = _e(t.preventiveHealthCheckUp), r.medicalExpenditure = _e(t.medicalExpenditure), r.savingBankInterest = _e(t.savingBankInterest), r.fdInterest = _e(t.fdInterest), r.dividend = _e(t.dividend), r.anyOtherIncome = _e(t.anyOtherIncome), r.familyPension = _e(t.familyPension), r.cryptoSellValue = _e(t.cryptoSellPrice), r.cryptoPurchaseAmount = _e(t.cryptoPurchasePrice), r.vdaPurchaseCost = _e(t.cryptoPurchasePrice);
12687
- const i = (_e(t.bizReceiptsBank) ?? 0) + (_e(t.bizReceiptsCash) ?? 0), n = (_e(t.profReceiptsBank) ?? 0) + (_e(t.profReceiptsCash) ?? 0), o = Ee(t.bizName) !== void 0 || i > 0;
12688
- r.businessName = Ee(o ? t.bizName : t.profName), r.businessAnnualTurnOver = o ? i || void 0 : n || void 0, r.agricultureDetails = Xl(t), r.exemptIncomeAmount = _e(t.exemptIncome), r.exemptIncomeNature = Ee(t.exemptIncomeNature), _e(t.exemptIncome) !== void 0 && (r.exemptIncomes = [
12686
+ r.us80cAmount = _e(t.us80cAmount), r.us80dForSelfAndFamilyAmount = _e(t.us80dForSelfAndFamilyAmount), r.us80dForParentsAmount = _e(t.us80dForParentsAmount), r.hasParentOverSixty = mr(t.hasParentOverSixty), r.preventiveHealthCheckUp = _e(t.preventiveHealthCheckUp), r.medicalExpenditure = _e(t.medicalExpenditure);
12687
+ const i = Xl(t, {
12688
+ userId: e.userId,
12689
+ assessmentYear: e.assessmentYear
12690
+ });
12691
+ i && (r.donations80g = i.donations80g), r.savingBankInterest = _e(t.savingBankInterest), r.fdInterest = _e(t.fdInterest), r.dividend = _e(t.dividend), r.anyOtherIncome = _e(t.anyOtherIncome), r.familyPension = _e(t.familyPension), r.cryptoSellValue = _e(t.cryptoSellPrice), r.cryptoPurchaseAmount = _e(t.cryptoPurchasePrice), r.vdaPurchaseCost = _e(t.cryptoPurchasePrice);
12692
+ const n = (_e(t.bizReceiptsBank) ?? 0) + (_e(t.bizReceiptsCash) ?? 0), o = (_e(t.profReceiptsBank) ?? 0) + (_e(t.profReceiptsCash) ?? 0), a = Ee(t.bizName) !== void 0 || n > 0;
12693
+ r.businessName = Ee(a ? t.bizName : t.profName), r.businessAnnualTurnOver = a ? n || void 0 : o || void 0, r.agricultureDetails = Zl(t), r.exemptIncomeAmount = _e(t.exemptIncome), r.exemptIncomeNature = Ee(t.exemptIncomeNature), _e(t.exemptIncome) !== void 0 && (r.exemptIncomes = [
12689
12694
  { name: Ee(t.exemptIncomeNature) ?? "Exempt income", value: String(_e(t.exemptIncome)) }
12690
12695
  ]), r.bankAccountNumber = Ee(t.bankAccountNumber), r.bankIfscCode = Ee(t.bankIfscCode), (Ee(t.bankAccountNumber) || Ee(t.bankIfscCode)) && (r.bankDetails = [
12691
12696
  { bankAccountNumber: Ee(t.bankAccountNumber), bankIfscCode: Ee(t.bankIfscCode) }
12692
12697
  ]);
12693
- const a = {
12698
+ const l = {
12694
12699
  description: Ee(t.immovableAssetDescription),
12695
12700
  flatNo: Ee(t.immovableAssetFlatNo),
12696
12701
  area: Ee(t.immovableAssetArea),
12697
12702
  pinCode: Ee(t.immovableAssetPincode),
12698
12703
  amount: _e(t.immovableAssetCost)
12699
12704
  };
12700
- Object.values(a).some((u) => u !== void 0) && (r.immovableAsset = [a]);
12701
- const l = fn(t.hpDetails, sh);
12702
- l.length && (r.hpDetails = l);
12703
- const c = fn(t.salaryDetails, oh);
12704
- if (c.length) {
12705
- r.salaryIncome = c;
12706
- const u = fn(t.salaryDetails, (p) => ({
12707
- grossSalary: _e(p.grossSalary),
12708
- employerName: Ee(p.employerName)
12705
+ Object.values(l).some((d) => d !== void 0) && (r.immovableAsset = [l]);
12706
+ const c = fn(t.hpDetails, oh);
12707
+ c.length && (r.hpDetails = c);
12708
+ const u = fn(t.salaryDetails, ah);
12709
+ if (u.length) {
12710
+ r.salaryIncome = u;
12711
+ const d = fn(t.salaryDetails, (g) => ({
12712
+ grossSalary: _e(g.grossSalary),
12713
+ employerName: Ee(g.employerName)
12709
12714
  }));
12710
- u.length && (r.salary = u);
12711
- const d = ln(t.salaryDetails)[0] ?? {};
12712
- r.hraAmount = _e(d.hraReceived), r.leaveTravelAllowanceAmount = _e(d.leaveTravelAllowance), r.leaveEncashmentAllowanceAmount = _e(d.leaveEncashment), r.anyOtherAllowanceAmount = _e(d.anyOtherAllowance), r.salaryIncomeFlag = !0;
12715
+ d.length && (r.salary = d);
12716
+ const p = ln(t.salaryDetails)[0] ?? {};
12717
+ r.hraAmount = _e(p.hraReceived), r.leaveTravelAllowanceAmount = _e(p.leaveTravelAllowance), r.leaveEncashmentAllowanceAmount = _e(p.leaveEncashment), r.anyOtherAllowanceAmount = _e(p.anyOtherAllowance), r.salaryIncomeFlag = !0;
12713
12718
  }
12714
12719
  return rt(r);
12715
12720
  }
12716
- function sh(s) {
12721
+ function oh(s) {
12717
12722
  const e = {
12718
12723
  loanType: "HOME_LOAN",
12719
12724
  loanTakenFrom: Ee(s.loanTakenFrom),
@@ -12741,7 +12746,7 @@ function sh(s) {
12741
12746
  loanDetails: t ? [e] : void 0
12742
12747
  };
12743
12748
  }
12744
- function oh(s) {
12749
+ function ah(s) {
12745
12750
  return {
12746
12751
  grossSalaryIncome: _e(s.grossSalary),
12747
12752
  salary: _e(s.basicSalary),
@@ -12760,7 +12765,7 @@ function oh(s) {
12760
12765
  }
12761
12766
  };
12762
12767
  }
12763
- function ah(s, e) {
12768
+ function lh(s, e) {
12764
12769
  const t = [];
12765
12770
  for (const r of s) {
12766
12771
  const i = Ee(r.employerName), n = Ee(r.employerTan), o = _e(r.grossSalary), a = _e(r.basicSalary), l = _e(r.totalTdsDeposited);
@@ -12779,7 +12784,7 @@ function ah(s, e) {
12779
12784
  salary: t
12780
12785
  } : null;
12781
12786
  }
12782
- function lh(s, e) {
12787
+ function ch(s, e) {
12783
12788
  const t = Ee(s.aadhaarNumber), r = Ee(s.bankAccountNumber), i = Ee(s.bankIfscCode);
12784
12789
  return t === void 0 && r === void 0 && i === void 0 ? null : {
12785
12790
  userId: nt(e.userId),
@@ -12788,7 +12793,7 @@ function lh(s, e) {
12788
12793
  bankDetails: [{ bankAccountNumber: r, bankIfscCode: i }]
12789
12794
  };
12790
12795
  }
12791
- function ch(s, e) {
12796
+ function uh(s, e) {
12792
12797
  return {
12793
12798
  userId: nt(e.userId),
12794
12799
  assessmentYear: e.assessmentYear,
@@ -12799,7 +12804,7 @@ function ch(s, e) {
12799
12804
  familyPension: _e(s.familyPension) ?? 0
12800
12805
  };
12801
12806
  }
12802
- function uh(s, e) {
12807
+ function dh(s, e) {
12803
12808
  const t = _e(s.cryptoSellPrice), r = _e(s.cryptoPurchasePrice);
12804
12809
  return t === void 0 && r === void 0 ? null : {
12805
12810
  userId: nt(e.userId),
@@ -12808,7 +12813,7 @@ function uh(s, e) {
12808
12813
  vdaSellCost: t ?? 0
12809
12814
  };
12810
12815
  }
12811
- function dh(s, e) {
12816
+ function hh(s, e) {
12812
12817
  const t = (i, n, o, a) => {
12813
12818
  const l = Ee(s[n]), c = _e(s[o]), u = _e(s[a]);
12814
12819
  return l === void 0 && c === void 0 && u === void 0 ? null : {
@@ -12827,15 +12832,15 @@ function dh(s, e) {
12827
12832
  presumptiveIncome: r
12828
12833
  } : null;
12829
12834
  }
12830
- function hh(s) {
12835
+ function fh(s) {
12831
12836
  return Ee(s.lenderName) !== void 0 || Ee(s.loanAccountNumber) !== void 0 || _e(s.totalLoanAmount) !== void 0 || _e(s.outstandingAmount) !== void 0 || _e(s.homeLoanInterest) !== void 0;
12832
12837
  }
12833
12838
  function Ql(s) {
12834
12839
  const e = Ee(s.typeOfHouseProperty)?.toUpperCase();
12835
12840
  return _e(s.rentalIncome) !== void 0 || Ee(s.nameOfTenant) !== void 0 || e === "LOP" || e === "DLOP";
12836
12841
  }
12837
- function fh(s, e) {
12838
- const t = ln(s.hpDetails).filter(hh).map((r) => {
12842
+ function ph(s, e) {
12843
+ const t = ln(s.hpDetails).filter(fh).map((r) => {
12839
12844
  const i = rt({
12840
12845
  loanType: "HOMELOAN",
12841
12846
  bankOrInstituteName: Ee(r.lenderName),
@@ -12865,7 +12870,7 @@ function fh(s, e) {
12865
12870
  hpDetails: t
12866
12871
  } : null;
12867
12872
  }
12868
- function ph(s, e) {
12873
+ function mh(s, e) {
12869
12874
  const t = ln(s.hpDetails).filter(Ql).map(
12870
12875
  (r) => rt({
12871
12876
  typeOfHouseProperty: Ee(r.typeOfHouseProperty),
@@ -12885,7 +12890,7 @@ function ph(s, e) {
12885
12890
  hpDetails: t
12886
12891
  } : null;
12887
12892
  }
12888
- function mh(s, e) {
12893
+ function gh(s, e) {
12889
12894
  const t = s || {}, r = (g) => ({
12890
12895
  userId: nt(e.userId),
12891
12896
  assessmentYear: e.assessmentYear,
@@ -12973,7 +12978,7 @@ function mh(s, e) {
12973
12978
  })
12974
12979
  ), i;
12975
12980
  }
12976
- function gh(s, e) {
12981
+ function Xl(s, e) {
12977
12982
  const t = s || {}, r = _e(t.us80gDonationInCash), i = _e(t.us80gDonationOnline), n = Ee(t.us80gNameOfCharity);
12978
12983
  if (r === void 0 && i === void 0 && n === void 0)
12979
12984
  return null;
@@ -12995,7 +13000,7 @@ function gh(s, e) {
12995
13000
  ]
12996
13001
  };
12997
13002
  }
12998
- function Xl(s) {
13003
+ function Zl(s) {
12999
13004
  const e = s || {}, t = _e(e.agricultureIncome), r = _e(e.agricultureExpenditure), i = rt({
13000
13005
  landInAcre: _e(e.agricultureLandInAcre),
13001
13006
  nameOfDistrict: Ee(e.agricultureLandDistrict),
@@ -13013,7 +13018,7 @@ function Xl(s) {
13013
13018
  });
13014
13019
  }
13015
13020
  function bh(s, e) {
13016
- const t = Xl(s);
13021
+ const t = Zl(s);
13017
13022
  return t ? {
13018
13023
  userId: nt(e.userId),
13019
13024
  assessmentYear: e.assessmentYear,
@@ -13211,7 +13216,7 @@ function vh(s) {
13211
13216
  ].find((j) => j.length > 0) ?? [])[0];
13212
13217
  $ && (t.agricultureLandInAcre = Oe($.landInAcre), t.agricultureLandDistrict = Ie($.nameOfDistrict), t.agricultureLandPincode = Ie($.pinCode), t.agricultureLandOwner = xh($.owner), t.agricultureLandType = _h($.typeOfLand)), t.aadhaarNumber = Ie(e.aadharNumber);
13213
13218
  const se = je(e.bankDetails)[0];
13214
- return se && (t.bankAccountNumber = Ie(se.accountNumber), t.bankIfscCode = Ie(se.ifsCode)), Zl(t);
13219
+ return se && (t.bankAccountNumber = Ie(se.accountNumber), t.bankIfscCode = Ie(se.ifsCode)), ec(t);
13215
13220
  }
13216
13221
  const wh = [
13217
13222
  "PENSION_SCHEME",
@@ -13327,10 +13332,10 @@ function Ah(s) {
13327
13332
  if (typeof s == "number")
13328
13333
  return s === 1 ? !0 : s === 0 ? !1 : void 0;
13329
13334
  }
13330
- function Zl(s) {
13335
+ function ec(s) {
13331
13336
  const e = {};
13332
13337
  for (const [t, r] of Object.entries(s))
13333
- r !== void 0 && (Array.isArray(r) ? e[t] = r.map((i) => i && typeof i == "object" ? Zl(i) : i) : e[t] = r);
13338
+ r !== void 0 && (Array.isArray(r) ? e[t] = r.map((i) => i && typeof i == "object" ? ec(i) : i) : e[t] = r);
13334
13339
  return e;
13335
13340
  }
13336
13341
  function gn() {
@@ -13378,7 +13383,7 @@ async function Ih(s) {
13378
13383
  }
13379
13384
  async function Th(s, e) {
13380
13385
  const t = await s.getToken(), r = s.userId, i = {
13381
- ...ih(e, {
13386
+ ...sh(e, {
13382
13387
  userId: r,
13383
13388
  assessmentYear: s.assessmentYear,
13384
13389
  isRevised: s.isRevised
@@ -13529,7 +13534,7 @@ class Hh {
13529
13534
  isEmbed = !1;
13530
13535
  smartEditModal = null;
13531
13536
  constructor(e, t, r) {
13532
- this.client = new Bd(e, {
13537
+ this.client = new Fd(e, {
13533
13538
  uploadAdapter: r?.uploadAdapter,
13534
13539
  historyAdapter: r?.historyAdapter
13535
13540
  }), this.isEmbed = e.display === "embed", this.bubble = t.querySelector("aikaara-chat-bubble"), this.panel = t.querySelector(".aikaara-panel"), this.header = t.querySelector("aikaara-chat-header"), this.messageList = t.querySelector("aikaara-message-list"), this.input = t.querySelector("aikaara-chat-input"), this.errorBanner = t.querySelector("aikaara-error-banner"), e.welcomeMessage && this.messageList.setWelcomeMessage(e.welcomeMessage), e.showTimestamps !== void 0 && this.messageList.setShowTimestamps(e.showTimestamps), (e.linkHandlers || e.getLinkBearer) && this.messageList.setLinkConfig(e.linkHandlers ?? [], e.getLinkBearer), e.chatActions !== void 0 && this.header.setActions(e.chatActions), this.wireEvents();
@@ -13645,7 +13650,7 @@ class Hh {
13645
13650
  */
13646
13651
  async openSmartEdit() {
13647
13652
  const e = this.ensureSmartEditModal();
13648
- e.open({ schemas: nh, data: {} });
13653
+ e.open({ schemas: ih, data: {} });
13649
13654
  const t = gn();
13650
13655
  if (!(!t || !t.baseUrl))
13651
13656
  try {
@@ -13682,31 +13687,31 @@ class Hh {
13682
13687
  const i = { userId: r.userId, assessmentYear: r.assessmentYear };
13683
13688
  try {
13684
13689
  if (e === "salary-hra") {
13685
- const n = Array.isArray(t.salaryDetails) ? t.salaryDetails : [], o = ah(n, i);
13690
+ const n = Array.isArray(t.salaryDetails) ? t.salaryDetails : [], o = lh(n, i);
13686
13691
  o && await Ch(r, o);
13687
13692
  } else if (e === "bank-details") {
13688
- const n = lh(t, i);
13693
+ const n = ch(t, i);
13689
13694
  n && await Ph(r, n);
13690
13695
  } else if (e === "other-sources")
13691
- await ia(r, ch(t, i));
13696
+ await ia(r, uh(t, i));
13692
13697
  else if (e === "business-profession") {
13693
- const n = dh(t, i);
13698
+ const n = hh(t, i);
13694
13699
  n && await Oh(r, n);
13695
13700
  } else if (e === "crypto-income") {
13696
- const n = uh(t, i);
13701
+ const n = dh(t, i);
13697
13702
  n && await jh(r, n);
13698
13703
  } else if (e === "agricultural-income") {
13699
13704
  const n = bh(t, i);
13700
13705
  n && await Lh(r, n);
13701
13706
  } else if (e === "deductions") {
13702
- for (const o of mh(t, i))
13703
- await Mh(r, o);
13704
- const n = gh(t, i);
13707
+ const n = Xl(t, i);
13705
13708
  n && await ia(r, n);
13709
+ for (const o of gh(t, i))
13710
+ await Mh(r, o);
13706
13711
  } else if (e === "house-property") {
13707
- const n = fh(t, i);
13712
+ const n = ph(t, i);
13708
13713
  n && await Nh(r, n);
13709
- const o = ph(t, i);
13714
+ const o = mh(t, i);
13710
13715
  o && await Rh(r, o);
13711
13716
  }
13712
13717
  } catch (n) {
@@ -13789,13 +13794,13 @@ class Wh extends HTMLElement {
13789
13794
  apiKey: this.getAttribute("api-key") || this._config.apiKey,
13790
13795
  title: this.getAttribute("title") || this._config.title || "Chat",
13791
13796
  subtitle: this.getAttribute("subtitle") || this._config.subtitle,
13792
- theme: this.getAttribute("theme") || this._config.theme || gc,
13797
+ theme: this.getAttribute("theme") || this._config.theme || bc,
13793
13798
  primaryColor: this.getAttribute("primary-color") || this._config.primaryColor || Bs,
13794
- position: this.getAttribute("position") || this._config.position || mc,
13795
- width: Number(this.getAttribute("width")) || this._config.width || dc,
13796
- height: Number(this.getAttribute("height")) || this._config.height || hc,
13797
- fontFamily: this._config.fontFamily || pc,
13798
- borderRadius: this._config.borderRadius ?? fc,
13799
+ position: this.getAttribute("position") || this._config.position || gc,
13800
+ width: Number(this.getAttribute("width")) || this._config.width || hc,
13801
+ height: Number(this.getAttribute("height")) || this._config.height || fc,
13802
+ fontFamily: this._config.fontFamily || mc,
13803
+ borderRadius: this._config.borderRadius ?? pc,
13799
13804
  placeholder: this.getAttribute("placeholder") || this._config.placeholder || Fs,
13800
13805
  welcomeMessage: this.getAttribute("welcome-message") || this._config.welcomeMessage,
13801
13806
  avatarUrl: this.getAttribute("avatar-url") || this._config.avatarUrl,
@@ -13809,7 +13814,7 @@ class Wh extends HTMLElement {
13809
13814
  chatActions: this._config.chatActions,
13810
13815
  showBubble: this._config.showBubble ?? !0,
13811
13816
  display: (this.getAttribute("display") || this._config.display) ?? "popup",
13812
- offset: this._config.offset || bc,
13817
+ offset: this._config.offset || yc,
13813
13818
  conversationId: this._config.conversationId,
13814
13819
  systemPromptId: this._config.systemPromptId,
13815
13820
  channel: this._config.channel,
@@ -14398,9 +14403,9 @@ const Zh = /* @__PURE__ */ new Set([
14398
14403
  };
14399
14404
  function Gt(s) {
14400
14405
  const e = document.createElement("template");
14401
- return e.innerHTML = s, ec(e.content), e.innerHTML;
14406
+ return e.innerHTML = s, tc(e.content), e.innerHTML;
14402
14407
  }
14403
- function ec(s) {
14408
+ function tc(s) {
14404
14409
  const e = Array.from(s.childNodes);
14405
14410
  for (const t of e)
14406
14411
  if (t.nodeType === Node.ELEMENT_NODE) {
@@ -14417,7 +14422,7 @@ function ec(s) {
14417
14422
  const a = r.getAttribute("href") || "";
14418
14423
  !a.startsWith("http://") && !a.startsWith("https://") && !a.startsWith("/") && r.removeAttribute("href");
14419
14424
  }
14420
- ec(t);
14425
+ tc(t);
14421
14426
  }
14422
14427
  }
14423
14428
  function tf(s, e = {}) {
@@ -14875,7 +14880,7 @@ class nf extends HTMLElement {
14875
14880
  requestAnimationFrame(() => n.show?.(e, o));
14876
14881
  return;
14877
14882
  }
14878
- const a = of(e), l = tc(r.fetch.url, a), c = {
14883
+ const a = of(e), l = rc(r.fetch.url, a), c = {
14879
14884
  accept: "application/json",
14880
14885
  ...r.fetch.headers ?? {}
14881
14886
  }, u = r.fetch.authHeader ?? "session";
@@ -14941,11 +14946,11 @@ function of(s) {
14941
14946
  return {};
14942
14947
  }
14943
14948
  }
14944
- function tc(s, e) {
14949
+ function rc(s, e) {
14945
14950
  return s.replace(/\{(\w+)\}/g, (t, r) => e[r] ?? "");
14946
14951
  }
14947
14952
  function vs(s, e) {
14948
- if (typeof s == "string") return tc(s, e);
14953
+ if (typeof s == "string") return rc(s, e);
14949
14954
  if (Array.isArray(s)) return s.map((t) => vs(t, e));
14950
14955
  if (s && typeof s == "object") {
14951
14956
  const t = {};
@@ -15393,7 +15398,7 @@ class hf extends HTMLElement {
15393
15398
  }
15394
15399
  }
15395
15400
  const yn = /* @__PURE__ */ new Map();
15396
- function rc(s) {
15401
+ function nc(s) {
15397
15402
  const e = yn.get(s);
15398
15403
  if (e) return e;
15399
15404
  const t = new Promise((r, i) => {
@@ -15544,7 +15549,7 @@ class bf extends HTMLElement {
15544
15549
  `; this.firstChild; ) this.removeChild(this.firstChild);
15545
15550
  if (!e) return;
15546
15551
  const r = t ? gf(t) : void 0, i = r?.render ?? (t ? `aikaara-template-${t}` : `aikaara-template-${e}`), n = pf[i];
15547
- if (n && !customElements.get(i) ? n().then(() => this.render()).catch((o) => console.warn(`[aikaara-template-renderer] native template ${i} failed to load`, o)) : r?.scriptUrl && !customElements.get(i) && rc(r.scriptUrl).then(() => ff(i)).then(() => this.render()).catch((o) => console.warn(`[aikaara-template-renderer] failed to lazy-load ${r.scriptUrl}`, o)), customElements.get(i)) {
15552
+ if (n && !customElements.get(i) ? n().then(() => this.render()).catch((o) => console.warn(`[aikaara-template-renderer] native template ${i} failed to load`, o)) : r?.scriptUrl && !customElements.get(i) && nc(r.scriptUrl).then(() => ff(i)).then(() => this.render()).catch((o) => console.warn(`[aikaara-template-renderer] failed to lazy-load ${r.scriptUrl}`, o)), customElements.get(i)) {
15548
15553
  const o = document.createElement(i);
15549
15554
  if (r?.props) {
15550
15555
  for (const [a, l] of Object.entries(r.props))
@@ -15636,7 +15641,7 @@ class bf extends HTMLElement {
15636
15641
  */
15637
15642
  mountLinkButton(e) {
15638
15643
  const t = this.renderGen;
15639
- import("./AikaaraLinkButton-DJYY1qZX.mjs").then(({ registerAikaaraLinkButton: r, AikaaraLinkButton: i }) => {
15644
+ import("./AikaaraLinkButton-DcpwQwOm.mjs").then(({ registerAikaaraLinkButton: r, AikaaraLinkButton: i }) => {
15640
15645
  if (t !== this.renderGen) return;
15641
15646
  r();
15642
15647
  const n = document.createElement("aikaara-link-button");
@@ -18642,7 +18647,7 @@ function vp(s, e, t) {
18642
18647
  } catch {
18643
18648
  return i;
18644
18649
  }
18645
- const o = nc(n, t);
18650
+ const o = ic(n, t);
18646
18651
  return typeof o == "string" ? o : void 0;
18647
18652
  } catch {
18648
18653
  return;
@@ -18652,7 +18657,7 @@ async function wp(s, e, t) {
18652
18657
  if (typeof window > "u") return;
18653
18658
  const r = Date.now() + e;
18654
18659
  for (; Date.now() < r; ) {
18655
- const i = nc(window, s);
18660
+ const i = ic(window, s);
18656
18661
  if (typeof i == "string" && i.length > 0) return i;
18657
18662
  if (typeof i == "function")
18658
18663
  try {
@@ -18688,7 +18693,7 @@ function kp(s) {
18688
18693
  function xp(s) {
18689
18694
  return s ? s.split(/[,\s]+/).map((e) => e.trim()).filter(Boolean) : [];
18690
18695
  }
18691
- function nc(s, e) {
18696
+ function ic(s, e) {
18692
18697
  if (!e) return s;
18693
18698
  const t = e.split(".").filter(Boolean);
18694
18699
  let r = s;
@@ -18718,7 +18723,7 @@ function $s(s, e, t) {
18718
18723
  const r = `${Sp}:${s}:${e}`;
18719
18724
  return t ? `${r}:${t}` : r;
18720
18725
  }
18721
- function ic(s, e, t) {
18726
+ function sc(s, e, t) {
18722
18727
  try {
18723
18728
  return localStorage.getItem($s(s, e, t));
18724
18729
  } catch {
@@ -18859,7 +18864,7 @@ function Ap(s, e) {
18859
18864
  }
18860
18865
  return !1;
18861
18866
  }
18862
- async function sc(s, e) {
18867
+ async function oc(s, e) {
18863
18868
  const t = await fetch(s, {
18864
18869
  method: "GET",
18865
18870
  headers: { accept: "application/json", ...e ?? {} }
@@ -18875,10 +18880,10 @@ async function sc(s, e) {
18875
18880
  }
18876
18881
  return r;
18877
18882
  }
18878
- function oc(s, e) {
18883
+ function ac(s, e) {
18879
18884
  return s.replace("{projectId}", e).replace("{uuid}", _p().replace(/-/g, ""));
18880
18885
  }
18881
- function ac(s) {
18886
+ function lc(s) {
18882
18887
  const e = s._preload;
18883
18888
  if (!Array.isArray(e) || e.length === 0) return;
18884
18889
  const t = Array.from(
@@ -18886,18 +18891,18 @@ function ac(s) {
18886
18891
  e.map((r) => r && typeof r == "object" ? r.scriptUrl : null).filter((r) => typeof r == "string" && r.length > 0)
18887
18892
  )
18888
18893
  );
18889
- t.length !== 0 && Promise.allSettled(t.map((r) => rc(r)));
18894
+ t.length !== 0 && Promise.allSettled(t.map((r) => nc(r)));
18890
18895
  }
18891
18896
  async function Ip(s) {
18892
18897
  const e = {
18893
- ...s.config ?? (s.configUrl ? await sc(s.configUrl, s.configHeaders) : {}),
18898
+ ...s.config ?? (s.configUrl ? await oc(s.configUrl, s.configHeaders) : {}),
18894
18899
  ...s.overrides ?? {}
18895
18900
  };
18896
- ac(e);
18901
+ lc(e);
18897
18902
  const t = e.transport ?? "tiledesk", r = e.tiledesk;
18898
18903
  if ((t === "tiledesk" || t === "dual") && !r)
18899
18904
  throw new Error("mount: descriptor.tiledesk is required for tiledesk/dual transport");
18900
- const i = r?.projectId ?? "", n = s.identity.userId, o = s.conversationScope || void 0, a = s.forceNewConversation ? null : ic(n, i, o), l = r?.requestIdTemplate ?? "support-group-{projectId}-{uuid}", c = s.conversationId ?? a ?? oc(l, i);
18905
+ const i = r?.projectId ?? "", n = s.identity.userId, o = s.conversationScope || void 0, a = s.forceNewConversation ? null : sc(n, i, o), l = r?.requestIdTemplate ?? "support-group-{projectId}-{uuid}", c = s.conversationId ?? a ?? ac(l, i);
18901
18906
  (s.conversationId || !a || s.forceNewConversation) && i && Ep(n, i, c, o);
18902
18907
  const u = await s.tokenProvider(), d = s.tokenProvider, p = s.historyTokenProvider ?? d, g = r ? {
18903
18908
  mqttEndpoint: r.mqttEndpoint,
@@ -18930,7 +18935,7 @@ async function Ip(s) {
18930
18935
  endpoint: e.uploadEndpoint,
18931
18936
  fieldName: e.uploadFieldName,
18932
18937
  extraFields: e.uploadExtraFields
18933
- }) : void 0), b = s.historyAdapter ?? (e.historyApiBase ? Vd({
18938
+ }) : void 0), b = s.historyAdapter ?? (e.historyApiBase ? Kd({
18934
18939
  apiBase: e.historyApiBase,
18935
18940
  pageSize: e.historyPageSize ?? 200,
18936
18941
  pathTemplate: e.historyPathTemplate,
@@ -18996,7 +19001,7 @@ async function Cp(s) {
18996
19001
  const e = (s.configBase ?? "https://api.aikaara.com").replace(/\/$/, ""), t = `${e}/api/v1/widget_configs/${encodeURIComponent(s.slug)}`;
18997
19002
  let r = null;
18998
19003
  try {
18999
- r = await sc(t, s.configHeaders);
19004
+ r = await oc(t, s.configHeaders);
19000
19005
  } catch (I) {
19001
19006
  if (!s.fallbackConfig) throw I;
19002
19007
  console.warn(
@@ -19009,7 +19014,7 @@ async function Cp(s) {
19009
19014
  ...r ?? {},
19010
19015
  ...s.overrides ?? {}
19011
19016
  };
19012
- if (ac(i), i.templates && Object.keys(i.templates).length > 0) {
19017
+ if (lc(i), i.templates && Object.keys(i.templates).length > 0) {
19013
19018
  i.components = { ...i.components ?? {} };
19014
19019
  for (const [I, P] of Object.entries(i.templates)) {
19015
19020
  const L = `template:${I}`;
@@ -19084,7 +19089,7 @@ async function Cp(s) {
19084
19089
  }
19085
19090
  const y = new ip(i.auth, u);
19086
19091
  if (h) {
19087
- const I = i.tiledesk?.projectId ?? "", P = I ? ic(a, I) : null, L = i.tiledesk?.requestIdTemplate ?? "support-group-{projectId}-{uuid}", D = P ?? (I ? oc(L, I) : "");
19092
+ const I = i.tiledesk?.projectId ?? "", P = I ? sc(a, I) : null, L = i.tiledesk?.requestIdTemplate ?? "support-group-{projectId}-{uuid}", D = P ?? (I ? ac(L, I) : "");
19088
19093
  y.prime(h, { requestId: D, fullName: l });
19089
19094
  }
19090
19095
  const w = await y.get();
@@ -19105,7 +19110,7 @@ async function Cp(s) {
19105
19110
  } catch (I) {
19106
19111
  return console.warn("[aikaara-chat-sdk] partner auto-refresh failed", I), null;
19107
19112
  }
19108
- } : null, _ = i.upload, v = async () => `Bearer ${_ && "tokenSource" in _ && _.tokenSource === "chat" ? (await y.get()).token : await Yt(s.user.token)}`, S = s.hooks?.upload ?? (_ && _.mode === "presigned-3step" ? Wd({
19113
+ } : null, _ = i.upload, v = async () => `Bearer ${_ && "tokenSource" in _ && _.tokenSource === "chat" ? (await y.get()).token : await Yt(s.user.token)}`, S = s.hooks?.upload ?? (_ && _.mode === "presigned-3step" ? zd({
19109
19114
  ..._,
19110
19115
  authHeader: v
19111
19116
  }) : _ && _.mode === "direct" ? Gl({
@@ -19172,7 +19177,7 @@ export {
19172
19177
  Af as $,
19173
19178
  Us as A,
19174
19179
  Cp as B,
19175
- lc as C,
19180
+ cc as C,
19176
19181
  Ip as D,
19177
19182
  pa as E,
19178
19183
  Kl as F,
@@ -19182,14 +19187,14 @@ export {
19182
19187
  Zf as J,
19183
19188
  If as K,
19184
19189
  Of as L,
19185
- wc as M,
19190
+ kc as M,
19186
19191
  Tf as N,
19187
19192
  Ef as O,
19188
19193
  xf as P,
19189
19194
  zf as Q,
19190
19195
  Rf as R,
19191
19196
  ip as S,
19192
- Nd as T,
19197
+ Rd as T,
19193
19198
  qf as U,
19194
19199
  Uf as V,
19195
19200
  Jf as W,
@@ -19198,7 +19203,7 @@ export {
19198
19203
  kf as Z,
19199
19204
  bf as _,
19200
19205
  zh as a,
19201
- Bd as b,
19206
+ Fd as b,
19202
19207
  Kh as c,
19203
19208
  cf as d,
19204
19209
  Wh as e,
@@ -19207,9 +19212,9 @@ export {
19207
19212
  nf as h,
19208
19213
  df as i,
19209
19214
  uf as j,
19210
- vc as k,
19211
- yc as l,
19212
- kc as m,
19215
+ wc as k,
19216
+ vc as l,
19217
+ xc as m,
19213
19218
  up as n,
19214
19219
  Ze as o,
19215
19220
  mp as p,
@@ -19217,10 +19222,10 @@ export {
19217
19222
  np as r,
19218
19223
  sp as s,
19219
19224
  Gl as t,
19220
- Wd as u,
19221
- Vd as v,
19225
+ zd as u,
19226
+ Kd as v,
19222
19227
  pp as w,
19223
- $d as x,
19224
- Dd as y,
19225
- jd as z
19228
+ Ud as x,
19229
+ $d as y,
19230
+ Dd as z
19226
19231
  };