@aikaara/chat-sdk 1.5.0 → 1.5.2
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-BU0Njp0Y.cjs → AikaaraLinkButton-BQB_myLX.cjs} +1 -1
- package/dist/{AikaaraLinkButton--vcUguMg.mjs → AikaaraLinkButton-DHQbtHiT.mjs} +1 -1
- package/dist/AikaaraPaymentLink-CL4O6gbc.mjs +263 -0
- package/dist/AikaaraPaymentLink-D_SZ081m.cjs +1 -0
- package/dist/{MountTenant-TQ5sAymp.cjs → MountTenant-DYzXut6V.cjs} +36 -36
- package/dist/{MountTenant-CdW5PnSv.mjs → MountTenant-nlS1ZOcJ.mjs} +622 -586
- package/dist/cdn/aikaara-chat.iife.js +53 -53
- package/dist/headless.cjs +1 -1
- package/dist/headless.mjs +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +2 -2
- package/dist/ui.cjs +1 -1
- package/dist/ui.mjs +1 -1
- package/package.json +1 -1
- package/dist/AikaaraPaymentLink-D-tyM5fI.mjs +0 -217
- package/dist/AikaaraPaymentLink-Dq3uDB0c.cjs +0 -1
|
@@ -446,7 +446,7 @@ class ec {
|
|
|
446
446
|
for (const r of e) {
|
|
447
447
|
const o = Po(t, r);
|
|
448
448
|
if (o) {
|
|
449
|
-
const n =
|
|
449
|
+
const n = qr(o), i = qr(r);
|
|
450
450
|
!n && i && Object.assign(o, r, { id: o.id });
|
|
451
451
|
continue;
|
|
452
452
|
}
|
|
@@ -461,7 +461,7 @@ class ec {
|
|
|
461
461
|
function Po(s, e, t = 15e3) {
|
|
462
462
|
const r = e.attachments && e.attachments[0], o = (e.metadata ?? {}).attributes;
|
|
463
463
|
if (!(!!r || !!(o && o.fileMessage))) return null;
|
|
464
|
-
const i =
|
|
464
|
+
const i = qr(e), a = Mo(e), l = Ro(e);
|
|
465
465
|
if (!i && !a && !l) return null;
|
|
466
466
|
const c = new Date(e.createdAt).getTime();
|
|
467
467
|
for (let u = s.length - 1; u >= 0; u--) {
|
|
@@ -469,7 +469,7 @@ function Po(s, e, t = 15e3) {
|
|
|
469
469
|
if (!(!!p || !!(b && b.fileMessage))) continue;
|
|
470
470
|
const g = (h.content || "").trim().toLowerCase();
|
|
471
471
|
if (g === "file_uploaded" || g === "file_upload" || Math.abs(c - new Date(h.createdAt).getTime()) > t) continue;
|
|
472
|
-
const y =
|
|
472
|
+
const y = qr(h);
|
|
473
473
|
if (i && y && i === y) return h;
|
|
474
474
|
const w = Mo(h);
|
|
475
475
|
if (a && w && a === w) return h;
|
|
@@ -494,7 +494,7 @@ function Ro(s) {
|
|
|
494
494
|
const n = s.template?.payload?.elements?.[0]?.description;
|
|
495
495
|
if (typeof n == "string" && n) return n;
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function qr(s) {
|
|
498
498
|
const e = s.attachments && s.attachments[0];
|
|
499
499
|
if (e && typeof e.cloudFileId == "string")
|
|
500
500
|
return e.cloudFileId;
|
|
@@ -546,40 +546,40 @@ class tc {
|
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
|
-
var ho = Object.defineProperty, rc = Object.getOwnPropertyDescriptor, nc = Object.getOwnPropertyNames, ic = Object.prototype.hasOwnProperty, Je = (s, e) => () => (s && (e = s(s = 0)), e), pe = (s, e) => () => (e || s((e = { exports: {} }).exports, e), e.exports),
|
|
549
|
+
var ho = Object.defineProperty, rc = Object.getOwnPropertyDescriptor, nc = Object.getOwnPropertyNames, ic = Object.prototype.hasOwnProperty, Je = (s, e) => () => (s && (e = s(s = 0)), e), pe = (s, e) => () => (e || s((e = { exports: {} }).exports, e), e.exports), zt = (s, e) => {
|
|
550
550
|
for (var t in e) ho(s, t, { get: e[t], enumerable: !0 });
|
|
551
551
|
}, oc = (s, e, t, r) => {
|
|
552
552
|
if (e && typeof e == "object" || typeof e == "function") for (let o of nc(e)) !ic.call(s, o) && o !== t && ho(s, o, { get: () => e[o], enumerable: !(r = rc(e, o)) || r.enumerable });
|
|
553
553
|
return s;
|
|
554
554
|
}, Me = (s) => oc(ho({}, "__esModule", { value: !0 }), s), le = Je(() => {
|
|
555
555
|
}), Le = {};
|
|
556
|
-
|
|
556
|
+
zt(Le, { _debugEnd: () => Wn, _debugProcess: () => Hn, _events: () => oi, _eventsCount: () => si, _exiting: () => Cn, _fatalExceptions: () => $n, _getActiveHandles: () => oa, _getActiveRequests: () => ia, _kill: () => Mn, _linkedBinding: () => ra, _maxListeners: () => ii, _preload_modules: () => ri, _rawDebug: () => An, _startProfilerIdleNotifier: () => zn, _stopProfilerIdleNotifier: () => Vn, _tickCallback: () => qn, abort: () => Jn, addListener: () => ai, allowedNodeEnvironmentFlags: () => Bn, arch: () => dn, argv: () => mn, argv0: () => ti, assert: () => sa, binding: () => wn, browser: () => En, chdir: () => xn, config: () => On, cpuUsage: () => tr, cwd: () => kn, debugPort: () => ei, default: () => po, dlopen: () => na, domain: () => Tn, emit: () => di, emitWarning: () => vn, env: () => pn, execArgv: () => gn, execPath: () => Zn, exit: () => jn, features: () => Dn, hasUncaughtExceptionCaptureCallback: () => aa, hrtime: () => br, kill: () => Nn, listeners: () => ca, memoryUsage: () => Ln, moduleLoadList: () => In, nextTick: () => ea, off: () => ci, on: () => ct, once: () => li, openStdin: () => Un, pid: () => Qn, platform: () => fn, ppid: () => Xn, prependListener: () => fi, prependOnceListener: () => pi, reallyExit: () => Pn, release: () => Sn, removeAllListeners: () => hi, removeListener: () => ui, resourceUsage: () => Rn, setSourceMapsEnabled: () => ni, setUncaughtExceptionCaptureCallback: () => Fn, stderr: () => Gn, stdin: () => Yn, stdout: () => Kn, title: () => hn, umask: () => _n, uptime: () => la, version: () => bn, versions: () => yn });
|
|
557
557
|
function fo(s) {
|
|
558
558
|
throw new Error("Node.js process " + s + " is not supported by JSPM core outside of Node.js");
|
|
559
559
|
}
|
|
560
560
|
function sc() {
|
|
561
|
-
!
|
|
561
|
+
!Mt || !Ot || (Mt = !1, Ot.length ? st = Ot.concat(st) : or = -1, st.length && Zs());
|
|
562
562
|
}
|
|
563
563
|
function Zs() {
|
|
564
|
-
if (!
|
|
564
|
+
if (!Mt) {
|
|
565
565
|
var s = setTimeout(sc, 0);
|
|
566
|
-
|
|
566
|
+
Mt = !0;
|
|
567
567
|
for (var e = st.length; e; ) {
|
|
568
|
-
for (
|
|
569
|
-
|
|
568
|
+
for (Ot = st, st = []; ++or < e; ) Ot && Ot[or].run();
|
|
569
|
+
or = -1, e = st.length;
|
|
570
570
|
}
|
|
571
|
-
|
|
571
|
+
Ot = null, Mt = !1, clearTimeout(s);
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
574
|
function ea(s) {
|
|
575
575
|
var e = new Array(arguments.length - 1);
|
|
576
576
|
if (arguments.length > 1) for (var t = 1; t < arguments.length; t++) e[t - 1] = arguments[t];
|
|
577
|
-
st.push(new ta(s, e)), st.length === 1 && !
|
|
577
|
+
st.push(new ta(s, e)), st.length === 1 && !Mt && setTimeout(Zs, 0);
|
|
578
578
|
}
|
|
579
579
|
function ta(s, e) {
|
|
580
580
|
this.fun = s, this.array = e;
|
|
581
581
|
}
|
|
582
|
-
function
|
|
582
|
+
function He() {
|
|
583
583
|
}
|
|
584
584
|
function ra(s) {
|
|
585
585
|
fo("_linkedBinding");
|
|
@@ -602,9 +602,9 @@ function aa() {
|
|
|
602
602
|
function la() {
|
|
603
603
|
return ht.now() / 1e3;
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function br(s) {
|
|
606
606
|
var e = Math.floor((Date.now() - ht.now()) * 1e-3), t = ht.now() * 1e-3, r = Math.floor(t) + e, o = Math.floor(t % 1 * 1e9);
|
|
607
|
-
return s && (r = r - s[0], o = o - s[1], o < 0 && (r--, o +=
|
|
607
|
+
return s && (r = r - s[0], o = o - s[1], o < 0 && (r--, o += yr)), [r, o];
|
|
608
608
|
}
|
|
609
609
|
function ct() {
|
|
610
610
|
return po;
|
|
@@ -612,8 +612,8 @@ function ct() {
|
|
|
612
612
|
function ca(s) {
|
|
613
613
|
return [];
|
|
614
614
|
}
|
|
615
|
-
var st,
|
|
616
|
-
le(), ue(), ce(), st = [],
|
|
615
|
+
var st, Mt, Ot, or, hn, dn, fn, pn, mn, gn, bn, yn, vn, wn, _n, kn, xn, Sn, En, An, In, Tn, Cn, On, Pn, Mn, tr, Rn, Ln, Nn, jn, Un, Bn, Dn, $n, Fn, qn, Hn, Wn, zn, Vn, Kn, Gn, Yn, Jn, Qn, Xn, Zn, ei, ti, ri, ni, ht, Zr, yr, ii, oi, si, ai, li, ci, ui, hi, di, fi, pi, po, ac = Je(() => {
|
|
616
|
+
le(), ue(), ce(), st = [], Mt = !1, or = -1, ta.prototype.run = function() {
|
|
617
617
|
this.fun.apply(null, this.array);
|
|
618
618
|
}, hn = "browser", dn = "x64", fn = "browser", pn = { PATH: "/usr/bin", LANG: typeof navigator < "u" ? navigator.language + ".UTF-8" : void 0, PWD: "/", HOME: "/home", TMP: "/tmp" }, mn = ["/usr/bin/node"], gn = [], bn = "v16.8.0", yn = {}, vn = function(s, e) {
|
|
619
619
|
console.warn((e ? e + ": " : "") + s);
|
|
@@ -624,18 +624,18 @@ var st, Pt, Ct, ir, hn, dn, fn, pn, mn, gn, bn, yn, vn, wn, _n, kn, xn, Sn, En,
|
|
|
624
624
|
}, kn = function() {
|
|
625
625
|
return "/";
|
|
626
626
|
}, xn = function(s) {
|
|
627
|
-
}, Sn = { name: "node", sourceUrl: "", headersUrl: "", libUrl: "" }, En = !0, An =
|
|
627
|
+
}, Sn = { name: "node", sourceUrl: "", headersUrl: "", libUrl: "" }, En = !0, An = He, In = [], Tn = {}, Cn = !1, On = {}, Pn = He, Mn = He, tr = function() {
|
|
628
628
|
return {};
|
|
629
|
-
}, Rn =
|
|
630
|
-
var e =
|
|
631
|
-
return typeof BigInt > "u" ? e[0] *
|
|
632
|
-
}, ii = 10, oi = {}, si = 0, ai = ct, li = ct, ci = ct, ui = ct, hi = ct, di =
|
|
629
|
+
}, Rn = tr, Ln = tr, Nn = He, jn = He, Un = He, Bn = {}, Dn = { inspector: !1, debug: !1, uv: !1, ipv6: !1, tls_alpn: !1, tls_sni: !1, tls_ocsp: !1, tls: !1, cached_builtins: !0 }, $n = He, Fn = He, qn = He, Hn = He, Wn = He, zn = He, Vn = He, Kn = void 0, Gn = void 0, Yn = void 0, Jn = He, Qn = 2, Xn = 1, Zn = "/bin/usr/node", ei = 9229, ti = "node", ri = [], ni = He, ht = { now: typeof performance < "u" ? performance.now.bind(performance) : void 0, timing: typeof performance < "u" ? performance.timing : void 0 }, ht.now === void 0 && (Zr = Date.now(), ht.timing && ht.timing.navigationStart && (Zr = ht.timing.navigationStart), ht.now = () => Date.now() - Zr), yr = 1e9, br.bigint = function(s) {
|
|
630
|
+
var e = br(s);
|
|
631
|
+
return typeof BigInt > "u" ? e[0] * yr + e[1] : BigInt(e[0] * yr) + BigInt(e[1]);
|
|
632
|
+
}, ii = 10, oi = {}, si = 0, ai = ct, li = ct, ci = ct, ui = ct, hi = ct, di = He, fi = ct, pi = ct, po = { version: bn, versions: yn, arch: dn, platform: fn, browser: En, release: Sn, _rawDebug: An, moduleLoadList: In, binding: wn, _linkedBinding: ra, _events: oi, _eventsCount: si, _maxListeners: ii, on: ct, addListener: ai, once: li, off: ci, removeListener: ui, removeAllListeners: hi, emit: di, prependListener: fi, prependOnceListener: pi, listeners: ca, domain: Tn, _exiting: Cn, config: On, dlopen: na, uptime: la, _getActiveRequests: ia, _getActiveHandles: oa, reallyExit: Pn, _kill: Mn, cpuUsage: tr, resourceUsage: Rn, memoryUsage: Ln, kill: Nn, exit: jn, openStdin: Un, allowedNodeEnvironmentFlags: Bn, assert: sa, features: Dn, _fatalExceptions: $n, setUncaughtExceptionCaptureCallback: Fn, hasUncaughtExceptionCaptureCallback: aa, emitWarning: vn, nextTick: ea, _tickCallback: qn, _debugProcess: Hn, _debugEnd: Wn, _startProfilerIdleNotifier: zn, _stopProfilerIdleNotifier: Vn, stdout: Kn, stdin: Yn, stderr: Gn, abort: Jn, umask: _n, chdir: xn, cwd: kn, env: pn, title: hn, argv: mn, execArgv: gn, pid: Qn, ppid: Xn, execPath: Zn, debugPort: ei, hrtime: br, argv0: ti, _preload_modules: ri, setSourceMapsEnabled: ni };
|
|
633
633
|
}), ce = Je(() => {
|
|
634
634
|
ac();
|
|
635
635
|
});
|
|
636
636
|
function lc() {
|
|
637
|
-
if (mi) return
|
|
638
|
-
mi = !0,
|
|
637
|
+
if (mi) return Dt;
|
|
638
|
+
mi = !0, Dt.byteLength = a, Dt.toByteArray = c, Dt.fromByteArray = p;
|
|
639
639
|
for (var s = [], e = [], t = typeof Uint8Array < "u" ? Uint8Array : Array, r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", o = 0, n = r.length; o < n; ++o) s[o] = r[o], e[r.charCodeAt(o)] = o;
|
|
640
640
|
e[45] = 62, e[95] = 63;
|
|
641
641
|
function i(b) {
|
|
@@ -669,10 +669,10 @@ function lc() {
|
|
|
669
669
|
for (var d, g = b.length, y = g % 3, w = [], m = 16383, _ = 0, x = g - y; _ < x; _ += m) w.push(h(b, _, _ + m > x ? x : _ + m));
|
|
670
670
|
return y === 1 ? (d = b[g - 1], w.push(s[d >> 2] + s[d << 4 & 63] + "==")) : y === 2 && (d = (b[g - 2] << 8) + b[g - 1], w.push(s[d >> 10] + s[d >> 4 & 63] + s[d << 2 & 63] + "=")), w.join("");
|
|
671
671
|
}
|
|
672
|
-
return
|
|
672
|
+
return Dt;
|
|
673
673
|
}
|
|
674
674
|
function cc() {
|
|
675
|
-
return gi ?
|
|
675
|
+
return gi ? rr : (gi = !0, rr.read = function(s, e, t, r, o) {
|
|
676
676
|
var n, i, a = o * 8 - r - 1, l = (1 << a) - 1, c = l >> 1, u = -7, h = t ? o - 1 : 0, p = t ? -1 : 1, b = s[e + h];
|
|
677
677
|
for (h += p, n = b & (1 << -u) - 1, b >>= -u, u += a; u > 0; n = n * 256 + s[e + h], h += p, u -= 8) ;
|
|
678
678
|
for (i = n & (1 << -u) - 1, n >>= -u, u += r; u > 0; i = i * 256 + s[e + h], h += p, u -= 8) ;
|
|
@@ -682,12 +682,12 @@ function cc() {
|
|
|
682
682
|
i = i + Math.pow(2, r), n = n - c;
|
|
683
683
|
}
|
|
684
684
|
return (b ? -1 : 1) * i * Math.pow(2, n - r);
|
|
685
|
-
},
|
|
685
|
+
}, rr.write = function(s, e, t, r, o, n) {
|
|
686
686
|
var i, a, l, c = n * 8 - o - 1, u = (1 << c) - 1, h = u >> 1, p = o === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, b = r ? 0 : n - 1, d = r ? 1 : -1, g = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
|
|
687
687
|
for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (a = isNaN(e) ? 1 : 0, i = u) : (i = Math.floor(Math.log(e) / Math.LN2), e * (l = Math.pow(2, -i)) < 1 && (i--, l *= 2), i + h >= 1 ? e += p / l : e += p * Math.pow(2, 1 - h), e * l >= 2 && (i++, l /= 2), i + h >= u ? (a = 0, i = u) : i + h >= 1 ? (a = (e * l - 1) * Math.pow(2, o), i = i + h) : (a = e * Math.pow(2, h - 1) * Math.pow(2, o), i = 0)); o >= 8; s[t + b] = a & 255, b += d, a /= 256, o -= 8) ;
|
|
688
688
|
for (i = i << o | a, c += o; c > 0; s[t + b] = i & 255, b += d, i /= 256, c -= 8) ;
|
|
689
689
|
s[t + b - d] |= g * 128;
|
|
690
|
-
},
|
|
690
|
+
}, rr);
|
|
691
691
|
}
|
|
692
692
|
function uc() {
|
|
693
693
|
if (bi) return _t;
|
|
@@ -1447,15 +1447,15 @@ function uc() {
|
|
|
1447
1447
|
}
|
|
1448
1448
|
return _t;
|
|
1449
1449
|
}
|
|
1450
|
-
var
|
|
1451
|
-
le(), ue(), ce(),
|
|
1452
|
-
}),
|
|
1453
|
-
|
|
1454
|
-
var ut,
|
|
1455
|
-
le(), ue(), ce(), hc(), ut = uc(), ut.Buffer, ut.SlowBuffer, ut.INSPECT_MAX_BYTES, ut.kMaxLength,
|
|
1450
|
+
var Dt, mi, rr, gi, _t, bi, hc = Je(() => {
|
|
1451
|
+
le(), ue(), ce(), Dt = {}, mi = !1, rr = {}, gi = !1, _t = {}, bi = !1;
|
|
1452
|
+
}), $e = {};
|
|
1453
|
+
zt($e, { Buffer: () => Hr, INSPECT_MAX_BYTES: () => ua, default: () => ut, kMaxLength: () => ha });
|
|
1454
|
+
var ut, Hr, ua, ha, Fe = Je(() => {
|
|
1455
|
+
le(), ue(), ce(), hc(), ut = uc(), ut.Buffer, ut.SlowBuffer, ut.INSPECT_MAX_BYTES, ut.kMaxLength, Hr = ut.Buffer, ua = ut.INSPECT_MAX_BYTES, ha = ut.kMaxLength;
|
|
1456
1456
|
}), ue = Je(() => {
|
|
1457
|
-
|
|
1458
|
-
}),
|
|
1457
|
+
Fe();
|
|
1458
|
+
}), Ue = pe((s, e) => {
|
|
1459
1459
|
le(), ue(), ce();
|
|
1460
1460
|
var t = class extends Error {
|
|
1461
1461
|
constructor(r) {
|
|
@@ -1543,7 +1543,7 @@ var ut, qr, ua, ha, $e = Je(() => {
|
|
|
1543
1543
|
} };
|
|
1544
1544
|
}), Ke = pe((s, e) => {
|
|
1545
1545
|
le(), ue(), ce();
|
|
1546
|
-
var { format: t, inspect: r } = da(), { AggregateError: o } =
|
|
1546
|
+
var { format: t, inspect: r } = da(), { AggregateError: o } = Ue(), n = globalThis.AggregateError || o, i = /* @__PURE__ */ Symbol("kIsNodeError"), a = ["string", "function", "number", "object", "Function", "Object", "boolean", "bigint", "symbol"], l = /^([A-Z][a-z0-9]*)+$/, c = "__node_internal_", u = {};
|
|
1547
1547
|
function h(m, _) {
|
|
1548
1548
|
if (!m) throw new u.ERR_INTERNAL_ASSERTION(_);
|
|
1549
1549
|
}
|
|
@@ -1693,14 +1693,14 @@ var ut, qr, ua, ha, $e = Je(() => {
|
|
|
1693
1693
|
} else v = r(x);
|
|
1694
1694
|
return `The value of "${m}" is out of range. It must be ${_}. Received ${v}`;
|
|
1695
1695
|
}, RangeError), d("ERR_MULTIPLE_CALLBACK", "Callback called multiple times", Error), d("ERR_METHOD_NOT_IMPLEMENTED", "The %s method is not implemented", Error), d("ERR_STREAM_ALREADY_FINISHED", "Cannot call %s after a stream was finished", Error), d("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable", Error), d("ERR_STREAM_DESTROYED", "Cannot call %s after a stream was destroyed", Error), d("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError), d("ERR_STREAM_PREMATURE_CLOSE", "Premature close", Error), d("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF", Error), d("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event", Error), d("ERR_STREAM_WRITE_AFTER_END", "write after end", Error), d("ERR_UNKNOWN_ENCODING", "Unknown encoding: %s", TypeError), e.exports = { AbortError: w, aggregateTwoErrors: g(y), hideStackFrames: g, codes: u };
|
|
1696
|
-
}),
|
|
1696
|
+
}), ar = pe((s, e) => {
|
|
1697
1697
|
le(), ue(), ce();
|
|
1698
1698
|
var { AbortController: t, AbortSignal: r } = typeof self < "u" ? self : typeof window < "u" ? window : void 0;
|
|
1699
1699
|
e.exports = t, e.exports.AbortSignal = r, e.exports.default = t;
|
|
1700
1700
|
}), St = {};
|
|
1701
|
-
|
|
1701
|
+
zt(St, { EventEmitter: () => fa, default: () => $t, defaultMaxListeners: () => pa, init: () => ma, listenerCount: () => ga, on: () => ba, once: () => ya });
|
|
1702
1702
|
function dc() {
|
|
1703
|
-
if (yi) return
|
|
1703
|
+
if (yi) return nr;
|
|
1704
1704
|
yi = !0;
|
|
1705
1705
|
var s = typeof Reflect == "object" ? Reflect : null, e = s && typeof s.apply == "function" ? s.apply : function(x, v, E) {
|
|
1706
1706
|
return Function.prototype.apply.call(x, v, E);
|
|
@@ -1719,7 +1719,7 @@ function dc() {
|
|
|
1719
1719
|
function n() {
|
|
1720
1720
|
n.init.call(this);
|
|
1721
1721
|
}
|
|
1722
|
-
|
|
1722
|
+
nr = n, nr.once = w, n.EventEmitter = n, n.prototype._events = void 0, n.prototype._eventsCount = 0, n.prototype._maxListeners = void 0;
|
|
1723
1723
|
var i = 10;
|
|
1724
1724
|
function a(x) {
|
|
1725
1725
|
if (typeof x != "function") throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof x);
|
|
@@ -1868,10 +1868,10 @@ function dc() {
|
|
|
1868
1868
|
});
|
|
1869
1869
|
else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof x);
|
|
1870
1870
|
}
|
|
1871
|
-
return
|
|
1871
|
+
return nr;
|
|
1872
1872
|
}
|
|
1873
|
-
var
|
|
1874
|
-
le(), ue(), ce(),
|
|
1873
|
+
var nr, yi, $t, fa, pa, ma, ga, ba, ya, Lt = Je(() => {
|
|
1874
|
+
le(), ue(), ce(), nr = {}, yi = !1, $t = dc(), $t.once, $t.once = function(s, e) {
|
|
1875
1875
|
return new Promise((t, r) => {
|
|
1876
1876
|
function o(...i) {
|
|
1877
1877
|
n !== void 0 && s.removeListener("error", n), t(i);
|
|
@@ -1881,7 +1881,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
1881
1881
|
s.removeListener(name, o), r(i);
|
|
1882
1882
|
}, s.once("error", n)), s.once(e, o);
|
|
1883
1883
|
});
|
|
1884
|
-
},
|
|
1884
|
+
}, $t.on = function(s, e) {
|
|
1885
1885
|
let t = [], r = [], o = null, n = !1, i = { async next() {
|
|
1886
1886
|
let c = t.shift();
|
|
1887
1887
|
if (c) return createIterResult(c, !1);
|
|
@@ -1909,10 +1909,10 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
1909
1909
|
let u = r.shift();
|
|
1910
1910
|
u ? u.reject(c) : o = c, i.return();
|
|
1911
1911
|
}
|
|
1912
|
-
}, { EventEmitter: fa, defaultMaxListeners: pa, init: ma, listenerCount: ga, on: ba, once: ya } =
|
|
1912
|
+
}, { EventEmitter: fa, defaultMaxListeners: pa, init: ma, listenerCount: ga, on: ba, once: ya } = $t;
|
|
1913
1913
|
}), Ye = pe((s, e) => {
|
|
1914
1914
|
le(), ue(), ce();
|
|
1915
|
-
var t = (
|
|
1915
|
+
var t = (Fe(), Me($e)), { format: r, inspect: o } = da(), { codes: { ERR_INVALID_ARG_TYPE: n } } = Ke(), { kResistStopPropagation: i, AggregateError: a, SymbolDispose: l } = Ue(), c = globalThis.AbortSignal || ar().AbortSignal, u = globalThis.AbortController || ar().AbortController, h = Object.getPrototypeOf(async function() {
|
|
1916
1916
|
}).constructor, p = globalThis.Blob || t.Blob, b = typeof p < "u" ? function(y) {
|
|
1917
1917
|
return y instanceof p;
|
|
1918
1918
|
} : function(y) {
|
|
@@ -1945,7 +1945,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
1945
1945
|
return ArrayBuffer.isView(y);
|
|
1946
1946
|
} }, isBlob: b, deprecate(y, w) {
|
|
1947
1947
|
return y;
|
|
1948
|
-
}, addAbortListener: (
|
|
1948
|
+
}, addAbortListener: (Lt(), Me(St)).addAbortListener || function(y, w) {
|
|
1949
1949
|
if (y === void 0) throw new n("signal", "AbortSignal", y);
|
|
1950
1950
|
d(y, "signal"), g(w, "listener");
|
|
1951
1951
|
let m;
|
|
@@ -1964,9 +1964,9 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
1964
1964
|
y.forEach((_) => _.removeEventListener("abort", m));
|
|
1965
1965
|
}, { once: !0 }), w.signal;
|
|
1966
1966
|
} }, e.exports.promisify.custom = /* @__PURE__ */ Symbol.for("nodejs.util.promisify.custom");
|
|
1967
|
-
}),
|
|
1967
|
+
}), lr = pe((s, e) => {
|
|
1968
1968
|
le(), ue(), ce();
|
|
1969
|
-
var { ArrayIsArray: t, ArrayPrototypeIncludes: r, ArrayPrototypeJoin: o, ArrayPrototypeMap: n, NumberIsInteger: i, NumberIsNaN: a, NumberMAX_SAFE_INTEGER: l, NumberMIN_SAFE_INTEGER: c, NumberParseInt: u, ObjectPrototypeHasOwnProperty: h, RegExpPrototypeExec: p, String: b, StringPrototypeToUpperCase: d, StringPrototypeTrim: g } =
|
|
1969
|
+
var { ArrayIsArray: t, ArrayPrototypeIncludes: r, ArrayPrototypeJoin: o, ArrayPrototypeMap: n, NumberIsInteger: i, NumberIsNaN: a, NumberMAX_SAFE_INTEGER: l, NumberMIN_SAFE_INTEGER: c, NumberParseInt: u, ObjectPrototypeHasOwnProperty: h, RegExpPrototypeExec: p, String: b, StringPrototypeToUpperCase: d, StringPrototypeTrim: g } = Ue(), { hideStackFrames: y, codes: { ERR_SOCKET_BAD_PORT: w, ERR_INVALID_ARG_TYPE: m, ERR_INVALID_ARG_VALUE: _, ERR_OUT_OF_RANGE: x, ERR_UNKNOWN_SIGNAL: v } } = Ke(), { normalizeEncoding: E } = Ye(), { isAsyncFunction: S, isArrayBufferView: I } = Ye().types, O = {};
|
|
1970
1970
|
function P(H) {
|
|
1971
1971
|
return H === (H | 0);
|
|
1972
1972
|
}
|
|
@@ -2086,7 +2086,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
2086
2086
|
throw new _("hints", H, 'must be an array or string of format "</styles.css>; rel=preload; as=style"');
|
|
2087
2087
|
}
|
|
2088
2088
|
e.exports = { isInt32: P, isUint32: j, parseFileMode: D, validateArray: te, validateStringArray: we, validateBooleanArray: K, validateAbortSignalArray: N, validateBoolean: Z, validateBuffer: W, validateDictionary: be, validateEncoding: G, validateFunction: oe, validateInt32: ae, validateInteger: U, validateNumber: re, validateObject: Q, validateOneOf: $, validatePlainFunction: R, validatePort: J, validateSignalName: ne, validateString: V, validateUint32: Y, validateUndefined: F, validateUnion: ee, validateAbortSignal: ge, validateLinkHeaderValue: ye };
|
|
2089
|
-
}),
|
|
2089
|
+
}), Nt = pe((s, e) => {
|
|
2090
2090
|
le(), ue(), ce();
|
|
2091
2091
|
var t = e.exports = {}, r, o;
|
|
2092
2092
|
function n() {
|
|
@@ -2174,7 +2174,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
2174
2174
|
};
|
|
2175
2175
|
}), mt = pe((s, e) => {
|
|
2176
2176
|
le(), ue(), ce();
|
|
2177
|
-
var { SymbolAsyncIterator: t, SymbolIterator: r, SymbolFor: o } =
|
|
2177
|
+
var { SymbolAsyncIterator: t, SymbolIterator: r, SymbolFor: o } = Ue(), n = o("nodejs.stream.destroyed"), i = o("nodejs.stream.errored"), a = o("nodejs.stream.readable"), l = o("nodejs.stream.writable"), c = o("nodejs.stream.disturbed"), u = o("nodejs.webstream.isClosedPromise"), h = o("nodejs.webstream.controllerErrorFunction");
|
|
2178
2178
|
function p(M, Q = !1) {
|
|
2179
2179
|
var be;
|
|
2180
2180
|
return !!(M && typeof M.pipe == "function" && typeof M.on == "function" && (!Q || typeof M.pause == "function" && typeof M.resume == "function") && (!M._writableState || ((be = M._readableState) === null || be === void 0 ? void 0 : be.readable) !== !1) && (!M._writableState || M._readableState));
|
|
@@ -2281,7 +2281,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
2281
2281
|
e.exports = { isDestroyed: v, kIsDestroyed: n, isDisturbed: $, kIsDisturbed: c, isErrored: Z, kIsErrored: i, isReadable: P, kIsReadable: a, kIsClosedPromise: u, kControllerErrorFunction: h, kIsWritable: l, isClosed: U, isDuplexNodeStream: d, isFinished: T, isIterable: x, isReadableNodeStream: p, isReadableStream: y, isReadableEnded: I, isReadableFinished: O, isReadableErrored: D, isNodeStream: g, isWebStream: _, isWritable: j, isWritableNodeStream: b, isWritableStream: w, isWritableEnded: E, isWritableFinished: S, isWritableErrored: q, isServerRequest: V, isServerResponse: Y, willEmitClose: re, isTransformStream: m };
|
|
2282
2282
|
}), Et = pe((s, e) => {
|
|
2283
2283
|
le(), ue(), ce();
|
|
2284
|
-
var t =
|
|
2284
|
+
var t = Nt(), { AbortError: r, codes: o } = Ke(), { ERR_INVALID_ARG_TYPE: n, ERR_STREAM_PREMATURE_CLOSE: i } = o, { kEmptyObject: a, once: l } = Ye(), { validateAbortSignal: c, validateFunction: u, validateObject: h, validateBoolean: p } = lr(), { Promise: b, PromisePrototypeThen: d, SymbolDispose: g } = Ue(), { isClosed: y, isReadable: w, isReadableNodeStream: m, isReadableStream: _, isReadableFinished: x, isReadableErrored: v, isWritable: E, isWritableNodeStream: S, isWritableStream: I, isWritableFinished: O, isWritableErrored: P, isNodeStream: j, willEmitClose: T, kIsClosedPromise: q } = mt(), D;
|
|
2285
2285
|
function U($) {
|
|
2286
2286
|
return $.setHeader && typeof $.abort == "function";
|
|
2287
2287
|
}
|
|
@@ -2361,9 +2361,9 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
2361
2361
|
});
|
|
2362
2362
|
}
|
|
2363
2363
|
e.exports = Y, e.exports.finished = re;
|
|
2364
|
-
}),
|
|
2364
|
+
}), Vt = pe((s, e) => {
|
|
2365
2365
|
le(), ue(), ce();
|
|
2366
|
-
var t =
|
|
2366
|
+
var t = Nt(), { aggregateTwoErrors: r, codes: { ERR_MULTIPLE_CALLBACK: o }, AbortError: n } = Ke(), { Symbol: i } = Ue(), { kIsDestroyed: a, isDestroyed: l, isFinished: c, isServerRequest: u } = mt(), h = i("kDestroy"), p = i("kConstruct");
|
|
2367
2367
|
function b(T, q, D) {
|
|
2368
2368
|
T && (T.stack, q && !q.errored && (q.errored = T), D && !D.errored && (D.errored = T));
|
|
2369
2369
|
}
|
|
@@ -2449,7 +2449,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
2449
2449
|
e.exports = { construct: v, destroyer: j, destroy: d, undestroy: _, errorOrDestroy: x };
|
|
2450
2450
|
}), mo = pe((s, e) => {
|
|
2451
2451
|
le(), ue(), ce();
|
|
2452
|
-
var { ArrayIsArray: t, ObjectSetPrototypeOf: r } =
|
|
2452
|
+
var { ArrayIsArray: t, ObjectSetPrototypeOf: r } = Ue(), { EventEmitter: o } = (Lt(), Me(St));
|
|
2453
2453
|
function n(a) {
|
|
2454
2454
|
o.call(this, a);
|
|
2455
2455
|
}
|
|
@@ -2484,9 +2484,9 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
2484
2484
|
!a._events || !a._events[l] ? a.on(l, c) : t(a._events[l]) ? a._events[l].unshift(c) : a._events[l] = [c, a._events[l]];
|
|
2485
2485
|
}
|
|
2486
2486
|
e.exports = { Stream: n, prependListener: i };
|
|
2487
|
-
}),
|
|
2487
|
+
}), Vr = pe((s, e) => {
|
|
2488
2488
|
le(), ue(), ce();
|
|
2489
|
-
var { SymbolDispose: t } =
|
|
2489
|
+
var { SymbolDispose: t } = Ue(), { AbortError: r, codes: o } = Ke(), { isNodeStream: n, isWebStream: i, kControllerErrorFunction: a } = mt(), l = Et(), { ERR_INVALID_ARG_TYPE: c } = o, u, h = (p, b) => {
|
|
2490
2490
|
if (typeof p != "object" || !("aborted" in p)) throw new c(b, "AbortSignal", p);
|
|
2491
2491
|
};
|
|
2492
2492
|
e.exports.addAbortSignal = function(p, b) {
|
|
@@ -2509,7 +2509,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
2509
2509
|
};
|
|
2510
2510
|
}), fc = pe((s, e) => {
|
|
2511
2511
|
le(), ue(), ce();
|
|
2512
|
-
var { StringPrototypeSlice: t, SymbolIterator: r, TypedArrayPrototypeSet: o, Uint8Array: n } =
|
|
2512
|
+
var { StringPrototypeSlice: t, SymbolIterator: r, TypedArrayPrototypeSet: o, Uint8Array: n } = Ue(), { Buffer: i } = (Fe(), Me($e)), { inspect: a } = Ye();
|
|
2513
2513
|
e.exports = class {
|
|
2514
2514
|
constructor() {
|
|
2515
2515
|
this.head = null, this.tail = null, this.length = 0;
|
|
@@ -2586,9 +2586,9 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
2586
2586
|
return a(this, { ...c, depth: 0, customInspect: !1 });
|
|
2587
2587
|
}
|
|
2588
2588
|
};
|
|
2589
|
-
}),
|
|
2589
|
+
}), Kr = pe((s, e) => {
|
|
2590
2590
|
le(), ue(), ce();
|
|
2591
|
-
var { MathFloor: t, NumberIsInteger: r } =
|
|
2591
|
+
var { MathFloor: t, NumberIsInteger: r } = Ue(), { validateInteger: o } = lr(), { ERR_INVALID_ARG_VALUE: n } = Ke().codes, i = 16 * 1024, a = 16;
|
|
2592
2592
|
function l(p, b, d) {
|
|
2593
2593
|
return p.highWaterMark != null ? p.highWaterMark : b ? p[d] : null;
|
|
2594
2594
|
}
|
|
@@ -2612,7 +2612,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
2612
2612
|
e.exports = { getHighWaterMark: h, getDefaultHighWaterMark: c, setDefaultHighWaterMark: u };
|
|
2613
2613
|
}), pc = pe((s, e) => {
|
|
2614
2614
|
le(), ue(), ce();
|
|
2615
|
-
var t = (
|
|
2615
|
+
var t = (Fe(), Me($e)), r = t.Buffer;
|
|
2616
2616
|
function o(i, a) {
|
|
2617
2617
|
for (var l in i) a[l] = i[l];
|
|
2618
2618
|
}
|
|
@@ -2782,7 +2782,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
2782
2782
|
}
|
|
2783
2783
|
}), va = pe((s, e) => {
|
|
2784
2784
|
le(), ue(), ce();
|
|
2785
|
-
var t =
|
|
2785
|
+
var t = Nt(), { PromisePrototypeThen: r, SymbolAsyncIterator: o, SymbolIterator: n } = Ue(), { Buffer: i } = (Fe(), Me($e)), { ERR_INVALID_ARG_TYPE: a, ERR_STREAM_NULL_VALUES: l } = Ke().codes;
|
|
2786
2786
|
function c(u, h, p) {
|
|
2787
2787
|
let b;
|
|
2788
2788
|
if (typeof h == "string" || h instanceof i) return new u({ objectMode: !0, ...p, read() {
|
|
@@ -2829,13 +2829,13 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
2829
2829
|
return g;
|
|
2830
2830
|
}
|
|
2831
2831
|
e.exports = c;
|
|
2832
|
-
}),
|
|
2832
|
+
}), Gr = pe((s, e) => {
|
|
2833
2833
|
le(), ue(), ce();
|
|
2834
|
-
var t =
|
|
2834
|
+
var t = Nt(), { ArrayPrototypeIndexOf: r, NumberIsInteger: o, NumberIsNaN: n, NumberParseInt: i, ObjectDefineProperties: a, ObjectKeys: l, ObjectSetPrototypeOf: c, Promise: u, SafeSet: h, SymbolAsyncDispose: p, SymbolAsyncIterator: b, Symbol: d } = Ue();
|
|
2835
2835
|
e.exports = se, se.ReadableState = ve;
|
|
2836
|
-
var { EventEmitter: g } = (
|
|
2836
|
+
var { EventEmitter: g } = (Lt(), Me(St)), { Stream: y, prependListener: w } = mo(), { Buffer: m } = (Fe(), Me($e)), { addAbortSignal: _ } = Vr(), x = Et(), v = Ye().debuglog("stream", (C) => {
|
|
2837
2837
|
v = C;
|
|
2838
|
-
}), E = fc(), S =
|
|
2838
|
+
}), E = fc(), S = Vt(), { getHighWaterMark: I, getDefaultHighWaterMark: O } = Kr(), { aggregateTwoErrors: P, codes: { ERR_INVALID_ARG_TYPE: j, 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 } = Ke(), { validateObject: Y } = lr(), V = d("kPaused"), { StringDecoder: re } = mc(), $ = va();
|
|
2839
2839
|
c(se.prototype, y.prototype), c(se, y);
|
|
2840
2840
|
var Z = () => {
|
|
2841
2841
|
}, { errorOrDestroy: M } = S, Q = 1, be = 2, te = 4, we = 8, K = 16, N = 32, ne = 64, W = 128, G = 256, J = 512, ge = 1024, oe = 2048, R = 4096, F = 8192, ee = 16384, de = 32768, fe = 65536, ye = 1 << 17, H = 1 << 18;
|
|
@@ -2925,7 +2925,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
2925
2925
|
L.state &= ~N, L.reading || (C = B(_e, L));
|
|
2926
2926
|
}
|
|
2927
2927
|
let Se;
|
|
2928
|
-
return C > 0 ? Se =
|
|
2928
|
+
return C > 0 ? Se = Ut(C, L) : Se = null, Se === null ? (L.needReadable = L.length <= L.highWaterMark, C = 0) : (L.length -= C, L.multiAwaitDrain ? L.awaitDrainWriters.clear() : L.awaitDrainWriters = null), L.length === 0 && (L.ended || (L.needReadable = !0), _e !== C && L.ended && nt(this)), Se !== null && !L.errorEmitted && !L.closeEmitted && (L.dataEmitted = !0, this.emit("data", Se)), Se;
|
|
2929
2929
|
};
|
|
2930
2930
|
function X(C, L) {
|
|
2931
2931
|
if (v("onEofChunk"), !L.ended) {
|
|
@@ -2962,23 +2962,23 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
2962
2962
|
let Se = (!L || L.end !== !1) && C !== t.stdout && C !== t.stderr ? Ve : It;
|
|
2963
2963
|
xe.endEmitted ? t.nextTick(Se) : _e.once("end", Se), C.on("unpipe", Be);
|
|
2964
2964
|
function Be(ot, lt) {
|
|
2965
|
-
v("onunpipe"), ot === _e && lt && lt.hasUnpiped === !1 && (lt.hasUnpiped = !0,
|
|
2965
|
+
v("onunpipe"), ot === _e && lt && lt.hasUnpiped === !1 && (lt.hasUnpiped = !0, Xt());
|
|
2966
2966
|
}
|
|
2967
2967
|
function Ve() {
|
|
2968
2968
|
v("onend"), C.end();
|
|
2969
2969
|
}
|
|
2970
|
-
let Ze,
|
|
2971
|
-
function
|
|
2972
|
-
v("cleanup"), C.removeListener("close", it), C.removeListener("finish", yt), Ze && C.removeListener("drain", Ze), C.removeListener("error", At), C.removeListener("unpipe", Be), _e.removeListener("end", Ve), _e.removeListener("end", It), _e.removeListener("data",
|
|
2970
|
+
let Ze, Qt = !1;
|
|
2971
|
+
function Xt() {
|
|
2972
|
+
v("cleanup"), C.removeListener("close", it), C.removeListener("finish", yt), Ze && C.removeListener("drain", Ze), C.removeListener("error", At), C.removeListener("unpipe", Be), _e.removeListener("end", Ve), _e.removeListener("end", It), _e.removeListener("data", dr), Qt = !0, Ze && xe.awaitDrainWriters && (!C._writableState || C._writableState.needDrain) && Ze();
|
|
2973
2973
|
}
|
|
2974
|
-
function
|
|
2975
|
-
|
|
2974
|
+
function Zt() {
|
|
2975
|
+
Qt || (xe.pipes.length === 1 && xe.pipes[0] === C ? (v("false write response, pause", 0), xe.awaitDrainWriters = C, xe.multiAwaitDrain = !1) : xe.pipes.length > 1 && xe.pipes.includes(C) && (v("false write response, pause", xe.awaitDrainWriters.size), xe.awaitDrainWriters.add(C)), _e.pause()), Ze || (Ze = Ee(_e, C), C.on("drain", Ze));
|
|
2976
2976
|
}
|
|
2977
|
-
_e.on("data",
|
|
2978
|
-
function
|
|
2977
|
+
_e.on("data", dr);
|
|
2978
|
+
function dr(ot) {
|
|
2979
2979
|
v("ondata");
|
|
2980
2980
|
let lt = C.write(ot);
|
|
2981
|
-
v("dest.write", lt), lt === !1 &&
|
|
2981
|
+
v("dest.write", lt), lt === !1 && Zt();
|
|
2982
2982
|
}
|
|
2983
2983
|
function At(ot) {
|
|
2984
2984
|
if (v("onerror", ot), It(), C.removeListener("error", At), C.listenerCount("error") === 0) {
|
|
@@ -2998,7 +2998,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
2998
2998
|
function It() {
|
|
2999
2999
|
v("unpipe"), _e.unpipe(C);
|
|
3000
3000
|
}
|
|
3001
|
-
return C.emit("pipe", _e), C.writableNeedDrain === !0 ?
|
|
3001
|
+
return C.emit("pipe", _e), C.writableNeedDrain === !0 ? Zt() : xe.flowing || (v("pipe resume"), _e.resume()), C;
|
|
3002
3002
|
};
|
|
3003
3003
|
function Ee(C, L) {
|
|
3004
3004
|
return function() {
|
|
@@ -3073,11 +3073,11 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
3073
3073
|
}
|
|
3074
3074
|
return this;
|
|
3075
3075
|
}, se.prototype[b] = function() {
|
|
3076
|
-
return
|
|
3076
|
+
return qe(this);
|
|
3077
3077
|
}, se.prototype.iterator = function(C) {
|
|
3078
|
-
return C !== void 0 && Y(C, "options"),
|
|
3078
|
+
return C !== void 0 && Y(C, "options"), qe(this, C);
|
|
3079
3079
|
};
|
|
3080
|
-
function
|
|
3080
|
+
function qe(C, L) {
|
|
3081
3081
|
typeof C.read != "function" && (C = se.wrap(C, { objectMode: !0 }));
|
|
3082
3082
|
let _e = rt(C, L);
|
|
3083
3083
|
return _e.stream = C, _e;
|
|
@@ -3146,8 +3146,8 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
3146
3146
|
return this[V] !== !1;
|
|
3147
3147
|
}, set(C) {
|
|
3148
3148
|
this[V] = !!C;
|
|
3149
|
-
} } }), se._fromList =
|
|
3150
|
-
function
|
|
3149
|
+
} } }), se._fromList = Ut;
|
|
3150
|
+
function Ut(C, L) {
|
|
3151
3151
|
if (L.length === 0) return null;
|
|
3152
3152
|
let _e;
|
|
3153
3153
|
return L.objectMode ? _e = L.buffer.shift() : !C || C >= L.length ? (L.decoder ? _e = L.buffer.join("") : L.buffer.length === 1 ? _e = L.buffer.first() : _e = L.buffer.concat(L.length), L.buffer.clear()) : _e = L.buffer.consume(C, L.decoder), _e;
|
|
@@ -3158,27 +3158,27 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
3158
3158
|
}
|
|
3159
3159
|
function Qe(C, L) {
|
|
3160
3160
|
if (v("endReadableNT", C.endEmitted, C.length), !C.errored && !C.closeEmitted && !C.endEmitted && C.length === 0) {
|
|
3161
|
-
if (C.endEmitted = !0, L.emit("end"), L.writable && L.allowHalfOpen === !1) t.nextTick(
|
|
3161
|
+
if (C.endEmitted = !0, L.emit("end"), L.writable && L.allowHalfOpen === !1) t.nextTick(hr, L);
|
|
3162
3162
|
else if (C.autoDestroy) {
|
|
3163
3163
|
let _e = L._writableState;
|
|
3164
3164
|
(!_e || _e.autoDestroy && (_e.finished || _e.writable === !1)) && L.destroy();
|
|
3165
3165
|
}
|
|
3166
3166
|
}
|
|
3167
3167
|
}
|
|
3168
|
-
function
|
|
3168
|
+
function hr(C) {
|
|
3169
3169
|
C.writable && !C.writableEnded && !C.destroyed && C.end();
|
|
3170
3170
|
}
|
|
3171
3171
|
se.from = function(C, L) {
|
|
3172
3172
|
return $(se, C, L);
|
|
3173
3173
|
};
|
|
3174
|
-
var
|
|
3175
|
-
function
|
|
3176
|
-
return
|
|
3174
|
+
var Bt;
|
|
3175
|
+
function Jt() {
|
|
3176
|
+
return Bt === void 0 && (Bt = {}), Bt;
|
|
3177
3177
|
}
|
|
3178
3178
|
se.fromWeb = function(C, L) {
|
|
3179
|
-
return
|
|
3179
|
+
return Jt().newStreamReadableFromReadableStream(C, L);
|
|
3180
3180
|
}, se.toWeb = function(C, L) {
|
|
3181
|
-
return
|
|
3181
|
+
return Jt().newReadableStreamFromStreamReadable(C, L);
|
|
3182
3182
|
}, se.wrap = function(C, L) {
|
|
3183
3183
|
var _e, xe;
|
|
3184
3184
|
return new se({ objectMode: (_e = (xe = C.readableObjectMode) !== null && xe !== void 0 ? xe : C.objectMode) !== null && _e !== void 0 ? _e : !0, ...L, destroy(Se, Be) {
|
|
@@ -3187,9 +3187,9 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
3187
3187
|
};
|
|
3188
3188
|
}), go = pe((s, e) => {
|
|
3189
3189
|
le(), ue(), ce();
|
|
3190
|
-
var t =
|
|
3190
|
+
var t = Nt(), { ArrayPrototypeSlice: r, Error: o, FunctionPrototypeSymbolHasInstance: n, ObjectDefineProperty: i, ObjectDefineProperties: a, ObjectSetPrototypeOf: l, StringPrototypeToLowerCase: c, Symbol: u, SymbolHasInstance: h } = Ue();
|
|
3191
3191
|
e.exports = Y, Y.WritableState = U;
|
|
3192
|
-
var { EventEmitter: p } = (
|
|
3192
|
+
var { EventEmitter: p } = (Lt(), Me(St)), b = mo().Stream, { Buffer: d } = (Fe(), Me($e)), g = Vt(), { addAbortSignal: y } = Vr(), { getHighWaterMark: w, getDefaultHighWaterMark: m } = Kr(), { ERR_INVALID_ARG_TYPE: _, ERR_METHOD_NOT_IMPLEMENTED: x, ERR_MULTIPLE_CALLBACK: v, ERR_STREAM_CANNOT_PIPE: E, ERR_STREAM_DESTROYED: S, ERR_STREAM_ALREADY_FINISHED: I, ERR_STREAM_NULL_VALUES: O, ERR_STREAM_WRITE_AFTER_END: P, ERR_UNKNOWN_ENCODING: j } = Ke().codes, { errorOrDestroy: T } = g;
|
|
3193
3193
|
l(Y.prototype, b.prototype), l(Y, b);
|
|
3194
3194
|
function q() {
|
|
3195
3195
|
}
|
|
@@ -3417,11 +3417,11 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
3417
3417
|
};
|
|
3418
3418
|
}), gc = pe((s, e) => {
|
|
3419
3419
|
le(), ue(), ce();
|
|
3420
|
-
var t =
|
|
3420
|
+
var t = Nt(), r = (Fe(), Me($e)), { isReadable: o, isWritable: n, isIterable: i, isNodeStream: a, isReadableNodeStream: l, isWritableNodeStream: c, isDuplexNodeStream: u, isReadableStream: h, isWritableStream: p } = mt(), b = Et(), { AbortError: d, codes: { ERR_INVALID_ARG_TYPE: g, ERR_INVALID_RETURN_VALUE: y } } = Ke(), { destroyer: w } = Vt(), m = ft(), _ = Gr(), x = go(), { createDeferredPromise: v } = Ye(), E = va(), S = globalThis.Blob || r.Blob, I = typeof S < "u" ? function(D) {
|
|
3421
3421
|
return D instanceof S;
|
|
3422
3422
|
} : function(D) {
|
|
3423
3423
|
return !1;
|
|
3424
|
-
}, O = globalThis.AbortController ||
|
|
3424
|
+
}, O = globalThis.AbortController || ar().AbortController, { FunctionPrototypeCall: P } = Ue(), j = class extends m {
|
|
3425
3425
|
constructor(D) {
|
|
3426
3426
|
super(D), D?.readable === !1 && (this._readableState.readable = !1, this._readableState.ended = !0, this._readableState.endEmitted = !0), D?.writable === !1 && (this._writableState.writable = !1, this._writableState.ending = !0, this._writableState.ended = !0, this._writableState.finished = !0);
|
|
3427
3427
|
}
|
|
@@ -3541,9 +3541,9 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
3541
3541
|
}
|
|
3542
3542
|
}), ft = pe((s, e) => {
|
|
3543
3543
|
le(), ue(), ce();
|
|
3544
|
-
var { ObjectDefineProperties: t, ObjectGetOwnPropertyDescriptor: r, ObjectKeys: o, ObjectSetPrototypeOf: n } =
|
|
3544
|
+
var { ObjectDefineProperties: t, ObjectGetOwnPropertyDescriptor: r, ObjectKeys: o, ObjectSetPrototypeOf: n } = Ue();
|
|
3545
3545
|
e.exports = l;
|
|
3546
|
-
var i =
|
|
3546
|
+
var i = Gr(), a = go();
|
|
3547
3547
|
n(l.prototype, i.prototype), n(l, i);
|
|
3548
3548
|
{
|
|
3549
3549
|
let p = o(a.prototype);
|
|
@@ -3576,9 +3576,9 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
3576
3576
|
};
|
|
3577
3577
|
}), wa = pe((s, e) => {
|
|
3578
3578
|
le(), ue(), ce();
|
|
3579
|
-
var { ObjectSetPrototypeOf: t, Symbol: r } =
|
|
3579
|
+
var { ObjectSetPrototypeOf: t, Symbol: r } = Ue();
|
|
3580
3580
|
e.exports = l;
|
|
3581
|
-
var { ERR_METHOD_NOT_IMPLEMENTED: o } = Ke().codes, n = ft(), { getHighWaterMark: i } =
|
|
3581
|
+
var { ERR_METHOD_NOT_IMPLEMENTED: o } = Ke().codes, n = ft(), { getHighWaterMark: i } = Kr();
|
|
3582
3582
|
t(l.prototype, n.prototype), t(l, n);
|
|
3583
3583
|
var a = r("kCallback");
|
|
3584
3584
|
function l(h) {
|
|
@@ -3617,7 +3617,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
3617
3617
|
};
|
|
3618
3618
|
}), _a = pe((s, e) => {
|
|
3619
3619
|
le(), ue(), ce();
|
|
3620
|
-
var { ObjectSetPrototypeOf: t } =
|
|
3620
|
+
var { ObjectSetPrototypeOf: t } = Ue();
|
|
3621
3621
|
e.exports = o;
|
|
3622
3622
|
var r = wa();
|
|
3623
3623
|
t(o.prototype, r.prototype), t(o, r);
|
|
@@ -3630,7 +3630,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
3630
3630
|
};
|
|
3631
3631
|
}), bo = pe((s, e) => {
|
|
3632
3632
|
le(), ue(), ce();
|
|
3633
|
-
var t =
|
|
3633
|
+
var t = Nt(), { ArrayIsArray: r, Promise: o, SymbolAsyncIterator: n, SymbolDispose: i } = Ue(), a = Et(), { once: l } = Ye(), c = Vt(), u = ft(), { aggregateTwoErrors: h, codes: { ERR_INVALID_ARG_TYPE: p, ERR_INVALID_RETURN_VALUE: b, ERR_MISSING_ARGS: d, ERR_STREAM_DESTROYED: g, ERR_STREAM_PREMATURE_CLOSE: y }, AbortError: w } = Ke(), { validateFunction: m, validateAbortSignal: _ } = lr(), { isIterable: x, isReadable: v, isReadableNodeStream: E, isNodeStream: S, isTransformStream: I, isWebStream: O, isReadableStream: P, isReadableFinished: j } = mt(), T = globalThis.AbortController || ar().AbortController, q, D, U;
|
|
3634
3634
|
function ae(te, we, K) {
|
|
3635
3635
|
let N = !1;
|
|
3636
3636
|
te.on("close", () => {
|
|
@@ -3652,7 +3652,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
3652
3652
|
throw new p("val", ["Readable", "Iterable", "AsyncIterable"], te);
|
|
3653
3653
|
}
|
|
3654
3654
|
async function* re(te) {
|
|
3655
|
-
D || (D =
|
|
3655
|
+
D || (D = Gr()), yield* D.prototype[n].call(te);
|
|
3656
3656
|
}
|
|
3657
3657
|
async function $(te, we, K, { end: N }) {
|
|
3658
3658
|
let ne, W = null, G = (oe) => {
|
|
@@ -3798,7 +3798,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
3798
3798
|
e.exports = { pipelineImpl: Q, pipeline: M };
|
|
3799
3799
|
}), ka = pe((s, e) => {
|
|
3800
3800
|
le(), ue(), ce();
|
|
3801
|
-
var { pipeline: t } = bo(), r = ft(), { destroyer: o } =
|
|
3801
|
+
var { pipeline: t } = bo(), r = ft(), { destroyer: o } = Vt(), { isNodeStream: n, isReadable: i, isWritable: a, isWebStream: l, isTransformStream: c, isWritableStream: u, isReadableStream: h } = mt(), { AbortError: p, codes: { ERR_INVALID_ARG_VALUE: b, ERR_MISSING_ARGS: d } } = Ke(), g = Et();
|
|
3802
3802
|
e.exports = function(...y) {
|
|
3803
3803
|
if (y.length === 0) throw new d("streams");
|
|
3804
3804
|
if (y.length === 1) return r.from(y[0]);
|
|
@@ -3894,7 +3894,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
3894
3894
|
};
|
|
3895
3895
|
}), bc = pe((s, e) => {
|
|
3896
3896
|
le(), ue(), ce();
|
|
3897
|
-
var t = globalThis.AbortController ||
|
|
3897
|
+
var t = globalThis.AbortController || ar().AbortController, { codes: { ERR_INVALID_ARG_VALUE: r, ERR_INVALID_ARG_TYPE: o, ERR_MISSING_ARGS: n, ERR_OUT_OF_RANGE: i }, AbortError: a } = Ke(), { validateAbortSignal: l, validateInteger: c, validateObject: u } = lr(), h = Ue().Symbol("kWeak"), p = Ue().Symbol("kResistStopPropagation"), { finished: b } = Et(), d = ka(), { addAbortSignalNoValidate: g } = Vr(), { isWritable: y, isNodeStream: w } = mt(), { deprecate: m } = Ye(), { ArrayPrototypePush: _, Boolean: x, MathFloor: v, Number: E, NumberIsNaN: S, Promise: I, PromiseReject: O, PromiseResolve: P, PromisePrototypeThen: j, Symbol: T } = Ue(), q = T("kEmpty"), D = T("kEof");
|
|
3898
3898
|
function U(W, G) {
|
|
3899
3899
|
if (G != null && u(G, "options"), G?.signal != null && l(G.signal, "options.signal"), w(W) && !y(W)) throw new r("stream", W, "must be writable");
|
|
3900
3900
|
let J = d(this, W);
|
|
@@ -4072,7 +4072,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
4072
4072
|
e.exports.streamReturningOperators = { asIndexedPairs: m(Y, "readable.asIndexedPairs will be removed in a future version."), drop: N, filter: M, flatMap: we, map: ae, take: ne, compose: U }, e.exports.promiseReturningOperators = { every: re, forEach: Z, reduce: be, toArray: te, some: V, find: $ };
|
|
4073
4073
|
}), xa = pe((s, e) => {
|
|
4074
4074
|
le(), ue(), ce();
|
|
4075
|
-
var { ArrayPrototypePop: t, Promise: r } =
|
|
4075
|
+
var { ArrayPrototypePop: t, Promise: r } = Ue(), { isIterable: o, isNodeStream: n, isWebStream: i } = mt(), { pipelineImpl: a } = bo(), { finished: l } = Et();
|
|
4076
4076
|
Sa();
|
|
4077
4077
|
function c(...u) {
|
|
4078
4078
|
return new r((h, p) => {
|
|
@@ -4089,8 +4089,8 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
4089
4089
|
e.exports = { finished: l, pipeline: c };
|
|
4090
4090
|
}), Sa = pe((s, e) => {
|
|
4091
4091
|
le(), ue(), ce();
|
|
4092
|
-
var { Buffer: t } = (
|
|
4093
|
-
m.isDestroyed = w.isDestroyed, m.isDisturbed = w.isDisturbed, m.isErrored = w.isErrored, m.isReadable = w.isReadable, m.isWritable = w.isWritable, m.Readable =
|
|
4092
|
+
var { Buffer: t } = (Fe(), Me($e)), { ObjectDefineProperty: r, ObjectKeys: o, ReflectApply: n } = Ue(), { promisify: { custom: i } } = Ye(), { streamReturningOperators: a, promiseReturningOperators: l } = bc(), { codes: { ERR_ILLEGAL_CONSTRUCTOR: c } } = Ke(), u = ka(), { setDefaultHighWaterMark: h, getDefaultHighWaterMark: p } = Kr(), { pipeline: b } = bo(), { destroyer: d } = Vt(), g = Et(), y = xa(), w = mt(), m = e.exports = mo().Stream;
|
|
4093
|
+
m.isDestroyed = w.isDestroyed, m.isDisturbed = w.isDisturbed, m.isErrored = w.isErrored, m.isReadable = w.isReadable, m.isWritable = w.isWritable, m.Readable = Gr();
|
|
4094
4094
|
for (let x of o(a)) {
|
|
4095
4095
|
let v = function(...S) {
|
|
4096
4096
|
if (new.target) throw c();
|
|
@@ -4106,7 +4106,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
4106
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 });
|
|
4107
4107
|
}
|
|
4108
4108
|
m.Writable = go(), m.Duplex = ft(), m.Transform = wa(), m.PassThrough = _a(), m.pipeline = b;
|
|
4109
|
-
var { addAbortSignal: _ } =
|
|
4109
|
+
var { addAbortSignal: _ } = Vr();
|
|
4110
4110
|
m.addAbortSignal = _, m.finished = g, m.destroy = d, m.compose = u, m.setDefaultHighWaterMark = h, m.getDefaultHighWaterMark = p, r(m, "promises", { __proto__: null, configurable: !0, enumerable: !0, get() {
|
|
4111
4111
|
return y;
|
|
4112
4112
|
} }), r(b, i, { __proto__: null, enumerable: !0, get() {
|
|
@@ -4118,7 +4118,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
4118
4118
|
}, m._uint8ArrayToBuffer = function(x) {
|
|
4119
4119
|
return t.from(x.buffer, x.byteOffset, x.byteLength);
|
|
4120
4120
|
};
|
|
4121
|
-
}),
|
|
4121
|
+
}), jt = pe((s, e) => {
|
|
4122
4122
|
le(), ue(), ce();
|
|
4123
4123
|
var t = Sa(), r = xa(), o = t.Readable.destroy;
|
|
4124
4124
|
e.exports = t.Readable, e.exports._uint8ArrayToBuffer = t._uint8ArrayToBuffer, e.exports._isUint8Array = t._isUint8Array, e.exports.isDisturbed = t.isDisturbed, e.exports.isErrored = t.isErrored, e.exports.isReadable = t.isReadable, e.exports.Readable = t.Readable, e.exports.Writable = t.Writable, e.exports.Duplex = t.Duplex, e.exports.Transform = t.Transform, e.exports.PassThrough = t.PassThrough, e.exports.addAbortSignal = t.addAbortSignal, e.exports.finished = t.finished, e.exports.destroy = t.destroy, e.exports.destroy = o, e.exports.pipeline = t.pipeline, e.exports.compose = t.compose, Object.defineProperty(t, "promises", { configurable: !0, enumerable: !0, get() {
|
|
@@ -4137,7 +4137,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
4137
4137
|
};
|
|
4138
4138
|
}), vc = pe((s, e) => {
|
|
4139
4139
|
le(), ue(), ce();
|
|
4140
|
-
var { Buffer: t } = (
|
|
4140
|
+
var { Buffer: t } = (Fe(), Me($e)), r = /* @__PURE__ */ Symbol.for("BufferList");
|
|
4141
4141
|
function o(n) {
|
|
4142
4142
|
if (!(this instanceof o)) return new o(n);
|
|
4143
4143
|
o._init.call(this, n);
|
|
@@ -4261,7 +4261,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
4261
4261
|
}, e.exports = o;
|
|
4262
4262
|
}), wc = pe((s, e) => {
|
|
4263
4263
|
le(), ue(), ce();
|
|
4264
|
-
var t =
|
|
4264
|
+
var t = jt().Duplex, r = yc(), o = vc();
|
|
4265
4265
|
function n(i) {
|
|
4266
4266
|
if (!(this instanceof n)) return new n(i);
|
|
4267
4267
|
if (typeof i == "function") {
|
|
@@ -4301,7 +4301,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
4301
4301
|
e.exports = t;
|
|
4302
4302
|
}), Ea = pe((s, e) => {
|
|
4303
4303
|
le(), ue(), ce();
|
|
4304
|
-
var t = e.exports, { Buffer: r } = (
|
|
4304
|
+
var t = e.exports, { Buffer: r } = (Fe(), Me($e));
|
|
4305
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 = {};
|
|
4306
4306
|
for (let n in t.requiredHeaderFlags) {
|
|
4307
4307
|
let i = t.requiredHeaderFlags[n];
|
|
@@ -4521,7 +4521,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
4521
4521
|
};
|
|
4522
4522
|
}), Sc = pe((s, e) => {
|
|
4523
4523
|
le(), ue(), ce();
|
|
4524
|
-
var t = wc(), { EventEmitter: r } = (
|
|
4524
|
+
var t = wc(), { EventEmitter: r } = (Lt(), Me(St)), o = _c(), n = Ea(), i = pt()("mqtt-packet:parser"), a = class vi extends r {
|
|
4525
4525
|
constructor() {
|
|
4526
4526
|
super(), this.parser = this.constructor.parser;
|
|
4527
4527
|
}
|
|
@@ -4874,7 +4874,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
4874
4874
|
e.exports = a;
|
|
4875
4875
|
}), Ec = pe((s, e) => {
|
|
4876
4876
|
le(), ue(), ce();
|
|
4877
|
-
var { Buffer: t } = (
|
|
4877
|
+
var { Buffer: t } = (Fe(), Me($e)), r = 65536, o = {}, n = t.isBuffer(t.from([1, 2]).subarray(0, 1));
|
|
4878
4878
|
function i(u) {
|
|
4879
4879
|
let h = t.allocUnsafe(2);
|
|
4880
4880
|
return h.writeUInt8(u >> 8, 0), h.writeUInt8(u & 255, 1), h;
|
|
@@ -4924,7 +4924,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
4924
4924
|
}
|
|
4925
4925
|
}), Aa = pe((s, e) => {
|
|
4926
4926
|
le(), ue(), ce();
|
|
4927
|
-
var t = Ea(), { Buffer: r } = (
|
|
4927
|
+
var t = Ea(), { Buffer: r } = (Fe(), Me($e)), o = r.allocUnsafe(0), n = r.from([0]), i = Ec(), a = Ac().nextTick, l = pt()("mqtt-packet:writeToStream"), c = i.cache, u = i.generateNumber, h = i.generateCache, p = i.genBufVariableByteInt, b = i.generate4ByteBuffer, d = Y, g = !0;
|
|
4928
4928
|
function y(K, N, ne) {
|
|
4929
4929
|
switch (l("generate called"), N.cork && (N.cork(), a(w, N)), g && (g = !1, h()), l("generate: packet.cmd: %s", K.cmd), K.cmd) {
|
|
4930
4930
|
case "connect":
|
|
@@ -5307,7 +5307,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
5307
5307
|
e.exports = y;
|
|
5308
5308
|
}), Ic = pe((s, e) => {
|
|
5309
5309
|
le(), ue(), ce();
|
|
5310
|
-
var t = Aa(), { EventEmitter: r } = (
|
|
5310
|
+
var t = Aa(), { EventEmitter: r } = (Lt(), Me(St)), { Buffer: o } = (Fe(), Me($e));
|
|
5311
5311
|
function n(a, l) {
|
|
5312
5312
|
let c = new i();
|
|
5313
5313
|
return t(a, c, l), c.concat();
|
|
@@ -5336,7 +5336,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
5336
5336
|
}), Cc = pe((s, e) => {
|
|
5337
5337
|
le(), ue(), ce(), e.exports = r;
|
|
5338
5338
|
function t(n) {
|
|
5339
|
-
return n instanceof
|
|
5339
|
+
return n instanceof Hr ? Hr.from(n) : new n.constructor(n.buffer.slice(), n.byteOffset, n.length);
|
|
5340
5340
|
}
|
|
5341
5341
|
function r(n) {
|
|
5342
5342
|
if (n = n || {}, n.circles) return o(n);
|
|
@@ -5452,7 +5452,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
5452
5452
|
}
|
|
5453
5453
|
}), Ta = pe((s) => {
|
|
5454
5454
|
le(), ue(), ce(), Object.defineProperty(s, "__esModule", { value: !0 });
|
|
5455
|
-
var e =
|
|
5455
|
+
var e = jt(), t = { objectMode: !0 }, r = { clean: !0 }, o = class {
|
|
5456
5456
|
options;
|
|
5457
5457
|
_inflights;
|
|
5458
5458
|
constructor(n) {
|
|
@@ -5543,7 +5543,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
5543
5543
|
s.default = t;
|
|
5544
5544
|
}), Mc = pe((s, e) => {
|
|
5545
5545
|
e.exports = { version: "5.15.0" };
|
|
5546
|
-
}),
|
|
5546
|
+
}), Kt = pe((s) => {
|
|
5547
5547
|
le(), ue(), ce(), Object.defineProperty(s, "__esModule", { value: !0 }), s.MQTTJS_VERSION = s.nextTick = s.ErrorWithSubackPacket = s.ErrorWithReasonCode = void 0, s.applyMixin = r;
|
|
5548
5548
|
var e = class Ca extends Error {
|
|
5549
5549
|
code;
|
|
@@ -5571,9 +5571,9 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
5571
5571
|
s.nextTick = typeof Le?.nextTick == "function" ? Le.nextTick : (o) => {
|
|
5572
5572
|
setTimeout(o, 0);
|
|
5573
5573
|
}, s.MQTTJS_VERSION = Mc().version;
|
|
5574
|
-
}),
|
|
5574
|
+
}), Yr = pe((s) => {
|
|
5575
5575
|
le(), ue(), ce(), Object.defineProperty(s, "__esModule", { value: !0 }), s.ReasonCodes = void 0;
|
|
5576
|
-
var e =
|
|
5576
|
+
var e = Kt();
|
|
5577
5577
|
s.ReasonCodes = { 0: "", 1: "Unacceptable protocol version", 2: "Identifier rejected", 3: "Server unavailable", 4: "Bad username or password", 5: "Not authorized", 16: "No matching subscribers", 17: "No subscription existed", 128: "Unspecified error", 129: "Malformed Packet", 130: "Protocol Error", 131: "Implementation specific error", 132: "Unsupported Protocol Version", 133: "Client Identifier not valid", 134: "Bad User Name or Password", 135: "Not authorized", 136: "Server unavailable", 137: "Server busy", 138: "Banned", 139: "Server shutting down", 140: "Bad authentication method", 141: "Keep Alive timeout", 142: "Session taken over", 143: "Topic Filter invalid", 144: "Topic Name invalid", 145: "Packet identifier in use", 146: "Packet Identifier not found", 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" };
|
|
5578
5578
|
var t = (r, o) => {
|
|
5579
5579
|
let { messageId: n } = o, i = o.cmd, a = null, l = r.outgoing[n] ? r.outgoing[n].cb : null, c = null;
|
|
@@ -5626,7 +5626,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
5626
5626
|
s.default = t;
|
|
5627
5627
|
}), Rc = pe((s) => {
|
|
5628
5628
|
le(), ue(), ce(), Object.defineProperty(s, "__esModule", { value: !0 });
|
|
5629
|
-
var e =
|
|
5629
|
+
var e = Kt(), t = Yr(), r = (o, n) => {
|
|
5630
5630
|
let { options: i } = o, a = i.protocolVersion, l = a === 5 ? n.reasonCode : n.returnCode;
|
|
5631
5631
|
if (a !== 5) {
|
|
5632
5632
|
let c = new e.ErrorWithReasonCode(`Protocol error: Auth packets are only supported in MQTT 5. Your version:${a}`, l);
|
|
@@ -5681,19 +5681,19 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
5681
5681
|
constructor(b) {
|
|
5682
5682
|
super(b), this.fill(0);
|
|
5683
5683
|
}
|
|
5684
|
-
}, h = class
|
|
5684
|
+
}, h = class ir {
|
|
5685
5685
|
heap;
|
|
5686
5686
|
length;
|
|
5687
5687
|
static #l = !1;
|
|
5688
5688
|
static create(d) {
|
|
5689
5689
|
let g = c(d);
|
|
5690
5690
|
if (!g) return [];
|
|
5691
|
-
|
|
5692
|
-
let y = new
|
|
5693
|
-
return
|
|
5691
|
+
ir.#l = !0;
|
|
5692
|
+
let y = new ir(d, g);
|
|
5693
|
+
return ir.#l = !1, y;
|
|
5694
5694
|
}
|
|
5695
5695
|
constructor(d, g) {
|
|
5696
|
-
if (!
|
|
5696
|
+
if (!ir.#l) throw new TypeError("instantiate Stack using Stack.create(n)");
|
|
5697
5697
|
this.heap = new g(d), this.length = 0;
|
|
5698
5698
|
}
|
|
5699
5699
|
push(d) {
|
|
@@ -7681,7 +7681,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
7681
7681
|
return i && i.__esModule ? i : { default: i };
|
|
7682
7682
|
};
|
|
7683
7683
|
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
7684
|
-
var t =
|
|
7684
|
+
var t = Yr(), r = e(Gc()), o = Kt(), n = (i, a) => {
|
|
7685
7685
|
i.log("_handleConnack");
|
|
7686
7686
|
let { options: l } = i, c = l.protocolVersion === 5 ? a.reasonCode : a.returnCode;
|
|
7687
7687
|
if (clearTimeout(i.connackTimer), delete i.topicAliasSend, a.properties) {
|
|
@@ -7720,7 +7720,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
7720
7720
|
return l && l.__esModule ? l : { default: l };
|
|
7721
7721
|
};
|
|
7722
7722
|
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
7723
|
-
var t = e(Pc()), r = e(Rc()), o = e(Yc()), n = e(
|
|
7723
|
+
var t = e(Pc()), r = e(Rc()), o = e(Yc()), n = e(Yr()), i = e(Jc()), a = (l, c, u) => {
|
|
7724
7724
|
let { options: h } = l;
|
|
7725
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;
|
|
7726
7726
|
switch (l.log("_handlePacket :: emitting packetreceive"), l.emit("packetreceive", c), c.cmd) {
|
|
@@ -7804,10 +7804,10 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
7804
7804
|
return n && n.__esModule ? n : { default: n };
|
|
7805
7805
|
};
|
|
7806
7806
|
Object.defineProperty(s, "__esModule", { value: !0 }), s.TypedEventEmitter = void 0;
|
|
7807
|
-
var t = e((
|
|
7807
|
+
var t = e((Lt(), Me(St))), r = Kt(), o = class {
|
|
7808
7808
|
};
|
|
7809
7809
|
s.TypedEventEmitter = o, (0, r.applyMixin)(o, t.default);
|
|
7810
|
-
}),
|
|
7810
|
+
}), Jr = pe((s, e) => {
|
|
7811
7811
|
le(), ue(), ce();
|
|
7812
7812
|
function t(r) {
|
|
7813
7813
|
"@babel/helpers - typeof";
|
|
@@ -7820,7 +7820,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
7820
7820
|
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7821
7821
|
}), eu = pe((s, e) => {
|
|
7822
7822
|
le(), ue(), ce();
|
|
7823
|
-
var t =
|
|
7823
|
+
var t = Jr().default;
|
|
7824
7824
|
function r(o, n) {
|
|
7825
7825
|
if (t(o) != "object" || !o) return o;
|
|
7826
7826
|
var i = o[Symbol.toPrimitive];
|
|
@@ -7834,7 +7834,7 @@ var rr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Je(() => {
|
|
|
7834
7834
|
e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7835
7835
|
}), tu = pe((s, e) => {
|
|
7836
7836
|
le(), ue(), ce();
|
|
7837
|
-
var t =
|
|
7837
|
+
var t = Jr().default, r = eu();
|
|
7838
7838
|
function o(n) {
|
|
7839
7839
|
var i = r(n, "string");
|
|
7840
7840
|
return t(i) == "symbol" ? i : i + "";
|
|
@@ -8117,7 +8117,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8117
8117
|
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
8118
8118
|
}), du = pe((s, e) => {
|
|
8119
8119
|
le(), ue(), ce();
|
|
8120
|
-
var t =
|
|
8120
|
+
var t = Jr().default;
|
|
8121
8121
|
function r(o) {
|
|
8122
8122
|
if (o != null) {
|
|
8123
8123
|
var n = o[typeof Symbol == "function" && Symbol.iterator || "@@iterator"], i = 0;
|
|
@@ -8321,7 +8321,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8321
8321
|
});
|
|
8322
8322
|
}), gu = pe((s, e) => {
|
|
8323
8323
|
le(), ue(), ce(), (function(t, r) {
|
|
8324
|
-
typeof s == "object" && typeof e < "u" ? r(s,
|
|
8324
|
+
typeof s == "object" && typeof e < "u" ? r(s, Jr(), mu(), Va()) : typeof define == "function" && define.amd ? define(["exports", "@babel/runtime/helpers/typeof", "broker-factory", "fast-unique-numbers"], r) : (t = typeof globalThis < "u" ? globalThis : t || self, r(t.workerTimersBroker = {}, t._typeof, t.brokerFactory, t.fastUniqueNumbers));
|
|
8325
8325
|
})(s, function(t, r, o, n) {
|
|
8326
8326
|
var i = /* @__PURE__ */ new Map([[0, null]]), a = /* @__PURE__ */ new Map([[0, null]]), l = o.createBroker({ clearInterval: function(u) {
|
|
8327
8327
|
var h = u.call;
|
|
@@ -8395,7 +8395,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8395
8395
|
};
|
|
8396
8396
|
t.clearInterval = a, t.clearTimeout = l, t.setInterval = c, t.setTimeout = u;
|
|
8397
8397
|
});
|
|
8398
|
-
}),
|
|
8398
|
+
}), Qr = pe((s) => {
|
|
8399
8399
|
le(), ue(), ce(), Object.defineProperty(s, "__esModule", { value: !0 }), s.isReactNativeBrowser = s.isWebWorker = void 0;
|
|
8400
8400
|
var e = () => typeof window < "u" ? typeof navigator < "u" && navigator.userAgent?.toLowerCase().indexOf(" electron/") > -1 && Le?.versions ? !Object.prototype.hasOwnProperty.call(Le.versions, "electron") : typeof window.document < "u" : !1, t = () => !!(typeof self == "object" && self?.constructor?.name?.includes("WorkerGlobalScope") && typeof Deno > "u"), r = () => typeof navigator < "u" && navigator.product === "ReactNative", o = e() || t() || r();
|
|
8401
8401
|
s.isWebWorker = t(), s.isReactNativeBrowser = r(), s.default = o;
|
|
@@ -8429,7 +8429,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8429
8429
|
};
|
|
8430
8430
|
})();
|
|
8431
8431
|
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
8432
|
-
var o = bu(), n = r(
|
|
8432
|
+
var o = bu(), n = r(Qr()), i = { set: o.setInterval, clear: o.clearInterval }, a = { set: (c, u) => setInterval(c, u), clear: (c) => clearInterval(c) }, l = (c) => {
|
|
8433
8433
|
switch (c) {
|
|
8434
8434
|
case "native":
|
|
8435
8435
|
return a;
|
|
@@ -8519,7 +8519,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8519
8519
|
return v && v.__esModule ? v : { default: v };
|
|
8520
8520
|
};
|
|
8521
8521
|
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
8522
|
-
var n = o(Tc()), i =
|
|
8522
|
+
var n = o(Tc()), i = jt(), a = o(Oc()), l = o(pt()), c = r(Ia()), u = o(Ta()), h = o(Qc()), p = o(za()), b = o(Xc()), d = Kt(), g = Zc(), y = o(Xa()), w = r(Qr()), m = globalThis.setImmediate || ((...v) => {
|
|
8523
8523
|
let E = v.shift();
|
|
8524
8524
|
(0, d.nextTick)(() => {
|
|
8525
8525
|
E(...v);
|
|
@@ -9048,7 +9048,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9048
9048
|
s.default = t;
|
|
9049
9049
|
});
|
|
9050
9050
|
function wu() {
|
|
9051
|
-
if (ki) return
|
|
9051
|
+
if (ki) return vr;
|
|
9052
9052
|
ki = !0;
|
|
9053
9053
|
let s = 2147483647, e = 36, t = 1, r = 26, o = 38, n = 700, i = 72, a = 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, d = Math.floor, g = String.fromCharCode;
|
|
9054
9054
|
function y(P) {
|
|
@@ -9128,7 +9128,7 @@ function wu() {
|
|
|
9128
9128
|
}
|
|
9129
9129
|
return j.join("");
|
|
9130
9130
|
};
|
|
9131
|
-
return
|
|
9131
|
+
return vr = { version: "2.3.1", ucs2: { decode: _, encode: x }, decode: I, encode: O, toASCII: function(P) {
|
|
9132
9132
|
return m(P, function(j) {
|
|
9133
9133
|
return u.test(j) ? "xn--" + O(j) : j;
|
|
9134
9134
|
});
|
|
@@ -9136,10 +9136,10 @@ function wu() {
|
|
|
9136
9136
|
return m(P, function(j) {
|
|
9137
9137
|
return c.test(j) ? I(j.slice(4).toLowerCase()) : j;
|
|
9138
9138
|
});
|
|
9139
|
-
} },
|
|
9139
|
+
} }, vr;
|
|
9140
9140
|
}
|
|
9141
|
-
var
|
|
9142
|
-
le(), ue(), ce(),
|
|
9141
|
+
var vr, ki, kt, _u = Je(() => {
|
|
9142
|
+
le(), ue(), ce(), vr = {}, ki = !1, kt = wu(), kt.decode, kt.encode, kt.toASCII, kt.toUnicode, kt.ucs2, kt.version;
|
|
9143
9143
|
});
|
|
9144
9144
|
function ku() {
|
|
9145
9145
|
return Si || (Si = !0, xi = function() {
|
|
@@ -9175,30 +9175,30 @@ function Au() {
|
|
|
9175
9175
|
function Za() {
|
|
9176
9176
|
return Li || (Li = !0, Ri = SyntaxError), Ri;
|
|
9177
9177
|
}
|
|
9178
|
-
function
|
|
9178
|
+
function cr() {
|
|
9179
9179
|
return ji || (ji = !0, Ni = TypeError), Ni;
|
|
9180
9180
|
}
|
|
9181
9181
|
function Iu() {
|
|
9182
9182
|
return Bi || (Bi = !0, Ui = URIError), Ui;
|
|
9183
9183
|
}
|
|
9184
9184
|
function Tu() {
|
|
9185
|
-
if (Di) return
|
|
9185
|
+
if (Di) return wr;
|
|
9186
9186
|
Di = !0;
|
|
9187
9187
|
var s = typeof Symbol < "u" && Symbol, e = ku();
|
|
9188
|
-
return
|
|
9188
|
+
return wr = function() {
|
|
9189
9189
|
return typeof s != "function" || typeof Symbol != "function" || typeof s("foo") != "symbol" || typeof /* @__PURE__ */ Symbol("bar") != "symbol" ? !1 : e();
|
|
9190
|
-
},
|
|
9190
|
+
}, wr;
|
|
9191
9191
|
}
|
|
9192
9192
|
function Cu() {
|
|
9193
|
-
if ($i) return
|
|
9193
|
+
if ($i) return _r;
|
|
9194
9194
|
$i = !0;
|
|
9195
9195
|
var s = { __proto__: null, foo: {} }, e = Object;
|
|
9196
|
-
return
|
|
9196
|
+
return _r = function() {
|
|
9197
9197
|
return { __proto__: s }.foo === s.foo && !(s instanceof e);
|
|
9198
|
-
},
|
|
9198
|
+
}, _r;
|
|
9199
9199
|
}
|
|
9200
9200
|
function Ou() {
|
|
9201
|
-
if (Fi) return
|
|
9201
|
+
if (Fi) return kr;
|
|
9202
9202
|
Fi = !0;
|
|
9203
9203
|
var s = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, t = Math.max, r = "[object Function]", o = function(a, l) {
|
|
9204
9204
|
for (var c = [], u = 0; u < a.length; u += 1) c[u] = a[u];
|
|
@@ -9211,7 +9211,7 @@ function Ou() {
|
|
|
9211
9211
|
for (var c = "", u = 0; u < a.length; u += 1) c += a[u], u + 1 < a.length && (c += l);
|
|
9212
9212
|
return c;
|
|
9213
9213
|
};
|
|
9214
|
-
return
|
|
9214
|
+
return kr = function(a) {
|
|
9215
9215
|
var l = this;
|
|
9216
9216
|
if (typeof l != "function" || e.apply(l) !== r) throw new TypeError(s + l);
|
|
9217
9217
|
for (var c = n(arguments, 1), u, h = function() {
|
|
@@ -9227,24 +9227,24 @@ function Ou() {
|
|
|
9227
9227
|
g.prototype = l.prototype, u.prototype = new g(), g.prototype = null;
|
|
9228
9228
|
}
|
|
9229
9229
|
return u;
|
|
9230
|
-
},
|
|
9230
|
+
}, kr;
|
|
9231
9231
|
}
|
|
9232
9232
|
function vo() {
|
|
9233
|
-
if (qi) return
|
|
9233
|
+
if (qi) return xr;
|
|
9234
9234
|
qi = !0;
|
|
9235
9235
|
var s = Ou();
|
|
9236
|
-
return
|
|
9236
|
+
return xr = Function.prototype.bind || s, xr;
|
|
9237
9237
|
}
|
|
9238
9238
|
function Pu() {
|
|
9239
|
-
if (Hi) return
|
|
9239
|
+
if (Hi) return Sr;
|
|
9240
9240
|
Hi = !0;
|
|
9241
9241
|
var s = Function.prototype.call, e = Object.prototype.hasOwnProperty, t = vo();
|
|
9242
|
-
return
|
|
9242
|
+
return Sr = t.call(s, e), Sr;
|
|
9243
9243
|
}
|
|
9244
|
-
function
|
|
9245
|
-
if (Wi) return
|
|
9244
|
+
function Gt() {
|
|
9245
|
+
if (Wi) return Er;
|
|
9246
9246
|
Wi = !0;
|
|
9247
|
-
var s, e = xu(), t = Su(), r = Eu(), o = Au(), n = Za(), i =
|
|
9247
|
+
var s, e = xu(), t = Su(), r = Eu(), o = Au(), n = Za(), i = cr(), a = Iu(), l = Function, c = function(Y) {
|
|
9248
9248
|
try {
|
|
9249
9249
|
return l('"use strict"; return (' + Y + ").constructor;")();
|
|
9250
9250
|
} catch {
|
|
@@ -9306,7 +9306,7 @@ function Kt() {
|
|
|
9306
9306
|
}
|
|
9307
9307
|
throw new n("intrinsic " + Y + " does not exist!");
|
|
9308
9308
|
};
|
|
9309
|
-
return
|
|
9309
|
+
return Er = function(Y, V) {
|
|
9310
9310
|
if (typeof Y != "string" || Y.length === 0) throw new i("intrinsic name must be a non-empty string");
|
|
9311
9311
|
if (arguments.length > 1 && typeof V != "boolean") throw new i('"allowMissing" argument must be a boolean');
|
|
9312
9312
|
if (T(/^%?[^%]*%?$/, Y) === null) throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
@@ -9329,35 +9329,35 @@ function Kt() {
|
|
|
9329
9329
|
}
|
|
9330
9330
|
}
|
|
9331
9331
|
return Q;
|
|
9332
|
-
},
|
|
9332
|
+
}, Er;
|
|
9333
9333
|
}
|
|
9334
9334
|
function wo() {
|
|
9335
|
-
if (zi) return
|
|
9335
|
+
if (zi) return Ar;
|
|
9336
9336
|
zi = !0;
|
|
9337
|
-
var s =
|
|
9337
|
+
var s = Gt(), e = s("%Object.defineProperty%", !0) || !1;
|
|
9338
9338
|
if (e) try {
|
|
9339
9339
|
e({}, "a", { value: 1 });
|
|
9340
9340
|
} catch {
|
|
9341
9341
|
e = !1;
|
|
9342
9342
|
}
|
|
9343
|
-
return
|
|
9343
|
+
return Ar = e, Ar;
|
|
9344
9344
|
}
|
|
9345
9345
|
function el() {
|
|
9346
|
-
if (Vi) return
|
|
9346
|
+
if (Vi) return Ir;
|
|
9347
9347
|
Vi = !0;
|
|
9348
|
-
var s =
|
|
9348
|
+
var s = Gt(), e = s("%Object.getOwnPropertyDescriptor%", !0);
|
|
9349
9349
|
if (e) try {
|
|
9350
9350
|
e([], "length");
|
|
9351
9351
|
} catch {
|
|
9352
9352
|
e = null;
|
|
9353
9353
|
}
|
|
9354
|
-
return
|
|
9354
|
+
return Ir = e, Ir;
|
|
9355
9355
|
}
|
|
9356
9356
|
function Mu() {
|
|
9357
|
-
if (Ki) return
|
|
9357
|
+
if (Ki) return Tr;
|
|
9358
9358
|
Ki = !0;
|
|
9359
|
-
var s = wo(), e = Za(), t =
|
|
9360
|
-
return
|
|
9359
|
+
var s = wo(), e = Za(), t = cr(), r = el();
|
|
9360
|
+
return Tr = function(o, n, i) {
|
|
9361
9361
|
if (!o || typeof o != "object" && typeof o != "function") throw new t("`obj` must be an object or a function`");
|
|
9362
9362
|
if (typeof n != "string" && typeof n != "symbol") throw new t("`property` must be a string or a symbol`");
|
|
9363
9363
|
if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null) throw new t("`nonEnumerable`, if provided, must be a boolean or null");
|
|
@@ -9368,10 +9368,10 @@ function Mu() {
|
|
|
9368
9368
|
if (s) s(o, n, { configurable: c === null && h ? h.configurable : !c, enumerable: a === null && h ? h.enumerable : !a, value: i, writable: l === null && h ? h.writable : !l });
|
|
9369
9369
|
else if (u || !a && !l && !c) o[n] = i;
|
|
9370
9370
|
else throw new e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
9371
|
-
},
|
|
9371
|
+
}, Tr;
|
|
9372
9372
|
}
|
|
9373
9373
|
function Ru() {
|
|
9374
|
-
if (Gi) return
|
|
9374
|
+
if (Gi) return Cr;
|
|
9375
9375
|
Gi = !0;
|
|
9376
9376
|
var s = wo(), e = function() {
|
|
9377
9377
|
return !!s;
|
|
@@ -9383,13 +9383,13 @@ function Ru() {
|
|
|
9383
9383
|
} catch {
|
|
9384
9384
|
return !0;
|
|
9385
9385
|
}
|
|
9386
|
-
},
|
|
9386
|
+
}, Cr = e, Cr;
|
|
9387
9387
|
}
|
|
9388
9388
|
function Lu() {
|
|
9389
|
-
if (Yi) return
|
|
9389
|
+
if (Yi) return Or;
|
|
9390
9390
|
Yi = !0;
|
|
9391
|
-
var s =
|
|
9392
|
-
return
|
|
9391
|
+
var s = Gt(), e = Mu(), t = Ru()(), r = el(), o = cr(), n = s("%Math.floor%");
|
|
9392
|
+
return Or = function(i, a) {
|
|
9393
9393
|
if (typeof i != "function") throw new o("`fn` is not a function");
|
|
9394
9394
|
if (typeof a != "number" || a < 0 || a > 4294967295 || n(a) !== a) throw new o("`length` must be a positive 32-bit integer");
|
|
9395
9395
|
var l = arguments.length > 2 && !!arguments[2], c = !0, u = !0;
|
|
@@ -9398,13 +9398,13 @@ function Lu() {
|
|
|
9398
9398
|
h && !h.configurable && (c = !1), h && !h.writable && (u = !1);
|
|
9399
9399
|
}
|
|
9400
9400
|
return (c || u || !l) && (t ? e(i, "length", a, !0, !0) : e(i, "length", a)), i;
|
|
9401
|
-
},
|
|
9401
|
+
}, Or;
|
|
9402
9402
|
}
|
|
9403
9403
|
function Nu() {
|
|
9404
|
-
if (Ji) return
|
|
9404
|
+
if (Ji) return Ft;
|
|
9405
9405
|
Ji = !0;
|
|
9406
|
-
var s = vo(), e =
|
|
9407
|
-
|
|
9406
|
+
var s = vo(), e = Gt(), t = Lu(), r = cr(), o = e("%Function.prototype.apply%"), n = e("%Function.prototype.call%"), i = e("%Reflect.apply%", !0) || s.call(n, o), a = wo(), l = e("%Math.max%");
|
|
9407
|
+
Ft = function(u) {
|
|
9408
9408
|
if (typeof u != "function") throw new r("a function is required");
|
|
9409
9409
|
var h = i(s, n, arguments);
|
|
9410
9410
|
return t(h, 1 + l(0, u.length - (arguments.length - 1)), !0);
|
|
@@ -9412,46 +9412,46 @@ function Nu() {
|
|
|
9412
9412
|
var c = function() {
|
|
9413
9413
|
return i(s, o, arguments);
|
|
9414
9414
|
};
|
|
9415
|
-
return a ? a(
|
|
9415
|
+
return a ? a(Ft, "apply", { value: c }) : Ft.apply = c, Ft;
|
|
9416
9416
|
}
|
|
9417
9417
|
function ju() {
|
|
9418
|
-
if (Qi) return
|
|
9418
|
+
if (Qi) return Pr;
|
|
9419
9419
|
Qi = !0;
|
|
9420
|
-
var s =
|
|
9421
|
-
return
|
|
9420
|
+
var s = Gt(), e = Nu(), t = e(s("String.prototype.indexOf"));
|
|
9421
|
+
return Pr = function(r, o) {
|
|
9422
9422
|
var n = s(r, !!o);
|
|
9423
9423
|
return typeof n == "function" && t(r, ".prototype.") > -1 ? e(n) : n;
|
|
9424
|
-
},
|
|
9424
|
+
}, Pr;
|
|
9425
9425
|
}
|
|
9426
|
-
var xi, Si, Ei, Ai, Ii, Ti, Ci, Oi, Pi, Mi, Ri, Li, Ni, ji, Ui, Bi,
|
|
9427
|
-
le(), ue(), ce(), xi = {}, Si = !1, Ei = {}, Ai = !1, Ii = {}, Ti = !1, Ci = {}, Oi = !1, Pi = {}, Mi = !1, Ri = {}, Li = !1, Ni = {}, ji = !1, Ui = {}, Bi = !1,
|
|
9426
|
+
var xi, Si, Ei, Ai, Ii, Ti, Ci, Oi, Pi, Mi, Ri, Li, Ni, ji, Ui, Bi, wr, Di, _r, $i, kr, Fi, xr, qi, Sr, Hi, Er, Wi, Ar, zi, Ir, Vi, Tr, Ki, Cr, Gi, Or, Yi, Ft, Ji, Pr, Qi, Uu = Je(() => {
|
|
9427
|
+
le(), ue(), ce(), xi = {}, Si = !1, Ei = {}, Ai = !1, Ii = {}, Ti = !1, Ci = {}, Oi = !1, Pi = {}, Mi = !1, Ri = {}, Li = !1, Ni = {}, ji = !1, Ui = {}, Bi = !1, wr = {}, Di = !1, _r = {}, $i = !1, kr = {}, Fi = !1, xr = {}, qi = !1, Sr = {}, Hi = !1, Er = {}, Wi = !1, Ar = {}, zi = !1, Ir = {}, Vi = !1, Tr = {}, Ki = !1, Cr = {}, Gi = !1, Or = {}, Yi = !1, Ft = {}, Ji = !1, Pr = {}, Qi = !1;
|
|
9428
9428
|
});
|
|
9429
9429
|
function _o(s) {
|
|
9430
9430
|
throw new Error("Node.js process " + s + " is not supported by JSPM core outside of Node.js");
|
|
9431
9431
|
}
|
|
9432
9432
|
function Bu() {
|
|
9433
|
-
!
|
|
9433
|
+
!Rt || !Pt || (Rt = !1, Pt.length ? at = Pt.concat(at) : sr = -1, at.length && tl());
|
|
9434
9434
|
}
|
|
9435
9435
|
function tl() {
|
|
9436
|
-
if (!
|
|
9436
|
+
if (!Rt) {
|
|
9437
9437
|
var s = setTimeout(Bu, 0);
|
|
9438
|
-
|
|
9438
|
+
Rt = !0;
|
|
9439
9439
|
for (var e = at.length; e; ) {
|
|
9440
|
-
for (
|
|
9441
|
-
|
|
9440
|
+
for (Pt = at, at = []; ++sr < e; ) Pt && Pt[sr].run();
|
|
9441
|
+
sr = -1, e = at.length;
|
|
9442
9442
|
}
|
|
9443
|
-
|
|
9443
|
+
Pt = null, Rt = !1, clearTimeout(s);
|
|
9444
9444
|
}
|
|
9445
9445
|
}
|
|
9446
9446
|
function Du(s) {
|
|
9447
9447
|
var e = new Array(arguments.length - 1);
|
|
9448
9448
|
if (arguments.length > 1) for (var t = 1; t < arguments.length; t++) e[t - 1] = arguments[t];
|
|
9449
|
-
at.push(new rl(s, e)), at.length === 1 && !
|
|
9449
|
+
at.push(new rl(s, e)), at.length === 1 && !Rt && setTimeout(tl, 0);
|
|
9450
9450
|
}
|
|
9451
9451
|
function rl(s, e) {
|
|
9452
9452
|
this.fun = s, this.array = e;
|
|
9453
9453
|
}
|
|
9454
|
-
function
|
|
9454
|
+
function We() {
|
|
9455
9455
|
}
|
|
9456
9456
|
function $u(s) {
|
|
9457
9457
|
_o("_linkedBinding");
|
|
@@ -9476,7 +9476,7 @@ function Vu() {
|
|
|
9476
9476
|
}
|
|
9477
9477
|
function en(s) {
|
|
9478
9478
|
var e = Math.floor((Date.now() - dt.now()) * 1e-3), t = dt.now() * 1e-3, r = Math.floor(t) + e, o = Math.floor(t % 1 * 1e9);
|
|
9479
|
-
return s && (r = r - s[0], o = o - s[1], o < 0 && (r--, o +=
|
|
9479
|
+
return s && (r = r - s[0], o = o - s[1], o < 0 && (r--, o += Mr)), [r, o];
|
|
9480
9480
|
}
|
|
9481
9481
|
function vt() {
|
|
9482
9482
|
return ko;
|
|
@@ -9484,8 +9484,8 @@ function vt() {
|
|
|
9484
9484
|
function Ku(s) {
|
|
9485
9485
|
return [];
|
|
9486
9486
|
}
|
|
9487
|
-
var at,
|
|
9488
|
-
le(), ue(), ce(), at = [],
|
|
9487
|
+
var at, Rt, Pt, sr, Lo, No, jo, Uo, Bo, Do, $o, Fo, qo, Ho, Wo, zo, Vo, Ko, Go, Yo, Jo, Qo, Xo, Zo, es, fr, ts, rs, ns, is, os, ss, as, ls, cs, us, hs, ds, fs, ps, ms, gs, bs, ys, vs, ws, _s, ks, xs, Ss, Es, dt, tn, Mr, As, Is, Ts, Cs, Os, Ps, Ms, Rs, Ls, Ns, js, ko, nl = Je(() => {
|
|
9488
|
+
le(), ue(), ce(), at = [], Rt = !1, sr = -1, rl.prototype.run = function() {
|
|
9489
9489
|
this.fun.apply(null, this.array);
|
|
9490
9490
|
}, Lo = "browser", No = "x64", jo = "browser", Uo = { PATH: "/usr/bin", LANG: navigator.language + ".UTF-8", PWD: "/", HOME: "/home", TMP: "/tmp" }, Bo = ["/usr/bin/node"], Do = [], $o = "v16.8.0", Fo = {}, qo = function(s, e) {
|
|
9491
9491
|
console.warn((e ? e + ": " : "") + s);
|
|
@@ -9496,15 +9496,15 @@ var at, Mt, Ot, or, Lo, No, jo, Uo, Bo, Do, $o, Fo, qo, Ho, Wo, zo, Vo, Ko, Go,
|
|
|
9496
9496
|
}, zo = function() {
|
|
9497
9497
|
return "/";
|
|
9498
9498
|
}, Vo = function(s) {
|
|
9499
|
-
}, Ko = { name: "node", sourceUrl: "", headersUrl: "", libUrl: "" }, Go =
|
|
9499
|
+
}, Ko = { name: "node", sourceUrl: "", headersUrl: "", libUrl: "" }, Go = We, Yo = [], Jo = {}, Qo = !1, Xo = {}, Zo = We, es = We, fr = function() {
|
|
9500
9500
|
return {};
|
|
9501
|
-
}, ts =
|
|
9501
|
+
}, ts = fr, rs = fr, ns = We, is = We, os = We, ss = {}, as = { inspector: !1, debug: !1, uv: !1, ipv6: !1, tls_alpn: !1, tls_sni: !1, tls_ocsp: !1, tls: !1, cached_builtins: !0 }, ls = We, cs = We, us = We, hs = We, ds = We, fs = We, ps = We, ms = void 0, gs = void 0, bs = void 0, ys = We, vs = 2, ws = 1, _s = "/bin/usr/node", ks = 9229, xs = "node", Ss = [], Es = We, dt = { now: typeof performance < "u" ? performance.now.bind(performance) : void 0, timing: typeof performance < "u" ? performance.timing : void 0 }, dt.now === void 0 && (tn = Date.now(), dt.timing && dt.timing.navigationStart && (tn = dt.timing.navigationStart), dt.now = () => Date.now() - tn), Mr = 1e9, en.bigint = function(s) {
|
|
9502
9502
|
var e = en(s);
|
|
9503
|
-
return typeof BigInt > "u" ? e[0] *
|
|
9504
|
-
}, As = 10, Is = {}, Ts = 0, Cs = vt, Os = vt, Ps = vt, Ms = vt, Rs = vt, Ls =
|
|
9503
|
+
return typeof BigInt > "u" ? e[0] * Mr + e[1] : BigInt(e[0] * Mr) + BigInt(e[1]);
|
|
9504
|
+
}, As = 10, Is = {}, Ts = 0, Cs = vt, Os = vt, Ps = vt, Ms = vt, Rs = vt, Ls = We, Ns = vt, js = vt, ko = { version: $o, versions: Fo, arch: No, platform: jo, release: Ko, _rawDebug: Go, moduleLoadList: Yo, binding: Ho, _linkedBinding: $u, _events: Is, _eventsCount: Ts, _maxListeners: As, on: vt, addListener: Cs, once: Os, off: Ps, removeListener: Ms, removeAllListeners: Rs, emit: Ls, prependListener: Ns, prependOnceListener: js, listeners: Ku, domain: Jo, _exiting: Qo, config: Xo, dlopen: Fu, uptime: Vu, _getActiveRequests: qu, _getActiveHandles: Hu, reallyExit: Zo, _kill: es, cpuUsage: fr, resourceUsage: ts, memoryUsage: rs, kill: ns, exit: is, openStdin: os, allowedNodeEnvironmentFlags: ss, assert: Wu, features: as, _fatalExceptions: ls, setUncaughtExceptionCaptureCallback: cs, hasUncaughtExceptionCaptureCallback: zu, emitWarning: qo, nextTick: Du, _tickCallback: us, _debugProcess: hs, _debugEnd: ds, _startProfilerIdleNotifier: fs, _stopProfilerIdleNotifier: ps, stdout: ms, stdin: bs, stderr: gs, abort: ys, umask: Wo, chdir: Vo, cwd: zo, env: Uo, title: Lo, argv: Bo, execArgv: Do, pid: vs, ppid: ws, execPath: _s, debugPort: ks, hrtime: en, argv0: xs, _preload_modules: Ss, setSourceMapsEnabled: Es };
|
|
9505
9505
|
});
|
|
9506
9506
|
function Gu() {
|
|
9507
|
-
if (Xi) return
|
|
9507
|
+
if (Xi) return Rr;
|
|
9508
9508
|
Xi = !0;
|
|
9509
9509
|
var s = ko;
|
|
9510
9510
|
function e(n) {
|
|
@@ -9652,14 +9652,14 @@ function Gu() {
|
|
|
9652
9652
|
}
|
|
9653
9653
|
return u === -1 || p === -1 || g === 0 || g === 1 && u === p - 1 && u === h + 1 ? p !== -1 && (h === 0 && l ? i.base = i.name = n.slice(1, p) : i.base = i.name = n.slice(h, p)) : (h === 0 && l ? (i.name = n.slice(1, u), i.base = n.slice(1, p)) : (i.name = n.slice(h, u), i.base = n.slice(h, p)), i.ext = n.slice(u, p)), h > 0 ? i.dir = n.slice(0, h - 1) : l && (i.dir = "/"), i;
|
|
9654
9654
|
}, sep: "/", delimiter: ":", win32: null, posix: null };
|
|
9655
|
-
return o.posix = o,
|
|
9655
|
+
return o.posix = o, Rr = o, Rr;
|
|
9656
9656
|
}
|
|
9657
|
-
var
|
|
9658
|
-
le(), ue(), ce(), nl(),
|
|
9657
|
+
var Rr, Xi, Zi, Yu = Je(() => {
|
|
9658
|
+
le(), ue(), ce(), nl(), Rr = {}, Xi = !1, Zi = Gu();
|
|
9659
9659
|
}), il = {};
|
|
9660
|
-
|
|
9660
|
+
zt(il, { URL: () => pl, Url: () => cl, default: () => ze, fileURLToPath: () => sl, format: () => ul, parse: () => fl, pathToFileURL: () => al, resolve: () => hl, resolveObject: () => dl });
|
|
9661
9661
|
function Ju() {
|
|
9662
|
-
if (eo) return
|
|
9662
|
+
if (eo) return Lr;
|
|
9663
9663
|
eo = !0;
|
|
9664
9664
|
var s = typeof Map == "function" && Map.prototype, e = Object.getOwnPropertyDescriptor && s ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = s && e && typeof e.get == "function" ? e.get : null, r = s && Map.prototype.forEach, 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, a = 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, d = 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, j = 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) {
|
|
9665
9665
|
return z.__proto__;
|
|
@@ -9677,7 +9677,7 @@ function Ju() {
|
|
|
9677
9677
|
return _.call(ie, Ee, "$&_");
|
|
9678
9678
|
}
|
|
9679
9679
|
var re = ll, $ = re.custom, Z = G($) ? $ : null;
|
|
9680
|
-
|
|
9680
|
+
Lr = function z(ie, Ee, Ae, Te) {
|
|
9681
9681
|
var Oe = Ee || {};
|
|
9682
9682
|
if (oe(Oe, "quoteStyle") && Oe.quoteStyle !== "single" && Oe.quoteStyle !== "double") throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
9683
9683
|
if (oe(Oe, "maxStringLength") && (typeof Oe.maxStringLength == "number" ? Oe.maxStringLength < 0 && Oe.maxStringLength !== 1 / 0 : Oe.maxStringLength !== null)) throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
@@ -9692,15 +9692,15 @@ function Ju() {
|
|
|
9692
9692
|
if (typeof ie == "string") return se(ie, Oe);
|
|
9693
9693
|
if (typeof ie == "number") {
|
|
9694
9694
|
if (ie === 0) return 1 / 0 / ie > 0 ? "0" : "-0";
|
|
9695
|
-
var
|
|
9696
|
-
return tt ? V(ie,
|
|
9695
|
+
var qe = String(ie);
|
|
9696
|
+
return tt ? V(ie, qe) : qe;
|
|
9697
9697
|
}
|
|
9698
9698
|
if (typeof ie == "bigint") {
|
|
9699
9699
|
var rt = String(ie) + "n";
|
|
9700
9700
|
return tt ? V(ie, rt) : rt;
|
|
9701
9701
|
}
|
|
9702
|
-
var
|
|
9703
|
-
if (typeof Ae > "u" && (Ae = 0), Ae >=
|
|
9702
|
+
var Ut = typeof Oe.depth > "u" ? 5 : Oe.depth;
|
|
9703
|
+
if (typeof Ae > "u" && (Ae = 0), Ae >= Ut && Ut > 0 && typeof ie == "object") return be(ie) ? "[Array]" : "[Object]";
|
|
9704
9704
|
var nt = X(Oe, Ae);
|
|
9705
9705
|
if (typeof Te > "u") Te = [];
|
|
9706
9706
|
else if (ee(Te, ie) >= 0) return "[Circular]";
|
|
@@ -9712,12 +9712,12 @@ function Ju() {
|
|
|
9712
9712
|
return z(it, Oe, Ae + 1, Te);
|
|
9713
9713
|
}
|
|
9714
9714
|
if (typeof ie == "function" && !we(ie)) {
|
|
9715
|
-
var
|
|
9716
|
-
return "[Function" + (
|
|
9715
|
+
var hr = F(ie), Bt = ke(ie, Qe);
|
|
9716
|
+
return "[Function" + (hr ? ": " + hr : " (anonymous)") + "]" + (Bt.length > 0 ? " { " + I.call(Bt, ", ") + " }" : "");
|
|
9717
9717
|
}
|
|
9718
9718
|
if (G(ie)) {
|
|
9719
|
-
var
|
|
9720
|
-
return typeof ie == "object" && !D ? f(
|
|
9719
|
+
var Jt = D ? _.call(String(ie), /^(Symbol\(.*\))_[^)]*$/, "$1") : q.call(ie);
|
|
9720
|
+
return typeof ie == "object" && !D ? f(Jt) : Jt;
|
|
9721
9721
|
}
|
|
9722
9722
|
if (ve(ie)) {
|
|
9723
9723
|
for (var C = "<" + v.call(String(ie.nodeName)), L = ie.attributes || [], _e = 0; _e < L.length; _e++) C += " " + L[_e].name + "=" + M(Q(L[_e].value), "double", Oe);
|
|
@@ -9733,7 +9733,7 @@ function Ju() {
|
|
|
9733
9733
|
return !("cause" in Error.prototype) && "cause" in ie && !ae.call(ie, "cause") ? "{ [" + String(ie) + "] " + I.call(S.call("[cause]: " + Qe(ie.cause), Se), ", ") + " }" : Se.length === 0 ? "[" + String(ie) + "]" : "{ [" + String(ie) + "] " + I.call(Se, ", ") + " }";
|
|
9734
9734
|
}
|
|
9735
9735
|
if (typeof ie == "object" && et) {
|
|
9736
|
-
if (Z && typeof ie[Z] == "function" && re) return re(ie, { depth:
|
|
9736
|
+
if (Z && typeof ie[Z] == "function" && re) return re(ie, { depth: Ut - Ae });
|
|
9737
9737
|
if (et !== "symbol" && typeof ie.inspect == "function") return ie.inspect();
|
|
9738
9738
|
}
|
|
9739
9739
|
if (de(ie)) {
|
|
@@ -9756,9 +9756,9 @@ function Ju() {
|
|
|
9756
9756
|
if (W(ie)) return f(d.call(ie));
|
|
9757
9757
|
if (N(ie)) return f(Qe(String(ie)));
|
|
9758
9758
|
if (typeof window < "u" && ie === window) return "{ [object Window] }";
|
|
9759
|
-
if (typeof globalThis < "u" && ie === globalThis || typeof
|
|
9759
|
+
if (typeof globalThis < "u" && ie === globalThis || typeof Nr < "u" && ie === Nr) return "{ [object globalThis] }";
|
|
9760
9760
|
if (!te(ie) && !we(ie)) {
|
|
9761
|
-
var Ze = ke(ie, Qe),
|
|
9761
|
+
var Ze = ke(ie, Qe), Qt = Y ? Y(ie) === Object.prototype : ie instanceof Object || ie.constructor === Object, Xt = ie instanceof Object ? "" : "null prototype", Zt = !Qt && U && Object(ie) === ie && U in ie ? m.call(R(ie), 8, -1) : Xt ? "Object" : "", dr = Qt || typeof ie.constructor != "function" ? "" : ie.constructor.name ? ie.constructor.name + " " : "", At = dr + (Zt || Xt ? "[" + I.call(S.call([], Zt || [], Xt || []), ": ") + "] " : "");
|
|
9762
9762
|
return Ze.length === 0 ? At + "{}" : nt ? At + "{" + he(Ze, nt) + "}" : At + "{ " + I.call(Ze, ", ") + " }";
|
|
9763
9763
|
}
|
|
9764
9764
|
return String(ie);
|
|
@@ -9810,7 +9810,7 @@ function Ju() {
|
|
|
9810
9810
|
return !1;
|
|
9811
9811
|
}
|
|
9812
9812
|
var ge = Object.prototype.hasOwnProperty || function(z) {
|
|
9813
|
-
return z in (this ||
|
|
9813
|
+
return z in (this || Nr);
|
|
9814
9814
|
};
|
|
9815
9815
|
function oe(z, ie) {
|
|
9816
9816
|
return ge.call(z, ie);
|
|
@@ -9947,16 +9947,16 @@ function Ju() {
|
|
|
9947
9947
|
et = {};
|
|
9948
9948
|
for (var tt = 0; tt < Oe.length; tt++) et["$" + Oe[tt]] = Oe[tt];
|
|
9949
9949
|
}
|
|
9950
|
-
for (var
|
|
9950
|
+
for (var qe in z) oe(z, qe) && (Ee && String(Number(qe)) === qe && qe < z.length || D && et["$" + qe] instanceof Symbol || (E.call(/[^\w$]/, qe) ? Ae.push(ie(qe, z) + ": " + ie(z[qe], z)) : Ae.push(qe + ": " + ie(z[qe], z))));
|
|
9951
9951
|
if (typeof T == "function") for (var rt = 0; rt < Oe.length; rt++) ae.call(z, Oe[rt]) && Ae.push("[" + ie(Oe[rt]) + "]: " + ie(z[Oe[rt]], z));
|
|
9952
9952
|
return Ae;
|
|
9953
9953
|
}
|
|
9954
|
-
return
|
|
9954
|
+
return Lr;
|
|
9955
9955
|
}
|
|
9956
9956
|
function Qu() {
|
|
9957
|
-
if (to) return
|
|
9957
|
+
if (to) return jr;
|
|
9958
9958
|
to = !0;
|
|
9959
|
-
var s =
|
|
9959
|
+
var s = Gt(), e = ju(), t = Ju(), r = cr(), o = s("%WeakMap%", !0), n = s("%Map%", !0), i = e("WeakMap.prototype.get", !0), a = e("WeakMap.prototype.set", !0), l = e("WeakMap.prototype.has", !0), c = e("Map.prototype.get", !0), u = e("Map.prototype.set", !0), h = e("Map.prototype.has", !0), p = function(y, w) {
|
|
9960
9960
|
for (var m = y, _; (_ = m.next) !== null; m = _) if (_.key === w) return m.next = _.next, _.next = y.next, y.next = _, _;
|
|
9961
9961
|
}, b = function(y, w) {
|
|
9962
9962
|
var m = p(y, w);
|
|
@@ -9967,7 +9967,7 @@ function Qu() {
|
|
|
9967
9967
|
}, g = function(y, w) {
|
|
9968
9968
|
return !!p(y, w);
|
|
9969
9969
|
};
|
|
9970
|
-
return
|
|
9970
|
+
return jr = function() {
|
|
9971
9971
|
var y, w, m, _ = { assert: function(x) {
|
|
9972
9972
|
if (!_.has(x)) throw new r("Side channel does not contain " + t(x));
|
|
9973
9973
|
}, get: function(x) {
|
|
@@ -9987,20 +9987,20 @@ function Qu() {
|
|
|
9987
9987
|
o && x && (typeof x == "object" || typeof x == "function") ? (y || (y = new o()), a(y, x, v)) : n ? (w || (w = new n()), u(w, x, v)) : (m || (m = { key: {}, next: null }), d(m, x, v));
|
|
9988
9988
|
} };
|
|
9989
9989
|
return _;
|
|
9990
|
-
},
|
|
9990
|
+
}, jr;
|
|
9991
9991
|
}
|
|
9992
9992
|
function xo() {
|
|
9993
|
-
if (ro) return
|
|
9993
|
+
if (ro) return Ur;
|
|
9994
9994
|
ro = !0;
|
|
9995
9995
|
var s = String.prototype.replace, e = /%20/g, t = { RFC1738: "RFC1738", RFC3986: "RFC3986" };
|
|
9996
|
-
return
|
|
9996
|
+
return Ur = { default: t.RFC3986, formatters: { RFC1738: function(r) {
|
|
9997
9997
|
return s.call(r, e, "+");
|
|
9998
9998
|
}, RFC3986: function(r) {
|
|
9999
9999
|
return String(r);
|
|
10000
|
-
} }, RFC1738: t.RFC1738, RFC3986: t.RFC3986 },
|
|
10000
|
+
} }, RFC1738: t.RFC1738, RFC3986: t.RFC3986 }, Ur;
|
|
10001
10001
|
}
|
|
10002
10002
|
function ol() {
|
|
10003
|
-
if (no) return
|
|
10003
|
+
if (no) return Br;
|
|
10004
10004
|
no = !0;
|
|
10005
10005
|
var s = xo(), e = Object.prototype.hasOwnProperty, t = Array.isArray, r = (function() {
|
|
10006
10006
|
for (var y = [], w = 0; w < 256; ++w) y.push("%" + ((w < 16 ? "0" : "") + w.toString(16)).toUpperCase());
|
|
@@ -10096,10 +10096,10 @@ function ol() {
|
|
|
10096
10096
|
}
|
|
10097
10097
|
return w(y);
|
|
10098
10098
|
};
|
|
10099
|
-
return
|
|
10099
|
+
return Br = { arrayToObject: n, assign: a, combine: d, compact: h, decode: l, encode: u, isBuffer: b, isRegExp: p, maybeMap: g, merge: i }, Br;
|
|
10100
10100
|
}
|
|
10101
10101
|
function Xu() {
|
|
10102
|
-
if (io) return
|
|
10102
|
+
if (io) return Dr;
|
|
10103
10103
|
io = !0;
|
|
10104
10104
|
var s = Qu(), e = ol(), t = xo(), r = Object.prototype.hasOwnProperty, o = { brackets: function(g) {
|
|
10105
10105
|
return g + "[]";
|
|
@@ -10175,7 +10175,7 @@ function Xu() {
|
|
|
10175
10175
|
var v = typeof g.allowDots > "u" ? g.encodeDotInKeys === !0 ? !0 : u.allowDots : !!g.allowDots;
|
|
10176
10176
|
return { addQueryPrefix: typeof g.addQueryPrefix == "boolean" ? g.addQueryPrefix : u.addQueryPrefix, allowDots: v, allowEmptyArrays: typeof g.allowEmptyArrays == "boolean" ? !!g.allowEmptyArrays : u.allowEmptyArrays, arrayFormat: x, charset: y, charsetSentinel: typeof g.charsetSentinel == "boolean" ? g.charsetSentinel : u.charsetSentinel, commaRoundTrip: g.commaRoundTrip, delimiter: typeof g.delimiter > "u" ? u.delimiter : g.delimiter, encode: typeof g.encode == "boolean" ? g.encode : u.encode, encodeDotInKeys: typeof g.encodeDotInKeys == "boolean" ? g.encodeDotInKeys : u.encodeDotInKeys, encoder: typeof g.encoder == "function" ? g.encoder : u.encoder, encodeValuesOnly: typeof g.encodeValuesOnly == "boolean" ? g.encodeValuesOnly : u.encodeValuesOnly, filter: _, format: w, formatter: m, serializeDate: typeof g.serializeDate == "function" ? g.serializeDate : u.serializeDate, skipNulls: typeof g.skipNulls == "boolean" ? g.skipNulls : u.skipNulls, sort: typeof g.sort == "function" ? g.sort : null, strictNullHandling: typeof g.strictNullHandling == "boolean" ? g.strictNullHandling : u.strictNullHandling };
|
|
10177
10177
|
};
|
|
10178
|
-
return
|
|
10178
|
+
return Dr = function(g, y) {
|
|
10179
10179
|
var w = g, m = d(y), _, x;
|
|
10180
10180
|
typeof m.filter == "function" ? (x = m.filter, w = x("", w)) : n(m.filter) && (x = m.filter, _ = x);
|
|
10181
10181
|
var v = [];
|
|
@@ -10188,10 +10188,10 @@ function Xu() {
|
|
|
10188
10188
|
}
|
|
10189
10189
|
var j = v.join(m.delimiter), T = m.addQueryPrefix === !0 ? "?" : "";
|
|
10190
10190
|
return m.charsetSentinel && (m.charset === "iso-8859-1" ? T += "utf8=%26%2310003%3B&" : T += "utf8=%E2%9C%93&"), j.length > 0 ? T + j : "";
|
|
10191
|
-
},
|
|
10191
|
+
}, Dr;
|
|
10192
10192
|
}
|
|
10193
10193
|
function Zu() {
|
|
10194
|
-
if (oo) return
|
|
10194
|
+
if (oo) return $r;
|
|
10195
10195
|
oo = !0;
|
|
10196
10196
|
var s = ol(), e = Object.prototype.hasOwnProperty, t = Array.isArray, r = { allowDots: !1, allowEmptyArrays: !1, allowPrototypes: !1, allowSparse: !1, arrayLimit: 20, charset: "utf-8", charsetSentinel: !1, comma: !1, decodeDotInKeys: !1, decoder: s.decode, delimiter: "&", depth: 5, duplicates: "combine", ignoreQueryPrefix: !1, interpretNumericEntities: !1, parameterLimit: 1e3, parseArrays: !0, plainObjects: !1, strictDepth: !1, strictNullHandling: !1 }, o = function(p) {
|
|
10197
10197
|
return p.replace(/&#(\d+);/g, function(b, d) {
|
|
@@ -10253,7 +10253,7 @@ function Zu() {
|
|
|
10253
10253
|
var g = typeof p.allowDots > "u" ? p.decodeDotInKeys === !0 ? !0 : r.allowDots : !!p.allowDots;
|
|
10254
10254
|
return { allowDots: g, allowEmptyArrays: typeof p.allowEmptyArrays == "boolean" ? !!p.allowEmptyArrays : r.allowEmptyArrays, allowPrototypes: typeof p.allowPrototypes == "boolean" ? p.allowPrototypes : r.allowPrototypes, allowSparse: typeof p.allowSparse == "boolean" ? p.allowSparse : r.allowSparse, arrayLimit: typeof p.arrayLimit == "number" ? p.arrayLimit : r.arrayLimit, charset: b, charsetSentinel: typeof p.charsetSentinel == "boolean" ? p.charsetSentinel : r.charsetSentinel, comma: typeof p.comma == "boolean" ? p.comma : r.comma, decodeDotInKeys: typeof p.decodeDotInKeys == "boolean" ? p.decodeDotInKeys : r.decodeDotInKeys, decoder: typeof p.decoder == "function" ? p.decoder : r.decoder, delimiter: typeof p.delimiter == "string" || s.isRegExp(p.delimiter) ? p.delimiter : r.delimiter, depth: typeof p.depth == "number" || p.depth === !1 ? +p.depth : r.depth, duplicates: d, ignoreQueryPrefix: p.ignoreQueryPrefix === !0, interpretNumericEntities: typeof p.interpretNumericEntities == "boolean" ? p.interpretNumericEntities : r.interpretNumericEntities, parameterLimit: typeof p.parameterLimit == "number" ? p.parameterLimit : r.parameterLimit, parseArrays: p.parseArrays !== !1, plainObjects: typeof p.plainObjects == "boolean" ? p.plainObjects : r.plainObjects, strictDepth: typeof p.strictDepth == "boolean" ? !!p.strictDepth : r.strictDepth, strictNullHandling: typeof p.strictNullHandling == "boolean" ? p.strictNullHandling : r.strictNullHandling };
|
|
10255
10255
|
};
|
|
10256
|
-
return
|
|
10256
|
+
return $r = function(p, b) {
|
|
10257
10257
|
var d = h(b);
|
|
10258
10258
|
if (p === "" || p === null || typeof p > "u") return d.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
10259
10259
|
for (var g = typeof p == "string" ? l(p, d) : p, y = d.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, w = Object.keys(g), m = 0; m < w.length; ++m) {
|
|
@@ -10261,13 +10261,13 @@ function Zu() {
|
|
|
10261
10261
|
y = s.merge(y, x, d);
|
|
10262
10262
|
}
|
|
10263
10263
|
return d.allowSparse === !0 ? y : s.compact(y);
|
|
10264
|
-
},
|
|
10264
|
+
}, $r;
|
|
10265
10265
|
}
|
|
10266
10266
|
function eh() {
|
|
10267
|
-
if (so) return
|
|
10267
|
+
if (so) return Fr;
|
|
10268
10268
|
so = !0;
|
|
10269
10269
|
var s = Xu(), e = Zu(), t = xo();
|
|
10270
|
-
return
|
|
10270
|
+
return Fr = { formats: t, parse: e, stringify: s }, Fr;
|
|
10271
10271
|
}
|
|
10272
10272
|
function th() {
|
|
10273
10273
|
if (ao) return xt;
|
|
@@ -10434,7 +10434,7 @@ function sl(s) {
|
|
|
10434
10434
|
if (typeof s == "string") s = new URL(s);
|
|
10435
10435
|
else if (!(s instanceof URL)) throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");
|
|
10436
10436
|
if (s.protocol !== "file:") throw new Deno.errors.InvalidData("invalid url scheme");
|
|
10437
|
-
return
|
|
10437
|
+
return Wr ? rh(s) : nh(s);
|
|
10438
10438
|
}
|
|
10439
10439
|
function rh(s) {
|
|
10440
10440
|
let e = s.hostname, t = s.pathname;
|
|
@@ -10460,20 +10460,20 @@ function nh(s) {
|
|
|
10460
10460
|
}
|
|
10461
10461
|
function al(s) {
|
|
10462
10462
|
let e = Zi.resolve(s), t = s.charCodeAt(s.length - 1);
|
|
10463
|
-
(t === gl ||
|
|
10463
|
+
(t === gl || Wr && t === ml) && e[e.length - 1] !== Zi.sep && (e += "/");
|
|
10464
10464
|
let r = new URL("file://");
|
|
10465
|
-
return e.includes("%") && (e = e.replace(wl, "%25")), !
|
|
10465
|
+
return e.includes("%") && (e = e.replace(wl, "%25")), !Wr && e.includes("\\") && (e = e.replace(_l, "%5C")), e.includes(`
|
|
10466
10466
|
`) && (e = e.replace(kl, "%0A")), e.includes("\r") && (e = e.replace(xl, "%0D")), e.includes(" ") && (e = e.replace(Sl, "%09")), r.pathname = e, r;
|
|
10467
10467
|
}
|
|
10468
|
-
var ll,
|
|
10469
|
-
le(), ue(), ce(), _u(), Uu(), Yu(), nl(), ll = Object.freeze(/* @__PURE__ */ Object.create(null)),
|
|
10468
|
+
var ll, Lr, eo, Nr, jr, to, Ur, ro, Br, no, Dr, io, $r, oo, Fr, so, xt, ao, ze, Us, cl, ul, hl, dl, fl, pl, ml, gl, bl, yl, Wr, vl, wl, _l, kl, xl, Sl, ih = Je(() => {
|
|
10469
|
+
le(), ue(), ce(), _u(), Uu(), Yu(), nl(), ll = Object.freeze(/* @__PURE__ */ Object.create(null)), Lr = {}, eo = !1, Nr = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : global, jr = {}, to = !1, Ur = {}, ro = !1, Br = {}, no = !1, Dr = {}, io = !1, $r = {}, oo = !1, Fr = {}, so = !1, xt = {}, ao = !1, ze = th(), ze.parse, ze.resolve, ze.resolveObject, ze.format, ze.Url, Us = typeof Deno < "u" ? Deno.build.os === "windows" ? "win32" : Deno.build.os : void 0, ze.URL = typeof URL < "u" ? URL : null, ze.pathToFileURL = al, ze.fileURLToPath = sl, cl = ze.Url, ul = ze.format, hl = ze.resolve, dl = ze.resolveObject, fl = ze.parse, pl = ze.URL, ml = 92, gl = 47, bl = 97, yl = 122, Wr = Us === "win32", vl = /\//g, wl = /%/g, _l = /\\/g, kl = /\n/g, xl = /\r/g, Sl = /\t/g;
|
|
10470
10470
|
}), oh = pe((s, e) => {
|
|
10471
10471
|
le(), ue(), ce(), e.exports = function() {
|
|
10472
10472
|
throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object");
|
|
10473
10473
|
};
|
|
10474
10474
|
}), So = pe((s) => {
|
|
10475
10475
|
le(), ue(), ce(), Object.defineProperty(s, "__esModule", { value: !0 }), s.BufferedDuplex = void 0, s.writev = r;
|
|
10476
|
-
var e =
|
|
10476
|
+
var e = jt(), t = (Fe(), Me($e));
|
|
10477
10477
|
function r(n, i) {
|
|
10478
10478
|
let a = new Array(n.length);
|
|
10479
10479
|
for (let l = 0; l < n.length; l++) typeof n[l].chunk == "string" ? a[l] = t.Buffer.from(n[l].chunk, "utf8") : a[l] = n[l].chunk;
|
|
@@ -10515,13 +10515,13 @@ var ll, Rr, eo, Lr, Nr, to, jr, ro, Ur, no, Br, io, Dr, oo, $r, so, xt, ao, We,
|
|
|
10515
10515
|
}
|
|
10516
10516
|
};
|
|
10517
10517
|
s.BufferedDuplex = o;
|
|
10518
|
-
}),
|
|
10518
|
+
}), pr = pe((s) => {
|
|
10519
10519
|
le(), ue(), ce();
|
|
10520
10520
|
var e = s && s.__importDefault || function(w) {
|
|
10521
10521
|
return w && w.__esModule ? w : { default: w };
|
|
10522
10522
|
};
|
|
10523
10523
|
Object.defineProperty(s, "__esModule", { value: !0 }), s.streamBuilder = s.browserStreamBuilder = void 0;
|
|
10524
|
-
var t = (
|
|
10524
|
+
var t = (Fe(), Me($e)), r = e(oh()), o = e(pt()), n = jt(), i = e(Qr()), a = So(), l = (0, o.default)("mqttjs:ws"), c = ["rejectUnauthorized", "ca", "cert", "key", "pfx", "passphrase"];
|
|
10525
10525
|
function u(w, m) {
|
|
10526
10526
|
let _ = `${w.protocol}://${w.hostname}:${w.port}${w.path}`;
|
|
10527
10527
|
return typeof w.transformWsUrl == "function" && (_ = w.transformWsUrl(_, w, m)), _;
|
|
@@ -10610,12 +10610,12 @@ var ll, Rr, eo, Lr, Nr, to, jr, ro, Ur, no, Br, io, Dr, oo, $r, so, xt, ao, We,
|
|
|
10610
10610
|
};
|
|
10611
10611
|
s.browserStreamBuilder = y;
|
|
10612
10612
|
}), Eo = {};
|
|
10613
|
-
|
|
10614
|
-
function
|
|
10613
|
+
zt(Eo, { Server: () => je, Socket: () => je, Stream: () => je, _createServerHandle: () => je, _normalizeArgs: () => je, _setSimultaneousAccepts: () => je, connect: () => je, createConnection: () => je, createServer: () => je, default: () => El, isIP: () => je, isIPv4: () => je, isIPv6: () => je });
|
|
10614
|
+
function je() {
|
|
10615
10615
|
throw new Error("Node.js net module is not supported by JSPM core outside of Node.js");
|
|
10616
10616
|
}
|
|
10617
10617
|
var El, Al = Je(() => {
|
|
10618
|
-
le(), ue(), ce(), El = { _createServerHandle:
|
|
10618
|
+
le(), ue(), ce(), El = { _createServerHandle: je, _normalizeArgs: je, _setSimultaneousAccepts: je, connect: je, createConnection: je, createServer: je, isIP: je, isIPv4: je, isIPv6: je, Server: je, Socket: je, Stream: je };
|
|
10619
10619
|
}), Il = pe((s, e) => {
|
|
10620
10620
|
le(), ue(), ce(), e.exports = {};
|
|
10621
10621
|
}), Bs = pe((s) => {
|
|
@@ -10631,7 +10631,7 @@ var El, Al = Je(() => {
|
|
|
10631
10631
|
};
|
|
10632
10632
|
s.default = i;
|
|
10633
10633
|
}), Tl = {};
|
|
10634
|
-
|
|
10634
|
+
zt(Tl, { default: () => Cl });
|
|
10635
10635
|
var Cl, sh = Je(() => {
|
|
10636
10636
|
le(), ue(), ce(), Cl = {};
|
|
10637
10637
|
}), Ds = pe((s) => {
|
|
@@ -10663,7 +10663,7 @@ var Cl, sh = Je(() => {
|
|
|
10663
10663
|
s.default = l;
|
|
10664
10664
|
}), $s = pe((s) => {
|
|
10665
10665
|
le(), ue(), ce(), Object.defineProperty(s, "__esModule", { value: !0 });
|
|
10666
|
-
var e = (
|
|
10666
|
+
var e = (Fe(), Me($e)), t = jt(), r = So(), o, n, i;
|
|
10667
10667
|
function a() {
|
|
10668
10668
|
let p = new t.Transform();
|
|
10669
10669
|
return p._write = (b, d, g) => {
|
|
@@ -10718,7 +10718,7 @@ var Cl, sh = Je(() => {
|
|
|
10718
10718
|
s.default = h;
|
|
10719
10719
|
}), Fs = pe((s) => {
|
|
10720
10720
|
le(), ue(), ce(), Object.defineProperty(s, "__esModule", { value: !0 });
|
|
10721
|
-
var e = (
|
|
10721
|
+
var e = (Fe(), Me($e)), t = jt(), r = So(), o, n, i, a = !1;
|
|
10722
10722
|
function l() {
|
|
10723
10723
|
let b = new t.Transform();
|
|
10724
10724
|
return b._write = (d, g, y) => {
|
|
@@ -10777,7 +10777,7 @@ var Cl, sh = Je(() => {
|
|
|
10777
10777
|
return h && h.__esModule ? h : { default: h };
|
|
10778
10778
|
};
|
|
10779
10779
|
Object.defineProperty(s, "__esModule", { value: !0 }), s.connectAsync = u;
|
|
10780
|
-
var t = e(pt()), r = e((ih(), Me(il))), o = e(wi()), n = e(
|
|
10780
|
+
var t = e(pt()), r = e((ih(), Me(il))), o = e(wi()), n = e(Qr());
|
|
10781
10781
|
typeof Le?.nextTick != "function" && (Le.nextTick = setImmediate);
|
|
10782
10782
|
var i = (0, t.default)("mqttjs"), a = null;
|
|
10783
10783
|
function l(h) {
|
|
@@ -10811,7 +10811,7 @@ var Cl, sh = Je(() => {
|
|
|
10811
10811
|
throw new Error(`Unknown protocol for secure connection: "${p.protocol}"!`);
|
|
10812
10812
|
}
|
|
10813
10813
|
} else throw new Error("Missing secure protocol key");
|
|
10814
|
-
if (a || (a = {}, !n.default && !p.forceNativeWebSocket ? (a.ws =
|
|
10814
|
+
if (a || (a = {}, !n.default && !p.forceNativeWebSocket ? (a.ws = pr().streamBuilder, a.wss = pr().streamBuilder, a.mqtt = Bs().default, a.tcp = Bs().default, a.ssl = Ds().default, a.tls = a.ssl, a.mqtts = Ds().default) : (a.ws = pr().browserStreamBuilder, a.wss = pr().browserStreamBuilder, a.wx = $s().default, a.wxs = $s().default, a.ali = Fs().default, a.alis = Fs().default)), !a[p.protocol]) {
|
|
10815
10815
|
let g = ["mqtts", "wss"].indexOf(p.protocol) !== -1;
|
|
10816
10816
|
p.protocol = ["mqtt", "mqtts", "ws", "wss", "wx", "wxs", "ali", "alis"].filter((y, w) => g && w % 2 === 0 ? !1 : typeof a[y] == "function")[0];
|
|
10817
10817
|
}
|
|
@@ -10894,8 +10894,8 @@ var Cl, sh = Je(() => {
|
|
|
10894
10894
|
return u.connectAsync;
|
|
10895
10895
|
} });
|
|
10896
10896
|
var h = n(Xa());
|
|
10897
|
-
s.KeepaliveManager = h.default, s.Client = i.default, o(wi(), s), o(
|
|
10898
|
-
var p =
|
|
10897
|
+
s.KeepaliveManager = h.default, s.Client = i.default, o(wi(), s), o(Kt(), s), o(Ia(), s);
|
|
10898
|
+
var p = Yr();
|
|
10899
10899
|
Object.defineProperty(s, "ReasonCodes", { enumerable: !0, get: function() {
|
|
10900
10900
|
return p.ReasonCodes;
|
|
10901
10901
|
} });
|
|
@@ -12021,12 +12021,30 @@ const Ih = "^[A-Z]{4}[0-9]{5}[A-Z]$", Th = "^[A-Z]{4}0[A-Z0-9]{6}$", Ch = {
|
|
|
12021
12021
|
title: "Other Income",
|
|
12022
12022
|
fields: [
|
|
12023
12023
|
{ id: "dividend", type: "number", label: "Dividend Income", currency: "₹", min: 0 },
|
|
12024
|
-
{ id: "anyOtherIncome", type: "number", label: "Any Other Income", currency: "₹", min: 0 }
|
|
12024
|
+
{ id: "anyOtherIncome", type: "number", label: "Any Other Income", currency: "₹", min: 0 },
|
|
12025
|
+
{ id: "familyPension", type: "number", label: "Family Pension", currency: "₹", min: 0 }
|
|
12025
12026
|
]
|
|
12026
12027
|
}
|
|
12027
12028
|
],
|
|
12028
12029
|
submitLabel: "Save"
|
|
12029
12030
|
}, Ph = {
|
|
12031
|
+
id: "crypto-income",
|
|
12032
|
+
title: "Crypto Income",
|
|
12033
|
+
icon: "🪙",
|
|
12034
|
+
fields: [
|
|
12035
|
+
{
|
|
12036
|
+
id: "cryptoGroup",
|
|
12037
|
+
type: "group",
|
|
12038
|
+
title: "Virtual Digital Assets",
|
|
12039
|
+
hint: "Gains from crypto / VDAs are taxed at a flat 30%",
|
|
12040
|
+
fields: [
|
|
12041
|
+
{ id: "cryptoSellPrice", type: "number", label: "Total Sale Value", currency: "₹", min: 0 },
|
|
12042
|
+
{ id: "cryptoPurchasePrice", type: "number", label: "Total Cost of Acquisition", currency: "₹", min: 0 }
|
|
12043
|
+
]
|
|
12044
|
+
}
|
|
12045
|
+
],
|
|
12046
|
+
submitLabel: "Save"
|
|
12047
|
+
}, Mh = {
|
|
12030
12048
|
id: "business-profession",
|
|
12031
12049
|
title: "Business / Profession",
|
|
12032
12050
|
icon: "💼",
|
|
@@ -12066,7 +12084,7 @@ const Ih = "^[A-Z]{4}[0-9]{5}[A-Z]$", Th = "^[A-Z]{4}0[A-Z0-9]{6}$", Ch = {
|
|
|
12066
12084
|
}
|
|
12067
12085
|
],
|
|
12068
12086
|
submitLabel: "Save"
|
|
12069
|
-
},
|
|
12087
|
+
}, Rh = {
|
|
12070
12088
|
id: "bank-details",
|
|
12071
12089
|
title: "Personal / Bank Details",
|
|
12072
12090
|
icon: "🏦",
|
|
@@ -12101,14 +12119,14 @@ const Ih = "^[A-Z]{4}[0-9]{5}[A-Z]$", Th = "^[A-Z]{4}0[A-Z0-9]{6}$", Ch = {
|
|
|
12101
12119
|
// },
|
|
12102
12120
|
],
|
|
12103
12121
|
submitLabel: "Save"
|
|
12104
|
-
},
|
|
12122
|
+
}, Lh = [
|
|
12105
12123
|
Ch,
|
|
12106
|
-
|
|
12124
|
+
Mh,
|
|
12107
12125
|
Oh,
|
|
12108
|
-
|
|
12126
|
+
Ph,
|
|
12127
|
+
Rh
|
|
12109
12128
|
// Hidden for now — re-enable to restore the full set:
|
|
12110
12129
|
// capitalGains,
|
|
12111
|
-
// cryptoIncome,
|
|
12112
12130
|
// agriculturalIncome,
|
|
12113
12131
|
// exemptIncome,
|
|
12114
12132
|
// houseProperty,
|
|
@@ -12116,9 +12134,9 @@ const Ih = "^[A-Z]{4}[0-9]{5}[A-Z]$", Th = "^[A-Z]{4}0[A-Z0-9]{6}$", Ch = {
|
|
|
12116
12134
|
// taxPaidTds,
|
|
12117
12135
|
// haveAQuestion,
|
|
12118
12136
|
];
|
|
12119
|
-
function
|
|
12137
|
+
function Nh(s, e) {
|
|
12120
12138
|
const t = s || {}, r = {
|
|
12121
|
-
userId:
|
|
12139
|
+
userId: Yt(e.userId),
|
|
12122
12140
|
assessmentYear: e.assessmentYear,
|
|
12123
12141
|
isRevised: e.isRevised || "N"
|
|
12124
12142
|
};
|
|
@@ -12139,9 +12157,9 @@ function Lh(s, e) {
|
|
|
12139
12157
|
amount: Ie(t.immovableAssetCost)
|
|
12140
12158
|
};
|
|
12141
12159
|
Object.values(a).some((u) => u !== void 0) && (r.immovableAsset = [a]);
|
|
12142
|
-
const l = nn(t.hpDetails,
|
|
12160
|
+
const l = nn(t.hpDetails, jh);
|
|
12143
12161
|
l.length && (r.hpDetails = l);
|
|
12144
|
-
const c = nn(t.salaryDetails,
|
|
12162
|
+
const c = nn(t.salaryDetails, Uh);
|
|
12145
12163
|
if (c.length) {
|
|
12146
12164
|
r.salaryIncome = c;
|
|
12147
12165
|
const u = nn(t.salaryDetails, (p) => ({
|
|
@@ -12152,15 +12170,15 @@ function Lh(s, e) {
|
|
|
12152
12170
|
const h = Ml(t.salaryDetails)[0] ?? {};
|
|
12153
12171
|
r.hraAmount = Ie(h.hraReceived), r.leaveTravelAllowanceAmount = Ie(h.leaveTravelAllowance), r.leaveEncashmentAllowanceAmount = Ie(h.leaveEncashment), r.anyOtherAllowanceAmount = Ie(h.anyOtherAllowance), r.salaryIncomeFlag = !0;
|
|
12154
12172
|
}
|
|
12155
|
-
return
|
|
12173
|
+
return zr(r);
|
|
12156
12174
|
}
|
|
12157
|
-
function
|
|
12175
|
+
function jh(s) {
|
|
12158
12176
|
const e = {
|
|
12159
12177
|
loanType: "HOME_LOAN",
|
|
12160
12178
|
loanTakenFrom: Pe(s.loanTakenFrom),
|
|
12161
12179
|
bankOrInstituteName: Pe(s.lenderName),
|
|
12162
12180
|
loanAccountNo: Pe(s.loanAccountNumber),
|
|
12163
|
-
loanSanctionDate:
|
|
12181
|
+
loanSanctionDate: Hh(s.sanctionDate),
|
|
12164
12182
|
totalLoanAmount: Ie(s.totalLoanAmount),
|
|
12165
12183
|
interest: Ie(s.homeLoanInterest)
|
|
12166
12184
|
}, t = Object.entries(e).some(([r, o]) => r !== "loanType" && o !== void 0);
|
|
@@ -12181,7 +12199,7 @@ function Nh(s) {
|
|
|
12181
12199
|
loanDetails: t ? [e] : void 0
|
|
12182
12200
|
};
|
|
12183
12201
|
}
|
|
12184
|
-
function
|
|
12202
|
+
function Uh(s) {
|
|
12185
12203
|
return {
|
|
12186
12204
|
grossSalaryIncome: Ie(s.grossSalary),
|
|
12187
12205
|
salary: Ie(s.basicSalary),
|
|
@@ -12197,7 +12215,7 @@ function jh(s) {
|
|
|
12197
12215
|
}
|
|
12198
12216
|
};
|
|
12199
12217
|
}
|
|
12200
|
-
function
|
|
12218
|
+
function Bh(s, e) {
|
|
12201
12219
|
const t = [];
|
|
12202
12220
|
for (const r of s) {
|
|
12203
12221
|
const o = Pe(r.employerName), n = Pe(r.employerTan), i = Ie(r.grossSalary), a = Ie(r.basicSalary), l = Ie(r.totalTdsDeposited);
|
|
@@ -12210,32 +12228,43 @@ function Uh(s, e) {
|
|
|
12210
12228
|
});
|
|
12211
12229
|
}
|
|
12212
12230
|
return t.length ? {
|
|
12213
|
-
userId:
|
|
12231
|
+
userId: Yt(e.userId),
|
|
12214
12232
|
assessmentYear: e.assessmentYear,
|
|
12215
12233
|
forceUpdate: !0,
|
|
12216
12234
|
salary: t
|
|
12217
12235
|
} : null;
|
|
12218
12236
|
}
|
|
12219
|
-
function
|
|
12237
|
+
function Dh(s, e) {
|
|
12220
12238
|
const t = Pe(s.aadhaarNumber), r = Pe(s.bankAccountNumber), o = Pe(s.bankIfscCode);
|
|
12221
12239
|
return t === void 0 && r === void 0 && o === void 0 ? null : {
|
|
12222
|
-
userId:
|
|
12240
|
+
userId: Yt(e.userId),
|
|
12223
12241
|
assessmentYear: e.assessmentYear,
|
|
12224
12242
|
aadhaarNumber: t ?? "",
|
|
12225
12243
|
bankDetails: [{ bankAccountNumber: r, bankIfscCode: o }]
|
|
12226
12244
|
};
|
|
12227
12245
|
}
|
|
12228
|
-
function
|
|
12246
|
+
function $h(s, e) {
|
|
12229
12247
|
return {
|
|
12230
|
-
userId:
|
|
12248
|
+
userId: Yt(e.userId),
|
|
12231
12249
|
assessmentYear: e.assessmentYear,
|
|
12232
12250
|
savingBankInterest: Ie(s.savingBankInterest) ?? 0,
|
|
12233
12251
|
fdInterest: Ie(s.fdInterest) ?? 0,
|
|
12234
12252
|
dividend: Ie(s.dividend) ?? 0,
|
|
12235
|
-
anyOtherIncome: Ie(s.anyOtherIncome) ?? 0
|
|
12253
|
+
anyOtherIncome: Ie(s.anyOtherIncome) ?? 0,
|
|
12254
|
+
familyPension: Ie(s.familyPension) ?? 0
|
|
12236
12255
|
};
|
|
12237
12256
|
}
|
|
12238
|
-
function
|
|
12257
|
+
function Fh(s, e) {
|
|
12258
|
+
const t = Ie(s.cryptoSellPrice), r = Ie(s.cryptoPurchasePrice);
|
|
12259
|
+
return t === void 0 && r === void 0 ? null : {
|
|
12260
|
+
userId: Yt(e.userId),
|
|
12261
|
+
assessmentYear: e.assessmentYear,
|
|
12262
|
+
cryptoSellValue: t ?? 0,
|
|
12263
|
+
cryptoPurchaseAmount: r ?? 0,
|
|
12264
|
+
vdaPurchaseCost: r ?? 0
|
|
12265
|
+
};
|
|
12266
|
+
}
|
|
12267
|
+
function qh(s, e) {
|
|
12239
12268
|
const t = (o, n, i, a) => {
|
|
12240
12269
|
const l = Pe(s[o]), c = Pe(s[n]), u = Ie(s[i]), h = Ie(s[a]);
|
|
12241
12270
|
return l === void 0 && c === void 0 && u === void 0 && h === void 0 ? null : {
|
|
@@ -12249,12 +12278,12 @@ function $h(s, e) {
|
|
|
12249
12278
|
t("profName", "profNature", "profReceiptsBank", "profReceiptsCash")
|
|
12250
12279
|
].filter((o) => o !== null);
|
|
12251
12280
|
return r.length ? {
|
|
12252
|
-
userId:
|
|
12281
|
+
userId: Yt(e.userId),
|
|
12253
12282
|
assessmentYear: e.assessmentYear,
|
|
12254
12283
|
presumptiveIncome: r
|
|
12255
12284
|
} : null;
|
|
12256
12285
|
}
|
|
12257
|
-
function
|
|
12286
|
+
function Yt(s) {
|
|
12258
12287
|
if (s === void 0 || s === "") return;
|
|
12259
12288
|
const e = Number(s);
|
|
12260
12289
|
return Number.isFinite(e) && String(e) === String(s) ? e : s;
|
|
@@ -12272,7 +12301,7 @@ function Pe(s) {
|
|
|
12272
12301
|
function lo(s) {
|
|
12273
12302
|
return s === !0 || s === !1 ? s : void 0;
|
|
12274
12303
|
}
|
|
12275
|
-
function
|
|
12304
|
+
function Hh(s) {
|
|
12276
12305
|
const e = Pe(s);
|
|
12277
12306
|
if (e)
|
|
12278
12307
|
return e.includes("T") ? e : /^\d{4}-\d{2}-\d{2}$/.test(e) ? `${e}T00:00:00Z` : e;
|
|
@@ -12281,85 +12310,85 @@ function Ml(s) {
|
|
|
12281
12310
|
return Array.isArray(s) ? s.filter((e) => e && typeof e == "object") : [];
|
|
12282
12311
|
}
|
|
12283
12312
|
function nn(s, e) {
|
|
12284
|
-
return Ml(s).map((t) =>
|
|
12313
|
+
return Ml(s).map((t) => zr(e(t))).filter((t) => t !== void 0);
|
|
12285
12314
|
}
|
|
12286
|
-
function
|
|
12315
|
+
function zr(s) {
|
|
12287
12316
|
if (Array.isArray(s)) {
|
|
12288
|
-
const e = s.map(
|
|
12317
|
+
const e = s.map(zr).filter((t) => t !== void 0);
|
|
12289
12318
|
return e.length ? e : void 0;
|
|
12290
12319
|
}
|
|
12291
12320
|
if (s && typeof s == "object") {
|
|
12292
12321
|
const e = {};
|
|
12293
12322
|
for (const [t, r] of Object.entries(s)) {
|
|
12294
|
-
const o =
|
|
12323
|
+
const o = zr(r);
|
|
12295
12324
|
o !== void 0 && (e[t] = o);
|
|
12296
12325
|
}
|
|
12297
12326
|
return Object.keys(e).length ? e : void 0;
|
|
12298
12327
|
}
|
|
12299
12328
|
return s;
|
|
12300
12329
|
}
|
|
12301
|
-
function
|
|
12302
|
-
const e = s && typeof s == "object" ? s : {}, t = {}, r =
|
|
12303
|
-
r.length && (t.salaryDetails = r.map((
|
|
12304
|
-
const
|
|
12330
|
+
function Wh(s) {
|
|
12331
|
+
const e = s && typeof s == "object" ? s : {}, t = {}, r = De(e.employers), o = De(e.taxPaid?.onSalary);
|
|
12332
|
+
r.length && (t.salaryDetails = r.map((h) => {
|
|
12333
|
+
const p = on(h.salary), b = on(h.perquisites), d = on(h.profitsInLieuOfSalaryType), g = p + b + d, y = Vh(h.allowance);
|
|
12305
12334
|
return {
|
|
12306
|
-
employerName: Re(
|
|
12307
|
-
employerTan: Re(
|
|
12308
|
-
basicSalary:
|
|
12335
|
+
employerName: Re(h.employerName),
|
|
12336
|
+
employerTan: Re(h.employerTAN),
|
|
12337
|
+
basicSalary: p || void 0,
|
|
12309
12338
|
// salaryBreakup.salary
|
|
12310
|
-
grossSalary:
|
|
12311
|
-
hraReceived:
|
|
12312
|
-
leaveTravelAllowance:
|
|
12313
|
-
leaveEncashment:
|
|
12314
|
-
anyOtherAllowance:
|
|
12315
|
-
totalTdsDeposited:
|
|
12339
|
+
grossSalary: g || void 0,
|
|
12340
|
+
hraReceived: y.hra,
|
|
12341
|
+
leaveTravelAllowance: y.lta,
|
|
12342
|
+
leaveEncashment: y.leaveEncashment,
|
|
12343
|
+
anyOtherAllowance: y.other,
|
|
12344
|
+
totalTdsDeposited: zh(h, o, r) ?? Ne(h.totalTdsDeposited)
|
|
12316
12345
|
};
|
|
12317
12346
|
}));
|
|
12318
|
-
const n =
|
|
12319
|
-
n.length && (t.hpDetails = n.map((
|
|
12320
|
-
const
|
|
12347
|
+
const n = De(e.houseProperties);
|
|
12348
|
+
n.length && (t.hpDetails = n.map((h) => {
|
|
12349
|
+
const p = De(h.loanDetails), b = p.length ? p[0] : void 0, d = Ne(h.grossAnnualRentReceived), g = p.length ? p.reduce((x, v) => x + (Ne(v.interest) ?? 0), 0) : void 0, y = De(h.tenant), w = De(h.coOwners), m = y[0], _ = w[0];
|
|
12321
12350
|
return {
|
|
12322
|
-
typeOfHouseProperty: Re(
|
|
12323
|
-
loanTakenFrom: Re(
|
|
12324
|
-
lenderName: Re(
|
|
12325
|
-
loanAccountNumber: Re(
|
|
12326
|
-
sanctionDate: Re(
|
|
12327
|
-
totalLoanAmount:
|
|
12328
|
-
outstandingAmount:
|
|
12329
|
-
homeLoanInterest:
|
|
12351
|
+
typeOfHouseProperty: Re(h.propertyType),
|
|
12352
|
+
loanTakenFrom: Re(b?.loanTakenFrom),
|
|
12353
|
+
lenderName: Re(b?.bankOrInstituteName),
|
|
12354
|
+
loanAccountNumber: Re(b?.loanAccountNo),
|
|
12355
|
+
sanctionDate: Re(b?.loanSanctionDate),
|
|
12356
|
+
totalLoanAmount: Ne(b?.totalLoanAmount),
|
|
12357
|
+
outstandingAmount: Ne(b?.loanOutstandingAmount),
|
|
12358
|
+
homeLoanInterest: g,
|
|
12330
12359
|
homeLoanPrinciple: void 0,
|
|
12331
|
-
housePropertyAddress: Re(
|
|
12332
|
-
housePropertyPincode: Re(
|
|
12333
|
-
rentalIncome:
|
|
12334
|
-
nameOfTenant: Re(
|
|
12335
|
-
propertyTax:
|
|
12336
|
-
hasCoOwnedProperty:
|
|
12337
|
-
coOwnerName: Re(
|
|
12338
|
-
coOwnerPan: Re(
|
|
12339
|
-
coOwnerShare:
|
|
12360
|
+
housePropertyAddress: Re(h.address),
|
|
12361
|
+
housePropertyPincode: Re(h.pinCode),
|
|
12362
|
+
rentalIncome: d,
|
|
12363
|
+
nameOfTenant: Re(m?.name),
|
|
12364
|
+
propertyTax: Ne(h.propertyTax),
|
|
12365
|
+
hasCoOwnedProperty: w.length > 0,
|
|
12366
|
+
coOwnerName: Re(_?.name),
|
|
12367
|
+
coOwnerPan: Re(_?.panNumber),
|
|
12368
|
+
coOwnerShare: Ne(_?.share)?.toString()
|
|
12340
12369
|
};
|
|
12341
|
-
})), t.us80cAmount =
|
|
12342
|
-
|
|
12370
|
+
})), t.us80cAmount = Tt(De(e.deductionUS80CDetails).map((h) => Ne(h.amount))), t.us80dForSelfAndFamilyAmount = Tt(
|
|
12371
|
+
De(e.deductionUS80DDetails).map((h) => Ne(h.healthInsuranceAmount))
|
|
12343
12372
|
);
|
|
12344
|
-
const i =
|
|
12345
|
-
t.savingBankInterest = a("SAVING_INTEREST"), t.fdInterest = a("FD_RD_INTEREST"), t.anyOtherIncome = a("ANY_OTHER"), t.dividend =
|
|
12373
|
+
const i = De(e.incomes), a = (h) => Tt(i.filter((p) => Re(p.incomeType) === h).map((p) => Ne(p.amount)));
|
|
12374
|
+
t.savingBankInterest = a("SAVING_INTEREST"), t.fdInterest = a("FD_RD_INTEREST"), t.anyOtherIncome = a("ANY_OTHER"), t.familyPension = a("FAMILY_PENSION"), t.dividend = Tt(De(e.dividendIncomes).map((h) => Ne(h.income)));
|
|
12346
12375
|
const l = e.business;
|
|
12347
12376
|
if (l) {
|
|
12348
|
-
const
|
|
12349
|
-
const
|
|
12350
|
-
return
|
|
12351
|
-
},
|
|
12352
|
-
if (!
|
|
12353
|
-
const
|
|
12354
|
-
t[
|
|
12377
|
+
const h = De(l.presumptiveIncomes), p = (g) => {
|
|
12378
|
+
const y = De(g.incomes), w = (m) => Ne(y.find((_) => Re(_.incomeType) === m)?.receipts) ?? 0;
|
|
12379
|
+
return w("ANY_OTHER") > 0 ? !0 : w("BANK") > 0 || w("CASH") > 0 ? !1 : !!Re(g.businessType)?.toUpperCase().includes("PROFESSION");
|
|
12380
|
+
}, b = (g) => h.find((y) => p(y) === g), d = (g, y) => {
|
|
12381
|
+
if (!g) return;
|
|
12382
|
+
const w = De(g.incomes), m = (x) => Ne(w.find((v) => Re(v.incomeType) === x)?.receipts), _ = m("BANK") || m("ANY_OTHER");
|
|
12383
|
+
t[y.name] = Re(g.businessType), t[y.nature] = Re(g.natureOfBusiness), t[y.bank] = _ || void 0, t[y.cash] = m("CASH") || void 0, t[y.net] = Tt(w.map((x) => Ne(x.presumptiveIncome))) || void 0;
|
|
12355
12384
|
};
|
|
12356
|
-
b(
|
|
12385
|
+
d(b(!1), {
|
|
12357
12386
|
name: "bizName",
|
|
12358
12387
|
nature: "bizNature",
|
|
12359
12388
|
bank: "bizReceiptsBank",
|
|
12360
12389
|
cash: "bizReceiptsCash",
|
|
12361
12390
|
net: "bizNetProfit"
|
|
12362
|
-
}), b(
|
|
12391
|
+
}), d(b(!0), {
|
|
12363
12392
|
name: "profName",
|
|
12364
12393
|
nature: "profNature",
|
|
12365
12394
|
bank: "profReceiptsBank",
|
|
@@ -12367,34 +12396,35 @@ function qh(s) {
|
|
|
12367
12396
|
net: "profNetProfit"
|
|
12368
12397
|
});
|
|
12369
12398
|
}
|
|
12370
|
-
|
|
12371
|
-
|
|
12372
|
-
|
|
12399
|
+
const c = De(e.capitalGain).filter((h) => Re(h.assetType)?.toUpperCase() === "VDA").flatMap((h) => De(h.assetDetails));
|
|
12400
|
+
c.length && (t.cryptoSellPrice = Tt(c.map((h) => Ne(h.sellValue))), t.cryptoPurchasePrice = Tt(c.map((h) => Ne(h.purchaseCost)))), t.agricultureIncome = Ne(e.agriculturalDetails?.income), t.aadhaarNumber = Re(e.aadharNumber);
|
|
12401
|
+
const u = De(e.bankDetails)[0];
|
|
12402
|
+
return u && (t.bankAccountNumber = Re(u.accountNumber), t.bankIfscCode = Re(u.ifsCode)), Rl(t);
|
|
12373
12403
|
}
|
|
12374
12404
|
function on(s) {
|
|
12375
|
-
return
|
|
12405
|
+
return De(s).reduce((e, t) => e + (Ne(t.taxableAmount) ?? 0), 0);
|
|
12376
12406
|
}
|
|
12377
|
-
function
|
|
12407
|
+
function zh(s, e, t) {
|
|
12378
12408
|
if (!e.length) return;
|
|
12379
12409
|
const r = Re(s.employerTAN)?.trim().toUpperCase();
|
|
12380
12410
|
if (r) {
|
|
12381
12411
|
for (const n of e)
|
|
12382
|
-
if (Re(n.deductorTAN)?.trim().toUpperCase() === r) return
|
|
12412
|
+
if (Re(n.deductorTAN)?.trim().toUpperCase() === r) return Ne(n.totalTdsDeposited);
|
|
12383
12413
|
}
|
|
12384
12414
|
const o = Re(s.employerName)?.trim().toLowerCase();
|
|
12385
12415
|
if (o) {
|
|
12386
12416
|
for (const n of e)
|
|
12387
|
-
if (Re(n.deductorName)?.trim().toLowerCase() === o) return
|
|
12417
|
+
if (Re(n.deductorName)?.trim().toLowerCase() === o) return Ne(n.totalTdsDeposited);
|
|
12388
12418
|
}
|
|
12389
12419
|
if (t.length === 1 && e.length === 1)
|
|
12390
|
-
return
|
|
12420
|
+
return Ne(e[0].totalTdsDeposited);
|
|
12391
12421
|
}
|
|
12392
|
-
function
|
|
12393
|
-
const e =
|
|
12422
|
+
function Vh(s) {
|
|
12423
|
+
const e = De(s);
|
|
12394
12424
|
if (!e.length) return {};
|
|
12395
12425
|
let t, r, o, n;
|
|
12396
12426
|
for (const i of e) {
|
|
12397
|
-
const a =
|
|
12427
|
+
const a = Ne(i.exemptAmount) ?? Ne(i.allowanceAmount);
|
|
12398
12428
|
switch (Re(i.allowanceType)?.toUpperCase()) {
|
|
12399
12429
|
case "HRA":
|
|
12400
12430
|
case "HOUSE_RENT_ALLOWANCE":
|
|
@@ -12408,21 +12438,21 @@ function Wh(s) {
|
|
|
12408
12438
|
o = a;
|
|
12409
12439
|
break;
|
|
12410
12440
|
default:
|
|
12411
|
-
n = (n ?? 0) + (
|
|
12441
|
+
n = (n ?? 0) + (Ne(i.allowanceAmount) ?? 0);
|
|
12412
12442
|
}
|
|
12413
12443
|
}
|
|
12414
12444
|
return { hra: t, lta: r, leaveEncashment: o, other: n };
|
|
12415
12445
|
}
|
|
12416
|
-
function
|
|
12446
|
+
function Tt(s) {
|
|
12417
12447
|
let e = 0, t = !1;
|
|
12418
12448
|
for (const r of s)
|
|
12419
12449
|
r != null && (e += r, t = !0);
|
|
12420
12450
|
return t ? e : void 0;
|
|
12421
12451
|
}
|
|
12422
|
-
function
|
|
12452
|
+
function De(s) {
|
|
12423
12453
|
return Array.isArray(s) ? s.filter((e) => e && typeof e == "object") : [];
|
|
12424
12454
|
}
|
|
12425
|
-
function
|
|
12455
|
+
function Ne(s) {
|
|
12426
12456
|
if (typeof s == "number" && Number.isFinite(s)) return s;
|
|
12427
12457
|
if (typeof s == "string" && s.trim() !== "" && Number.isFinite(Number(s))) return Number(s);
|
|
12428
12458
|
}
|
|
@@ -12444,23 +12474,23 @@ function sn() {
|
|
|
12444
12474
|
return console.warn(
|
|
12445
12475
|
"[smart-edit] API disabled: window.__aikaara_runtime__.getChatJwt is missing — the chat was not mounted via the SDK mountFromSlug path."
|
|
12446
12476
|
), null;
|
|
12447
|
-
const t = s.__aikaara_descriptor__ ?? {}, r =
|
|
12477
|
+
const t = s.__aikaara_descriptor__ ?? {}, r = ed(t);
|
|
12448
12478
|
if (!r)
|
|
12449
12479
|
return console.warn(
|
|
12450
12480
|
"[smart-edit] API disabled: could not resolve a TaxBuddy API host from the descriptor (cloud / upload / pan / leader endpoints)."
|
|
12451
12481
|
), null;
|
|
12452
|
-
const o =
|
|
12482
|
+
const o = td(e.slug), n = typeof o?.tenantJwt == "string" ? o.tenantJwt : "", i = e.getChatJwt, a = async () => n || await i(), l = (o && o.userId != null && o.userId !== "" ? String(o.userId) : nd(e.identity)) || void 0;
|
|
12453
12483
|
return console.info("[smart-edit] API config — base:", r, "· userId:", l ?? "(none)"), {
|
|
12454
12484
|
baseUrl: r,
|
|
12455
12485
|
getToken: a,
|
|
12456
|
-
headers:
|
|
12457
|
-
assessmentYear: t.itr?.assessmentYear ||
|
|
12486
|
+
headers: rd(t.auth?.headers),
|
|
12487
|
+
assessmentYear: t.itr?.assessmentYear || id(),
|
|
12458
12488
|
isRevised: "N",
|
|
12459
12489
|
userId: l,
|
|
12460
12490
|
submitUrl: t.itr?.automationSubmitUrl || void 0
|
|
12461
12491
|
};
|
|
12462
12492
|
}
|
|
12463
|
-
async function
|
|
12493
|
+
async function Kh(s) {
|
|
12464
12494
|
const e = await s.getToken(), t = s.userId;
|
|
12465
12495
|
if (!t)
|
|
12466
12496
|
throw new Error(
|
|
@@ -12478,11 +12508,11 @@ async function zh(s) {
|
|
|
12478
12508
|
const o = await r.text().catch(() => "");
|
|
12479
12509
|
throw new Error(`[smart-edit] GET /itr/latest-itr → ${r.status} ${o.slice(0, 200)}`);
|
|
12480
12510
|
}
|
|
12481
|
-
return
|
|
12511
|
+
return Wh(Ao(await r.json().catch(() => ({}))));
|
|
12482
12512
|
}
|
|
12483
|
-
async function
|
|
12513
|
+
async function Gh(s, e) {
|
|
12484
12514
|
const t = await s.getToken(), r = s.userId, o = {
|
|
12485
|
-
...
|
|
12515
|
+
...Nh(e, {
|
|
12486
12516
|
userId: r,
|
|
12487
12517
|
assessmentYear: s.assessmentYear,
|
|
12488
12518
|
isRevised: s.isRevised
|
|
@@ -12506,19 +12536,22 @@ async function Vh(s, e) {
|
|
|
12506
12536
|
}
|
|
12507
12537
|
return Ao(await a.json().catch(() => ({})));
|
|
12508
12538
|
}
|
|
12509
|
-
async function Kh(s, e) {
|
|
12510
|
-
return Qr(s, `${s.baseUrl}/itr/v1/automation/salary`, e);
|
|
12511
|
-
}
|
|
12512
|
-
async function Gh(s, e) {
|
|
12513
|
-
return Qr(s, `${s.baseUrl}/itr/v1/automation/bank-aadhaar`, e);
|
|
12514
|
-
}
|
|
12515
12539
|
async function Yh(s, e) {
|
|
12516
|
-
return
|
|
12540
|
+
return ur(s, `${s.baseUrl}/itr/v1/automation/salary`, e);
|
|
12517
12541
|
}
|
|
12518
12542
|
async function Jh(s, e) {
|
|
12519
|
-
return
|
|
12543
|
+
return ur(s, `${s.baseUrl}/itr/v1/automation/bank-aadhaar`, e);
|
|
12544
|
+
}
|
|
12545
|
+
async function Qh(s, e) {
|
|
12546
|
+
return ur(s, s.submitUrl || `${s.baseUrl}/itr/v1/automation/data`, e);
|
|
12520
12547
|
}
|
|
12521
|
-
async function
|
|
12548
|
+
async function Xh(s, e) {
|
|
12549
|
+
return ur(s, s.submitUrl || `${s.baseUrl}/itr/v1/automation/data`, e);
|
|
12550
|
+
}
|
|
12551
|
+
async function Zh(s, e) {
|
|
12552
|
+
return ur(s, s.submitUrl || `${s.baseUrl}/itr/v1/automation/data`, e);
|
|
12553
|
+
}
|
|
12554
|
+
async function ur(s, e, t) {
|
|
12522
12555
|
const o = {
|
|
12523
12556
|
accept: "application/json",
|
|
12524
12557
|
"content-type": "application/json",
|
|
@@ -12533,7 +12566,7 @@ async function Qr(s, e, t) {
|
|
|
12533
12566
|
}
|
|
12534
12567
|
return Ao(await n.json().catch(() => ({})));
|
|
12535
12568
|
}
|
|
12536
|
-
function
|
|
12569
|
+
function ed(s) {
|
|
12537
12570
|
const e = [
|
|
12538
12571
|
s.cloud?.listEndpoint,
|
|
12539
12572
|
s.cloud?.downloadEndpoint,
|
|
@@ -12551,7 +12584,7 @@ function Qh(s) {
|
|
|
12551
12584
|
}
|
|
12552
12585
|
return null;
|
|
12553
12586
|
}
|
|
12554
|
-
function
|
|
12587
|
+
function td(s) {
|
|
12555
12588
|
if (!s || typeof localStorage > "u") return null;
|
|
12556
12589
|
try {
|
|
12557
12590
|
const e = localStorage.getItem(`aikaara_sso:${s}`);
|
|
@@ -12562,7 +12595,7 @@ function Xh(s) {
|
|
|
12562
12595
|
return null;
|
|
12563
12596
|
}
|
|
12564
12597
|
}
|
|
12565
|
-
function
|
|
12598
|
+
function rd(s) {
|
|
12566
12599
|
const e = {};
|
|
12567
12600
|
if (!s) return e;
|
|
12568
12601
|
const t = /^(authorization|content-type|accept)$/i;
|
|
@@ -12570,7 +12603,7 @@ function Zh(s) {
|
|
|
12570
12603
|
!t.test(r) && typeof o == "string" && (e[r] = o);
|
|
12571
12604
|
return e;
|
|
12572
12605
|
}
|
|
12573
|
-
function
|
|
12606
|
+
function nd(s) {
|
|
12574
12607
|
if (!s) return;
|
|
12575
12608
|
const e = s.userId ?? s.id ?? s.ext_uid ?? s.extUid;
|
|
12576
12609
|
return e == null || e === "" ? void 0 : String(e);
|
|
@@ -12582,11 +12615,11 @@ function Ao(s) {
|
|
|
12582
12615
|
}
|
|
12583
12616
|
return {};
|
|
12584
12617
|
}
|
|
12585
|
-
function
|
|
12618
|
+
function id() {
|
|
12586
12619
|
const s = /* @__PURE__ */ new Date(), e = s.getMonth() >= 3 ? s.getFullYear() : s.getFullYear() - 1;
|
|
12587
12620
|
return `${e}-${e + 1}`;
|
|
12588
12621
|
}
|
|
12589
|
-
class
|
|
12622
|
+
class od {
|
|
12590
12623
|
client;
|
|
12591
12624
|
panel;
|
|
12592
12625
|
bubble;
|
|
@@ -12725,11 +12758,11 @@ class rd {
|
|
|
12725
12758
|
*/
|
|
12726
12759
|
async openSmartEdit() {
|
|
12727
12760
|
const e = this.ensureSmartEditModal();
|
|
12728
|
-
e.open({ schemas:
|
|
12761
|
+
e.open({ schemas: Lh, data: {} });
|
|
12729
12762
|
const t = sn();
|
|
12730
12763
|
if (!(!t || !t.baseUrl))
|
|
12731
12764
|
try {
|
|
12732
|
-
const r = await
|
|
12765
|
+
const r = await Kh(t);
|
|
12733
12766
|
e.setData(r);
|
|
12734
12767
|
} catch (r) {
|
|
12735
12768
|
console.warn("[smart-edit] fetch failed", r), this.errorBanner.show(
|
|
@@ -12762,16 +12795,19 @@ class rd {
|
|
|
12762
12795
|
const o = { userId: r.userId, assessmentYear: r.assessmentYear };
|
|
12763
12796
|
try {
|
|
12764
12797
|
if (e === "salary-hra") {
|
|
12765
|
-
const n = Array.isArray(t.salaryDetails) ? t.salaryDetails : [], i =
|
|
12766
|
-
i && await
|
|
12798
|
+
const n = Array.isArray(t.salaryDetails) ? t.salaryDetails : [], i = Bh(n, o);
|
|
12799
|
+
i && await Yh(r, i);
|
|
12767
12800
|
} else if (e === "bank-details") {
|
|
12768
|
-
const n =
|
|
12769
|
-
n && await
|
|
12801
|
+
const n = Dh(t, o);
|
|
12802
|
+
n && await Jh(r, n);
|
|
12770
12803
|
} else if (e === "other-sources")
|
|
12771
|
-
await
|
|
12804
|
+
await Qh(r, $h(t, o));
|
|
12772
12805
|
else if (e === "business-profession") {
|
|
12773
|
-
const n =
|
|
12774
|
-
n && await
|
|
12806
|
+
const n = qh(t, o);
|
|
12807
|
+
n && await Xh(r, n);
|
|
12808
|
+
} else if (e === "crypto-income") {
|
|
12809
|
+
const n = Fh(t, o);
|
|
12810
|
+
n && await Zh(r, n);
|
|
12775
12811
|
}
|
|
12776
12812
|
} catch (n) {
|
|
12777
12813
|
console.warn("[smart-edit] section save failed", e, n), this.errorBanner.show("Failed to save. Please try again.", 4e3);
|
|
@@ -12791,7 +12827,7 @@ class rd {
|
|
|
12791
12827
|
return;
|
|
12792
12828
|
}
|
|
12793
12829
|
try {
|
|
12794
|
-
await
|
|
12830
|
+
await Gh(t, e);
|
|
12795
12831
|
} catch (r) {
|
|
12796
12832
|
console.warn("[smart-edit] save failed", r), this.errorBanner.show(
|
|
12797
12833
|
"Failed to save your ITR details. Please try again.",
|
|
@@ -12807,7 +12843,7 @@ class rd {
|
|
|
12807
12843
|
}, 200)));
|
|
12808
12844
|
}
|
|
12809
12845
|
}
|
|
12810
|
-
class
|
|
12846
|
+
class sd extends HTMLElement {
|
|
12811
12847
|
shadow;
|
|
12812
12848
|
controller = null;
|
|
12813
12849
|
_config = {};
|
|
@@ -13076,7 +13112,7 @@ class nd extends HTMLElement {
|
|
|
13076
13112
|
}
|
|
13077
13113
|
async initController() {
|
|
13078
13114
|
const e = this.getConfig(), t = e.transport ?? "aikaara";
|
|
13079
|
-
(t === "aikaara" || t === "dual") && (!e.baseUrl || !e.userToken) || (this.controller?.disconnect(), this.controller = new
|
|
13115
|
+
(t === "aikaara" || t === "dual") && (!e.baseUrl || !e.userToken) || (this.controller?.disconnect(), this.controller = new od(e, this.shadow, {
|
|
13080
13116
|
uploadAdapter: this._config.uploadAdapter,
|
|
13081
13117
|
historyAdapter: this._config.historyAdapter
|
|
13082
13118
|
}), await this.controller.connect());
|
|
@@ -13096,7 +13132,7 @@ class nd extends HTMLElement {
|
|
|
13096
13132
|
}
|
|
13097
13133
|
}
|
|
13098
13134
|
}
|
|
13099
|
-
class
|
|
13135
|
+
class ad extends HTMLElement {
|
|
13100
13136
|
shadow;
|
|
13101
13137
|
constructor() {
|
|
13102
13138
|
super(), this.shadow = this.attachShadow({ mode: "open" });
|
|
@@ -13149,12 +13185,12 @@ class id extends HTMLElement {
|
|
|
13149
13185
|
t && (t.innerHTML = e);
|
|
13150
13186
|
}
|
|
13151
13187
|
}
|
|
13152
|
-
const
|
|
13188
|
+
const ld = [
|
|
13153
13189
|
{ id: "edit-itr", label: "Edit ITR Details", icon: "edit" }
|
|
13154
13190
|
];
|
|
13155
|
-
class
|
|
13191
|
+
class cd extends HTMLElement {
|
|
13156
13192
|
shadow;
|
|
13157
|
-
actions =
|
|
13193
|
+
actions = ld;
|
|
13158
13194
|
menuOpen = !1;
|
|
13159
13195
|
outsideClickHandler = null;
|
|
13160
13196
|
static get observedAttributes() {
|
|
@@ -13380,7 +13416,7 @@ class sd extends HTMLElement {
|
|
|
13380
13416
|
this.setAttribute("status", e);
|
|
13381
13417
|
}
|
|
13382
13418
|
}
|
|
13383
|
-
const
|
|
13419
|
+
const ud = /<\s*(br|i|b|em|strong|small|sub|sup|p|div|span|ul|ol|li|a|img|code|pre)\b/i, hd = /&(quot|apos|amp|lt|gt|nbsp|#\d+|#x[0-9a-f]+);/i, dd = {
|
|
13384
13420
|
""": '"',
|
|
13385
13421
|
"'": "'",
|
|
13386
13422
|
"<": "<",
|
|
@@ -13388,14 +13424,14 @@ const ad = /<\s*(br|i|b|em|strong|small|sub|sup|p|div|span|ul|ol|li|a|img|code|p
|
|
|
13388
13424
|
"&": "&",
|
|
13389
13425
|
" ": " "
|
|
13390
13426
|
};
|
|
13391
|
-
function
|
|
13392
|
-
return s.replace(/&(quot|apos|lt|gt|nbsp);/gi, (e) =>
|
|
13427
|
+
function fd(s) {
|
|
13428
|
+
return s.replace(/&(quot|apos|lt|gt|nbsp);/gi, (e) => dd[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, "&");
|
|
13393
13429
|
}
|
|
13394
|
-
function
|
|
13395
|
-
if (
|
|
13430
|
+
function qt(s) {
|
|
13431
|
+
if (ud.test(s))
|
|
13396
13432
|
return s;
|
|
13397
|
-
const e =
|
|
13398
|
-
let t =
|
|
13433
|
+
const e = hd.test(s) ? fd(s) : s;
|
|
13434
|
+
let t = pd(e);
|
|
13399
13435
|
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(
|
|
13400
13436
|
/\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)/g,
|
|
13401
13437
|
'<a href="$2" target="_self" rel="noopener noreferrer">$1</a>'
|
|
@@ -13407,7 +13443,7 @@ function Ft(s) {
|
|
|
13407
13443
|
}
|
|
13408
13444
|
), t = t.replace(/\n/g, "<br>"), t;
|
|
13409
13445
|
}
|
|
13410
|
-
function
|
|
13446
|
+
function pd(s) {
|
|
13411
13447
|
const e = {
|
|
13412
13448
|
"&": "&",
|
|
13413
13449
|
"<": "<",
|
|
@@ -13417,7 +13453,7 @@ function hd(s) {
|
|
|
13417
13453
|
};
|
|
13418
13454
|
return s.replace(/[&<>"']/g, (t) => e[t]);
|
|
13419
13455
|
}
|
|
13420
|
-
const
|
|
13456
|
+
const md = /* @__PURE__ */ new Set([
|
|
13421
13457
|
"p",
|
|
13422
13458
|
"br",
|
|
13423
13459
|
"hr",
|
|
@@ -13452,7 +13488,7 @@ const dd = /* @__PURE__ */ new Set([
|
|
|
13452
13488
|
"tr",
|
|
13453
13489
|
"th",
|
|
13454
13490
|
"td"
|
|
13455
|
-
]),
|
|
13491
|
+
]), gd = {
|
|
13456
13492
|
a: /* @__PURE__ */ new Set(["href", "target", "rel"]),
|
|
13457
13493
|
img: /* @__PURE__ */ new Set(["src", "alt", "width", "height"]),
|
|
13458
13494
|
code: /* @__PURE__ */ new Set(["class"]),
|
|
@@ -13460,7 +13496,7 @@ const dd = /* @__PURE__ */ new Set([
|
|
|
13460
13496
|
span: /* @__PURE__ */ new Set(["class"]),
|
|
13461
13497
|
div: /* @__PURE__ */ new Set(["class"])
|
|
13462
13498
|
};
|
|
13463
|
-
function
|
|
13499
|
+
function Ht(s) {
|
|
13464
13500
|
const e = document.createElement("template");
|
|
13465
13501
|
return e.innerHTML = s, Ll(e.content), e.innerHTML;
|
|
13466
13502
|
}
|
|
@@ -13469,12 +13505,12 @@ function Ll(s) {
|
|
|
13469
13505
|
for (const t of e)
|
|
13470
13506
|
if (t.nodeType === Node.ELEMENT_NODE) {
|
|
13471
13507
|
const r = t, o = r.tagName.toLowerCase();
|
|
13472
|
-
if (!
|
|
13508
|
+
if (!md.has(o)) {
|
|
13473
13509
|
const a = document.createTextNode(r.textContent || "");
|
|
13474
13510
|
s.replaceChild(a, t);
|
|
13475
13511
|
continue;
|
|
13476
13512
|
}
|
|
13477
|
-
const n =
|
|
13513
|
+
const n = gd[o] || /* @__PURE__ */ new Set(), i = Array.from(r.attributes);
|
|
13478
13514
|
for (const a of i)
|
|
13479
13515
|
n.has(a.name) || r.removeAttribute(a.name);
|
|
13480
13516
|
if (r.hasAttribute("href")) {
|
|
@@ -13484,7 +13520,7 @@ function Ll(s) {
|
|
|
13484
13520
|
Ll(t);
|
|
13485
13521
|
}
|
|
13486
13522
|
}
|
|
13487
|
-
function
|
|
13523
|
+
function bd(s, e = {}) {
|
|
13488
13524
|
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), a = window.open(
|
|
13489
13525
|
s,
|
|
13490
13526
|
"aikaara_popup",
|
|
@@ -13502,7 +13538,7 @@ function pd(s, e = {}) {
|
|
|
13502
13538
|
}, 500);
|
|
13503
13539
|
return a;
|
|
13504
13540
|
}
|
|
13505
|
-
function
|
|
13541
|
+
function yd(s) {
|
|
13506
13542
|
const e = Date.now() - s.getTime(), t = Math.round(e / 1e3);
|
|
13507
13543
|
if (t < 5) return "just now";
|
|
13508
13544
|
if (t < 60) return `${t}s ago`;
|
|
@@ -13513,7 +13549,7 @@ function md(s) {
|
|
|
13513
13549
|
const n = Math.round(o / 24);
|
|
13514
13550
|
return n === 1 ? "Yesterday" : n < 7 ? `${n} d ago` : s.toLocaleDateString(void 0, { month: "short", day: "2-digit" });
|
|
13515
13551
|
}
|
|
13516
|
-
class
|
|
13552
|
+
class vd extends HTMLElement {
|
|
13517
13553
|
shadow;
|
|
13518
13554
|
container;
|
|
13519
13555
|
welcomeMessage = "";
|
|
@@ -13741,7 +13777,7 @@ class gd extends HTMLElement {
|
|
|
13741
13777
|
renderMessages(e) {
|
|
13742
13778
|
if (!this.container) return;
|
|
13743
13779
|
if (this.container.innerHTML = "", e.length === 0 && this.welcomeMessage) {
|
|
13744
|
-
this.container.innerHTML = `<div class="welcome">${qt(
|
|
13780
|
+
this.container.innerHTML = `<div class="welcome">${Ht(qt(this.welcomeMessage))}</div>`;
|
|
13745
13781
|
return;
|
|
13746
13782
|
}
|
|
13747
13783
|
const t = this.computeConsumedIds(e);
|
|
@@ -13766,7 +13802,7 @@ class gd extends HTMLElement {
|
|
|
13766
13802
|
if (n.role === "user") {
|
|
13767
13803
|
const i = n.metadata?.attributes?.action;
|
|
13768
13804
|
if (i) {
|
|
13769
|
-
const a =
|
|
13805
|
+
const a = wd(i);
|
|
13770
13806
|
if (i.message_id && t.set(i.message_id, a), Object.keys(a).length > 0)
|
|
13771
13807
|
for (let l = o - 1; l >= 0; l--) {
|
|
13772
13808
|
const c = e[l];
|
|
@@ -13791,7 +13827,7 @@ class gd extends HTMLElement {
|
|
|
13791
13827
|
}
|
|
13792
13828
|
updateStreamingContent(e) {
|
|
13793
13829
|
const t = this.container.querySelector('[data-streaming="true"] .bubble');
|
|
13794
|
-
t && (t.innerHTML = qt(
|
|
13830
|
+
t && (t.innerHTML = Ht(qt(e)), t.classList.add("streaming-cursor"), this.scrollToBottom());
|
|
13795
13831
|
}
|
|
13796
13832
|
finalizeStreaming() {
|
|
13797
13833
|
const e = this.container.querySelector('[data-streaming="true"]');
|
|
@@ -13820,7 +13856,7 @@ class gd extends HTMLElement {
|
|
|
13820
13856
|
const o = document.createElement("div");
|
|
13821
13857
|
o.classList.add("bubble", e.role);
|
|
13822
13858
|
const i = !!e.template?.contentType && e.role !== "user";
|
|
13823
|
-
e.role === "user" ? !!e.attachments?.length && !e.content?.trim() ? o.classList.add("attachment-only") : o.textContent = e.content : i ? e.content && (o.innerHTML = qt(
|
|
13859
|
+
e.role === "user" ? !!e.attachments?.length && !e.content?.trim() ? o.classList.add("attachment-only") : o.textContent = e.content : i ? e.content && (o.innerHTML = Ht(qt(e.content))) : (o.innerHTML = Ht(qt(e.content || "")), e.status === "streaming" && o.classList.add("streaming-cursor"));
|
|
13824
13860
|
let a = null;
|
|
13825
13861
|
if (e.template?.contentType) {
|
|
13826
13862
|
const h = document.createElement("aikaara-template-renderer");
|
|
@@ -13904,7 +13940,7 @@ class gd extends HTMLElement {
|
|
|
13904
13940
|
case "date":
|
|
13905
13941
|
return r;
|
|
13906
13942
|
case "relative":
|
|
13907
|
-
return
|
|
13943
|
+
return yd(t);
|
|
13908
13944
|
case "time-24":
|
|
13909
13945
|
return t.toLocaleTimeString(void 0, { hour: "2-digit", minute: "2-digit", hour12: !1 });
|
|
13910
13946
|
case "time-seconds":
|
|
@@ -13930,7 +13966,7 @@ class gd extends HTMLElement {
|
|
|
13930
13966
|
return;
|
|
13931
13967
|
}
|
|
13932
13968
|
if (o === "popup") {
|
|
13933
|
-
|
|
13969
|
+
bd(e);
|
|
13934
13970
|
return;
|
|
13935
13971
|
}
|
|
13936
13972
|
const n = this.getOrCreateModal(), i = r?.title ?? t ?? "Link";
|
|
@@ -13938,7 +13974,7 @@ class gd extends HTMLElement {
|
|
|
13938
13974
|
requestAnimationFrame(() => n.show?.(e, i));
|
|
13939
13975
|
return;
|
|
13940
13976
|
}
|
|
13941
|
-
const a =
|
|
13977
|
+
const a = _d(e), l = Nl(r.fetch.url, a), c = {
|
|
13942
13978
|
accept: "application/json",
|
|
13943
13979
|
...r.fetch.headers ?? {}
|
|
13944
13980
|
}, u = r.fetch.authHeader ?? "session";
|
|
@@ -13984,7 +14020,7 @@ class gd extends HTMLElement {
|
|
|
13984
14020
|
return e || (e = document.createElement("aikaara-link-modal"), document.body.appendChild(e)), e;
|
|
13985
14021
|
}
|
|
13986
14022
|
}
|
|
13987
|
-
function
|
|
14023
|
+
function wd(s) {
|
|
13988
14024
|
const e = /* @__PURE__ */ new Set(["message_id", "formAction", "requestType"]), t = {};
|
|
13989
14025
|
for (const [r, o] of Object.entries(s))
|
|
13990
14026
|
e.has(r) || (Array.isArray(o) && o.every((n) => typeof n == "string") ? t[r] = o : typeof o == "string" && (t[r] = [o]));
|
|
@@ -13994,7 +14030,7 @@ function zs(s, e) {
|
|
|
13994
14030
|
const t = e.replace(/[.+^${}()|[\]\\]/g, "\\$&");
|
|
13995
14031
|
return new RegExp("^" + t.replace(/\*/g, ".*").replace(/\?/g, ".") + "$", "i").test(s);
|
|
13996
14032
|
}
|
|
13997
|
-
function
|
|
14033
|
+
function _d(s) {
|
|
13998
14034
|
try {
|
|
13999
14035
|
const e = new URL(s), t = {};
|
|
14000
14036
|
return e.searchParams.forEach((r, o) => {
|
|
@@ -14017,7 +14053,7 @@ function co(s, e) {
|
|
|
14017
14053
|
}
|
|
14018
14054
|
return s;
|
|
14019
14055
|
}
|
|
14020
|
-
class
|
|
14056
|
+
class kd extends HTMLElement {
|
|
14021
14057
|
shadow;
|
|
14022
14058
|
templatePayload = null;
|
|
14023
14059
|
attachments = [];
|
|
@@ -14040,7 +14076,7 @@ class vd extends HTMLElement {
|
|
|
14040
14076
|
this.attachments = e, this.render();
|
|
14041
14077
|
}
|
|
14042
14078
|
render() {
|
|
14043
|
-
const e = this.getAttribute("role") || "user", t = this.getAttribute("content") || "", r = this.getAttribute("timestamp") || "", o = this.getAttribute("status") || "", n = this.getAttribute("content-type") || "", i = this.getAttribute("template-id") || "", a = this.getAttribute("inner-message") || "", l = e === "user" ? document.createTextNode(t).textContent || "" : qt(
|
|
14079
|
+
const e = this.getAttribute("role") || "user", t = this.getAttribute("content") || "", r = this.getAttribute("timestamp") || "", o = this.getAttribute("status") || "", n = this.getAttribute("content-type") || "", i = this.getAttribute("template-id") || "", a = this.getAttribute("inner-message") || "", l = e === "user" ? document.createTextNode(t).textContent || "" : Ht(qt(t)), c = e === "user" && o, u = o === "sending" ? "○" : o === "sent" ? "✓" : o === "delivered" || o === "read" ? "✓✓" : "";
|
|
14044
14080
|
this.shadow.innerHTML = `
|
|
14045
14081
|
<style>
|
|
14046
14082
|
:host { display: flex; flex-direction: column; }
|
|
@@ -14133,7 +14169,7 @@ class vd extends HTMLElement {
|
|
|
14133
14169
|
renderAttachments() {
|
|
14134
14170
|
return this.attachments.length ? `<div class="attachments">${this.attachments.map(
|
|
14135
14171
|
(t) => `<a class="attachment" href="${Vs(t.fileUrl)}" target="_blank" rel="noopener noreferrer">
|
|
14136
|
-
📎 ${
|
|
14172
|
+
📎 ${xd(t.fileName)}
|
|
14137
14173
|
</a>`
|
|
14138
14174
|
).join("")}</div>` : "";
|
|
14139
14175
|
}
|
|
@@ -14141,10 +14177,10 @@ class vd extends HTMLElement {
|
|
|
14141
14177
|
function Vs(s) {
|
|
14142
14178
|
return String(s).replace(/[&<>"']/g, (e) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[e]);
|
|
14143
14179
|
}
|
|
14144
|
-
function
|
|
14180
|
+
function xd(s) {
|
|
14145
14181
|
return String(s).replace(/[&<>]/g, (e) => ({ "&": "&", "<": "<", ">": ">" })[e]);
|
|
14146
14182
|
}
|
|
14147
|
-
class
|
|
14183
|
+
class Sd extends HTMLElement {
|
|
14148
14184
|
shadow;
|
|
14149
14185
|
textarea;
|
|
14150
14186
|
sendBtn;
|
|
@@ -14295,7 +14331,7 @@ class _d extends HTMLElement {
|
|
|
14295
14331
|
this.textarea.style.height = "auto", this.textarea.style.height = Math.min(this.textarea.scrollHeight, 120) + "px";
|
|
14296
14332
|
}
|
|
14297
14333
|
}
|
|
14298
|
-
class
|
|
14334
|
+
class Ed extends HTMLElement {
|
|
14299
14335
|
shadow;
|
|
14300
14336
|
constructor() {
|
|
14301
14337
|
super(), this.shadow = this.attachShadow({ mode: "open" });
|
|
@@ -14344,7 +14380,7 @@ class kd extends HTMLElement {
|
|
|
14344
14380
|
this.removeAttribute("visible");
|
|
14345
14381
|
}
|
|
14346
14382
|
}
|
|
14347
|
-
class
|
|
14383
|
+
class Ad extends HTMLElement {
|
|
14348
14384
|
shadow;
|
|
14349
14385
|
bubble;
|
|
14350
14386
|
constructor() {
|
|
@@ -14403,13 +14439,13 @@ class xd extends HTMLElement {
|
|
|
14403
14439
|
`, this.bubble = this.shadow.querySelector(".bubble");
|
|
14404
14440
|
}
|
|
14405
14441
|
updateContent(e) {
|
|
14406
|
-
this.bubble && (this.bubble.innerHTML = qt(
|
|
14442
|
+
this.bubble && (this.bubble.innerHTML = Ht(qt(e)), this.bubble.classList.add("cursor"));
|
|
14407
14443
|
}
|
|
14408
14444
|
finalize() {
|
|
14409
14445
|
this.bubble?.classList.remove("cursor");
|
|
14410
14446
|
}
|
|
14411
14447
|
}
|
|
14412
|
-
class
|
|
14448
|
+
class Id extends HTMLElement {
|
|
14413
14449
|
shadow;
|
|
14414
14450
|
container;
|
|
14415
14451
|
dismissTimer = null;
|
|
@@ -14482,7 +14518,7 @@ function jl(s) {
|
|
|
14482
14518
|
});
|
|
14483
14519
|
return an.set(s, t), t;
|
|
14484
14520
|
}
|
|
14485
|
-
function
|
|
14521
|
+
function Td(s, e = 5e3) {
|
|
14486
14522
|
return new Promise((t, r) => {
|
|
14487
14523
|
const o = setTimeout(() => r(new Error(`Custom element <${s}> not registered within ${e}ms`)), e);
|
|
14488
14524
|
customElements.whenDefined(s).then(() => {
|
|
@@ -14490,14 +14526,14 @@ function Ed(s, e = 5e3) {
|
|
|
14490
14526
|
});
|
|
14491
14527
|
});
|
|
14492
14528
|
}
|
|
14493
|
-
const
|
|
14494
|
-
"aikaara-template-payment-link": () => import("./AikaaraPaymentLink-
|
|
14529
|
+
const Cd = {
|
|
14530
|
+
"aikaara-template-payment-link": () => import("./AikaaraPaymentLink-CL4O6gbc.mjs").then(({ registerAikaaraPaymentLink: s }) => s())
|
|
14495
14531
|
};
|
|
14496
|
-
function
|
|
14532
|
+
function Od(s) {
|
|
14497
14533
|
const e = `template:${s}`, t = window.__aikaara_descriptor__?.components?.[e];
|
|
14498
14534
|
return t && t.kind === "iife-element" ? { render: t.tag, scriptUrl: t.scriptUrl, props: t.props } : window.__aikaara_descriptor__?.templates?.[s];
|
|
14499
14535
|
}
|
|
14500
|
-
class
|
|
14536
|
+
class Pd extends HTMLElement {
|
|
14501
14537
|
shadow;
|
|
14502
14538
|
payloadData = null;
|
|
14503
14539
|
innerMessage = "";
|
|
@@ -14521,7 +14557,7 @@ class Td extends HTMLElement {
|
|
|
14521
14557
|
this.render(), this.addEventListener("template-action", (e) => {
|
|
14522
14558
|
const t = e.detail, r = this.getAttribute("message-id");
|
|
14523
14559
|
if (r && t?.attributes?.action) {
|
|
14524
|
-
const o =
|
|
14560
|
+
const o = Ld(t.attributes.action);
|
|
14525
14561
|
if (Object.keys(o).length > 0)
|
|
14526
14562
|
try {
|
|
14527
14563
|
localStorage.setItem(`aikaara_form:${r}`, JSON.stringify(o));
|
|
@@ -14597,8 +14633,8 @@ class Td extends HTMLElement {
|
|
|
14597
14633
|
<slot></slot>
|
|
14598
14634
|
`; this.firstChild; ) this.removeChild(this.firstChild);
|
|
14599
14635
|
if (!e) return;
|
|
14600
|
-
const r = t ?
|
|
14601
|
-
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) && jl(r.scriptUrl).then(() =>
|
|
14636
|
+
const r = t ? Od(t) : void 0, o = r?.render ?? (t ? `aikaara-template-${t}` : `aikaara-template-${e}`), n = Cd[o];
|
|
14637
|
+
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) && jl(r.scriptUrl).then(() => Td(o)).then(() => this.render()).catch((i) => console.warn(`[aikaara-template-renderer] failed to lazy-load ${r.scriptUrl}`, i)), customElements.get(o)) {
|
|
14602
14638
|
const i = document.createElement(o);
|
|
14603
14639
|
if (r?.props) {
|
|
14604
14640
|
for (const [a, l] of Object.entries(r.props))
|
|
@@ -14685,7 +14721,7 @@ class Td extends HTMLElement {
|
|
|
14685
14721
|
*/
|
|
14686
14722
|
mountLinkButton(e) {
|
|
14687
14723
|
const t = this.renderGen;
|
|
14688
|
-
import("./AikaaraLinkButton
|
|
14724
|
+
import("./AikaaraLinkButton-DHQbtHiT.mjs").then(({ registerAikaaraLinkButton: r, AikaaraLinkButton: o }) => {
|
|
14689
14725
|
if (t !== this.renderGen) return;
|
|
14690
14726
|
r();
|
|
14691
14727
|
const n = document.createElement("aikaara-link-button");
|
|
@@ -14694,7 +14730,7 @@ class Td extends HTMLElement {
|
|
|
14694
14730
|
url: e.url ?? "",
|
|
14695
14731
|
openLinkInNewTab: e.openLinkInNewTab,
|
|
14696
14732
|
orderId: e.orderId,
|
|
14697
|
-
extra:
|
|
14733
|
+
extra: Rd(e),
|
|
14698
14734
|
messageId: this.getAttribute("message-id") ?? void 0
|
|
14699
14735
|
}), this.appendChild(n);
|
|
14700
14736
|
});
|
|
@@ -14704,26 +14740,26 @@ class Td extends HTMLElement {
|
|
|
14704
14740
|
t.setPayload(e), this.appendChild(t);
|
|
14705
14741
|
}
|
|
14706
14742
|
}
|
|
14707
|
-
const
|
|
14743
|
+
const Md = /* @__PURE__ */ new Set([
|
|
14708
14744
|
"type",
|
|
14709
14745
|
"url",
|
|
14710
14746
|
"name",
|
|
14711
14747
|
"openLinkInNewTab",
|
|
14712
14748
|
"orderId"
|
|
14713
14749
|
]);
|
|
14714
|
-
function
|
|
14750
|
+
function Rd(s) {
|
|
14715
14751
|
const e = {};
|
|
14716
14752
|
for (const [t, r] of Object.entries(s))
|
|
14717
|
-
|
|
14753
|
+
Md.has(t) || (e[t] = r);
|
|
14718
14754
|
return e;
|
|
14719
14755
|
}
|
|
14720
|
-
function
|
|
14756
|
+
function Ld(s) {
|
|
14721
14757
|
const e = /* @__PURE__ */ new Set(["message_id", "formAction", "requestType", "serviceType"]), t = {};
|
|
14722
14758
|
for (const [r, o] of Object.entries(s))
|
|
14723
14759
|
e.has(r) || (Array.isArray(o) && o.every((n) => typeof n == "string") ? t[r] = o : typeof o == "string" && (t[r] = [o]));
|
|
14724
14760
|
return t;
|
|
14725
14761
|
}
|
|
14726
|
-
class
|
|
14762
|
+
class Nd extends HTMLElement {
|
|
14727
14763
|
shadow;
|
|
14728
14764
|
static get observedAttributes() {
|
|
14729
14765
|
return ["text", "subtext"];
|
|
@@ -14772,7 +14808,7 @@ class Md extends HTMLElement {
|
|
|
14772
14808
|
function Ks(s) {
|
|
14773
14809
|
return String(s).replace(/[&<>]/g, (e) => ({ "&": "&", "<": "<", ">": ">" })[e]);
|
|
14774
14810
|
}
|
|
14775
|
-
class
|
|
14811
|
+
class jd extends HTMLElement {
|
|
14776
14812
|
shadow;
|
|
14777
14813
|
data = null;
|
|
14778
14814
|
selected = /* @__PURE__ */ new Set();
|
|
@@ -14864,7 +14900,7 @@ class Rd extends HTMLElement {
|
|
|
14864
14900
|
<path d="M3 8 L7 12 L13 4" />
|
|
14865
14901
|
</svg>
|
|
14866
14902
|
</span>
|
|
14867
|
-
<span class="text">${
|
|
14903
|
+
<span class="text">${Ct(e)}</span>
|
|
14868
14904
|
</div>
|
|
14869
14905
|
`, !this.preSelectedDisabled) {
|
|
14870
14906
|
const c = this.shadow.querySelector(".row");
|
|
@@ -14919,8 +14955,8 @@ class Rd extends HTMLElement {
|
|
|
14919
14955
|
.row[aria-checked="true"] .dot { opacity: 1; transform: scale(1); }
|
|
14920
14956
|
.label { flex: 1; }
|
|
14921
14957
|
</style>
|
|
14922
|
-
${e ? `<div class="title">${
|
|
14923
|
-
<div class="list" role="radiogroup" aria-label="${
|
|
14958
|
+
${e ? `<div class="title">${Ct(e)}</div>` : ""}
|
|
14959
|
+
<div class="list" role="radiogroup" aria-label="${Ct(e ?? this.data.name)}">
|
|
14924
14960
|
${t.map((a) => {
|
|
14925
14961
|
const l = this.selected.has(a.value);
|
|
14926
14962
|
return `
|
|
@@ -14928,7 +14964,7 @@ class Rd extends HTMLElement {
|
|
|
14928
14964
|
aria-checked="${l}" aria-disabled="${this.preSelectedDisabled}"
|
|
14929
14965
|
data-value="${ln(a.value)}">
|
|
14930
14966
|
<span class="circle" aria-hidden="true"><span class="dot"></span></span>
|
|
14931
|
-
<span class="label">${
|
|
14967
|
+
<span class="label">${Ct(a.label)}</span>
|
|
14932
14968
|
</div>`;
|
|
14933
14969
|
}).join("")}
|
|
14934
14970
|
</div>
|
|
@@ -14973,8 +15009,8 @@ class Rd extends HTMLElement {
|
|
|
14973
15009
|
border-color: var(--aikaara-option-selected-border, var(--aikaara-primary, #6366f1));
|
|
14974
15010
|
}
|
|
14975
15011
|
</style>
|
|
14976
|
-
${e ? `<div class="title">${
|
|
14977
|
-
<div class="grid" role="${o ? "group" : "radiogroup"}" aria-label="${
|
|
15012
|
+
${e ? `<div class="title">${Ct(e)}</div>` : ""}
|
|
15013
|
+
<div class="grid" role="${o ? "group" : "radiogroup"}" aria-label="${Ct(e ?? this.data.name)}">
|
|
14978
15014
|
${t.map(
|
|
14979
15015
|
(i) => `
|
|
14980
15016
|
<button class="opt" type="button"
|
|
@@ -14982,7 +15018,7 @@ class Rd extends HTMLElement {
|
|
|
14982
15018
|
role="${o ? "checkbox" : "radio"}"
|
|
14983
15019
|
aria-pressed="${this.selected.has(i.value)}"
|
|
14984
15020
|
${this.preSelectedDisabled ? 'disabled aria-disabled="true"' : ""}>
|
|
14985
|
-
${
|
|
15021
|
+
${Ct(i.label)}
|
|
14986
15022
|
</button>`
|
|
14987
15023
|
).join("")}
|
|
14988
15024
|
</div>
|
|
@@ -14991,13 +15027,13 @@ class Rd extends HTMLElement {
|
|
|
14991
15027
|
});
|
|
14992
15028
|
}
|
|
14993
15029
|
}
|
|
14994
|
-
function
|
|
15030
|
+
function Ct(s) {
|
|
14995
15031
|
return String(s).replace(/[&<>]/g, (e) => ({ "&": "&", "<": "<", ">": ">" })[e]);
|
|
14996
15032
|
}
|
|
14997
15033
|
function ln(s) {
|
|
14998
15034
|
return String(s).replace(/[&<>"']/g, (e) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[e]);
|
|
14999
15035
|
}
|
|
15000
|
-
class
|
|
15036
|
+
class Ud extends HTMLElement {
|
|
15001
15037
|
shadow;
|
|
15002
15038
|
data = null;
|
|
15003
15039
|
constructor() {
|
|
@@ -15066,14 +15102,14 @@ class Ld extends HTMLElement {
|
|
|
15066
15102
|
button:hover { background: var(--aikaara-submit-hover-bg, var(--aikaara-primary-hover, #4f46e5)); }
|
|
15067
15103
|
button:disabled { opacity: var(--aikaara-submit-disabled-opacity, 0.5); cursor: not-allowed; }
|
|
15068
15104
|
</style>
|
|
15069
|
-
<button type="button">${
|
|
15105
|
+
<button type="button">${Bd(e)}</button>
|
|
15070
15106
|
`, this.shadow.querySelector("button").addEventListener("click", () => this.handleClick());
|
|
15071
15107
|
}
|
|
15072
15108
|
}
|
|
15073
|
-
function
|
|
15109
|
+
function Bd(s) {
|
|
15074
15110
|
return String(s).replace(/[&<>]/g, (e) => ({ "&": "&", "<": "<", ">": ">" })[e]);
|
|
15075
15111
|
}
|
|
15076
|
-
class
|
|
15112
|
+
class Dd extends HTMLElement {
|
|
15077
15113
|
shadow;
|
|
15078
15114
|
data = null;
|
|
15079
15115
|
dismissed = !1;
|
|
@@ -15165,7 +15201,7 @@ class jd extends HTMLElement {
|
|
|
15165
15201
|
function cn(s) {
|
|
15166
15202
|
return String(s).replace(/[&<>]/g, (e) => ({ "&": "&", "<": "<", ">": ">" })[e]);
|
|
15167
15203
|
}
|
|
15168
|
-
class
|
|
15204
|
+
class $d extends HTMLElement {
|
|
15169
15205
|
shadow;
|
|
15170
15206
|
data = null;
|
|
15171
15207
|
_value = "";
|
|
@@ -15248,15 +15284,15 @@ class Ud extends HTMLElement {
|
|
|
15248
15284
|
}
|
|
15249
15285
|
:host([data-consumed]) input { pointer-events: none; opacity: 0.65; background: var(--aikaara-input-bg, #f9fafb); }
|
|
15250
15286
|
</style>
|
|
15251
|
-
<label>${
|
|
15287
|
+
<label>${er(e)}${o}</label>
|
|
15252
15288
|
<input
|
|
15253
15289
|
type="text"
|
|
15254
|
-
placeholder="${
|
|
15255
|
-
value="${
|
|
15256
|
-
aria-label="${
|
|
15290
|
+
placeholder="${er(t)}"
|
|
15291
|
+
value="${er(this._value)}"
|
|
15292
|
+
aria-label="${er(e)}"
|
|
15257
15293
|
aria-invalid="false"
|
|
15258
15294
|
/>
|
|
15259
|
-
<div class="error" role="alert">${
|
|
15295
|
+
<div class="error" role="alert">${er(this._error)}</div>
|
|
15260
15296
|
`;
|
|
15261
15297
|
const n = this.shadow.querySelector("input");
|
|
15262
15298
|
n.addEventListener("input", () => {
|
|
@@ -15266,13 +15302,13 @@ class Ud extends HTMLElement {
|
|
|
15266
15302
|
});
|
|
15267
15303
|
}
|
|
15268
15304
|
}
|
|
15269
|
-
function
|
|
15305
|
+
function er(s) {
|
|
15270
15306
|
return String(s).replace(
|
|
15271
15307
|
/[&<>"']/g,
|
|
15272
15308
|
(e) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[e]
|
|
15273
15309
|
);
|
|
15274
15310
|
}
|
|
15275
|
-
class
|
|
15311
|
+
class Fd extends HTMLElement {
|
|
15276
15312
|
static get observedAttributes() {
|
|
15277
15313
|
return ["slug", "user-id", "user-name", "user-token", "department-id", "config-base", "api-key"];
|
|
15278
15314
|
}
|
|
@@ -15326,7 +15362,7 @@ class Bd extends HTMLElement {
|
|
|
15326
15362
|
const l = Object.keys(n).length > 0 ? n : void 0;
|
|
15327
15363
|
return this.mountInflight = (async () => {
|
|
15328
15364
|
try {
|
|
15329
|
-
this.mounted = await
|
|
15365
|
+
this.mounted = await xf({
|
|
15330
15366
|
container: this,
|
|
15331
15367
|
slug: e,
|
|
15332
15368
|
configBase: this.getAttribute("config-base") ?? void 0,
|
|
@@ -15355,7 +15391,7 @@ class Bd extends HTMLElement {
|
|
|
15355
15391
|
})(), this.mountInflight;
|
|
15356
15392
|
}
|
|
15357
15393
|
}
|
|
15358
|
-
class
|
|
15394
|
+
class qd extends HTMLElement {
|
|
15359
15395
|
shadow;
|
|
15360
15396
|
root = null;
|
|
15361
15397
|
iframe = null;
|
|
@@ -15472,7 +15508,7 @@ class Dd extends HTMLElement {
|
|
|
15472
15508
|
});
|
|
15473
15509
|
}
|
|
15474
15510
|
}
|
|
15475
|
-
const
|
|
15511
|
+
const Hd = [
|
|
15476
15512
|
{ label: "Self-filing guidance" },
|
|
15477
15513
|
{ label: "Smart tax suggestions" },
|
|
15478
15514
|
{ label: "Auto-fetch 26AS / AIS" },
|
|
@@ -15480,7 +15516,7 @@ const $d = [
|
|
|
15480
15516
|
{ label: "Dedicated tax expert" },
|
|
15481
15517
|
{ label: "End-to-end filing" },
|
|
15482
15518
|
{ label: "Document handling" }
|
|
15483
|
-
],
|
|
15519
|
+
], Wd = [
|
|
15484
15520
|
{
|
|
15485
15521
|
label: "DIY",
|
|
15486
15522
|
match: ["DIY", "DIY_SALARY"],
|
|
@@ -15503,11 +15539,11 @@ const $d = [
|
|
|
15503
15539
|
features: [!0, !0, !0, !0, !0, !0, !0]
|
|
15504
15540
|
}
|
|
15505
15541
|
];
|
|
15506
|
-
class
|
|
15542
|
+
class zd extends HTMLElement {
|
|
15507
15543
|
shadow;
|
|
15508
15544
|
data = null;
|
|
15509
|
-
columns =
|
|
15510
|
-
features =
|
|
15545
|
+
columns = Wd;
|
|
15546
|
+
features = Hd;
|
|
15511
15547
|
constructor() {
|
|
15512
15548
|
super(), this.shadow = this.attachShadow({ mode: "open" });
|
|
15513
15549
|
}
|
|
@@ -15640,7 +15676,7 @@ function un(s) {
|
|
|
15640
15676
|
(e) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[e]
|
|
15641
15677
|
);
|
|
15642
15678
|
}
|
|
15643
|
-
class
|
|
15679
|
+
class Vd extends HTMLElement {
|
|
15644
15680
|
shadow;
|
|
15645
15681
|
root = null;
|
|
15646
15682
|
schemas = [];
|
|
@@ -15731,7 +15767,7 @@ class Hd extends HTMLElement {
|
|
|
15731
15767
|
`;
|
|
15732
15768
|
const r = this.shadow.querySelector(".modal-body"), o = this.schemas.map(
|
|
15733
15769
|
(i) => `
|
|
15734
|
-
<button class="chip" type="button" data-section-id="${
|
|
15770
|
+
<button class="chip" type="button" data-section-id="${Gd(i.id)}">
|
|
15735
15771
|
<span class="chip-icon">${i.icon ?? "📄"}</span>
|
|
15736
15772
|
<span class="chip-label">${Ys(i.title)}</span>
|
|
15737
15773
|
</button>`
|
|
@@ -15764,7 +15800,7 @@ class Hd extends HTMLElement {
|
|
|
15764
15800
|
e.classList.remove("view-picker"), e.classList.add("view-form");
|
|
15765
15801
|
const t = this.schemas.find((n) => n.id === this.activeSectionId), r = this.shadow.querySelector(".modal-header");
|
|
15766
15802
|
r.innerHTML = `
|
|
15767
|
-
<button class="icon-btn back-btn" type="button" aria-label="Back">${
|
|
15803
|
+
<button class="icon-btn back-btn" type="button" aria-label="Back">${Kd}</button>
|
|
15768
15804
|
<div class="modal-title">${Ys(t?.title ?? "Edit")}</div>
|
|
15769
15805
|
<button class="icon-btn close-btn" type="button" aria-label="Close">${Gs}</button>
|
|
15770
15806
|
`;
|
|
@@ -15940,14 +15976,14 @@ class Hd extends HTMLElement {
|
|
|
15940
15976
|
`;
|
|
15941
15977
|
}
|
|
15942
15978
|
}
|
|
15943
|
-
const Gs = '<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>',
|
|
15944
|
-
function
|
|
15979
|
+
const Gs = '<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>', Kd = '<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>';
|
|
15980
|
+
function Gd(s) {
|
|
15945
15981
|
return s.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">");
|
|
15946
15982
|
}
|
|
15947
15983
|
function Ys(s) {
|
|
15948
15984
|
return s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
15949
15985
|
}
|
|
15950
|
-
class
|
|
15986
|
+
class Yd extends HTMLElement {
|
|
15951
15987
|
shadow;
|
|
15952
15988
|
schema = null;
|
|
15953
15989
|
value = {};
|
|
@@ -16403,34 +16439,34 @@ function wt(s) {
|
|
|
16403
16439
|
function Ge(s) {
|
|
16404
16440
|
return s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
16405
16441
|
}
|
|
16406
|
-
function
|
|
16442
|
+
function Jd() {
|
|
16407
16443
|
const s = [
|
|
16408
|
-
["aikaara-chat-widget",
|
|
16409
|
-
["aikaara-chat-bubble",
|
|
16410
|
-
["aikaara-chat-header",
|
|
16411
|
-
["aikaara-message-list",
|
|
16412
|
-
["aikaara-message-bubble",
|
|
16413
|
-
["aikaara-chat-input",
|
|
16414
|
-
["aikaara-typing-indicator",
|
|
16415
|
-
["aikaara-streaming-message",
|
|
16416
|
-
["aikaara-error-banner",
|
|
16417
|
-
["aikaara-template-renderer",
|
|
16418
|
-
["aikaara-system-pill",
|
|
16419
|
-
["aikaara-option-list",
|
|
16420
|
-
["aikaara-submit-action",
|
|
16421
|
-
["aikaara-modal-action",
|
|
16422
|
-
["aikaara-text-input",
|
|
16423
|
-
["aikaara-chat",
|
|
16424
|
-
["aikaara-link-modal",
|
|
16425
|
-
["aikaara-compare-plans",
|
|
16426
|
-
["aikaara-smart-edit-modal",
|
|
16427
|
-
["aikaara-schema-form",
|
|
16444
|
+
["aikaara-chat-widget", sd],
|
|
16445
|
+
["aikaara-chat-bubble", ad],
|
|
16446
|
+
["aikaara-chat-header", cd],
|
|
16447
|
+
["aikaara-message-list", vd],
|
|
16448
|
+
["aikaara-message-bubble", kd],
|
|
16449
|
+
["aikaara-chat-input", Sd],
|
|
16450
|
+
["aikaara-typing-indicator", Ed],
|
|
16451
|
+
["aikaara-streaming-message", Ad],
|
|
16452
|
+
["aikaara-error-banner", Id],
|
|
16453
|
+
["aikaara-template-renderer", Pd],
|
|
16454
|
+
["aikaara-system-pill", Nd],
|
|
16455
|
+
["aikaara-option-list", jd],
|
|
16456
|
+
["aikaara-submit-action", Ud],
|
|
16457
|
+
["aikaara-modal-action", Dd],
|
|
16458
|
+
["aikaara-text-input", $d],
|
|
16459
|
+
["aikaara-chat", Fd],
|
|
16460
|
+
["aikaara-link-modal", qd],
|
|
16461
|
+
["aikaara-compare-plans", zd],
|
|
16462
|
+
["aikaara-smart-edit-modal", Vd],
|
|
16463
|
+
["aikaara-schema-form", Yd]
|
|
16428
16464
|
];
|
|
16429
16465
|
for (const [e, t] of s)
|
|
16430
16466
|
customElements.get(e) || customElements.define(e, t);
|
|
16431
16467
|
}
|
|
16432
|
-
|
|
16433
|
-
function
|
|
16468
|
+
Jd();
|
|
16469
|
+
function mr(s, e, t = "") {
|
|
16434
16470
|
if (!e) return t;
|
|
16435
16471
|
const r = e.split(".");
|
|
16436
16472
|
let o = s;
|
|
@@ -16452,10 +16488,10 @@ function Js(s) {
|
|
|
16452
16488
|
return 0;
|
|
16453
16489
|
}
|
|
16454
16490
|
}
|
|
16455
|
-
async function
|
|
16491
|
+
async function Wt(s) {
|
|
16456
16492
|
return typeof s == "function" ? await s() : s;
|
|
16457
16493
|
}
|
|
16458
|
-
class
|
|
16494
|
+
class Qd {
|
|
16459
16495
|
constructor(e, t) {
|
|
16460
16496
|
this.descriptor = e, this.sessionToken = t;
|
|
16461
16497
|
}
|
|
@@ -16489,7 +16525,7 @@ class Gd {
|
|
|
16489
16525
|
}), this.inflight);
|
|
16490
16526
|
}
|
|
16491
16527
|
async fetchOnce() {
|
|
16492
|
-
const e = await
|
|
16528
|
+
const e = await Wt(this.sessionToken), t = this.descriptor.authHeader ?? "Authorization", r = this.descriptor.authHeaderTemplate ?? "Bearer {token}", o = {
|
|
16493
16529
|
accept: "application/json",
|
|
16494
16530
|
...this.descriptor.headers ?? {},
|
|
16495
16531
|
[t]: r.replace("{token}", e)
|
|
@@ -16500,16 +16536,16 @@ class Gd {
|
|
|
16500
16536
|
const w = await a.text().catch(() => "");
|
|
16501
16537
|
throw new Error(`Session auth failed: ${a.status} ${w.slice(0, 200)}`);
|
|
16502
16538
|
}
|
|
16503
|
-
const l = await a.json().catch(() => ({})), c =
|
|
16539
|
+
const l = await a.json().catch(() => ({})), c = mr(l, this.descriptor.tokenPath ?? "data.token"), u = this.descriptor.tokenStripPrefix, h = u ? c.replace(new RegExp(`^${u}`, "i"), "").trim() : c;
|
|
16504
16540
|
if (!h) throw new Error("Session auth response missing token");
|
|
16505
|
-
const p =
|
|
16541
|
+
const p = mr(l, this.descriptor.requestIdPath ?? "data.requestId"), b = this.cache?.requestId || p || "", d = mr(l, this.descriptor.fullNamePath ?? "data.fullName"), g = mr(l, this.descriptor.userPath ?? "data.userId"), y = Js(h) || Date.now() + 3600 * 1e3;
|
|
16506
16542
|
return this.cache = { token: h, requestId: b, fullName: d, userId: g, expiresAt: y }, this.cache;
|
|
16507
16543
|
}
|
|
16508
16544
|
}
|
|
16509
|
-
async function
|
|
16545
|
+
async function Xd(s) {
|
|
16510
16546
|
const e = {};
|
|
16511
16547
|
for (const t of s.spec) {
|
|
16512
|
-
const r = await
|
|
16548
|
+
const r = await Zd(t, s.providers);
|
|
16513
16549
|
if (r !== void 0 && r !== "")
|
|
16514
16550
|
e[t.name] = r;
|
|
16515
16551
|
else {
|
|
@@ -16522,19 +16558,19 @@ async function Yd(s) {
|
|
|
16522
16558
|
}
|
|
16523
16559
|
return e;
|
|
16524
16560
|
}
|
|
16525
|
-
async function
|
|
16561
|
+
async function Zd(s, e) {
|
|
16526
16562
|
const t = s.key ?? s.name;
|
|
16527
16563
|
switch (s.source) {
|
|
16528
16564
|
case "cookie":
|
|
16529
|
-
return
|
|
16565
|
+
return ef(t);
|
|
16530
16566
|
case "localStorage":
|
|
16531
|
-
return
|
|
16567
|
+
return gr(() => window.localStorage.getItem(t) ?? void 0);
|
|
16532
16568
|
case "sessionStorage":
|
|
16533
|
-
return
|
|
16569
|
+
return gr(() => window.sessionStorage.getItem(t) ?? void 0);
|
|
16534
16570
|
case "url_param":
|
|
16535
|
-
return
|
|
16571
|
+
return gr(() => new URL(window.location.href).searchParams.get(t) ?? void 0);
|
|
16536
16572
|
case "header_meta":
|
|
16537
|
-
return
|
|
16573
|
+
return gr(() => document.querySelector(`meta[name="${tf(t)}"]`)?.content ?? void 0);
|
|
16538
16574
|
case "callback": {
|
|
16539
16575
|
const r = e?.[s.name];
|
|
16540
16576
|
if (!r) return;
|
|
@@ -16545,7 +16581,7 @@ async function Jd(s, e) {
|
|
|
16545
16581
|
return;
|
|
16546
16582
|
}
|
|
16547
16583
|
}
|
|
16548
|
-
function
|
|
16584
|
+
function ef(s) {
|
|
16549
16585
|
if (typeof document > "u") return;
|
|
16550
16586
|
const e = encodeURIComponent(s), t = document.cookie ? document.cookie.split("; ") : [];
|
|
16551
16587
|
for (const r of t) {
|
|
@@ -16560,18 +16596,18 @@ function Qd(s) {
|
|
|
16560
16596
|
}
|
|
16561
16597
|
}
|
|
16562
16598
|
}
|
|
16563
|
-
function
|
|
16599
|
+
function gr(s) {
|
|
16564
16600
|
try {
|
|
16565
16601
|
return s();
|
|
16566
16602
|
} catch {
|
|
16567
16603
|
return;
|
|
16568
16604
|
}
|
|
16569
16605
|
}
|
|
16570
|
-
function
|
|
16606
|
+
function tf(s) {
|
|
16571
16607
|
return s.replace(/["\\]/g, "\\$&");
|
|
16572
16608
|
}
|
|
16573
|
-
const
|
|
16574
|
-
class
|
|
16609
|
+
const rf = 1800;
|
|
16610
|
+
class nf {
|
|
16575
16611
|
constructor(e) {
|
|
16576
16612
|
this.opts = e, this.cache = this.loadCache();
|
|
16577
16613
|
}
|
|
@@ -16600,7 +16636,7 @@ class ef {
|
|
|
16600
16636
|
throw new Error(
|
|
16601
16637
|
"[aikaara-chat-sdk] SsoExchangeAdapter.exchange() requires descriptor.sso.collect; v2 partner-token flow should be handled by TokenDiscoveryReader instead."
|
|
16602
16638
|
);
|
|
16603
|
-
const e = await
|
|
16639
|
+
const e = await Xd({
|
|
16604
16640
|
spec: this.opts.descriptor.collect,
|
|
16605
16641
|
providers: this.opts.providers
|
|
16606
16642
|
}), t = JSON.stringify({ credentials: e }), r = {
|
|
@@ -16638,7 +16674,7 @@ class ef {
|
|
|
16638
16674
|
return this.cache = u, this.persistCache(u), u;
|
|
16639
16675
|
}
|
|
16640
16676
|
computeExpiry() {
|
|
16641
|
-
const e = this.opts.descriptor.cacheTtlSec ??
|
|
16677
|
+
const e = this.opts.descriptor.cacheTtlSec ?? rf;
|
|
16642
16678
|
if (!(!this.opts.descriptor.cacheKey || e <= 0))
|
|
16643
16679
|
return Date.now() + e * 1e3;
|
|
16644
16680
|
}
|
|
@@ -16671,8 +16707,8 @@ class ef {
|
|
|
16671
16707
|
}
|
|
16672
16708
|
}
|
|
16673
16709
|
}
|
|
16674
|
-
const
|
|
16675
|
-
async function
|
|
16710
|
+
const of = 3e4, sf = 2e3, af = 100;
|
|
16711
|
+
async function lf(s) {
|
|
16676
16712
|
const { descriptor: e } = s, t = e.tokenSourceConfig ?? {};
|
|
16677
16713
|
switch (e.tokenSource) {
|
|
16678
16714
|
case "init": {
|
|
@@ -16681,37 +16717,37 @@ async function of(s) {
|
|
|
16681
16717
|
return { token: s.initToken, source: "init" };
|
|
16682
16718
|
}
|
|
16683
16719
|
case "query": {
|
|
16684
|
-
const r = typeof t.key == "string" && t.key ? t.key : "token", o =
|
|
16720
|
+
const r = typeof t.key == "string" && t.key ? t.key : "token", o = uf(r);
|
|
16685
16721
|
if (!o) throw new Xe("query", `?${r}= not present`);
|
|
16686
16722
|
return { token: o, source: "query" };
|
|
16687
16723
|
}
|
|
16688
16724
|
case "hash": {
|
|
16689
|
-
const r = typeof t.key == "string" && t.key ? t.key : "token", o =
|
|
16725
|
+
const r = typeof t.key == "string" && t.key ? t.key : "token", o = hf(r);
|
|
16690
16726
|
if (!o) throw new Xe("hash", `#${r}= not present`);
|
|
16691
16727
|
return { token: o, source: "hash" };
|
|
16692
16728
|
}
|
|
16693
16729
|
case "postmsg": {
|
|
16694
|
-
const r = typeof t.type == "string" ? t.type : "", o = typeof t.key == "string" && t.key ? t.key : "token", n =
|
|
16695
|
-
return { token: await
|
|
16730
|
+
const r = typeof t.type == "string" ? t.type : "", o = typeof t.key == "string" && t.key ? t.key : "token", n = gf(typeof t.origins == "string" ? t.origins : ""), i = typeof t.timeoutMs == "number" && t.timeoutMs > 0 ? t.timeoutMs : of;
|
|
16731
|
+
return { token: await mf({ type: r, key: o, origins: n, timeoutMs: i }), source: "postmsg" };
|
|
16696
16732
|
}
|
|
16697
16733
|
case "cookie": {
|
|
16698
16734
|
const r = typeof t.name == "string" && t.name ? t.name : "";
|
|
16699
16735
|
if (!r) throw new Xe("cookie", "cookie.name not configured");
|
|
16700
|
-
const o =
|
|
16736
|
+
const o = df(r);
|
|
16701
16737
|
if (!o) throw new Xe("cookie", `cookie "${r}" not set`);
|
|
16702
16738
|
return { token: o, source: "cookie" };
|
|
16703
16739
|
}
|
|
16704
16740
|
case "storage": {
|
|
16705
16741
|
const r = t.store === "session" ? "session" : "local", o = typeof t.key == "string" && t.key ? t.key : "", n = typeof t.path == "string" ? t.path : "";
|
|
16706
16742
|
if (!o) throw new Xe("storage", "storage.key not configured");
|
|
16707
|
-
const i =
|
|
16743
|
+
const i = ff(r, o, n);
|
|
16708
16744
|
if (!i) throw new Xe("storage", `${r}Storage["${o}"] not set`);
|
|
16709
16745
|
return { token: i, source: "storage" };
|
|
16710
16746
|
}
|
|
16711
16747
|
case "global": {
|
|
16712
16748
|
const r = typeof t.path == "string" ? t.path : "";
|
|
16713
16749
|
if (!r) throw new Xe("global", "global.path not configured");
|
|
16714
|
-
const o = typeof t.timeoutMs == "number" && t.timeoutMs > 0 ? t.timeoutMs :
|
|
16750
|
+
const o = typeof t.timeoutMs == "number" && t.timeoutMs > 0 ? t.timeoutMs : sf, n = typeof t.intervalMs == "number" && t.intervalMs > 0 ? t.intervalMs : af, i = await pf(r, o, n);
|
|
16715
16751
|
if (!i) throw new Xe("global", `window.${r} not present`);
|
|
16716
16752
|
return { token: i, source: "global" };
|
|
16717
16753
|
}
|
|
@@ -16724,7 +16760,7 @@ async function of(s) {
|
|
|
16724
16760
|
}
|
|
16725
16761
|
}
|
|
16726
16762
|
}
|
|
16727
|
-
class
|
|
16763
|
+
class cf {
|
|
16728
16764
|
constructor(e) {
|
|
16729
16765
|
this.opts = e;
|
|
16730
16766
|
}
|
|
@@ -16735,7 +16771,7 @@ class sf {
|
|
|
16735
16771
|
/** Resolve the token. Returns cache if present. */
|
|
16736
16772
|
async get() {
|
|
16737
16773
|
if (this.cached) return this.cached;
|
|
16738
|
-
const e = await
|
|
16774
|
+
const e = await lf(this.opts);
|
|
16739
16775
|
return this.cached = e, e;
|
|
16740
16776
|
}
|
|
16741
16777
|
/**
|
|
@@ -16752,7 +16788,7 @@ class Xe extends Error {
|
|
|
16752
16788
|
super(`[aikaara-chat-sdk] token-discovery (${e}): ${t}`), this.source = e, this.name = "TokenDiscoveryError";
|
|
16753
16789
|
}
|
|
16754
16790
|
}
|
|
16755
|
-
function
|
|
16791
|
+
function uf(s) {
|
|
16756
16792
|
if (!(typeof window > "u"))
|
|
16757
16793
|
try {
|
|
16758
16794
|
const e = window.location.search.slice(1);
|
|
@@ -16766,7 +16802,7 @@ function af(s) {
|
|
|
16766
16802
|
return;
|
|
16767
16803
|
}
|
|
16768
16804
|
}
|
|
16769
|
-
function
|
|
16805
|
+
function hf(s) {
|
|
16770
16806
|
if (!(typeof window > "u"))
|
|
16771
16807
|
try {
|
|
16772
16808
|
const e = window.location.hash.replace(/^#/, "");
|
|
@@ -16775,7 +16811,7 @@ function lf(s) {
|
|
|
16775
16811
|
return;
|
|
16776
16812
|
}
|
|
16777
16813
|
}
|
|
16778
|
-
function
|
|
16814
|
+
function df(s) {
|
|
16779
16815
|
if (typeof document > "u") return;
|
|
16780
16816
|
const e = encodeURIComponent(s), t = document.cookie ? document.cookie.split("; ") : [];
|
|
16781
16817
|
for (const r of t) {
|
|
@@ -16790,7 +16826,7 @@ function cf(s) {
|
|
|
16790
16826
|
}
|
|
16791
16827
|
}
|
|
16792
16828
|
}
|
|
16793
|
-
function
|
|
16829
|
+
function ff(s, e, t) {
|
|
16794
16830
|
if (!(typeof window > "u"))
|
|
16795
16831
|
try {
|
|
16796
16832
|
const o = (s === "session" ? window.sessionStorage : window.localStorage).getItem(e);
|
|
@@ -16808,7 +16844,7 @@ function uf(s, e, t) {
|
|
|
16808
16844
|
return;
|
|
16809
16845
|
}
|
|
16810
16846
|
}
|
|
16811
|
-
async function
|
|
16847
|
+
async function pf(s, e, t) {
|
|
16812
16848
|
if (typeof window > "u") return;
|
|
16813
16849
|
const r = Date.now() + e;
|
|
16814
16850
|
for (; Date.now() < r; ) {
|
|
@@ -16823,7 +16859,7 @@ async function hf(s, e, t) {
|
|
|
16823
16859
|
await new Promise((n) => setTimeout(n, t));
|
|
16824
16860
|
}
|
|
16825
16861
|
}
|
|
16826
|
-
function
|
|
16862
|
+
function mf(s) {
|
|
16827
16863
|
return new Promise((e, t) => {
|
|
16828
16864
|
if (typeof window > "u") {
|
|
16829
16865
|
t(new Xe("postmsg", "no window"));
|
|
@@ -16845,7 +16881,7 @@ function df(s) {
|
|
|
16845
16881
|
window.addEventListener("message", n);
|
|
16846
16882
|
});
|
|
16847
16883
|
}
|
|
16848
|
-
function
|
|
16884
|
+
function gf(s) {
|
|
16849
16885
|
return s ? s.split(/[,\s]+/).map((e) => e.trim()).filter(Boolean) : [];
|
|
16850
16886
|
}
|
|
16851
16887
|
function Ul(s, e) {
|
|
@@ -16859,7 +16895,7 @@ function Ul(s, e) {
|
|
|
16859
16895
|
return;
|
|
16860
16896
|
return r;
|
|
16861
16897
|
}
|
|
16862
|
-
function
|
|
16898
|
+
function bf() {
|
|
16863
16899
|
const s = typeof crypto < "u" ? crypto : null;
|
|
16864
16900
|
if (s?.randomUUID) return s.randomUUID();
|
|
16865
16901
|
if (s?.getRandomValues) {
|
|
@@ -16873,9 +16909,9 @@ function pf() {
|
|
|
16873
16909
|
return (e === "x" ? t : t & 3 | 8).toString(16);
|
|
16874
16910
|
});
|
|
16875
16911
|
}
|
|
16876
|
-
const
|
|
16912
|
+
const yf = "aikaara_chat:requestId";
|
|
16877
16913
|
function Io(s, e, t) {
|
|
16878
|
-
const r = `${
|
|
16914
|
+
const r = `${yf}:${s}:${e}`;
|
|
16879
16915
|
return t ? `${r}:${t}` : r;
|
|
16880
16916
|
}
|
|
16881
16917
|
function Bl(s, e, t) {
|
|
@@ -16885,13 +16921,13 @@ function Bl(s, e, t) {
|
|
|
16885
16921
|
return null;
|
|
16886
16922
|
}
|
|
16887
16923
|
}
|
|
16888
|
-
function
|
|
16924
|
+
function vf(s, e, t, r) {
|
|
16889
16925
|
try {
|
|
16890
16926
|
localStorage.setItem(Io(s, e, r), t);
|
|
16891
16927
|
} catch {
|
|
16892
16928
|
}
|
|
16893
16929
|
}
|
|
16894
|
-
function
|
|
16930
|
+
function Sf(s, e, t) {
|
|
16895
16931
|
try {
|
|
16896
16932
|
localStorage.removeItem(Io(s, e, t));
|
|
16897
16933
|
} catch {
|
|
@@ -16923,7 +16959,7 @@ async function uo(s, e, t = "before-chat") {
|
|
|
16923
16959
|
return h;
|
|
16924
16960
|
}
|
|
16925
16961
|
return u;
|
|
16926
|
-
}, a = await
|
|
16962
|
+
}, a = await Wt(e.sessionToken), l = {}, c = [800, 1500, 3e3, 5e3, 8e3];
|
|
16927
16963
|
for (let u = 0; u < r.length; u++) {
|
|
16928
16964
|
const h = r[u], p = n(h.url), b = h.method ?? (h.body ? "POST" : "GET"), d = { accept: "application/json", ...h.headers ?? {} };
|
|
16929
16965
|
if ((h.authHeader ?? "session") === "session") {
|
|
@@ -16940,7 +16976,7 @@ async function uo(s, e, t = "before-chat") {
|
|
|
16940
16976
|
_ = x;
|
|
16941
16977
|
break;
|
|
16942
16978
|
}
|
|
16943
|
-
if (y = x.status, w = await x.text().catch(() => ""), m < c.length &&
|
|
16979
|
+
if (y = x.status, w = await x.text().catch(() => ""), m < c.length && wf(y, w)) {
|
|
16944
16980
|
const E = c[m++];
|
|
16945
16981
|
console.warn(
|
|
16946
16982
|
`[aikaara-chat-sdk] preflight #${u} ${b} ${p} → ${y} (transient). Retry #${m} in ${E}ms.`
|
|
@@ -16994,7 +17030,7 @@ async function uo(s, e, t = "before-chat") {
|
|
|
16994
17030
|
}
|
|
16995
17031
|
return { captured: l };
|
|
16996
17032
|
}
|
|
16997
|
-
async function
|
|
17033
|
+
async function Ef(s) {
|
|
16998
17034
|
const e = s.steps ?? [];
|
|
16999
17035
|
return e.some((r) => r.trigger === "on-method-select") ? (await uo(
|
|
17000
17036
|
e,
|
|
@@ -17010,7 +17046,7 @@ async function kf(s) {
|
|
|
17010
17046
|
"on-method-select"
|
|
17011
17047
|
)).captured : {};
|
|
17012
17048
|
}
|
|
17013
|
-
function
|
|
17049
|
+
function wf(s, e) {
|
|
17014
17050
|
if (s === 503 || s === 504 || s === 502) return !0;
|
|
17015
17051
|
if (s === 401 || s === 403) return e.trim().length === 0;
|
|
17016
17052
|
if (s === 500) {
|
|
@@ -17036,7 +17072,7 @@ async function Dl(s, e) {
|
|
|
17036
17072
|
return r;
|
|
17037
17073
|
}
|
|
17038
17074
|
function $l(s, e) {
|
|
17039
|
-
return s.replace("{projectId}", e).replace("{uuid}",
|
|
17075
|
+
return s.replace("{projectId}", e).replace("{uuid}", bf().replace(/-/g, ""));
|
|
17040
17076
|
}
|
|
17041
17077
|
function Fl(s) {
|
|
17042
17078
|
const e = s._preload;
|
|
@@ -17048,7 +17084,7 @@ function Fl(s) {
|
|
|
17048
17084
|
);
|
|
17049
17085
|
t.length !== 0 && Promise.allSettled(t.map((r) => jl(r)));
|
|
17050
17086
|
}
|
|
17051
|
-
async function
|
|
17087
|
+
async function _f(s) {
|
|
17052
17088
|
const e = {
|
|
17053
17089
|
...s.config ?? (s.configUrl ? await Dl(s.configUrl, s.configHeaders) : {}),
|
|
17054
17090
|
...s.overrides ?? {}
|
|
@@ -17058,7 +17094,7 @@ async function yf(s) {
|
|
|
17058
17094
|
if ((t === "tiledesk" || t === "dual") && !r)
|
|
17059
17095
|
throw new Error("mount: descriptor.tiledesk is required for tiledesk/dual transport");
|
|
17060
17096
|
const o = r?.projectId ?? "", n = s.identity.userId, i = s.conversationScope || void 0, a = s.forceNewConversation ? null : Bl(n, o, i), l = r?.requestIdTemplate ?? "support-group-{projectId}-{uuid}", c = s.conversationId ?? a ?? $l(l, o);
|
|
17061
|
-
(s.conversationId || !a || s.forceNewConversation) && o &&
|
|
17097
|
+
(s.conversationId || !a || s.forceNewConversation) && o && vf(n, o, c, i);
|
|
17062
17098
|
const u = await s.tokenProvider(), h = s.tokenProvider, p = s.historyTokenProvider ?? h, b = r ? {
|
|
17063
17099
|
mqttEndpoint: r.mqttEndpoint,
|
|
17064
17100
|
jwtToken: u,
|
|
@@ -17146,13 +17182,13 @@ async function yf(s) {
|
|
|
17146
17182
|
}
|
|
17147
17183
|
};
|
|
17148
17184
|
}
|
|
17149
|
-
function
|
|
17185
|
+
function kf(s) {
|
|
17150
17186
|
if (typeof s != "string") return s;
|
|
17151
17187
|
const e = document.querySelector(s);
|
|
17152
17188
|
if (!e) throw new Error(`mountFromSlug: container "${s}" not found`);
|
|
17153
17189
|
return e;
|
|
17154
17190
|
}
|
|
17155
|
-
async function
|
|
17191
|
+
async function xf(s) {
|
|
17156
17192
|
const e = (s.configBase ?? "https://api.aikaara.com").replace(/\/$/, ""), t = `${e}/api/v1/widget_configs/${encodeURIComponent(s.slug)}`;
|
|
17157
17193
|
let r = null;
|
|
17158
17194
|
try {
|
|
@@ -17200,9 +17236,9 @@ async function wf(s) {
|
|
|
17200
17236
|
`mountFromSlug: widget_configs/${s.slug} descriptor must include "auth" block`
|
|
17201
17237
|
);
|
|
17202
17238
|
let i = null, a = s.user.id, l = s.user.name, c = "", u = s.user.token, h = null;
|
|
17203
|
-
const p = await
|
|
17239
|
+
const p = await Wt(s.user.token).catch(() => ""), b = typeof p == "string" && p.length > 0;
|
|
17204
17240
|
if (!b && o.sso?.tokenSource) {
|
|
17205
|
-
h = new
|
|
17241
|
+
h = new cf({
|
|
17206
17242
|
descriptor: {
|
|
17207
17243
|
provider: o.sso.provider,
|
|
17208
17244
|
flow: o.sso.flow,
|
|
@@ -17219,7 +17255,7 @@ async function wf(s) {
|
|
|
17219
17255
|
u = async () => (await h.get()).token, s.user.identity && !s.user.identity.partnerToken && (s.user.identity.partnerToken = I.token);
|
|
17220
17256
|
} else if (!b && o.sso && o.sso.collect && o.sso.collect.length > 0) {
|
|
17221
17257
|
const I = `${e}/api/v1/projects/by-slug/${encodeURIComponent(s.slug)}/sso_exchange`;
|
|
17222
|
-
i = await new
|
|
17258
|
+
i = await new nf({
|
|
17223
17259
|
descriptor: o.sso,
|
|
17224
17260
|
providers: s.user.credentialProviders,
|
|
17225
17261
|
exchangeUrl: I
|
|
@@ -17241,7 +17277,7 @@ async function wf(s) {
|
|
|
17241
17277
|
}
|
|
17242
17278
|
I.captured.userId && (a = I.captured.userId), I.captured.requestId && (g = I.captured.requestId);
|
|
17243
17279
|
}
|
|
17244
|
-
const y = new
|
|
17280
|
+
const y = new Qd(o.auth, u);
|
|
17245
17281
|
if (d) {
|
|
17246
17282
|
const I = o.tiledesk?.projectId ?? "", O = I ? Bl(a, I) : null, P = o.tiledesk?.requestIdTemplate ?? "support-group-{projectId}-{uuid}", j = O ?? (I ? $l(P, I) : "");
|
|
17247
17283
|
y.prime(d, { requestId: j, fullName: l });
|
|
@@ -17251,7 +17287,7 @@ async function wf(s) {
|
|
|
17251
17287
|
const m = w.fullName || l || a;
|
|
17252
17288
|
window.__aikaara_runtime__ = {
|
|
17253
17289
|
getChatJwt: async () => (await y.get()).token,
|
|
17254
|
-
getSessionToken: () =>
|
|
17290
|
+
getSessionToken: () => Wt(s.user.token),
|
|
17255
17291
|
identity: s.user.identity,
|
|
17256
17292
|
slug: s.slug,
|
|
17257
17293
|
// aikaara-ai base — lets the SDK derive same-origin API routes such as
|
|
@@ -17264,7 +17300,7 @@ async function wf(s) {
|
|
|
17264
17300
|
} catch (I) {
|
|
17265
17301
|
return console.warn("[aikaara-chat-sdk] partner auto-refresh failed", I), null;
|
|
17266
17302
|
}
|
|
17267
|
-
} : null, x = o.upload, v = async () => `Bearer ${x && "tokenSource" in x && x.tokenSource === "chat" ? (await y.get()).token : await
|
|
17303
|
+
} : null, x = o.upload, v = async () => `Bearer ${x && "tokenSource" in x && x.tokenSource === "chat" ? (await y.get()).token : await Wt(s.user.token)}`, E = s.hooks?.upload ?? (x && x.mode === "presigned-3step" ? Sh({
|
|
17268
17304
|
...x,
|
|
17269
17305
|
authHeader: v
|
|
17270
17306
|
}) : x && x.mode === "direct" ? Pl({
|
|
@@ -17272,8 +17308,8 @@ async function wf(s) {
|
|
|
17272
17308
|
fieldName: x.fieldName,
|
|
17273
17309
|
extraFields: x.extraFields,
|
|
17274
17310
|
headers: async () => ({ authorization: await v() })
|
|
17275
|
-
}) : void 0), S = await
|
|
17276
|
-
container:
|
|
17311
|
+
}) : void 0), S = await _f({
|
|
17312
|
+
container: kf(s.container),
|
|
17277
17313
|
config: o,
|
|
17278
17314
|
// SSO-issued Aikaara user token, used by the ActionCable transport.
|
|
17279
17315
|
// Tiledesk-only widgets ignore this; falls back to `userId` inside `mount`.
|
|
@@ -17297,7 +17333,7 @@ async function wf(s) {
|
|
|
17297
17333
|
conversationScope: s.conversationScope,
|
|
17298
17334
|
onError: s.hooks?.onError,
|
|
17299
17335
|
onMessage: s.hooks?.onMessage,
|
|
17300
|
-
getLinkBearer: async (I) => I === "none" ? null : I === "chat" ? (await y.get()).token :
|
|
17336
|
+
getLinkBearer: async (I) => I === "none" ? null : I === "chat" ? (await y.get()).token : Wt(s.user.token)
|
|
17301
17337
|
});
|
|
17302
17338
|
return Object.assign(S, {
|
|
17303
17339
|
fullName: m,
|
|
@@ -17329,50 +17365,50 @@ async function wf(s) {
|
|
|
17329
17365
|
}
|
|
17330
17366
|
export {
|
|
17331
17367
|
To as A,
|
|
17332
|
-
|
|
17368
|
+
xf as B,
|
|
17333
17369
|
ql as C,
|
|
17334
|
-
|
|
17370
|
+
_f as D,
|
|
17335
17371
|
Qs as E,
|
|
17336
17372
|
Ol as F,
|
|
17337
|
-
|
|
17338
|
-
|
|
17339
|
-
|
|
17340
|
-
|
|
17341
|
-
|
|
17342
|
-
|
|
17373
|
+
Ef as G,
|
|
17374
|
+
bd as H,
|
|
17375
|
+
Fd as I,
|
|
17376
|
+
zd as J,
|
|
17377
|
+
qd as K,
|
|
17378
|
+
Dd as L,
|
|
17343
17379
|
ec as M,
|
|
17344
|
-
|
|
17345
|
-
|
|
17346
|
-
|
|
17347
|
-
|
|
17348
|
-
|
|
17349
|
-
|
|
17380
|
+
jd as N,
|
|
17381
|
+
Yd as O,
|
|
17382
|
+
Vd as P,
|
|
17383
|
+
Ud as Q,
|
|
17384
|
+
Nd as R,
|
|
17385
|
+
Qd as S,
|
|
17350
17386
|
ph as T,
|
|
17351
|
-
|
|
17352
|
-
|
|
17353
|
-
|
|
17387
|
+
Pd as U,
|
|
17388
|
+
$d as V,
|
|
17389
|
+
ad as a,
|
|
17354
17390
|
wh as b,
|
|
17355
|
-
|
|
17356
|
-
|
|
17357
|
-
|
|
17358
|
-
|
|
17359
|
-
|
|
17360
|
-
|
|
17361
|
-
|
|
17362
|
-
|
|
17391
|
+
cd as c,
|
|
17392
|
+
Sd as d,
|
|
17393
|
+
sd as e,
|
|
17394
|
+
Id as f,
|
|
17395
|
+
kd as g,
|
|
17396
|
+
vd as h,
|
|
17397
|
+
Ad as i,
|
|
17398
|
+
Ed as j,
|
|
17363
17399
|
Zl as k,
|
|
17364
17400
|
Xl as l,
|
|
17365
17401
|
tc as m,
|
|
17366
|
-
|
|
17402
|
+
nf as n,
|
|
17367
17403
|
Xe as o,
|
|
17368
|
-
|
|
17369
|
-
|
|
17370
|
-
|
|
17371
|
-
|
|
17404
|
+
cf as p,
|
|
17405
|
+
Sf as q,
|
|
17406
|
+
Jd as r,
|
|
17407
|
+
Xd as s,
|
|
17372
17408
|
Pl as t,
|
|
17373
17409
|
Sh as u,
|
|
17374
17410
|
Ah as v,
|
|
17375
|
-
|
|
17411
|
+
lf as w,
|
|
17376
17412
|
yh as x,
|
|
17377
17413
|
bh as y,
|
|
17378
17414
|
gh as z
|