@aikaara/chat-sdk 1.4.8 → 1.4.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AikaaraLinkButton-BRR8kKL8.mjs → AikaaraLinkButton-C0AQPULt.mjs} +1 -1
- package/dist/{AikaaraLinkButton-DoINI2KX.cjs → AikaaraLinkButton-Dkgz1cwW.cjs} +1 -1
- package/dist/{MountTenant-DOYMoJu4.mjs → MountTenant-BKF848dH.mjs} +530 -514
- package/dist/{MountTenant-LbcBXsS9.cjs → MountTenant-NxL-nR2d.cjs} +34 -34
- package/dist/cdn/aikaara-chat.iife.js +32 -32
- package/dist/headless.cjs +1 -1
- package/dist/headless.d.ts +4 -0
- package/dist/headless.mjs +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +2 -2
- package/dist/ui.cjs +1 -1
- package/dist/ui.d.ts +2 -0
- package/dist/ui.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
class
|
|
1
|
+
class jl {
|
|
2
2
|
identifier;
|
|
3
3
|
callbacks = {};
|
|
4
4
|
sendFn;
|
|
@@ -63,7 +63,7 @@ class bo {
|
|
|
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
|
|
66
|
+
const t = JSON.stringify(e), r = new jl(t, (o) => {
|
|
67
67
|
this.send({
|
|
68
68
|
command: "message",
|
|
69
69
|
identifier: t,
|
|
@@ -142,7 +142,7 @@ class bo {
|
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
|
-
class
|
|
145
|
+
class qs {
|
|
146
146
|
handlers = /* @__PURE__ */ new Map();
|
|
147
147
|
on(e, t) {
|
|
148
148
|
return this.handlers.has(e) || this.handlers.set(e, /* @__PURE__ */ new Set()), this.handlers.get(e).add(t), () => this.off(e, t);
|
|
@@ -163,8 +163,8 @@ class $s {
|
|
|
163
163
|
this.handlers.clear();
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
const
|
|
167
|
-
class
|
|
166
|
+
const Nl = 1e3, Ul = 10, Bl = 400, Dl = 600, yo = "#6366f1", Fl = 12, $l = "system-ui, -apple-system, sans-serif", vo = "Type a message...", ql = "bottom-right", Hl = "light", Wl = { x: 20, y: 20 }, zr = "aikaara_conversation_id";
|
|
167
|
+
class zl extends qs {
|
|
168
168
|
client;
|
|
169
169
|
config;
|
|
170
170
|
state = "disconnected";
|
|
@@ -176,14 +176,15 @@ class Wl extends $s {
|
|
|
176
176
|
this.client = new bo(t);
|
|
177
177
|
}
|
|
178
178
|
async connect() {
|
|
179
|
+
const e = this.reconnectAttempt > 0;
|
|
179
180
|
this.setState("connecting");
|
|
180
181
|
try {
|
|
181
|
-
await this.client.connect(), this.setState("connected"), this.reconnectAttempt = 0;
|
|
182
|
-
} catch (
|
|
182
|
+
await this.client.connect(), this.setState("connected"), this.reconnectAttempt = 0, e && this.emit("reconnected", void 0);
|
|
183
|
+
} catch (t) {
|
|
183
184
|
if (this.setState("disconnected"), this.config.reconnect !== !1)
|
|
184
185
|
this.scheduleReconnect();
|
|
185
186
|
else
|
|
186
|
-
throw
|
|
187
|
+
throw t;
|
|
187
188
|
}
|
|
188
189
|
}
|
|
189
190
|
async disconnect() {
|
|
@@ -220,17 +221,17 @@ class Wl extends $s {
|
|
|
220
221
|
this.state !== e && (this.state = e, this.emit("connection:state", e));
|
|
221
222
|
}
|
|
222
223
|
scheduleReconnect() {
|
|
223
|
-
const e = this.config.maxReconnectAttempts ??
|
|
224
|
+
const e = this.config.maxReconnectAttempts ?? Ul;
|
|
224
225
|
if (this.reconnectAttempt >= e) {
|
|
225
226
|
this.emit("error", new Error("Max reconnection attempts reached"));
|
|
226
227
|
return;
|
|
227
228
|
}
|
|
228
229
|
this.setState("reconnecting");
|
|
229
|
-
const r = (this.config.reconnectInterval ??
|
|
230
|
+
const r = (this.config.reconnectInterval ?? Nl) * Math.pow(2, this.reconnectAttempt);
|
|
230
231
|
this.reconnectAttempt++, this.reconnectTimer = setTimeout(async () => {
|
|
231
232
|
try {
|
|
232
233
|
const o = this.buildWsUrl(this.config.baseUrl, this.config.userToken);
|
|
233
|
-
this.client = new bo(o), await this.connect();
|
|
234
|
+
this.client.disconnect(), this.client = new bo(o), await this.connect();
|
|
234
235
|
} catch {
|
|
235
236
|
}
|
|
236
237
|
}, r);
|
|
@@ -246,7 +247,7 @@ class Wl extends $s {
|
|
|
246
247
|
return `${e.replace(/^http/, "ws")}/cable?token=${t}`;
|
|
247
248
|
}
|
|
248
249
|
}
|
|
249
|
-
class
|
|
250
|
+
class Vl {
|
|
250
251
|
baseUrl;
|
|
251
252
|
apiKey;
|
|
252
253
|
authToken;
|
|
@@ -353,7 +354,7 @@ class zl {
|
|
|
353
354
|
return r && (n.body = JSON.stringify(r)), fetch(e, n);
|
|
354
355
|
}
|
|
355
356
|
}
|
|
356
|
-
class
|
|
357
|
+
class Gl {
|
|
357
358
|
_messages = [];
|
|
358
359
|
optimisticCounter = 0;
|
|
359
360
|
get messages() {
|
|
@@ -481,7 +482,7 @@ function _o(a) {
|
|
|
481
482
|
const e = a.attachments && a.attachments[0];
|
|
482
483
|
if (e && typeof e.fileUrl == "string")
|
|
483
484
|
return e.fileUrl;
|
|
484
|
-
const t =
|
|
485
|
+
const t = Hs(a);
|
|
485
486
|
if (t) return t;
|
|
486
487
|
}
|
|
487
488
|
function ko(a) {
|
|
@@ -499,19 +500,19 @@ function jr(a) {
|
|
|
499
500
|
return e.cloudFileId;
|
|
500
501
|
const t = (a.metadata ?? {}).attributes;
|
|
501
502
|
if (t && typeof t.cloudFileId == "string") return t.cloudFileId;
|
|
502
|
-
const r =
|
|
503
|
+
const r = Hs(a);
|
|
503
504
|
if (r) {
|
|
504
505
|
const o = /[?&]cloudFileId=([^&]+)/.exec(r);
|
|
505
506
|
if (o) return decodeURIComponent(o[1]);
|
|
506
507
|
}
|
|
507
508
|
}
|
|
508
|
-
function
|
|
509
|
+
function Hs(a) {
|
|
509
510
|
const e = a.template;
|
|
510
511
|
if (e?.templateId !== "7") return;
|
|
511
512
|
const r = e.payload?.elements?.[0]?.action?.url;
|
|
512
513
|
return typeof r == "string" ? r : void 0;
|
|
513
514
|
}
|
|
514
|
-
class
|
|
515
|
+
class Kl {
|
|
515
516
|
_conversationId;
|
|
516
517
|
persist;
|
|
517
518
|
constructor(e, t = !0) {
|
|
@@ -545,23 +546,23 @@ class Gl {
|
|
|
545
546
|
}
|
|
546
547
|
}
|
|
547
548
|
}
|
|
548
|
-
var to = Object.defineProperty,
|
|
549
|
+
var to = Object.defineProperty, Yl = Object.getOwnPropertyDescriptor, Ql = Object.getOwnPropertyNames, Jl = Object.prototype.hasOwnProperty, Ve = (a, e) => () => (a && (e = a(a = 0)), e), pe = (a, e) => () => (e || a((e = { exports: {} }).exports, e), e.exports), Ft = (a, e) => {
|
|
549
550
|
for (var t in e) to(a, t, { get: e[t], enumerable: !0 });
|
|
550
|
-
},
|
|
551
|
-
if (e && typeof e == "object" || typeof e == "function") for (let o of
|
|
551
|
+
}, Xl = (a, e, t, r) => {
|
|
552
|
+
if (e && typeof e == "object" || typeof e == "function") for (let o of Ql(e)) !Jl.call(a, o) && o !== t && to(a, o, { get: () => e[o], enumerable: !(r = Yl(e, o)) || r.enumerable });
|
|
552
553
|
return a;
|
|
553
|
-
}, Pe = (a) =>
|
|
554
|
+
}, Pe = (a) => Xl(to({}, "__esModule", { value: !0 }), a), le = Ve(() => {
|
|
554
555
|
}), Re = {};
|
|
555
|
-
Ft(Re, { _debugEnd: () => Ln, _debugProcess: () => Rn, _events: () => Yn, _eventsCount: () => Qn, _exiting: () => vn, _fatalExceptions: () => On, _getActiveHandles: () =>
|
|
556
|
+
Ft(Re, { _debugEnd: () => Ln, _debugProcess: () => Rn, _events: () => Yn, _eventsCount: () => Qn, _exiting: () => vn, _fatalExceptions: () => On, _getActiveHandles: () => Qs, _getActiveRequests: () => Ys, _kill: () => kn, _linkedBinding: () => Gs, _maxListeners: () => Kn, _preload_modules: () => Vn, _rawDebug: () => gn, _startProfilerIdleNotifier: () => jn, _stopProfilerIdleNotifier: () => Nn, _tickCallback: () => Mn, abort: () => Fn, addListener: () => Jn, allowedNodeEnvironmentFlags: () => Tn, arch: () => tn, argv: () => on, argv0: () => zn, assert: () => Js, binding: () => un, browser: () => mn, chdir: () => fn, config: () => wn, cpuUsage: () => Kt, cwd: () => dn, debugPort: () => Wn, default: () => no, dlopen: () => Ks, domain: () => yn, emit: () => ri, emitWarning: () => cn, env: () => nn, execArgv: () => sn, execPath: () => Hn, exit: () => An, features: () => Cn, hasUncaughtExceptionCaptureCallback: () => Xs, hrtime: () => ur, kill: () => En, listeners: () => ea, memoryUsage: () => Sn, moduleLoadList: () => bn, nextTick: () => zs, off: () => Zn, on: () => st, once: () => Xn, openStdin: () => In, pid: () => $n, platform: () => rn, ppid: () => qn, prependListener: () => ni, prependOnceListener: () => ii, reallyExit: () => _n, release: () => pn, removeAllListeners: () => ti, removeListener: () => ei, resourceUsage: () => xn, setSourceMapsEnabled: () => Gn, setUncaughtExceptionCaptureCallback: () => Pn, stderr: () => Bn, stdin: () => Dn, stdout: () => Un, title: () => en, umask: () => hn, uptime: () => Zs, version: () => an, versions: () => ln });
|
|
556
557
|
function ro(a) {
|
|
557
558
|
throw new Error("Node.js process " + a + " is not supported by JSPM core outside of Node.js");
|
|
558
559
|
}
|
|
559
|
-
function
|
|
560
|
-
!It || !Et || (It = !1, Et.length ? nt = Et.concat(nt) : Xt = -1, nt.length &&
|
|
560
|
+
function Zl() {
|
|
561
|
+
!It || !Et || (It = !1, Et.length ? nt = Et.concat(nt) : Xt = -1, nt.length && Ws());
|
|
561
562
|
}
|
|
562
|
-
function
|
|
563
|
+
function Ws() {
|
|
563
564
|
if (!It) {
|
|
564
|
-
var a = setTimeout(
|
|
565
|
+
var a = setTimeout(Zl, 0);
|
|
565
566
|
It = !0;
|
|
566
567
|
for (var e = nt.length; e; ) {
|
|
567
568
|
for (Et = nt, nt = []; ++Xt < e; ) Et && Et[Xt].run();
|
|
@@ -570,35 +571,35 @@ function Hs() {
|
|
|
570
571
|
Et = null, It = !1, clearTimeout(a);
|
|
571
572
|
}
|
|
572
573
|
}
|
|
573
|
-
function
|
|
574
|
+
function zs(a) {
|
|
574
575
|
var e = new Array(arguments.length - 1);
|
|
575
576
|
if (arguments.length > 1) for (var t = 1; t < arguments.length; t++) e[t - 1] = arguments[t];
|
|
576
|
-
nt.push(new
|
|
577
|
+
nt.push(new Vs(a, e)), nt.length === 1 && !It && setTimeout(Ws, 0);
|
|
577
578
|
}
|
|
578
|
-
function
|
|
579
|
+
function Vs(a, e) {
|
|
579
580
|
this.fun = a, this.array = e;
|
|
580
581
|
}
|
|
581
582
|
function Fe() {
|
|
582
583
|
}
|
|
583
|
-
function
|
|
584
|
+
function Gs(a) {
|
|
584
585
|
ro("_linkedBinding");
|
|
585
586
|
}
|
|
586
|
-
function
|
|
587
|
+
function Ks(a) {
|
|
587
588
|
ro("dlopen");
|
|
588
589
|
}
|
|
589
|
-
function
|
|
590
|
+
function Ys() {
|
|
590
591
|
return [];
|
|
591
592
|
}
|
|
592
|
-
function
|
|
593
|
+
function Qs() {
|
|
593
594
|
return [];
|
|
594
595
|
}
|
|
595
|
-
function
|
|
596
|
+
function Js(a, e) {
|
|
596
597
|
if (!a) throw new Error(e || "assertion error");
|
|
597
598
|
}
|
|
598
|
-
function
|
|
599
|
+
function Xs() {
|
|
599
600
|
return !1;
|
|
600
601
|
}
|
|
601
|
-
function
|
|
602
|
+
function Zs() {
|
|
602
603
|
return lt.now() / 1e3;
|
|
603
604
|
}
|
|
604
605
|
function ur(a) {
|
|
@@ -608,11 +609,11 @@ function ur(a) {
|
|
|
608
609
|
function st() {
|
|
609
610
|
return no;
|
|
610
611
|
}
|
|
611
|
-
function
|
|
612
|
+
function ea(a) {
|
|
612
613
|
return [];
|
|
613
614
|
}
|
|
614
|
-
var nt, It, Et, Xt, en, tn, rn, nn, on, sn, an, ln, cn, un, hn, dn, fn, pn, mn, gn, bn, yn, vn, wn, _n, kn, Kt, xn, Sn, En, An, In, Tn, Cn, On, Pn, Mn, Rn, Ln, jn, Nn, Un, Bn, Dn, Fn, $n, qn, Hn, Wn, zn, Vn, Gn, lt, Vr, hr, Kn, Yn, Qn, Jn, Xn, Zn, ei, ti, ri, ni, ii, no,
|
|
615
|
-
le(), ue(), ce(), nt = [], It = !1, Xt = -1,
|
|
615
|
+
var nt, It, Et, Xt, en, tn, rn, nn, on, sn, an, ln, cn, un, hn, dn, fn, pn, mn, gn, bn, yn, vn, wn, _n, kn, Kt, xn, Sn, En, An, In, Tn, Cn, On, Pn, Mn, Rn, Ln, jn, Nn, Un, Bn, Dn, Fn, $n, qn, Hn, Wn, zn, Vn, Gn, lt, Vr, hr, Kn, Yn, Qn, Jn, Xn, Zn, ei, ti, ri, ni, ii, no, ec = Ve(() => {
|
|
616
|
+
le(), ue(), ce(), nt = [], It = !1, Xt = -1, Vs.prototype.run = function() {
|
|
616
617
|
this.fun.apply(null, this.array);
|
|
617
618
|
}, en = "browser", tn = "x64", rn = "browser", nn = { PATH: "/usr/bin", LANG: typeof navigator < "u" ? navigator.language + ".UTF-8" : void 0, PWD: "/", HOME: "/home", TMP: "/tmp" }, on = ["/usr/bin/node"], sn = [], an = "v16.8.0", ln = {}, cn = function(a, e) {
|
|
618
619
|
console.warn((e ? e + ": " : "") + a);
|
|
@@ -628,11 +629,11 @@ var nt, It, Et, Xt, en, tn, rn, nn, on, sn, an, ln, cn, un, hn, dn, fn, pn, mn,
|
|
|
628
629
|
}, xn = Kt, Sn = Kt, En = Fe, An = Fe, In = Fe, Tn = {}, Cn = { inspector: !1, debug: !1, uv: !1, ipv6: !1, tls_alpn: !1, tls_sni: !1, tls_ocsp: !1, tls: !1, cached_builtins: !0 }, On = Fe, Pn = Fe, Mn = Fe, Rn = Fe, Ln = Fe, jn = Fe, Nn = Fe, Un = void 0, Bn = void 0, Dn = void 0, Fn = Fe, $n = 2, qn = 1, Hn = "/bin/usr/node", Wn = 9229, zn = "node", Vn = [], Gn = Fe, lt = { now: typeof performance < "u" ? performance.now.bind(performance) : void 0, timing: typeof performance < "u" ? performance.timing : void 0 }, lt.now === void 0 && (Vr = Date.now(), lt.timing && lt.timing.navigationStart && (Vr = lt.timing.navigationStart), lt.now = () => Date.now() - Vr), hr = 1e9, ur.bigint = function(a) {
|
|
629
630
|
var e = ur(a);
|
|
630
631
|
return typeof BigInt > "u" ? e[0] * hr + e[1] : BigInt(e[0] * hr) + BigInt(e[1]);
|
|
631
|
-
}, Kn = 10, Yn = {}, Qn = 0, Jn = st, Xn = st, Zn = st, ei = st, ti = st, ri = Fe, ni = st, ii = st, no = { version: an, versions: ln, arch: tn, platform: rn, browser: mn, release: pn, _rawDebug: gn, moduleLoadList: bn, binding: un, _linkedBinding:
|
|
632
|
+
}, Kn = 10, Yn = {}, Qn = 0, Jn = st, Xn = st, Zn = st, ei = st, ti = st, ri = Fe, ni = st, ii = st, no = { version: an, versions: ln, arch: tn, platform: rn, browser: mn, release: pn, _rawDebug: gn, moduleLoadList: bn, binding: un, _linkedBinding: Gs, _events: Yn, _eventsCount: Qn, _maxListeners: Kn, on: st, addListener: Jn, once: Xn, off: Zn, removeListener: ei, removeAllListeners: ti, emit: ri, prependListener: ni, prependOnceListener: ii, listeners: ea, domain: yn, _exiting: vn, config: wn, dlopen: Ks, uptime: Zs, _getActiveRequests: Ys, _getActiveHandles: Qs, reallyExit: _n, _kill: kn, cpuUsage: Kt, resourceUsage: xn, memoryUsage: Sn, kill: En, exit: An, openStdin: In, allowedNodeEnvironmentFlags: Tn, assert: Js, features: Cn, _fatalExceptions: On, setUncaughtExceptionCaptureCallback: Pn, hasUncaughtExceptionCaptureCallback: Xs, emitWarning: cn, nextTick: zs, _tickCallback: Mn, _debugProcess: Rn, _debugEnd: Ln, _startProfilerIdleNotifier: jn, _stopProfilerIdleNotifier: Nn, stdout: Un, stdin: Dn, stderr: Bn, abort: Fn, umask: hn, chdir: fn, cwd: dn, env: nn, title: en, argv: on, execArgv: sn, pid: $n, ppid: qn, execPath: Hn, debugPort: Wn, hrtime: ur, argv0: zn, _preload_modules: Vn, setSourceMapsEnabled: Gn };
|
|
632
633
|
}), ce = Ve(() => {
|
|
633
|
-
|
|
634
|
+
ec();
|
|
634
635
|
});
|
|
635
|
-
function
|
|
636
|
+
function tc() {
|
|
636
637
|
if (oi) return Lt;
|
|
637
638
|
oi = !0, Lt.byteLength = s, Lt.toByteArray = c, Lt.fromByteArray = p;
|
|
638
639
|
for (var a = [], e = [], t = typeof Uint8Array < "u" ? Uint8Array : Array, r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", o = 0, n = r.length; o < n; ++o) a[o] = r[o], e[r.charCodeAt(o)] = o;
|
|
@@ -670,7 +671,7 @@ function ec() {
|
|
|
670
671
|
}
|
|
671
672
|
return Lt;
|
|
672
673
|
}
|
|
673
|
-
function
|
|
674
|
+
function rc() {
|
|
674
675
|
return si ? Yt : (si = !0, Yt.read = function(a, e, t, r, o) {
|
|
675
676
|
var n, i, s = o * 8 - r - 1, l = (1 << s) - 1, c = l >> 1, u = -7, h = t ? o - 1 : 0, p = t ? -1 : 1, b = a[e + h];
|
|
676
677
|
for (h += p, n = b & (1 << -u) - 1, b >>= -u, u += s; u > 0; n = n * 256 + a[e + h], h += p, u -= 8) ;
|
|
@@ -688,10 +689,10 @@ function tc() {
|
|
|
688
689
|
a[t + b - f] |= g * 128;
|
|
689
690
|
}, Yt);
|
|
690
691
|
}
|
|
691
|
-
function
|
|
692
|
+
function nc() {
|
|
692
693
|
if (ai) return bt;
|
|
693
694
|
ai = !0;
|
|
694
|
-
let a =
|
|
695
|
+
let a = tc(), e = rc(), t = typeof Symbol == "function" && typeof Symbol.for == "function" ? /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom") : null;
|
|
695
696
|
bt.Buffer = i, bt.SlowBuffer = w, bt.INSPECT_MAX_BYTES = 50;
|
|
696
697
|
let r = 2147483647;
|
|
697
698
|
bt.kMaxLength = r, i.TYPED_ARRAY_SUPPORT = o(), !i.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.");
|
|
@@ -1446,12 +1447,12 @@ function rc() {
|
|
|
1446
1447
|
}
|
|
1447
1448
|
return bt;
|
|
1448
1449
|
}
|
|
1449
|
-
var Lt, oi, Yt, si, bt, ai,
|
|
1450
|
+
var Lt, oi, Yt, si, bt, ai, ic = Ve(() => {
|
|
1450
1451
|
le(), ue(), ce(), Lt = {}, oi = !1, Yt = {}, si = !1, bt = {}, ai = !1;
|
|
1451
1452
|
}), Ue = {};
|
|
1452
|
-
Ft(Ue, { Buffer: () => Nr, INSPECT_MAX_BYTES: () =>
|
|
1453
|
-
var at, Nr,
|
|
1454
|
-
le(), ue(), ce(),
|
|
1453
|
+
Ft(Ue, { Buffer: () => Nr, INSPECT_MAX_BYTES: () => ta, default: () => at, kMaxLength: () => ra });
|
|
1454
|
+
var at, Nr, ta, ra, Be = Ve(() => {
|
|
1455
|
+
le(), ue(), ce(), ic(), at = nc(), at.Buffer, at.SlowBuffer, at.INSPECT_MAX_BYTES, at.kMaxLength, Nr = at.Buffer, ta = at.INSPECT_MAX_BYTES, ra = at.kMaxLength;
|
|
1455
1456
|
}), ue = Ve(() => {
|
|
1456
1457
|
Be();
|
|
1457
1458
|
}), je = pe((a, e) => {
|
|
@@ -1516,7 +1517,7 @@ var at, Nr, ea, ta, Be = Ve(() => {
|
|
|
1516
1517
|
}, Symbol, SymbolFor: Symbol.for, SymbolAsyncIterator: Symbol.asyncIterator, SymbolHasInstance: Symbol.hasInstance, SymbolIterator: Symbol.iterator, SymbolDispose: Symbol.dispose || /* @__PURE__ */ Symbol("Symbol.dispose"), SymbolAsyncDispose: Symbol.asyncDispose || /* @__PURE__ */ Symbol("Symbol.asyncDispose"), TypedArrayPrototypeSet(r, o, n) {
|
|
1517
1518
|
return r.set(o, n);
|
|
1518
1519
|
}, Boolean, Uint8Array };
|
|
1519
|
-
}),
|
|
1520
|
+
}), na = pe((a, e) => {
|
|
1520
1521
|
le(), ue(), ce(), e.exports = { format(t, ...r) {
|
|
1521
1522
|
return t.replace(/%([sdifj])/g, function(...[o, n]) {
|
|
1522
1523
|
let i = r.shift();
|
|
@@ -1542,7 +1543,7 @@ var at, Nr, ea, ta, Be = Ve(() => {
|
|
|
1542
1543
|
} };
|
|
1543
1544
|
}), We = pe((a, e) => {
|
|
1544
1545
|
le(), ue(), ce();
|
|
1545
|
-
var { format: t, inspect: r } =
|
|
1546
|
+
var { format: t, inspect: r } = na(), { AggregateError: o } = je(), n = globalThis.AggregateError || o, i = /* @__PURE__ */ Symbol("kIsNodeError"), s = ["string", "function", "number", "object", "Function", "Object", "boolean", "bigint", "symbol"], l = /^([A-Z][a-z0-9]*)+$/, c = "__node_internal_", u = {};
|
|
1546
1547
|
function h(m, _) {
|
|
1547
1548
|
if (!m) throw new u.ERR_INTERNAL_ASSERTION(_);
|
|
1548
1549
|
}
|
|
@@ -1697,8 +1698,8 @@ var at, Nr, ea, ta, Be = Ve(() => {
|
|
|
1697
1698
|
var { AbortController: t, AbortSignal: r } = typeof self < "u" ? self : typeof window < "u" ? window : void 0;
|
|
1698
1699
|
e.exports = t, e.exports.AbortSignal = r, e.exports.default = t;
|
|
1699
1700
|
}), wt = {};
|
|
1700
|
-
Ft(wt, { EventEmitter: () =>
|
|
1701
|
-
function
|
|
1701
|
+
Ft(wt, { EventEmitter: () => ia, default: () => jt, defaultMaxListeners: () => oa, init: () => sa, listenerCount: () => aa, on: () => la, once: () => ca });
|
|
1702
|
+
function oc() {
|
|
1702
1703
|
if (li) return Qt;
|
|
1703
1704
|
li = !0;
|
|
1704
1705
|
var a = typeof Reflect == "object" ? Reflect : null, e = a && typeof a.apply == "function" ? a.apply : function(x, v, E) {
|
|
@@ -1869,8 +1870,8 @@ function ic() {
|
|
|
1869
1870
|
}
|
|
1870
1871
|
return Qt;
|
|
1871
1872
|
}
|
|
1872
|
-
var Qt, li, jt,
|
|
1873
|
-
le(), ue(), ce(), Qt = {}, li = !1, jt =
|
|
1873
|
+
var Qt, li, jt, ia, oa, sa, aa, la, ca, Ct = Ve(() => {
|
|
1874
|
+
le(), ue(), ce(), Qt = {}, li = !1, jt = oc(), jt.once, jt.once = function(a, e) {
|
|
1874
1875
|
return new Promise((t, r) => {
|
|
1875
1876
|
function o(...i) {
|
|
1876
1877
|
n !== void 0 && a.removeListener("error", n), t(i);
|
|
@@ -1908,10 +1909,10 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
1908
1909
|
let u = r.shift();
|
|
1909
1910
|
u ? u.reject(c) : o = c, i.return();
|
|
1910
1911
|
}
|
|
1911
|
-
}, { EventEmitter:
|
|
1912
|
+
}, { EventEmitter: ia, defaultMaxListeners: oa, init: sa, listenerCount: aa, on: la, once: ca } = jt;
|
|
1912
1913
|
}), ze = pe((a, e) => {
|
|
1913
1914
|
le(), ue(), ce();
|
|
1914
|
-
var t = (Be(), Pe(Ue)), { format: r, inspect: o } =
|
|
1915
|
+
var t = (Be(), Pe(Ue)), { format: r, inspect: o } = na(), { codes: { ERR_INVALID_ARG_TYPE: n } } = We(), { kResistStopPropagation: i, AggregateError: s, SymbolDispose: l } = je(), c = globalThis.AbortSignal || er().AbortSignal, u = globalThis.AbortController || er().AbortController, h = Object.getPrototypeOf(async function() {
|
|
1915
1916
|
}).constructor, p = globalThis.Blob || t.Blob, b = typeof p < "u" ? function(y) {
|
|
1916
1917
|
return y instanceof p;
|
|
1917
1918
|
} : function(y) {
|
|
@@ -2506,7 +2507,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
2506
2507
|
}
|
|
2507
2508
|
return b;
|
|
2508
2509
|
};
|
|
2509
|
-
}),
|
|
2510
|
+
}), sc = pe((a, e) => {
|
|
2510
2511
|
le(), ue(), ce();
|
|
2511
2512
|
var { StringPrototypeSlice: t, SymbolIterator: r, TypedArrayPrototypeSet: o, Uint8Array: n } = je(), { Buffer: i } = (Be(), Pe(Ue)), { inspect: s } = ze();
|
|
2512
2513
|
e.exports = class {
|
|
@@ -2609,7 +2610,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
2609
2610
|
return c(p.objectMode);
|
|
2610
2611
|
}
|
|
2611
2612
|
e.exports = { getHighWaterMark: h, getDefaultHighWaterMark: c, setDefaultHighWaterMark: u };
|
|
2612
|
-
}),
|
|
2613
|
+
}), ac = pe((a, e) => {
|
|
2613
2614
|
le(), ue(), ce();
|
|
2614
2615
|
var t = (Be(), Pe(Ue)), r = t.Buffer;
|
|
2615
2616
|
function o(i, s) {
|
|
@@ -2633,9 +2634,9 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
2633
2634
|
if (typeof i != "number") throw new TypeError("Argument must be a number");
|
|
2634
2635
|
return t.SlowBuffer(i);
|
|
2635
2636
|
};
|
|
2636
|
-
}),
|
|
2637
|
+
}), lc = pe((a) => {
|
|
2637
2638
|
le(), ue(), ce();
|
|
2638
|
-
var e =
|
|
2639
|
+
var e = ac().Buffer, t = e.isEncoding || function(m) {
|
|
2639
2640
|
switch (m = "" + m, m && m.toLowerCase()) {
|
|
2640
2641
|
case "hex":
|
|
2641
2642
|
case "utf8":
|
|
@@ -2779,7 +2780,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
2779
2780
|
function w(m) {
|
|
2780
2781
|
return m && m.length ? this.write(m) : "";
|
|
2781
2782
|
}
|
|
2782
|
-
}),
|
|
2783
|
+
}), ua = pe((a, e) => {
|
|
2783
2784
|
le(), ue(), ce();
|
|
2784
2785
|
var t = Ot(), { PromisePrototypeThen: r, SymbolAsyncIterator: o, SymbolIterator: n } = je(), { Buffer: i } = (Be(), Pe(Ue)), { ERR_INVALID_ARG_TYPE: s, ERR_STREAM_NULL_VALUES: l } = We().codes;
|
|
2785
2786
|
function c(u, h, p) {
|
|
@@ -2834,7 +2835,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
2834
2835
|
e.exports = se, se.ReadableState = ve;
|
|
2835
2836
|
var { EventEmitter: g } = (Ct(), Pe(wt)), { Stream: y, prependListener: w } = io(), { Buffer: m } = (Be(), Pe(Ue)), { addAbortSignal: _ } = Dr(), x = _t(), v = ze().debuglog("stream", (C) => {
|
|
2836
2837
|
v = C;
|
|
2837
|
-
}), E =
|
|
2838
|
+
}), E = sc(), S = $t(), { getHighWaterMark: I, getDefaultHighWaterMark: O } = Fr(), { aggregateTwoErrors: P, codes: { ERR_INVALID_ARG_TYPE: N, ERR_METHOD_NOT_IMPLEMENTED: T, ERR_OUT_OF_RANGE: q, ERR_STREAM_PUSH_AFTER_EOF: D, ERR_STREAM_UNSHIFT_AFTER_END_EVENT: U }, AbortError: ae } = We(), { validateObject: Y } = tr(), V = f("kPaused"), { StringDecoder: re } = lc(), F = ua();
|
|
2838
2839
|
c(se.prototype, y.prototype), c(se, y);
|
|
2839
2840
|
var Z = () => {
|
|
2840
2841
|
}, { errorOrDestroy: M } = S, J = 1, be = 2, te = 4, we = 8, G = 16, j = 32, ne = 64, W = 128, K = 256, Q = 512, ge = 1024, oe = 2048, R = 4096, $ = 8192, ee = 16384, de = 32768, fe = 65536, ye = 1 << 17, H = 1 << 18;
|
|
@@ -3414,9 +3415,9 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
3414
3415
|
}, Y.toWeb = function(R) {
|
|
3415
3416
|
return oe().newWritableStreamFromStreamWritable(R);
|
|
3416
3417
|
};
|
|
3417
|
-
}),
|
|
3418
|
+
}), cc = pe((a, e) => {
|
|
3418
3419
|
le(), ue(), ce();
|
|
3419
|
-
var t = Ot(), r = (Be(), Pe(Ue)), { isReadable: o, isWritable: n, isIterable: i, isNodeStream: s, isReadableNodeStream: l, isWritableNodeStream: c, isDuplexNodeStream: u, isReadableStream: h, isWritableStream: p } = dt(), b = _t(), { AbortError: f, codes: { ERR_INVALID_ARG_TYPE: g, ERR_INVALID_RETURN_VALUE: y } } = We(), { destroyer: w } = $t(), m = ut(), _ = $r(), x = oo(), { createDeferredPromise: v } = ze(), E =
|
|
3420
|
+
var t = Ot(), r = (Be(), Pe(Ue)), { isReadable: o, isWritable: n, isIterable: i, isNodeStream: s, isReadableNodeStream: l, isWritableNodeStream: c, isDuplexNodeStream: u, isReadableStream: h, isWritableStream: p } = dt(), b = _t(), { AbortError: f, codes: { ERR_INVALID_ARG_TYPE: g, ERR_INVALID_RETURN_VALUE: y } } = We(), { destroyer: w } = $t(), m = ut(), _ = $r(), x = oo(), { createDeferredPromise: v } = ze(), E = ua(), S = globalThis.Blob || r.Blob, I = typeof S < "u" ? function(D) {
|
|
3420
3421
|
return D instanceof S;
|
|
3421
3422
|
} : function(D) {
|
|
3422
3423
|
return !1;
|
|
@@ -3571,9 +3572,9 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
3571
3572
|
};
|
|
3572
3573
|
var h;
|
|
3573
3574
|
l.from = function(p) {
|
|
3574
|
-
return h || (h =
|
|
3575
|
+
return h || (h = cc()), h(p, "body");
|
|
3575
3576
|
};
|
|
3576
|
-
}),
|
|
3577
|
+
}), ha = pe((a, e) => {
|
|
3577
3578
|
le(), ue(), ce();
|
|
3578
3579
|
var { ObjectSetPrototypeOf: t, Symbol: r } = je();
|
|
3579
3580
|
e.exports = l;
|
|
@@ -3614,11 +3615,11 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
3614
3615
|
this[s] = null, h();
|
|
3615
3616
|
}
|
|
3616
3617
|
};
|
|
3617
|
-
}),
|
|
3618
|
+
}), da = pe((a, e) => {
|
|
3618
3619
|
le(), ue(), ce();
|
|
3619
3620
|
var { ObjectSetPrototypeOf: t } = je();
|
|
3620
3621
|
e.exports = o;
|
|
3621
|
-
var r =
|
|
3622
|
+
var r = ha();
|
|
3622
3623
|
t(o.prototype, r.prototype), t(o, r);
|
|
3623
3624
|
function o(n) {
|
|
3624
3625
|
if (!(this instanceof o)) return new o(n);
|
|
@@ -3742,7 +3743,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
3742
3743
|
if (!x(ye, !0)) throw new b("AsyncIterable", `transform[${ve - 1}]`, ye);
|
|
3743
3744
|
} else {
|
|
3744
3745
|
var me;
|
|
3745
|
-
q || (q =
|
|
3746
|
+
q || (q = da());
|
|
3746
3747
|
let B = new q({ objectMode: !0 }), X = (me = ye) === null || me === void 0 ? void 0 : me.then;
|
|
3747
3748
|
if (typeof X == "function") ee++, X.call(ye, (z) => {
|
|
3748
3749
|
R = z, z != null && B.write(z), k && B.end(), t.nextTick(de);
|
|
@@ -3795,7 +3796,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
3795
3796
|
}), s(we, { readable: !1, writable: !0 }, G);
|
|
3796
3797
|
}
|
|
3797
3798
|
e.exports = { pipelineImpl: J, pipeline: M };
|
|
3798
|
-
}),
|
|
3799
|
+
}), fa = pe((a, e) => {
|
|
3799
3800
|
le(), ue(), ce();
|
|
3800
3801
|
var { pipeline: t } = so(), r = ut(), { destroyer: o } = $t(), { isNodeStream: n, isReadable: i, isWritable: s, isWebStream: l, isTransformStream: c, isWritableStream: u, isReadableStream: h } = dt(), { AbortError: p, codes: { ERR_INVALID_ARG_VALUE: b, ERR_MISSING_ARGS: f } } = We(), g = _t();
|
|
3801
3802
|
e.exports = function(...y) {
|
|
@@ -3891,9 +3892,9 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
3891
3892
|
!T && v !== null && (T = new p()), x = null, m = null, _ = null, v === null ? q(T) : (v = q, n(O) && o(O, T));
|
|
3892
3893
|
}, E;
|
|
3893
3894
|
};
|
|
3894
|
-
}),
|
|
3895
|
+
}), uc = pe((a, e) => {
|
|
3895
3896
|
le(), ue(), ce();
|
|
3896
|
-
var t = globalThis.AbortController || er().AbortController, { codes: { ERR_INVALID_ARG_VALUE: r, ERR_INVALID_ARG_TYPE: o, ERR_MISSING_ARGS: n, ERR_OUT_OF_RANGE: i }, AbortError: s } = We(), { validateAbortSignal: l, validateInteger: c, validateObject: u } = tr(), h = je().Symbol("kWeak"), p = je().Symbol("kResistStopPropagation"), { finished: b } = _t(), f =
|
|
3897
|
+
var t = globalThis.AbortController || er().AbortController, { codes: { ERR_INVALID_ARG_VALUE: r, ERR_INVALID_ARG_TYPE: o, ERR_MISSING_ARGS: n, ERR_OUT_OF_RANGE: i }, AbortError: s } = We(), { validateAbortSignal: l, validateInteger: c, validateObject: u } = tr(), h = je().Symbol("kWeak"), p = je().Symbol("kResistStopPropagation"), { finished: b } = _t(), f = fa(), { addAbortSignalNoValidate: g } = Dr(), { isWritable: y, isNodeStream: w } = dt(), { deprecate: m } = ze(), { ArrayPrototypePush: _, Boolean: x, MathFloor: v, Number: E, NumberIsNaN: S, Promise: I, PromiseReject: O, PromiseResolve: P, PromisePrototypeThen: N, Symbol: T } = je(), q = T("kEmpty"), D = T("kEof");
|
|
3897
3898
|
function U(W, K) {
|
|
3898
3899
|
if (K != null && u(K, "options"), K?.signal != null && l(K.signal, "options.signal"), w(W) && !y(W)) throw new r("stream", W, "must be writable");
|
|
3899
3900
|
let Q = f(this, W);
|
|
@@ -4069,10 +4070,10 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
4069
4070
|
}).call(this);
|
|
4070
4071
|
}
|
|
4071
4072
|
e.exports.streamReturningOperators = { asIndexedPairs: m(Y, "readable.asIndexedPairs will be removed in a future version."), drop: j, filter: M, flatMap: we, map: ae, take: ne, compose: U }, e.exports.promiseReturningOperators = { every: re, forEach: Z, reduce: be, toArray: te, some: V, find: F };
|
|
4072
|
-
}),
|
|
4073
|
+
}), pa = pe((a, e) => {
|
|
4073
4074
|
le(), ue(), ce();
|
|
4074
4075
|
var { ArrayPrototypePop: t, Promise: r } = je(), { isIterable: o, isNodeStream: n, isWebStream: i } = dt(), { pipelineImpl: s } = so(), { finished: l } = _t();
|
|
4075
|
-
|
|
4076
|
+
ma();
|
|
4076
4077
|
function c(...u) {
|
|
4077
4078
|
return new r((h, p) => {
|
|
4078
4079
|
let b, f, g = u[u.length - 1];
|
|
@@ -4086,9 +4087,9 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
4086
4087
|
});
|
|
4087
4088
|
}
|
|
4088
4089
|
e.exports = { finished: l, pipeline: c };
|
|
4089
|
-
}),
|
|
4090
|
+
}), ma = pe((a, e) => {
|
|
4090
4091
|
le(), ue(), ce();
|
|
4091
|
-
var { Buffer: t } = (Be(), Pe(Ue)), { ObjectDefineProperty: r, ObjectKeys: o, ReflectApply: n } = je(), { promisify: { custom: i } } = ze(), { streamReturningOperators: s, promiseReturningOperators: l } =
|
|
4092
|
+
var { Buffer: t } = (Be(), Pe(Ue)), { ObjectDefineProperty: r, ObjectKeys: o, ReflectApply: n } = je(), { promisify: { custom: i } } = ze(), { streamReturningOperators: s, promiseReturningOperators: l } = uc(), { codes: { ERR_ILLEGAL_CONSTRUCTOR: c } } = We(), u = fa(), { setDefaultHighWaterMark: h, getDefaultHighWaterMark: p } = Fr(), { pipeline: b } = so(), { destroyer: f } = $t(), g = _t(), y = pa(), w = dt(), m = e.exports = io().Stream;
|
|
4092
4093
|
m.isDestroyed = w.isDestroyed, m.isDisturbed = w.isDisturbed, m.isErrored = w.isErrored, m.isReadable = w.isReadable, m.isWritable = w.isWritable, m.Readable = $r();
|
|
4093
4094
|
for (let x of o(s)) {
|
|
4094
4095
|
let v = function(...S) {
|
|
@@ -4104,7 +4105,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
4104
4105
|
}, E = l[x];
|
|
4105
4106
|
r(v, "name", { __proto__: null, value: E.name }), r(v, "length", { __proto__: null, value: E.length }), r(m.Readable.prototype, x, { __proto__: null, value: v, enumerable: !1, configurable: !0, writable: !0 });
|
|
4106
4107
|
}
|
|
4107
|
-
m.Writable = oo(), m.Duplex = ut(), m.Transform =
|
|
4108
|
+
m.Writable = oo(), m.Duplex = ut(), m.Transform = ha(), m.PassThrough = da(), m.pipeline = b;
|
|
4108
4109
|
var { addAbortSignal: _ } = Dr();
|
|
4109
4110
|
m.addAbortSignal = _, m.finished = g, m.destroy = f, m.compose = u, m.setDefaultHighWaterMark = h, m.getDefaultHighWaterMark = p, r(m, "promises", { __proto__: null, configurable: !0, enumerable: !0, get() {
|
|
4110
4111
|
return y;
|
|
@@ -4119,11 +4120,11 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
4119
4120
|
};
|
|
4120
4121
|
}), Pt = pe((a, e) => {
|
|
4121
4122
|
le(), ue(), ce();
|
|
4122
|
-
var t =
|
|
4123
|
+
var t = ma(), r = pa(), o = t.Readable.destroy;
|
|
4123
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() {
|
|
4124
4125
|
return r;
|
|
4125
4126
|
} }), e.exports.Stream = t.Stream, e.exports.default = e.exports;
|
|
4126
|
-
}),
|
|
4127
|
+
}), hc = pe((a, e) => {
|
|
4127
4128
|
le(), ue(), ce(), typeof Object.create == "function" ? e.exports = function(t, r) {
|
|
4128
4129
|
r && (t.super_ = r, t.prototype = Object.create(r.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }));
|
|
4129
4130
|
} : e.exports = function(t, r) {
|
|
@@ -4134,7 +4135,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
4134
4135
|
o.prototype = r.prototype, t.prototype = new o(), t.prototype.constructor = t;
|
|
4135
4136
|
}
|
|
4136
4137
|
};
|
|
4137
|
-
}),
|
|
4138
|
+
}), dc = pe((a, e) => {
|
|
4138
4139
|
le(), ue(), ce();
|
|
4139
4140
|
var { Buffer: t } = (Be(), Pe(Ue)), r = /* @__PURE__ */ Symbol.for("BufferList");
|
|
4140
4141
|
function o(n) {
|
|
@@ -4258,9 +4259,9 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
4258
4259
|
}, o.isBufferList = function(n) {
|
|
4259
4260
|
return n != null && n[r];
|
|
4260
4261
|
}, e.exports = o;
|
|
4261
|
-
}),
|
|
4262
|
+
}), fc = pe((a, e) => {
|
|
4262
4263
|
le(), ue(), ce();
|
|
4263
|
-
var t = Pt().Duplex, r =
|
|
4264
|
+
var t = Pt().Duplex, r = hc(), o = dc();
|
|
4264
4265
|
function n(i) {
|
|
4265
4266
|
if (!(this instanceof n)) return new n(i);
|
|
4266
4267
|
if (typeof i == "function") {
|
|
@@ -4290,7 +4291,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
4290
4291
|
}, n.prototype._isBufferList = function(i) {
|
|
4291
4292
|
return i instanceof n || i instanceof o || n.isBufferList(i);
|
|
4292
4293
|
}, n.isBufferList = o.isBufferList, e.exports = n, e.exports.BufferListStream = n, e.exports.BufferList = o;
|
|
4293
|
-
}),
|
|
4294
|
+
}), pc = pe((a, e) => {
|
|
4294
4295
|
le(), ue(), ce();
|
|
4295
4296
|
var t = class {
|
|
4296
4297
|
constructor() {
|
|
@@ -4298,7 +4299,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
4298
4299
|
}
|
|
4299
4300
|
};
|
|
4300
4301
|
e.exports = t;
|
|
4301
|
-
}),
|
|
4302
|
+
}), ga = pe((a, e) => {
|
|
4302
4303
|
le(), ue(), ce();
|
|
4303
4304
|
var t = e.exports, { Buffer: r } = (Be(), Pe(Ue));
|
|
4304
4305
|
t.types = { 0: "reserved", 1: "connect", 2: "connack", 3: "publish", 4: "puback", 5: "pubrec", 6: "pubrel", 7: "pubcomp", 8: "subscribe", 9: "suback", 10: "unsubscribe", 11: "unsuback", 12: "pingreq", 13: "pingresp", 14: "disconnect", 15: "auth" }, t.requiredHeaderFlags = { 1: 0, 2: 0, 4: 0, 5: 0, 6: 2, 7: 0, 8: 2, 9: 0, 10: 2, 11: 0, 12: 0, 13: 0, 14: 0, 15: 0 }, t.requiredHeaderFlagsErrors = {};
|
|
@@ -4324,7 +4325,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
4324
4325
|
})));
|
|
4325
4326
|
}
|
|
4326
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" };
|
|
4327
|
-
}),
|
|
4328
|
+
}), mc = pe((a, e) => {
|
|
4328
4329
|
le(), ue(), ce();
|
|
4329
4330
|
var t = 1e3, r = t * 60, o = r * 60, n = o * 24, i = n * 7, s = n * 365.25;
|
|
4330
4331
|
e.exports = function(p, b) {
|
|
@@ -4396,10 +4397,10 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
4396
4397
|
var y = b >= f * 1.5;
|
|
4397
4398
|
return Math.round(p / f) + " " + g + (y ? "s" : "");
|
|
4398
4399
|
}
|
|
4399
|
-
}),
|
|
4400
|
+
}), gc = pe((a, e) => {
|
|
4400
4401
|
le(), ue(), ce();
|
|
4401
4402
|
function t(r) {
|
|
4402
|
-
n.debug = n, n.default = n, n.coerce = h, n.disable = c, n.enable = s, n.enabled = u, n.humanize =
|
|
4403
|
+
n.debug = n, n.default = n, n.coerce = h, n.disable = c, n.enable = s, n.enabled = u, n.humanize = mc(), n.destroy = p, Object.keys(r).forEach((b) => {
|
|
4403
4404
|
n[b] = r[b];
|
|
4404
4405
|
}), n.names = [], n.skips = [], n.formatters = {};
|
|
4405
4406
|
function o(b) {
|
|
@@ -4509,7 +4510,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
4509
4510
|
} catch {
|
|
4510
4511
|
}
|
|
4511
4512
|
}
|
|
4512
|
-
e.exports =
|
|
4513
|
+
e.exports = gc()(a);
|
|
4513
4514
|
var { formatters: s } = e.exports;
|
|
4514
4515
|
s.j = function(l) {
|
|
4515
4516
|
try {
|
|
@@ -4518,9 +4519,9 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
4518
4519
|
return "[UnexpectedJSONParseError]: " + c.message;
|
|
4519
4520
|
}
|
|
4520
4521
|
};
|
|
4521
|
-
}),
|
|
4522
|
+
}), bc = pe((a, e) => {
|
|
4522
4523
|
le(), ue(), ce();
|
|
4523
|
-
var t =
|
|
4524
|
+
var t = fc(), { EventEmitter: r } = (Ct(), Pe(wt)), o = pc(), n = ga(), i = ht()("mqtt-packet:parser"), s = class ci extends r {
|
|
4524
4525
|
constructor() {
|
|
4525
4526
|
super(), this.parser = this.constructor.parser;
|
|
4526
4527
|
}
|
|
@@ -4871,7 +4872,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
4871
4872
|
}
|
|
4872
4873
|
};
|
|
4873
4874
|
e.exports = s;
|
|
4874
|
-
}),
|
|
4875
|
+
}), yc = pe((a, e) => {
|
|
4875
4876
|
le(), ue(), ce();
|
|
4876
4877
|
var { Buffer: t } = (Be(), Pe(Ue)), r = 65536, o = {}, n = t.isBuffer(t.from([1, 2]).subarray(0, 1));
|
|
4877
4878
|
function i(u) {
|
|
@@ -4893,7 +4894,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
4893
4894
|
return h.writeUInt32BE(u, 0), h;
|
|
4894
4895
|
}
|
|
4895
4896
|
e.exports = { cache: o, generateCache: s, generateNumber: i, genBufVariableByteInt: l, generate4ByteBuffer: c };
|
|
4896
|
-
}),
|
|
4897
|
+
}), vc = pe((a, e) => {
|
|
4897
4898
|
le(), ue(), ce(), typeof Re > "u" || !Re.version || Re.version.indexOf("v0.") === 0 || Re.version.indexOf("v1.") === 0 && Re.version.indexOf("v1.8.") !== 0 ? e.exports = { nextTick: t } : e.exports = Re;
|
|
4898
4899
|
function t(r, o, n, i) {
|
|
4899
4900
|
if (typeof r != "function") throw new TypeError('"callback" argument must be a function');
|
|
@@ -4921,9 +4922,9 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
4921
4922
|
});
|
|
4922
4923
|
}
|
|
4923
4924
|
}
|
|
4924
|
-
}),
|
|
4925
|
+
}), ba = pe((a, e) => {
|
|
4925
4926
|
le(), ue(), ce();
|
|
4926
|
-
var t =
|
|
4927
|
+
var t = ga(), { Buffer: r } = (Be(), Pe(Ue)), o = r.allocUnsafe(0), n = r.from([0]), i = yc(), s = vc().nextTick, l = ht()("mqtt-packet:writeToStream"), c = i.cache, u = i.generateNumber, h = i.generateCache, p = i.genBufVariableByteInt, b = i.generate4ByteBuffer, f = Y, g = !0;
|
|
4927
4928
|
function y(G, j, ne) {
|
|
4928
4929
|
switch (l("generate called"), j.cork && (j.cork(), s(w, j)), g && (g = !1, h()), l("generate: packet.cmd: %s", G.cmd), G.cmd) {
|
|
4929
4930
|
case "connect":
|
|
@@ -5304,9 +5305,9 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
5304
5305
|
return typeof G == "string" || G instanceof r;
|
|
5305
5306
|
}
|
|
5306
5307
|
e.exports = y;
|
|
5307
|
-
}),
|
|
5308
|
+
}), wc = pe((a, e) => {
|
|
5308
5309
|
le(), ue(), ce();
|
|
5309
|
-
var t =
|
|
5310
|
+
var t = ba(), { EventEmitter: r } = (Ct(), Pe(wt)), { Buffer: o } = (Be(), Pe(Ue));
|
|
5310
5311
|
function n(s, l) {
|
|
5311
5312
|
let c = new i();
|
|
5312
5313
|
return t(s, c, l), c.concat();
|
|
@@ -5330,9 +5331,9 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
5330
5331
|
}
|
|
5331
5332
|
};
|
|
5332
5333
|
e.exports = n;
|
|
5333
|
-
}),
|
|
5334
|
-
le(), ue(), ce(), a.parser =
|
|
5335
|
-
}),
|
|
5334
|
+
}), _c = pe((a) => {
|
|
5335
|
+
le(), ue(), ce(), a.parser = bc().parser, a.generate = wc(), a.writeToStream = ba();
|
|
5336
|
+
}), kc = pe((a, e) => {
|
|
5336
5337
|
le(), ue(), ce(), e.exports = r;
|
|
5337
5338
|
function t(n) {
|
|
5338
5339
|
return n instanceof Nr ? Nr.from(n) : new n.constructor(n.buffer.slice(), n.byteOffset, n.length);
|
|
@@ -5432,9 +5433,9 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
5432
5433
|
return i.pop(), s.pop(), f;
|
|
5433
5434
|
}
|
|
5434
5435
|
}
|
|
5435
|
-
}),
|
|
5436
|
-
le(), ue(), ce(), e.exports =
|
|
5437
|
-
}),
|
|
5436
|
+
}), xc = pe((a, e) => {
|
|
5437
|
+
le(), ue(), ce(), e.exports = kc()();
|
|
5438
|
+
}), ya = pe((a) => {
|
|
5438
5439
|
le(), ue(), ce(), Object.defineProperty(a, "__esModule", { value: !0 }), a.validateTopic = e, a.validateTopics = t;
|
|
5439
5440
|
function e(r) {
|
|
5440
5441
|
let o = r.split("/");
|
|
@@ -5449,7 +5450,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
5449
5450
|
for (let o = 0; o < r.length; o++) if (!e(r[o])) return r[o];
|
|
5450
5451
|
return null;
|
|
5451
5452
|
}
|
|
5452
|
-
}),
|
|
5453
|
+
}), va = pe((a) => {
|
|
5453
5454
|
le(), ue(), ce(), Object.defineProperty(a, "__esModule", { value: !0 });
|
|
5454
5455
|
var e = Pt(), t = { objectMode: !0 }, r = { clean: !0 }, o = class {
|
|
5455
5456
|
options;
|
|
@@ -5485,7 +5486,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
5485
5486
|
}
|
|
5486
5487
|
};
|
|
5487
5488
|
a.default = o;
|
|
5488
|
-
}),
|
|
5489
|
+
}), Sc = pe((a) => {
|
|
5489
5490
|
le(), ue(), ce(), Object.defineProperty(a, "__esModule", { value: !0 });
|
|
5490
5491
|
var e = [0, 16, 128, 131, 135, 144, 145, 151, 153], t = (r, o, n) => {
|
|
5491
5492
|
r.log("handlePublish: packet %o", o), n = typeof n < "u" ? n : r.noop;
|
|
@@ -5540,21 +5541,21 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
5540
5541
|
}
|
|
5541
5542
|
};
|
|
5542
5543
|
a.default = t;
|
|
5543
|
-
}),
|
|
5544
|
+
}), Ec = pe((a, e) => {
|
|
5544
5545
|
e.exports = { version: "5.15.0" };
|
|
5545
5546
|
}), qt = pe((a) => {
|
|
5546
5547
|
le(), ue(), ce(), Object.defineProperty(a, "__esModule", { value: !0 }), a.MQTTJS_VERSION = a.nextTick = a.ErrorWithSubackPacket = a.ErrorWithReasonCode = void 0, a.applyMixin = r;
|
|
5547
|
-
var e = class
|
|
5548
|
+
var e = class wa extends Error {
|
|
5548
5549
|
code;
|
|
5549
5550
|
constructor(n, i) {
|
|
5550
|
-
super(n), this.code = i, Object.setPrototypeOf(this,
|
|
5551
|
+
super(n), this.code = i, Object.setPrototypeOf(this, wa.prototype), Object.getPrototypeOf(this).name = "ErrorWithReasonCode";
|
|
5551
5552
|
}
|
|
5552
5553
|
};
|
|
5553
5554
|
a.ErrorWithReasonCode = e;
|
|
5554
|
-
var t = class
|
|
5555
|
+
var t = class _a extends Error {
|
|
5555
5556
|
packet;
|
|
5556
5557
|
constructor(n, i) {
|
|
5557
|
-
super(n), this.packet = i, Object.setPrototypeOf(this,
|
|
5558
|
+
super(n), this.packet = i, Object.setPrototypeOf(this, _a.prototype), Object.getPrototypeOf(this).name = "ErrorWithSubackPacket";
|
|
5558
5559
|
}
|
|
5559
5560
|
};
|
|
5560
5561
|
a.ErrorWithSubackPacket = t;
|
|
@@ -5569,7 +5570,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
5569
5570
|
}
|
|
5570
5571
|
a.nextTick = typeof Re?.nextTick == "function" ? Re.nextTick : (o) => {
|
|
5571
5572
|
setTimeout(o, 0);
|
|
5572
|
-
}, a.MQTTJS_VERSION =
|
|
5573
|
+
}, a.MQTTJS_VERSION = Ec().version;
|
|
5573
5574
|
}), qr = pe((a) => {
|
|
5574
5575
|
le(), ue(), ce(), Object.defineProperty(a, "__esModule", { value: !0 }), a.ReasonCodes = void 0;
|
|
5575
5576
|
var e = qt();
|
|
@@ -5623,7 +5624,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
5623
5624
|
r.disconnecting && Object.keys(r.outgoing).length === 0 && r.emit("outgoingEmpty");
|
|
5624
5625
|
};
|
|
5625
5626
|
a.default = t;
|
|
5626
|
-
}),
|
|
5627
|
+
}), Ac = pe((a) => {
|
|
5627
5628
|
le(), ue(), ce(), Object.defineProperty(a, "__esModule", { value: !0 });
|
|
5628
5629
|
var e = qt(), t = qr(), r = (o, n) => {
|
|
5629
5630
|
let { options: i } = o, s = i.protocolVersion, l = s === 5 ? n.reasonCode : n.returnCode;
|
|
@@ -5645,7 +5646,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
5645
5646
|
});
|
|
5646
5647
|
};
|
|
5647
5648
|
a.default = r;
|
|
5648
|
-
}),
|
|
5649
|
+
}), Ic = pe((a) => {
|
|
5649
5650
|
le(), ue(), ce(), Object.defineProperty(a, "__esModule", { value: !0 }), a.LRUCache = void 0;
|
|
5650
5651
|
var e = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date, t = /* @__PURE__ */ new Set(), r = typeof Re == "object" && Re ? Re : {}, o = (b, f, g, y) => {
|
|
5651
5652
|
typeof r.emitWarning == "function" ? r.emitWarning(b, f, g, y) : console.error(`[${g}] ${f}: ${b}`);
|
|
@@ -5701,7 +5702,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
5701
5702
|
pop() {
|
|
5702
5703
|
return this.heap[--this.length];
|
|
5703
5704
|
}
|
|
5704
|
-
}, p = class
|
|
5705
|
+
}, p = class ka {
|
|
5705
5706
|
#l;
|
|
5706
5707
|
#h;
|
|
5707
5708
|
#m;
|
|
@@ -5794,7 +5795,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
5794
5795
|
if (this.#l === 0 && this.ttl === 0 && this.#h === 0) throw new TypeError("At least one of max, maxSize, or ttl is required");
|
|
5795
5796
|
if (!this.ttlAutopurge && !this.#l && !this.#h) {
|
|
5796
5797
|
let Z = "LRU_CACHE_UNBOUNDED";
|
|
5797
|
-
s(Z) && (t.add(Z), o("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", Z,
|
|
5798
|
+
s(Z) && (t.add(Z), o("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", Z, ka));
|
|
5798
5799
|
}
|
|
5799
5800
|
}
|
|
5800
5801
|
getRemainingTTL(f) {
|
|
@@ -6189,7 +6190,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
6189
6190
|
var r = class extends t {
|
|
6190
6191
|
};
|
|
6191
6192
|
a.Container = r;
|
|
6192
|
-
}),
|
|
6193
|
+
}), Tc = pe((a) => {
|
|
6193
6194
|
le(), ue(), ce(), Object.defineProperty(a, "t", { value: !0 }), a.default = void 0;
|
|
6194
6195
|
var e = ft(), t = class extends e.Base {
|
|
6195
6196
|
constructor(o = []) {
|
|
@@ -6213,7 +6214,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
6213
6214
|
}
|
|
6214
6215
|
}, r = t;
|
|
6215
6216
|
a.default = r;
|
|
6216
|
-
}),
|
|
6217
|
+
}), Cc = pe((a) => {
|
|
6217
6218
|
le(), ue(), ce(), Object.defineProperty(a, "t", { value: !0 }), a.default = void 0;
|
|
6218
6219
|
var e = ft(), t = class extends e.Base {
|
|
6219
6220
|
constructor(o = []) {
|
|
@@ -6245,7 +6246,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
6245
6246
|
}
|
|
6246
6247
|
}, r = t;
|
|
6247
6248
|
a.default = r;
|
|
6248
|
-
}),
|
|
6249
|
+
}), Oc = pe((a) => {
|
|
6249
6250
|
le(), ue(), ce(), Object.defineProperty(a, "t", { value: !0 }), a.default = void 0;
|
|
6250
6251
|
var e = ft(), t = class extends e.Base {
|
|
6251
6252
|
constructor(o = [], n = function(s, l) {
|
|
@@ -6321,7 +6322,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
6321
6322
|
function e() {
|
|
6322
6323
|
throw new RangeError("Iterator access denied!");
|
|
6323
6324
|
}
|
|
6324
|
-
}),
|
|
6325
|
+
}), xa = pe((a) => {
|
|
6325
6326
|
le(), ue(), ce(), Object.defineProperty(a, "t", { value: !0 }), a.RandomIterator = void 0;
|
|
6326
6327
|
var e = ft(), t = pt(), r = class extends e.ContainerIterator {
|
|
6327
6328
|
constructor(o, n) {
|
|
@@ -6343,18 +6344,18 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
6343
6344
|
}
|
|
6344
6345
|
};
|
|
6345
6346
|
a.RandomIterator = r;
|
|
6346
|
-
}),
|
|
6347
|
+
}), Pc = pe((a) => {
|
|
6347
6348
|
le(), ue(), ce(), Object.defineProperty(a, "t", { value: !0 }), a.default = void 0;
|
|
6348
|
-
var e = r(ao()), t =
|
|
6349
|
+
var e = r(ao()), t = xa();
|
|
6349
6350
|
function r(s) {
|
|
6350
6351
|
return s && s.t ? s : { default: s };
|
|
6351
6352
|
}
|
|
6352
|
-
var o = class
|
|
6353
|
+
var o = class Sa extends t.RandomIterator {
|
|
6353
6354
|
constructor(l, c, u) {
|
|
6354
6355
|
super(l, u), this.container = c;
|
|
6355
6356
|
}
|
|
6356
6357
|
copy() {
|
|
6357
|
-
return new
|
|
6358
|
+
return new Sa(this.o, this.container, this.iteratorType);
|
|
6358
6359
|
}
|
|
6359
6360
|
}, n = class extends e.default {
|
|
6360
6361
|
constructor(s = [], l = !0) {
|
|
@@ -6444,13 +6445,13 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
6444
6445
|
}
|
|
6445
6446
|
}, i = n;
|
|
6446
6447
|
a.default = i;
|
|
6447
|
-
}),
|
|
6448
|
+
}), Mc = pe((a) => {
|
|
6448
6449
|
le(), ue(), ce(), Object.defineProperty(a, "t", { value: !0 }), a.default = void 0;
|
|
6449
6450
|
var e = o(ao()), t = ft(), r = pt();
|
|
6450
6451
|
function o(l) {
|
|
6451
6452
|
return l && l.t ? l : { default: l };
|
|
6452
6453
|
}
|
|
6453
|
-
var n = class
|
|
6454
|
+
var n = class Ea extends t.ContainerIterator {
|
|
6454
6455
|
constructor(c, u, h, p) {
|
|
6455
6456
|
super(p), this.o = c, this.h = u, this.container = h, this.iteratorType === 0 ? (this.pre = function() {
|
|
6456
6457
|
return this.o.L === this.h && (0, r.throwIteratorAccessError)(), this.o = this.o.L, this;
|
|
@@ -6469,7 +6470,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
6469
6470
|
this.o === this.h && (0, r.throwIteratorAccessError)(), this.o.l = c;
|
|
6470
6471
|
}
|
|
6471
6472
|
copy() {
|
|
6472
|
-
return new
|
|
6473
|
+
return new Ea(this.o, this.h, this.container, this.iteratorType);
|
|
6473
6474
|
}
|
|
6474
6475
|
}, i = class extends e.default {
|
|
6475
6476
|
constructor(l = []) {
|
|
@@ -6629,18 +6630,18 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
6629
6630
|
}
|
|
6630
6631
|
}, s = i;
|
|
6631
6632
|
a.default = s;
|
|
6632
|
-
}),
|
|
6633
|
+
}), Rc = pe((a) => {
|
|
6633
6634
|
le(), ue(), ce(), Object.defineProperty(a, "t", { value: !0 }), a.default = void 0;
|
|
6634
|
-
var e = r(ao()), t =
|
|
6635
|
+
var e = r(ao()), t = xa();
|
|
6635
6636
|
function r(s) {
|
|
6636
6637
|
return s && s.t ? s : { default: s };
|
|
6637
6638
|
}
|
|
6638
|
-
var o = class
|
|
6639
|
+
var o = class Aa extends t.RandomIterator {
|
|
6639
6640
|
constructor(l, c, u) {
|
|
6640
6641
|
super(l, u), this.container = c;
|
|
6641
6642
|
}
|
|
6642
6643
|
copy() {
|
|
6643
|
-
return new
|
|
6644
|
+
return new Aa(this.o, this.container, this.iteratorType);
|
|
6644
6645
|
}
|
|
6645
6646
|
}, n = class extends e.default {
|
|
6646
6647
|
constructor(s = [], l = 4096) {
|
|
@@ -6814,7 +6815,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
6814
6815
|
}
|
|
6815
6816
|
}, i = n;
|
|
6816
6817
|
a.default = i;
|
|
6817
|
-
}),
|
|
6818
|
+
}), Lc = pe((a) => {
|
|
6818
6819
|
le(), ue(), ce(), Object.defineProperty(a, "t", { value: !0 }), a.TreeNodeEnableIndex = a.TreeNode = void 0;
|
|
6819
6820
|
var e = class {
|
|
6820
6821
|
constructor(r, o) {
|
|
@@ -6869,9 +6870,9 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
6869
6870
|
}
|
|
6870
6871
|
};
|
|
6871
6872
|
a.TreeNodeEnableIndex = t;
|
|
6872
|
-
}),
|
|
6873
|
+
}), Ia = pe((a) => {
|
|
6873
6874
|
le(), ue(), ce(), Object.defineProperty(a, "t", { value: !0 }), a.default = void 0;
|
|
6874
|
-
var e =
|
|
6875
|
+
var e = Lc(), t = ft(), r = pt(), o = class extends t.Container {
|
|
6875
6876
|
constructor(i = function(l, c) {
|
|
6876
6877
|
return l < c ? -1 : l > c ? 1 : 0;
|
|
6877
6878
|
}, s = !1) {
|
|
@@ -7123,7 +7124,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
7123
7124
|
}
|
|
7124
7125
|
}, n = o;
|
|
7125
7126
|
a.default = n;
|
|
7126
|
-
}),
|
|
7127
|
+
}), Ta = pe((a) => {
|
|
7127
7128
|
le(), ue(), ce(), Object.defineProperty(a, "t", { value: !0 }), a.default = void 0;
|
|
7128
7129
|
var e = ft(), t = pt(), r = class extends e.ContainerIterator {
|
|
7129
7130
|
constructor(n, i, s) {
|
|
@@ -7149,13 +7150,13 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
7149
7150
|
}
|
|
7150
7151
|
}, o = r;
|
|
7151
7152
|
a.default = o;
|
|
7152
|
-
}),
|
|
7153
|
+
}), jc = pe((a) => {
|
|
7153
7154
|
le(), ue(), ce(), Object.defineProperty(a, "t", { value: !0 }), a.default = void 0;
|
|
7154
|
-
var e = o(
|
|
7155
|
+
var e = o(Ia()), t = o(Ta()), r = pt();
|
|
7155
7156
|
function o(l) {
|
|
7156
7157
|
return l && l.t ? l : { default: l };
|
|
7157
7158
|
}
|
|
7158
|
-
var n = class
|
|
7159
|
+
var n = class Ca extends t.default {
|
|
7159
7160
|
constructor(c, u, h, p) {
|
|
7160
7161
|
super(c, u, p), this.container = h;
|
|
7161
7162
|
}
|
|
@@ -7163,7 +7164,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
7163
7164
|
return this.o === this.h && (0, r.throwIteratorAccessError)(), this.o.u;
|
|
7164
7165
|
}
|
|
7165
7166
|
copy() {
|
|
7166
|
-
return new
|
|
7167
|
+
return new Ca(this.o, this.h, this.container, this.iteratorType);
|
|
7167
7168
|
}
|
|
7168
7169
|
}, i = class extends e.default {
|
|
7169
7170
|
constructor(l = [], c, u) {
|
|
@@ -7228,13 +7229,13 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
7228
7229
|
}
|
|
7229
7230
|
}, s = i;
|
|
7230
7231
|
a.default = s;
|
|
7231
|
-
}),
|
|
7232
|
+
}), Nc = pe((a) => {
|
|
7232
7233
|
le(), ue(), ce(), Object.defineProperty(a, "t", { value: !0 }), a.default = void 0;
|
|
7233
|
-
var e = o(
|
|
7234
|
+
var e = o(Ia()), t = o(Ta()), r = pt();
|
|
7234
7235
|
function o(l) {
|
|
7235
7236
|
return l && l.t ? l : { default: l };
|
|
7236
7237
|
}
|
|
7237
|
-
var n = class
|
|
7238
|
+
var n = class Oa extends t.default {
|
|
7238
7239
|
constructor(c, u, h, p) {
|
|
7239
7240
|
super(c, u, p), this.container = h;
|
|
7240
7241
|
}
|
|
@@ -7250,7 +7251,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
7250
7251
|
} });
|
|
7251
7252
|
}
|
|
7252
7253
|
copy() {
|
|
7253
|
-
return new
|
|
7254
|
+
return new Oa(this.o, this.h, this.container, this.iteratorType);
|
|
7254
7255
|
}
|
|
7255
7256
|
}, i = class extends e.default {
|
|
7256
7257
|
constructor(l = [], c, u) {
|
|
@@ -7322,15 +7323,15 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
7322
7323
|
}
|
|
7323
7324
|
}, s = i;
|
|
7324
7325
|
a.default = s;
|
|
7325
|
-
}),
|
|
7326
|
+
}), Pa = pe((a) => {
|
|
7326
7327
|
le(), ue(), ce(), Object.defineProperty(a, "t", { value: !0 }), a.default = e;
|
|
7327
7328
|
function e(t) {
|
|
7328
7329
|
let r = typeof t;
|
|
7329
7330
|
return r === "object" && t !== null || r === "function";
|
|
7330
7331
|
}
|
|
7331
|
-
}),
|
|
7332
|
+
}), Ma = pe((a) => {
|
|
7332
7333
|
le(), ue(), ce(), Object.defineProperty(a, "t", { value: !0 }), a.HashContainerIterator = a.HashContainer = void 0;
|
|
7333
|
-
var e = ft(), t = o(
|
|
7334
|
+
var e = ft(), t = o(Pa()), r = pt();
|
|
7334
7335
|
function o(s) {
|
|
7335
7336
|
return s && s.t ? s : { default: s };
|
|
7336
7337
|
}
|
|
@@ -7406,9 +7407,9 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
7406
7407
|
}
|
|
7407
7408
|
};
|
|
7408
7409
|
a.HashContainer = i;
|
|
7409
|
-
}),
|
|
7410
|
+
}), Uc = pe((a) => {
|
|
7410
7411
|
le(), ue(), ce(), Object.defineProperty(a, "t", { value: !0 }), a.default = void 0;
|
|
7411
|
-
var e =
|
|
7412
|
+
var e = Ma(), t = pt(), r = class Ra extends e.HashContainerIterator {
|
|
7412
7413
|
constructor(s, l, c, u) {
|
|
7413
7414
|
super(s, l, u), this.container = c;
|
|
7414
7415
|
}
|
|
@@ -7416,7 +7417,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
7416
7417
|
return this.o === this.h && (0, t.throwIteratorAccessError)(), this.o.u;
|
|
7417
7418
|
}
|
|
7418
7419
|
copy() {
|
|
7419
|
-
return new
|
|
7420
|
+
return new Ra(this.o, this.h, this.container, this.iteratorType);
|
|
7420
7421
|
}
|
|
7421
7422
|
}, o = class extends e.HashContainer {
|
|
7422
7423
|
constructor(i = []) {
|
|
@@ -7469,13 +7470,13 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
7469
7470
|
}
|
|
7470
7471
|
}, n = o;
|
|
7471
7472
|
a.default = n;
|
|
7472
|
-
}),
|
|
7473
|
+
}), Bc = pe((a) => {
|
|
7473
7474
|
le(), ue(), ce(), Object.defineProperty(a, "t", { value: !0 }), a.default = void 0;
|
|
7474
|
-
var e =
|
|
7475
|
+
var e = Ma(), t = o(Pa()), r = pt();
|
|
7475
7476
|
function o(l) {
|
|
7476
7477
|
return l && l.t ? l : { default: l };
|
|
7477
7478
|
}
|
|
7478
|
-
var n = class
|
|
7479
|
+
var n = class La extends e.HashContainerIterator {
|
|
7479
7480
|
constructor(c, u, h, p) {
|
|
7480
7481
|
super(c, u, p), this.container = h;
|
|
7481
7482
|
}
|
|
@@ -7491,7 +7492,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
7491
7492
|
} });
|
|
7492
7493
|
}
|
|
7493
7494
|
copy() {
|
|
7494
|
-
return new
|
|
7495
|
+
return new La(this.o, this.h, this.container, this.iteratorType);
|
|
7495
7496
|
}
|
|
7496
7497
|
}, i = class extends e.HashContainer {
|
|
7497
7498
|
constructor(l = []) {
|
|
@@ -7552,7 +7553,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
7552
7553
|
}
|
|
7553
7554
|
}, s = i;
|
|
7554
7555
|
a.default = s;
|
|
7555
|
-
}),
|
|
7556
|
+
}), Dc = pe((a) => {
|
|
7556
7557
|
le(), ue(), ce(), Object.defineProperty(a, "t", { value: !0 }), Object.defineProperty(a, "Deque", { enumerable: !0, get: function() {
|
|
7557
7558
|
return i.default;
|
|
7558
7559
|
} }), Object.defineProperty(a, "HashMap", { enumerable: !0, get: function() {
|
|
@@ -7574,13 +7575,13 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
7574
7575
|
} }), Object.defineProperty(a, "Vector", { enumerable: !0, get: function() {
|
|
7575
7576
|
return o.default;
|
|
7576
7577
|
} });
|
|
7577
|
-
var e = h(
|
|
7578
|
+
var e = h(Tc()), t = h(Cc()), r = h(Oc()), o = h(Pc()), n = h(Mc()), i = h(Rc()), s = h(jc()), l = h(Nc()), c = h(Uc()), u = h(Bc());
|
|
7578
7579
|
function h(p) {
|
|
7579
7580
|
return p && p.t ? p : { default: p };
|
|
7580
7581
|
}
|
|
7581
|
-
}),
|
|
7582
|
+
}), Fc = pe((a, e) => {
|
|
7582
7583
|
le(), ue(), ce();
|
|
7583
|
-
var t =
|
|
7584
|
+
var t = Dc().OrderedSet, r = ht()("number-allocator:trace"), o = ht()("number-allocator:error");
|
|
7584
7585
|
function n(s, l) {
|
|
7585
7586
|
this.low = s, this.high = l;
|
|
7586
7587
|
}
|
|
@@ -7639,13 +7640,13 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
7639
7640
|
console.log("length:" + this.ss.size());
|
|
7640
7641
|
for (let s of this.ss) console.log(s);
|
|
7641
7642
|
}, e.exports = i;
|
|
7642
|
-
}),
|
|
7643
|
+
}), ja = pe((a, e) => {
|
|
7643
7644
|
le(), ue(), ce();
|
|
7644
|
-
var t =
|
|
7645
|
+
var t = Fc();
|
|
7645
7646
|
e.exports.NumberAllocator = t;
|
|
7646
|
-
}),
|
|
7647
|
+
}), $c = pe((a) => {
|
|
7647
7648
|
le(), ue(), ce(), Object.defineProperty(a, "__esModule", { value: !0 });
|
|
7648
|
-
var e =
|
|
7649
|
+
var e = Ic(), t = ja(), r = class {
|
|
7649
7650
|
aliasToTopic;
|
|
7650
7651
|
topicToAlias;
|
|
7651
7652
|
max;
|
|
@@ -7674,13 +7675,13 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
7674
7675
|
}
|
|
7675
7676
|
};
|
|
7676
7677
|
a.default = r;
|
|
7677
|
-
}),
|
|
7678
|
+
}), qc = pe((a) => {
|
|
7678
7679
|
le(), ue(), ce();
|
|
7679
7680
|
var e = a && a.__importDefault || function(i) {
|
|
7680
7681
|
return i && i.__esModule ? i : { default: i };
|
|
7681
7682
|
};
|
|
7682
7683
|
Object.defineProperty(a, "__esModule", { value: !0 });
|
|
7683
|
-
var t = qr(), r = e(
|
|
7684
|
+
var t = qr(), r = e($c()), o = qt(), n = (i, s) => {
|
|
7684
7685
|
i.log("_handleConnack");
|
|
7685
7686
|
let { options: l } = i, c = l.protocolVersion === 5 ? s.reasonCode : s.returnCode;
|
|
7686
7687
|
if (clearTimeout(i.connackTimer), delete i.topicAliasSend, s.properties) {
|
|
@@ -7700,7 +7701,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
7700
7701
|
}
|
|
7701
7702
|
};
|
|
7702
7703
|
a.default = n;
|
|
7703
|
-
}),
|
|
7704
|
+
}), Hc = pe((a) => {
|
|
7704
7705
|
le(), ue(), ce(), Object.defineProperty(a, "__esModule", { value: !0 });
|
|
7705
7706
|
var e = (t, r, o) => {
|
|
7706
7707
|
t.log("handling pubrel packet");
|
|
@@ -7713,13 +7714,13 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
7713
7714
|
});
|
|
7714
7715
|
};
|
|
7715
7716
|
a.default = e;
|
|
7716
|
-
}),
|
|
7717
|
+
}), Wc = pe((a) => {
|
|
7717
7718
|
le(), ue(), ce();
|
|
7718
7719
|
var e = a && a.__importDefault || function(l) {
|
|
7719
7720
|
return l && l.__esModule ? l : { default: l };
|
|
7720
7721
|
};
|
|
7721
7722
|
Object.defineProperty(a, "__esModule", { value: !0 });
|
|
7722
|
-
var t = e(
|
|
7723
|
+
var t = e(Sc()), r = e(Ac()), o = e(qc()), n = e(qr()), i = e(Hc()), s = (l, c, u) => {
|
|
7723
7724
|
let { options: h } = l;
|
|
7724
7725
|
if (h.protocolVersion === 5 && h.properties && h.properties.maximumPacketSize && h.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;
|
|
7725
7726
|
switch (l.log("_handlePacket :: emitting packetreceive"), l.emit("packetreceive", c), c.cmd) {
|
|
@@ -7754,7 +7755,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
7754
7755
|
}
|
|
7755
7756
|
};
|
|
7756
7757
|
a.default = s;
|
|
7757
|
-
}),
|
|
7758
|
+
}), Na = pe((a) => {
|
|
7758
7759
|
le(), ue(), ce(), Object.defineProperty(a, "__esModule", { value: !0 });
|
|
7759
7760
|
var e = class {
|
|
7760
7761
|
nextId;
|
|
@@ -7777,7 +7778,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
7777
7778
|
}
|
|
7778
7779
|
};
|
|
7779
7780
|
a.default = e;
|
|
7780
|
-
}),
|
|
7781
|
+
}), zc = pe((a) => {
|
|
7781
7782
|
le(), ue(), ce(), Object.defineProperty(a, "__esModule", { value: !0 });
|
|
7782
7783
|
var e = class {
|
|
7783
7784
|
aliasToTopic;
|
|
@@ -7797,7 +7798,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
7797
7798
|
}
|
|
7798
7799
|
};
|
|
7799
7800
|
a.default = e;
|
|
7800
|
-
}),
|
|
7801
|
+
}), Vc = pe((a) => {
|
|
7801
7802
|
le(), ue(), ce();
|
|
7802
7803
|
var e = a && a.__importDefault || function(n) {
|
|
7803
7804
|
return n && n.__esModule ? n : { default: n };
|
|
@@ -7817,7 +7818,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
7817
7818
|
}, e.exports.__esModule = !0, e.exports.default = e.exports, t(r);
|
|
7818
7819
|
}
|
|
7819
7820
|
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7820
|
-
}),
|
|
7821
|
+
}), Gc = pe((a, e) => {
|
|
7821
7822
|
le(), ue(), ce();
|
|
7822
7823
|
var t = Hr().default;
|
|
7823
7824
|
function r(o, n) {
|
|
@@ -7831,28 +7832,28 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
7831
7832
|
return (n === "string" ? String : Number)(o);
|
|
7832
7833
|
}
|
|
7833
7834
|
e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7834
|
-
}),
|
|
7835
|
+
}), Kc = pe((a, e) => {
|
|
7835
7836
|
le(), ue(), ce();
|
|
7836
|
-
var t = Hr().default, r =
|
|
7837
|
+
var t = Hr().default, r = Gc();
|
|
7837
7838
|
function o(n) {
|
|
7838
7839
|
var i = r(n, "string");
|
|
7839
7840
|
return t(i) == "symbol" ? i : i + "";
|
|
7840
7841
|
}
|
|
7841
7842
|
e.exports = o, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7842
|
-
}),
|
|
7843
|
+
}), Yc = pe((a, e) => {
|
|
7843
7844
|
le(), ue(), ce();
|
|
7844
|
-
var t =
|
|
7845
|
+
var t = Kc();
|
|
7845
7846
|
function r(o, n, i) {
|
|
7846
7847
|
return (n = t(n)) in o ? Object.defineProperty(o, n, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : o[n] = i, o;
|
|
7847
7848
|
}
|
|
7848
7849
|
e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7849
|
-
}),
|
|
7850
|
+
}), Qc = pe((a, e) => {
|
|
7850
7851
|
le(), ue(), ce();
|
|
7851
7852
|
function t(r) {
|
|
7852
7853
|
if (Array.isArray(r)) return r;
|
|
7853
7854
|
}
|
|
7854
7855
|
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7855
|
-
}),
|
|
7856
|
+
}), Jc = pe((a, e) => {
|
|
7856
7857
|
le(), ue(), ce();
|
|
7857
7858
|
function t(r, o) {
|
|
7858
7859
|
var n = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
|
|
@@ -7876,7 +7877,7 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
7876
7877
|
}
|
|
7877
7878
|
}
|
|
7878
7879
|
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7879
|
-
}),
|
|
7880
|
+
}), Xc = pe((a, e) => {
|
|
7880
7881
|
le(), ue(), ce();
|
|
7881
7882
|
function t(r, o) {
|
|
7882
7883
|
(o == null || o > r.length) && (o = r.length);
|
|
@@ -7884,9 +7885,9 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
7884
7885
|
return i;
|
|
7885
7886
|
}
|
|
7886
7887
|
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7887
|
-
}),
|
|
7888
|
+
}), Zc = pe((a, e) => {
|
|
7888
7889
|
le(), ue(), ce();
|
|
7889
|
-
var t =
|
|
7890
|
+
var t = Xc();
|
|
7890
7891
|
function r(o, n) {
|
|
7891
7892
|
if (o) {
|
|
7892
7893
|
if (typeof o == "string") return t(o, n);
|
|
@@ -7895,21 +7896,21 @@ var Qt, li, jt, na, ia, oa, sa, aa, la, Ct = Ve(() => {
|
|
|
7895
7896
|
}
|
|
7896
7897
|
}
|
|
7897
7898
|
e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7898
|
-
}),
|
|
7899
|
+
}), eu = pe((a, e) => {
|
|
7899
7900
|
le(), ue(), ce();
|
|
7900
7901
|
function t() {
|
|
7901
7902
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
7902
7903
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
7903
7904
|
}
|
|
7904
7905
|
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7905
|
-
}),
|
|
7906
|
+
}), tu = pe((a, e) => {
|
|
7906
7907
|
le(), ue(), ce();
|
|
7907
|
-
var t =
|
|
7908
|
+
var t = Qc(), r = Jc(), o = Zc(), n = eu();
|
|
7908
7909
|
function i(s, l) {
|
|
7909
7910
|
return t(s) || r(s, l) || o(s, l) || n();
|
|
7910
7911
|
}
|
|
7911
7912
|
e.exports = i, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7912
|
-
}),
|
|
7913
|
+
}), Ua = pe((a, e) => {
|
|
7913
7914
|
le(), ue(), ce(), (function(t, r) {
|
|
7914
7915
|
typeof a == "object" && typeof e < "u" ? r(a) : typeof define == "function" && define.amd ? define(["exports"], r) : (t = typeof globalThis < "u" ? globalThis : t || self, r(t.fastUniqueNumbers = {}));
|
|
7915
7916
|
})(a, function(t) {
|
|
@@ -7937,7 +7938,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7937
7938
|
}, c = /* @__PURE__ */ new WeakMap(), u = o(c), h = l(u, c), p = r(h);
|
|
7938
7939
|
t.addUniqueNumber = p, t.generateUniqueNumber = h;
|
|
7939
7940
|
});
|
|
7940
|
-
}),
|
|
7941
|
+
}), ru = pe((a, e) => {
|
|
7941
7942
|
le(), ue(), ce();
|
|
7942
7943
|
function t(o, n, i, s, l, c, u) {
|
|
7943
7944
|
try {
|
|
@@ -7963,13 +7964,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7963
7964
|
};
|
|
7964
7965
|
}
|
|
7965
7966
|
e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7966
|
-
}),
|
|
7967
|
+
}), Ba = pe((a, e) => {
|
|
7967
7968
|
le(), ue(), ce();
|
|
7968
7969
|
function t(r, o) {
|
|
7969
7970
|
this.v = r, this.k = o;
|
|
7970
7971
|
}
|
|
7971
7972
|
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7972
|
-
}),
|
|
7973
|
+
}), Da = pe((a, e) => {
|
|
7973
7974
|
le(), ue(), ce();
|
|
7974
7975
|
function t(r, o, n, i) {
|
|
7975
7976
|
var s = Object.defineProperty;
|
|
@@ -7988,9 +7989,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7988
7989
|
}, e.exports.__esModule = !0, e.exports.default = e.exports, t(r, o, n, i);
|
|
7989
7990
|
}
|
|
7990
7991
|
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7991
|
-
}),
|
|
7992
|
+
}), Fa = pe((a, e) => {
|
|
7992
7993
|
le(), ue(), ce();
|
|
7993
|
-
var t =
|
|
7994
|
+
var t = Da();
|
|
7994
7995
|
function r() {
|
|
7995
7996
|
var o, n, i = typeof Symbol == "function" ? Symbol : {}, s = i.iterator || "@@iterator", l = i.toStringTag || "@@toStringTag";
|
|
7996
7997
|
function c(w, m, _, x) {
|
|
@@ -8053,9 +8054,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8053
8054
|
}, e.exports.__esModule = !0, e.exports.default = e.exports)();
|
|
8054
8055
|
}
|
|
8055
8056
|
e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
8056
|
-
}),
|
|
8057
|
+
}), $a = pe((a, e) => {
|
|
8057
8058
|
le(), ue(), ce();
|
|
8058
|
-
var t =
|
|
8059
|
+
var t = Ba(), r = Da();
|
|
8059
8060
|
function o(n, i) {
|
|
8060
8061
|
function s(c, u, h, p) {
|
|
8061
8062
|
try {
|
|
@@ -8086,16 +8087,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8086
8087
|
}, !0);
|
|
8087
8088
|
}
|
|
8088
8089
|
e.exports = o, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
8089
|
-
}),
|
|
8090
|
+
}), qa = pe((a, e) => {
|
|
8090
8091
|
le(), ue(), ce();
|
|
8091
|
-
var t =
|
|
8092
|
+
var t = Fa(), r = $a();
|
|
8092
8093
|
function o(n, i, s, l, c) {
|
|
8093
8094
|
return new r(t().w(n, i, s, l), c || Promise);
|
|
8094
8095
|
}
|
|
8095
8096
|
e.exports = o, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
8096
|
-
}),
|
|
8097
|
+
}), nu = pe((a, e) => {
|
|
8097
8098
|
le(), ue(), ce();
|
|
8098
|
-
var t =
|
|
8099
|
+
var t = qa();
|
|
8099
8100
|
function r(o, n, i, s, l) {
|
|
8100
8101
|
var c = t(o, n, i, s, l);
|
|
8101
8102
|
return c.next().then(function(u) {
|
|
@@ -8103,7 +8104,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8103
8104
|
});
|
|
8104
8105
|
}
|
|
8105
8106
|
e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
8106
|
-
}),
|
|
8107
|
+
}), iu = pe((a, e) => {
|
|
8107
8108
|
le(), ue(), ce();
|
|
8108
8109
|
function t(r) {
|
|
8109
8110
|
var o = Object(r), n = [];
|
|
@@ -8114,7 +8115,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8114
8115
|
};
|
|
8115
8116
|
}
|
|
8116
8117
|
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
8117
|
-
}),
|
|
8118
|
+
}), ou = pe((a, e) => {
|
|
8118
8119
|
le(), ue(), ce();
|
|
8119
8120
|
var t = Hr().default;
|
|
8120
8121
|
function r(o) {
|
|
@@ -8129,9 +8130,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8129
8130
|
throw new TypeError(t(o) + " is not iterable");
|
|
8130
8131
|
}
|
|
8131
8132
|
e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
8132
|
-
}),
|
|
8133
|
+
}), su = pe((a, e) => {
|
|
8133
8134
|
le(), ue(), ce();
|
|
8134
|
-
var t =
|
|
8135
|
+
var t = Ba(), r = Fa(), o = nu(), n = qa(), i = $a(), s = iu(), l = ou();
|
|
8135
8136
|
function c() {
|
|
8136
8137
|
var u = r(), h = u.m(c), p = (Object.getPrototypeOf ? Object.getPrototypeOf(h) : h.__proto__).constructor;
|
|
8137
8138
|
function b(y) {
|
|
@@ -8178,18 +8179,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8178
8179
|
}, e.exports.__esModule = !0, e.exports.default = e.exports)();
|
|
8179
8180
|
}
|
|
8180
8181
|
e.exports = c, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
8181
|
-
}),
|
|
8182
|
+
}), au = pe((a, e) => {
|
|
8182
8183
|
le(), ue(), ce();
|
|
8183
|
-
var t =
|
|
8184
|
+
var t = su()();
|
|
8184
8185
|
e.exports = t;
|
|
8185
8186
|
try {
|
|
8186
8187
|
regeneratorRuntime = t;
|
|
8187
8188
|
} catch {
|
|
8188
8189
|
typeof globalThis == "object" ? globalThis.regeneratorRuntime = t : Function("r", "regeneratorRuntime = r")(t);
|
|
8189
8190
|
}
|
|
8190
|
-
}),
|
|
8191
|
+
}), lu = pe((a, e) => {
|
|
8191
8192
|
le(), ue(), ce(), (function(t, r) {
|
|
8192
|
-
typeof a == "object" && typeof e < "u" ? r(a,
|
|
8193
|
+
typeof a == "object" && typeof e < "u" ? r(a, Yc(), tu(), Ua(), ru(), au()) : 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
8194
|
})(a, function(t, r, o, n, i, s) {
|
|
8194
8195
|
var l = function(m) {
|
|
8195
8196
|
return typeof m.start == "function";
|
|
@@ -8318,9 +8319,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8318
8319
|
};
|
|
8319
8320
|
t.createBroker = w;
|
|
8320
8321
|
});
|
|
8321
|
-
}),
|
|
8322
|
+
}), cu = pe((a, e) => {
|
|
8322
8323
|
le(), ue(), ce(), (function(t, r) {
|
|
8323
|
-
typeof a == "object" && typeof e < "u" ? r(a, Hr(),
|
|
8324
|
+
typeof a == "object" && typeof e < "u" ? r(a, Hr(), lu(), Ua()) : 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
8325
|
})(a, function(t, r, o, n) {
|
|
8325
8326
|
var i = /* @__PURE__ */ new Map([[0, null]]), s = /* @__PURE__ */ new Map([[0, null]]), l = o.createBroker({ clearInterval: function(u) {
|
|
8326
8327
|
var h = u.call;
|
|
@@ -8368,9 +8369,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8368
8369
|
};
|
|
8369
8370
|
t.load = c, t.wrap = l;
|
|
8370
8371
|
});
|
|
8371
|
-
}),
|
|
8372
|
+
}), uu = pe((a, e) => {
|
|
8372
8373
|
le(), ue(), ce(), (function(t, r) {
|
|
8373
|
-
typeof a == "object" && typeof e < "u" ? r(a,
|
|
8374
|
+
typeof a == "object" && typeof e < "u" ? r(a, cu()) : typeof define == "function" && define.amd ? define(["exports", "worker-timers-broker"], r) : (t = typeof globalThis < "u" ? globalThis : t || self, r(t.workerTimers = {}, t.workerTimersBroker));
|
|
8374
8375
|
})(a, function(t, r) {
|
|
8375
8376
|
var o = function(h, p) {
|
|
8376
8377
|
var b = null;
|
|
@@ -8398,7 +8399,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8398
8399
|
le(), ue(), ce(), Object.defineProperty(a, "__esModule", { value: !0 }), a.isReactNativeBrowser = a.isWebWorker = void 0;
|
|
8399
8400
|
var e = () => typeof window < "u" ? typeof navigator < "u" && navigator.userAgent?.toLowerCase().indexOf(" electron/") > -1 && Re?.versions ? !Object.prototype.hasOwnProperty.call(Re.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();
|
|
8400
8401
|
a.isWebWorker = t(), a.isReactNativeBrowser = r(), a.default = o;
|
|
8401
|
-
}),
|
|
8402
|
+
}), hu = pe((a) => {
|
|
8402
8403
|
le(), ue(), ce();
|
|
8403
8404
|
var e = a && a.__createBinding || (Object.create ? function(c, u, h, p) {
|
|
8404
8405
|
p === void 0 && (p = h);
|
|
@@ -8428,7 +8429,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8428
8429
|
};
|
|
8429
8430
|
})();
|
|
8430
8431
|
Object.defineProperty(a, "__esModule", { value: !0 });
|
|
8431
|
-
var o =
|
|
8432
|
+
var o = uu(), n = r(Wr()), i = { set: o.setInterval, clear: o.clearInterval }, s = { set: (c, u) => setInterval(c, u), clear: (c) => clearInterval(c) }, l = (c) => {
|
|
8432
8433
|
switch (c) {
|
|
8433
8434
|
case "native":
|
|
8434
8435
|
return s;
|
|
@@ -8439,13 +8440,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8439
8440
|
}
|
|
8440
8441
|
};
|
|
8441
8442
|
a.default = l;
|
|
8442
|
-
}),
|
|
8443
|
+
}), Ha = pe((a) => {
|
|
8443
8444
|
le(), ue(), ce();
|
|
8444
8445
|
var e = a && a.__importDefault || function(o) {
|
|
8445
8446
|
return o && o.__esModule ? o : { default: o };
|
|
8446
8447
|
};
|
|
8447
8448
|
Object.defineProperty(a, "__esModule", { value: !0 });
|
|
8448
|
-
var t = e(
|
|
8449
|
+
var t = e(hu()), r = class {
|
|
8449
8450
|
_keepalive;
|
|
8450
8451
|
timerId;
|
|
8451
8452
|
timer;
|
|
@@ -8518,7 +8519,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8518
8519
|
return v && v.__esModule ? v : { default: v };
|
|
8519
8520
|
};
|
|
8520
8521
|
Object.defineProperty(a, "__esModule", { value: !0 });
|
|
8521
|
-
var n = o(
|
|
8522
|
+
var n = o(_c()), i = Pt(), s = o(xc()), l = o(ht()), c = r(ya()), u = o(va()), h = o(Wc()), p = o(Na()), b = o(zc()), f = qt(), g = Vc(), y = o(Ha()), w = r(Wr()), m = globalThis.setImmediate || ((...v) => {
|
|
8522
8523
|
let E = v.shift();
|
|
8523
8524
|
(0, f.nextTick)(() => {
|
|
8524
8525
|
E(...v);
|
|
@@ -9020,9 +9021,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9020
9021
|
}
|
|
9021
9022
|
};
|
|
9022
9023
|
a.default = x;
|
|
9023
|
-
}),
|
|
9024
|
+
}), du = pe((a) => {
|
|
9024
9025
|
le(), ue(), ce(), Object.defineProperty(a, "__esModule", { value: !0 });
|
|
9025
|
-
var e =
|
|
9026
|
+
var e = ja(), t = class {
|
|
9026
9027
|
numberAllocator;
|
|
9027
9028
|
lastId;
|
|
9028
9029
|
constructor() {
|
|
@@ -9046,7 +9047,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9046
9047
|
};
|
|
9047
9048
|
a.default = t;
|
|
9048
9049
|
});
|
|
9049
|
-
function
|
|
9050
|
+
function fu() {
|
|
9050
9051
|
if (di) return dr;
|
|
9051
9052
|
di = !0;
|
|
9052
9053
|
let a = 2147483647, e = 36, t = 1, r = 26, o = 38, n = 700, i = 72, s = 128, l = "-", c = /^xn--/, u = /[^\0-\x7F]/, h = /[\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" }, b = e - t, f = Math.floor, g = String.fromCharCode;
|
|
@@ -9137,10 +9138,10 @@ function du() {
|
|
|
9137
9138
|
});
|
|
9138
9139
|
} }, dr;
|
|
9139
9140
|
}
|
|
9140
|
-
var dr, di, yt,
|
|
9141
|
-
le(), ue(), ce(), dr = {}, di = !1, yt =
|
|
9141
|
+
var dr, di, yt, pu = Ve(() => {
|
|
9142
|
+
le(), ue(), ce(), dr = {}, di = !1, yt = fu(), yt.decode, yt.encode, yt.toASCII, yt.toUnicode, yt.ucs2, yt.version;
|
|
9142
9143
|
});
|
|
9143
|
-
function
|
|
9144
|
+
function mu() {
|
|
9144
9145
|
return pi || (pi = !0, fi = function() {
|
|
9145
9146
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function") return !1;
|
|
9146
9147
|
if (typeof Symbol.iterator == "symbol") return !0;
|
|
@@ -9159,36 +9160,36 @@ function pu() {
|
|
|
9159
9160
|
return !0;
|
|
9160
9161
|
}), fi;
|
|
9161
9162
|
}
|
|
9162
|
-
function
|
|
9163
|
+
function gu() {
|
|
9163
9164
|
return gi || (gi = !0, mi = Error), mi;
|
|
9164
9165
|
}
|
|
9165
|
-
function
|
|
9166
|
+
function bu() {
|
|
9166
9167
|
return yi || (yi = !0, bi = EvalError), bi;
|
|
9167
9168
|
}
|
|
9168
|
-
function
|
|
9169
|
+
function yu() {
|
|
9169
9170
|
return wi || (wi = !0, vi = RangeError), vi;
|
|
9170
9171
|
}
|
|
9171
|
-
function
|
|
9172
|
+
function vu() {
|
|
9172
9173
|
return ki || (ki = !0, _i = ReferenceError), _i;
|
|
9173
9174
|
}
|
|
9174
|
-
function
|
|
9175
|
+
function Wa() {
|
|
9175
9176
|
return Si || (Si = !0, xi = SyntaxError), xi;
|
|
9176
9177
|
}
|
|
9177
9178
|
function rr() {
|
|
9178
9179
|
return Ai || (Ai = !0, Ei = TypeError), Ei;
|
|
9179
9180
|
}
|
|
9180
|
-
function
|
|
9181
|
+
function wu() {
|
|
9181
9182
|
return Ti || (Ti = !0, Ii = URIError), Ii;
|
|
9182
9183
|
}
|
|
9183
|
-
function
|
|
9184
|
+
function _u() {
|
|
9184
9185
|
if (Ci) return fr;
|
|
9185
9186
|
Ci = !0;
|
|
9186
|
-
var a = typeof Symbol < "u" && Symbol, e =
|
|
9187
|
+
var a = typeof Symbol < "u" && Symbol, e = mu();
|
|
9187
9188
|
return fr = function() {
|
|
9188
9189
|
return typeof a != "function" || typeof Symbol != "function" || typeof a("foo") != "symbol" || typeof /* @__PURE__ */ Symbol("bar") != "symbol" ? !1 : e();
|
|
9189
9190
|
}, fr;
|
|
9190
9191
|
}
|
|
9191
|
-
function
|
|
9192
|
+
function ku() {
|
|
9192
9193
|
if (Oi) return pr;
|
|
9193
9194
|
Oi = !0;
|
|
9194
9195
|
var a = { __proto__: null, foo: {} }, e = Object;
|
|
@@ -9196,7 +9197,7 @@ function _u() {
|
|
|
9196
9197
|
return { __proto__: a }.foo === a.foo && !(a instanceof e);
|
|
9197
9198
|
}, pr;
|
|
9198
9199
|
}
|
|
9199
|
-
function
|
|
9200
|
+
function xu() {
|
|
9200
9201
|
if (Pi) return mr;
|
|
9201
9202
|
Pi = !0;
|
|
9202
9203
|
var a = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, t = Math.max, r = "[object Function]", o = function(s, l) {
|
|
@@ -9231,10 +9232,10 @@ function ku() {
|
|
|
9231
9232
|
function lo() {
|
|
9232
9233
|
if (Mi) return gr;
|
|
9233
9234
|
Mi = !0;
|
|
9234
|
-
var a =
|
|
9235
|
+
var a = xu();
|
|
9235
9236
|
return gr = Function.prototype.bind || a, gr;
|
|
9236
9237
|
}
|
|
9237
|
-
function
|
|
9238
|
+
function Su() {
|
|
9238
9239
|
if (Ri) return br;
|
|
9239
9240
|
Ri = !0;
|
|
9240
9241
|
var a = Function.prototype.call, e = Object.prototype.hasOwnProperty, t = lo();
|
|
@@ -9243,7 +9244,7 @@ function xu() {
|
|
|
9243
9244
|
function Ht() {
|
|
9244
9245
|
if (Li) return yr;
|
|
9245
9246
|
Li = !0;
|
|
9246
|
-
var a, e =
|
|
9247
|
+
var a, e = gu(), t = bu(), r = yu(), o = vu(), n = Wa(), i = rr(), s = wu(), l = Function, c = function(Y) {
|
|
9247
9248
|
try {
|
|
9248
9249
|
return l('"use strict"; return (' + Y + ").constructor;")();
|
|
9249
9250
|
} catch {
|
|
@@ -9266,7 +9267,7 @@ function Ht() {
|
|
|
9266
9267
|
return h;
|
|
9267
9268
|
}
|
|
9268
9269
|
}
|
|
9269
|
-
})() : h, b =
|
|
9270
|
+
})() : h, b = _u()(), f = ku()(), g = Object.getPrototypeOf || (f ? function(Y) {
|
|
9270
9271
|
return Y.__proto__;
|
|
9271
9272
|
} : null), y = {}, w = typeof Uint8Array > "u" || !g ? a : g(Uint8Array), m = { __proto__: null, "%AggregateError%": typeof AggregateError > "u" ? a : AggregateError, "%Array%": Array, "%ArrayBuffer%": typeof ArrayBuffer > "u" ? a : ArrayBuffer, "%ArrayIteratorPrototype%": b && g ? g([][Symbol.iterator]()) : a, "%AsyncFromSyncIteratorPrototype%": a, "%AsyncFunction%": y, "%AsyncGenerator%": y, "%AsyncGeneratorFunction%": y, "%AsyncIteratorPrototype%": y, "%Atomics%": typeof Atomics > "u" ? a : Atomics, "%BigInt%": typeof BigInt > "u" ? a : BigInt, "%BigInt64Array%": typeof BigInt64Array > "u" ? a : BigInt64Array, "%BigUint64Array%": typeof BigUint64Array > "u" ? a : BigUint64Array, "%Boolean%": Boolean, "%DataView%": typeof DataView > "u" ? a : DataView, "%Date%": Date, "%decodeURI%": decodeURI, "%decodeURIComponent%": decodeURIComponent, "%encodeURI%": encodeURI, "%encodeURIComponent%": encodeURIComponent, "%Error%": e, "%eval%": eval, "%EvalError%": t, "%Float32Array%": typeof Float32Array > "u" ? a : Float32Array, "%Float64Array%": typeof Float64Array > "u" ? a : Float64Array, "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? a : FinalizationRegistry, "%Function%": l, "%GeneratorFunction%": y, "%Int8Array%": typeof Int8Array > "u" ? a : Int8Array, "%Int16Array%": typeof Int16Array > "u" ? a : Int16Array, "%Int32Array%": typeof Int32Array > "u" ? a : Int32Array, "%isFinite%": isFinite, "%isNaN%": isNaN, "%IteratorPrototype%": b && g ? g(g([][Symbol.iterator]())) : a, "%JSON%": typeof JSON == "object" ? JSON : a, "%Map%": typeof Map > "u" ? a : Map, "%MapIteratorPrototype%": typeof Map > "u" || !b || !g ? a : g((/* @__PURE__ */ new Map())[Symbol.iterator]()), "%Math%": Math, "%Number%": Number, "%Object%": Object, "%parseFloat%": parseFloat, "%parseInt%": parseInt, "%Promise%": typeof Promise > "u" ? a : Promise, "%Proxy%": typeof Proxy > "u" ? a : Proxy, "%RangeError%": r, "%ReferenceError%": o, "%Reflect%": typeof Reflect > "u" ? a : Reflect, "%RegExp%": RegExp, "%Set%": typeof Set > "u" ? a : Set, "%SetIteratorPrototype%": typeof Set > "u" || !b || !g ? a : g((/* @__PURE__ */ new Set())[Symbol.iterator]()), "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? a : SharedArrayBuffer, "%String%": String, "%StringIteratorPrototype%": b && g ? g(""[Symbol.iterator]()) : a, "%Symbol%": b ? Symbol : a, "%SyntaxError%": n, "%ThrowTypeError%": p, "%TypedArray%": w, "%TypeError%": i, "%Uint8Array%": typeof Uint8Array > "u" ? a : Uint8Array, "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? a : Uint8ClampedArray, "%Uint16Array%": typeof Uint16Array > "u" ? a : Uint16Array, "%Uint32Array%": typeof Uint32Array > "u" ? a : Uint32Array, "%URIError%": s, "%WeakMap%": typeof WeakMap > "u" ? a : WeakMap, "%WeakRef%": typeof WeakRef > "u" ? a : WeakRef, "%WeakSet%": typeof WeakSet > "u" ? a : WeakSet };
|
|
9272
9273
|
if (g) try {
|
|
@@ -9288,7 +9289,7 @@ function Ht() {
|
|
|
9288
9289
|
Z && g && (re = g(Z.prototype));
|
|
9289
9290
|
}
|
|
9290
9291
|
return m[V] = re, re;
|
|
9291
|
-
}, 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"] }, E = lo(), S =
|
|
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"] }, E = lo(), S = Su(), I = E.call(Function.call, Array.prototype.concat), O = E.call(Function.apply, Array.prototype.splice), P = E.call(Function.call, String.prototype.replace), N = E.call(Function.call, String.prototype.slice), T = E.call(Function.call, RegExp.prototype.exec), q = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, D = /\\(\\)?/g, U = function(Y) {
|
|
9292
9293
|
var V = N(Y, 0, 1), re = N(Y, -1);
|
|
9293
9294
|
if (V === "%" && re !== "%") throw new n("invalid intrinsic syntax, expected closing `%`");
|
|
9294
9295
|
if (re === "%" && V !== "%") throw new n("invalid intrinsic syntax, expected opening `%`");
|
|
@@ -9341,7 +9342,7 @@ function co() {
|
|
|
9341
9342
|
}
|
|
9342
9343
|
return vr = e, vr;
|
|
9343
9344
|
}
|
|
9344
|
-
function
|
|
9345
|
+
function za() {
|
|
9345
9346
|
if (Ni) return wr;
|
|
9346
9347
|
Ni = !0;
|
|
9347
9348
|
var a = Ht(), e = a("%Object.getOwnPropertyDescriptor%", !0);
|
|
@@ -9352,10 +9353,10 @@ function Wa() {
|
|
|
9352
9353
|
}
|
|
9353
9354
|
return wr = e, wr;
|
|
9354
9355
|
}
|
|
9355
|
-
function
|
|
9356
|
+
function Eu() {
|
|
9356
9357
|
if (Ui) return _r;
|
|
9357
9358
|
Ui = !0;
|
|
9358
|
-
var a = co(), e =
|
|
9359
|
+
var a = co(), e = Wa(), t = rr(), r = za();
|
|
9359
9360
|
return _r = function(o, n, i) {
|
|
9360
9361
|
if (!o || typeof o != "object" && typeof o != "function") throw new t("`obj` must be an object or a function`");
|
|
9361
9362
|
if (typeof n != "string" && typeof n != "symbol") throw new t("`property` must be a string or a symbol`");
|
|
@@ -9369,7 +9370,7 @@ function Su() {
|
|
|
9369
9370
|
else throw new e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
9370
9371
|
}, _r;
|
|
9371
9372
|
}
|
|
9372
|
-
function
|
|
9373
|
+
function Au() {
|
|
9373
9374
|
if (Bi) return kr;
|
|
9374
9375
|
Bi = !0;
|
|
9375
9376
|
var a = co(), e = function() {
|
|
@@ -9384,10 +9385,10 @@ function Eu() {
|
|
|
9384
9385
|
}
|
|
9385
9386
|
}, kr = e, kr;
|
|
9386
9387
|
}
|
|
9387
|
-
function
|
|
9388
|
+
function Iu() {
|
|
9388
9389
|
if (Di) return xr;
|
|
9389
9390
|
Di = !0;
|
|
9390
|
-
var a = Ht(), e =
|
|
9391
|
+
var a = Ht(), e = Eu(), t = Au()(), r = za(), o = rr(), n = a("%Math.floor%");
|
|
9391
9392
|
return xr = function(i, s) {
|
|
9392
9393
|
if (typeof i != "function") throw new o("`fn` is not a function");
|
|
9393
9394
|
if (typeof s != "number" || s < 0 || s > 4294967295 || n(s) !== s) throw new o("`length` must be a positive 32-bit integer");
|
|
@@ -9399,10 +9400,10 @@ function Au() {
|
|
|
9399
9400
|
return (c || u || !l) && (t ? e(i, "length", s, !0, !0) : e(i, "length", s)), i;
|
|
9400
9401
|
}, xr;
|
|
9401
9402
|
}
|
|
9402
|
-
function
|
|
9403
|
+
function Tu() {
|
|
9403
9404
|
if (Fi) return Nt;
|
|
9404
9405
|
Fi = !0;
|
|
9405
|
-
var a = lo(), e = Ht(), t =
|
|
9406
|
+
var a = lo(), e = Ht(), t = Iu(), r = rr(), o = e("%Function.prototype.apply%"), n = e("%Function.prototype.call%"), i = e("%Reflect.apply%", !0) || a.call(n, o), s = co(), l = e("%Math.max%");
|
|
9406
9407
|
Nt = function(u) {
|
|
9407
9408
|
if (typeof u != "function") throw new r("a function is required");
|
|
9408
9409
|
var h = i(a, n, arguments);
|
|
@@ -9413,27 +9414,27 @@ function Iu() {
|
|
|
9413
9414
|
};
|
|
9414
9415
|
return s ? s(Nt, "apply", { value: c }) : Nt.apply = c, Nt;
|
|
9415
9416
|
}
|
|
9416
|
-
function
|
|
9417
|
+
function Cu() {
|
|
9417
9418
|
if ($i) return Sr;
|
|
9418
9419
|
$i = !0;
|
|
9419
|
-
var a = Ht(), e =
|
|
9420
|
+
var a = Ht(), e = Tu(), t = e(a("String.prototype.indexOf"));
|
|
9420
9421
|
return Sr = function(r, o) {
|
|
9421
9422
|
var n = a(r, !!o);
|
|
9422
9423
|
return typeof n == "function" && t(r, ".prototype.") > -1 ? e(n) : n;
|
|
9423
9424
|
}, Sr;
|
|
9424
9425
|
}
|
|
9425
|
-
var fi, pi, mi, gi, bi, yi, vi, wi, _i, ki, xi, Si, Ei, Ai, Ii, Ti, fr, Ci, pr, Oi, mr, Pi, gr, Mi, br, Ri, yr, Li, vr, ji, wr, Ni, _r, Ui, kr, Bi, xr, Di, Nt, Fi, Sr, $i,
|
|
9426
|
+
var fi, pi, mi, gi, bi, yi, vi, wi, _i, ki, xi, Si, Ei, Ai, Ii, Ti, fr, Ci, pr, Oi, mr, Pi, gr, Mi, br, Ri, yr, Li, vr, ji, wr, Ni, _r, Ui, kr, Bi, xr, Di, Nt, Fi, Sr, $i, Ou = Ve(() => {
|
|
9426
9427
|
le(), ue(), ce(), fi = {}, pi = !1, mi = {}, gi = !1, bi = {}, yi = !1, vi = {}, wi = !1, _i = {}, ki = !1, xi = {}, Si = !1, Ei = {}, Ai = !1, Ii = {}, Ti = !1, fr = {}, Ci = !1, pr = {}, Oi = !1, mr = {}, Pi = !1, gr = {}, Mi = !1, br = {}, Ri = !1, yr = {}, Li = !1, vr = {}, ji = !1, wr = {}, Ni = !1, _r = {}, Ui = !1, kr = {}, Bi = !1, xr = {}, Di = !1, Nt = {}, Fi = !1, Sr = {}, $i = !1;
|
|
9427
9428
|
});
|
|
9428
9429
|
function uo(a) {
|
|
9429
9430
|
throw new Error("Node.js process " + a + " is not supported by JSPM core outside of Node.js");
|
|
9430
9431
|
}
|
|
9431
|
-
function
|
|
9432
|
-
!Tt || !At || (Tt = !1, At.length ? it = At.concat(it) : Zt = -1, it.length &&
|
|
9432
|
+
function Pu() {
|
|
9433
|
+
!Tt || !At || (Tt = !1, At.length ? it = At.concat(it) : Zt = -1, it.length && Va());
|
|
9433
9434
|
}
|
|
9434
|
-
function
|
|
9435
|
+
function Va() {
|
|
9435
9436
|
if (!Tt) {
|
|
9436
|
-
var a = setTimeout(
|
|
9437
|
+
var a = setTimeout(Pu, 0);
|
|
9437
9438
|
Tt = !0;
|
|
9438
9439
|
for (var e = it.length; e; ) {
|
|
9439
9440
|
for (At = it, it = []; ++Zt < e; ) At && At[Zt].run();
|
|
@@ -9442,35 +9443,35 @@ function za() {
|
|
|
9442
9443
|
At = null, Tt = !1, clearTimeout(a);
|
|
9443
9444
|
}
|
|
9444
9445
|
}
|
|
9445
|
-
function
|
|
9446
|
+
function Mu(a) {
|
|
9446
9447
|
var e = new Array(arguments.length - 1);
|
|
9447
9448
|
if (arguments.length > 1) for (var t = 1; t < arguments.length; t++) e[t - 1] = arguments[t];
|
|
9448
|
-
it.push(new
|
|
9449
|
+
it.push(new Ga(a, e)), it.length === 1 && !Tt && setTimeout(Va, 0);
|
|
9449
9450
|
}
|
|
9450
|
-
function
|
|
9451
|
+
function Ga(a, e) {
|
|
9451
9452
|
this.fun = a, this.array = e;
|
|
9452
9453
|
}
|
|
9453
9454
|
function $e() {
|
|
9454
9455
|
}
|
|
9455
|
-
function
|
|
9456
|
+
function Ru(a) {
|
|
9456
9457
|
uo("_linkedBinding");
|
|
9457
9458
|
}
|
|
9458
|
-
function
|
|
9459
|
+
function Lu(a) {
|
|
9459
9460
|
uo("dlopen");
|
|
9460
9461
|
}
|
|
9461
|
-
function
|
|
9462
|
+
function ju() {
|
|
9462
9463
|
return [];
|
|
9463
9464
|
}
|
|
9464
|
-
function
|
|
9465
|
+
function Nu() {
|
|
9465
9466
|
return [];
|
|
9466
9467
|
}
|
|
9467
|
-
function
|
|
9468
|
+
function Uu(a, e) {
|
|
9468
9469
|
if (!a) throw new Error(e || "assertion error");
|
|
9469
9470
|
}
|
|
9470
|
-
function
|
|
9471
|
+
function Bu() {
|
|
9471
9472
|
return !1;
|
|
9472
9473
|
}
|
|
9473
|
-
function
|
|
9474
|
+
function Du() {
|
|
9474
9475
|
return ct.now() / 1e3;
|
|
9475
9476
|
}
|
|
9476
9477
|
function Gr(a) {
|
|
@@ -9480,11 +9481,11 @@ function Gr(a) {
|
|
|
9480
9481
|
function gt() {
|
|
9481
9482
|
return ho;
|
|
9482
9483
|
}
|
|
9483
|
-
function
|
|
9484
|
+
function Fu(a) {
|
|
9484
9485
|
return [];
|
|
9485
9486
|
}
|
|
9486
|
-
var it, Tt, At, Zt, xo, So, Eo, Ao, Io, To, Co, Oo, Po, Mo, Ro, Lo, jo, No, Uo, Bo, Do, Fo, $o, qo, Ho, or, Wo, zo, Vo, Go, Ko, Yo, Qo, Jo, Xo, Zo, es, ts, rs, ns, is, os, ss, as, ls, cs, us, hs, ds, fs, ps, ct, Kr, Er, ms, gs, bs, ys, vs, ws, _s, ks, xs, Ss, Es, ho,
|
|
9487
|
-
le(), ue(), ce(), it = [], Tt = !1, Zt = -1,
|
|
9487
|
+
var it, Tt, At, Zt, xo, So, Eo, Ao, Io, To, Co, Oo, Po, Mo, Ro, Lo, jo, No, Uo, Bo, Do, Fo, $o, qo, Ho, or, Wo, zo, Vo, Go, Ko, Yo, Qo, Jo, Xo, Zo, es, ts, rs, ns, is, os, ss, as, ls, cs, us, hs, ds, fs, ps, ct, Kr, Er, ms, gs, bs, ys, vs, ws, _s, ks, xs, Ss, Es, ho, Ka = Ve(() => {
|
|
9488
|
+
le(), ue(), ce(), it = [], Tt = !1, Zt = -1, Ga.prototype.run = function() {
|
|
9488
9489
|
this.fun.apply(null, this.array);
|
|
9489
9490
|
}, xo = "browser", So = "x64", Eo = "browser", Ao = { PATH: "/usr/bin", LANG: navigator.language + ".UTF-8", PWD: "/", HOME: "/home", TMP: "/tmp" }, Io = ["/usr/bin/node"], To = [], Co = "v16.8.0", Oo = {}, Po = function(a, e) {
|
|
9490
9491
|
console.warn((e ? e + ": " : "") + a);
|
|
@@ -9500,9 +9501,9 @@ var it, Tt, At, Zt, xo, So, Eo, Ao, Io, To, Co, Oo, Po, Mo, Ro, Lo, jo, No, Uo,
|
|
|
9500
9501
|
}, Wo = or, zo = or, Vo = $e, Go = $e, Ko = $e, Yo = {}, Qo = { inspector: !1, debug: !1, uv: !1, ipv6: !1, tls_alpn: !1, tls_sni: !1, tls_ocsp: !1, tls: !1, cached_builtins: !0 }, Jo = $e, Xo = $e, Zo = $e, es = $e, ts = $e, rs = $e, ns = $e, is = void 0, os = void 0, ss = void 0, as = $e, ls = 2, cs = 1, us = "/bin/usr/node", hs = 9229, ds = "node", fs = [], ps = $e, ct = { now: typeof performance < "u" ? performance.now.bind(performance) : void 0, timing: typeof performance < "u" ? performance.timing : void 0 }, ct.now === void 0 && (Kr = Date.now(), ct.timing && ct.timing.navigationStart && (Kr = ct.timing.navigationStart), ct.now = () => Date.now() - Kr), Er = 1e9, Gr.bigint = function(a) {
|
|
9501
9502
|
var e = Gr(a);
|
|
9502
9503
|
return typeof BigInt > "u" ? e[0] * Er + e[1] : BigInt(e[0] * Er) + BigInt(e[1]);
|
|
9503
|
-
}, ms = 10, gs = {}, bs = 0, ys = gt, vs = gt, ws = gt, _s = gt, ks = gt, xs = $e, Ss = gt, Es = gt, ho = { version: Co, versions: Oo, arch: So, platform: Eo, release: No, _rawDebug: Uo, moduleLoadList: Bo, binding: Mo, _linkedBinding:
|
|
9504
|
+
}, ms = 10, gs = {}, bs = 0, ys = gt, vs = gt, ws = gt, _s = gt, ks = gt, xs = $e, Ss = gt, Es = gt, ho = { version: Co, versions: Oo, arch: So, platform: Eo, release: No, _rawDebug: Uo, moduleLoadList: Bo, binding: Mo, _linkedBinding: Ru, _events: gs, _eventsCount: bs, _maxListeners: ms, on: gt, addListener: ys, once: vs, off: ws, removeListener: _s, removeAllListeners: ks, emit: xs, prependListener: Ss, prependOnceListener: Es, listeners: Fu, domain: Do, _exiting: Fo, config: $o, dlopen: Lu, uptime: Du, _getActiveRequests: ju, _getActiveHandles: Nu, reallyExit: qo, _kill: Ho, cpuUsage: or, resourceUsage: Wo, memoryUsage: zo, kill: Vo, exit: Go, openStdin: Ko, allowedNodeEnvironmentFlags: Yo, assert: Uu, features: Qo, _fatalExceptions: Jo, setUncaughtExceptionCaptureCallback: Xo, hasUncaughtExceptionCaptureCallback: Bu, emitWarning: Po, nextTick: Mu, _tickCallback: Zo, _debugProcess: es, _debugEnd: ts, _startProfilerIdleNotifier: rs, _stopProfilerIdleNotifier: ns, stdout: is, stdin: ss, stderr: os, abort: as, umask: Ro, chdir: jo, cwd: Lo, env: Ao, title: xo, argv: Io, execArgv: To, pid: ls, ppid: cs, execPath: us, debugPort: hs, hrtime: Gr, argv0: ds, _preload_modules: fs, setSourceMapsEnabled: ps };
|
|
9504
9505
|
});
|
|
9505
|
-
function
|
|
9506
|
+
function $u() {
|
|
9506
9507
|
if (qi) return Ar;
|
|
9507
9508
|
qi = !0;
|
|
9508
9509
|
var a = ho;
|
|
@@ -9653,11 +9654,11 @@ function Fu() {
|
|
|
9653
9654
|
}, sep: "/", delimiter: ":", win32: null, posix: null };
|
|
9654
9655
|
return o.posix = o, Ar = o, Ar;
|
|
9655
9656
|
}
|
|
9656
|
-
var Ar, qi, Hi,
|
|
9657
|
-
le(), ue(), ce(),
|
|
9658
|
-
}),
|
|
9659
|
-
Ft(
|
|
9660
|
-
function
|
|
9657
|
+
var Ar, qi, Hi, qu = Ve(() => {
|
|
9658
|
+
le(), ue(), ce(), Ka(), Ar = {}, qi = !1, Hi = $u();
|
|
9659
|
+
}), Ya = {};
|
|
9660
|
+
Ft(Ya, { URL: () => ol, Url: () => el, default: () => qe, fileURLToPath: () => Ja, format: () => tl, parse: () => il, pathToFileURL: () => Xa, resolve: () => rl, resolveObject: () => nl });
|
|
9661
|
+
function Hu() {
|
|
9661
9662
|
if (Wi) return Ir;
|
|
9662
9663
|
Wi = !0;
|
|
9663
9664
|
var a = typeof Map == "function" && Map.prototype, e = Object.getOwnPropertyDescriptor && a ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = a && e && typeof e.get == "function" ? e.get : null, r = a && Map.prototype.forEach, o = typeof Set == "function" && Set.prototype, n = Object.getOwnPropertyDescriptor && o ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, i = o && n && typeof n.get == "function" ? n.get : null, s = o && Set.prototype.forEach, l = typeof WeakMap == "function" && WeakMap.prototype, c = l ? WeakMap.prototype.has : null, u = typeof WeakSet == "function" && WeakSet.prototype, h = u ? WeakSet.prototype.has : null, p = typeof WeakRef == "function" && WeakRef.prototype, b = p ? WeakRef.prototype.deref : null, f = Boolean.prototype.valueOf, g = 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, E = RegExp.prototype.test, S = Array.prototype.concat, I = Array.prototype.join, O = Array.prototype.slice, P = Math.floor, N = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, T = Object.getOwnPropertySymbols, q = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, D = typeof Symbol == "function" && typeof Symbol.iterator == "object", U = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === D || !0) ? Symbol.toStringTag : null, ae = Object.prototype.propertyIsEnumerable, Y = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(z) {
|
|
@@ -9675,7 +9676,7 @@ function qu() {
|
|
|
9675
9676
|
}
|
|
9676
9677
|
return _.call(ie, Ee, "$&_");
|
|
9677
9678
|
}
|
|
9678
|
-
var re =
|
|
9679
|
+
var re = Za, F = re.custom, Z = K(F) ? F : null;
|
|
9679
9680
|
Ir = function z(ie, Ee, Ae, Ie) {
|
|
9680
9681
|
var Ce = Ee || {};
|
|
9681
9682
|
if (oe(Ce, "quoteStyle") && Ce.quoteStyle !== "single" && Ce.quoteStyle !== "double") throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
@@ -9952,10 +9953,10 @@ function qu() {
|
|
|
9952
9953
|
}
|
|
9953
9954
|
return Ir;
|
|
9954
9955
|
}
|
|
9955
|
-
function
|
|
9956
|
+
function Wu() {
|
|
9956
9957
|
if (zi) return Cr;
|
|
9957
9958
|
zi = !0;
|
|
9958
|
-
var a = Ht(), e =
|
|
9959
|
+
var a = Ht(), e = Cu(), t = Hu(), r = rr(), o = a("%WeakMap%", !0), n = a("%Map%", !0), i = e("WeakMap.prototype.get", !0), s = e("WeakMap.prototype.set", !0), l = e("WeakMap.prototype.has", !0), c = e("Map.prototype.get", !0), u = e("Map.prototype.set", !0), h = e("Map.prototype.has", !0), p = function(y, w) {
|
|
9959
9960
|
for (var m = y, _; (_ = m.next) !== null; m = _) if (_.key === w) return m.next = _.next, _.next = y.next, y.next = _, _;
|
|
9960
9961
|
}, b = function(y, w) {
|
|
9961
9962
|
var m = p(y, w);
|
|
@@ -9998,7 +9999,7 @@ function fo() {
|
|
|
9998
9999
|
return String(r);
|
|
9999
10000
|
} }, RFC1738: t.RFC1738, RFC3986: t.RFC3986 }, Or;
|
|
10000
10001
|
}
|
|
10001
|
-
function
|
|
10002
|
+
function Qa() {
|
|
10002
10003
|
if (Gi) return Pr;
|
|
10003
10004
|
Gi = !0;
|
|
10004
10005
|
var a = fo(), e = Object.prototype.hasOwnProperty, t = Array.isArray, r = (function() {
|
|
@@ -10097,10 +10098,10 @@ function Ya() {
|
|
|
10097
10098
|
};
|
|
10098
10099
|
return Pr = { arrayToObject: n, assign: s, combine: f, compact: h, decode: l, encode: u, isBuffer: b, isRegExp: p, maybeMap: g, merge: i }, Pr;
|
|
10099
10100
|
}
|
|
10100
|
-
function
|
|
10101
|
+
function zu() {
|
|
10101
10102
|
if (Ki) return Mr;
|
|
10102
10103
|
Ki = !0;
|
|
10103
|
-
var a =
|
|
10104
|
+
var a = Wu(), e = Qa(), t = fo(), r = Object.prototype.hasOwnProperty, o = { brackets: function(g) {
|
|
10104
10105
|
return g + "[]";
|
|
10105
10106
|
}, comma: "comma", indices: function(g, y) {
|
|
10106
10107
|
return g + "[" + y + "]";
|
|
@@ -10189,10 +10190,10 @@ function Wu() {
|
|
|
10189
10190
|
return m.charsetSentinel && (m.charset === "iso-8859-1" ? T += "utf8=%26%2310003%3B&" : T += "utf8=%E2%9C%93&"), N.length > 0 ? T + N : "";
|
|
10190
10191
|
}, Mr;
|
|
10191
10192
|
}
|
|
10192
|
-
function
|
|
10193
|
+
function Vu() {
|
|
10193
10194
|
if (Yi) return Rr;
|
|
10194
10195
|
Yi = !0;
|
|
10195
|
-
var a =
|
|
10196
|
+
var a = Qa(), 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: a.decode, delimiter: "&", depth: 5, duplicates: "combine", ignoreQueryPrefix: !1, interpretNumericEntities: !1, parameterLimit: 1e3, parseArrays: !0, plainObjects: !1, strictDepth: !1, strictNullHandling: !1 }, o = function(p) {
|
|
10196
10197
|
return p.replace(/&#(\d+);/g, function(b, f) {
|
|
10197
10198
|
return String.fromCharCode(parseInt(f, 10));
|
|
10198
10199
|
});
|
|
@@ -10262,13 +10263,13 @@ function zu() {
|
|
|
10262
10263
|
return f.allowSparse === !0 ? y : a.compact(y);
|
|
10263
10264
|
}, Rr;
|
|
10264
10265
|
}
|
|
10265
|
-
function
|
|
10266
|
+
function Gu() {
|
|
10266
10267
|
if (Qi) return Lr;
|
|
10267
10268
|
Qi = !0;
|
|
10268
|
-
var a =
|
|
10269
|
+
var a = zu(), e = Vu(), t = fo();
|
|
10269
10270
|
return Lr = { formats: t, parse: e, stringify: a }, Lr;
|
|
10270
10271
|
}
|
|
10271
|
-
function
|
|
10272
|
+
function Ku() {
|
|
10272
10273
|
if (Ji) return vt;
|
|
10273
10274
|
Ji = !0;
|
|
10274
10275
|
var a = yt;
|
|
@@ -10276,7 +10277,7 @@ function Gu() {
|
|
|
10276
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;
|
|
10277
10278
|
}
|
|
10278
10279
|
var t = /^([a-z0-9.+-]+:)/i, r = /:[0-9]*$/, o = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/, n = ["<", ">", '"', "`", " ", "\r", `
|
|
10279
|
-
`, " "], i = ["{", "}", "|", "\\", "^", "`"].concat(n), s = ["'"].concat(i), l = ["%", "/", "?", ";", "#"].concat(s), c = ["/", "?", "#"], u = 255, h = /^[+a-z0-9A-Z_-]{0,63}$/, p = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, b = { javascript: !0, "javascript:": !0 }, f = { javascript: !0, "javascript:": !0 }, g = { http: !0, https: !0, ftp: !0, gopher: !0, file: !0, "http:": !0, "https:": !0, "ftp:": !0, "gopher:": !0, "file:": !0 }, y =
|
|
10280
|
+
`, " "], i = ["{", "}", "|", "\\", "^", "`"].concat(n), s = ["'"].concat(i), l = ["%", "/", "?", ";", "#"].concat(s), c = ["/", "?", "#"], u = 255, h = /^[+a-z0-9A-Z_-]{0,63}$/, p = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, b = { javascript: !0, "javascript:": !0 }, f = { javascript: !0, "javascript:": !0 }, g = { http: !0, https: !0, ftp: !0, gopher: !0, file: !0, "http:": !0, "https:": !0, "ftp:": !0, "gopher:": !0, "file:": !0 }, y = Gu();
|
|
10280
10281
|
function w(v, E, S) {
|
|
10281
10282
|
if (v && typeof v == "object" && v instanceof e) return v;
|
|
10282
10283
|
var I = new e();
|
|
@@ -10429,26 +10430,26 @@ function Gu() {
|
|
|
10429
10430
|
E && (E = E[0], E !== ":" && (this.port = E.substr(1)), v = v.substr(0, v.length - E.length)), v && (this.hostname = v);
|
|
10430
10431
|
}, vt.parse = w, vt.resolve = _, vt.resolveObject = x, vt.format = m, vt.Url = e, vt;
|
|
10431
10432
|
}
|
|
10432
|
-
function
|
|
10433
|
+
function Ja(a) {
|
|
10433
10434
|
if (typeof a == "string") a = new URL(a);
|
|
10434
10435
|
else if (!(a instanceof URL)) throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");
|
|
10435
10436
|
if (a.protocol !== "file:") throw new Deno.errors.InvalidData("invalid url scheme");
|
|
10436
|
-
return Ur ?
|
|
10437
|
+
return Ur ? Yu(a) : Qu(a);
|
|
10437
10438
|
}
|
|
10438
|
-
function
|
|
10439
|
+
function Yu(a) {
|
|
10439
10440
|
let e = a.hostname, t = a.pathname;
|
|
10440
10441
|
for (let r = 0; r < t.length; r++) if (t[r] === "%") {
|
|
10441
10442
|
let o = t.codePointAt(r + 2) || 32;
|
|
10442
10443
|
if (t[r + 1] === "2" && o === 102 || t[r + 1] === "5" && o === 99) throw new Deno.errors.InvalidData("must not include encoded \\ or / characters");
|
|
10443
10444
|
}
|
|
10444
|
-
if (t = t.replace(
|
|
10445
|
+
if (t = t.replace(ul, "\\"), t = decodeURIComponent(t), e !== "") return `\\\\${e}${t}`;
|
|
10445
10446
|
{
|
|
10446
10447
|
let r = t.codePointAt(1) | 32, o = t[2];
|
|
10447
|
-
if (r <
|
|
10448
|
+
if (r < ll || r > cl || o !== ":") throw new Deno.errors.InvalidData("file url path must be absolute");
|
|
10448
10449
|
return t.slice(1);
|
|
10449
10450
|
}
|
|
10450
10451
|
}
|
|
10451
|
-
function
|
|
10452
|
+
function Qu(a) {
|
|
10452
10453
|
if (a.hostname !== "") throw new Deno.errors.InvalidData("invalid file url hostname");
|
|
10453
10454
|
let e = a.pathname;
|
|
10454
10455
|
for (let t = 0; t < e.length; t++) if (e[t] === "%") {
|
|
@@ -10457,16 +10458,16 @@ function Yu(a) {
|
|
|
10457
10458
|
}
|
|
10458
10459
|
return decodeURIComponent(e);
|
|
10459
10460
|
}
|
|
10460
|
-
function
|
|
10461
|
+
function Xa(a) {
|
|
10461
10462
|
let e = Hi.resolve(a), t = a.charCodeAt(a.length - 1);
|
|
10462
|
-
(t ===
|
|
10463
|
+
(t === al || Ur && t === sl) && e[e.length - 1] !== Hi.sep && (e += "/");
|
|
10463
10464
|
let r = new URL("file://");
|
|
10464
|
-
return e.includes("%") && (e = e.replace(
|
|
10465
|
-
`) && (e = e.replace(
|
|
10465
|
+
return e.includes("%") && (e = e.replace(hl, "%25")), !Ur && e.includes("\\") && (e = e.replace(dl, "%5C")), e.includes(`
|
|
10466
|
+
`) && (e = e.replace(fl, "%0A")), e.includes("\r") && (e = e.replace(pl, "%0D")), e.includes(" ") && (e = e.replace(ml, "%09")), r.pathname = e, r;
|
|
10466
10467
|
}
|
|
10467
|
-
var
|
|
10468
|
-
le(), ue(), ce(),
|
|
10469
|
-
}),
|
|
10468
|
+
var Za, Ir, Wi, Tr, Cr, zi, Or, Vi, Pr, Gi, Mr, Ki, Rr, Yi, Lr, Qi, vt, Ji, qe, As, el, tl, rl, nl, il, ol, sl, al, ll, cl, Ur, ul, hl, dl, fl, pl, ml, Ju = Ve(() => {
|
|
10469
|
+
le(), ue(), ce(), pu(), Ou(), qu(), Ka(), Za = Object.freeze(/* @__PURE__ */ Object.create(null)), Ir = {}, Wi = !1, Tr = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : global, Cr = {}, zi = !1, Or = {}, Vi = !1, Pr = {}, Gi = !1, Mr = {}, Ki = !1, Rr = {}, Yi = !1, Lr = {}, Qi = !1, vt = {}, Ji = !1, qe = Ku(), qe.parse, qe.resolve, qe.resolveObject, qe.format, qe.Url, As = typeof Deno < "u" ? Deno.build.os === "windows" ? "win32" : Deno.build.os : void 0, qe.URL = typeof URL < "u" ? URL : null, qe.pathToFileURL = Xa, qe.fileURLToPath = Ja, el = qe.Url, tl = qe.format, rl = qe.resolve, nl = qe.resolveObject, il = qe.parse, ol = qe.URL, sl = 92, al = 47, ll = 97, cl = 122, Ur = As === "win32", ul = /\//g, hl = /%/g, dl = /\\/g, fl = /\n/g, pl = /\r/g, ml = /\t/g;
|
|
10470
|
+
}), Xu = pe((a, e) => {
|
|
10470
10471
|
le(), ue(), ce(), e.exports = function() {
|
|
10471
10472
|
throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object");
|
|
10472
10473
|
};
|
|
@@ -10520,7 +10521,7 @@ var Xa, Ir, Wi, Tr, Cr, zi, Or, Vi, Pr, Gi, Mr, Ki, Rr, Yi, Lr, Qi, vt, Ji, qe,
|
|
|
10520
10521
|
return w && w.__esModule ? w : { default: w };
|
|
10521
10522
|
};
|
|
10522
10523
|
Object.defineProperty(a, "__esModule", { value: !0 }), a.streamBuilder = a.browserStreamBuilder = void 0;
|
|
10523
|
-
var t = (Be(), Pe(Ue)), r = e(
|
|
10524
|
+
var t = (Be(), Pe(Ue)), r = e(Xu()), o = e(ht()), n = Pt(), i = e(Wr()), s = po(), l = (0, o.default)("mqttjs:ws"), c = ["rejectUnauthorized", "ca", "cert", "key", "pfx", "passphrase"];
|
|
10524
10525
|
function u(w, m) {
|
|
10525
10526
|
let _ = `${w.protocol}://${w.hostname}:${w.port}${w.path}`;
|
|
10526
10527
|
return typeof w.transformWsUrl == "function" && (_ = w.transformWsUrl(_, w, m)), _;
|
|
@@ -10609,13 +10610,13 @@ var Xa, Ir, Wi, Tr, Cr, zi, Or, Vi, Pr, Gi, Mr, Ki, Rr, Yi, Lr, Qi, vt, Ji, qe,
|
|
|
10609
10610
|
};
|
|
10610
10611
|
a.browserStreamBuilder = y;
|
|
10611
10612
|
}), mo = {};
|
|
10612
|
-
Ft(mo, { Server: () => Le, Socket: () => Le, Stream: () => Le, _createServerHandle: () => Le, _normalizeArgs: () => Le, _setSimultaneousAccepts: () => Le, connect: () => Le, createConnection: () => Le, createServer: () => Le, default: () =>
|
|
10613
|
+
Ft(mo, { Server: () => Le, Socket: () => Le, Stream: () => Le, _createServerHandle: () => Le, _normalizeArgs: () => Le, _setSimultaneousAccepts: () => Le, connect: () => Le, createConnection: () => Le, createServer: () => Le, default: () => gl, isIP: () => Le, isIPv4: () => Le, isIPv6: () => Le });
|
|
10613
10614
|
function Le() {
|
|
10614
10615
|
throw new Error("Node.js net module is not supported by JSPM core outside of Node.js");
|
|
10615
10616
|
}
|
|
10616
|
-
var
|
|
10617
|
-
le(), ue(), ce(),
|
|
10618
|
-
}),
|
|
10617
|
+
var gl, bl = Ve(() => {
|
|
10618
|
+
le(), ue(), ce(), gl = { _createServerHandle: Le, _normalizeArgs: Le, _setSimultaneousAccepts: Le, connect: Le, createConnection: Le, createServer: Le, isIP: Le, isIPv4: Le, isIPv6: Le, Server: Le, Socket: Le, Stream: Le };
|
|
10619
|
+
}), yl = pe((a, e) => {
|
|
10619
10620
|
le(), ue(), ce(), e.exports = {};
|
|
10620
10621
|
}), Is = pe((a) => {
|
|
10621
10622
|
le(), ue(), ce();
|
|
@@ -10623,23 +10624,23 @@ var ml, gl = Ve(() => {
|
|
|
10623
10624
|
return s && s.__esModule ? s : { default: s };
|
|
10624
10625
|
};
|
|
10625
10626
|
Object.defineProperty(a, "__esModule", { value: !0 });
|
|
10626
|
-
var t = e((
|
|
10627
|
+
var t = e((bl(), Pe(mo))), r = e(ht()), o = e(yl()), n = (0, r.default)("mqttjs:tcp"), i = (s, l) => {
|
|
10627
10628
|
if (l.port = l.port || 1883, l.hostname = l.hostname || l.host || "localhost", l.socksProxy) return (0, o.default)(l.hostname, l.port, l.socksProxy, { timeout: l.socksTimeout });
|
|
10628
10629
|
let { port: c, path: u } = l, h = l.hostname;
|
|
10629
10630
|
return n("port %d and host %s", c, h), t.default.createConnection({ port: c, host: h, path: u });
|
|
10630
10631
|
};
|
|
10631
10632
|
a.default = i;
|
|
10632
|
-
}),
|
|
10633
|
-
Ft(
|
|
10634
|
-
var
|
|
10635
|
-
le(), ue(), ce(),
|
|
10633
|
+
}), vl = {};
|
|
10634
|
+
Ft(vl, { default: () => wl });
|
|
10635
|
+
var wl, Zu = Ve(() => {
|
|
10636
|
+
le(), ue(), ce(), wl = {};
|
|
10636
10637
|
}), Ts = pe((a) => {
|
|
10637
10638
|
le(), ue(), ce();
|
|
10638
10639
|
var e = a && a.__importDefault || function(c) {
|
|
10639
10640
|
return c && c.__esModule ? c : { default: c };
|
|
10640
10641
|
};
|
|
10641
10642
|
Object.defineProperty(a, "__esModule", { value: !0 });
|
|
10642
|
-
var t = (
|
|
10643
|
+
var t = (Zu(), Pe(vl)), r = e((bl(), Pe(mo))), o = e(ht()), n = e(yl()), i = (0, o.default)("mqttjs:tls");
|
|
10643
10644
|
function s(c) {
|
|
10644
10645
|
let { host: u, port: h, socksProxy: p, ...b } = c;
|
|
10645
10646
|
if (p !== void 0) {
|
|
@@ -10770,13 +10771,13 @@ var vl, Xu = Ve(() => {
|
|
|
10770
10771
|
return o = f.my, o.connectSocket({ url: y, protocols: g }), n = l(), i = new r.BufferedDuplex(f, n, o), h(), i;
|
|
10771
10772
|
};
|
|
10772
10773
|
a.default = p;
|
|
10773
|
-
}),
|
|
10774
|
+
}), eh = pe((a) => {
|
|
10774
10775
|
le(), ue(), ce();
|
|
10775
10776
|
var e = a && a.__importDefault || function(h) {
|
|
10776
10777
|
return h && h.__esModule ? h : { default: h };
|
|
10777
10778
|
};
|
|
10778
10779
|
Object.defineProperty(a, "__esModule", { value: !0 }), a.connectAsync = u;
|
|
10779
|
-
var t = e(ht()), r = e((
|
|
10780
|
+
var t = e(ht()), r = e((Ju(), Pe(Ya))), o = e(ui()), n = e(Wr());
|
|
10780
10781
|
typeof Re?.nextTick != "function" && (Re.nextTick = setImmediate);
|
|
10781
10782
|
var i = (0, t.default)("mqttjs"), s = null;
|
|
10782
10783
|
function l(h) {
|
|
@@ -10882,23 +10883,23 @@ var vl, Xu = Ve(() => {
|
|
|
10882
10883
|
Object.defineProperty(a, "__esModule", { value: !0 }), a.ReasonCodes = a.KeepaliveManager = a.UniqueMessageIdProvider = a.DefaultMessageIdProvider = a.Store = a.MqttClient = a.connectAsync = a.connect = a.Client = void 0;
|
|
10883
10884
|
var i = n(ui());
|
|
10884
10885
|
a.MqttClient = i.default;
|
|
10885
|
-
var s = n(
|
|
10886
|
+
var s = n(Na());
|
|
10886
10887
|
a.DefaultMessageIdProvider = s.default;
|
|
10887
|
-
var l = n(
|
|
10888
|
+
var l = n(du());
|
|
10888
10889
|
a.UniqueMessageIdProvider = l.default;
|
|
10889
|
-
var c = n(
|
|
10890
|
+
var c = n(va());
|
|
10890
10891
|
a.Store = c.default;
|
|
10891
|
-
var u = r(
|
|
10892
|
+
var u = r(eh());
|
|
10892
10893
|
a.connect = u.default, Object.defineProperty(a, "connectAsync", { enumerable: !0, get: function() {
|
|
10893
10894
|
return u.connectAsync;
|
|
10894
10895
|
} });
|
|
10895
|
-
var h = n(
|
|
10896
|
-
a.KeepaliveManager = h.default, a.Client = i.default, o(ui(), a), o(qt(), a), o(
|
|
10896
|
+
var h = n(Ha());
|
|
10897
|
+
a.KeepaliveManager = h.default, a.Client = i.default, o(ui(), a), o(qt(), a), o(ya(), a);
|
|
10897
10898
|
var p = qr();
|
|
10898
10899
|
Object.defineProperty(a, "ReasonCodes", { enumerable: !0, get: function() {
|
|
10899
10900
|
return p.ReasonCodes;
|
|
10900
10901
|
} });
|
|
10901
|
-
}),
|
|
10902
|
+
}), th = pe((a) => {
|
|
10902
10903
|
le(), ue(), ce();
|
|
10903
10904
|
var e = a && a.__createBinding || (Object.create ? function(i, s, l, c) {
|
|
10904
10905
|
c === void 0 && (c = l);
|
|
@@ -10933,25 +10934,25 @@ var vl, Xu = Ve(() => {
|
|
|
10933
10934
|
var n = r(Ps());
|
|
10934
10935
|
a.default = n, o(Ps(), a);
|
|
10935
10936
|
});
|
|
10936
|
-
const
|
|
10937
|
-
const
|
|
10937
|
+
const rh = th();
|
|
10938
|
+
const nh = {
|
|
10938
10939
|
inbound: "apps/{appId}/users/{userId}/messages/{conversationId}/clientadded",
|
|
10939
10940
|
inboundUpdate: "apps/{appId}/users/{userId}/messages/{conversationId}/{messageId}/update",
|
|
10940
10941
|
outbound: "apps/{appId}/outgoing/users/{userId}/messages/{conversationId}/outgoing",
|
|
10941
10942
|
presence: "apps/{appId}/users/{userId}/presence/{clientId}",
|
|
10942
10943
|
wildcardSubscribe: "apps/{appId}/users/{userId}/#"
|
|
10943
|
-
},
|
|
10944
|
+
}, ih = 300, oh = {
|
|
10944
10945
|
templateId: "7",
|
|
10945
10946
|
type: "link",
|
|
10946
10947
|
isDeepLink: !0
|
|
10947
|
-
},
|
|
10948
|
+
}, sh = {
|
|
10948
10949
|
channelType: "group",
|
|
10949
10950
|
channel: "chat21",
|
|
10950
10951
|
requestChannel: "chat21",
|
|
10951
10952
|
platform: "WEBSITE",
|
|
10952
10953
|
medium: "CHATBUDDY"
|
|
10953
10954
|
};
|
|
10954
|
-
class
|
|
10955
|
+
class ah {
|
|
10955
10956
|
client = null;
|
|
10956
10957
|
config;
|
|
10957
10958
|
currentToken;
|
|
@@ -10978,7 +10979,7 @@ class sh {
|
|
|
10978
10979
|
inboundRegex;
|
|
10979
10980
|
inboundUpdateRegex;
|
|
10980
10981
|
constructor(e) {
|
|
10981
|
-
this.config = e, this.currentToken = e.jwtToken, this.appId = e.appId ?? "tilechat", this.clientId = e.clientId ?? this.freshClientId(), this.topics = { ...
|
|
10982
|
+
this.config = e, this.currentToken = e.jwtToken, this.appId = e.appId ?? "tilechat", this.clientId = e.clientId ?? this.freshClientId(), this.topics = { ...nh, ...e.topicTemplates ?? {} }, this.maxReconnectAttempts = e.maxReconnectAttempts ?? 1 / 0, this.reconnectMaxDelayMs = e.reconnectMaxDelayMs ?? 3e4, this.inboundRegex = this.buildTopicRegex(
|
|
10982
10983
|
this.topics.inbound,
|
|
10983
10984
|
["conversationId"]
|
|
10984
10985
|
), this.inboundUpdateRegex = this.buildTopicRegex(
|
|
@@ -11030,7 +11031,7 @@ class sh {
|
|
|
11030
11031
|
() => c("connect-timeout"),
|
|
11031
11032
|
r + 500
|
|
11032
11033
|
);
|
|
11033
|
-
this.client =
|
|
11034
|
+
this.client = rh.connect(this.config.mqttEndpoint, o), this.client.on("connect", () => {
|
|
11034
11035
|
if (this.connectedAt = Date.now(), s || l(() => n()), this.debugLog("CONNECT", { endpoint: this.config.mqttEndpoint, clientId: this.clientId }), this.notifyStateChange(!0), this.config.enablePresence !== !1) {
|
|
11035
11036
|
const h = this.config.presencePayloadConnected ?? { connected: !0 };
|
|
11036
11037
|
this.client.publish(e, JSON.stringify(h), { qos: 0, retain: !1 }), this.debugLog("PUBLISH", { topic: e, payload: h });
|
|
@@ -11095,9 +11096,9 @@ class sh {
|
|
|
11095
11096
|
publishFileMessage(e, t) {
|
|
11096
11097
|
if (!this.client) return;
|
|
11097
11098
|
const r = {
|
|
11098
|
-
...
|
|
11099
|
+
...oh,
|
|
11099
11100
|
...this.config.fileTemplate ?? {},
|
|
11100
|
-
...
|
|
11101
|
+
...lh(t)
|
|
11101
11102
|
}, o = {
|
|
11102
11103
|
metadata: {
|
|
11103
11104
|
contentType: "300",
|
|
@@ -11136,7 +11137,7 @@ class sh {
|
|
|
11136
11137
|
* Send a read receipt for a message. Tiledesk widgets publish
|
|
11137
11138
|
* `{"status":300}` to apps/{appId}/users/{userId}/messages/{convId}/{msgId}/update.
|
|
11138
11139
|
*/
|
|
11139
|
-
publishReadReceipt(e, t, r =
|
|
11140
|
+
publishReadReceipt(e, t, r = ih) {
|
|
11140
11141
|
if (!this.client) return;
|
|
11141
11142
|
const o = this.renderTemplate(this.topics.inboundUpdate, { conversationId: e, messageId: t });
|
|
11142
11143
|
this.client.publish(o, JSON.stringify({ status: r }), {
|
|
@@ -11267,7 +11268,7 @@ class sh {
|
|
|
11267
11268
|
this.messageHandlers.forEach((c) => c(o, l));
|
|
11268
11269
|
}
|
|
11269
11270
|
buildOutgoingEnvelope(e, t) {
|
|
11270
|
-
const r = { ...
|
|
11271
|
+
const r = { ...sh, ...this.config.messageDefaults ?? {} }, o = this.config.senderFullname ?? this.config.userName ?? this.config.userId, n = this.config.recipientFullnameResolver?.(e), i = {
|
|
11271
11272
|
projectId: this.config.projectId,
|
|
11272
11273
|
...r.departmentId ? { departmentId: r.departmentId } : {},
|
|
11273
11274
|
...this.config.userName ? { userFullname: this.config.userName } : {},
|
|
@@ -11341,20 +11342,20 @@ class sh {
|
|
|
11341
11342
|
return new RegExp(`^${r}$`);
|
|
11342
11343
|
}
|
|
11343
11344
|
}
|
|
11344
|
-
function
|
|
11345
|
+
function lh(a) {
|
|
11345
11346
|
const e = {};
|
|
11346
11347
|
for (const [t, r] of Object.entries(a))
|
|
11347
11348
|
r !== void 0 && (e[t] = r);
|
|
11348
11349
|
return e;
|
|
11349
11350
|
}
|
|
11350
|
-
function
|
|
11351
|
+
function ch(a, e) {
|
|
11351
11352
|
return (a.sender ?? "").toString() === e;
|
|
11352
11353
|
}
|
|
11353
|
-
function
|
|
11354
|
+
function uh(a, e) {
|
|
11354
11355
|
const t = (a.sender ?? "").toString(), r = e.systemSenders ?? ["metadata", "system"], o = e.botSenderPrefix ?? "bot_";
|
|
11355
11356
|
return t ? t === e.userId ? "user" : t.startsWith(o) ? "assistant" : r.includes(t) ? "system" : "agent" : "system";
|
|
11356
11357
|
}
|
|
11357
|
-
function
|
|
11358
|
+
function _l(a) {
|
|
11358
11359
|
const e = { raw: a }, t = a.metadata;
|
|
11359
11360
|
if (t && typeof t == "object" && (typeof t.contentType == "string" && (e.contentType = t.contentType), typeof t.templateId == "string" && (e.templateId = t.templateId), t.payload !== void 0 && (e.payload = t.payload)), typeof a.text == "string" && a.text.trim().startsWith("{"))
|
|
11360
11361
|
try {
|
|
@@ -11371,8 +11372,8 @@ function wl(a) {
|
|
|
11371
11372
|
}
|
|
11372
11373
|
return e;
|
|
11373
11374
|
}
|
|
11374
|
-
function
|
|
11375
|
-
const e =
|
|
11375
|
+
function hh(a) {
|
|
11376
|
+
const e = _l(a);
|
|
11376
11377
|
if (e.contentType !== "300") return null;
|
|
11377
11378
|
const t = e.payload, r = t && Array.isArray(t.elements) ? t.elements : null;
|
|
11378
11379
|
if (!r || r.length === 0) return null;
|
|
@@ -11385,10 +11386,10 @@ function uh(a) {
|
|
|
11385
11386
|
};
|
|
11386
11387
|
}
|
|
11387
11388
|
function Ms(a, e, t) {
|
|
11388
|
-
const r =
|
|
11389
|
+
const r = uh(a, t), o = _l(a), n = hh(a);
|
|
11389
11390
|
let i = "";
|
|
11390
11391
|
o.innerMessage ? i = o.innerMessage : typeof a.text == "string" && (a.text.trim().startsWith("{") ? o.contentType !== "300" && (i = a.text) : i = a.text);
|
|
11391
|
-
const s = typeof a.message_id == "string" ? a.message_id : `td_${Date.now()}_${Math.random().toString(36).slice(2, 8)}`, l = typeof a.timestamp == "number" ? new Date(a.timestamp).toISOString() : (/* @__PURE__ */ new Date()).toISOString(), c = r === "assistant" ? "assistant" : r === "agent" ? "agent" : r === "system" ? "system" : "user", u = typeof a.status == "number" ?
|
|
11392
|
+
const s = typeof a.message_id == "string" ? a.message_id : `td_${Date.now()}_${Math.random().toString(36).slice(2, 8)}`, l = typeof a.timestamp == "number" ? new Date(a.timestamp).toISOString() : (/* @__PURE__ */ new Date()).toISOString(), c = r === "assistant" ? "assistant" : r === "agent" ? "agent" : r === "system" ? "system" : "user", u = typeof a.status == "number" ? dh(a.status) : "delivered", h = {
|
|
11392
11393
|
id: s,
|
|
11393
11394
|
externalId: s,
|
|
11394
11395
|
conversationId: e,
|
|
@@ -11415,10 +11416,10 @@ function Ms(a, e, t) {
|
|
|
11415
11416
|
}
|
|
11416
11417
|
]), { message: h, template: o };
|
|
11417
11418
|
}
|
|
11418
|
-
function
|
|
11419
|
+
function dh(a) {
|
|
11419
11420
|
return a < 0 ? "error" : a >= 250 ? "read" : a >= 150 ? "delivered" : "sent";
|
|
11420
11421
|
}
|
|
11421
|
-
class
|
|
11422
|
+
class fh extends qs {
|
|
11422
11423
|
connection = null;
|
|
11423
11424
|
tiledesk = null;
|
|
11424
11425
|
api;
|
|
@@ -11431,10 +11432,12 @@ class dh extends $s {
|
|
|
11431
11432
|
historyAdapter;
|
|
11432
11433
|
tiledeskUnsubs = [];
|
|
11433
11434
|
constructor(e, t) {
|
|
11434
|
-
super(), this.config = e, this.mode = e.transport ?? "aikaara", this.uploadAdapter = t?.uploadAdapter ?? null, this.historyAdapter = t?.historyAdapter ?? null, this.api = new
|
|
11435
|
+
super(), this.config = e, this.mode = e.transport ?? "aikaara", this.uploadAdapter = t?.uploadAdapter ?? null, this.historyAdapter = t?.historyAdapter ?? null, this.api = new Vl(e.baseUrl, e.userToken, e.apiKey, e.authToken), this.messageStore = new Gl(), this.conversationManager = new Kl(e.conversationId), this.usesAikaara() && (this.connection = new zl(e), this.connection.on("connection:state", (r) => {
|
|
11435
11436
|
this.emit("connection:state", r), this.config.onConnectionStateChange?.(r);
|
|
11436
11437
|
}), this.connection.on("error", (r) => {
|
|
11437
11438
|
this.emit("error", r), this.config.onError?.(r);
|
|
11439
|
+
}), this.connection.on("reconnected", () => {
|
|
11440
|
+
this.resubscribeAfterReconnect();
|
|
11438
11441
|
})), this.usesTiledesk() && this.initTiledeskTransport();
|
|
11439
11442
|
}
|
|
11440
11443
|
usesAikaara() {
|
|
@@ -11449,7 +11452,7 @@ class dh extends $s {
|
|
|
11449
11452
|
throw new Error("AikaaraChatClient: tiledesk transport requires `config.tiledesk` (TiledeskTransportConfig)");
|
|
11450
11453
|
if (!t?.userId)
|
|
11451
11454
|
throw new Error("AikaaraChatClient: tiledesk transport requires `config.tiledeskIdentity.userId`");
|
|
11452
|
-
this.tiledesk = new
|
|
11455
|
+
this.tiledesk = new ah({
|
|
11453
11456
|
...e,
|
|
11454
11457
|
userId: t.userId,
|
|
11455
11458
|
userName: t.userName ?? e.userName,
|
|
@@ -11644,7 +11647,7 @@ class dh extends $s {
|
|
|
11644
11647
|
systemSenders: this.config.tiledesk?.messageDefaults?.attributes?.systemSenders
|
|
11645
11648
|
});
|
|
11646
11649
|
if (this.mode === "dual" && n.role === "assistant") return;
|
|
11647
|
-
if (
|
|
11650
|
+
if (ch(e, o)) {
|
|
11648
11651
|
const c = this.messageStore.reconcileOptimistic(n);
|
|
11649
11652
|
if (c) {
|
|
11650
11653
|
this.emit("message:updated", c);
|
|
@@ -11702,6 +11705,17 @@ class dh extends $s {
|
|
|
11702
11705
|
} catch {
|
|
11703
11706
|
}
|
|
11704
11707
|
}
|
|
11708
|
+
async resubscribeAfterReconnect() {
|
|
11709
|
+
const e = this.conversationManager.conversationId;
|
|
11710
|
+
if (!(!e || !this.connection))
|
|
11711
|
+
try {
|
|
11712
|
+
this.subscription = await this.connection.subscribeToConversation(e), this.subscription.onReceived((t) => {
|
|
11713
|
+
this.handleBroadcast(t);
|
|
11714
|
+
});
|
|
11715
|
+
} catch (t) {
|
|
11716
|
+
this.emit("error", t instanceof Error ? t : new Error(String(t))), this.config.onError?.(t instanceof Error ? t : new Error(String(t)));
|
|
11717
|
+
}
|
|
11718
|
+
}
|
|
11705
11719
|
handleBroadcast(e) {
|
|
11706
11720
|
const t = this.conversationManager.conversationId;
|
|
11707
11721
|
switch (e.type) {
|
|
@@ -11782,12 +11796,12 @@ const Rs = {
|
|
|
11782
11796
|
doc: "application/msword",
|
|
11783
11797
|
json: "application/json"
|
|
11784
11798
|
};
|
|
11785
|
-
function
|
|
11799
|
+
function ph(a) {
|
|
11786
11800
|
const e = a.lastIndexOf(".");
|
|
11787
11801
|
return e < 0 || e === a.length - 1 ? "" : a.slice(e + 1).toLowerCase();
|
|
11788
11802
|
}
|
|
11789
|
-
function
|
|
11790
|
-
const r =
|
|
11803
|
+
function mh(a, e, t) {
|
|
11804
|
+
const r = ph(a.name || "");
|
|
11791
11805
|
if (r && e && e[r]) return e[r];
|
|
11792
11806
|
const o = a.type;
|
|
11793
11807
|
return o && o.trim().length > 0 ? o : r && Rs[r] ? Rs[r] : t;
|
|
@@ -11795,7 +11809,7 @@ function ph(a, e, t) {
|
|
|
11795
11809
|
function Yr(a, e) {
|
|
11796
11810
|
return a.replace(/\{(\w+)\}/g, (t, r) => e[r] ?? "");
|
|
11797
11811
|
}
|
|
11798
|
-
function
|
|
11812
|
+
function gh(a, e) {
|
|
11799
11813
|
const t = e.split(".");
|
|
11800
11814
|
let r = a;
|
|
11801
11815
|
for (const o of t)
|
|
@@ -11804,11 +11818,11 @@ function mh(a, e) {
|
|
|
11804
11818
|
else return "";
|
|
11805
11819
|
return typeof r == "string" ? r : "";
|
|
11806
11820
|
}
|
|
11807
|
-
function
|
|
11821
|
+
function bh(a) {
|
|
11808
11822
|
const e = a.signedUrlPath ?? "data.s3SignedUrl";
|
|
11809
11823
|
return {
|
|
11810
11824
|
async upload(t, r) {
|
|
11811
|
-
const o = t.name || `upload-${Date.now()}`, n =
|
|
11825
|
+
const o = t.name || `upload-${Date.now()}`, n = mh(
|
|
11812
11826
|
t,
|
|
11813
11827
|
a.contentTypeMap,
|
|
11814
11828
|
a.contentTypeFallback ?? "application/octet-stream"
|
|
@@ -11834,7 +11848,7 @@ function gh(a) {
|
|
|
11834
11848
|
});
|
|
11835
11849
|
if (!h.ok)
|
|
11836
11850
|
throw new Error(`Sign request failed: ${h.status}`);
|
|
11837
|
-
const p = await h.json().catch(() => ({})), b =
|
|
11851
|
+
const p = await h.json().catch(() => ({})), b = gh(p, e);
|
|
11838
11852
|
if (!b) throw new Error(`Sign response missing path "${e}"`);
|
|
11839
11853
|
const f = a.s3HostRewrite ? b.replace(/^https:\/\/[^/]+/i, a.s3HostRewrite) : b, g = await fetch(f, {
|
|
11840
11854
|
method: "PUT",
|
|
@@ -11868,7 +11882,7 @@ function gh(a) {
|
|
|
11868
11882
|
}
|
|
11869
11883
|
};
|
|
11870
11884
|
}
|
|
11871
|
-
function
|
|
11885
|
+
function kl(a) {
|
|
11872
11886
|
return {
|
|
11873
11887
|
async upload(e, t) {
|
|
11874
11888
|
const r = new FormData(), o = a.fieldName ?? "file";
|
|
@@ -11901,9 +11915,9 @@ function _l(a) {
|
|
|
11901
11915
|
}
|
|
11902
11916
|
};
|
|
11903
11917
|
}
|
|
11904
|
-
const
|
|
11905
|
-
function
|
|
11906
|
-
const e = a.apiBase.replace(/\/$/, ""), t = a.pageSize ?? 200, r = a.pathTemplate ??
|
|
11918
|
+
const yh = "/tilechat/{userId}/conversations/{conversationId}/messages?pageSize={pageSize}";
|
|
11919
|
+
function vh(a) {
|
|
11920
|
+
const e = a.apiBase.replace(/\/$/, ""), t = a.pageSize ?? 200, r = a.pathTemplate ?? yh;
|
|
11907
11921
|
return {
|
|
11908
11922
|
async fetchMessages(o, n) {
|
|
11909
11923
|
const i = 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)), s = i.startsWith("http") ? i : `${e}${i.startsWith("/") ? i : `/${i}`}`, l = {
|
|
@@ -11927,7 +11941,7 @@ function yh(a) {
|
|
|
11927
11941
|
}
|
|
11928
11942
|
};
|
|
11929
11943
|
}
|
|
11930
|
-
const
|
|
11944
|
+
const wh = "^[A-Z]{5}[0-9]{4}[A-Z]$", _h = "^[A-Z]{4}[0-9]{5}[A-Z]$", kh = "^[A-Z]{4}0[A-Z0-9]{6}$", xl = "^[0-9]{6}$", xh = {
|
|
11931
11945
|
id: "house-property",
|
|
11932
11946
|
title: "House Property",
|
|
11933
11947
|
icon: "🏠",
|
|
@@ -11966,7 +11980,7 @@ const vh = "^[A-Z]{5}[0-9]{4}[A-Z]$", wh = "^[A-Z]{4}[0-9]{5}[A-Z]$", _h = "^[A-
|
|
|
11966
11980
|
title: "Property Address",
|
|
11967
11981
|
fields: [
|
|
11968
11982
|
{ id: "housePropertyAddress", type: "text", label: "Address" },
|
|
11969
|
-
{ id: "housePropertyPincode", type: "text", label: "Pincode", maxLength: 6, pattern:
|
|
11983
|
+
{ id: "housePropertyPincode", type: "text", label: "Pincode", maxLength: 6, pattern: xl }
|
|
11970
11984
|
]
|
|
11971
11985
|
},
|
|
11972
11986
|
{
|
|
@@ -11988,13 +12002,13 @@ const vh = "^[A-Z]{5}[0-9]{4}[A-Z]$", wh = "^[A-Z]{4}[0-9]{5}[A-Z]$", _h = "^[A-
|
|
|
11988
12002
|
showWhen: { field: "hasCoOwnedProperty", equals: !0 },
|
|
11989
12003
|
fields: [
|
|
11990
12004
|
{ id: "coOwnerName", type: "text", label: "Co-Owner Name", required: !0 },
|
|
11991
|
-
{ id: "coOwnerPan", type: "text", label: "Co-Owner PAN", required: !0, pattern:
|
|
12005
|
+
{ id: "coOwnerPan", type: "text", label: "Co-Owner PAN", required: !0, pattern: wh, maxLength: 10 },
|
|
11992
12006
|
{ id: "coOwnerShare", type: "text", label: "Co-Owner Share (%)", placeholder: "e.g. 50", maxLength: 5 }
|
|
11993
12007
|
]
|
|
11994
12008
|
}
|
|
11995
12009
|
],
|
|
11996
12010
|
submitLabel: "Save"
|
|
11997
|
-
},
|
|
12011
|
+
}, Sh = {
|
|
11998
12012
|
id: "salary-hra",
|
|
11999
12013
|
title: "Salary / HRA / Allowances",
|
|
12000
12014
|
icon: "💰",
|
|
@@ -12013,7 +12027,7 @@ const vh = "^[A-Z]{5}[0-9]{4}[A-Z]$", wh = "^[A-Z]{4}[0-9]{5}[A-Z]$", _h = "^[A-
|
|
|
12013
12027
|
type: "text",
|
|
12014
12028
|
label: "TAN (Tax Deduction Account Number)",
|
|
12015
12029
|
required: !0,
|
|
12016
|
-
pattern:
|
|
12030
|
+
pattern: _h,
|
|
12017
12031
|
maxLength: 10
|
|
12018
12032
|
}
|
|
12019
12033
|
]
|
|
@@ -12033,7 +12047,7 @@ const vh = "^[A-Z]{5}[0-9]{4}[A-Z]$", wh = "^[A-Z]{4}[0-9]{5}[A-Z]$", _h = "^[A-
|
|
|
12033
12047
|
}
|
|
12034
12048
|
],
|
|
12035
12049
|
submitLabel: "Save"
|
|
12036
|
-
},
|
|
12050
|
+
}, Eh = {
|
|
12037
12051
|
id: "deductions",
|
|
12038
12052
|
title: "Deductions",
|
|
12039
12053
|
icon: "📋",
|
|
@@ -12068,7 +12082,7 @@ const vh = "^[A-Z]{5}[0-9]{4}[A-Z]$", wh = "^[A-Z]{4}[0-9]{5}[A-Z]$", _h = "^[A-
|
|
|
12068
12082
|
}
|
|
12069
12083
|
],
|
|
12070
12084
|
submitLabel: "Save"
|
|
12071
|
-
},
|
|
12085
|
+
}, Ah = {
|
|
12072
12086
|
id: "other-sources",
|
|
12073
12087
|
title: "Income from Other Sources",
|
|
12074
12088
|
icon: "💵",
|
|
@@ -12093,7 +12107,7 @@ const vh = "^[A-Z]{5}[0-9]{4}[A-Z]$", wh = "^[A-Z]{4}[0-9]{5}[A-Z]$", _h = "^[A-
|
|
|
12093
12107
|
}
|
|
12094
12108
|
],
|
|
12095
12109
|
submitLabel: "Save"
|
|
12096
|
-
},
|
|
12110
|
+
}, Ih = {
|
|
12097
12111
|
id: "capital-gains",
|
|
12098
12112
|
title: "Capital Gains",
|
|
12099
12113
|
icon: "📈",
|
|
@@ -12122,7 +12136,7 @@ const vh = "^[A-Z]{5}[0-9]{4}[A-Z]$", wh = "^[A-Z]{4}[0-9]{5}[A-Z]$", _h = "^[A-
|
|
|
12122
12136
|
}
|
|
12123
12137
|
],
|
|
12124
12138
|
submitLabel: "Save"
|
|
12125
|
-
},
|
|
12139
|
+
}, Th = {
|
|
12126
12140
|
id: "crypto-income",
|
|
12127
12141
|
title: "Crypto Income",
|
|
12128
12142
|
icon: "🪙",
|
|
@@ -12139,7 +12153,7 @@ const vh = "^[A-Z]{5}[0-9]{4}[A-Z]$", wh = "^[A-Z]{4}[0-9]{5}[A-Z]$", _h = "^[A-
|
|
|
12139
12153
|
}
|
|
12140
12154
|
],
|
|
12141
12155
|
submitLabel: "Save"
|
|
12142
|
-
},
|
|
12156
|
+
}, Ch = {
|
|
12143
12157
|
id: "business-profession",
|
|
12144
12158
|
title: "Business / Profession",
|
|
12145
12159
|
icon: "💼",
|
|
@@ -12157,7 +12171,7 @@ const vh = "^[A-Z]{5}[0-9]{4}[A-Z]$", wh = "^[A-Z]{4}[0-9]{5}[A-Z]$", _h = "^[A-
|
|
|
12157
12171
|
}
|
|
12158
12172
|
],
|
|
12159
12173
|
submitLabel: "Save"
|
|
12160
|
-
},
|
|
12174
|
+
}, Oh = {
|
|
12161
12175
|
id: "agricultural-income",
|
|
12162
12176
|
title: "Agricultural Income",
|
|
12163
12177
|
icon: "🌾",
|
|
@@ -12166,7 +12180,7 @@ const vh = "^[A-Z]{5}[0-9]{4}[A-Z]$", wh = "^[A-Z]{4}[0-9]{5}[A-Z]$", _h = "^[A-
|
|
|
12166
12180
|
{ id: "agricultureIncomeGt5Lakh", type: "yes-no", label: "Is agricultural income above ₹5,00,000?" }
|
|
12167
12181
|
],
|
|
12168
12182
|
submitLabel: "Save"
|
|
12169
|
-
},
|
|
12183
|
+
}, Ph = {
|
|
12170
12184
|
id: "exempt-income",
|
|
12171
12185
|
title: "Other Exempt Income",
|
|
12172
12186
|
icon: "🧾",
|
|
@@ -12175,7 +12189,7 @@ const vh = "^[A-Z]{5}[0-9]{4}[A-Z]$", wh = "^[A-Z]{4}[0-9]{5}[A-Z]$", _h = "^[A-
|
|
|
12175
12189
|
{ id: "exemptIncomeNature", type: "text", label: "Nature of Exempt Income", placeholder: "e.g. PPF interest, gratuity" }
|
|
12176
12190
|
],
|
|
12177
12191
|
submitLabel: "Save"
|
|
12178
|
-
},
|
|
12192
|
+
}, Mh = {
|
|
12179
12193
|
id: "tax-paid-tds",
|
|
12180
12194
|
title: "Tax Paid / TDS",
|
|
12181
12195
|
icon: "🧮",
|
|
@@ -12199,7 +12213,7 @@ const vh = "^[A-Z]{5}[0-9]{4}[A-Z]$", wh = "^[A-Z]{4}[0-9]{5}[A-Z]$", _h = "^[A-
|
|
|
12199
12213
|
}
|
|
12200
12214
|
],
|
|
12201
12215
|
submitLabel: "Save"
|
|
12202
|
-
},
|
|
12216
|
+
}, Rh = {
|
|
12203
12217
|
id: "bank-details",
|
|
12204
12218
|
title: "Personal / Bank Details",
|
|
12205
12219
|
icon: "🏦",
|
|
@@ -12210,7 +12224,7 @@ const vh = "^[A-Z]{5}[0-9]{4}[A-Z]$", wh = "^[A-Z]{4}[0-9]{5}[A-Z]$", _h = "^[A-
|
|
|
12210
12224
|
title: "Bank Account (for refund)",
|
|
12211
12225
|
fields: [
|
|
12212
12226
|
{ id: "bankAccountNumber", type: "text", label: "Bank Account Number", required: !0 },
|
|
12213
|
-
{ id: "bankIfscCode", type: "text", label: "IFSC Code", required: !0, pattern:
|
|
12227
|
+
{ id: "bankIfscCode", type: "text", label: "IFSC Code", required: !0, pattern: kh, maxLength: 11 }
|
|
12214
12228
|
]
|
|
12215
12229
|
},
|
|
12216
12230
|
{
|
|
@@ -12222,13 +12236,13 @@ const vh = "^[A-Z]{5}[0-9]{4}[A-Z]$", wh = "^[A-Z]{4}[0-9]{5}[A-Z]$", _h = "^[A-
|
|
|
12222
12236
|
{ id: "immovableAssetDescription", type: "text", label: "Description" },
|
|
12223
12237
|
{ id: "immovableAssetFlatNo", type: "text", label: "Flat / House No." },
|
|
12224
12238
|
{ id: "immovableAssetArea", type: "text", label: "Area / Locality" },
|
|
12225
|
-
{ id: "immovableAssetPincode", type: "text", label: "Pincode", maxLength: 6, pattern:
|
|
12239
|
+
{ id: "immovableAssetPincode", type: "text", label: "Pincode", maxLength: 6, pattern: xl },
|
|
12226
12240
|
{ id: "immovableAssetCost", type: "number", label: "Cost of Asset", currency: "₹", min: 0 }
|
|
12227
12241
|
]
|
|
12228
12242
|
}
|
|
12229
12243
|
],
|
|
12230
12244
|
submitLabel: "Save"
|
|
12231
|
-
},
|
|
12245
|
+
}, Lh = {
|
|
12232
12246
|
id: "have-a-question",
|
|
12233
12247
|
title: "I only have a question",
|
|
12234
12248
|
icon: "❓",
|
|
@@ -12244,23 +12258,23 @@ const vh = "^[A-Z]{5}[0-9]{4}[A-Z]$", wh = "^[A-Z]{4}[0-9]{5}[A-Z]$", _h = "^[A-
|
|
|
12244
12258
|
}
|
|
12245
12259
|
],
|
|
12246
12260
|
submitLabel: "Send Question"
|
|
12247
|
-
},
|
|
12248
|
-
|
|
12249
|
-
Th,
|
|
12250
|
-
Ah,
|
|
12251
|
-
Eh,
|
|
12252
|
-
Ih,
|
|
12261
|
+
}, jh = [
|
|
12262
|
+
Sh,
|
|
12253
12263
|
Ch,
|
|
12264
|
+
Ih,
|
|
12265
|
+
Ah,
|
|
12266
|
+
Th,
|
|
12254
12267
|
Oh,
|
|
12255
|
-
kh,
|
|
12256
|
-
Sh,
|
|
12257
12268
|
Ph,
|
|
12269
|
+
xh,
|
|
12270
|
+
Eh,
|
|
12258
12271
|
Mh,
|
|
12259
|
-
Rh
|
|
12272
|
+
Rh,
|
|
12273
|
+
Lh
|
|
12260
12274
|
];
|
|
12261
|
-
function
|
|
12275
|
+
function Nh(a, e) {
|
|
12262
12276
|
const t = a || {}, r = {
|
|
12263
|
-
userId:
|
|
12277
|
+
userId: Dh(e.userId),
|
|
12264
12278
|
assessmentYear: e.assessmentYear,
|
|
12265
12279
|
isRevised: e.isRevised || "N"
|
|
12266
12280
|
};
|
|
@@ -12279,9 +12293,9 @@ function jh(a, e) {
|
|
|
12279
12293
|
amount: Oe(t.immovableAssetCost)
|
|
12280
12294
|
};
|
|
12281
12295
|
Object.values(o).some((s) => s !== void 0) && (r.immovableAsset = [o]);
|
|
12282
|
-
const n = Qr(t.hpDetails,
|
|
12296
|
+
const n = Qr(t.hpDetails, Uh);
|
|
12283
12297
|
n.length && (r.hpDetails = n);
|
|
12284
|
-
const i = Qr(t.salaryDetails,
|
|
12298
|
+
const i = Qr(t.salaryDetails, Bh);
|
|
12285
12299
|
if (i.length) {
|
|
12286
12300
|
r.salaryIncome = i;
|
|
12287
12301
|
const s = Qr(t.salaryDetails, (c) => ({
|
|
@@ -12289,18 +12303,18 @@ function jh(a, e) {
|
|
|
12289
12303
|
employerName: Me(c.employerName)
|
|
12290
12304
|
}));
|
|
12291
12305
|
s.length && (r.salary = s);
|
|
12292
|
-
const l =
|
|
12306
|
+
const l = Sl(t.salaryDetails)[0] ?? {};
|
|
12293
12307
|
r.hraAmount = Oe(l.hraReceived), r.leaveTravelAllowanceAmount = Oe(l.leaveTravelAllowance), r.leaveEncashmentAllowanceAmount = Oe(l.leaveEncashment), r.anyOtherAllowanceAmount = Oe(l.anyOtherAllowance), r.salaryIncomeFlag = !0;
|
|
12294
12308
|
}
|
|
12295
12309
|
return Br(r);
|
|
12296
12310
|
}
|
|
12297
|
-
function
|
|
12311
|
+
function Uh(a) {
|
|
12298
12312
|
const e = {
|
|
12299
12313
|
loanType: "HOME_LOAN",
|
|
12300
12314
|
loanTakenFrom: Me(a.loanTakenFrom),
|
|
12301
12315
|
bankOrInstituteName: Me(a.lenderName),
|
|
12302
12316
|
loanAccountNo: Me(a.loanAccountNumber),
|
|
12303
|
-
loanSanctionDate:
|
|
12317
|
+
loanSanctionDate: Fh(a.sanctionDate),
|
|
12304
12318
|
totalLoanAmount: Oe(a.totalLoanAmount),
|
|
12305
12319
|
interest: Oe(a.homeLoanInterest)
|
|
12306
12320
|
}, t = Object.entries(e).some(([r, o]) => r !== "loanType" && o !== void 0);
|
|
@@ -12321,7 +12335,7 @@ function Nh(a) {
|
|
|
12321
12335
|
loanDetails: t ? [e] : void 0
|
|
12322
12336
|
};
|
|
12323
12337
|
}
|
|
12324
|
-
function
|
|
12338
|
+
function Bh(a) {
|
|
12325
12339
|
return {
|
|
12326
12340
|
grossSalaryIncome: Oe(a.grossSalary),
|
|
12327
12341
|
salary: Oe(a.basicSalary),
|
|
@@ -12337,7 +12351,7 @@ function Uh(a) {
|
|
|
12337
12351
|
}
|
|
12338
12352
|
};
|
|
12339
12353
|
}
|
|
12340
|
-
function
|
|
12354
|
+
function Dh(a) {
|
|
12341
12355
|
if (a === void 0 || a === "") return;
|
|
12342
12356
|
const e = Number(a);
|
|
12343
12357
|
return Number.isFinite(e) && String(e) === String(a) ? e : a;
|
|
@@ -12355,16 +12369,16 @@ function Me(a) {
|
|
|
12355
12369
|
function Xi(a) {
|
|
12356
12370
|
return a === !0 || a === !1 ? a : void 0;
|
|
12357
12371
|
}
|
|
12358
|
-
function
|
|
12372
|
+
function Fh(a) {
|
|
12359
12373
|
const e = Me(a);
|
|
12360
12374
|
if (e)
|
|
12361
12375
|
return e.includes("T") ? e : /^\d{4}-\d{2}-\d{2}$/.test(e) ? `${e}T00:00:00Z` : e;
|
|
12362
12376
|
}
|
|
12363
|
-
function
|
|
12377
|
+
function Sl(a) {
|
|
12364
12378
|
return Array.isArray(a) ? a.filter((e) => e && typeof e == "object") : [];
|
|
12365
12379
|
}
|
|
12366
12380
|
function Qr(a, e) {
|
|
12367
|
-
return
|
|
12381
|
+
return Sl(a).map((t) => Br(e(t))).filter((t) => t !== void 0);
|
|
12368
12382
|
}
|
|
12369
12383
|
function Br(a) {
|
|
12370
12384
|
if (Array.isArray(a)) {
|
|
@@ -12388,7 +12402,7 @@ function Ls() {
|
|
|
12388
12402
|
return console.warn(
|
|
12389
12403
|
"[smart-edit] API disabled: window.__aikaara_runtime__.getChatJwt is missing — the chat was not mounted via the SDK mountFromSlug path."
|
|
12390
12404
|
), null;
|
|
12391
|
-
const t = e.getChatJwt, r = a.__aikaara_descriptor__ ?? {}, o =
|
|
12405
|
+
const t = e.getChatJwt, r = a.__aikaara_descriptor__ ?? {}, o = Wh(r.api?.baseUrl) ?? zh(r.auth?.endpoint) ?? "", n = r.itr?.automationSubmitUrl || $h(e.configBase, e.slug);
|
|
12392
12406
|
return !n && !o ? (console.warn(
|
|
12393
12407
|
`[smart-edit] API disabled: no submit URL could be derived (configBase=${e.configBase ?? "undefined"}, slug=${e.slug ?? "undefined"}).`
|
|
12394
12408
|
), null) : (console.info(
|
|
@@ -12399,18 +12413,18 @@ function Ls() {
|
|
|
12399
12413
|
), {
|
|
12400
12414
|
baseUrl: o,
|
|
12401
12415
|
getToken: () => t(),
|
|
12402
|
-
headers:
|
|
12403
|
-
assessmentYear: r.itr?.assessmentYear ||
|
|
12416
|
+
headers: Vh(r.auth?.headers),
|
|
12417
|
+
assessmentYear: r.itr?.assessmentYear || Kh(),
|
|
12404
12418
|
isRevised: "N",
|
|
12405
|
-
userId:
|
|
12419
|
+
userId: Gh(e.identity),
|
|
12406
12420
|
submitUrl: n
|
|
12407
12421
|
});
|
|
12408
12422
|
}
|
|
12409
|
-
function
|
|
12423
|
+
function $h(a, e) {
|
|
12410
12424
|
return !a || !e ? void 0 : `${a.replace(/\/+$/, "")}/api/v1/projects/by-slug/${encodeURIComponent(e)}/itr/automation-data`;
|
|
12411
12425
|
}
|
|
12412
|
-
async function
|
|
12413
|
-
const e = await a.getToken(), t = a.userId ||
|
|
12426
|
+
async function qh(a) {
|
|
12427
|
+
const e = await a.getToken(), t = a.userId || El(e, "sub");
|
|
12414
12428
|
if (!t)
|
|
12415
12429
|
throw new Error("[smart-edit] could not resolve userId for GET /itr/automation/eligible");
|
|
12416
12430
|
const r = new URLSearchParams({
|
|
@@ -12429,10 +12443,10 @@ async function $h(a) {
|
|
|
12429
12443
|
const n = await o.text().catch(() => "");
|
|
12430
12444
|
throw new Error(`[smart-edit] GET /itr/automation/eligible → ${o.status} ${n.slice(0, 200)}`);
|
|
12431
12445
|
}
|
|
12432
|
-
return
|
|
12446
|
+
return Al(await o.json().catch(() => ({})));
|
|
12433
12447
|
}
|
|
12434
|
-
async function
|
|
12435
|
-
const t = await a.getToken(), r = a.userId ||
|
|
12448
|
+
async function Hh(a, e) {
|
|
12449
|
+
const t = await a.getToken(), r = a.userId || El(t, "sub"), o = Nh(e, {
|
|
12436
12450
|
userId: r,
|
|
12437
12451
|
assessmentYear: a.assessmentYear,
|
|
12438
12452
|
isRevised: a.isRevised
|
|
@@ -12452,14 +12466,14 @@ async function qh(a, e) {
|
|
|
12452
12466
|
const l = await s.text().catch(() => "");
|
|
12453
12467
|
throw new Error(`[smart-edit] PUT ${n} → ${s.status} ${l.slice(0, 200)}`);
|
|
12454
12468
|
}
|
|
12455
|
-
return
|
|
12469
|
+
return Al(await s.json().catch(() => ({})));
|
|
12456
12470
|
}
|
|
12457
|
-
function
|
|
12471
|
+
function Wh(a) {
|
|
12458
12472
|
if (!a) return null;
|
|
12459
12473
|
let e = a.trim().replace(/\/+$/, "");
|
|
12460
12474
|
return e = e.replace(/\/itr$/i, ""), e || null;
|
|
12461
12475
|
}
|
|
12462
|
-
function
|
|
12476
|
+
function zh(a) {
|
|
12463
12477
|
if (!a) return null;
|
|
12464
12478
|
try {
|
|
12465
12479
|
return new URL(a).origin;
|
|
@@ -12467,7 +12481,7 @@ function Wh(a) {
|
|
|
12467
12481
|
return null;
|
|
12468
12482
|
}
|
|
12469
12483
|
}
|
|
12470
|
-
function
|
|
12484
|
+
function Vh(a) {
|
|
12471
12485
|
const e = {};
|
|
12472
12486
|
if (!a) return e;
|
|
12473
12487
|
const t = /^(authorization|content-type|accept)$/i;
|
|
@@ -12475,12 +12489,12 @@ function zh(a) {
|
|
|
12475
12489
|
!t.test(r) && typeof o == "string" && (e[r] = o);
|
|
12476
12490
|
return e;
|
|
12477
12491
|
}
|
|
12478
|
-
function
|
|
12492
|
+
function Gh(a) {
|
|
12479
12493
|
if (!a) return;
|
|
12480
12494
|
const e = a.userId ?? a.id ?? a.ext_uid ?? a.extUid;
|
|
12481
12495
|
return e == null || e === "" ? void 0 : String(e);
|
|
12482
12496
|
}
|
|
12483
|
-
function
|
|
12497
|
+
function El(a, e) {
|
|
12484
12498
|
try {
|
|
12485
12499
|
const t = a.split(".")[1];
|
|
12486
12500
|
if (!t) return "";
|
|
@@ -12492,18 +12506,18 @@ function Sl(a, e) {
|
|
|
12492
12506
|
return "";
|
|
12493
12507
|
}
|
|
12494
12508
|
}
|
|
12495
|
-
function
|
|
12509
|
+
function Al(a) {
|
|
12496
12510
|
if (a && typeof a == "object") {
|
|
12497
12511
|
const e = a;
|
|
12498
12512
|
return e.data && typeof e.data == "object" ? e.data : e;
|
|
12499
12513
|
}
|
|
12500
12514
|
return {};
|
|
12501
12515
|
}
|
|
12502
|
-
function
|
|
12516
|
+
function Kh() {
|
|
12503
12517
|
const a = /* @__PURE__ */ new Date(), e = a.getMonth() >= 3 ? a.getFullYear() : a.getFullYear() - 1;
|
|
12504
12518
|
return `${e}-${e + 1}`;
|
|
12505
12519
|
}
|
|
12506
|
-
class
|
|
12520
|
+
class Yh {
|
|
12507
12521
|
client;
|
|
12508
12522
|
panel;
|
|
12509
12523
|
bubble;
|
|
@@ -12515,7 +12529,7 @@ class Kh {
|
|
|
12515
12529
|
isEmbed = !1;
|
|
12516
12530
|
smartEditModal = null;
|
|
12517
12531
|
constructor(e, t, r) {
|
|
12518
|
-
this.client = new
|
|
12532
|
+
this.client = new fh(e, {
|
|
12519
12533
|
uploadAdapter: r?.uploadAdapter,
|
|
12520
12534
|
historyAdapter: r?.historyAdapter
|
|
12521
12535
|
}), 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();
|
|
@@ -12627,11 +12641,11 @@ class Kh {
|
|
|
12627
12641
|
*/
|
|
12628
12642
|
async openSmartEdit() {
|
|
12629
12643
|
const e = this.ensureSmartEditModal();
|
|
12630
|
-
e.open({ schemas:
|
|
12644
|
+
e.open({ schemas: jh, data: {} });
|
|
12631
12645
|
const t = Ls();
|
|
12632
12646
|
if (!(!t || !t.baseUrl))
|
|
12633
12647
|
try {
|
|
12634
|
-
const r = await
|
|
12648
|
+
const r = await qh(t);
|
|
12635
12649
|
e.setData(r);
|
|
12636
12650
|
} catch (r) {
|
|
12637
12651
|
console.warn("[smart-edit] fetch failed", r), this.errorBanner.show(
|
|
@@ -12663,7 +12677,7 @@ class Kh {
|
|
|
12663
12677
|
return;
|
|
12664
12678
|
}
|
|
12665
12679
|
try {
|
|
12666
|
-
await
|
|
12680
|
+
await Hh(t, e);
|
|
12667
12681
|
} catch (r) {
|
|
12668
12682
|
console.warn("[smart-edit] save failed", r), this.errorBanner.show(
|
|
12669
12683
|
"Failed to save your ITR details. Please try again.",
|
|
@@ -12679,7 +12693,7 @@ class Kh {
|
|
|
12679
12693
|
}, 200)));
|
|
12680
12694
|
}
|
|
12681
12695
|
}
|
|
12682
|
-
class
|
|
12696
|
+
class Qh extends HTMLElement {
|
|
12683
12697
|
shadow;
|
|
12684
12698
|
controller = null;
|
|
12685
12699
|
_config = {};
|
|
@@ -12725,13 +12739,13 @@ class Yh extends HTMLElement {
|
|
|
12725
12739
|
apiKey: this.getAttribute("api-key") || this._config.apiKey,
|
|
12726
12740
|
title: this.getAttribute("title") || this._config.title || "Chat",
|
|
12727
12741
|
subtitle: this.getAttribute("subtitle") || this._config.subtitle,
|
|
12728
|
-
theme: this.getAttribute("theme") || this._config.theme ||
|
|
12742
|
+
theme: this.getAttribute("theme") || this._config.theme || Hl,
|
|
12729
12743
|
primaryColor: this.getAttribute("primary-color") || this._config.primaryColor || yo,
|
|
12730
|
-
position: this.getAttribute("position") || this._config.position ||
|
|
12731
|
-
width: Number(this.getAttribute("width")) || this._config.width ||
|
|
12732
|
-
height: Number(this.getAttribute("height")) || this._config.height ||
|
|
12733
|
-
fontFamily: this._config.fontFamily ||
|
|
12734
|
-
borderRadius: this._config.borderRadius ??
|
|
12744
|
+
position: this.getAttribute("position") || this._config.position || ql,
|
|
12745
|
+
width: Number(this.getAttribute("width")) || this._config.width || Bl,
|
|
12746
|
+
height: Number(this.getAttribute("height")) || this._config.height || Dl,
|
|
12747
|
+
fontFamily: this._config.fontFamily || $l,
|
|
12748
|
+
borderRadius: this._config.borderRadius ?? Fl,
|
|
12735
12749
|
placeholder: this.getAttribute("placeholder") || this._config.placeholder || vo,
|
|
12736
12750
|
welcomeMessage: this.getAttribute("welcome-message") || this._config.welcomeMessage,
|
|
12737
12751
|
avatarUrl: this.getAttribute("avatar-url") || this._config.avatarUrl,
|
|
@@ -12745,7 +12759,7 @@ class Yh extends HTMLElement {
|
|
|
12745
12759
|
chatActions: this._config.chatActions,
|
|
12746
12760
|
showBubble: this._config.showBubble ?? !0,
|
|
12747
12761
|
display: (this.getAttribute("display") || this._config.display) ?? "popup",
|
|
12748
|
-
offset: this._config.offset ||
|
|
12762
|
+
offset: this._config.offset || Wl,
|
|
12749
12763
|
conversationId: this._config.conversationId,
|
|
12750
12764
|
systemPromptId: this._config.systemPromptId,
|
|
12751
12765
|
channel: this._config.channel,
|
|
@@ -12948,7 +12962,7 @@ class Yh extends HTMLElement {
|
|
|
12948
12962
|
}
|
|
12949
12963
|
async initController() {
|
|
12950
12964
|
const e = this.getConfig(), t = e.transport ?? "aikaara";
|
|
12951
|
-
(t === "aikaara" || t === "dual") && (!e.baseUrl || !e.userToken) || (this.controller?.disconnect(), this.controller = new
|
|
12965
|
+
(t === "aikaara" || t === "dual") && (!e.baseUrl || !e.userToken) || (this.controller?.disconnect(), this.controller = new Yh(e, this.shadow, {
|
|
12952
12966
|
uploadAdapter: this._config.uploadAdapter,
|
|
12953
12967
|
historyAdapter: this._config.historyAdapter
|
|
12954
12968
|
}), await this.controller.connect());
|
|
@@ -12968,7 +12982,7 @@ class Yh extends HTMLElement {
|
|
|
12968
12982
|
}
|
|
12969
12983
|
}
|
|
12970
12984
|
}
|
|
12971
|
-
class
|
|
12985
|
+
class Jh extends HTMLElement {
|
|
12972
12986
|
shadow;
|
|
12973
12987
|
constructor() {
|
|
12974
12988
|
super(), this.shadow = this.attachShadow({ mode: "open" });
|
|
@@ -13021,12 +13035,12 @@ class Qh extends HTMLElement {
|
|
|
13021
13035
|
t && (t.innerHTML = e);
|
|
13022
13036
|
}
|
|
13023
13037
|
}
|
|
13024
|
-
const
|
|
13038
|
+
const Xh = [
|
|
13025
13039
|
{ id: "edit-itr", label: "Edit ITR Details", icon: "edit" }
|
|
13026
13040
|
];
|
|
13027
|
-
class
|
|
13041
|
+
class Zh extends HTMLElement {
|
|
13028
13042
|
shadow;
|
|
13029
|
-
actions =
|
|
13043
|
+
actions = Xh;
|
|
13030
13044
|
menuOpen = !1;
|
|
13031
13045
|
outsideClickHandler = null;
|
|
13032
13046
|
static get observedAttributes() {
|
|
@@ -13252,7 +13266,7 @@ class Xh extends HTMLElement {
|
|
|
13252
13266
|
this.setAttribute("status", e);
|
|
13253
13267
|
}
|
|
13254
13268
|
}
|
|
13255
|
-
const
|
|
13269
|
+
const ed = /<\s*(br|i|b|em|strong|small|sub|sup|p|div|span|ul|ol|li|a|img|code|pre)\b/i, td = /&(quot|apos|amp|lt|gt|nbsp|#\d+|#x[0-9a-f]+);/i, rd = {
|
|
13256
13270
|
""": '"',
|
|
13257
13271
|
"'": "'",
|
|
13258
13272
|
"<": "<",
|
|
@@ -13260,14 +13274,14 @@ const Zh = /<\s*(br|i|b|em|strong|small|sub|sup|p|div|span|ul|ol|li|a|img|code|p
|
|
|
13260
13274
|
"&": "&",
|
|
13261
13275
|
" ": " "
|
|
13262
13276
|
};
|
|
13263
|
-
function
|
|
13264
|
-
return a.replace(/&(quot|apos|lt|gt|nbsp);/gi, (e) =>
|
|
13277
|
+
function nd(a) {
|
|
13278
|
+
return a.replace(/&(quot|apos|lt|gt|nbsp);/gi, (e) => rd[e.toLowerCase()] ?? e).replace(/&#(\d+);/g, (e, t) => String.fromCharCode(parseInt(t, 10))).replace(/&#x([0-9a-f]+);/gi, (e, t) => String.fromCharCode(parseInt(t, 16))).replace(/&/gi, "&");
|
|
13265
13279
|
}
|
|
13266
13280
|
function Ut(a) {
|
|
13267
|
-
if (
|
|
13281
|
+
if (ed.test(a))
|
|
13268
13282
|
return a;
|
|
13269
|
-
const e =
|
|
13270
|
-
let t =
|
|
13283
|
+
const e = td.test(a) ? nd(a) : a;
|
|
13284
|
+
let t = id(e);
|
|
13271
13285
|
return t = t.replace(/```(\w*)\n([\s\S]*?)```/g, (r, o, n) => `<pre><code>${n.trim()}</code></pre>`), t = t.replace(/`([^`]+)`/g, "<code>$1</code>"), t = t.replace(/\*\*(.+?)\*\*/g, "<strong>$1</strong>"), t = t.replace(/\*(.+?)\*/g, "<em>$1</em>"), t = t.replace(
|
|
13272
13286
|
/\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)/g,
|
|
13273
13287
|
'<a href="$2" target="_self" rel="noopener noreferrer">$1</a>'
|
|
@@ -13279,7 +13293,7 @@ function Ut(a) {
|
|
|
13279
13293
|
}
|
|
13280
13294
|
), t = t.replace(/\n/g, "<br>"), t;
|
|
13281
13295
|
}
|
|
13282
|
-
function
|
|
13296
|
+
function id(a) {
|
|
13283
13297
|
const e = {
|
|
13284
13298
|
"&": "&",
|
|
13285
13299
|
"<": "<",
|
|
@@ -13289,7 +13303,7 @@ function nd(a) {
|
|
|
13289
13303
|
};
|
|
13290
13304
|
return a.replace(/[&<>"']/g, (t) => e[t]);
|
|
13291
13305
|
}
|
|
13292
|
-
const
|
|
13306
|
+
const od = /* @__PURE__ */ new Set([
|
|
13293
13307
|
"p",
|
|
13294
13308
|
"br",
|
|
13295
13309
|
"hr",
|
|
@@ -13324,7 +13338,7 @@ const id = /* @__PURE__ */ new Set([
|
|
|
13324
13338
|
"tr",
|
|
13325
13339
|
"th",
|
|
13326
13340
|
"td"
|
|
13327
|
-
]),
|
|
13341
|
+
]), sd = {
|
|
13328
13342
|
a: /* @__PURE__ */ new Set(["href", "target", "rel"]),
|
|
13329
13343
|
img: /* @__PURE__ */ new Set(["src", "alt", "width", "height"]),
|
|
13330
13344
|
code: /* @__PURE__ */ new Set(["class"]),
|
|
@@ -13334,29 +13348,29 @@ const id = /* @__PURE__ */ new Set([
|
|
|
13334
13348
|
};
|
|
13335
13349
|
function Bt(a) {
|
|
13336
13350
|
const e = document.createElement("template");
|
|
13337
|
-
return e.innerHTML = a,
|
|
13351
|
+
return e.innerHTML = a, Il(e.content), e.innerHTML;
|
|
13338
13352
|
}
|
|
13339
|
-
function
|
|
13353
|
+
function Il(a) {
|
|
13340
13354
|
const e = Array.from(a.childNodes);
|
|
13341
13355
|
for (const t of e)
|
|
13342
13356
|
if (t.nodeType === Node.ELEMENT_NODE) {
|
|
13343
13357
|
const r = t, o = r.tagName.toLowerCase();
|
|
13344
|
-
if (!
|
|
13358
|
+
if (!od.has(o)) {
|
|
13345
13359
|
const s = document.createTextNode(r.textContent || "");
|
|
13346
13360
|
a.replaceChild(s, t);
|
|
13347
13361
|
continue;
|
|
13348
13362
|
}
|
|
13349
|
-
const n =
|
|
13363
|
+
const n = sd[o] || /* @__PURE__ */ new Set(), i = Array.from(r.attributes);
|
|
13350
13364
|
for (const s of i)
|
|
13351
13365
|
n.has(s.name) || r.removeAttribute(s.name);
|
|
13352
13366
|
if (r.hasAttribute("href")) {
|
|
13353
13367
|
const s = r.getAttribute("href") || "";
|
|
13354
13368
|
!s.startsWith("http://") && !s.startsWith("https://") && !s.startsWith("/") && r.removeAttribute("href");
|
|
13355
13369
|
}
|
|
13356
|
-
|
|
13370
|
+
Il(t);
|
|
13357
13371
|
}
|
|
13358
13372
|
}
|
|
13359
|
-
function
|
|
13373
|
+
function ad(a, e = {}) {
|
|
13360
13374
|
const { width: t = 600, height: r = 700, closeOnTypes: o } = e, n = Math.round(window.screenX + (window.outerWidth - t) / 2), i = Math.round(window.screenY + (window.outerHeight - r) / 2), s = window.open(
|
|
13361
13375
|
a,
|
|
13362
13376
|
"aikaara_popup",
|
|
@@ -13374,7 +13388,7 @@ function sd(a, e = {}) {
|
|
|
13374
13388
|
}, 500);
|
|
13375
13389
|
return s;
|
|
13376
13390
|
}
|
|
13377
|
-
function
|
|
13391
|
+
function ld(a) {
|
|
13378
13392
|
const e = Date.now() - a.getTime(), t = Math.round(e / 1e3);
|
|
13379
13393
|
if (t < 5) return "just now";
|
|
13380
13394
|
if (t < 60) return `${t}s ago`;
|
|
@@ -13385,7 +13399,7 @@ function ad(a) {
|
|
|
13385
13399
|
const n = Math.round(o / 24);
|
|
13386
13400
|
return n === 1 ? "Yesterday" : n < 7 ? `${n} d ago` : a.toLocaleDateString(void 0, { month: "short", day: "2-digit" });
|
|
13387
13401
|
}
|
|
13388
|
-
class
|
|
13402
|
+
class cd extends HTMLElement {
|
|
13389
13403
|
shadow;
|
|
13390
13404
|
container;
|
|
13391
13405
|
welcomeMessage = "";
|
|
@@ -13432,12 +13446,14 @@ class ld extends HTMLElement {
|
|
|
13432
13446
|
);
|
|
13433
13447
|
}), this.addEventListener("click", (e) => {
|
|
13434
13448
|
const t = e.composedPath?.() ?? [], r = t.find(
|
|
13435
|
-
(
|
|
13449
|
+
(i) => i && i.tagName === "A"
|
|
13436
13450
|
);
|
|
13437
|
-
!r || !r.href || r.dataset.noModal !== void 0 || r.target === "_blank" || r.
|
|
13438
|
-
|
|
13439
|
-
|
|
13440
|
-
|
|
13451
|
+
if (!r || !r.href || r.dataset.noModal !== void 0 || r.target === "_blank" || r.classList.contains("attachment")) return;
|
|
13452
|
+
const o = this.linkHandlers.some((i) => js(r.href, i.match));
|
|
13453
|
+
r.target === "_self" && !o || t.some((i) => {
|
|
13454
|
+
if (!i || !i.classList) return !1;
|
|
13455
|
+
const s = i.classList;
|
|
13456
|
+
return s.contains("bubble") && s.contains("user");
|
|
13441
13457
|
}) || /^https?:\/\//i.test(r.href) && (e.preventDefault(), this.handleLinkClick(r.href, r.textContent?.trim() || void 0));
|
|
13442
13458
|
}), this.shadow.innerHTML = `
|
|
13443
13459
|
<style>
|
|
@@ -13636,7 +13652,7 @@ class ld extends HTMLElement {
|
|
|
13636
13652
|
if (n.role === "user") {
|
|
13637
13653
|
const i = n.metadata?.attributes?.action;
|
|
13638
13654
|
if (i) {
|
|
13639
|
-
const s =
|
|
13655
|
+
const s = ud(i);
|
|
13640
13656
|
if (i.message_id && t.set(i.message_id, s), Object.keys(s).length > 0)
|
|
13641
13657
|
for (let l = o - 1; l >= 0; l--) {
|
|
13642
13658
|
const c = e[l];
|
|
@@ -13774,7 +13790,7 @@ class ld extends HTMLElement {
|
|
|
13774
13790
|
case "date":
|
|
13775
13791
|
return r;
|
|
13776
13792
|
case "relative":
|
|
13777
|
-
return
|
|
13793
|
+
return ld(t);
|
|
13778
13794
|
case "time-24":
|
|
13779
13795
|
return t.toLocaleTimeString(void 0, { hour: "2-digit", minute: "2-digit", hour12: !1 });
|
|
13780
13796
|
case "time-seconds":
|
|
@@ -13794,13 +13810,13 @@ class ld extends HTMLElement {
|
|
|
13794
13810
|
* data, or opens in a new tab depending on the matched handler.
|
|
13795
13811
|
*/
|
|
13796
13812
|
async handleLinkClick(e, t) {
|
|
13797
|
-
const r = this.linkHandlers.find((b) =>
|
|
13813
|
+
const r = this.linkHandlers.find((b) => js(e, b.match)), o = r?.target ?? "iframe";
|
|
13798
13814
|
if (o === "tab") {
|
|
13799
13815
|
window.open(e, "_blank", "noopener,noreferrer");
|
|
13800
13816
|
return;
|
|
13801
13817
|
}
|
|
13802
13818
|
if (o === "popup") {
|
|
13803
|
-
|
|
13819
|
+
ad(e);
|
|
13804
13820
|
return;
|
|
13805
13821
|
}
|
|
13806
13822
|
const n = this.getOrCreateModal(), i = r?.title ?? t ?? "Link";
|
|
@@ -13808,7 +13824,7 @@ class ld extends HTMLElement {
|
|
|
13808
13824
|
requestAnimationFrame(() => n.show?.(e, i));
|
|
13809
13825
|
return;
|
|
13810
13826
|
}
|
|
13811
|
-
const s = hd(e), l =
|
|
13827
|
+
const s = hd(e), l = Tl(r.fetch.url, s), c = {
|
|
13812
13828
|
accept: "application/json",
|
|
13813
13829
|
...r.fetch.headers ?? {}
|
|
13814
13830
|
}, u = r.fetch.authHeader ?? "session";
|
|
@@ -13854,13 +13870,13 @@ class ld extends HTMLElement {
|
|
|
13854
13870
|
return e || (e = document.createElement("aikaara-link-modal"), document.body.appendChild(e)), e;
|
|
13855
13871
|
}
|
|
13856
13872
|
}
|
|
13857
|
-
function
|
|
13873
|
+
function ud(a) {
|
|
13858
13874
|
const e = /* @__PURE__ */ new Set(["message_id", "formAction", "requestType"]), t = {};
|
|
13859
13875
|
for (const [r, o] of Object.entries(a))
|
|
13860
13876
|
e.has(r) || (Array.isArray(o) && o.every((n) => typeof n == "string") ? t[r] = o : typeof o == "string" && (t[r] = [o]));
|
|
13861
13877
|
return t;
|
|
13862
13878
|
}
|
|
13863
|
-
function
|
|
13879
|
+
function js(a, e) {
|
|
13864
13880
|
const t = e.replace(/[.+^${}()|[\]\\]/g, "\\$&");
|
|
13865
13881
|
return new RegExp("^" + t.replace(/\*/g, ".*").replace(/\?/g, ".") + "$", "i").test(a);
|
|
13866
13882
|
}
|
|
@@ -13874,11 +13890,11 @@ function hd(a) {
|
|
|
13874
13890
|
return {};
|
|
13875
13891
|
}
|
|
13876
13892
|
}
|
|
13877
|
-
function
|
|
13893
|
+
function Tl(a, e) {
|
|
13878
13894
|
return a.replace(/\{(\w+)\}/g, (t, r) => e[r] ?? "");
|
|
13879
13895
|
}
|
|
13880
13896
|
function Zi(a, e) {
|
|
13881
|
-
if (typeof a == "string") return
|
|
13897
|
+
if (typeof a == "string") return Tl(a, e);
|
|
13882
13898
|
if (Array.isArray(a)) return a.map((t) => Zi(t, e));
|
|
13883
13899
|
if (a && typeof a == "object") {
|
|
13884
13900
|
const t = {};
|
|
@@ -13979,7 +13995,7 @@ class dd extends HTMLElement {
|
|
|
13979
13995
|
${n ? `<aikaara-template-renderer
|
|
13980
13996
|
content-type="${n}"
|
|
13981
13997
|
template-id="${i}"
|
|
13982
|
-
inner-message="${
|
|
13998
|
+
inner-message="${Ns(s)}"
|
|
13983
13999
|
></aikaara-template-renderer>` : ""}
|
|
13984
14000
|
${this.renderAttachments()}
|
|
13985
14001
|
</div>
|
|
@@ -14002,13 +14018,13 @@ class dd extends HTMLElement {
|
|
|
14002
14018
|
}
|
|
14003
14019
|
renderAttachments() {
|
|
14004
14020
|
return this.attachments.length ? `<div class="attachments">${this.attachments.map(
|
|
14005
|
-
(t) => `<a class="attachment" href="${
|
|
14021
|
+
(t) => `<a class="attachment" href="${Ns(t.fileUrl)}" target="_blank" rel="noopener noreferrer">
|
|
14006
14022
|
📎 ${fd(t.fileName)}
|
|
14007
14023
|
</a>`
|
|
14008
14024
|
).join("")}</div>` : "";
|
|
14009
14025
|
}
|
|
14010
14026
|
}
|
|
14011
|
-
function
|
|
14027
|
+
function Ns(a) {
|
|
14012
14028
|
return String(a).replace(/[&<>"']/g, (e) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[e]);
|
|
14013
14029
|
}
|
|
14014
14030
|
function fd(a) {
|
|
@@ -14326,7 +14342,7 @@ class bd extends HTMLElement {
|
|
|
14326
14342
|
}
|
|
14327
14343
|
}
|
|
14328
14344
|
const Jr = /* @__PURE__ */ new Map();
|
|
14329
|
-
function
|
|
14345
|
+
function Cl(a) {
|
|
14330
14346
|
const e = Jr.get(a);
|
|
14331
14347
|
if (e) return e;
|
|
14332
14348
|
const t = new Promise((r, o) => {
|
|
@@ -14468,7 +14484,7 @@ class _d extends HTMLElement {
|
|
|
14468
14484
|
`; this.firstChild; ) this.removeChild(this.firstChild);
|
|
14469
14485
|
if (!e) return;
|
|
14470
14486
|
const r = t ? wd(t) : void 0, o = r?.render ?? (t ? `aikaara-template-${t}` : `aikaara-template-${e}`), n = vd[o];
|
|
14471
|
-
if (n && !customElements.get(o) ? n().then(() => this.render()).catch((i) => console.warn(`[aikaara-template-renderer] native template ${o} failed to load`, i)) : r?.scriptUrl && !customElements.get(o) &&
|
|
14487
|
+
if (n && !customElements.get(o) ? n().then(() => this.render()).catch((i) => console.warn(`[aikaara-template-renderer] native template ${o} failed to load`, i)) : r?.scriptUrl && !customElements.get(o) && Cl(r.scriptUrl).then(() => yd(o)).then(() => this.render()).catch((i) => console.warn(`[aikaara-template-renderer] failed to lazy-load ${r.scriptUrl}`, i)), customElements.get(o)) {
|
|
14472
14488
|
const i = document.createElement(o);
|
|
14473
14489
|
if (r?.props) {
|
|
14474
14490
|
for (const [s, l] of Object.entries(r.props))
|
|
@@ -14550,7 +14566,7 @@ class _d extends HTMLElement {
|
|
|
14550
14566
|
*/
|
|
14551
14567
|
mountLinkButton(e) {
|
|
14552
14568
|
const t = this.renderGen;
|
|
14553
|
-
import("./AikaaraLinkButton-
|
|
14569
|
+
import("./AikaaraLinkButton-C0AQPULt.mjs").then(({ registerAikaaraLinkButton: r, AikaaraLinkButton: o }) => {
|
|
14554
14570
|
if (t !== this.renderGen) return;
|
|
14555
14571
|
r();
|
|
14556
14572
|
const n = document.createElement("aikaara-link-button");
|
|
@@ -14629,12 +14645,12 @@ class Ed extends HTMLElement {
|
|
|
14629
14645
|
color: var(--aikaara-text-secondary, #9ca3af);
|
|
14630
14646
|
}
|
|
14631
14647
|
</style>
|
|
14632
|
-
<span class="pill">${
|
|
14633
|
-
${t ? `<span class="sub">${
|
|
14648
|
+
<span class="pill">${Us(e)}</span>
|
|
14649
|
+
${t ? `<span class="sub">${Us(t)}</span>` : ""}
|
|
14634
14650
|
`;
|
|
14635
14651
|
}
|
|
14636
14652
|
}
|
|
14637
|
-
function
|
|
14653
|
+
function Us(a) {
|
|
14638
14654
|
return String(a).replace(/[&<>]/g, (e) => ({ "&": "&", "<": "<", ">": ">" })[e]);
|
|
14639
14655
|
}
|
|
14640
14656
|
class Ad extends HTMLElement {
|
|
@@ -14723,7 +14739,7 @@ class Ad extends HTMLElement {
|
|
|
14723
14739
|
.row[aria-checked="true"] .check { opacity: 1; }
|
|
14724
14740
|
.text { flex: 1; }
|
|
14725
14741
|
</style>
|
|
14726
|
-
<div class="row" role="checkbox" tabindex="${this.preSelectedDisabled ? "-1" : "0"}" aria-checked="${s}" aria-disabled="${this.preSelectedDisabled}" data-value="${
|
|
14742
|
+
<div class="row" role="checkbox" tabindex="${this.preSelectedDisabled ? "-1" : "0"}" aria-checked="${s}" aria-disabled="${this.preSelectedDisabled}" data-value="${Bs(i.value)}">
|
|
14727
14743
|
<span class="box" aria-hidden="true">
|
|
14728
14744
|
<svg class="check" viewBox="0 0 16 16" fill="none" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
14729
14745
|
<path d="M3 8 L7 12 L13 4" />
|
|
@@ -14780,7 +14796,7 @@ class Ad extends HTMLElement {
|
|
|
14780
14796
|
${t.map(
|
|
14781
14797
|
(i) => `
|
|
14782
14798
|
<button class="opt" type="button"
|
|
14783
|
-
data-value="${
|
|
14799
|
+
data-value="${Bs(i.value)}"
|
|
14784
14800
|
role="${o ? "checkbox" : "radio"}"
|
|
14785
14801
|
aria-pressed="${this.selected.has(i.value)}"
|
|
14786
14802
|
${this.preSelectedDisabled ? 'disabled aria-disabled="true"' : ""}>
|
|
@@ -14796,7 +14812,7 @@ class Ad extends HTMLElement {
|
|
|
14796
14812
|
function ar(a) {
|
|
14797
14813
|
return String(a).replace(/[&<>]/g, (e) => ({ "&": "&", "<": "<", ">": ">" })[e]);
|
|
14798
14814
|
}
|
|
14799
|
-
function
|
|
14815
|
+
function Bs(a) {
|
|
14800
14816
|
return String(a).replace(/[&<>"']/g, (e) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[e]);
|
|
14801
14817
|
}
|
|
14802
14818
|
class Id extends HTMLElement {
|
|
@@ -15413,13 +15429,13 @@ class jd extends HTMLElement {
|
|
|
15413
15429
|
t.innerHTML = `
|
|
15414
15430
|
<span class="header-spacer"></span>
|
|
15415
15431
|
<div class="modal-title">Correct Your ITR Details</div>
|
|
15416
|
-
<button class="icon-btn close-btn" type="button" aria-label="Close">${
|
|
15432
|
+
<button class="icon-btn close-btn" type="button" aria-label="Close">${Ds}</button>
|
|
15417
15433
|
`;
|
|
15418
15434
|
const r = this.shadow.querySelector(".modal-body"), o = this.schemas.map(
|
|
15419
15435
|
(i) => `
|
|
15420
15436
|
<button class="chip" type="button" data-section-id="${Ud(i.id)}">
|
|
15421
15437
|
<span class="chip-icon">${i.icon ?? "📄"}</span>
|
|
15422
|
-
<span class="chip-label">${
|
|
15438
|
+
<span class="chip-label">${Fs(i.title)}</span>
|
|
15423
15439
|
</button>`
|
|
15424
15440
|
).join("");
|
|
15425
15441
|
r.innerHTML = `
|
|
@@ -15451,8 +15467,8 @@ class jd extends HTMLElement {
|
|
|
15451
15467
|
const t = this.schemas.find((n) => n.id === this.activeSectionId), r = this.shadow.querySelector(".modal-header");
|
|
15452
15468
|
r.innerHTML = `
|
|
15453
15469
|
<button class="icon-btn back-btn" type="button" aria-label="Back">${Nd}</button>
|
|
15454
|
-
<div class="modal-title">${
|
|
15455
|
-
<button class="icon-btn close-btn" type="button" aria-label="Close">${
|
|
15470
|
+
<div class="modal-title">${Fs(t?.title ?? "Edit")}</div>
|
|
15471
|
+
<button class="icon-btn close-btn" type="button" aria-label="Close">${Ds}</button>
|
|
15456
15472
|
`;
|
|
15457
15473
|
const o = this.shadow.querySelector(".modal-footer");
|
|
15458
15474
|
o.style.display = "none", o.innerHTML = "", this.bindCommon(), r.querySelector(".back-btn")?.addEventListener("click", () => this.backToPicker()), this.mountActiveForm();
|
|
@@ -15626,11 +15642,11 @@ class jd extends HTMLElement {
|
|
|
15626
15642
|
`;
|
|
15627
15643
|
}
|
|
15628
15644
|
}
|
|
15629
|
-
const
|
|
15645
|
+
const Ds = '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>', Nd = '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="19" y1="12" x2="5" y2="12"/><polyline points="12 19 5 12 12 5"/></svg>';
|
|
15630
15646
|
function Ud(a) {
|
|
15631
15647
|
return a.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">");
|
|
15632
15648
|
}
|
|
15633
|
-
function
|
|
15649
|
+
function Fs(a) {
|
|
15634
15650
|
return a.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
15635
15651
|
}
|
|
15636
15652
|
class Bd extends HTMLElement {
|
|
@@ -16038,10 +16054,10 @@ function Ke(a) {
|
|
|
16038
16054
|
}
|
|
16039
16055
|
function Dd() {
|
|
16040
16056
|
const a = [
|
|
16041
|
-
["aikaara-chat-widget",
|
|
16042
|
-
["aikaara-chat-bubble",
|
|
16043
|
-
["aikaara-chat-header",
|
|
16044
|
-
["aikaara-message-list",
|
|
16057
|
+
["aikaara-chat-widget", Qh],
|
|
16058
|
+
["aikaara-chat-bubble", Jh],
|
|
16059
|
+
["aikaara-chat-header", Zh],
|
|
16060
|
+
["aikaara-message-list", cd],
|
|
16045
16061
|
["aikaara-message-bubble", dd],
|
|
16046
16062
|
["aikaara-chat-input", pd],
|
|
16047
16063
|
["aikaara-typing-indicator", md],
|
|
@@ -16072,7 +16088,7 @@ function lr(a, e, t = "") {
|
|
|
16072
16088
|
else return t;
|
|
16073
16089
|
return typeof o == "string" ? o : t;
|
|
16074
16090
|
}
|
|
16075
|
-
function
|
|
16091
|
+
function $s(a) {
|
|
16076
16092
|
try {
|
|
16077
16093
|
const e = a.split(".")[1];
|
|
16078
16094
|
if (!e) return 0;
|
|
@@ -16105,7 +16121,7 @@ class Fd {
|
|
|
16105
16121
|
*/
|
|
16106
16122
|
prime(e, t = {}) {
|
|
16107
16123
|
if (!e) return;
|
|
16108
|
-
const r =
|
|
16124
|
+
const r = $s(e) || Date.now() + 3600 * 1e3;
|
|
16109
16125
|
this.cache = {
|
|
16110
16126
|
token: e,
|
|
16111
16127
|
requestId: t.requestId ?? this.cache?.requestId ?? "",
|
|
@@ -16134,7 +16150,7 @@ class Fd {
|
|
|
16134
16150
|
}
|
|
16135
16151
|
const l = await s.json().catch(() => ({})), c = lr(l, this.descriptor.tokenPath ?? "data.token"), u = this.descriptor.tokenStripPrefix, h = u ? c.replace(new RegExp(`^${u}`, "i"), "").trim() : c;
|
|
16136
16152
|
if (!h) throw new Error("Session auth response missing token");
|
|
16137
|
-
const p = lr(l, this.descriptor.requestIdPath ?? "data.requestId"), b = this.cache?.requestId || p || "", f = lr(l, this.descriptor.fullNamePath ?? "data.fullName"), g = lr(l, this.descriptor.userPath ?? "data.userId"), y =
|
|
16153
|
+
const p = lr(l, this.descriptor.requestIdPath ?? "data.requestId"), b = this.cache?.requestId || p || "", f = lr(l, this.descriptor.fullNamePath ?? "data.fullName"), g = lr(l, this.descriptor.userPath ?? "data.userId"), y = $s(h) || Date.now() + 3600 * 1e3;
|
|
16138
16154
|
return this.cache = { token: h, requestId: b, fullName: f, userId: g, expiresAt: y }, this.cache;
|
|
16139
16155
|
}
|
|
16140
16156
|
}
|
|
@@ -16434,7 +16450,7 @@ function tf(a, e, t) {
|
|
|
16434
16450
|
} catch {
|
|
16435
16451
|
return o;
|
|
16436
16452
|
}
|
|
16437
|
-
const i =
|
|
16453
|
+
const i = Ol(n, t);
|
|
16438
16454
|
return typeof i == "string" ? i : void 0;
|
|
16439
16455
|
} catch {
|
|
16440
16456
|
return;
|
|
@@ -16444,7 +16460,7 @@ async function rf(a, e, t) {
|
|
|
16444
16460
|
if (typeof window > "u") return;
|
|
16445
16461
|
const r = Date.now() + e;
|
|
16446
16462
|
for (; Date.now() < r; ) {
|
|
16447
|
-
const o =
|
|
16463
|
+
const o = Ol(window, a);
|
|
16448
16464
|
if (typeof o == "string" && o.length > 0) return o;
|
|
16449
16465
|
if (typeof o == "function")
|
|
16450
16466
|
try {
|
|
@@ -16480,7 +16496,7 @@ function nf(a) {
|
|
|
16480
16496
|
function of(a) {
|
|
16481
16497
|
return a ? a.split(/[,\s]+/).map((e) => e.trim()).filter(Boolean) : [];
|
|
16482
16498
|
}
|
|
16483
|
-
function
|
|
16499
|
+
function Ol(a, e) {
|
|
16484
16500
|
if (!e) return a;
|
|
16485
16501
|
const t = e.split(".").filter(Boolean);
|
|
16486
16502
|
let r = a;
|
|
@@ -16510,7 +16526,7 @@ function go(a, e, t) {
|
|
|
16510
16526
|
const r = `${af}:${a}:${e}`;
|
|
16511
16527
|
return t ? `${r}:${t}` : r;
|
|
16512
16528
|
}
|
|
16513
|
-
function
|
|
16529
|
+
function Pl(a, e, t) {
|
|
16514
16530
|
try {
|
|
16515
16531
|
return localStorage.getItem(go(a, e, t));
|
|
16516
16532
|
} catch {
|
|
@@ -16651,7 +16667,7 @@ function cf(a, e) {
|
|
|
16651
16667
|
}
|
|
16652
16668
|
return !1;
|
|
16653
16669
|
}
|
|
16654
|
-
async function
|
|
16670
|
+
async function Ml(a, e) {
|
|
16655
16671
|
const t = await fetch(a, {
|
|
16656
16672
|
method: "GET",
|
|
16657
16673
|
headers: { accept: "application/json", ...e ?? {} }
|
|
@@ -16667,10 +16683,10 @@ async function Pl(a, e) {
|
|
|
16667
16683
|
}
|
|
16668
16684
|
return r;
|
|
16669
16685
|
}
|
|
16670
|
-
function
|
|
16686
|
+
function Rl(a, e) {
|
|
16671
16687
|
return a.replace("{projectId}", e).replace("{uuid}", sf().replace(/-/g, ""));
|
|
16672
16688
|
}
|
|
16673
|
-
function
|
|
16689
|
+
function Ll(a) {
|
|
16674
16690
|
const e = a._preload;
|
|
16675
16691
|
if (!Array.isArray(e) || e.length === 0) return;
|
|
16676
16692
|
const t = Array.from(
|
|
@@ -16678,18 +16694,18 @@ function Rl(a) {
|
|
|
16678
16694
|
e.map((r) => r && typeof r == "object" ? r.scriptUrl : null).filter((r) => typeof r == "string" && r.length > 0)
|
|
16679
16695
|
)
|
|
16680
16696
|
);
|
|
16681
|
-
t.length !== 0 && Promise.allSettled(t.map((r) =>
|
|
16697
|
+
t.length !== 0 && Promise.allSettled(t.map((r) => Cl(r)));
|
|
16682
16698
|
}
|
|
16683
16699
|
async function uf(a) {
|
|
16684
16700
|
const e = {
|
|
16685
|
-
...a.config ?? (a.configUrl ? await
|
|
16701
|
+
...a.config ?? (a.configUrl ? await Ml(a.configUrl, a.configHeaders) : {}),
|
|
16686
16702
|
...a.overrides ?? {}
|
|
16687
16703
|
};
|
|
16688
|
-
|
|
16704
|
+
Ll(e);
|
|
16689
16705
|
const t = e.transport ?? "tiledesk", r = e.tiledesk;
|
|
16690
16706
|
if ((t === "tiledesk" || t === "dual") && !r)
|
|
16691
16707
|
throw new Error("mount: descriptor.tiledesk is required for tiledesk/dual transport");
|
|
16692
|
-
const o = r?.projectId ?? "", n = a.identity.userId, i = a.conversationScope || void 0, s = a.forceNewConversation ? null :
|
|
16708
|
+
const o = r?.projectId ?? "", n = a.identity.userId, i = a.conversationScope || void 0, s = a.forceNewConversation ? null : Pl(n, o, i), l = r?.requestIdTemplate ?? "support-group-{projectId}-{uuid}", c = a.conversationId ?? s ?? Rl(l, o);
|
|
16693
16709
|
(a.conversationId || !s || a.forceNewConversation) && o && lf(n, o, c, i);
|
|
16694
16710
|
const u = await a.tokenProvider(), h = a.tokenProvider, p = a.historyTokenProvider ?? h, b = r ? {
|
|
16695
16711
|
mqttEndpoint: r.mqttEndpoint,
|
|
@@ -16718,11 +16734,11 @@ async function uf(a) {
|
|
|
16718
16734
|
debug: r.debug,
|
|
16719
16735
|
senderFullname: a.identity.senderFullname ?? a.identity.userName,
|
|
16720
16736
|
tokenProvider: h
|
|
16721
|
-
} : void 0, f = a.uploadAdapter ?? (e.uploadEndpoint ?
|
|
16737
|
+
} : void 0, f = a.uploadAdapter ?? (e.uploadEndpoint ? kl({
|
|
16722
16738
|
endpoint: e.uploadEndpoint,
|
|
16723
16739
|
fieldName: e.uploadFieldName,
|
|
16724
16740
|
extraFields: e.uploadExtraFields
|
|
16725
|
-
}) : void 0), g = a.historyAdapter ?? (e.historyApiBase ?
|
|
16741
|
+
}) : void 0), g = a.historyAdapter ?? (e.historyApiBase ? vh({
|
|
16726
16742
|
apiBase: e.historyApiBase,
|
|
16727
16743
|
pageSize: e.historyPageSize ?? 200,
|
|
16728
16744
|
pathTemplate: e.historyPathTemplate,
|
|
@@ -16788,7 +16804,7 @@ async function df(a) {
|
|
|
16788
16804
|
const e = (a.configBase ?? "https://api.aikaara.com").replace(/\/$/, ""), t = `${e}/api/v1/widget_configs/${encodeURIComponent(a.slug)}`;
|
|
16789
16805
|
let r = null;
|
|
16790
16806
|
try {
|
|
16791
|
-
r = await
|
|
16807
|
+
r = await Ml(t, a.configHeaders);
|
|
16792
16808
|
} catch (I) {
|
|
16793
16809
|
if (!a.fallbackConfig) throw I;
|
|
16794
16810
|
console.warn(
|
|
@@ -16801,7 +16817,7 @@ async function df(a) {
|
|
|
16801
16817
|
...r ?? {},
|
|
16802
16818
|
...a.overrides ?? {}
|
|
16803
16819
|
};
|
|
16804
|
-
if (
|
|
16820
|
+
if (Ll(o), o.templates && Object.keys(o.templates).length > 0) {
|
|
16805
16821
|
o.components = { ...o.components ?? {} };
|
|
16806
16822
|
for (const [I, O] of Object.entries(o.templates)) {
|
|
16807
16823
|
const P = `template:${I}`;
|
|
@@ -16875,7 +16891,7 @@ async function df(a) {
|
|
|
16875
16891
|
}
|
|
16876
16892
|
const y = new Fd(o.auth, u);
|
|
16877
16893
|
if (f) {
|
|
16878
|
-
const I = o.tiledesk?.projectId ?? "", O = I ?
|
|
16894
|
+
const I = o.tiledesk?.projectId ?? "", O = I ? Pl(s, I) : null, P = o.tiledesk?.requestIdTemplate ?? "support-group-{projectId}-{uuid}", N = O ?? (I ? Rl(P, I) : "");
|
|
16879
16895
|
y.prime(f, { requestId: N, fullName: l });
|
|
16880
16896
|
}
|
|
16881
16897
|
const w = await y.get();
|
|
@@ -16896,10 +16912,10 @@ async function df(a) {
|
|
|
16896
16912
|
} catch (I) {
|
|
16897
16913
|
return console.warn("[aikaara-chat-sdk] partner auto-refresh failed", I), null;
|
|
16898
16914
|
}
|
|
16899
|
-
} : null, x = o.upload, v = async () => `Bearer ${x && "tokenSource" in x && x.tokenSource === "chat" ? (await y.get()).token : await Dt(a.user.token)}`, E = a.hooks?.upload ?? (x && x.mode === "presigned-3step" ?
|
|
16915
|
+
} : null, x = o.upload, v = async () => `Bearer ${x && "tokenSource" in x && x.tokenSource === "chat" ? (await y.get()).token : await Dt(a.user.token)}`, E = a.hooks?.upload ?? (x && x.mode === "presigned-3step" ? bh({
|
|
16900
16916
|
...x,
|
|
16901
16917
|
authHeader: v
|
|
16902
|
-
}) : x && x.mode === "direct" ?
|
|
16918
|
+
}) : x && x.mode === "direct" ? kl({
|
|
16903
16919
|
endpoint: x.endpoint,
|
|
16904
16920
|
fieldName: x.fieldName,
|
|
16905
16921
|
extraFields: x.extraFields,
|
|
@@ -16962,49 +16978,49 @@ async function df(a) {
|
|
|
16962
16978
|
export {
|
|
16963
16979
|
bo as A,
|
|
16964
16980
|
df as B,
|
|
16965
|
-
|
|
16981
|
+
jl as C,
|
|
16966
16982
|
uf as D,
|
|
16967
|
-
|
|
16968
|
-
|
|
16983
|
+
qs as E,
|
|
16984
|
+
_l as F,
|
|
16969
16985
|
pf as G,
|
|
16970
|
-
|
|
16986
|
+
ad as H,
|
|
16971
16987
|
Od as I,
|
|
16972
16988
|
Ld as J,
|
|
16973
16989
|
Pd as K,
|
|
16974
16990
|
Cd as L,
|
|
16975
|
-
|
|
16991
|
+
Gl as M,
|
|
16976
16992
|
Ad as N,
|
|
16977
16993
|
Bd as O,
|
|
16978
16994
|
jd as P,
|
|
16979
16995
|
Id as Q,
|
|
16980
16996
|
Ed as R,
|
|
16981
16997
|
Fd as S,
|
|
16982
|
-
|
|
16998
|
+
ah as T,
|
|
16983
16999
|
_d as U,
|
|
16984
|
-
|
|
16985
|
-
|
|
16986
|
-
|
|
17000
|
+
Jh as a,
|
|
17001
|
+
fh as b,
|
|
17002
|
+
Zh as c,
|
|
16987
17003
|
pd as d,
|
|
16988
|
-
|
|
17004
|
+
Qh as e,
|
|
16989
17005
|
bd as f,
|
|
16990
17006
|
dd as g,
|
|
16991
|
-
|
|
17007
|
+
cd as h,
|
|
16992
17008
|
gd as i,
|
|
16993
17009
|
md as j,
|
|
16994
|
-
|
|
16995
|
-
|
|
16996
|
-
|
|
17010
|
+
Vl as k,
|
|
17011
|
+
zl as l,
|
|
17012
|
+
Kl as m,
|
|
16997
17013
|
Vd as n,
|
|
16998
17014
|
Ye as o,
|
|
16999
17015
|
Jd as p,
|
|
17000
17016
|
ff as q,
|
|
17001
17017
|
Dd as r,
|
|
17002
17018
|
$d as s,
|
|
17003
|
-
|
|
17004
|
-
|
|
17005
|
-
|
|
17019
|
+
kl as t,
|
|
17020
|
+
bh as u,
|
|
17021
|
+
vh as v,
|
|
17006
17022
|
Qd as w,
|
|
17007
|
-
|
|
17008
|
-
|
|
17009
|
-
|
|
17023
|
+
hh as x,
|
|
17024
|
+
uh as y,
|
|
17025
|
+
ch as z
|
|
17010
17026
|
};
|