@aikaara/chat-sdk 1.5.14 → 1.5.16

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 Gl {
1
+ class Yl {
2
2
  identifier;
3
3
  callbacks = {};
4
4
  sendFn;
@@ -63,7 +63,7 @@ class Po {
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 Gl(t, (o) => {
66
+ const t = JSON.stringify(e), r = new Yl(t, (o) => {
67
67
  this.send({
68
68
  command: "message",
69
69
  identifier: t,
@@ -163,8 +163,8 @@ class ta {
163
163
  this.handlers.clear();
164
164
  }
165
165
  }
166
- const Yl = 1e3, Jl = 10, Ql = 400, Xl = 600, Oo = "#6366f1", Zl = 12, ec = "system-ui, -apple-system, sans-serif", Mo = "Type a message...", tc = "bottom-right", rc = "light", nc = { x: 20, y: 20 }, tn = "aikaara_conversation_id";
167
- class ic extends ta {
166
+ const Jl = 1e3, Ql = 10, Xl = 400, Zl = 600, Oo = "#6366f1", ec = 12, tc = "system-ui, -apple-system, sans-serif", Mo = "Type a message...", rc = "bottom-right", nc = "light", ic = { x: 20, y: 20 }, tn = "aikaara_conversation_id";
167
+ class oc extends ta {
168
168
  client;
169
169
  config;
170
170
  state = "disconnected";
@@ -221,13 +221,13 @@ class ic extends ta {
221
221
  this.state !== e && (this.state = e, this.emit("connection:state", e));
222
222
  }
223
223
  scheduleReconnect() {
224
- const e = this.config.maxReconnectAttempts ?? Jl;
224
+ const e = this.config.maxReconnectAttempts ?? Ql;
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 ?? Yl) * Math.pow(2, this.reconnectAttempt);
230
+ const r = (this.config.reconnectInterval ?? Jl) * Math.pow(2, this.reconnectAttempt);
231
231
  this.reconnectAttempt++, this.reconnectTimer = setTimeout(async () => {
232
232
  try {
233
233
  const o = this.buildWsUrl(this.config.baseUrl, this.config.userToken);
@@ -247,7 +247,7 @@ class ic extends ta {
247
247
  return `${e.replace(/^http/, "ws")}/cable?token=${t}`;
248
248
  }
249
249
  }
250
- class oc {
250
+ class sc {
251
251
  baseUrl;
252
252
  apiKey;
253
253
  authToken;
@@ -354,7 +354,7 @@ class oc {
354
354
  return r && (n.body = JSON.stringify(r)), fetch(e, n);
355
355
  }
356
356
  }
357
- class sc {
357
+ class ac {
358
358
  _messages = [];
359
359
  optimisticCounter = 0;
360
360
  get messages() {
@@ -512,7 +512,7 @@ function ra(i) {
512
512
  const r = e.payload?.elements?.[0]?.action?.url;
513
513
  return typeof r == "string" ? r : void 0;
514
514
  }
515
- class ac {
515
+ class lc {
516
516
  _conversationId;
517
517
  persist;
518
518
  constructor(e, t = !0) {
@@ -546,23 +546,23 @@ class ac {
546
546
  }
547
547
  }
548
548
  }
549
- var po = Object.defineProperty, lc = Object.getOwnPropertyDescriptor, cc = Object.getOwnPropertyNames, uc = Object.prototype.hasOwnProperty, Je = (i, e) => () => (i && (e = i(i = 0)), e), pe = (i, e) => () => (e || i((e = { exports: {} }).exports, e), e.exports), Gt = (i, e) => {
549
+ var po = Object.defineProperty, cc = Object.getOwnPropertyDescriptor, uc = Object.getOwnPropertyNames, dc = Object.prototype.hasOwnProperty, Je = (i, e) => () => (i && (e = i(i = 0)), e), pe = (i, e) => () => (e || i((e = { exports: {} }).exports, e), e.exports), Gt = (i, e) => {
550
550
  for (var t in e) po(i, t, { get: e[t], enumerable: !0 });
551
- }, dc = (i, e, t, r) => {
552
- if (e && typeof e == "object" || typeof e == "function") for (let o of cc(e)) !uc.call(i, o) && o !== t && po(i, o, { get: () => e[o], enumerable: !(r = lc(e, o)) || r.enumerable });
551
+ }, hc = (i, e, t, r) => {
552
+ if (e && typeof e == "object" || typeof e == "function") for (let o of uc(e)) !dc.call(i, o) && o !== t && po(i, o, { get: () => e[o], enumerable: !(r = cc(e, o)) || r.enumerable });
553
553
  return i;
554
- }, Re = (i) => dc(po({}, "__esModule", { value: !0 }), i), le = Je(() => {
554
+ }, Re = (i) => hc(po({}, "__esModule", { value: !0 }), i), le = Je(() => {
555
555
  }), Ne = {};
556
556
  Gt(Ne, { _debugEnd: () => Kn, _debugProcess: () => Vn, _events: () => li, _eventsCount: () => ci, _exiting: () => Mn, _fatalExceptions: () => Hn, _getActiveHandles: () => ca, _getActiveRequests: () => la, _kill: () => Nn, _linkedBinding: () => sa, _maxListeners: () => ai, _preload_modules: () => oi, _rawDebug: () => Cn, _startProfilerIdleNotifier: () => Gn, _stopProfilerIdleNotifier: () => Yn, _tickCallback: () => zn, abort: () => Zn, addListener: () => ui, allowedNodeEnvironmentFlags: () => $n, arch: () => mn, argv: () => yn, argv0: () => ii, assert: () => ua, binding: () => xn, browser: () => Tn, chdir: () => An, config: () => Ln, cpuUsage: () => nr, cwd: () => En, debugPort: () => ni, default: () => go, dlopen: () => aa, domain: () => On, emit: () => mi, emitWarning: () => kn, env: () => bn, execArgv: () => vn, execPath: () => ri, exit: () => Bn, features: () => qn, hasUncaughtExceptionCaptureCallback: () => da, hrtime: () => vr, kill: () => Dn, listeners: () => fa, memoryUsage: () => Un, moduleLoadList: () => Pn, nextTick: () => ia, off: () => hi, on: () => dt, once: () => di, openStdin: () => Fn, pid: () => ei, platform: () => gn, ppid: () => ti, prependListener: () => gi, prependOnceListener: () => bi, reallyExit: () => Rn, release: () => In, removeAllListeners: () => pi, removeListener: () => fi, resourceUsage: () => jn, setSourceMapsEnabled: () => si, setUncaughtExceptionCaptureCallback: () => Wn, stderr: () => Qn, stdin: () => Xn, stdout: () => Jn, title: () => pn, umask: () => Sn, uptime: () => ha, version: () => wn, versions: () => _n });
557
557
  function mo(i) {
558
558
  throw new Error("Node.js process " + i + " is not supported by JSPM core outside of Node.js");
559
559
  }
560
- function hc() {
560
+ function fc() {
561
561
  !Nt || !Lt || (Nt = !1, Lt.length ? lt = Lt.concat(lt) : ar = -1, lt.length && na());
562
562
  }
563
563
  function na() {
564
564
  if (!Nt) {
565
- var i = setTimeout(hc, 0);
565
+ var i = setTimeout(fc, 0);
566
566
  Nt = !0;
567
567
  for (var e = lt.length; e; ) {
568
568
  for (Lt = lt, lt = []; ++ar < e; ) Lt && Lt[ar].run();
@@ -612,7 +612,7 @@ function dt() {
612
612
  function fa(i) {
613
613
  return [];
614
614
  }
615
- var lt, Nt, Lt, ar, pn, mn, gn, bn, yn, vn, wn, _n, kn, xn, Sn, En, An, In, Tn, Cn, Pn, On, Mn, Ln, Rn, Nn, nr, jn, Un, Dn, Bn, Fn, $n, qn, Hn, Wn, zn, Vn, Kn, Gn, Yn, Jn, Qn, Xn, Zn, ei, ti, ri, ni, ii, oi, si, ft, rn, wr, ai, li, ci, ui, di, hi, fi, pi, mi, gi, bi, go, fc = Je(() => {
615
+ var lt, Nt, Lt, ar, pn, mn, gn, bn, yn, vn, wn, _n, kn, xn, Sn, En, An, In, Tn, Cn, Pn, On, Mn, Ln, Rn, Nn, nr, jn, Un, Dn, Bn, Fn, $n, qn, Hn, Wn, zn, Vn, Kn, Gn, Yn, Jn, Qn, Xn, Zn, ei, ti, ri, ni, ii, oi, si, ft, rn, wr, ai, li, ci, ui, di, hi, fi, pi, mi, gi, bi, go, pc = Je(() => {
616
616
  le(), ue(), ce(), lt = [], Nt = !1, ar = -1, oa.prototype.run = function() {
617
617
  this.fun.apply(null, this.array);
618
618
  }, pn = "browser", mn = "x64", gn = "browser", bn = { PATH: "/usr/bin", LANG: typeof navigator < "u" ? navigator.language + ".UTF-8" : void 0, PWD: "/", HOME: "/home", TMP: "/tmp" }, yn = ["/usr/bin/node"], vn = [], wn = "v16.8.0", _n = {}, kn = function(i, e) {
@@ -631,9 +631,9 @@ var lt, Nt, Lt, ar, pn, mn, gn, bn, yn, vn, wn, _n, kn, xn, Sn, En, An, In, Tn,
631
631
  return typeof BigInt > "u" ? e[0] * wr + e[1] : BigInt(e[0] * wr) + BigInt(e[1]);
632
632
  }, ai = 10, li = {}, ci = 0, ui = dt, di = dt, hi = dt, fi = dt, pi = dt, mi = He, gi = dt, bi = dt, go = { version: wn, versions: _n, arch: mn, platform: gn, browser: Tn, release: In, _rawDebug: Cn, moduleLoadList: Pn, binding: xn, _linkedBinding: sa, _events: li, _eventsCount: ci, _maxListeners: ai, on: dt, addListener: ui, once: di, off: hi, removeListener: fi, removeAllListeners: pi, emit: mi, prependListener: gi, prependOnceListener: bi, listeners: fa, domain: On, _exiting: Mn, config: Ln, dlopen: aa, uptime: ha, _getActiveRequests: la, _getActiveHandles: ca, reallyExit: Rn, _kill: Nn, cpuUsage: nr, resourceUsage: jn, memoryUsage: Un, kill: Dn, exit: Bn, openStdin: Fn, allowedNodeEnvironmentFlags: $n, assert: ua, features: qn, _fatalExceptions: Hn, setUncaughtExceptionCaptureCallback: Wn, hasUncaughtExceptionCaptureCallback: da, emitWarning: kn, nextTick: ia, _tickCallback: zn, _debugProcess: Vn, _debugEnd: Kn, _startProfilerIdleNotifier: Gn, _stopProfilerIdleNotifier: Yn, stdout: Jn, stdin: Xn, stderr: Qn, abort: Zn, umask: Sn, chdir: An, cwd: En, env: bn, title: pn, argv: yn, execArgv: vn, pid: ei, ppid: ti, execPath: ri, debugPort: ni, hrtime: vr, argv0: ii, _preload_modules: oi, setSourceMapsEnabled: si };
633
633
  }), ce = Je(() => {
634
- fc();
634
+ pc();
635
635
  });
636
- function pc() {
636
+ function mc() {
637
637
  if (yi) return qt;
638
638
  yi = !0, qt.byteLength = a, qt.toByteArray = c, qt.fromByteArray = p;
639
639
  for (var i = [], e = [], t = typeof Uint8Array < "u" ? Uint8Array : Array, r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", o = 0, n = r.length; o < n; ++o) i[o] = r[o], e[r.charCodeAt(o)] = o;
@@ -671,7 +671,7 @@ function pc() {
671
671
  }
672
672
  return qt;
673
673
  }
674
- function mc() {
674
+ function gc() {
675
675
  return vi ? ir : (vi = !0, ir.read = function(i, e, t, r, o) {
676
676
  var n, s, a = o * 8 - r - 1, l = (1 << a) - 1, c = l >> 1, u = -7, d = t ? o - 1 : 0, p = t ? -1 : 1, g = i[e + d];
677
677
  for (d += p, n = g & (1 << -u) - 1, g >>= -u, u += a; u > 0; n = n * 256 + i[e + d], d += p, u -= 8) ;
@@ -689,10 +689,10 @@ function mc() {
689
689
  i[t + g - f] |= b * 128;
690
690
  }, ir);
691
691
  }
692
- function gc() {
692
+ function bc() {
693
693
  if (wi) return Et;
694
694
  wi = !0;
695
- let i = pc(), e = mc(), t = typeof Symbol == "function" && typeof Symbol.for == "function" ? /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom") : null;
695
+ let i = mc(), e = gc(), t = typeof Symbol == "function" && typeof Symbol.for == "function" ? /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom") : null;
696
696
  Et.Buffer = s, Et.SlowBuffer = w, Et.INSPECT_MAX_BYTES = 50;
697
697
  let r = 2147483647;
698
698
  Et.kMaxLength = r, s.TYPED_ARRAY_SUPPORT = o(), !s.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 gc() {
1447
1447
  }
1448
1448
  return Et;
1449
1449
  }
1450
- var qt, yi, ir, vi, Et, wi, bc = Je(() => {
1450
+ var qt, yi, ir, vi, Et, wi, yc = Je(() => {
1451
1451
  le(), ue(), ce(), qt = {}, yi = !1, ir = {}, vi = !1, Et = {}, wi = !1;
1452
1452
  }), Fe = {};
1453
1453
  Gt(Fe, { Buffer: () => zr, INSPECT_MAX_BYTES: () => pa, default: () => ht, kMaxLength: () => ma });
1454
1454
  var ht, zr, pa, ma, $e = Je(() => {
1455
- le(), ue(), ce(), bc(), ht = gc(), ht.Buffer, ht.SlowBuffer, ht.INSPECT_MAX_BYTES, ht.kMaxLength, zr = ht.Buffer, pa = ht.INSPECT_MAX_BYTES, ma = ht.kMaxLength;
1455
+ le(), ue(), ce(), yc(), ht = bc(), ht.Buffer, ht.SlowBuffer, ht.INSPECT_MAX_BYTES, ht.kMaxLength, zr = ht.Buffer, pa = ht.INSPECT_MAX_BYTES, ma = ht.kMaxLength;
1456
1456
  }), ue = Je(() => {
1457
1457
  $e();
1458
1458
  }), De = pe((i, e) => {
@@ -1699,7 +1699,7 @@ var ht, zr, pa, ma, $e = Je(() => {
1699
1699
  e.exports = t, e.exports.AbortSignal = r, e.exports.default = t;
1700
1700
  }), Tt = {};
1701
1701
  Gt(Tt, { EventEmitter: () => ba, default: () => Ht, defaultMaxListeners: () => ya, init: () => va, listenerCount: () => wa, on: () => _a, once: () => ka });
1702
- function yc() {
1702
+ function vc() {
1703
1703
  if (_i) return or;
1704
1704
  _i = !0;
1705
1705
  var i = typeof Reflect == "object" ? Reflect : null, e = i && typeof i.apply == "function" ? i.apply : function(x, v, S) {
@@ -1871,7 +1871,7 @@ function yc() {
1871
1871
  return or;
1872
1872
  }
1873
1873
  var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
1874
- le(), ue(), ce(), or = {}, _i = !1, Ht = yc(), Ht.once, Ht.once = function(i, e) {
1874
+ le(), ue(), ce(), or = {}, _i = !1, Ht = vc(), Ht.once, Ht.once = function(i, e) {
1875
1875
  return new Promise((t, r) => {
1876
1876
  function o(...s) {
1877
1877
  n !== void 0 && i.removeListener("error", n), t(s);
@@ -2507,7 +2507,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
2507
2507
  }
2508
2508
  return g;
2509
2509
  };
2510
- }), vc = pe((i, e) => {
2510
+ }), wc = pe((i, e) => {
2511
2511
  le(), ue(), ce();
2512
2512
  var { StringPrototypeSlice: t, SymbolIterator: r, TypedArrayPrototypeSet: o, Uint8Array: n } = De(), { Buffer: s } = ($e(), Re(Fe)), { inspect: a } = Ye();
2513
2513
  e.exports = class {
@@ -2610,7 +2610,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
2610
2610
  return c(p.objectMode);
2611
2611
  }
2612
2612
  e.exports = { getHighWaterMark: d, getDefaultHighWaterMark: c, setDefaultHighWaterMark: u };
2613
- }), wc = pe((i, e) => {
2613
+ }), _c = pe((i, e) => {
2614
2614
  le(), ue(), ce();
2615
2615
  var t = ($e(), Re(Fe)), r = t.Buffer;
2616
2616
  function o(s, a) {
@@ -2634,9 +2634,9 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
2634
2634
  if (typeof s != "number") throw new TypeError("Argument must be a number");
2635
2635
  return t.SlowBuffer(s);
2636
2636
  };
2637
- }), _c = pe((i) => {
2637
+ }), kc = pe((i) => {
2638
2638
  le(), ue(), ce();
2639
- var e = wc().Buffer, t = e.isEncoding || function(m) {
2639
+ var e = _c().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 or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
2835
2835
  e.exports = ae, ae.ReadableState = ve;
2836
2836
  var { EventEmitter: b } = (Ut(), Re(Tt)), { Stream: y, prependListener: w } = bo(), { Buffer: m } = ($e(), Re(Fe)), { addAbortSignal: _ } = Gr(), x = Ct(), v = Ye().debuglog("stream", (C) => {
2837
2837
  v = C;
2838
- }), S = vc(), E = Yt(), { getHighWaterMark: I, getDefaultHighWaterMark: P } = Yr(), { aggregateTwoErrors: O, codes: { ERR_INVALID_ARG_TYPE: B, ERR_METHOD_NOT_IMPLEMENTED: T, ERR_OUT_OF_RANGE: $, ERR_STREAM_PUSH_AFTER_EOF: M, ERR_STREAM_UNSHIFT_AFTER_END_EVENT: U }, AbortError: oe } = Ke(), { validateObject: Y } = dr(), W = f("kPaused"), { StringDecoder: ee } = _c(), D = xa();
2838
+ }), S = wc(), E = Yt(), { getHighWaterMark: I, getDefaultHighWaterMark: P } = Yr(), { aggregateTwoErrors: O, codes: { ERR_INVALID_ARG_TYPE: B, ERR_METHOD_NOT_IMPLEMENTED: T, ERR_OUT_OF_RANGE: $, ERR_STREAM_PUSH_AFTER_EOF: M, ERR_STREAM_UNSHIFT_AFTER_END_EVENT: U }, AbortError: oe } = Ke(), { validateObject: Y } = dr(), W = f("kPaused"), { StringDecoder: ee } = kc(), D = xa();
2839
2839
  c(ae.prototype, y.prototype), c(ae, y);
2840
2840
  var X = () => {
2841
2841
  }, { errorOrDestroy: L } = E, J = 1, ge = 2, re = 4, we = 8, K = 16, j = 32, ne = 64, z = 128, G = 256, Q = 512, be = 1024, se = 2048, R = 4096, q = 8192, te = 16384, he = 32768, fe = 65536, ye = 1 << 17, H = 1 << 18;
@@ -3415,7 +3415,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
3415
3415
  }, Y.toWeb = function(R) {
3416
3416
  return se().newWritableStreamFromStreamWritable(R);
3417
3417
  };
3418
- }), kc = pe((i, e) => {
3418
+ }), xc = pe((i, e) => {
3419
3419
  le(), ue(), ce();
3420
3420
  var t = Dt(), r = ($e(), Re(Fe)), { isReadable: o, isWritable: n, isIterable: s, isNodeStream: a, isReadableNodeStream: l, isWritableNodeStream: c, isDuplexNodeStream: u, isReadableStream: d, isWritableStream: p } = bt(), g = Ct(), { AbortError: f, codes: { ERR_INVALID_ARG_TYPE: b, ERR_INVALID_RETURN_VALUE: y } } = Ke(), { destroyer: w } = Yt(), m = mt(), _ = Jr(), x = yo(), { createDeferredPromise: v } = Ye(), S = xa(), E = globalThis.Blob || r.Blob, I = typeof E < "u" ? function(M) {
3421
3421
  return M instanceof E;
@@ -3572,7 +3572,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
3572
3572
  };
3573
3573
  var d;
3574
3574
  l.from = function(p) {
3575
- return d || (d = kc()), d(p, "body");
3575
+ return d || (d = xc()), d(p, "body");
3576
3576
  };
3577
3577
  }), Sa = pe((i, e) => {
3578
3578
  le(), ue(), ce();
@@ -3892,7 +3892,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
3892
3892
  !T && v !== null && (T = new p()), x = null, m = null, _ = null, v === null ? $(T) : (v = $, n(P) && o(P, T));
3893
3893
  }, S;
3894
3894
  };
3895
- }), xc = pe((i, e) => {
3895
+ }), Sc = pe((i, e) => {
3896
3896
  le(), ue(), ce();
3897
3897
  var t = globalThis.AbortController || cr().AbortController, { codes: { ERR_INVALID_ARG_VALUE: r, ERR_INVALID_ARG_TYPE: o, ERR_MISSING_ARGS: n, ERR_OUT_OF_RANGE: s }, AbortError: a } = Ke(), { validateAbortSignal: l, validateInteger: c, validateObject: u } = dr(), d = De().Symbol("kWeak"), p = De().Symbol("kResistStopPropagation"), { finished: g } = Ct(), f = Aa(), { addAbortSignalNoValidate: b } = Gr(), { isWritable: y, isNodeStream: w } = bt(), { deprecate: m } = Ye(), { ArrayPrototypePush: _, Boolean: x, MathFloor: v, Number: S, NumberIsNaN: E, Promise: I, PromiseReject: P, PromiseResolve: O, PromisePrototypeThen: B, Symbol: T } = De(), $ = T("kEmpty"), M = T("kEof");
3898
3898
  function U(z, G) {
@@ -4089,7 +4089,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
4089
4089
  e.exports = { finished: l, pipeline: c };
4090
4090
  }), Ta = pe((i, e) => {
4091
4091
  le(), ue(), ce();
4092
- var { Buffer: t } = ($e(), Re(Fe)), { ObjectDefineProperty: r, ObjectKeys: o, ReflectApply: n } = De(), { promisify: { custom: s } } = Ye(), { streamReturningOperators: a, promiseReturningOperators: l } = xc(), { codes: { ERR_ILLEGAL_CONSTRUCTOR: c } } = Ke(), u = Aa(), { setDefaultHighWaterMark: d, getDefaultHighWaterMark: p } = Yr(), { pipeline: g } = vo(), { destroyer: f } = Yt(), b = Ct(), y = Ia(), w = bt(), m = e.exports = bo().Stream;
4092
+ var { Buffer: t } = ($e(), Re(Fe)), { ObjectDefineProperty: r, ObjectKeys: o, ReflectApply: n } = De(), { promisify: { custom: s } } = Ye(), { streamReturningOperators: a, promiseReturningOperators: l } = Sc(), { codes: { ERR_ILLEGAL_CONSTRUCTOR: c } } = Ke(), u = Aa(), { setDefaultHighWaterMark: d, getDefaultHighWaterMark: p } = Yr(), { pipeline: g } = vo(), { destroyer: f } = Yt(), b = Ct(), y = Ia(), w = bt(), m = e.exports = bo().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 = Jr();
4094
4094
  for (let x of o(a)) {
4095
4095
  let v = function(...E) {
@@ -4124,7 +4124,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
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 = o, 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
- }), Sc = pe((i, e) => {
4127
+ }), Ec = pe((i, 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 or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
4135
4135
  o.prototype = r.prototype, t.prototype = new o(), t.prototype.constructor = t;
4136
4136
  }
4137
4137
  };
4138
- }), Ec = pe((i, e) => {
4138
+ }), Ac = pe((i, e) => {
4139
4139
  le(), ue(), ce();
4140
4140
  var { Buffer: t } = ($e(), Re(Fe)), r = /* @__PURE__ */ Symbol.for("BufferList");
4141
4141
  function o(n) {
@@ -4259,9 +4259,9 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
4259
4259
  }, o.isBufferList = function(n) {
4260
4260
  return n != null && n[r];
4261
4261
  }, e.exports = o;
4262
- }), Ac = pe((i, e) => {
4262
+ }), Ic = pe((i, e) => {
4263
4263
  le(), ue(), ce();
4264
- var t = Bt().Duplex, r = Sc(), o = Ec();
4264
+ var t = Bt().Duplex, r = Ec(), o = Ac();
4265
4265
  function n(s) {
4266
4266
  if (!(this instanceof n)) return new n(s);
4267
4267
  if (typeof s == "function") {
@@ -4291,7 +4291,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
4291
4291
  }, n.prototype._isBufferList = function(s) {
4292
4292
  return s instanceof n || s instanceof o || n.isBufferList(s);
4293
4293
  }, n.isBufferList = o.isBufferList, e.exports = n, e.exports.BufferListStream = n, e.exports.BufferList = o;
4294
- }), Ic = pe((i, e) => {
4294
+ }), Tc = pe((i, e) => {
4295
4295
  le(), ue(), ce();
4296
4296
  var t = class {
4297
4297
  constructor() {
@@ -4325,7 +4325,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
4325
4325
  })));
4326
4326
  }
4327
4327
  t.PUBLISH_HEADER = o("publish"), t.SUBSCRIBE_HEADER = o("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 = o("unsubscribe"), t.ACKS = { unsuback: o("unsuback"), puback: o("puback"), pubcomp: o("pubcomp"), pubrel: o("pubrel"), pubrec: o("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
- }), Tc = pe((i, e) => {
4328
+ }), Cc = pe((i, e) => {
4329
4329
  le(), ue(), ce();
4330
4330
  var t = 1e3, r = t * 60, o = r * 60, n = o * 24, s = n * 7, a = n * 365.25;
4331
4331
  e.exports = function(p, g) {
@@ -4397,10 +4397,10 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
4397
4397
  var y = g >= f * 1.5;
4398
4398
  return Math.round(p / f) + " " + b + (y ? "s" : "");
4399
4399
  }
4400
- }), Cc = pe((i, e) => {
4400
+ }), Pc = pe((i, 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 = Tc(), 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 = Cc(), 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 o(g) {
@@ -4510,7 +4510,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
4510
4510
  } catch {
4511
4511
  }
4512
4512
  }
4513
- e.exports = Cc()(i);
4513
+ e.exports = Pc()(i);
4514
4514
  var { formatters: a } = e.exports;
4515
4515
  a.j = function(l) {
4516
4516
  try {
@@ -4519,9 +4519,9 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
4519
4519
  return "[UnexpectedJSONParseError]: " + c.message;
4520
4520
  }
4521
4521
  };
4522
- }), Pc = pe((i, e) => {
4522
+ }), Oc = pe((i, e) => {
4523
4523
  le(), ue(), ce();
4524
- var t = Ac(), { EventEmitter: r } = (Ut(), Re(Tt)), o = Ic(), n = Ca(), s = gt()("mqtt-packet:parser"), a = class ki extends r {
4524
+ var t = Ic(), { EventEmitter: r } = (Ut(), Re(Tt)), o = Tc(), n = Ca(), s = gt()("mqtt-packet:parser"), a = class ki extends r {
4525
4525
  constructor() {
4526
4526
  super(), this.parser = this.constructor.parser;
4527
4527
  }
@@ -4872,7 +4872,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
4872
4872
  }
4873
4873
  };
4874
4874
  e.exports = a;
4875
- }), Oc = pe((i, e) => {
4875
+ }), Mc = pe((i, e) => {
4876
4876
  le(), ue(), ce();
4877
4877
  var { Buffer: t } = ($e(), Re(Fe)), r = 65536, o = {}, n = t.isBuffer(t.from([1, 2]).subarray(0, 1));
4878
4878
  function s(u) {
@@ -4894,7 +4894,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
4894
4894
  return d.writeUInt32BE(u, 0), d;
4895
4895
  }
4896
4896
  e.exports = { cache: o, generateCache: a, generateNumber: s, genBufVariableByteInt: l, generate4ByteBuffer: c };
4897
- }), Mc = pe((i, e) => {
4897
+ }), Lc = pe((i, e) => {
4898
4898
  le(), ue(), ce(), typeof Ne > "u" || !Ne.version || Ne.version.indexOf("v0.") === 0 || Ne.version.indexOf("v1.") === 0 && Ne.version.indexOf("v1.8.") !== 0 ? e.exports = { nextTick: t } : e.exports = Ne;
4899
4899
  function t(r, o, n, s) {
4900
4900
  if (typeof r != "function") throw new TypeError('"callback" argument must be a function');
@@ -4924,7 +4924,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
4924
4924
  }
4925
4925
  }), Pa = pe((i, e) => {
4926
4926
  le(), ue(), ce();
4927
- var t = Ca(), { Buffer: r } = ($e(), Re(Fe)), o = r.allocUnsafe(0), n = r.from([0]), s = Oc(), a = Mc().nextTick, l = gt()("mqtt-packet:writeToStream"), c = s.cache, u = s.generateNumber, d = s.generateCache, p = s.genBufVariableByteInt, g = s.generate4ByteBuffer, f = Y, b = !0;
4927
+ var t = Ca(), { Buffer: r } = ($e(), Re(Fe)), o = r.allocUnsafe(0), n = r.from([0]), s = Mc(), a = Lc().nextTick, l = gt()("mqtt-packet:writeToStream"), c = s.cache, u = s.generateNumber, d = s.generateCache, p = s.genBufVariableByteInt, g = s.generate4ByteBuffer, f = Y, b = !0;
4928
4928
  function y(K, j, ne) {
4929
4929
  switch (l("generate called"), j.cork && (j.cork(), a(w, j)), b && (b = !1, d()), l("generate: packet.cmd: %s", K.cmd), K.cmd) {
4930
4930
  case "connect":
@@ -5305,7 +5305,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
5305
5305
  return typeof K == "string" || K instanceof r;
5306
5306
  }
5307
5307
  e.exports = y;
5308
- }), Lc = pe((i, e) => {
5308
+ }), Rc = pe((i, e) => {
5309
5309
  le(), ue(), ce();
5310
5310
  var t = Pa(), { EventEmitter: r } = (Ut(), Re(Tt)), { Buffer: o } = ($e(), Re(Fe));
5311
5311
  function n(a, l) {
@@ -5331,9 +5331,9 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
5331
5331
  }
5332
5332
  };
5333
5333
  e.exports = n;
5334
- }), Rc = pe((i) => {
5335
- le(), ue(), ce(), i.parser = Pc().parser, i.generate = Lc(), i.writeToStream = Pa();
5336
- }), Nc = pe((i, e) => {
5334
+ }), Nc = pe((i) => {
5335
+ le(), ue(), ce(), i.parser = Oc().parser, i.generate = Rc(), i.writeToStream = Pa();
5336
+ }), jc = pe((i, e) => {
5337
5337
  le(), ue(), ce(), e.exports = r;
5338
5338
  function t(n) {
5339
5339
  return n instanceof zr ? zr.from(n) : new n.constructor(n.buffer.slice(), n.byteOffset, n.length);
@@ -5433,8 +5433,8 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
5433
5433
  return s.pop(), a.pop(), f;
5434
5434
  }
5435
5435
  }
5436
- }), jc = pe((i, e) => {
5437
- le(), ue(), ce(), e.exports = Nc()();
5436
+ }), Uc = pe((i, e) => {
5437
+ le(), ue(), ce(), e.exports = jc()();
5438
5438
  }), Oa = pe((i) => {
5439
5439
  le(), ue(), ce(), Object.defineProperty(i, "__esModule", { value: !0 }), i.validateTopic = e, i.validateTopics = t;
5440
5440
  function e(r) {
@@ -5486,7 +5486,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
5486
5486
  }
5487
5487
  };
5488
5488
  i.default = o;
5489
- }), Uc = pe((i) => {
5489
+ }), Dc = pe((i) => {
5490
5490
  le(), ue(), ce(), Object.defineProperty(i, "__esModule", { value: !0 });
5491
5491
  var e = [0, 16, 128, 131, 135, 144, 145, 151, 153], t = (r, o, n) => {
5492
5492
  r.log("handlePublish: packet %o", o), n = typeof n < "u" ? n : r.noop;
@@ -5541,7 +5541,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
5541
5541
  }
5542
5542
  };
5543
5543
  i.default = t;
5544
- }), Dc = pe((i, e) => {
5544
+ }), Bc = pe((i, e) => {
5545
5545
  e.exports = { version: "5.15.0" };
5546
5546
  }), Jt = pe((i) => {
5547
5547
  le(), ue(), ce(), Object.defineProperty(i, "__esModule", { value: !0 }), i.MQTTJS_VERSION = i.nextTick = i.ErrorWithSubackPacket = i.ErrorWithReasonCode = void 0, i.applyMixin = r;
@@ -5570,7 +5570,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
5570
5570
  }
5571
5571
  i.nextTick = typeof Ne?.nextTick == "function" ? Ne.nextTick : (o) => {
5572
5572
  setTimeout(o, 0);
5573
- }, i.MQTTJS_VERSION = Dc().version;
5573
+ }, i.MQTTJS_VERSION = Bc().version;
5574
5574
  }), Qr = pe((i) => {
5575
5575
  le(), ue(), ce(), Object.defineProperty(i, "__esModule", { value: !0 }), i.ReasonCodes = void 0;
5576
5576
  var e = Jt();
@@ -5624,7 +5624,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
5624
5624
  r.disconnecting && Object.keys(r.outgoing).length === 0 && r.emit("outgoingEmpty");
5625
5625
  };
5626
5626
  i.default = t;
5627
- }), Bc = pe((i) => {
5627
+ }), Fc = pe((i) => {
5628
5628
  le(), ue(), ce(), Object.defineProperty(i, "__esModule", { value: !0 });
5629
5629
  var e = Jt(), t = Qr(), r = (o, n) => {
5630
5630
  let { options: s } = o, a = s.protocolVersion, l = a === 5 ? n.reasonCode : n.returnCode;
@@ -5646,7 +5646,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
5646
5646
  });
5647
5647
  };
5648
5648
  i.default = r;
5649
- }), Fc = pe((i) => {
5649
+ }), $c = pe((i) => {
5650
5650
  le(), ue(), ce(), Object.defineProperty(i, "__esModule", { value: !0 }), i.LRUCache = void 0;
5651
5651
  var e = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date, t = /* @__PURE__ */ new Set(), r = typeof Ne == "object" && Ne ? Ne : {}, o = (g, f, b, y) => {
5652
5652
  typeof r.emitWarning == "function" ? r.emitWarning(g, f, b, y) : console.error(`[${b}] ${f}: ${g}`);
@@ -6190,7 +6190,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
6190
6190
  var r = class extends t {
6191
6191
  };
6192
6192
  i.Container = r;
6193
- }), $c = pe((i) => {
6193
+ }), qc = pe((i) => {
6194
6194
  le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), i.default = void 0;
6195
6195
  var e = yt(), t = class extends e.Base {
6196
6196
  constructor(o = []) {
@@ -6214,7 +6214,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
6214
6214
  }
6215
6215
  }, r = t;
6216
6216
  i.default = r;
6217
- }), qc = pe((i) => {
6217
+ }), Hc = pe((i) => {
6218
6218
  le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), i.default = void 0;
6219
6219
  var e = yt(), t = class extends e.Base {
6220
6220
  constructor(o = []) {
@@ -6246,7 +6246,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
6246
6246
  }
6247
6247
  }, r = t;
6248
6248
  i.default = r;
6249
- }), Hc = pe((i) => {
6249
+ }), Wc = pe((i) => {
6250
6250
  le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), i.default = void 0;
6251
6251
  var e = yt(), t = class extends e.Base {
6252
6252
  constructor(o = [], n = function(a, l) {
@@ -6344,7 +6344,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
6344
6344
  }
6345
6345
  };
6346
6346
  i.RandomIterator = r;
6347
- }), Wc = pe((i) => {
6347
+ }), zc = pe((i) => {
6348
6348
  le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), i.default = void 0;
6349
6349
  var e = r(wo()), t = ja();
6350
6350
  function r(a) {
@@ -6445,7 +6445,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
6445
6445
  }
6446
6446
  }, s = n;
6447
6447
  i.default = s;
6448
- }), zc = pe((i) => {
6448
+ }), Vc = pe((i) => {
6449
6449
  le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), i.default = void 0;
6450
6450
  var e = o(wo()), t = yt(), r = vt();
6451
6451
  function o(l) {
@@ -6630,7 +6630,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
6630
6630
  }
6631
6631
  }, a = s;
6632
6632
  i.default = a;
6633
- }), Vc = pe((i) => {
6633
+ }), Kc = pe((i) => {
6634
6634
  le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), i.default = void 0;
6635
6635
  var e = r(wo()), t = ja();
6636
6636
  function r(a) {
@@ -6815,7 +6815,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
6815
6815
  }
6816
6816
  }, s = n;
6817
6817
  i.default = s;
6818
- }), Kc = pe((i) => {
6818
+ }), Gc = pe((i) => {
6819
6819
  le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), i.TreeNodeEnableIndex = i.TreeNode = void 0;
6820
6820
  var e = class {
6821
6821
  constructor(r, o) {
@@ -6872,7 +6872,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
6872
6872
  i.TreeNodeEnableIndex = t;
6873
6873
  }), Fa = pe((i) => {
6874
6874
  le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), i.default = void 0;
6875
- var e = Kc(), t = yt(), r = vt(), o = class extends t.Container {
6875
+ var e = Gc(), t = yt(), r = vt(), o = class extends t.Container {
6876
6876
  constructor(s = function(l, c) {
6877
6877
  return l < c ? -1 : l > c ? 1 : 0;
6878
6878
  }, a = !1) {
@@ -7150,7 +7150,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
7150
7150
  }
7151
7151
  }, o = r;
7152
7152
  i.default = o;
7153
- }), Gc = pe((i) => {
7153
+ }), Yc = pe((i) => {
7154
7154
  le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), i.default = void 0;
7155
7155
  var e = o(Fa()), t = o($a()), r = vt();
7156
7156
  function o(l) {
@@ -7229,7 +7229,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
7229
7229
  }
7230
7230
  }, a = s;
7231
7231
  i.default = a;
7232
- }), Yc = pe((i) => {
7232
+ }), Jc = pe((i) => {
7233
7233
  le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), i.default = void 0;
7234
7234
  var e = o(Fa()), t = o($a()), r = vt();
7235
7235
  function o(l) {
@@ -7407,7 +7407,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
7407
7407
  }
7408
7408
  };
7409
7409
  i.HashContainer = s;
7410
- }), Jc = pe((i) => {
7410
+ }), Qc = pe((i) => {
7411
7411
  le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), i.default = void 0;
7412
7412
  var e = za(), t = vt(), r = class Va extends e.HashContainerIterator {
7413
7413
  constructor(a, l, c, u) {
@@ -7470,7 +7470,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
7470
7470
  }
7471
7471
  }, n = o;
7472
7472
  i.default = n;
7473
- }), Qc = pe((i) => {
7473
+ }), Xc = pe((i) => {
7474
7474
  le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), i.default = void 0;
7475
7475
  var e = za(), t = o(Wa()), r = vt();
7476
7476
  function o(l) {
@@ -7553,7 +7553,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
7553
7553
  }
7554
7554
  }, a = s;
7555
7555
  i.default = a;
7556
- }), Xc = pe((i) => {
7556
+ }), Zc = pe((i) => {
7557
7557
  le(), ue(), ce(), Object.defineProperty(i, "t", { value: !0 }), Object.defineProperty(i, "Deque", { enumerable: !0, get: function() {
7558
7558
  return s.default;
7559
7559
  } }), Object.defineProperty(i, "HashMap", { enumerable: !0, get: function() {
@@ -7575,13 +7575,13 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
7575
7575
  } }), Object.defineProperty(i, "Vector", { enumerable: !0, get: function() {
7576
7576
  return o.default;
7577
7577
  } });
7578
- var e = d($c()), t = d(qc()), r = d(Hc()), o = d(Wc()), n = d(zc()), s = d(Vc()), a = d(Gc()), l = d(Yc()), c = d(Jc()), u = d(Qc());
7578
+ var e = d(qc()), t = d(Hc()), r = d(Wc()), o = d(zc()), n = d(Vc()), s = d(Kc()), a = d(Yc()), l = d(Jc()), c = d(Qc()), u = d(Xc());
7579
7579
  function d(p) {
7580
7580
  return p && p.t ? p : { default: p };
7581
7581
  }
7582
- }), Zc = pe((i, e) => {
7582
+ }), eu = pe((i, e) => {
7583
7583
  le(), ue(), ce();
7584
- var t = Xc().OrderedSet, r = gt()("number-allocator:trace"), o = gt()("number-allocator:error");
7584
+ var t = Zc().OrderedSet, r = gt()("number-allocator:trace"), o = gt()("number-allocator:error");
7585
7585
  function n(a, l) {
7586
7586
  this.low = a, this.high = l;
7587
7587
  }
@@ -7642,11 +7642,11 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
7642
7642
  }, e.exports = s;
7643
7643
  }), Ga = pe((i, e) => {
7644
7644
  le(), ue(), ce();
7645
- var t = Zc();
7645
+ var t = eu();
7646
7646
  e.exports.NumberAllocator = t;
7647
- }), eu = pe((i) => {
7647
+ }), tu = pe((i) => {
7648
7648
  le(), ue(), ce(), Object.defineProperty(i, "__esModule", { value: !0 });
7649
- var e = Fc(), t = Ga(), r = class {
7649
+ var e = $c(), t = Ga(), r = class {
7650
7650
  aliasToTopic;
7651
7651
  topicToAlias;
7652
7652
  max;
@@ -7675,13 +7675,13 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
7675
7675
  }
7676
7676
  };
7677
7677
  i.default = r;
7678
- }), tu = pe((i) => {
7678
+ }), ru = pe((i) => {
7679
7679
  le(), ue(), ce();
7680
7680
  var e = i && i.__importDefault || function(s) {
7681
7681
  return s && s.__esModule ? s : { default: s };
7682
7682
  };
7683
7683
  Object.defineProperty(i, "__esModule", { value: !0 });
7684
- var t = Qr(), r = e(eu()), o = Jt(), n = (s, a) => {
7684
+ var t = Qr(), r = e(tu()), o = Jt(), n = (s, a) => {
7685
7685
  s.log("_handleConnack");
7686
7686
  let { options: l } = s, c = l.protocolVersion === 5 ? a.reasonCode : a.returnCode;
7687
7687
  if (clearTimeout(s.connackTimer), delete s.topicAliasSend, a.properties) {
@@ -7701,7 +7701,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
7701
7701
  }
7702
7702
  };
7703
7703
  i.default = n;
7704
- }), ru = pe((i) => {
7704
+ }), nu = pe((i) => {
7705
7705
  le(), ue(), ce(), Object.defineProperty(i, "__esModule", { value: !0 });
7706
7706
  var e = (t, r, o) => {
7707
7707
  t.log("handling pubrel packet");
@@ -7714,13 +7714,13 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
7714
7714
  });
7715
7715
  };
7716
7716
  i.default = e;
7717
- }), nu = pe((i) => {
7717
+ }), iu = pe((i) => {
7718
7718
  le(), ue(), ce();
7719
7719
  var e = i && i.__importDefault || function(l) {
7720
7720
  return l && l.__esModule ? l : { default: l };
7721
7721
  };
7722
7722
  Object.defineProperty(i, "__esModule", { value: !0 });
7723
- var t = e(Uc()), r = e(Bc()), o = e(tu()), n = e(Qr()), s = e(ru()), a = (l, c, u) => {
7723
+ var t = e(Dc()), r = e(Fc()), o = e(ru()), n = e(Qr()), s = e(nu()), 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 or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
7778
7778
  }
7779
7779
  };
7780
7780
  i.default = e;
7781
- }), iu = pe((i) => {
7781
+ }), ou = pe((i) => {
7782
7782
  le(), ue(), ce(), Object.defineProperty(i, "__esModule", { value: !0 });
7783
7783
  var e = class {
7784
7784
  aliasToTopic;
@@ -7798,7 +7798,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
7798
7798
  }
7799
7799
  };
7800
7800
  i.default = e;
7801
- }), ou = pe((i) => {
7801
+ }), su = pe((i) => {
7802
7802
  le(), ue(), ce();
7803
7803
  var e = i && i.__importDefault || function(n) {
7804
7804
  return n && n.__esModule ? n : { default: n };
@@ -7818,7 +7818,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
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
- }), su = pe((i, e) => {
7821
+ }), au = pe((i, e) => {
7822
7822
  le(), ue(), ce();
7823
7823
  var t = Xr().default;
7824
7824
  function r(o, n) {
@@ -7832,28 +7832,28 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
7832
7832
  return (n === "string" ? String : Number)(o);
7833
7833
  }
7834
7834
  e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
7835
- }), au = pe((i, e) => {
7835
+ }), lu = pe((i, e) => {
7836
7836
  le(), ue(), ce();
7837
- var t = Xr().default, r = su();
7837
+ var t = Xr().default, r = au();
7838
7838
  function o(n) {
7839
7839
  var s = r(n, "string");
7840
7840
  return t(s) == "symbol" ? s : s + "";
7841
7841
  }
7842
7842
  e.exports = o, e.exports.__esModule = !0, e.exports.default = e.exports;
7843
- }), lu = pe((i, e) => {
7843
+ }), cu = pe((i, e) => {
7844
7844
  le(), ue(), ce();
7845
- var t = au();
7845
+ var t = lu();
7846
7846
  function r(o, n, s) {
7847
7847
  return (n = t(n)) in o ? Object.defineProperty(o, n, { value: s, enumerable: !0, configurable: !0, writable: !0 }) : o[n] = s, o;
7848
7848
  }
7849
7849
  e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
7850
- }), cu = pe((i, e) => {
7850
+ }), uu = pe((i, 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
- }), uu = pe((i, e) => {
7856
+ }), du = pe((i, e) => {
7857
7857
  le(), ue(), ce();
7858
7858
  function t(r, o) {
7859
7859
  var n = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
@@ -7877,7 +7877,7 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
7877
7877
  }
7878
7878
  }
7879
7879
  e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
7880
- }), du = pe((i, e) => {
7880
+ }), hu = pe((i, e) => {
7881
7881
  le(), ue(), ce();
7882
7882
  function t(r, o) {
7883
7883
  (o == null || o > r.length) && (o = r.length);
@@ -7885,9 +7885,9 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
7885
7885
  return s;
7886
7886
  }
7887
7887
  e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
7888
- }), hu = pe((i, e) => {
7888
+ }), fu = pe((i, e) => {
7889
7889
  le(), ue(), ce();
7890
- var t = du();
7890
+ var t = hu();
7891
7891
  function r(o, n) {
7892
7892
  if (o) {
7893
7893
  if (typeof o == "string") return t(o, n);
@@ -7896,16 +7896,16 @@ var or, _i, Ht, ba, ya, va, wa, _a, ka, Ut = Je(() => {
7896
7896
  }
7897
7897
  }
7898
7898
  e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
7899
- }), fu = pe((i, e) => {
7899
+ }), pu = pe((i, 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
- }), pu = pe((i, e) => {
7906
+ }), mu = pe((i, e) => {
7907
7907
  le(), ue(), ce();
7908
- var t = cu(), r = uu(), o = hu(), n = fu();
7908
+ var t = uu(), r = du(), o = fu(), n = pu();
7909
7909
  function s(a, l) {
7910
7910
  return t(a) || r(a, l) || o(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 = o(c), d = l(u, c), p = r(d);
7939
7939
  t.addUniqueNumber = p, t.generateUniqueNumber = d;
7940
7940
  });
7941
- }), mu = pe((i, e) => {
7941
+ }), gu = pe((i, e) => {
7942
7942
  le(), ue(), ce();
7943
7943
  function t(o, n, s, 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, s, a, l), c || Promise);
8095
8095
  }
8096
8096
  e.exports = o, e.exports.__esModule = !0, e.exports.default = e.exports;
8097
- }), gu = pe((i, e) => {
8097
+ }), bu = pe((i, e) => {
8098
8098
  le(), ue(), ce();
8099
8099
  var t = tl();
8100
8100
  function r(o, n, s, 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
- }), bu = pe((i, e) => {
8107
+ }), yu = pe((i, e) => {
8108
8108
  le(), ue(), ce();
8109
8109
  function t(r) {
8110
8110
  var o = 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
- }), yu = pe((i, e) => {
8118
+ }), vu = pe((i, e) => {
8119
8119
  le(), ue(), ce();
8120
8120
  var t = Xr().default;
8121
8121
  function r(o) {
@@ -8130,9 +8130,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8130
8130
  throw new TypeError(t(o) + " is not iterable");
8131
8131
  }
8132
8132
  e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
8133
- }), vu = pe((i, e) => {
8133
+ }), wu = pe((i, e) => {
8134
8134
  le(), ue(), ce();
8135
- var t = Qa(), r = Za(), o = gu(), n = tl(), s = el(), a = bu(), l = yu();
8135
+ var t = Qa(), r = Za(), o = bu(), n = tl(), s = el(), a = yu(), l = vu();
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
- }), wu = pe((i, e) => {
8182
+ }), _u = pe((i, e) => {
8183
8183
  le(), ue(), ce();
8184
- var t = vu()();
8184
+ var t = wu()();
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
- }), _u = pe((i, e) => {
8191
+ }), ku = pe((i, e) => {
8192
8192
  le(), ue(), ce(), (function(t, r) {
8193
- typeof i == "object" && typeof e < "u" ? r(i, lu(), pu(), Ja(), mu(), wu()) : 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 i == "object" && typeof e < "u" ? r(i, cu(), mu(), Ja(), gu(), _u()) : 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
  })(i, function(t, r, o, n, s, 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
- }), ku = pe((i, e) => {
8322
+ }), xu = pe((i, e) => {
8323
8323
  le(), ue(), ce(), (function(t, r) {
8324
- typeof i == "object" && typeof e < "u" ? r(i, Xr(), _u(), Ja()) : 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 i == "object" && typeof e < "u" ? r(i, Xr(), ku(), Ja()) : 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
  })(i, function(t, r, o, n) {
8326
8326
  var s = /* @__PURE__ */ new Map([[0, null]]), a = /* @__PURE__ */ new Map([[0, null]]), l = o.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
- }), xu = pe((i, e) => {
8372
+ }), Su = pe((i, e) => {
8373
8373
  le(), ue(), ce(), (function(t, r) {
8374
- typeof i == "object" && typeof e < "u" ? r(i, ku()) : 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 i == "object" && typeof e < "u" ? r(i, xu()) : 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
  })(i, function(t, r) {
8376
8376
  var o = 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(i, "__esModule", { value: !0 }), i.isReactNativeBrowser = i.isWebWorker = void 0;
8400
8400
  var e = () => typeof window < "u" ? typeof navigator < "u" && navigator.userAgent?.toLowerCase().indexOf(" electron/") > -1 && Ne?.versions ? !Object.prototype.hasOwnProperty.call(Ne.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", o = e() || t() || r();
8401
8401
  i.isWebWorker = t(), i.isReactNativeBrowser = r(), i.default = o;
8402
- }), Su = pe((i) => {
8402
+ }), Eu = pe((i) => {
8403
8403
  le(), ue(), ce();
8404
8404
  var e = i && i.__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(i, "__esModule", { value: !0 });
8432
- var o = xu(), n = r(Zr()), s = { set: o.setInterval, clear: o.clearInterval }, a = { set: (c, u) => setInterval(c, u), clear: (c) => clearInterval(c) }, l = (c) => {
8432
+ var o = Su(), n = r(Zr()), s = { set: o.setInterval, clear: o.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 o && o.__esModule ? o : { default: o };
8447
8447
  };
8448
8448
  Object.defineProperty(i, "__esModule", { value: !0 });
8449
- var t = e(Su()), r = class {
8449
+ var t = e(Eu()), 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(i, "__esModule", { value: !0 });
8522
- var n = o(Rc()), s = Bt(), a = o(jc()), l = o(gt()), c = r(Oa()), u = o(Ma()), d = o(nu()), p = o(Ya()), g = o(iu()), f = Jt(), b = ou(), y = o(rl()), w = r(Zr()), m = globalThis.setImmediate || ((...v) => {
8522
+ var n = o(Nc()), s = Bt(), a = o(Uc()), l = o(gt()), c = r(Oa()), u = o(Ma()), d = o(iu()), p = o(Ya()), g = o(ou()), f = Jt(), b = su(), y = o(rl()), w = r(Zr()), m = globalThis.setImmediate || ((...v) => {
8523
8523
  let S = v.shift();
8524
8524
  (0, f.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
  i.default = x;
9024
- }), Eu = pe((i) => {
9024
+ }), Au = pe((i) => {
9025
9025
  le(), ue(), ce(), Object.defineProperty(i, "__esModule", { value: !0 });
9026
9026
  var e = Ga(), 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
  i.default = t;
9049
9049
  });
9050
- function Au() {
9050
+ function Iu() {
9051
9051
  if (Ei) return _r;
9052
9052
  Ei = !0;
9053
9053
  let i = 2147483647, e = 36, t = 1, r = 26, o = 38, n = 700, s = 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, f = Math.floor, b = String.fromCharCode;
@@ -9138,10 +9138,10 @@ function Au() {
9138
9138
  });
9139
9139
  } }, _r;
9140
9140
  }
9141
- var _r, Ei, At, Iu = Je(() => {
9142
- le(), ue(), ce(), _r = {}, Ei = !1, At = Au(), At.decode, At.encode, At.toASCII, At.toUnicode, At.ucs2, At.version;
9141
+ var _r, Ei, At, Tu = Je(() => {
9142
+ le(), ue(), ce(), _r = {}, Ei = !1, At = Iu(), At.decode, At.encode, At.toASCII, At.toUnicode, At.ucs2, At.version;
9143
9143
  });
9144
- function Tu() {
9144
+ function Cu() {
9145
9145
  return Ii || (Ii = !0, Ai = 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 Tu() {
9160
9160
  return !0;
9161
9161
  }), Ai;
9162
9162
  }
9163
- function Cu() {
9163
+ function Pu() {
9164
9164
  return Ci || (Ci = !0, Ti = Error), Ti;
9165
9165
  }
9166
- function Pu() {
9166
+ function Ou() {
9167
9167
  return Oi || (Oi = !0, Pi = EvalError), Pi;
9168
9168
  }
9169
- function Ou() {
9169
+ function Mu() {
9170
9170
  return Li || (Li = !0, Mi = RangeError), Mi;
9171
9171
  }
9172
- function Mu() {
9172
+ function Lu() {
9173
9173
  return Ni || (Ni = !0, Ri = ReferenceError), Ri;
9174
9174
  }
9175
9175
  function nl() {
@@ -9178,18 +9178,18 @@ function nl() {
9178
9178
  function hr() {
9179
9179
  return Bi || (Bi = !0, Di = TypeError), Di;
9180
9180
  }
9181
- function Lu() {
9181
+ function Ru() {
9182
9182
  return $i || ($i = !0, Fi = URIError), Fi;
9183
9183
  }
9184
- function Ru() {
9184
+ function Nu() {
9185
9185
  if (qi) return kr;
9186
9186
  qi = !0;
9187
- var i = typeof Symbol < "u" && Symbol, e = Tu();
9187
+ var i = typeof Symbol < "u" && Symbol, e = Cu();
9188
9188
  return kr = function() {
9189
9189
  return typeof i != "function" || typeof Symbol != "function" || typeof i("foo") != "symbol" || typeof /* @__PURE__ */ Symbol("bar") != "symbol" ? !1 : e();
9190
9190
  }, kr;
9191
9191
  }
9192
- function Nu() {
9192
+ function ju() {
9193
9193
  if (Hi) return xr;
9194
9194
  Hi = !0;
9195
9195
  var i = { __proto__: null, foo: {} }, e = Object;
@@ -9197,7 +9197,7 @@ function Nu() {
9197
9197
  return { __proto__: i }.foo === i.foo && !(i instanceof e);
9198
9198
  }, xr;
9199
9199
  }
9200
- function ju() {
9200
+ function Uu() {
9201
9201
  if (Wi) return Sr;
9202
9202
  Wi = !0;
9203
9203
  var i = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, t = Math.max, r = "[object Function]", o = function(a, l) {
@@ -9232,10 +9232,10 @@ function ju() {
9232
9232
  function _o() {
9233
9233
  if (zi) return Er;
9234
9234
  zi = !0;
9235
- var i = ju();
9235
+ var i = Uu();
9236
9236
  return Er = Function.prototype.bind || i, Er;
9237
9237
  }
9238
- function Uu() {
9238
+ function Du() {
9239
9239
  if (Vi) return Ar;
9240
9240
  Vi = !0;
9241
9241
  var i = Function.prototype.call, e = Object.prototype.hasOwnProperty, t = _o();
@@ -9244,7 +9244,7 @@ function Uu() {
9244
9244
  function Qt() {
9245
9245
  if (Ki) return Ir;
9246
9246
  Ki = !0;
9247
- var i, e = Cu(), t = Pu(), r = Ou(), o = Mu(), n = nl(), s = hr(), a = Lu(), l = Function, c = function(Y) {
9247
+ var i, e = Pu(), t = Ou(), r = Mu(), o = Lu(), n = nl(), s = hr(), a = Ru(), l = Function, c = function(Y) {
9248
9248
  try {
9249
9249
  return l('"use strict"; return (' + Y + ").constructor;")();
9250
9250
  } catch {
@@ -9267,7 +9267,7 @@ function Qt() {
9267
9267
  return d;
9268
9268
  }
9269
9269
  }
9270
- })() : d, g = Ru()(), f = Nu()(), b = Object.getPrototypeOf || (f ? function(Y) {
9270
+ })() : d, g = Nu()(), f = ju()(), b = Object.getPrototypeOf || (f ? function(Y) {
9271
9271
  return Y.__proto__;
9272
9272
  } : null), y = {}, w = typeof Uint8Array > "u" || !b ? i : b(Uint8Array), m = { __proto__: null, "%AggregateError%": typeof AggregateError > "u" ? i : AggregateError, "%Array%": Array, "%ArrayBuffer%": typeof ArrayBuffer > "u" ? i : ArrayBuffer, "%ArrayIteratorPrototype%": g && b ? b([][Symbol.iterator]()) : i, "%AsyncFromSyncIteratorPrototype%": i, "%AsyncFunction%": y, "%AsyncGenerator%": y, "%AsyncGeneratorFunction%": y, "%AsyncIteratorPrototype%": y, "%Atomics%": typeof Atomics > "u" ? i : Atomics, "%BigInt%": typeof BigInt > "u" ? i : BigInt, "%BigInt64Array%": typeof BigInt64Array > "u" ? i : BigInt64Array, "%BigUint64Array%": typeof BigUint64Array > "u" ? i : BigUint64Array, "%Boolean%": Boolean, "%DataView%": typeof DataView > "u" ? i : DataView, "%Date%": Date, "%decodeURI%": decodeURI, "%decodeURIComponent%": decodeURIComponent, "%encodeURI%": encodeURI, "%encodeURIComponent%": encodeURIComponent, "%Error%": e, "%eval%": eval, "%EvalError%": t, "%Float32Array%": typeof Float32Array > "u" ? i : Float32Array, "%Float64Array%": typeof Float64Array > "u" ? i : Float64Array, "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? i : FinalizationRegistry, "%Function%": l, "%GeneratorFunction%": y, "%Int8Array%": typeof Int8Array > "u" ? i : Int8Array, "%Int16Array%": typeof Int16Array > "u" ? i : Int16Array, "%Int32Array%": typeof Int32Array > "u" ? i : Int32Array, "%isFinite%": isFinite, "%isNaN%": isNaN, "%IteratorPrototype%": g && b ? b(b([][Symbol.iterator]())) : i, "%JSON%": typeof JSON == "object" ? JSON : i, "%Map%": typeof Map > "u" ? i : Map, "%MapIteratorPrototype%": typeof Map > "u" || !g || !b ? i : b((/* @__PURE__ */ new Map())[Symbol.iterator]()), "%Math%": Math, "%Number%": Number, "%Object%": Object, "%parseFloat%": parseFloat, "%parseInt%": parseInt, "%Promise%": typeof Promise > "u" ? i : Promise, "%Proxy%": typeof Proxy > "u" ? i : Proxy, "%RangeError%": r, "%ReferenceError%": o, "%Reflect%": typeof Reflect > "u" ? i : Reflect, "%RegExp%": RegExp, "%Set%": typeof Set > "u" ? i : Set, "%SetIteratorPrototype%": typeof Set > "u" || !g || !b ? i : b((/* @__PURE__ */ new Set())[Symbol.iterator]()), "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? i : SharedArrayBuffer, "%String%": String, "%StringIteratorPrototype%": g && b ? b(""[Symbol.iterator]()) : i, "%Symbol%": g ? Symbol : i, "%SyntaxError%": n, "%ThrowTypeError%": p, "%TypedArray%": w, "%TypeError%": s, "%Uint8Array%": typeof Uint8Array > "u" ? i : Uint8Array, "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? i : Uint8ClampedArray, "%Uint16Array%": typeof Uint16Array > "u" ? i : Uint16Array, "%Uint32Array%": typeof Uint32Array > "u" ? i : Uint32Array, "%URIError%": a, "%WeakMap%": typeof WeakMap > "u" ? i : WeakMap, "%WeakRef%": typeof WeakRef > "u" ? i : WeakRef, "%WeakSet%": typeof WeakSet > "u" ? i : WeakSet };
9273
9273
  if (b) try {
@@ -9289,7 +9289,7 @@ function Qt() {
9289
9289
  X && b && (ee = b(X.prototype));
9290
9290
  }
9291
9291
  return m[W] = ee, ee;
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 = _o(), E = Uu(), I = S.call(Function.call, Array.prototype.concat), P = S.call(Function.apply, Array.prototype.splice), O = S.call(Function.call, String.prototype.replace), B = S.call(Function.call, String.prototype.slice), T = S.call(Function.call, RegExp.prototype.exec), $ = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, M = /\\(\\)?/g, U = function(Y) {
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 = _o(), E = Du(), I = S.call(Function.call, Array.prototype.concat), P = S.call(Function.apply, Array.prototype.splice), O = S.call(Function.call, String.prototype.replace), B = S.call(Function.call, String.prototype.slice), T = S.call(Function.call, RegExp.prototype.exec), $ = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, M = /\\(\\)?/g, U = function(Y) {
9293
9293
  var W = B(Y, 0, 1), ee = B(Y, -1);
9294
9294
  if (W === "%" && ee !== "%") throw new n("invalid intrinsic syntax, expected closing `%`");
9295
9295
  if (ee === "%" && W !== "%") throw new n("invalid intrinsic syntax, expected opening `%`");
@@ -9353,7 +9353,7 @@ function il() {
9353
9353
  }
9354
9354
  return Cr = e, Cr;
9355
9355
  }
9356
- function Du() {
9356
+ function Bu() {
9357
9357
  if (Ji) return Pr;
9358
9358
  Ji = !0;
9359
9359
  var i = ko(), e = nl(), t = hr(), r = il();
@@ -9370,7 +9370,7 @@ function Du() {
9370
9370
  else throw new e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
9371
9371
  }, Pr;
9372
9372
  }
9373
- function Bu() {
9373
+ function Fu() {
9374
9374
  if (Qi) return Or;
9375
9375
  Qi = !0;
9376
9376
  var i = ko(), e = function() {
@@ -9385,10 +9385,10 @@ function Bu() {
9385
9385
  }
9386
9386
  }, Or = e, Or;
9387
9387
  }
9388
- function Fu() {
9388
+ function $u() {
9389
9389
  if (Xi) return Mr;
9390
9390
  Xi = !0;
9391
- var i = Qt(), e = Du(), t = Bu()(), r = il(), o = hr(), n = i("%Math.floor%");
9391
+ var i = Qt(), e = Bu(), t = Fu()(), r = il(), o = hr(), n = i("%Math.floor%");
9392
9392
  return Mr = function(s, a) {
9393
9393
  if (typeof s != "function") throw new o("`fn` is not a function");
9394
9394
  if (typeof a != "number" || a < 0 || a > 4294967295 || n(a) !== a) throw new o("`length` must be a positive 32-bit integer");
@@ -9400,10 +9400,10 @@ function Fu() {
9400
9400
  return (c || u || !l) && (t ? e(s, "length", a, !0, !0) : e(s, "length", a)), s;
9401
9401
  }, Mr;
9402
9402
  }
9403
- function $u() {
9403
+ function qu() {
9404
9404
  if (Zi) return Wt;
9405
9405
  Zi = !0;
9406
- var i = _o(), e = Qt(), t = Fu(), r = hr(), o = e("%Function.prototype.apply%"), n = e("%Function.prototype.call%"), s = e("%Reflect.apply%", !0) || i.call(n, o), a = ko(), l = e("%Math.max%");
9406
+ var i = _o(), e = Qt(), t = $u(), r = hr(), o = e("%Function.prototype.apply%"), n = e("%Function.prototype.call%"), s = e("%Reflect.apply%", !0) || i.call(n, o), a = ko(), l = e("%Math.max%");
9407
9407
  Wt = function(u) {
9408
9408
  if (typeof u != "function") throw new r("a function is required");
9409
9409
  var d = s(i, n, arguments);
@@ -9414,27 +9414,27 @@ function $u() {
9414
9414
  };
9415
9415
  return a ? a(Wt, "apply", { value: c }) : Wt.apply = c, Wt;
9416
9416
  }
9417
- function qu() {
9417
+ function Hu() {
9418
9418
  if (eo) return Lr;
9419
9419
  eo = !0;
9420
- var i = Qt(), e = $u(), t = e(i("String.prototype.indexOf"));
9420
+ var i = Qt(), e = qu(), t = e(i("String.prototype.indexOf"));
9421
9421
  return Lr = function(r, o) {
9422
9422
  var n = i(r, !!o);
9423
9423
  return typeof n == "function" && t(r, ".prototype.") > -1 ? e(n) : n;
9424
9424
  }, Lr;
9425
9425
  }
9426
- var Ai, Ii, Ti, Ci, Pi, Oi, Mi, Li, Ri, Ni, ji, Ui, Di, Bi, Fi, $i, kr, qi, xr, Hi, Sr, Wi, Er, zi, Ar, Vi, Ir, Ki, Tr, Gi, Cr, Yi, Pr, Ji, Or, Qi, Mr, Xi, Wt, Zi, Lr, eo, Hu = Je(() => {
9426
+ var Ai, Ii, Ti, Ci, Pi, Oi, Mi, Li, Ri, Ni, ji, Ui, Di, Bi, Fi, $i, kr, qi, xr, Hi, Sr, Wi, Er, zi, Ar, Vi, Ir, Ki, Tr, Gi, Cr, Yi, Pr, Ji, Or, Qi, Mr, Xi, Wt, Zi, Lr, eo, Wu = Je(() => {
9427
9427
  le(), ue(), ce(), Ai = {}, Ii = !1, Ti = {}, Ci = !1, Pi = {}, Oi = !1, Mi = {}, Li = !1, Ri = {}, Ni = !1, ji = {}, Ui = !1, Di = {}, Bi = !1, Fi = {}, $i = !1, kr = {}, qi = !1, xr = {}, Hi = !1, Sr = {}, Wi = !1, Er = {}, zi = !1, Ar = {}, Vi = !1, Ir = {}, Ki = !1, Tr = {}, Gi = !1, Cr = {}, Yi = !1, Pr = {}, Ji = !1, Or = {}, Qi = !1, Mr = {}, Xi = !1, Wt = {}, Zi = !1, Lr = {}, eo = !1;
9428
9428
  });
9429
9429
  function xo(i) {
9430
9430
  throw new Error("Node.js process " + i + " is not supported by JSPM core outside of Node.js");
9431
9431
  }
9432
- function Wu() {
9432
+ function zu() {
9433
9433
  !jt || !Rt || (jt = !1, Rt.length ? ct = Rt.concat(ct) : lr = -1, ct.length && ol());
9434
9434
  }
9435
9435
  function ol() {
9436
9436
  if (!jt) {
9437
- var i = setTimeout(Wu, 0);
9437
+ var i = setTimeout(zu, 0);
9438
9438
  jt = !0;
9439
9439
  for (var e = ct.length; e; ) {
9440
9440
  for (Rt = ct, ct = []; ++lr < e; ) Rt && Rt[lr].run();
@@ -9443,7 +9443,7 @@ function ol() {
9443
9443
  Rt = null, jt = !1, clearTimeout(i);
9444
9444
  }
9445
9445
  }
9446
- function zu(i) {
9446
+ function Vu(i) {
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
  ct.push(new sl(i, e)), ct.length === 1 && !jt && setTimeout(ol, 0);
@@ -9453,25 +9453,25 @@ function sl(i, e) {
9453
9453
  }
9454
9454
  function We() {
9455
9455
  }
9456
- function Vu(i) {
9456
+ function Ku(i) {
9457
9457
  xo("_linkedBinding");
9458
9458
  }
9459
- function Ku(i) {
9459
+ function Gu(i) {
9460
9460
  xo("dlopen");
9461
9461
  }
9462
- function Gu() {
9462
+ function Yu() {
9463
9463
  return [];
9464
9464
  }
9465
- function Yu() {
9465
+ function Ju() {
9466
9466
  return [];
9467
9467
  }
9468
- function Ju(i, e) {
9468
+ function Qu(i, e) {
9469
9469
  if (!i) throw new Error(e || "assertion error");
9470
9470
  }
9471
- function Qu() {
9471
+ function Xu() {
9472
9472
  return !1;
9473
9473
  }
9474
- function Xu() {
9474
+ function Zu() {
9475
9475
  return pt.now() / 1e3;
9476
9476
  }
9477
9477
  function nn(i) {
@@ -9481,7 +9481,7 @@ function nn(i) {
9481
9481
  function kt() {
9482
9482
  return So;
9483
9483
  }
9484
- function Zu(i) {
9484
+ function ed(i) {
9485
9485
  return [];
9486
9486
  }
9487
9487
  var ct, jt, Rt, lr, jo, Uo, Do, Bo, Fo, $o, qo, Ho, Wo, zo, Vo, Ko, Go, Yo, Jo, Qo, Xo, Zo, es, ts, rs, mr, ns, is, os, ss, as, ls, cs, us, ds, hs, fs, ps, ms, gs, bs, ys, vs, ws, _s, ks, xs, Ss, Es, As, Is, pt, on, Rr, Ts, Cs, Ps, Os, Ms, Ls, Rs, Ns, js, Us, Ds, So, al = Je(() => {
@@ -9501,9 +9501,9 @@ var ct, jt, Rt, lr, jo, Uo, Do, Bo, Fo, $o, qo, Ho, Wo, zo, Vo, Ko, Go, Yo, Jo,
9501
9501
  }, ns = mr, is = mr, os = We, ss = We, as = We, ls = {}, cs = { inspector: !1, debug: !1, uv: !1, ipv6: !1, tls_alpn: !1, tls_sni: !1, tls_ocsp: !1, tls: !1, cached_builtins: !0 }, us = We, ds = We, hs = We, fs = We, ps = We, ms = We, gs = We, bs = void 0, ys = void 0, vs = void 0, ws = We, _s = 2, ks = 1, xs = "/bin/usr/node", Ss = 9229, Es = "node", As = [], Is = We, pt = { now: typeof performance < "u" ? performance.now.bind(performance) : void 0, timing: typeof performance < "u" ? performance.timing : void 0 }, pt.now === void 0 && (on = Date.now(), pt.timing && pt.timing.navigationStart && (on = pt.timing.navigationStart), pt.now = () => Date.now() - on), Rr = 1e9, nn.bigint = function(i) {
9502
9502
  var e = nn(i);
9503
9503
  return typeof BigInt > "u" ? e[0] * Rr + e[1] : BigInt(e[0] * Rr) + BigInt(e[1]);
9504
- }, Ts = 10, Cs = {}, Ps = 0, Os = kt, Ms = kt, Ls = kt, Rs = kt, Ns = kt, js = We, Us = kt, Ds = kt, So = { version: qo, versions: Ho, arch: Uo, platform: Do, release: Yo, _rawDebug: Jo, moduleLoadList: Qo, binding: zo, _linkedBinding: Vu, _events: Cs, _eventsCount: Ps, _maxListeners: Ts, on: kt, addListener: Os, once: Ms, off: Ls, removeListener: Rs, removeAllListeners: Ns, emit: js, prependListener: Us, prependOnceListener: Ds, listeners: Zu, domain: Xo, _exiting: Zo, config: es, dlopen: Ku, uptime: Xu, _getActiveRequests: Gu, _getActiveHandles: Yu, reallyExit: ts, _kill: rs, cpuUsage: mr, resourceUsage: ns, memoryUsage: is, kill: os, exit: ss, openStdin: as, allowedNodeEnvironmentFlags: ls, assert: Ju, features: cs, _fatalExceptions: us, setUncaughtExceptionCaptureCallback: ds, hasUncaughtExceptionCaptureCallback: Qu, emitWarning: Wo, nextTick: zu, _tickCallback: hs, _debugProcess: fs, _debugEnd: ps, _startProfilerIdleNotifier: ms, _stopProfilerIdleNotifier: gs, stdout: bs, stdin: vs, stderr: ys, abort: ws, umask: Vo, chdir: Go, cwd: Ko, env: Bo, title: jo, argv: Fo, execArgv: $o, pid: _s, ppid: ks, execPath: xs, debugPort: Ss, hrtime: nn, argv0: Es, _preload_modules: As, setSourceMapsEnabled: Is };
9504
+ }, Ts = 10, Cs = {}, Ps = 0, Os = kt, Ms = kt, Ls = kt, Rs = kt, Ns = kt, js = We, Us = kt, Ds = kt, So = { version: qo, versions: Ho, arch: Uo, platform: Do, release: Yo, _rawDebug: Jo, moduleLoadList: Qo, binding: zo, _linkedBinding: Ku, _events: Cs, _eventsCount: Ps, _maxListeners: Ts, on: kt, addListener: Os, once: Ms, off: Ls, removeListener: Rs, removeAllListeners: Ns, emit: js, prependListener: Us, prependOnceListener: Ds, listeners: ed, domain: Xo, _exiting: Zo, config: es, dlopen: Gu, uptime: Zu, _getActiveRequests: Yu, _getActiveHandles: Ju, reallyExit: ts, _kill: rs, cpuUsage: mr, resourceUsage: ns, memoryUsage: is, kill: os, exit: ss, openStdin: as, allowedNodeEnvironmentFlags: ls, assert: Qu, features: cs, _fatalExceptions: us, setUncaughtExceptionCaptureCallback: ds, hasUncaughtExceptionCaptureCallback: Xu, emitWarning: Wo, nextTick: Vu, _tickCallback: hs, _debugProcess: fs, _debugEnd: ps, _startProfilerIdleNotifier: ms, _stopProfilerIdleNotifier: gs, stdout: bs, stdin: vs, stderr: ys, abort: ws, umask: Vo, chdir: Go, cwd: Ko, env: Bo, title: jo, argv: Fo, execArgv: $o, pid: _s, ppid: ks, execPath: xs, debugPort: Ss, hrtime: nn, argv0: Es, _preload_modules: As, setSourceMapsEnabled: Is };
9505
9505
  });
9506
- function ed() {
9506
+ function td() {
9507
9507
  if (to) return Nr;
9508
9508
  to = !0;
9509
9509
  var i = So;
@@ -9654,11 +9654,11 @@ function ed() {
9654
9654
  }, sep: "/", delimiter: ":", win32: null, posix: null };
9655
9655
  return o.posix = o, Nr = o, Nr;
9656
9656
  }
9657
- var Nr, to, ro, td = Je(() => {
9658
- le(), ue(), ce(), al(), Nr = {}, to = !1, ro = ed();
9657
+ var Nr, to, ro, rd = Je(() => {
9658
+ le(), ue(), ce(), al(), Nr = {}, to = !1, ro = td();
9659
9659
  }), ll = {};
9660
9660
  Gt(ll, { URL: () => yl, Url: () => fl, default: () => ze, fileURLToPath: () => ul, format: () => pl, parse: () => bl, pathToFileURL: () => dl, resolve: () => ml, resolveObject: () => gl });
9661
- function rd() {
9661
+ function nd() {
9662
9662
  if (no) return jr;
9663
9663
  no = !0;
9664
9664
  var i = typeof Map == "function" && Map.prototype, e = Object.getOwnPropertyDescriptor && i ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = i && e && typeof e.get == "function" ? e.get : null, r = i && Map.prototype.forEach, o = typeof Set == "function" && Set.prototype, n = Object.getOwnPropertyDescriptor && o ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, s = o && n && typeof n.get == "function" ? n.get : null, a = o && 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, f = Boolean.prototype.valueOf, b = Object.prototype.toString, y = Function.prototype.toString, w = String.prototype.match, m = String.prototype.slice, _ = String.prototype.replace, x = String.prototype.toUpperCase, v = String.prototype.toLowerCase, S = RegExp.prototype.test, E = Array.prototype.concat, I = Array.prototype.join, P = Array.prototype.slice, O = Math.floor, B = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, T = Object.getOwnPropertySymbols, $ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, M = typeof Symbol == "function" && typeof Symbol.iterator == "object", U = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === M || !0) ? Symbol.toStringTag : null, oe = Object.prototype.propertyIsEnumerable, Y = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(V) {
@@ -9953,10 +9953,10 @@ function rd() {
9953
9953
  }
9954
9954
  return jr;
9955
9955
  }
9956
- function nd() {
9956
+ function id() {
9957
9957
  if (io) return Dr;
9958
9958
  io = !0;
9959
- var i = Qt(), e = qu(), t = rd(), r = hr(), o = i("%WeakMap%", !0), n = i("%Map%", !0), s = 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 i = Qt(), e = Hu(), t = nd(), r = hr(), o = i("%WeakMap%", !0), n = i("%Map%", !0), s = 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, _; (_ = m.next) !== null; m = _) if (_.key === w) return m.next = _.next, _.next = y.next, y.next = _, _;
9961
9961
  }, g = function(y, w) {
9962
9962
  var m = p(y, w);
@@ -10098,10 +10098,10 @@ function cl() {
10098
10098
  };
10099
10099
  return Fr = { arrayToObject: n, assign: a, combine: f, compact: d, decode: l, encode: u, isBuffer: g, isRegExp: p, maybeMap: b, merge: s }, Fr;
10100
10100
  }
10101
- function id() {
10101
+ function od() {
10102
10102
  if (ao) return $r;
10103
10103
  ao = !0;
10104
- var i = nd(), e = cl(), t = Eo(), r = Object.prototype.hasOwnProperty, o = { brackets: function(b) {
10104
+ var i = id(), e = cl(), t = Eo(), r = Object.prototype.hasOwnProperty, o = { 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 id() {
10190
10190
  return m.charsetSentinel && (m.charset === "iso-8859-1" ? T += "utf8=%26%2310003%3B&" : T += "utf8=%E2%9C%93&"), B.length > 0 ? T + B : "";
10191
10191
  }, $r;
10192
10192
  }
10193
- function od() {
10193
+ function sd() {
10194
10194
  if (lo) return qr;
10195
10195
  lo = !0;
10196
10196
  var i = cl(), 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: i.decode, delimiter: "&", depth: 5, duplicates: "combine", ignoreQueryPrefix: !1, interpretNumericEntities: !1, parameterLimit: 1e3, parseArrays: !0, plainObjects: !1, strictDepth: !1, strictNullHandling: !1 }, o = function(p) {
@@ -10263,13 +10263,13 @@ function od() {
10263
10263
  return f.allowSparse === !0 ? y : i.compact(y);
10264
10264
  }, qr;
10265
10265
  }
10266
- function sd() {
10266
+ function ad() {
10267
10267
  if (co) return Hr;
10268
10268
  co = !0;
10269
- var i = id(), e = od(), t = Eo();
10269
+ var i = od(), e = sd(), t = Eo();
10270
10270
  return Hr = { formats: t, parse: e, stringify: i }, Hr;
10271
10271
  }
10272
- function ad() {
10272
+ function ld() {
10273
10273
  if (uo) return It;
10274
10274
  uo = !0;
10275
10275
  var i = At;
@@ -10277,7 +10277,7 @@ function ad() {
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]*$/, o = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/, n = ["<", ">", '"', "`", " ", "\r", `
10280
- `, " "], s = ["{", "}", "|", "\\", "^", "`"].concat(n), a = ["'"].concat(s), 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 }, f = { 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 = sd();
10280
+ `, " "], s = ["{", "}", "|", "\\", "^", "`"].concat(n), a = ["'"].concat(s), 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 }, f = { 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 = ad();
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 ul(i) {
10434
10434
  if (typeof i == "string") i = new URL(i);
10435
10435
  else if (!(i instanceof URL)) throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");
10436
10436
  if (i.protocol !== "file:") throw new Deno.errors.InvalidData("invalid url scheme");
10437
- return Vr ? ld(i) : cd(i);
10437
+ return Vr ? cd(i) : ud(i);
10438
10438
  }
10439
- function ld(i) {
10439
+ function cd(i) {
10440
10440
  let e = i.hostname, t = i.pathname;
10441
10441
  for (let r = 0; r < t.length; r++) if (t[r] === "%") {
10442
10442
  let o = t.codePointAt(r + 2) || 32;
@@ -10449,7 +10449,7 @@ function ld(i) {
10449
10449
  return t.slice(1);
10450
10450
  }
10451
10451
  }
10452
- function cd(i) {
10452
+ function ud(i) {
10453
10453
  if (i.hostname !== "") throw new Deno.errors.InvalidData("invalid file url hostname");
10454
10454
  let e = i.pathname;
10455
10455
  for (let t = 0; t < e.length; t++) if (e[t] === "%") {
@@ -10465,9 +10465,9 @@ function dl(i) {
10465
10465
  return e.includes("%") && (e = e.replace(Sl, "%25")), !Vr && e.includes("\\") && (e = e.replace(El, "%5C")), e.includes(`
10466
10466
  `) && (e = e.replace(Al, "%0A")), e.includes("\r") && (e = e.replace(Il, "%0D")), e.includes(" ") && (e = e.replace(Tl, "%09")), r.pathname = e, r;
10467
10467
  }
10468
- var hl, jr, no, Ur, Dr, io, Br, oo, Fr, so, $r, ao, qr, lo, Hr, co, It, uo, ze, Bs, fl, pl, ml, gl, bl, yl, vl, wl, _l, kl, Vr, xl, Sl, El, Al, Il, Tl, ud = Je(() => {
10469
- le(), ue(), ce(), Iu(), Hu(), td(), al(), hl = Object.freeze(/* @__PURE__ */ Object.create(null)), jr = {}, no = !1, Ur = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : global, Dr = {}, io = !1, Br = {}, oo = !1, Fr = {}, so = !1, $r = {}, ao = !1, qr = {}, lo = !1, Hr = {}, co = !1, It = {}, uo = !1, ze = ad(), ze.parse, ze.resolve, ze.resolveObject, ze.format, ze.Url, Bs = typeof Deno < "u" ? Deno.build.os === "windows" ? "win32" : Deno.build.os : void 0, ze.URL = typeof URL < "u" ? URL : null, ze.pathToFileURL = dl, ze.fileURLToPath = ul, fl = ze.Url, pl = ze.format, ml = ze.resolve, gl = ze.resolveObject, bl = ze.parse, yl = ze.URL, vl = 92, wl = 47, _l = 97, kl = 122, Vr = Bs === "win32", xl = /\//g, Sl = /%/g, El = /\\/g, Al = /\n/g, Il = /\r/g, Tl = /\t/g;
10470
- }), dd = pe((i, e) => {
10468
+ var hl, jr, no, Ur, Dr, io, Br, oo, Fr, so, $r, ao, qr, lo, Hr, co, It, uo, ze, Bs, fl, pl, ml, gl, bl, yl, vl, wl, _l, kl, Vr, xl, Sl, El, Al, Il, Tl, dd = Je(() => {
10469
+ le(), ue(), ce(), Tu(), Wu(), rd(), al(), hl = Object.freeze(/* @__PURE__ */ Object.create(null)), jr = {}, no = !1, Ur = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : global, Dr = {}, io = !1, Br = {}, oo = !1, Fr = {}, so = !1, $r = {}, ao = !1, qr = {}, lo = !1, Hr = {}, co = !1, It = {}, uo = !1, ze = ld(), ze.parse, ze.resolve, ze.resolveObject, ze.format, ze.Url, Bs = typeof Deno < "u" ? Deno.build.os === "windows" ? "win32" : Deno.build.os : void 0, ze.URL = typeof URL < "u" ? URL : null, ze.pathToFileURL = dl, ze.fileURLToPath = ul, fl = ze.Url, pl = ze.format, ml = ze.resolve, gl = ze.resolveObject, bl = ze.parse, yl = ze.URL, vl = 92, wl = 47, _l = 97, kl = 122, Vr = Bs === "win32", xl = /\//g, Sl = /%/g, El = /\\/g, Al = /\n/g, Il = /\r/g, Tl = /\t/g;
10470
+ }), hd = pe((i, 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 hl, jr, no, Ur, Dr, io, Br, oo, Fr, so, $r, ao, qr, lo, Hr, co, It, uo, ze,
10521
10521
  return w && w.__esModule ? w : { default: w };
10522
10522
  };
10523
10523
  Object.defineProperty(i, "__esModule", { value: !0 }), i.streamBuilder = i.browserStreamBuilder = void 0;
10524
- var t = ($e(), Re(Fe)), r = e(dd()), o = e(gt()), n = Bt(), s = e(Zr()), a = Ao(), l = (0, o.default)("mqttjs:ws"), c = ["rejectUnauthorized", "ca", "cert", "key", "pfx", "passphrase"];
10524
+ var t = ($e(), Re(Fe)), r = e(hd()), o = e(gt()), n = Bt(), s = e(Zr()), a = Ao(), l = (0, o.default)("mqttjs:ws"), c = ["rejectUnauthorized", "ca", "cert", "key", "pfx", "passphrase"];
10525
10525
  function u(w, m) {
10526
10526
  let _ = `${w.protocol}://${w.hostname}:${w.port}${w.path}`;
10527
10527
  return typeof w.transformWsUrl == "function" && (_ = w.transformWsUrl(_, w, m)), _;
@@ -10632,7 +10632,7 @@ var Cl, Pl = Je(() => {
10632
10632
  i.default = s;
10633
10633
  }), Ml = {};
10634
10634
  Gt(Ml, { default: () => Ll });
10635
- var Ll, hd = Je(() => {
10635
+ var Ll, fd = Je(() => {
10636
10636
  le(), ue(), ce(), Ll = {};
10637
10637
  }), $s = pe((i) => {
10638
10638
  le(), ue(), ce();
@@ -10640,7 +10640,7 @@ var Ll, hd = Je(() => {
10640
10640
  return c && c.__esModule ? c : { default: c };
10641
10641
  };
10642
10642
  Object.defineProperty(i, "__esModule", { value: !0 });
10643
- var t = (hd(), Re(Ml)), r = e((Pl(), Re(Io))), o = e(gt()), n = e(Ol()), s = (0, o.default)("mqttjs:tls");
10643
+ var t = (fd(), Re(Ml)), r = e((Pl(), Re(Io))), o = e(gt()), n = e(Ol()), s = (0, o.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 Ll, hd = Je(() => {
10771
10771
  return o = f.my, o.connectSocket({ url: y, protocols: b }), n = l(), s = new r.BufferedDuplex(f, n, o), d(), s;
10772
10772
  };
10773
10773
  i.default = p;
10774
- }), fd = pe((i) => {
10774
+ }), pd = pe((i) => {
10775
10775
  le(), ue(), ce();
10776
10776
  var e = i && i.__importDefault || function(d) {
10777
10777
  return d && d.__esModule ? d : { default: d };
10778
10778
  };
10779
10779
  Object.defineProperty(i, "__esModule", { value: !0 }), i.connectAsync = u;
10780
- var t = e(gt()), r = e((ud(), Re(ll))), o = e(xi()), n = e(Zr());
10780
+ var t = e(gt()), r = e((dd(), Re(ll))), o = e(xi()), n = e(Zr());
10781
10781
  typeof Ne?.nextTick != "function" && (Ne.nextTick = setImmediate);
10782
10782
  var s = (0, t.default)("mqttjs"), a = null;
10783
10783
  function l(d) {
@@ -10885,11 +10885,11 @@ var Ll, hd = Je(() => {
10885
10885
  i.MqttClient = s.default;
10886
10886
  var a = n(Ya());
10887
10887
  i.DefaultMessageIdProvider = a.default;
10888
- var l = n(Eu());
10888
+ var l = n(Au());
10889
10889
  i.UniqueMessageIdProvider = l.default;
10890
10890
  var c = n(Ma());
10891
10891
  i.Store = c.default;
10892
- var u = r(fd());
10892
+ var u = r(pd());
10893
10893
  i.connect = u.default, Object.defineProperty(i, "connectAsync", { enumerable: !0, get: function() {
10894
10894
  return u.connectAsync;
10895
10895
  } });
@@ -10899,7 +10899,7 @@ var Ll, hd = Je(() => {
10899
10899
  Object.defineProperty(i, "ReasonCodes", { enumerable: !0, get: function() {
10900
10900
  return p.ReasonCodes;
10901
10901
  } });
10902
- }), pd = pe((i) => {
10902
+ }), md = pe((i) => {
10903
10903
  le(), ue(), ce();
10904
10904
  var e = i && i.__createBinding || (Object.create ? function(s, a, l, c) {
10905
10905
  c === void 0 && (c = l);
@@ -10934,25 +10934,25 @@ var Ll, hd = Je(() => {
10934
10934
  var n = r(Ws());
10935
10935
  i.default = n, o(Ws(), i);
10936
10936
  });
10937
- const md = pd();
10938
- const gd = {
10937
+ const gd = md();
10938
+ const bd = {
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
- }, bd = 300, yd = {
10944
+ }, yd = 300, vd = {
10945
10945
  templateId: "7",
10946
10946
  type: "link",
10947
10947
  isDeepLink: !0
10948
- }, vd = {
10948
+ }, wd = {
10949
10949
  channelType: "group",
10950
10950
  channel: "chat21",
10951
10951
  requestChannel: "chat21",
10952
10952
  platform: "WEBSITE",
10953
10953
  medium: "CHATBUDDY"
10954
10954
  };
10955
- class wd {
10955
+ class _d {
10956
10956
  client = null;
10957
10957
  config;
10958
10958
  currentToken;
@@ -10979,7 +10979,7 @@ class wd {
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 = { ...gd, ...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 = { ...bd, ...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 wd {
11031
11031
  () => c("connect-timeout"),
11032
11032
  r + 500
11033
11033
  );
11034
- this.client = md.connect(this.config.mqttEndpoint, o), this.client.on("connect", () => {
11034
+ this.client = gd.connect(this.config.mqttEndpoint, o), 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 wd {
11096
11096
  publishFileMessage(e, t) {
11097
11097
  if (!this.client) return;
11098
11098
  const r = {
11099
- ...yd,
11099
+ ...vd,
11100
11100
  ...this.config.fileTemplate ?? {},
11101
- ..._d(t)
11101
+ ...kd(t)
11102
11102
  }, o = {
11103
11103
  metadata: {
11104
11104
  contentType: "300",
@@ -11137,7 +11137,7 @@ class wd {
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 = bd) {
11140
+ publishReadReceipt(e, t, r = yd) {
11141
11141
  if (!this.client) return;
11142
11142
  const o = this.renderTemplate(this.topics.inboundUpdate, { conversationId: e, messageId: t });
11143
11143
  this.client.publish(o, JSON.stringify({ status: r }), {
@@ -11268,7 +11268,7 @@ class wd {
11268
11268
  this.messageHandlers.forEach((c) => c(o, l));
11269
11269
  }
11270
11270
  buildOutgoingEnvelope(e, t) {
11271
- const r = { ...vd, ...this.config.messageDefaults ?? {} }, o = this.config.senderFullname ?? this.config.userName ?? this.config.userId, n = this.config.recipientFullnameResolver?.(e), s = {
11271
+ const r = { ...wd, ...this.config.messageDefaults ?? {} }, o = this.config.senderFullname ?? this.config.userName ?? this.config.userId, n = this.config.recipientFullnameResolver?.(e), s = {
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 wd {
11342
11342
  return new RegExp(`^${r}$`);
11343
11343
  }
11344
11344
  }
11345
- function _d(i) {
11345
+ function kd(i) {
11346
11346
  const e = {};
11347
11347
  for (const [t, r] of Object.entries(i))
11348
11348
  r !== void 0 && (e[t] = r);
11349
11349
  return e;
11350
11350
  }
11351
- function kd(i, e) {
11351
+ function xd(i, e) {
11352
11352
  return (i.sender ?? "").toString() === e;
11353
11353
  }
11354
- function xd(i, e) {
11354
+ function Sd(i, e) {
11355
11355
  const t = (i.sender ?? "").toString(), r = e.systemSenders ?? ["metadata", "system"], o = e.botSenderPrefix ?? "bot_";
11356
11356
  return t ? t === e.userId ? "user" : t.startsWith(o) ? "assistant" : r.includes(t) ? "system" : "agent" : "system";
11357
11357
  }
@@ -11372,7 +11372,7 @@ function Rl(i) {
11372
11372
  }
11373
11373
  return e;
11374
11374
  }
11375
- function Sd(i) {
11375
+ function Ed(i) {
11376
11376
  const e = Rl(i);
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 Sd(i) {
11386
11386
  };
11387
11387
  }
11388
11388
  function zs(i, e, t) {
11389
- const r = xd(i, t), o = Rl(i), n = Sd(i);
11389
+ const r = Sd(i, t), o = Rl(i), n = Ed(i);
11390
11390
  let s = "";
11391
11391
  o.innerMessage ? s = o.innerMessage : typeof i.text == "string" && (i.text.trim().startsWith("{") ? o.contentType !== "300" && (s = i.text) : s = i.text);
11392
- const a = typeof i.message_id == "string" ? i.message_id : `td_${Date.now()}_${Math.random().toString(36).slice(2, 8)}`, l = typeof i.timestamp == "number" ? new Date(i.timestamp).toISOString() : (/* @__PURE__ */ new Date()).toISOString(), c = r === "assistant" ? "assistant" : r === "agent" ? "agent" : r === "system" ? "system" : "user", u = typeof i.status == "number" ? Ed(i.status) : "delivered", d = {
11392
+ const a = typeof i.message_id == "string" ? i.message_id : `td_${Date.now()}_${Math.random().toString(36).slice(2, 8)}`, l = typeof i.timestamp == "number" ? new Date(i.timestamp).toISOString() : (/* @__PURE__ */ new Date()).toISOString(), c = r === "assistant" ? "assistant" : r === "agent" ? "agent" : r === "system" ? "system" : "user", u = typeof i.status == "number" ? Ad(i.status) : "delivered", d = {
11393
11393
  id: a,
11394
11394
  externalId: a,
11395
11395
  conversationId: e,
@@ -11416,10 +11416,10 @@ function zs(i, e, t) {
11416
11416
  }
11417
11417
  ]), { message: d, template: o };
11418
11418
  }
11419
- function Ed(i) {
11419
+ function Ad(i) {
11420
11420
  return i < 0 ? "error" : i >= 250 ? "read" : i >= 150 ? "delivered" : "sent";
11421
11421
  }
11422
- class Ad extends ta {
11422
+ class Id extends ta {
11423
11423
  connection = null;
11424
11424
  tiledesk = null;
11425
11425
  api;
@@ -11432,7 +11432,7 @@ class Ad extends ta {
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 oc(e.baseUrl, e.userToken, e.apiKey, e.authToken), this.messageStore = new sc(), this.conversationManager = new ac(e.conversationId), this.usesAikaara() && (this.connection = new ic(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 sc(e.baseUrl, e.userToken, e.apiKey, e.authToken), this.messageStore = new ac(), this.conversationManager = new lc(e.conversationId), this.usesAikaara() && (this.connection = new oc(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 Ad extends ta {
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 wd({
11455
+ this.tiledesk = new _d({
11456
11456
  ...e,
11457
11457
  userId: t.userId,
11458
11458
  userName: t.userName ?? e.userName,
@@ -11668,7 +11668,7 @@ class Ad extends ta {
11668
11668
  systemSenders: this.config.tiledesk?.messageDefaults?.attributes?.systemSenders
11669
11669
  });
11670
11670
  if (this.mode === "dual" && s.role === "assistant") return;
11671
- if (kd(e, n)) {
11671
+ if (xd(e, n)) {
11672
11672
  const u = this.messageStore.reconcileOptimistic(s);
11673
11673
  if (u) {
11674
11674
  this.emit("message:updated", u);
@@ -11818,12 +11818,12 @@ const Vs = {
11818
11818
  doc: "application/msword",
11819
11819
  json: "application/json"
11820
11820
  };
11821
- function Id(i) {
11821
+ function Td(i) {
11822
11822
  const e = i.lastIndexOf(".");
11823
11823
  return e < 0 || e === i.length - 1 ? "" : i.slice(e + 1).toLowerCase();
11824
11824
  }
11825
- function Td(i, e, t) {
11826
- const r = Id(i.name || "");
11825
+ function Cd(i, e, t) {
11826
+ const r = Td(i.name || "");
11827
11827
  if (r && e && e[r]) return e[r];
11828
11828
  const o = i.type;
11829
11829
  return o && o.trim().length > 0 ? o : r && Vs[r] ? Vs[r] : t;
@@ -11831,7 +11831,7 @@ function Td(i, e, t) {
11831
11831
  function sn(i, e) {
11832
11832
  return i.replace(/\{(\w+)\}/g, (t, r) => e[r] ?? "");
11833
11833
  }
11834
- function Cd(i, e) {
11834
+ function Pd(i, e) {
11835
11835
  const t = e.split(".");
11836
11836
  let r = i;
11837
11837
  for (const o of t)
@@ -11840,11 +11840,11 @@ function Cd(i, e) {
11840
11840
  else return "";
11841
11841
  return typeof r == "string" ? r : "";
11842
11842
  }
11843
- function Pd(i) {
11843
+ function Od(i) {
11844
11844
  const e = i.signedUrlPath || "data.s3SignedUrl";
11845
11845
  return {
11846
11846
  async upload(t, r) {
11847
- const o = t.name || `upload-${Date.now()}`, n = Td(
11847
+ const o = t.name || `upload-${Date.now()}`, n = Cd(
11848
11848
  t,
11849
11849
  i.contentTypeMap,
11850
11850
  i.contentTypeFallback ?? "application/octet-stream"
@@ -11870,7 +11870,7 @@ function Pd(i) {
11870
11870
  });
11871
11871
  if (!d.ok)
11872
11872
  throw new Error(`Sign request failed: ${d.status}`);
11873
- const p = await d.json().catch(() => ({})), g = Cd(p, e);
11873
+ const p = await d.json().catch(() => ({})), g = Pd(p, e);
11874
11874
  if (!g) throw new Error(`Sign response missing path "${e}"`);
11875
11875
  const f = i.s3HostRewrite ? g.replace(/^https:\/\/[^/]+/i, i.s3HostRewrite) : g, b = await fetch(f, {
11876
11876
  method: "PUT",
@@ -11937,9 +11937,9 @@ function Nl(i) {
11937
11937
  }
11938
11938
  };
11939
11939
  }
11940
- const Od = "/tilechat/{userId}/conversations/{conversationId}/messages?pageSize={pageSize}";
11941
- function Md(i) {
11942
- const e = i.apiBase.replace(/\/$/, ""), t = i.pageSize ?? 200, r = i.pathTemplate ?? Od;
11940
+ const Md = "/tilechat/{userId}/conversations/{conversationId}/messages?pageSize={pageSize}";
11941
+ function Ld(i) {
11942
+ const e = i.apiBase.replace(/\/$/, ""), t = i.pageSize ?? 200, r = i.pathTemplate ?? Md;
11943
11943
  return {
11944
11944
  async fetchMessages(o, n) {
11945
11945
  const s = r.replace("{userId}", encodeURIComponent(n.userId)).replace("{conversationId}", encodeURIComponent(o)).replace("{appId}", encodeURIComponent(n.appId ?? "tilechat")).replace("{projectId}", encodeURIComponent(n.projectId ?? "")).replace("{pageSize}", String(t)), a = s.startsWith("http") ? s : `${e}${s.startsWith("/") ? s : `/${s}`}`, l = {
@@ -11965,7 +11965,7 @@ function Md(i) {
11965
11965
  }
11966
11966
  };
11967
11967
  }
11968
- const Ld = "^[A-Z]{4}[0-9]{5}[A-Z]$", Rd = "^[A-Z]{4}0[A-Z0-9]{6}$", jl = "^[0-9]{6}$", Nd = {
11968
+ const Rd = "^[A-Z]{4}[0-9]{5}[A-Z]$", jl = "^[A-Z]{4}0[A-Z0-9]{6}$", Ul = "^[0-9]{6}$", Nd = {
11969
11969
  id: "house-property",
11970
11970
  title: "House Property",
11971
11971
  icon: "🏠",
@@ -11991,25 +11991,23 @@ const Ld = "^[A-Z]{4}[0-9]{5}[A-Z]$", Rd = "^[A-Z]{4}0[A-Z0-9]{6}$", jl = "^[0-9
11991
11991
  id: "homeLoanDetails",
11992
11992
  type: "group",
11993
11993
  title: "Home Loan Details",
11994
+ // Nothing here is required. The whole block is optional, and a user who
11995
+ // only knows one detail (say the bank, or just the interest paid) must
11996
+ // still be able to save — the save itself fires as soon as any single
11997
+ // loan field is filled, so requiring three of them blocked exactly the
11998
+ // partial entry this section is meant to capture.
11994
11999
  fields: [
11995
- {
11996
- id: "lenderName",
11997
- type: "text",
11998
- label: "Bank / Institute Name",
11999
- required: !0
12000
- },
12000
+ { id: "lenderName", type: "text", label: "Bank / Institute Name" },
12001
12001
  {
12002
12002
  id: "sanctionDate",
12003
12003
  type: "date",
12004
12004
  label: "Loan Sanction Date",
12005
- format: "DD/MM/YYYY",
12006
- required: !0
12005
+ format: "DD/MM/YYYY"
12007
12006
  },
12008
12007
  {
12009
12008
  id: "loanAccountNumber",
12010
12009
  type: "text",
12011
- label: "Loan Account No.",
12012
- required: !0
12010
+ label: "Loan Account No."
12013
12011
  },
12014
12012
  {
12015
12013
  id: "totalLoanAmount",
@@ -12064,7 +12062,7 @@ const Ld = "^[A-Z]{4}[0-9]{5}[A-Z]$", Rd = "^[A-Z]{4}0[A-Z0-9]{6}$", jl = "^[0-9
12064
12062
  // Optional: the pattern check only fires on a non-empty value, so a
12065
12063
  // blank TAN saves cleanly while a malformed one is still caught.
12066
12064
  label: "TAN (Tax Deduction Account Number)",
12067
- pattern: Ld,
12065
+ pattern: Rd,
12068
12066
  maxLength: 10
12069
12067
  }
12070
12068
  ]
@@ -12161,6 +12159,33 @@ const Ld = "^[A-Z]{4}[0-9]{5}[A-Z]$", Rd = "^[A-Z]{4}0[A-Z0-9]{6}$", jl = "^[0-9
12161
12159
  currency: "₹",
12162
12160
  min: 0
12163
12161
  },
12162
+ {
12163
+ id: "us80gModeOfPayment",
12164
+ type: "radio",
12165
+ label: "Mode of Payment",
12166
+ options: [
12167
+ { value: "Online", label: "Online" },
12168
+ { value: "Offline", label: "Offline" }
12169
+ ]
12170
+ },
12171
+ // Online-only. Validation skips hidden fields, so choosing Offline —
12172
+ // or leaving the mode unset — never trips these.
12173
+ {
12174
+ id: "us80gTransactionRefNo",
12175
+ type: "text",
12176
+ label: "Transaction Reference No.",
12177
+ required: !0,
12178
+ showWhen: { field: "us80gModeOfPayment", equals: "Online" }
12179
+ },
12180
+ {
12181
+ id: "us80gIfscCode",
12182
+ type: "text",
12183
+ label: "IFSC Code",
12184
+ required: !0,
12185
+ pattern: jl,
12186
+ maxLength: 11,
12187
+ showWhen: { field: "us80gModeOfPayment", equals: "Online" }
12188
+ },
12164
12189
  {
12165
12190
  id: "us80gNameOfCharity",
12166
12191
  type: "text",
@@ -12177,7 +12202,7 @@ const Ld = "^[A-Z]{4}[0-9]{5}[A-Z]$", Rd = "^[A-Z]{4}0[A-Z0-9]{6}$", jl = "^[0-9
12177
12202
  type: "text",
12178
12203
  label: "Pincode",
12179
12204
  maxLength: 6,
12180
- pattern: jl
12205
+ pattern: Ul
12181
12206
  }
12182
12207
  ]
12183
12208
  },
@@ -12291,6 +12316,14 @@ const Ld = "^[A-Z]{4}[0-9]{5}[A-Z]$", Rd = "^[A-Z]{4}0[A-Z0-9]{6}$", jl = "^[0-9
12291
12316
  type: "text",
12292
12317
  label: "Self — Policy Number"
12293
12318
  },
12319
+ // Drives `parentSeniorCitizen` on the 80D parents claim, which until
12320
+ // now could only be pre-filled from systemFlags.hasParentOverSixty
12321
+ // with no way for the user to correct it.
12322
+ {
12323
+ id: "hasParentOverSixty",
12324
+ type: "yes-no",
12325
+ label: "Parent Senior Citizen"
12326
+ },
12294
12327
  {
12295
12328
  id: "us80dForParentsAmount",
12296
12329
  type: "number",
@@ -12514,7 +12547,7 @@ const Ld = "^[A-Z]{4}[0-9]{5}[A-Z]$", Rd = "^[A-Z]{4}0[A-Z0-9]{6}$", jl = "^[0-9
12514
12547
  type: "text",
12515
12548
  label: "Pincode",
12516
12549
  maxLength: 6,
12517
- pattern: jl
12550
+ pattern: Ul
12518
12551
  },
12519
12552
  {
12520
12553
  id: "agricultureLandOwner",
@@ -12568,7 +12601,7 @@ const Ld = "^[A-Z]{4}[0-9]{5}[A-Z]$", Rd = "^[A-Z]{4}0[A-Z0-9]{6}$", jl = "^[0-9
12568
12601
  type: "text",
12569
12602
  label: "IFSC Code",
12570
12603
  required: !0,
12571
- pattern: Rd,
12604
+ pattern: jl,
12572
12605
  maxLength: 11
12573
12606
  }
12574
12607
  ]
@@ -12618,7 +12651,7 @@ function Wd(i, e) {
12618
12651
  };
12619
12652
  r.us80cAmount = xe(t.us80cAmount), r.us80dForSelfAndFamilyAmount = xe(t.us80dForSelfAndFamilyAmount), r.us80dForParentsAmount = xe(t.us80dForParentsAmount), r.hasParentOverSixty = ur(t.hasParentOverSixty), r.preventiveHealthCheckUp = xe(t.preventiveHealthCheckUp), r.medicalExpenditure = xe(t.medicalExpenditure), r.savingBankInterest = xe(t.savingBankInterest), r.fdInterest = xe(t.fdInterest), r.dividend = xe(t.dividend), r.anyOtherIncome = xe(t.anyOtherIncome), r.familyPension = xe(t.familyPension), r.cryptoSellValue = xe(t.cryptoSellPrice), r.cryptoPurchaseAmount = xe(t.cryptoPurchasePrice), r.vdaPurchaseCost = xe(t.cryptoPurchasePrice);
12620
12653
  const o = (xe(t.bizReceiptsBank) ?? 0) + (xe(t.bizReceiptsCash) ?? 0), n = (xe(t.profReceiptsBank) ?? 0) + (xe(t.profReceiptsCash) ?? 0), s = Ee(t.bizName) !== void 0 || o > 0;
12621
- r.businessName = Ee(s ? t.bizName : t.profName), r.businessAnnualTurnOver = s ? o || void 0 : n || void 0, r.agricultureDetails = Dl(t), r.exemptIncomeAmount = xe(t.exemptIncome), r.exemptIncomeNature = Ee(t.exemptIncomeNature), xe(t.exemptIncome) !== void 0 && (r.exemptIncomes = [
12654
+ r.businessName = Ee(s ? t.bizName : t.profName), r.businessAnnualTurnOver = s ? o || void 0 : n || void 0, r.agricultureDetails = Bl(t), r.exemptIncomeAmount = xe(t.exemptIncome), r.exemptIncomeNature = Ee(t.exemptIncomeNature), xe(t.exemptIncome) !== void 0 && (r.exemptIncomes = [
12622
12655
  { name: Ee(t.exemptIncomeNature) ?? "Exempt income", value: String(xe(t.exemptIncome)) }
12623
12656
  ]), r.bankAccountNumber = Ee(t.bankAccountNumber), r.bankIfscCode = Ee(t.bankIfscCode), (Ee(t.bankAccountNumber) || Ee(t.bankIfscCode)) && (r.bankDetails = [
12624
12657
  { bankAccountNumber: Ee(t.bankAccountNumber), bankIfscCode: Ee(t.bankIfscCode) }
@@ -12763,7 +12796,7 @@ function Qd(i, e) {
12763
12796
  function Xd(i) {
12764
12797
  return Ee(i.lenderName) !== void 0 || Ee(i.loanAccountNumber) !== void 0 || xe(i.totalLoanAmount) !== void 0 || xe(i.outstandingAmount) !== void 0 || xe(i.homeLoanInterest) !== void 0;
12765
12798
  }
12766
- function Ul(i) {
12799
+ function Dl(i) {
12767
12800
  const e = Ee(i.typeOfHouseProperty)?.toUpperCase();
12768
12801
  return xe(i.rentalIncome) !== void 0 || Ee(i.nameOfTenant) !== void 0 || e === "LOP" || e === "DLOP";
12769
12802
  }
@@ -12788,7 +12821,7 @@ function Zd(i, e) {
12788
12821
  eligible80EEAAmount: xe(r.eligible80EEAAmount),
12789
12822
  eligible80EEAmount: xe(r.eligible80EEAmount),
12790
12823
  hasCoOwnedProperty: ur(r.hasCoOwnedProperty) ?? !1,
12791
- hasRentalIncome: Ul(r),
12824
+ hasRentalIncome: Dl(r),
12792
12825
  loanDetails: [o]
12793
12826
  });
12794
12827
  });
@@ -12799,7 +12832,7 @@ function Zd(i, e) {
12799
12832
  } : null;
12800
12833
  }
12801
12834
  function eh(i, e) {
12802
- const t = en(i.hpDetails).filter(Ul).map(
12835
+ const t = en(i.hpDetails).filter(Dl).map(
12803
12836
  (r) => et({
12804
12837
  typeOfHouseProperty: Ee(r.typeOfHouseProperty),
12805
12838
  housePropertyAddress: Ee(r.housePropertyAddress),
@@ -12908,7 +12941,9 @@ function th(i, e) {
12908
12941
  }
12909
12942
  function rh(i, e) {
12910
12943
  const t = i || {}, r = xe(t.us80gDonationAmount), o = Ee(t.us80gNameOfCharity);
12911
- return r === void 0 && o === void 0 ? null : {
12944
+ if (r === void 0 && o === void 0) return null;
12945
+ const n = Ee(t.us80gModeOfPayment);
12946
+ return {
12912
12947
  userId: tt(e.userId),
12913
12948
  assessmentYear: e.assessmentYear,
12914
12949
  donations80g: [
@@ -12917,12 +12952,15 @@ function rh(i, e) {
12917
12952
  panNumber: Ee(t.us80gCharityPan),
12918
12953
  amountOtherThanCash: r,
12919
12954
  address: Ee(t.us80gTrustAddress),
12920
- pinCode: Ee(t.us80gPincode)
12955
+ pinCode: Ee(t.us80gPincode),
12956
+ modeOfPayment: n,
12957
+ transactionReferenceNo: n === "Online" ? Ee(t.us80gTransactionRefNo) : void 0,
12958
+ ifscCode: n === "Online" ? Ee(t.us80gIfscCode) : void 0
12921
12959
  })
12922
12960
  ]
12923
12961
  };
12924
12962
  }
12925
- function Dl(i) {
12963
+ function Bl(i) {
12926
12964
  const e = i || {}, t = xe(e.agricultureIncome), r = xe(e.agricultureExpenditure), o = et({
12927
12965
  landInAcre: xe(e.agricultureLandInAcre),
12928
12966
  nameOfDistrict: Ee(e.agricultureLandDistrict),
@@ -12940,7 +12978,7 @@ function Dl(i) {
12940
12978
  });
12941
12979
  }
12942
12980
  function nh(i, e) {
12943
- const t = Dl(i);
12981
+ const t = Bl(i);
12944
12982
  return t ? {
12945
12983
  userId: tt(e.userId),
12946
12984
  assessmentYear: e.assessmentYear,
@@ -13078,7 +13116,9 @@ function oh(i) {
13078
13116
  w?.panNumber ?? w?.charityPan
13079
13117
  ), t.us80gTrustAddress = Ce(
13080
13118
  w?.address ?? w?.charityAddress
13081
- ), t.us80gPincode = Ce(w?.pinCode ?? w?.pincode);
13119
+ ), t.us80gPincode = Ce(w?.pinCode ?? w?.pincode), t.us80gModeOfPayment = Ce(w?.modeOfPayment), t.us80gTransactionRefNo = Ce(
13120
+ w?.transactionReferenceNo ?? w?.transactionRefNo
13121
+ ), t.us80gIfscCode = Ce(w?.ifscCode ?? w?.ifsCode);
13082
13122
  const _ = je(
13083
13123
  e.houseProperties?.[0]?.loanDetails
13084
13124
  )[0];
@@ -13126,7 +13166,7 @@ function oh(i) {
13126
13166
  )[0];
13127
13167
  T && (t.agricultureLandInAcre = Le(T.landInAcre), t.agricultureLandDistrict = Ce(T.nameOfDistrict), t.agricultureLandPincode = Ce(T.pinCode), t.agricultureLandOwner = sh(T.owner), t.agricultureLandType = ah(T.typeOfLand)), t.aadhaarNumber = Ce(e.aadharNumber);
13128
13168
  const $ = je(e.bankDetails)[0];
13129
- return $ && (t.bankAccountNumber = Ce($.accountNumber), t.bankIfscCode = Ce($.ifsCode)), Bl(t);
13169
+ return $ && (t.bankAccountNumber = Ce($.accountNumber), t.bankIfscCode = Ce($.ifsCode)), Fl(t);
13130
13170
  }
13131
13171
  function sh(i) {
13132
13172
  const e = Ce(i)?.trim();
@@ -13222,10 +13262,10 @@ function uh(i) {
13222
13262
  if (typeof i == "number")
13223
13263
  return i === 1 ? !0 : i === 0 ? !1 : void 0;
13224
13264
  }
13225
- function Bl(i) {
13265
+ function Fl(i) {
13226
13266
  const e = {};
13227
13267
  for (const [t, r] of Object.entries(i))
13228
- r !== void 0 && (Array.isArray(r) ? e[t] = r.map((o) => o && typeof o == "object" ? Bl(o) : o) : e[t] = r);
13268
+ r !== void 0 && (Array.isArray(r) ? e[t] = r.map((o) => o && typeof o == "object" ? Fl(o) : o) : e[t] = r);
13229
13269
  return e;
13230
13270
  }
13231
13271
  function cn() {
@@ -13404,7 +13444,7 @@ class Ah {
13404
13444
  isEmbed = !1;
13405
13445
  smartEditModal = null;
13406
13446
  constructor(e, t, r) {
13407
- this.client = new Ad(e, {
13447
+ this.client = new Id(e, {
13408
13448
  uploadAdapter: r?.uploadAdapter,
13409
13449
  historyAdapter: r?.historyAdapter
13410
13450
  }), 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();
@@ -13675,13 +13715,13 @@ class Ih extends HTMLElement {
13675
13715
  apiKey: this.getAttribute("api-key") || this._config.apiKey,
13676
13716
  title: this.getAttribute("title") || this._config.title || "Chat",
13677
13717
  subtitle: this.getAttribute("subtitle") || this._config.subtitle,
13678
- theme: this.getAttribute("theme") || this._config.theme || rc,
13718
+ theme: this.getAttribute("theme") || this._config.theme || nc,
13679
13719
  primaryColor: this.getAttribute("primary-color") || this._config.primaryColor || Oo,
13680
- position: this.getAttribute("position") || this._config.position || tc,
13681
- width: Number(this.getAttribute("width")) || this._config.width || Ql,
13682
- height: Number(this.getAttribute("height")) || this._config.height || Xl,
13683
- fontFamily: this._config.fontFamily || ec,
13684
- borderRadius: this._config.borderRadius ?? Zl,
13720
+ position: this.getAttribute("position") || this._config.position || rc,
13721
+ width: Number(this.getAttribute("width")) || this._config.width || Xl,
13722
+ height: Number(this.getAttribute("height")) || this._config.height || Zl,
13723
+ fontFamily: this._config.fontFamily || tc,
13724
+ borderRadius: this._config.borderRadius ?? ec,
13685
13725
  placeholder: this.getAttribute("placeholder") || this._config.placeholder || Mo,
13686
13726
  welcomeMessage: this.getAttribute("welcome-message") || this._config.welcomeMessage,
13687
13727
  avatarUrl: this.getAttribute("avatar-url") || this._config.avatarUrl,
@@ -13695,7 +13735,7 @@ class Ih extends HTMLElement {
13695
13735
  chatActions: this._config.chatActions,
13696
13736
  showBubble: this._config.showBubble ?? !0,
13697
13737
  display: (this.getAttribute("display") || this._config.display) ?? "popup",
13698
- offset: this._config.offset || nc,
13738
+ offset: this._config.offset || ic,
13699
13739
  conversationId: this._config.conversationId,
13700
13740
  systemPromptId: this._config.systemPromptId,
13701
13741
  channel: this._config.channel,
@@ -14284,9 +14324,9 @@ const jh = /* @__PURE__ */ new Set([
14284
14324
  };
14285
14325
  function Vt(i) {
14286
14326
  const e = document.createElement("template");
14287
- return e.innerHTML = i, Fl(e.content), e.innerHTML;
14327
+ return e.innerHTML = i, $l(e.content), e.innerHTML;
14288
14328
  }
14289
- function Fl(i) {
14329
+ function $l(i) {
14290
14330
  const e = Array.from(i.childNodes);
14291
14331
  for (const t of e)
14292
14332
  if (t.nodeType === Node.ELEMENT_NODE) {
@@ -14303,7 +14343,7 @@ function Fl(i) {
14303
14343
  const a = r.getAttribute("href") || "";
14304
14344
  !a.startsWith("http://") && !a.startsWith("https://") && !a.startsWith("/") && r.removeAttribute("href");
14305
14345
  }
14306
- Fl(t);
14346
+ $l(t);
14307
14347
  }
14308
14348
  }
14309
14349
  function Dh(i, e = {}) {
@@ -14760,7 +14800,7 @@ class Fh extends HTMLElement {
14760
14800
  requestAnimationFrame(() => n.show?.(e, s));
14761
14801
  return;
14762
14802
  }
14763
- const a = qh(e), l = $l(r.fetch.url, a), c = {
14803
+ const a = qh(e), l = ql(r.fetch.url, a), c = {
14764
14804
  accept: "application/json",
14765
14805
  ...r.fetch.headers ?? {}
14766
14806
  }, u = r.fetch.authHeader ?? "session";
@@ -14826,11 +14866,11 @@ function qh(i) {
14826
14866
  return {};
14827
14867
  }
14828
14868
  }
14829
- function $l(i, e) {
14869
+ function ql(i, e) {
14830
14870
  return i.replace(/\{(\w+)\}/g, (t, r) => e[r] ?? "");
14831
14871
  }
14832
14872
  function ho(i, e) {
14833
- if (typeof i == "string") return $l(i, e);
14873
+ if (typeof i == "string") return ql(i, e);
14834
14874
  if (Array.isArray(i)) return i.map((t) => ho(t, e));
14835
14875
  if (i && typeof i == "object") {
14836
14876
  const t = {};
@@ -15278,7 +15318,7 @@ class Gh extends HTMLElement {
15278
15318
  }
15279
15319
  }
15280
15320
  const un = /* @__PURE__ */ new Map();
15281
- function ql(i) {
15321
+ function Hl(i) {
15282
15322
  const e = un.get(i);
15283
15323
  if (e) return e;
15284
15324
  const t = new Promise((r, o) => {
@@ -15420,7 +15460,7 @@ class Xh extends HTMLElement {
15420
15460
  `; this.firstChild; ) this.removeChild(this.firstChild);
15421
15461
  if (!e) return;
15422
15462
  const r = t ? Qh(t) : void 0, o = r?.render ?? (t ? `aikaara-template-${t}` : `aikaara-template-${e}`), n = Jh[o];
15423
- if (n && !customElements.get(o) ? n().then(() => this.render()).catch((s) => console.warn(`[aikaara-template-renderer] native template ${o} failed to load`, s)) : r?.scriptUrl && !customElements.get(o) && ql(r.scriptUrl).then(() => Yh(o)).then(() => this.render()).catch((s) => console.warn(`[aikaara-template-renderer] failed to lazy-load ${r.scriptUrl}`, s)), customElements.get(o)) {
15463
+ if (n && !customElements.get(o) ? n().then(() => this.render()).catch((s) => console.warn(`[aikaara-template-renderer] native template ${o} failed to load`, s)) : r?.scriptUrl && !customElements.get(o) && Hl(r.scriptUrl).then(() => Yh(o)).then(() => this.render()).catch((s) => console.warn(`[aikaara-template-renderer] failed to lazy-load ${r.scriptUrl}`, s)), customElements.get(o)) {
15424
15464
  const s = document.createElement(o);
15425
15465
  if (r?.props) {
15426
15466
  for (const [a, l] of Object.entries(r.props))
@@ -15507,7 +15547,7 @@ class Xh extends HTMLElement {
15507
15547
  */
15508
15548
  mountLinkButton(e) {
15509
15549
  const t = this.renderGen;
15510
- import("./AikaaraLinkButton-Qdt9GbUN.mjs").then(({ registerAikaaraLinkButton: r, AikaaraLinkButton: o }) => {
15550
+ import("./AikaaraLinkButton-DPUD98Ba.mjs").then(({ registerAikaaraLinkButton: r, AikaaraLinkButton: o }) => {
15511
15551
  if (t !== this.renderGen) return;
15512
15552
  r();
15513
15553
  const n = document.createElement("aikaara-link-button");
@@ -17624,7 +17664,7 @@ function Rf(i, e, t) {
17624
17664
  } catch {
17625
17665
  return o;
17626
17666
  }
17627
- const s = Hl(n, t);
17667
+ const s = Wl(n, t);
17628
17668
  return typeof s == "string" ? s : void 0;
17629
17669
  } catch {
17630
17670
  return;
@@ -17634,7 +17674,7 @@ async function Nf(i, e, t) {
17634
17674
  if (typeof window > "u") return;
17635
17675
  const r = Date.now() + e;
17636
17676
  for (; Date.now() < r; ) {
17637
- const o = Hl(window, i);
17677
+ const o = Wl(window, i);
17638
17678
  if (typeof o == "string" && o.length > 0) return o;
17639
17679
  if (typeof o == "function")
17640
17680
  try {
@@ -17670,7 +17710,7 @@ function jf(i) {
17670
17710
  function Uf(i) {
17671
17711
  return i ? i.split(/[,\s]+/).map((e) => e.trim()).filter(Boolean) : [];
17672
17712
  }
17673
- function Hl(i, e) {
17713
+ function Wl(i, e) {
17674
17714
  if (!e) return i;
17675
17715
  const t = e.split(".").filter(Boolean);
17676
17716
  let r = i;
@@ -17700,7 +17740,7 @@ function Co(i, e, t) {
17700
17740
  const r = `${Bf}:${i}:${e}`;
17701
17741
  return t ? `${r}:${t}` : r;
17702
17742
  }
17703
- function Wl(i, e, t) {
17743
+ function zl(i, e, t) {
17704
17744
  try {
17705
17745
  return localStorage.getItem(Co(i, e, t));
17706
17746
  } catch {
@@ -17841,7 +17881,7 @@ function $f(i, e) {
17841
17881
  }
17842
17882
  return !1;
17843
17883
  }
17844
- async function zl(i, e) {
17884
+ async function Vl(i, e) {
17845
17885
  const t = await fetch(i, {
17846
17886
  method: "GET",
17847
17887
  headers: { accept: "application/json", ...e ?? {} }
@@ -17857,10 +17897,10 @@ async function zl(i, e) {
17857
17897
  }
17858
17898
  return r;
17859
17899
  }
17860
- function Vl(i, e) {
17900
+ function Kl(i, e) {
17861
17901
  return i.replace("{projectId}", e).replace("{uuid}", Df().replace(/-/g, ""));
17862
17902
  }
17863
- function Kl(i) {
17903
+ function Gl(i) {
17864
17904
  const e = i._preload;
17865
17905
  if (!Array.isArray(e) || e.length === 0) return;
17866
17906
  const t = Array.from(
@@ -17868,18 +17908,18 @@ function Kl(i) {
17868
17908
  e.map((r) => r && typeof r == "object" ? r.scriptUrl : null).filter((r) => typeof r == "string" && r.length > 0)
17869
17909
  )
17870
17910
  );
17871
- t.length !== 0 && Promise.allSettled(t.map((r) => ql(r)));
17911
+ t.length !== 0 && Promise.allSettled(t.map((r) => Hl(r)));
17872
17912
  }
17873
17913
  async function qf(i) {
17874
17914
  const e = {
17875
- ...i.config ?? (i.configUrl ? await zl(i.configUrl, i.configHeaders) : {}),
17915
+ ...i.config ?? (i.configUrl ? await Vl(i.configUrl, i.configHeaders) : {}),
17876
17916
  ...i.overrides ?? {}
17877
17917
  };
17878
- Kl(e);
17918
+ Gl(e);
17879
17919
  const t = e.transport ?? "tiledesk", r = e.tiledesk;
17880
17920
  if ((t === "tiledesk" || t === "dual") && !r)
17881
17921
  throw new Error("mount: descriptor.tiledesk is required for tiledesk/dual transport");
17882
- const o = r?.projectId ?? "", n = i.identity.userId, s = i.conversationScope || void 0, a = i.forceNewConversation ? null : Wl(n, o, s), l = r?.requestIdTemplate ?? "support-group-{projectId}-{uuid}", c = i.conversationId ?? a ?? Vl(l, o);
17922
+ const o = r?.projectId ?? "", n = i.identity.userId, s = i.conversationScope || void 0, a = i.forceNewConversation ? null : zl(n, o, s), l = r?.requestIdTemplate ?? "support-group-{projectId}-{uuid}", c = i.conversationId ?? a ?? Kl(l, o);
17883
17923
  (i.conversationId || !a || i.forceNewConversation) && o && Ff(n, o, c, s);
17884
17924
  const u = await i.tokenProvider(), d = i.tokenProvider, p = i.historyTokenProvider ?? d, g = r ? {
17885
17925
  mqttEndpoint: r.mqttEndpoint,
@@ -17912,7 +17952,7 @@ async function qf(i) {
17912
17952
  endpoint: e.uploadEndpoint,
17913
17953
  fieldName: e.uploadFieldName,
17914
17954
  extraFields: e.uploadExtraFields
17915
- }) : void 0), b = i.historyAdapter ?? (e.historyApiBase ? Md({
17955
+ }) : void 0), b = i.historyAdapter ?? (e.historyApiBase ? Ld({
17916
17956
  apiBase: e.historyApiBase,
17917
17957
  pageSize: e.historyPageSize ?? 200,
17918
17958
  pathTemplate: e.historyPathTemplate,
@@ -17978,7 +18018,7 @@ async function Wf(i) {
17978
18018
  const e = (i.configBase ?? "https://api.aikaara.com").replace(/\/$/, ""), t = `${e}/api/v1/widget_configs/${encodeURIComponent(i.slug)}`;
17979
18019
  let r = null;
17980
18020
  try {
17981
- r = await zl(t, i.configHeaders);
18021
+ r = await Vl(t, i.configHeaders);
17982
18022
  } catch (I) {
17983
18023
  if (!i.fallbackConfig) throw I;
17984
18024
  console.warn(
@@ -17991,7 +18031,7 @@ async function Wf(i) {
17991
18031
  ...r ?? {},
17992
18032
  ...i.overrides ?? {}
17993
18033
  };
17994
- if (Kl(o), o.templates && Object.keys(o.templates).length > 0) {
18034
+ if (Gl(o), o.templates && Object.keys(o.templates).length > 0) {
17995
18035
  o.components = { ...o.components ?? {} };
17996
18036
  for (const [I, P] of Object.entries(o.templates)) {
17997
18037
  const O = `template:${I}`;
@@ -18065,7 +18105,7 @@ async function Wf(i) {
18065
18105
  }
18066
18106
  const y = new vf(o.auth, u);
18067
18107
  if (f) {
18068
- const I = o.tiledesk?.projectId ?? "", P = I ? Wl(a, I) : null, O = o.tiledesk?.requestIdTemplate ?? "support-group-{projectId}-{uuid}", B = P ?? (I ? Vl(O, I) : "");
18108
+ const I = o.tiledesk?.projectId ?? "", P = I ? zl(a, I) : null, O = o.tiledesk?.requestIdTemplate ?? "support-group-{projectId}-{uuid}", B = P ?? (I ? Kl(O, I) : "");
18069
18109
  y.prime(f, { requestId: B, fullName: l });
18070
18110
  }
18071
18111
  const w = await y.get();
@@ -18086,7 +18126,7 @@ async function Wf(i) {
18086
18126
  } catch (I) {
18087
18127
  return console.warn("[aikaara-chat-sdk] partner auto-refresh failed", I), null;
18088
18128
  }
18089
- } : null, x = o.upload, v = async () => `Bearer ${x && "tokenSource" in x && x.tokenSource === "chat" ? (await y.get()).token : await Kt(i.user.token)}`, S = i.hooks?.upload ?? (x && x.mode === "presigned-3step" ? Pd({
18129
+ } : null, x = o.upload, v = async () => `Bearer ${x && "tokenSource" in x && x.tokenSource === "chat" ? (await y.get()).token : await Kt(i.user.token)}`, S = i.hooks?.upload ?? (x && x.mode === "presigned-3step" ? Od({
18090
18130
  ...x,
18091
18131
  authHeader: v
18092
18132
  }) : x && x.mode === "direct" ? Nl({
@@ -18152,7 +18192,7 @@ async function Wf(i) {
18152
18192
  export {
18153
18193
  Po as A,
18154
18194
  Wf as B,
18155
- Gl as C,
18195
+ Yl as C,
18156
18196
  qf as D,
18157
18197
  ta as E,
18158
18198
  Rl as F,
@@ -18162,18 +18202,18 @@ export {
18162
18202
  ff as J,
18163
18203
  uf as K,
18164
18204
  af as L,
18165
- sc as M,
18205
+ ac as M,
18166
18206
  nf as N,
18167
18207
  bf as O,
18168
18208
  pf as P,
18169
18209
  of as Q,
18170
18210
  rf as R,
18171
18211
  vf as S,
18172
- wd as T,
18212
+ _d as T,
18173
18213
  Xh as U,
18174
18214
  lf as V,
18175
18215
  Th as a,
18176
- Ad as b,
18216
+ Id as b,
18177
18217
  Ph as c,
18178
18218
  zh as d,
18179
18219
  Ih as e,
@@ -18182,9 +18222,9 @@ export {
18182
18222
  Fh as h,
18183
18223
  Kh as i,
18184
18224
  Vh as j,
18185
- oc as k,
18186
- ic as l,
18187
- ac as m,
18225
+ sc as k,
18226
+ oc as l,
18227
+ lc as m,
18188
18228
  Ef as n,
18189
18229
  Xe as o,
18190
18230
  Pf as p,
@@ -18192,10 +18232,10 @@ export {
18192
18232
  yf as r,
18193
18233
  wf as s,
18194
18234
  Nl as t,
18195
- Pd as u,
18196
- Md as v,
18235
+ Od as u,
18236
+ Ld as v,
18197
18237
  Cf as w,
18198
- Sd as x,
18199
- xd as y,
18200
- kd as z
18238
+ Ed as x,
18239
+ Sd as y,
18240
+ xd as z
18201
18241
  };