@cimulate/copilot-widget 1.43.0 → 1.43.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/CHANGELOG.md +8 -0
- package/dist/messaging.css +1 -1
- package/dist/messaging.es.js +529 -512
- package/dist/messaging.umd.js +30 -30
- package/package.json +1 -1
package/dist/messaging.es.js
CHANGED
|
@@ -37,12 +37,12 @@ var de = (e, t, n) => new Promise((r, i) => {
|
|
|
37
37
|
}
|
|
38
38
|
}, a = (u) => u.done ? r(u.value) : Promise.resolve(u.value).then(s, o);
|
|
39
39
|
a((n = n.apply(e, t)).next());
|
|
40
|
-
}),
|
|
40
|
+
}), Wn = function(e, t) {
|
|
41
41
|
this[0] = e, this[1] = t;
|
|
42
42
|
}, ta = (e, t, n) => {
|
|
43
43
|
var r = (a, u, c, l) => {
|
|
44
44
|
try {
|
|
45
|
-
var d = n[a](u), p = (u = d.value) instanceof
|
|
45
|
+
var d = n[a](u), p = (u = d.value) instanceof Wn, h = d.done;
|
|
46
46
|
Promise.resolve(p ? u[0] : u).then((g) => p ? r(a === "return" ? a : "next", u[1] ? { done: g.done, value: g.value } : g, c, l) : c({ value: g, done: h })).catch((g) => r("throw", g, c, l));
|
|
47
47
|
} catch (g) {
|
|
48
48
|
l(g);
|
|
@@ -58,7 +58,7 @@ var de = (e, t, n) => new Promise((r, i) => {
|
|
|
58
58
|
}
|
|
59
59
|
return n = !0, {
|
|
60
60
|
done: !1,
|
|
61
|
-
value: new
|
|
61
|
+
value: new Wn(new Promise((a) => {
|
|
62
62
|
var u = t[s](o);
|
|
63
63
|
u instanceof Object || EE("Object expected"), a(u);
|
|
64
64
|
}), 1)
|
|
@@ -698,7 +698,7 @@ function Rh(e) {
|
|
|
698
698
|
}
|
|
699
699
|
}
|
|
700
700
|
const vh = typeof navigator != "undefined" && typeof navigator.product == "string" && navigator.product.toLowerCase() === "reactnative";
|
|
701
|
-
class
|
|
701
|
+
class jE extends qu {
|
|
702
702
|
get name() {
|
|
703
703
|
return "websocket";
|
|
704
704
|
}
|
|
@@ -755,7 +755,7 @@ class WE extends qu {
|
|
|
755
755
|
}
|
|
756
756
|
}
|
|
757
757
|
const sa = Ut.WebSocket || Ut.MozWebSocket;
|
|
758
|
-
class
|
|
758
|
+
class WE extends jE {
|
|
759
759
|
createSocket(t, n, r) {
|
|
760
760
|
return vh ? new sa(t, n, r) : n ? new sa(t, n) : new sa(t);
|
|
761
761
|
}
|
|
@@ -810,7 +810,7 @@ class XE extends qu {
|
|
|
810
810
|
}
|
|
811
811
|
}
|
|
812
812
|
const KE = {
|
|
813
|
-
websocket:
|
|
813
|
+
websocket: WE,
|
|
814
814
|
webtransport: XE,
|
|
815
815
|
polling: GE
|
|
816
816
|
}, QE = /^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/, JE = [
|
|
@@ -829,7 +829,7 @@ const KE = {
|
|
|
829
829
|
"query",
|
|
830
830
|
"anchor"
|
|
831
831
|
];
|
|
832
|
-
function
|
|
832
|
+
function ja(e) {
|
|
833
833
|
if (e.length > 8e3)
|
|
834
834
|
throw "URI too long";
|
|
835
835
|
const t = e, n = e.indexOf("["), r = e.indexOf("]");
|
|
@@ -849,8 +849,8 @@ function e1(e, t) {
|
|
|
849
849
|
i && (n[i] = s);
|
|
850
850
|
}), n;
|
|
851
851
|
}
|
|
852
|
-
const
|
|
853
|
-
|
|
852
|
+
const Wa = typeof addEventListener == "function" && typeof removeEventListener == "function", ws = [];
|
|
853
|
+
Wa && addEventListener("offline", () => {
|
|
854
854
|
ws.forEach((e) => e());
|
|
855
855
|
}, !1);
|
|
856
856
|
class Fn extends et {
|
|
@@ -862,9 +862,9 @@ class Fn extends et {
|
|
|
862
862
|
*/
|
|
863
863
|
constructor(t, n) {
|
|
864
864
|
if (super(), this.binaryType = vE, this.writeBuffer = [], this._prevBufferLen = 0, this._pingInterval = -1, this._pingTimeout = -1, this._maxPayload = -1, this._pingTimeoutTime = 1 / 0, t && typeof t == "object" && (n = t, t = null), t) {
|
|
865
|
-
const r =
|
|
865
|
+
const r = ja(t);
|
|
866
866
|
n.hostname = r.host, n.secure = r.protocol === "https" || r.protocol === "wss", n.port = r.port, r.query && (n.query = r.query);
|
|
867
|
-
} else n.host && (n.hostname =
|
|
867
|
+
} else n.host && (n.hostname = ja(n.host).host);
|
|
868
868
|
mo(this, n), this.secure = n.secure != null ? n.secure : typeof location != "undefined" && location.protocol === "https:", n.hostname && !n.port && (n.port = this.secure ? "443" : "80"), this.hostname = n.hostname || (typeof location != "undefined" ? location.hostname : "localhost"), this.port = n.port || (typeof location != "undefined" && location.port ? location.port : this.secure ? "443" : "80"), this.transports = [], this._transportsByName = {}, n.transports.forEach((r) => {
|
|
869
869
|
const i = r.prototype.name;
|
|
870
870
|
this.transports.push(i), this._transportsByName[i] = r;
|
|
@@ -882,7 +882,7 @@ class Fn extends et {
|
|
|
882
882
|
},
|
|
883
883
|
transportOptions: {},
|
|
884
884
|
closeOnBeforeunload: !1
|
|
885
|
-
}, n), this.opts.path = this.opts.path.replace(/\/$/, "") + (this.opts.addTrailingSlash ? "/" : ""), typeof this.opts.query == "string" && (this.opts.query = UE(this.opts.query)),
|
|
885
|
+
}, n), this.opts.path = this.opts.path.replace(/\/$/, "") + (this.opts.addTrailingSlash ? "/" : ""), typeof this.opts.query == "string" && (this.opts.query = UE(this.opts.query)), Wa && (this.opts.closeOnBeforeunload && (this._beforeunloadEventListener = () => {
|
|
886
886
|
this.transport && (this.transport.removeAllListeners(), this.transport.close());
|
|
887
887
|
}, addEventListener("beforeunload", this._beforeunloadEventListener, !1)), this.hostname !== "localhost" && (this._offlineEventListener = () => {
|
|
888
888
|
this._onClose("transport close", {
|
|
@@ -1115,7 +1115,7 @@ class Fn extends et {
|
|
|
1115
1115
|
*/
|
|
1116
1116
|
_onClose(t, n) {
|
|
1117
1117
|
if (this.readyState === "opening" || this.readyState === "open" || this.readyState === "closing") {
|
|
1118
|
-
if (this.clearTimeoutFn(this._pingTimeoutTimer), this.transport.removeAllListeners("close"), this.transport.close(), this.transport.removeAllListeners(),
|
|
1118
|
+
if (this.clearTimeoutFn(this._pingTimeoutTimer), this.transport.removeAllListeners("close"), this.transport.close(), this.transport.removeAllListeners(), Wa && (this._beforeunloadEventListener && removeEventListener("beforeunload", this._beforeunloadEventListener, !1), this._offlineEventListener)) {
|
|
1119
1119
|
const r = ws.indexOf(this._offlineEventListener);
|
|
1120
1120
|
r !== -1 && ws.splice(r, 1);
|
|
1121
1121
|
}
|
|
@@ -1204,7 +1204,7 @@ let n1 = class extends t1 {
|
|
|
1204
1204
|
};
|
|
1205
1205
|
function r1(e, t = "", n) {
|
|
1206
1206
|
let r = e;
|
|
1207
|
-
n = n || typeof location != "undefined" && location, e == null && (e = n.protocol + "//" + n.host), typeof e == "string" && (e.charAt(0) === "/" && (e.charAt(1) === "/" ? e = n.protocol + e : e = n.host + e), /^(https?|wss?):\/\//.test(e) || (typeof n != "undefined" ? e = n.protocol + "//" + e : e = "https://" + e), r =
|
|
1207
|
+
n = n || typeof location != "undefined" && location, e == null && (e = n.protocol + "//" + n.host), typeof e == "string" && (e.charAt(0) === "/" && (e.charAt(1) === "/" ? e = n.protocol + e : e = n.host + e), /^(https?|wss?):\/\//.test(e) || (typeof n != "undefined" ? e = n.protocol + "//" + e : e = "https://" + e), r = ja(e)), r.port || (/^(http|ws)$/.test(r.protocol) ? r.port = "80" : /^(http|ws)s$/.test(r.protocol) && (r.port = "443")), r.path = r.path || "/";
|
|
1208
1208
|
const s = r.host.indexOf(":") !== -1 ? "[" + r.host + "]" : r.host;
|
|
1209
1209
|
return r.id = r.protocol + "://" + s + ":" + r.port + t, r.href = r.protocol + "://" + s + (n && n.port === r.port ? "" : ":" + r.port), r;
|
|
1210
1210
|
}
|
|
@@ -2376,12 +2376,12 @@ var Il;
|
|
|
2376
2376
|
(function(e) {
|
|
2377
2377
|
e[e.CONNECT = 0] = "CONNECT", e[e.DISCONNECT = 1] = "DISCONNECT", e[e.EVENT = 2] = "EVENT", e[e.ACK = 3] = "ACK", e[e.CONNECT_ERROR = 4] = "CONNECT_ERROR", e[e.BINARY_EVENT = 5] = "BINARY_EVENT", e[e.BINARY_ACK = 6] = "BINARY_ACK";
|
|
2378
2378
|
})(Il || (Il = {}));
|
|
2379
|
-
const go = "cimulate",
|
|
2380
|
-
window.addEventListener(
|
|
2379
|
+
const go = "cimulate", ju = `${go}:pdp-update`, Wu = `${go}:ui-state-update`, Xu = `${go}:prompts-state-update`, Ku = `${go}:session-state`, g1 = (e) => {
|
|
2380
|
+
window.addEventListener(ju, e);
|
|
2381
2381
|
}, E1 = (e) => {
|
|
2382
|
-
window.removeEventListener(
|
|
2382
|
+
window.removeEventListener(ju, e);
|
|
2383
2383
|
}, wl = (e, t, n) => {
|
|
2384
|
-
const r = new CustomEvent(
|
|
2384
|
+
const r = new CustomEvent(ju, {
|
|
2385
2385
|
detail: { property: e, value: t, event: n }
|
|
2386
2386
|
});
|
|
2387
2387
|
window.dispatchEvent(r);
|
|
@@ -3160,11 +3160,11 @@ function k1() {
|
|
|
3160
3160
|
}
|
|
3161
3161
|
}
|
|
3162
3162
|
const L1 = (e) => {
|
|
3163
|
-
window.addEventListener(
|
|
3163
|
+
window.addEventListener(Wu, e);
|
|
3164
3164
|
}, D1 = (e) => {
|
|
3165
|
-
window.removeEventListener(
|
|
3165
|
+
window.removeEventListener(Wu, e);
|
|
3166
3166
|
}, M1 = (e, t) => {
|
|
3167
|
-
const n = new CustomEvent(
|
|
3167
|
+
const n = new CustomEvent(Wu, { detail: { property: e, value: t } });
|
|
3168
3168
|
window.dispatchEvent(n);
|
|
3169
3169
|
}, vl = (e) => {
|
|
3170
3170
|
ke.connectedProxy.connected = e;
|
|
@@ -3418,7 +3418,7 @@ function Yh(e, t) {
|
|
|
3418
3418
|
return e.apply(t, arguments);
|
|
3419
3419
|
};
|
|
3420
3420
|
}
|
|
3421
|
-
const { toString:
|
|
3421
|
+
const { toString: j1 } = Object.prototype, { getPrototypeOf: zr } = Object, { iterator: Gi, toStringTag: Gh } = Symbol, Gs = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Bi = (e, t) => {
|
|
3422
3422
|
let n = e;
|
|
3423
3423
|
const r = [];
|
|
3424
3424
|
for (; n != null && n !== Object.prototype; ) {
|
|
@@ -3429,19 +3429,19 @@ const { toString: W1 } = Object.prototype, { getPrototypeOf: zr } = Object, { it
|
|
|
3429
3429
|
n = zr(n);
|
|
3430
3430
|
}
|
|
3431
3431
|
return !1;
|
|
3432
|
-
},
|
|
3433
|
-
const n =
|
|
3432
|
+
}, W1 = (e, t) => e != null && Bi(e, t) ? e[t] : void 0, ec = /* @__PURE__ */ ((e) => (t) => {
|
|
3433
|
+
const n = j1.call(t);
|
|
3434
3434
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
3435
3435
|
})(/* @__PURE__ */ Object.create(null)), Jt = (e) => (e = e.toLowerCase(), (t) => ec(t) === e), bo = (e) => (t) => typeof t === e, { isArray: lr } = Array, Vr = bo("undefined");
|
|
3436
3436
|
function Jr(e) {
|
|
3437
3437
|
return e !== null && !Vr(e) && e.constructor !== null && !Vr(e.constructor) && Pt(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
3438
3438
|
}
|
|
3439
|
-
const
|
|
3439
|
+
const jh = Jt("ArrayBuffer");
|
|
3440
3440
|
function X1(e) {
|
|
3441
3441
|
let t;
|
|
3442
|
-
return typeof ArrayBuffer != "undefined" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
3442
|
+
return typeof ArrayBuffer != "undefined" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && jh(e.buffer), t;
|
|
3443
3443
|
}
|
|
3444
|
-
const K1 = bo("string"), Pt = bo("function"),
|
|
3444
|
+
const K1 = bo("string"), Pt = bo("function"), Wh = bo("number"), Zr = (e) => e !== null && typeof e == "object", Q1 = (e) => e === !0 || e === !1, ks = (e) => {
|
|
3445
3445
|
if (!Zr(e))
|
|
3446
3446
|
return !1;
|
|
3447
3447
|
const t = zr(e);
|
|
@@ -3475,7 +3475,7 @@ const kl = oT(), Ll = typeof kl.FormData != "undefined" ? kl.FormData : void 0,
|
|
|
3475
3475
|
"Response",
|
|
3476
3476
|
"Headers"
|
|
3477
3477
|
].map(Jt), hT = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
3478
|
-
function
|
|
3478
|
+
function ji(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
3479
3479
|
if (e === null || typeof e == "undefined")
|
|
3480
3480
|
return;
|
|
3481
3481
|
let r, i;
|
|
@@ -3512,7 +3512,7 @@ function Qa(...e) {
|
|
|
3512
3512
|
};
|
|
3513
3513
|
for (let s = 0, o = e.length; s < o; s++) {
|
|
3514
3514
|
const a = e[s];
|
|
3515
|
-
if (!a || Jr(a) || (
|
|
3515
|
+
if (!a || Jr(a) || (ji(a, i), typeof a != "object" || lr(a)))
|
|
3516
3516
|
continue;
|
|
3517
3517
|
const u = Object.getOwnPropertySymbols(a);
|
|
3518
3518
|
for (let c = 0; c < u.length; c++) {
|
|
@@ -3522,7 +3522,7 @@ function Qa(...e) {
|
|
|
3522
3522
|
}
|
|
3523
3523
|
return r;
|
|
3524
3524
|
}
|
|
3525
|
-
const pT = (e, t, n, { allOwnKeys: r } = {}) => (
|
|
3525
|
+
const pT = (e, t, n, { allOwnKeys: r } = {}) => (ji(
|
|
3526
3526
|
t,
|
|
3527
3527
|
(i, s) => {
|
|
3528
3528
|
n && Pt(i) ? Object.defineProperty(e, s, {
|
|
@@ -3571,7 +3571,7 @@ const pT = (e, t, n, { allOwnKeys: r } = {}) => (Wi(
|
|
|
3571
3571
|
if (!e) return null;
|
|
3572
3572
|
if (lr(e)) return e;
|
|
3573
3573
|
let t = e.length;
|
|
3574
|
-
if (!
|
|
3574
|
+
if (!Wh(t)) return null;
|
|
3575
3575
|
const n = new Array(t);
|
|
3576
3576
|
for (; t-- > 0; )
|
|
3577
3577
|
n[t] = e[t];
|
|
@@ -3593,7 +3593,7 @@ const pT = (e, t, n, { allOwnKeys: r } = {}) => (Wi(
|
|
|
3593
3593
|
return r.toUpperCase() + i;
|
|
3594
3594
|
}), { propertyIsEnumerable: OT } = Object.prototype, xT = Jt("RegExp"), Qh = (e, t) => {
|
|
3595
3595
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
3596
|
-
|
|
3596
|
+
ji(n, (i, s) => {
|
|
3597
3597
|
let o;
|
|
3598
3598
|
(o = t(i, s, e)) !== !1 && (r[s] = o || i);
|
|
3599
3599
|
}), Object.defineProperties(e, r);
|
|
@@ -3634,7 +3634,7 @@ const vT = (e) => {
|
|
|
3634
3634
|
if (!("toJSON" in r)) {
|
|
3635
3635
|
t.add(r);
|
|
3636
3636
|
const i = lr(r) ? [] : {};
|
|
3637
|
-
return
|
|
3637
|
+
return ji(r, (s, o) => {
|
|
3638
3638
|
const a = n(s);
|
|
3639
3639
|
!Vr(a) && (i[o] = a);
|
|
3640
3640
|
}), t.delete(r), i;
|
|
@@ -3653,12 +3653,12 @@ const vT = (e) => {
|
|
|
3653
3653
|
r.push(i), tr.postMessage(n, "*");
|
|
3654
3654
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", Pt(tr.postMessage)), DT = typeof queueMicrotask != "undefined" ? queueMicrotask.bind(tr) : typeof process != "undefined" && process.nextTick || Jh, Zh = (e) => e != null && Pt(e[Gi]), MT = (e) => e != null && Bi(e, Gi) && Zh(e), k = {
|
|
3655
3655
|
isArray: lr,
|
|
3656
|
-
isArrayBuffer:
|
|
3656
|
+
isArrayBuffer: jh,
|
|
3657
3657
|
isBuffer: Jr,
|
|
3658
3658
|
isFormData: aT,
|
|
3659
3659
|
isArrayBufferView: X1,
|
|
3660
3660
|
isString: K1,
|
|
3661
|
-
isNumber:
|
|
3661
|
+
isNumber: Wh,
|
|
3662
3662
|
isBoolean: Q1,
|
|
3663
3663
|
isObject: Zr,
|
|
3664
3664
|
isPlainObject: ks,
|
|
@@ -3679,7 +3679,7 @@ const vT = (e) => {
|
|
|
3679
3679
|
isURLSearchParams: uT,
|
|
3680
3680
|
isTypedArray: yT,
|
|
3681
3681
|
isFileList: iT,
|
|
3682
|
-
forEach:
|
|
3682
|
+
forEach: ji,
|
|
3683
3683
|
merge: Qa,
|
|
3684
3684
|
extend: pT,
|
|
3685
3685
|
trim: hT,
|
|
@@ -3697,7 +3697,7 @@ const vT = (e) => {
|
|
|
3697
3697
|
hasOwnProp: Gs,
|
|
3698
3698
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
3699
3699
|
hasOwnInPrototypeChain: Bi,
|
|
3700
|
-
getSafeProp:
|
|
3700
|
+
getSafeProp: W1,
|
|
3701
3701
|
reduceDescriptors: Qh,
|
|
3702
3702
|
freezeMethods: CT,
|
|
3703
3703
|
toObjectSet: IT,
|
|
@@ -3796,7 +3796,7 @@ function ca(e, t, n, r, i) {
|
|
|
3796
3796
|
function GT(e) {
|
|
3797
3797
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
3798
3798
|
}
|
|
3799
|
-
function
|
|
3799
|
+
function jT(e, t) {
|
|
3800
3800
|
const n = k.toCamelCase(" " + t);
|
|
3801
3801
|
["get", "set", "has"].forEach((r) => {
|
|
3802
3802
|
Object.defineProperty(e, r + n, {
|
|
@@ -3931,7 +3931,7 @@ let bt = class {
|
|
|
3931
3931
|
}).accessors, i = this.prototype;
|
|
3932
3932
|
function s(o) {
|
|
3933
3933
|
const a = hi(o);
|
|
3934
|
-
r[a] || (
|
|
3934
|
+
r[a] || (jT(i, o), r[a] = !0);
|
|
3935
3935
|
}
|
|
3936
3936
|
return k.isArray(t) ? t.forEach(s) : s(t), this;
|
|
3937
3937
|
}
|
|
@@ -3954,7 +3954,7 @@ k.reduceDescriptors(bt.prototype, ({ value: e }, t) => {
|
|
|
3954
3954
|
};
|
|
3955
3955
|
});
|
|
3956
3956
|
k.freezeMethods(bt);
|
|
3957
|
-
const
|
|
3957
|
+
const WT = "[REDACTED ****]";
|
|
3958
3958
|
function XT(e) {
|
|
3959
3959
|
if (k.hasOwnProp(e, "toJSON"))
|
|
3960
3960
|
return !0;
|
|
@@ -3982,7 +3982,7 @@ function KT(e, t) {
|
|
|
3982
3982
|
return r.pop(), s;
|
|
3983
3983
|
o = /* @__PURE__ */ Object.create(null);
|
|
3984
3984
|
for (const [a, u] of Object.entries(s)) {
|
|
3985
|
-
const c = n.has(a.toLowerCase()) ?
|
|
3985
|
+
const c = n.has(a.toLowerCase()) ? WT : i(u);
|
|
3986
3986
|
k.isUndefined(c) || (o[a] = c);
|
|
3987
3987
|
}
|
|
3988
3988
|
}
|
|
@@ -4346,7 +4346,7 @@ function fb(e, t, n) {
|
|
|
4346
4346
|
}
|
|
4347
4347
|
return (n || JSON.stringify)(e);
|
|
4348
4348
|
}
|
|
4349
|
-
const
|
|
4349
|
+
const Wi = {
|
|
4350
4350
|
transitional: rc,
|
|
4351
4351
|
adapter: ["xhr", "http", "fetch"],
|
|
4352
4352
|
transformRequest: [
|
|
@@ -4379,7 +4379,7 @@ const ji = {
|
|
|
4379
4379
|
],
|
|
4380
4380
|
transformResponse: [
|
|
4381
4381
|
function(t) {
|
|
4382
|
-
const n = xr(this, "transitional") ||
|
|
4382
|
+
const n = xr(this, "transitional") || Wi.transitional, r = n && n.forcedJSONParsing, i = xr(this, "responseType"), s = i === "json";
|
|
4383
4383
|
if (k.isResponse(t) || k.isReadableStream(t))
|
|
4384
4384
|
return t;
|
|
4385
4385
|
if (t && k.isString(t) && (r && !i || s)) {
|
|
@@ -4418,10 +4418,10 @@ const ji = {
|
|
|
4418
4418
|
}
|
|
4419
4419
|
};
|
|
4420
4420
|
k.forEach(["delete", "get", "head", "post", "put", "patch", "query"], (e) => {
|
|
4421
|
-
|
|
4421
|
+
Wi.headers[e] = {};
|
|
4422
4422
|
});
|
|
4423
4423
|
function da(e, t) {
|
|
4424
|
-
const n = this ||
|
|
4424
|
+
const n = this || Wi, r = t || n, i = bt.from(r.headers);
|
|
4425
4425
|
let s = r.data;
|
|
4426
4426
|
return k.forEach(e, function(a) {
|
|
4427
4427
|
s = a.call(n, s, i.normalize(), t ? t.status : void 0);
|
|
@@ -4486,7 +4486,7 @@ function mb(e, t) {
|
|
|
4486
4486
|
}, r - d)));
|
|
4487
4487
|
}, () => i && o(i)];
|
|
4488
4488
|
}
|
|
4489
|
-
const
|
|
4489
|
+
const js = (e, t, n = 3) => {
|
|
4490
4490
|
let r = 0;
|
|
4491
4491
|
const i = pb(50, 250);
|
|
4492
4492
|
return mb((s) => {
|
|
@@ -4770,7 +4770,7 @@ const Cb = typeof XMLHttpRequest != "undefined", Ib = Cb && function(e) {
|
|
|
4770
4770
|
), b(), T = null;
|
|
4771
4771
|
}, s === void 0 && o.setContentType(null), "setRequestHeader" in T && k.forEach(ep(o), function(v, L) {
|
|
4772
4772
|
T.setRequestHeader(L, v);
|
|
4773
|
-
}), k.isUndefined(i.withCredentials) || (T.withCredentials = !!i.withCredentials), a && a !== "json" && (T.responseType = i.responseType), c && ([p, g] =
|
|
4773
|
+
}), k.isUndefined(i.withCredentials) || (T.withCredentials = !!i.withCredentials), a && a !== "json" && (T.responseType = i.responseType), c && ([p, g] = js(c, !0), T.addEventListener("progress", p)), u && T.upload && ([d, h] = js(u), T.upload.addEventListener("progress", d), T.upload.addEventListener("loadend", h)), (i.cancelToken || i.signal) && (l = (S) => {
|
|
4774
4774
|
T && (r(!S || S.type ? new Xi(null, e, T) : S), T.abort(), b(), T = null);
|
|
4775
4775
|
}, i.cancelToken && i.cancelToken.subscribe(l), i.signal && (i.signal.aborted ? l() : i.signal.addEventListener("abort", l)));
|
|
4776
4776
|
const y = hb(i.url);
|
|
@@ -4823,7 +4823,7 @@ const Cb = typeof XMLHttpRequest != "undefined", Ib = Cb && function(e) {
|
|
|
4823
4823
|
}, Rb = function(e, t) {
|
|
4824
4824
|
return ta(this, null, function* () {
|
|
4825
4825
|
try {
|
|
4826
|
-
for (var n = Sl(vb(e)), r, i, s; r = !(i = yield new
|
|
4826
|
+
for (var n = Sl(vb(e)), r, i, s; r = !(i = yield new Wn(n.next())).done; r = !1) {
|
|
4827
4827
|
const o = i.value;
|
|
4828
4828
|
yield* na(Pb(o, t));
|
|
4829
4829
|
}
|
|
@@ -4831,7 +4831,7 @@ const Cb = typeof XMLHttpRequest != "undefined", Ib = Cb && function(e) {
|
|
|
4831
4831
|
s = [i];
|
|
4832
4832
|
} finally {
|
|
4833
4833
|
try {
|
|
4834
|
-
r && (i = n.return) && (yield new
|
|
4834
|
+
r && (i = n.return) && (yield new Wn(i.call(n)));
|
|
4835
4835
|
} finally {
|
|
4836
4836
|
if (s)
|
|
4837
4837
|
throw s[0];
|
|
@@ -4847,13 +4847,13 @@ const Cb = typeof XMLHttpRequest != "undefined", Ib = Cb && function(e) {
|
|
|
4847
4847
|
const t = e.getReader();
|
|
4848
4848
|
try {
|
|
4849
4849
|
for (; ; ) {
|
|
4850
|
-
const { done: n, value: r } = yield new
|
|
4850
|
+
const { done: n, value: r } = yield new Wn(t.read());
|
|
4851
4851
|
if (n)
|
|
4852
4852
|
break;
|
|
4853
4853
|
yield r;
|
|
4854
4854
|
}
|
|
4855
4855
|
} finally {
|
|
4856
|
-
yield new
|
|
4856
|
+
yield new Wn(t.cancel());
|
|
4857
4857
|
}
|
|
4858
4858
|
});
|
|
4859
4859
|
}, Vl = (e, t, n, r) => {
|
|
@@ -4890,7 +4890,7 @@ const Cb = typeof XMLHttpRequest != "undefined", Ib = Cb && function(e) {
|
|
|
4890
4890
|
highWaterMark: 2
|
|
4891
4891
|
}
|
|
4892
4892
|
);
|
|
4893
|
-
},
|
|
4893
|
+
}, Ws = (e) => e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102, kb = (e, t, n) => t + 2 < n && Ws(e.charCodeAt(t + 1)) && Ws(e.charCodeAt(t + 2));
|
|
4894
4894
|
function Lb(e) {
|
|
4895
4895
|
if (!e || typeof e != "string" || !e.startsWith("data:")) return 0;
|
|
4896
4896
|
const t = e.indexOf(",");
|
|
@@ -4902,7 +4902,7 @@ function Lb(e) {
|
|
|
4902
4902
|
for (let h = 0; h < a; h++)
|
|
4903
4903
|
if (r.charCodeAt(h) === 37 && h + 2 < a) {
|
|
4904
4904
|
const g = r.charCodeAt(h + 1), b = r.charCodeAt(h + 2);
|
|
4905
|
-
|
|
4905
|
+
Ws(g) && Ws(b) && (o -= 2, h += 2);
|
|
4906
4906
|
}
|
|
4907
4907
|
let u = 0, c = a - 1;
|
|
4908
4908
|
const l = (h) => h >= 2 && r.charCodeAt(h - 2) === 37 && // '%'
|
|
@@ -5024,10 +5024,10 @@ const sc = "1.18.1", ql = 64 * 1024, { isFunction: ms } = k, Db = (e) => encodeU
|
|
|
5024
5024
|
headers: z,
|
|
5025
5025
|
withCredentials: B = "same-origin",
|
|
5026
5026
|
fetchOptions: Y,
|
|
5027
|
-
maxContentLength:
|
|
5027
|
+
maxContentLength: W,
|
|
5028
5028
|
maxBodyLength: X
|
|
5029
5029
|
} = dp(m);
|
|
5030
|
-
const ae = k.isNumber(
|
|
5030
|
+
const ae = k.isNumber(W) && W > -1, Z = k.isNumber(X) && X > -1, j = (te) => k.hasOwnProp(m, te) ? m[te] : void 0;
|
|
5031
5031
|
let ue = i || fetch;
|
|
5032
5032
|
w = w ? (w + "").toLowerCase() : "text";
|
|
5033
5033
|
let N = wb(
|
|
@@ -5046,20 +5046,20 @@ const sc = "1.18.1", ql = 64 * 1024, { isFunction: ms } = k, Db = (e) => encodeU
|
|
|
5046
5046
|
);
|
|
5047
5047
|
try {
|
|
5048
5048
|
let te;
|
|
5049
|
-
const Te =
|
|
5049
|
+
const Te = j("auth");
|
|
5050
5050
|
if (Te) {
|
|
5051
|
-
const ge = k.getSafeProp(Te, "username") || "",
|
|
5051
|
+
const ge = k.getSafeProp(Te, "username") || "", je = k.getSafeProp(Te, "password") || "";
|
|
5052
5052
|
te = {
|
|
5053
5053
|
username: ge,
|
|
5054
|
-
password:
|
|
5054
|
+
password: je
|
|
5055
5055
|
};
|
|
5056
5056
|
}
|
|
5057
5057
|
if (Mb(y)) {
|
|
5058
5058
|
const ge = new URL(y, ft.origin);
|
|
5059
5059
|
if (!te && (ge.username || ge.password)) {
|
|
5060
|
-
const
|
|
5060
|
+
const je = Yl(ge.username), dt = Yl(ge.password);
|
|
5061
5061
|
te = {
|
|
5062
|
-
username:
|
|
5062
|
+
username: je,
|
|
5063
5063
|
password: dt
|
|
5064
5064
|
};
|
|
5065
5065
|
}
|
|
@@ -5068,9 +5068,9 @@ const sc = "1.18.1", ql = 64 * 1024, { isFunction: ms } = k, Db = (e) => encodeU
|
|
|
5068
5068
|
if (te && (z.delete("authorization"), z.set(
|
|
5069
5069
|
"Authorization",
|
|
5070
5070
|
"Basic " + btoa(Db((te.username || "") + ":" + (te.password || "")))
|
|
5071
|
-
)), ae && typeof y == "string" && y.startsWith("data:") && Lb(y) >
|
|
5071
|
+
)), ae && typeof y == "string" && y.startsWith("data:") && Lb(y) > W)
|
|
5072
5072
|
throw new oe(
|
|
5073
|
-
"maxContentLength size of " +
|
|
5073
|
+
"maxContentLength size of " + W + " exceeded",
|
|
5074
5074
|
oe.ERR_BAD_RESPONSE,
|
|
5075
5075
|
m,
|
|
5076
5076
|
ce
|
|
@@ -5080,13 +5080,13 @@ const sc = "1.18.1", ql = 64 * 1024, { isFunction: ms } = k, Db = (e) => encodeU
|
|
|
5080
5080
|
if (typeof ge == "number" && isFinite(ge) && (R = ge, ge > X))
|
|
5081
5081
|
throw Ge();
|
|
5082
5082
|
}
|
|
5083
|
-
const xe = Z && (k.isReadableStream(v) || k.isStream(v)), tt = (ge,
|
|
5083
|
+
const xe = Z && (k.isReadableStream(v) || k.isStream(v)), tt = (ge, je, dt) => Vl(
|
|
5084
5084
|
ge,
|
|
5085
5085
|
ql,
|
|
5086
5086
|
(fe) => {
|
|
5087
5087
|
if (Z && fe > X)
|
|
5088
5088
|
throw me = Ge();
|
|
5089
|
-
|
|
5089
|
+
je && je(fe);
|
|
5090
5090
|
},
|
|
5091
5091
|
dt
|
|
5092
5092
|
);
|
|
@@ -5096,11 +5096,11 @@ const sc = "1.18.1", ql = 64 * 1024, { isFunction: ms } = k, Db = (e) => encodeU
|
|
|
5096
5096
|
method: "POST",
|
|
5097
5097
|
body: v,
|
|
5098
5098
|
duplex: "half"
|
|
5099
|
-
}),
|
|
5100
|
-
if (k.isFormData(v) && (
|
|
5099
|
+
}), je;
|
|
5100
|
+
if (k.isFormData(v) && (je = ge.headers.get("content-type")) && z.setContentType(je), ge.body) {
|
|
5101
5101
|
const [dt, fe] = H && Ul(
|
|
5102
5102
|
R,
|
|
5103
|
-
|
|
5103
|
+
js(Hl(H))
|
|
5104
5104
|
) || [];
|
|
5105
5105
|
v = tt(ge.body, dt, fe);
|
|
5106
5106
|
}
|
|
@@ -5134,9 +5134,9 @@ const sc = "1.18.1", ql = 64 * 1024, { isFunction: ms } = k, Db = (e) => encodeU
|
|
|
5134
5134
|
const ot = bt.from(De.headers);
|
|
5135
5135
|
if (ae) {
|
|
5136
5136
|
const ge = k.toFiniteNumber(ot.getContentLength());
|
|
5137
|
-
if (ge != null && ge >
|
|
5137
|
+
if (ge != null && ge > W)
|
|
5138
5138
|
throw new oe(
|
|
5139
|
-
"maxContentLength size of " +
|
|
5139
|
+
"maxContentLength size of " + W + " exceeded",
|
|
5140
5140
|
oe.ERR_BAD_RESPONSE,
|
|
5141
5141
|
m,
|
|
5142
5142
|
ce
|
|
@@ -5148,15 +5148,15 @@ const sc = "1.18.1", ql = 64 * 1024, { isFunction: ms } = k, Db = (e) => encodeU
|
|
|
5148
5148
|
["status", "statusText", "headers"].forEach((Ve) => {
|
|
5149
5149
|
ge[Ve] = De[Ve];
|
|
5150
5150
|
});
|
|
5151
|
-
const
|
|
5152
|
-
|
|
5153
|
-
|
|
5151
|
+
const je = k.toFiniteNumber(ot.getContentLength()), [dt, fe] = q && Ul(
|
|
5152
|
+
je,
|
|
5153
|
+
js(Hl(q), !0)
|
|
5154
5154
|
) || [];
|
|
5155
5155
|
let Oe = 0;
|
|
5156
5156
|
const Fe = (Ve) => {
|
|
5157
|
-
if (ae && (Oe = Ve, Oe >
|
|
5157
|
+
if (ae && (Oe = Ve, Oe > W))
|
|
5158
5158
|
throw new oe(
|
|
5159
|
-
"maxContentLength size of " +
|
|
5159
|
+
"maxContentLength size of " + W + " exceeded",
|
|
5160
5160
|
oe.ERR_BAD_RESPONSE,
|
|
5161
5161
|
m,
|
|
5162
5162
|
ce
|
|
@@ -5177,16 +5177,16 @@ const sc = "1.18.1", ql = 64 * 1024, { isFunction: ms } = k, Db = (e) => encodeU
|
|
|
5177
5177
|
);
|
|
5178
5178
|
if (ae && !h && !Je) {
|
|
5179
5179
|
let ge;
|
|
5180
|
-
if (ze != null && (typeof ze.byteLength == "number" ? ge = ze.byteLength : typeof ze.size == "number" ? ge = ze.size : typeof ze == "string" && (ge = typeof r == "function" ? new r().encode(ze).byteLength : ze.length)), typeof ge == "number" && ge >
|
|
5180
|
+
if (ze != null && (typeof ze.byteLength == "number" ? ge = ze.byteLength : typeof ze.size == "number" ? ge = ze.size : typeof ze == "string" && (ge = typeof r == "function" ? new r().encode(ze).byteLength : ze.length)), typeof ge == "number" && ge > W)
|
|
5181
5181
|
throw new oe(
|
|
5182
|
-
"maxContentLength size of " +
|
|
5182
|
+
"maxContentLength size of " + W + " exceeded",
|
|
5183
5183
|
oe.ERR_BAD_RESPONSE,
|
|
5184
5184
|
m,
|
|
5185
5185
|
ce
|
|
5186
5186
|
);
|
|
5187
5187
|
}
|
|
5188
|
-
return !Je && he && he(), yield new Promise((ge,
|
|
5189
|
-
cp(ge,
|
|
5188
|
+
return !Je && he && he(), yield new Promise((ge, je) => {
|
|
5189
|
+
cp(ge, je, {
|
|
5190
5190
|
data: ze,
|
|
5191
5191
|
headers: bt.from(De.headers),
|
|
5192
5192
|
status: De.status,
|
|
@@ -5254,7 +5254,7 @@ k.forEach(oc, (e, t) => {
|
|
|
5254
5254
|
Object.defineProperty(e, "adapterName", { __proto__: null, value: t });
|
|
5255
5255
|
}
|
|
5256
5256
|
});
|
|
5257
|
-
const
|
|
5257
|
+
const jl = (e) => `- ${e}`, Ub = (e) => k.isFunction(e) || e === null || e === !1;
|
|
5258
5258
|
function Hb(e, t) {
|
|
5259
5259
|
e = k.isArray(e) ? e : [e];
|
|
5260
5260
|
const { length: n } = e;
|
|
@@ -5274,8 +5274,8 @@ function Hb(e, t) {
|
|
|
5274
5274
|
([u, c]) => `adapter ${u} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
5275
5275
|
);
|
|
5276
5276
|
let a = n ? o.length > 1 ? `since :
|
|
5277
|
-
` + o.map(
|
|
5278
|
-
`) : " " +
|
|
5277
|
+
` + o.map(jl).join(`
|
|
5278
|
+
`) : " " + jl(o[0]) : "as no adapter specified";
|
|
5279
5279
|
throw new oe(
|
|
5280
5280
|
"There is no suitable adapter to dispatch the request " + a,
|
|
5281
5281
|
oe.ERR_NOT_SUPPORT
|
|
@@ -5299,8 +5299,8 @@ function fa(e) {
|
|
|
5299
5299
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
5300
5300
|
throw new Xi(null, e);
|
|
5301
5301
|
}
|
|
5302
|
-
function
|
|
5303
|
-
return fa(e), e.headers = bt.from(e.headers), e.data = da.call(e, e.transformRequest), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), hp.getAdapter(e.adapter ||
|
|
5302
|
+
function Wl(e) {
|
|
5303
|
+
return fa(e), e.headers = bt.from(e.headers), e.data = da.call(e, e.transformRequest), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), hp.getAdapter(e.adapter || Wi.adapter, e)(e).then(
|
|
5304
5304
|
function(r) {
|
|
5305
5305
|
fa(e), e.response = r;
|
|
5306
5306
|
try {
|
|
@@ -5477,7 +5477,7 @@ let or = class {
|
|
|
5477
5477
|
});
|
|
5478
5478
|
let l, d = 0, p;
|
|
5479
5479
|
if (!u) {
|
|
5480
|
-
const g = [
|
|
5480
|
+
const g = [Wl.bind(this), void 0];
|
|
5481
5481
|
for (g.unshift(...a), g.push(...c), p = g.length, l = Promise.resolve(n); d < p; )
|
|
5482
5482
|
l = l.then(g[d++], g[d++]);
|
|
5483
5483
|
return l;
|
|
@@ -5494,7 +5494,7 @@ let or = class {
|
|
|
5494
5494
|
}
|
|
5495
5495
|
}
|
|
5496
5496
|
try {
|
|
5497
|
-
l =
|
|
5497
|
+
l = Wl.call(this, h);
|
|
5498
5498
|
} catch (g) {
|
|
5499
5499
|
return Promise.reject(g);
|
|
5500
5500
|
}
|
|
@@ -5697,7 +5697,7 @@ function mp(e) {
|
|
|
5697
5697
|
return mp(dr(e, i));
|
|
5698
5698
|
}, n;
|
|
5699
5699
|
}
|
|
5700
|
-
const Qe = mp(
|
|
5700
|
+
const Qe = mp(Wi);
|
|
5701
5701
|
Qe.Axios = or;
|
|
5702
5702
|
Qe.CanceledError = Xi;
|
|
5703
5703
|
Qe.CancelToken = zb;
|
|
@@ -5718,23 +5718,23 @@ Qe.getAdapter = hp.getAdapter;
|
|
|
5718
5718
|
Qe.HttpStatusCode = eu;
|
|
5719
5719
|
Qe.default = Qe;
|
|
5720
5720
|
const {
|
|
5721
|
-
Axios:
|
|
5722
|
-
AxiosError:
|
|
5723
|
-
CanceledError:
|
|
5724
|
-
isCancel:
|
|
5725
|
-
CancelToken:
|
|
5726
|
-
VERSION:
|
|
5727
|
-
all:
|
|
5728
|
-
Cancel:
|
|
5729
|
-
isAxiosError:
|
|
5730
|
-
spread:
|
|
5731
|
-
toFormData:
|
|
5732
|
-
AxiosHeaders:
|
|
5733
|
-
HttpStatusCode:
|
|
5734
|
-
formToJSON:
|
|
5735
|
-
getAdapter:
|
|
5736
|
-
mergeConfig:
|
|
5737
|
-
create:
|
|
5721
|
+
Axios: sD,
|
|
5722
|
+
AxiosError: oD,
|
|
5723
|
+
CanceledError: aD,
|
|
5724
|
+
isCancel: uD,
|
|
5725
|
+
CancelToken: cD,
|
|
5726
|
+
VERSION: lD,
|
|
5727
|
+
all: dD,
|
|
5728
|
+
Cancel: fD,
|
|
5729
|
+
isAxiosError: hD,
|
|
5730
|
+
spread: pD,
|
|
5731
|
+
toFormData: mD,
|
|
5732
|
+
AxiosHeaders: gD,
|
|
5733
|
+
HttpStatusCode: ED,
|
|
5734
|
+
formToJSON: TD,
|
|
5735
|
+
getAdapter: bD,
|
|
5736
|
+
mergeConfig: yD,
|
|
5737
|
+
create: _D
|
|
5738
5738
|
} = Qe;
|
|
5739
5739
|
class Yb {
|
|
5740
5740
|
constructor(t, n, r, i = !1, s, o) {
|
|
@@ -5821,10 +5821,10 @@ class Gb {
|
|
|
5821
5821
|
}).format(n) : n : "";
|
|
5822
5822
|
}
|
|
5823
5823
|
}
|
|
5824
|
-
const
|
|
5824
|
+
const jb = {
|
|
5825
5825
|
copilot: "Your Search Assistant",
|
|
5826
5826
|
messaging: "Commerce Client"
|
|
5827
|
-
}, gp = Qt(null),
|
|
5827
|
+
}, gp = Qt(null), Wb = ({
|
|
5828
5828
|
mode: e,
|
|
5829
5829
|
logoUrl: t,
|
|
5830
5830
|
headerText: n,
|
|
@@ -5855,19 +5855,19 @@ const Wb = {
|
|
|
5855
5855
|
theme: z,
|
|
5856
5856
|
isDevelopment: B,
|
|
5857
5857
|
__features: Y,
|
|
5858
|
-
routingAttributes:
|
|
5858
|
+
routingAttributes: W,
|
|
5859
5859
|
enableDownloadTranscript: X = !0,
|
|
5860
5860
|
enablePageContext: ae = !1,
|
|
5861
5861
|
enableEscalationToAgent: Z = !1,
|
|
5862
|
-
showProductCaptions:
|
|
5862
|
+
showProductCaptions: j = !1,
|
|
5863
5863
|
staticQuestions: ue,
|
|
5864
5864
|
staticQuestionsStrategy: N = "append",
|
|
5865
5865
|
children: ce
|
|
5866
5866
|
}) => {
|
|
5867
5867
|
const he = e === "messaging", R = Ue(() => {
|
|
5868
|
-
const nt =
|
|
5868
|
+
const nt = W == null ? void 0 : W.isCartMgmtSupported;
|
|
5869
5869
|
return nt === !0 || nt === "true";
|
|
5870
|
-
}, [
|
|
5870
|
+
}, [W]), me = Ue(() => he ? { config: null } : new Gb(q, C, M, B, H, w), [he, q, C, M, B, H, w]), Ge = Ue(() => new b1(B), [B]);
|
|
5871
5871
|
Ne(() => {
|
|
5872
5872
|
he || !me || me.config || me.getConfig();
|
|
5873
5873
|
}, [me, he]);
|
|
@@ -5881,7 +5881,7 @@ const Wb = {
|
|
|
5881
5881
|
});
|
|
5882
5882
|
}, [h, d, p]), xe = Ue(() => $(I({}, r || {}), {
|
|
5883
5883
|
logoUrl: t || (r == null ? void 0 : r.logoUrl),
|
|
5884
|
-
headerText: (r == null ? void 0 : r.headerText) || n ||
|
|
5884
|
+
headerText: (r == null ? void 0 : r.headerText) || n || jb[e != null ? e : "copilot"]
|
|
5885
5885
|
}), [r, t, n, e]), tt = Ue(
|
|
5886
5886
|
() => ({
|
|
5887
5887
|
configModule: me,
|
|
@@ -5909,7 +5909,7 @@ const Wb = {
|
|
|
5909
5909
|
enableDownloadTranscript: X,
|
|
5910
5910
|
enablePageContext: ae,
|
|
5911
5911
|
enableEscalationToAgent: Z,
|
|
5912
|
-
showProductCaptions: !!
|
|
5912
|
+
showProductCaptions: !!j,
|
|
5913
5913
|
resetConversationMessage: L,
|
|
5914
5914
|
conversationHistory: {
|
|
5915
5915
|
sinceHours: typeof (v == null ? void 0 : v.sinceHours) == "number" ? v.sinceHours : he ? 24 : 1,
|
|
@@ -5941,7 +5941,7 @@ const Wb = {
|
|
|
5941
5941
|
ae,
|
|
5942
5942
|
Z,
|
|
5943
5943
|
b,
|
|
5944
|
-
|
|
5944
|
+
j,
|
|
5945
5945
|
L,
|
|
5946
5946
|
Ge,
|
|
5947
5947
|
te,
|
|
@@ -7016,7 +7016,7 @@ const Cr = /* @__PURE__ */ Symbol("initialization-cancelled"), qy = 3e4, Yy = ({
|
|
|
7016
7016
|
esDeveloperName: n,
|
|
7017
7017
|
routingAttributes: r,
|
|
7018
7018
|
conversationHistory: g
|
|
7019
|
-
}), w = re(null), z = re(u), B = re(c), Y = re(a),
|
|
7019
|
+
}), w = re(null), z = re(u), B = re(c), Y = re(a), W = re(l), X = re(d), ae = re(!1), Z = re(!1), j = re(!1), ue = re(0), N = re(0), ce = re(0), he = re(null), R = re(null), me = re(null), Ge = re(0), te = re(!1), Te = re(0), xe = re(0), tt = re(
|
|
7020
7020
|
() => Promise.reject(new Error("Messaging is unavailable"))
|
|
7021
7021
|
), nt = re(), At = re(() => de(null, null, function* () {
|
|
7022
7022
|
return {
|
|
@@ -7028,7 +7028,7 @@ const Cr = /* @__PURE__ */ Symbol("initialization-cancelled"), qy = 3e4, Yy = ({
|
|
|
7028
7028
|
(le) => le === F || !le.timedOut
|
|
7029
7029
|
)) : De.current = De.current.filter((le) => le !== F), clearTimeout(F.timeoutId), F.resolve(ne);
|
|
7030
7030
|
}, []);
|
|
7031
|
-
z.current = u, B.current = c, Y.current = a,
|
|
7031
|
+
z.current = u, B.current = c, Y.current = a, W.current = l, X.current = d, Ne(() => {
|
|
7032
7032
|
const F = new C1({
|
|
7033
7033
|
baseURL: e,
|
|
7034
7034
|
orgId: t,
|
|
@@ -7063,7 +7063,7 @@ const Cr = /* @__PURE__ */ Symbol("initialization-cancelled"), qy = 3e4, Yy = ({
|
|
|
7063
7063
|
const Pe = pi(De.current), Vt = Pe == null ? void 0 : Pe.options.reconcileMessageId;
|
|
7064
7064
|
m({ type: "FLUSH_STREAMING", message: Ae, replaceMessageId: Vt }), (Tl = z.current) == null || Tl.call(z, Ae), Pe && Je(Pe, { outcome: "success" });
|
|
7065
7065
|
const { messagingSessionId: mt } = Q, Nr = mt ? Jb(Q.content) : null;
|
|
7066
|
-
mt && Nr && ((bl =
|
|
7066
|
+
mt && Nr && ((bl = W.current) == null || bl.call(W, {
|
|
7067
7067
|
agentSessionId: mt,
|
|
7068
7068
|
kind: Nr.kind,
|
|
7069
7069
|
productIds: Nr.productIds
|
|
@@ -7128,7 +7128,7 @@ const Cr = /* @__PURE__ */ Symbol("initialization-cancelled"), qy = 3e4, Yy = ({
|
|
|
7128
7128
|
}), F.on("error", (Q) => {
|
|
7129
7129
|
var Ae;
|
|
7130
7130
|
if (h == null || h.log("🦜 MessagingProvider ERROR event received", { event: Q }), Q.code === "SESSION_EXPIRED") {
|
|
7131
|
-
|
|
7131
|
+
j.current = !0, m({ type: "SET_SESSION_EXPIRED", expired: !0 }), m({ type: "SET_CONNECTION_STATUS", status: "disconnected" }), m({ type: "SET_LOADING", isLoading: !1 });
|
|
7132
7132
|
return;
|
|
7133
7133
|
}
|
|
7134
7134
|
m({ type: "SET_ERROR", error: td(Q) }), Q.recoverable || m({ type: "SET_CONNECTION_STATUS", status: "error" }), (Ae = B.current) == null || Ae.call(B, Q.message);
|
|
@@ -7208,7 +7208,7 @@ const Cr = /* @__PURE__ */ Symbol("initialization-cancelled"), qy = 3e4, Yy = ({
|
|
|
7208
7208
|
conversationId: T.conversationId,
|
|
7209
7209
|
messages: T.messages,
|
|
7210
7210
|
deliverUserMessageRef: nt
|
|
7211
|
-
}),
|
|
7211
|
+
}), je = be(() => de(null, null, function* () {
|
|
7212
7212
|
const F = w.current;
|
|
7213
7213
|
if (!F) return !1;
|
|
7214
7214
|
const ne = H.getStoredConnectOptions();
|
|
@@ -7237,7 +7237,7 @@ const Cr = /* @__PURE__ */ Symbol("initialization-cancelled"), qy = 3e4, Yy = ({
|
|
|
7237
7237
|
{ conversationId: le.conversationId }
|
|
7238
7238
|
), F.resumeConversation(le.conversationId)), h == null || h.log("🦜 attemptResume: resumed conversation on same identity", {
|
|
7239
7239
|
conversationId: le.conversationId
|
|
7240
|
-
}), m({ type: "SET_CONVERSATION_ID", id: le.conversationId }), m({ type: "SET_CONNECTION_STATUS", status: "connected" }), H.persistConversationId(le.conversationId),
|
|
7240
|
+
}), m({ type: "SET_CONVERSATION_ID", id: le.conversationId }), m({ type: "SET_CONNECTION_STATUS", status: "connected" }), H.persistConversationId(le.conversationId), j.current = !1, m({ type: "SET_SESSION_EXPIRED", expired: !1 }), !0);
|
|
7241
7241
|
}), [H, h]), dt = be(
|
|
7242
7242
|
(F) => de(null, null, function* () {
|
|
7243
7243
|
var le;
|
|
@@ -7269,13 +7269,13 @@ const Cr = /* @__PURE__ */ Symbol("initialization-cancelled"), qy = 3e4, Yy = ({
|
|
|
7269
7269
|
if (!(!ne || ae.current)) {
|
|
7270
7270
|
ae.current = !0, Z.current = !0;
|
|
7271
7271
|
try {
|
|
7272
|
-
if (yield
|
|
7272
|
+
if (yield je()) {
|
|
7273
7273
|
F && (yield dt(F));
|
|
7274
7274
|
return;
|
|
7275
7275
|
}
|
|
7276
7276
|
h == null || h.log(
|
|
7277
7277
|
"🦜 recoverExpiredSession: resume failed — starting a new session + conversation"
|
|
7278
|
-
),
|
|
7278
|
+
), j.current = !1, m({ type: "SET_SESSION_EXPIRED", expired: !1 }), m({
|
|
7279
7279
|
type: "ADD_MESSAGE",
|
|
7280
7280
|
message: {
|
|
7281
7281
|
id: crypto.randomUUID(),
|
|
@@ -7299,28 +7299,28 @@ const Cr = /* @__PURE__ */ Symbol("initialization-cancelled"), qy = 3e4, Yy = ({
|
|
|
7299
7299
|
}
|
|
7300
7300
|
}
|
|
7301
7301
|
}),
|
|
7302
|
-
[r, H,
|
|
7302
|
+
[r, H, je, dt, h, Je]
|
|
7303
7303
|
), Oe = re(fe);
|
|
7304
7304
|
Oe.current = fe;
|
|
7305
7305
|
const Fe = be(() => de(null, null, function* () {
|
|
7306
7306
|
const F = w.current;
|
|
7307
7307
|
if (!F || !te.current || ae.current) return;
|
|
7308
|
-
if (!q.current.conversationId && !
|
|
7308
|
+
if (!q.current.conversationId && !j.current) {
|
|
7309
7309
|
F.reconnect();
|
|
7310
7310
|
return;
|
|
7311
7311
|
}
|
|
7312
7312
|
ae.current = !0;
|
|
7313
7313
|
const ne = de(null, null, function* () {
|
|
7314
7314
|
try {
|
|
7315
|
-
(yield
|
|
7315
|
+
(yield je()) || (j.current = !0, m({ type: "SET_SESSION_EXPIRED", expired: !0 }), m({ type: "SET_CONNECTION_STATUS", status: "disconnected" }));
|
|
7316
7316
|
} catch (le) {
|
|
7317
|
-
|
|
7317
|
+
j.current = !0, m({ type: "SET_SESSION_EXPIRED", expired: !0 }), m({ type: "SET_CONNECTION_STATUS", status: "disconnected" });
|
|
7318
7318
|
} finally {
|
|
7319
7319
|
ae.current = !1, he.current = null;
|
|
7320
7320
|
}
|
|
7321
7321
|
});
|
|
7322
7322
|
he.current = ne, yield ne;
|
|
7323
|
-
}), [
|
|
7323
|
+
}), [je]), Ve = re(Fe);
|
|
7324
7324
|
Ve.current = Fe;
|
|
7325
7325
|
const Pn = be(() => de(null, null, function* () {
|
|
7326
7326
|
const F = w.current;
|
|
@@ -7334,7 +7334,7 @@ const Cr = /* @__PURE__ */ Symbol("initialization-cancelled"), qy = 3e4, Yy = ({
|
|
|
7334
7334
|
se && F.resumeConversation(se);
|
|
7335
7335
|
} catch (se) {
|
|
7336
7336
|
if (pa(se)) {
|
|
7337
|
-
|
|
7337
|
+
j.current = !0, m({ type: "SET_SESSION_EXPIRED", expired: !0 }), m({ type: "SET_CONNECTION_STATUS", status: "disconnected" }), m({ type: "SET_LOADING", isLoading: !1 });
|
|
7338
7338
|
return;
|
|
7339
7339
|
}
|
|
7340
7340
|
h == null || h.log("🦜 reconnectOmittingLastEventId: transient connect failure — session kept", {
|
|
@@ -7357,7 +7357,7 @@ const Cr = /* @__PURE__ */ Symbol("initialization-cancelled"), qy = 3e4, Yy = ({
|
|
|
7357
7357
|
const Pe = w.current;
|
|
7358
7358
|
if (!Pe) return;
|
|
7359
7359
|
const Vt = N.current ? Date.now() - N.current : 0;
|
|
7360
|
-
N.current = 0, (
|
|
7360
|
+
N.current = 0, (j.current || !Pe.isConnected || Vt > Ay) && F();
|
|
7361
7361
|
}, le = (Pe) => {
|
|
7362
7362
|
Pe.persisted && F();
|
|
7363
7363
|
}, se = () => {
|
|
@@ -7375,7 +7375,7 @@ const Cr = /* @__PURE__ */ Symbol("initialization-cancelled"), qy = 3e4, Yy = ({
|
|
|
7375
7375
|
Je(F, { outcome: "failure", message: "Messaging is unavailable" });
|
|
7376
7376
|
return;
|
|
7377
7377
|
}
|
|
7378
|
-
if (
|
|
7378
|
+
if (j.current) {
|
|
7379
7379
|
yield Oe.current(F);
|
|
7380
7380
|
return;
|
|
7381
7381
|
}
|
|
@@ -7486,7 +7486,7 @@ const Cr = /* @__PURE__ */ Symbol("initialization-cancelled"), qy = 3e4, Yy = ({
|
|
|
7486
7486
|
}), se;
|
|
7487
7487
|
}, [V]), Me = be(() => {
|
|
7488
7488
|
const F = w.current;
|
|
7489
|
-
F && (me.current || (
|
|
7489
|
+
F && (me.current || (j.current = !1, te.current = !1, M(!1), F.disconnect(), m({ type: "SET_CONNECTION_STATUS", status: "connecting" }), ze().catch(() => {
|
|
7490
7490
|
})));
|
|
7491
7491
|
}, [ze]), pt = be(() => {
|
|
7492
7492
|
const F = w.current;
|
|
@@ -7494,7 +7494,7 @@ const Cr = /* @__PURE__ */ Symbol("initialization-cancelled"), qy = 3e4, Yy = ({
|
|
|
7494
7494
|
if (De.current = [], !te.current)
|
|
7495
7495
|
return Te.current += 1, xe.current += 1, F.disconnect(), H.clearPersistedConversation(), m({ type: "RESET" }), Promise.resolve();
|
|
7496
7496
|
const ne = ++xe.current;
|
|
7497
|
-
return
|
|
7497
|
+
return j.current = !1, L(!1), H.clearPersistedConversation(), m({ type: "RESET" }), m({ type: "SET_LOADING", isLoading: !0 }), m({ type: "SET_CONNECTION_STATUS", status: "connecting" }), F.endConversation().then(() => ne !== xe.current || w.current !== F ? null : (F.disconnect(), F.connect().then(() => F))).then((le) => de(null, null, function* () {
|
|
7498
7498
|
if (!le || ne !== xe.current || (yield H.persistContinuationToken(
|
|
7499
7499
|
le,
|
|
7500
7500
|
() => ne === xe.current && w.current === le
|
|
@@ -7542,7 +7542,7 @@ const Cr = /* @__PURE__ */ Symbol("initialization-cancelled"), qy = 3e4, Yy = ({
|
|
|
7542
7542
|
if (De.current = [], !te.current)
|
|
7543
7543
|
return Te.current += 1, xe.current += 1, F.disconnect(), H.clearPersistedConversation(), m({ type: "RESET" }), m({ type: "SET_CONNECTION_STATUS", status: "disconnected" }), Promise.resolve();
|
|
7544
7544
|
const ne = ++xe.current;
|
|
7545
|
-
if (
|
|
7545
|
+
if (j.current = !1, L(!1), X.current)
|
|
7546
7546
|
try {
|
|
7547
7547
|
yield Promise.race([
|
|
7548
7548
|
X.current(q.current.conversationId),
|
|
@@ -7663,7 +7663,7 @@ function Rp(e, t, n) {
|
|
|
7663
7663
|
const r = Ao(e);
|
|
7664
7664
|
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
|
|
7665
7665
|
}
|
|
7666
|
-
function
|
|
7666
|
+
function jy(e, t) {
|
|
7667
7667
|
return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
|
|
7668
7668
|
}
|
|
7669
7669
|
function Qi(e) {
|
|
@@ -7720,9 +7720,9 @@ function Es() {
|
|
|
7720
7720
|
function Oo(e) {
|
|
7721
7721
|
return Object.isFrozen(e);
|
|
7722
7722
|
}
|
|
7723
|
-
var
|
|
7723
|
+
var Wy = {};
|
|
7724
7724
|
function hr(e) {
|
|
7725
|
-
const t =
|
|
7725
|
+
const t = Wy[e];
|
|
7726
7726
|
return t || Yt(0, e), t;
|
|
7727
7727
|
}
|
|
7728
7728
|
var Ui;
|
|
@@ -7866,7 +7866,7 @@ var dc = {
|
|
|
7866
7866
|
const i = ma(Zn(e), t), s = i == null ? void 0 : i[Bt];
|
|
7867
7867
|
if (s && s.base_ === n)
|
|
7868
7868
|
return e.copy_[t] = n, e.assigned_[t] = !1, !0;
|
|
7869
|
-
if (
|
|
7869
|
+
if (jy(n, i) && (n !== void 0 || ru(e.base_, t)))
|
|
7870
7870
|
return !0;
|
|
7871
7871
|
ga(e), au(e);
|
|
7872
7872
|
}
|
|
@@ -8345,15 +8345,15 @@ const i_ = (e) => Array.from(new Set((e != null ? e : []).map((t) => t.trim()).f
|
|
|
8345
8345
|
resetConversationMessage: z,
|
|
8346
8346
|
conversationHistory: B,
|
|
8347
8347
|
messagingConfig: Y,
|
|
8348
|
-
overrides:
|
|
8348
|
+
overrides: W,
|
|
8349
8349
|
overridesUrl: X,
|
|
8350
8350
|
inlineOverrides: ae,
|
|
8351
8351
|
__features: Z,
|
|
8352
|
-
children:
|
|
8352
|
+
children: j
|
|
8353
8353
|
}) => {
|
|
8354
8354
|
const ue = l || S1(), N = re(!1);
|
|
8355
8355
|
return N.current || (N.current = !0, y1({ initialEntry: g, entryType: h, isDevelopment: ue })), /* @__PURE__ */ E(
|
|
8356
|
-
|
|
8356
|
+
Wb,
|
|
8357
8357
|
{
|
|
8358
8358
|
mode: e,
|
|
8359
8359
|
baseUrl: r,
|
|
@@ -8397,7 +8397,7 @@ const i_ = (e) => Array.from(new Set((e != null ? e : []).map((t) => t.trim()).f
|
|
|
8397
8397
|
d_,
|
|
8398
8398
|
{
|
|
8399
8399
|
overridesUrl: X,
|
|
8400
|
-
inlineOverrides: ae ||
|
|
8400
|
+
inlineOverrides: ae || W,
|
|
8401
8401
|
children: /* @__PURE__ */ E(
|
|
8402
8402
|
Yy,
|
|
8403
8403
|
{
|
|
@@ -8410,7 +8410,7 @@ const i_ = (e) => Array.from(new Set((e != null ? e : []).map((t) => t.trim()).f
|
|
|
8410
8410
|
enableLogging: ue,
|
|
8411
8411
|
onProductResult: Y == null ? void 0 : Y.onProductResult,
|
|
8412
8412
|
onEndConversation: Y == null ? void 0 : Y.onEndConversation,
|
|
8413
|
-
children:
|
|
8413
|
+
children: j
|
|
8414
8414
|
}
|
|
8415
8415
|
)
|
|
8416
8416
|
}
|
|
@@ -8573,7 +8573,7 @@ function A_(e) {
|
|
|
8573
8573
|
function N_(e) {
|
|
8574
8574
|
return Be({ attr: { fill: "none", viewBox: "0 0 24 24", strokeWidth: "1.5", stroke: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { strokeLinecap: "round", strokeLinejoin: "round", d: "M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z" }, child: [] }] })(e);
|
|
8575
8575
|
}
|
|
8576
|
-
const
|
|
8576
|
+
const Wt = ({
|
|
8577
8577
|
className: e,
|
|
8578
8578
|
iconUrl: t,
|
|
8579
8579
|
icon: n,
|
|
@@ -8616,7 +8616,7 @@ const jt = ({
|
|
|
8616
8616
|
}
|
|
8617
8617
|
);
|
|
8618
8618
|
return /* @__PURE__ */ E(
|
|
8619
|
-
|
|
8619
|
+
Wt,
|
|
8620
8620
|
{
|
|
8621
8621
|
className: x(t, `${_}-minimized-button`),
|
|
8622
8622
|
ariaLabel: a,
|
|
@@ -8737,7 +8737,7 @@ const mc = ({
|
|
|
8737
8737
|
}) => {
|
|
8738
8738
|
if ((t == null ? void 0 : t.buttonType) === "icon")
|
|
8739
8739
|
return /* @__PURE__ */ E(
|
|
8740
|
-
|
|
8740
|
+
Wt,
|
|
8741
8741
|
{
|
|
8742
8742
|
className: x(
|
|
8743
8743
|
e,
|
|
@@ -8909,7 +8909,7 @@ function ei(e) {
|
|
|
8909
8909
|
}
|
|
8910
8910
|
return new Ji(t, n, e.space);
|
|
8911
8911
|
}
|
|
8912
|
-
const
|
|
8912
|
+
const jp = ei({
|
|
8913
8913
|
properties: {
|
|
8914
8914
|
ariaActiveDescendant: null,
|
|
8915
8915
|
ariaAtomic: Ze,
|
|
@@ -8965,11 +8965,11 @@ const Wp = ei({
|
|
|
8965
8965
|
return t === "role" ? t : "aria-" + t.slice(4).toLowerCase();
|
|
8966
8966
|
}
|
|
8967
8967
|
});
|
|
8968
|
-
function
|
|
8968
|
+
function Wp(e, t) {
|
|
8969
8969
|
return t in e ? e[t] : t;
|
|
8970
8970
|
}
|
|
8971
8971
|
function Xp(e, t) {
|
|
8972
|
-
return
|
|
8972
|
+
return Wp(e, t.toLowerCase());
|
|
8973
8973
|
}
|
|
8974
8974
|
const G_ = ei({
|
|
8975
8975
|
attributes: {
|
|
@@ -9342,7 +9342,7 @@ const G_ = ei({
|
|
|
9342
9342
|
},
|
|
9343
9343
|
space: "html",
|
|
9344
9344
|
transform: Xp
|
|
9345
|
-
}),
|
|
9345
|
+
}), j_ = ei({
|
|
9346
9346
|
attributes: {
|
|
9347
9347
|
accentHeight: "accent-height",
|
|
9348
9348
|
alignmentBaseline: "alignment-baseline",
|
|
@@ -9902,7 +9902,7 @@ const G_ = ei({
|
|
|
9902
9902
|
zoomAndPan: null
|
|
9903
9903
|
},
|
|
9904
9904
|
space: "svg",
|
|
9905
|
-
transform:
|
|
9905
|
+
transform: Wp
|
|
9906
9906
|
}), Kp = ei({
|
|
9907
9907
|
properties: {
|
|
9908
9908
|
xLinkActuate: null,
|
|
@@ -9928,7 +9928,7 @@ const G_ = ei({
|
|
|
9928
9928
|
transform(e, t) {
|
|
9929
9929
|
return "xml:" + t.slice(3).toLowerCase();
|
|
9930
9930
|
}
|
|
9931
|
-
}),
|
|
9931
|
+
}), W_ = {
|
|
9932
9932
|
classId: "classID",
|
|
9933
9933
|
dataType: "datatype",
|
|
9934
9934
|
itemId: "itemID",
|
|
@@ -9973,7 +9973,7 @@ function Q_(e) {
|
|
|
9973
9973
|
function J_(e) {
|
|
9974
9974
|
return e.charAt(1).toUpperCase();
|
|
9975
9975
|
}
|
|
9976
|
-
const Zi = Gp([
|
|
9976
|
+
const Zi = Gp([jp, G_, Kp, Qp, Jp], "html"), qn = Gp([jp, j_, Kp, Qp, Jp], "svg");
|
|
9977
9977
|
function md(e) {
|
|
9978
9978
|
const t = String(e || "").trim();
|
|
9979
9979
|
return t ? t.split(/[ \t\n\r\f]+/g) : [];
|
|
@@ -9993,30 +9993,30 @@ function Z_() {
|
|
|
9993
9993
|
if (!T) return [];
|
|
9994
9994
|
m = m || {};
|
|
9995
9995
|
var y = 1, S = 1;
|
|
9996
|
-
function v(
|
|
9997
|
-
var X =
|
|
9996
|
+
function v(W) {
|
|
9997
|
+
var X = W.match(t);
|
|
9998
9998
|
X && (y += X.length);
|
|
9999
|
-
var ae =
|
|
10000
|
-
S = ~ae ?
|
|
9999
|
+
var ae = W.lastIndexOf(u);
|
|
10000
|
+
S = ~ae ? W.length - ae : S + W.length;
|
|
10001
10001
|
}
|
|
10002
10002
|
function L() {
|
|
10003
|
-
var
|
|
10003
|
+
var W = { line: y, column: S };
|
|
10004
10004
|
return function(X) {
|
|
10005
|
-
return X.position = new C(
|
|
10005
|
+
return X.position = new C(W), H(), X;
|
|
10006
10006
|
};
|
|
10007
10007
|
}
|
|
10008
|
-
function C(
|
|
10009
|
-
this.start =
|
|
10008
|
+
function C(W) {
|
|
10009
|
+
this.start = W, this.end = { line: y, column: S }, this.source = m.source;
|
|
10010
10010
|
}
|
|
10011
10011
|
C.prototype.content = T;
|
|
10012
|
-
function M(
|
|
10012
|
+
function M(W) {
|
|
10013
10013
|
var X = new Error(
|
|
10014
|
-
m.source + ":" + y + ":" + S + ": " +
|
|
10014
|
+
m.source + ":" + y + ":" + S + ": " + W
|
|
10015
10015
|
);
|
|
10016
|
-
if (X.reason =
|
|
10016
|
+
if (X.reason = W, X.filename = m.source, X.line = y, X.column = S, X.source = T, !m.silent) throw X;
|
|
10017
10017
|
}
|
|
10018
|
-
function q(
|
|
10019
|
-
var X =
|
|
10018
|
+
function q(W) {
|
|
10019
|
+
var X = W.exec(T);
|
|
10020
10020
|
if (X) {
|
|
10021
10021
|
var ae = X[0];
|
|
10022
10022
|
return v(ae), T = T.slice(ae.length), X;
|
|
@@ -10025,31 +10025,31 @@ function Z_() {
|
|
|
10025
10025
|
function H() {
|
|
10026
10026
|
q(n);
|
|
10027
10027
|
}
|
|
10028
|
-
function w(
|
|
10028
|
+
function w(W) {
|
|
10029
10029
|
var X;
|
|
10030
|
-
for (
|
|
10031
|
-
X !== !1 &&
|
|
10032
|
-
return
|
|
10030
|
+
for (W = W || []; X = z(); )
|
|
10031
|
+
X !== !1 && W.push(X);
|
|
10032
|
+
return W;
|
|
10033
10033
|
}
|
|
10034
10034
|
function z() {
|
|
10035
|
-
var
|
|
10035
|
+
var W = L();
|
|
10036
10036
|
if (!(c != T.charAt(0) || l != T.charAt(1))) {
|
|
10037
10037
|
for (var X = 2; d != T.charAt(X) && (l != T.charAt(X) || c != T.charAt(X + 1)); )
|
|
10038
10038
|
++X;
|
|
10039
10039
|
if (X += 2, d === T.charAt(X - 1))
|
|
10040
10040
|
return M("End of comment missing");
|
|
10041
10041
|
var ae = T.slice(2, X - 2);
|
|
10042
|
-
return S += 2, v(ae), T = T.slice(X), S += 2,
|
|
10042
|
+
return S += 2, v(ae), T = T.slice(X), S += 2, W({
|
|
10043
10043
|
type: p,
|
|
10044
10044
|
comment: ae
|
|
10045
10045
|
});
|
|
10046
10046
|
}
|
|
10047
10047
|
}
|
|
10048
10048
|
function B() {
|
|
10049
|
-
var
|
|
10049
|
+
var W = L(), X = q(r);
|
|
10050
10050
|
if (X) {
|
|
10051
10051
|
if (z(), !q(i)) return M("property missing ':'");
|
|
10052
|
-
var ae = q(s), Z =
|
|
10052
|
+
var ae = q(s), Z = W({
|
|
10053
10053
|
type: h,
|
|
10054
10054
|
property: b(X[0].replace(e, d)),
|
|
10055
10055
|
value: ae ? b(ae[0].replace(e, d)) : d
|
|
@@ -10058,11 +10058,11 @@ function Z_() {
|
|
|
10058
10058
|
}
|
|
10059
10059
|
}
|
|
10060
10060
|
function Y() {
|
|
10061
|
-
var
|
|
10062
|
-
w(
|
|
10061
|
+
var W = [];
|
|
10062
|
+
w(W);
|
|
10063
10063
|
for (var X; X = B(); )
|
|
10064
|
-
X !== !1 && (
|
|
10065
|
-
return
|
|
10064
|
+
X !== !1 && (W.push(X), w(W));
|
|
10065
|
+
return W;
|
|
10066
10066
|
}
|
|
10067
10067
|
return H(), Y();
|
|
10068
10068
|
}
|
|
@@ -10450,7 +10450,7 @@ function yS(e, t, n) {
|
|
|
10450
10450
|
return e.stylePropertyNameCase === "css" && (i = SS(i)), ["style", i];
|
|
10451
10451
|
}
|
|
10452
10452
|
return [
|
|
10453
|
-
e.elementAttributeNameCase === "react" && r.space ?
|
|
10453
|
+
e.elementAttributeNameCase === "react" && r.space ? W_[r.property] || r.property : r.attribute,
|
|
10454
10454
|
n
|
|
10455
10455
|
];
|
|
10456
10456
|
}
|
|
@@ -10642,7 +10642,7 @@ function u0(e, t) {
|
|
|
10642
10642
|
n > 1114111 ? "�" : String.fromCodePoint(n)
|
|
10643
10643
|
);
|
|
10644
10644
|
}
|
|
10645
|
-
function
|
|
10645
|
+
function jt(e) {
|
|
10646
10646
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
10647
10647
|
}
|
|
10648
10648
|
const Ot = Yn(/[A-Za-z]/), Tt = Yn(/[\dA-Za-z]/), wS = Yn(/[#-'*+\--9=?A-Z^-~]/);
|
|
@@ -11049,13 +11049,13 @@ function GS(e, t, n) {
|
|
|
11049
11049
|
}
|
|
11050
11050
|
const Cd = {
|
|
11051
11051
|
partial: !0,
|
|
11052
|
-
tokenize:
|
|
11052
|
+
tokenize: WS
|
|
11053
11053
|
}, Id = {
|
|
11054
11054
|
concrete: !0,
|
|
11055
11055
|
name: "codeFenced",
|
|
11056
|
-
tokenize:
|
|
11056
|
+
tokenize: jS
|
|
11057
11057
|
};
|
|
11058
|
-
function
|
|
11058
|
+
function jS(e, t, n) {
|
|
11059
11059
|
const r = this, i = {
|
|
11060
11060
|
partial: !0,
|
|
11061
11061
|
tokenize: L
|
|
@@ -11119,14 +11119,14 @@ function WS(e, t, n) {
|
|
|
11119
11119
|
return X === a ? (C.enter("codeFencedFenceSequence"), Y(X)) : q(X);
|
|
11120
11120
|
}
|
|
11121
11121
|
function Y(X) {
|
|
11122
|
-
return X === a ? (H++, C.consume(X), Y) : H >= o ? (C.exit("codeFencedFenceSequence"), we(X) ? ve(C,
|
|
11122
|
+
return X === a ? (H++, C.consume(X), Y) : H >= o ? (C.exit("codeFencedFenceSequence"), we(X) ? ve(C, W, "whitespace")(X) : W(X)) : q(X);
|
|
11123
11123
|
}
|
|
11124
|
-
function
|
|
11124
|
+
function W(X) {
|
|
11125
11125
|
return X === null || pe(X) ? (C.exit("codeFencedFence"), M(X)) : q(X);
|
|
11126
11126
|
}
|
|
11127
11127
|
}
|
|
11128
11128
|
}
|
|
11129
|
-
function
|
|
11129
|
+
function WS(e, t, n) {
|
|
11130
11130
|
const r = this;
|
|
11131
11131
|
return i;
|
|
11132
11132
|
function i(o) {
|
|
@@ -11584,7 +11584,7 @@ function d2(e, t, n) {
|
|
|
11584
11584
|
)(h);
|
|
11585
11585
|
}
|
|
11586
11586
|
function a(h) {
|
|
11587
|
-
return i =
|
|
11587
|
+
return i = jt(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), h === 58 ? (e.enter("definitionMarker"), e.consume(h), e.exit("definitionMarker"), u) : n(h);
|
|
11588
11588
|
}
|
|
11589
11589
|
function u(h) {
|
|
11590
11590
|
return $e(h) ? Pi(e, c)(h) : c(h);
|
|
@@ -11831,9 +11831,9 @@ function A2(e, t, n) {
|
|
|
11831
11831
|
return R === 45 && i === 2 ? (e.consume(R), ae) : R === 60 && i === 1 ? (e.consume(R), Z) : R === 62 && i === 4 ? (e.consume(R), ce) : R === 63 && i === 3 ? (e.consume(R), N) : R === 93 && i === 5 ? (e.consume(R), ue) : pe(R) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(y2, he, Y)(R)) : R === null || pe(R) ? (e.exit("htmlFlowData"), Y(R)) : (e.consume(R), B);
|
|
11832
11832
|
}
|
|
11833
11833
|
function Y(R) {
|
|
11834
|
-
return e.check(_2,
|
|
11834
|
+
return e.check(_2, W, he)(R);
|
|
11835
11835
|
}
|
|
11836
|
-
function
|
|
11836
|
+
function W(R) {
|
|
11837
11837
|
return e.enter("lineEnding"), e.consume(R), e.exit("lineEnding"), X;
|
|
11838
11838
|
}
|
|
11839
11839
|
function X(R) {
|
|
@@ -11843,14 +11843,14 @@ function A2(e, t, n) {
|
|
|
11843
11843
|
return R === 45 ? (e.consume(R), N) : B(R);
|
|
11844
11844
|
}
|
|
11845
11845
|
function Z(R) {
|
|
11846
|
-
return R === 47 ? (e.consume(R), o = "",
|
|
11846
|
+
return R === 47 ? (e.consume(R), o = "", j) : B(R);
|
|
11847
11847
|
}
|
|
11848
|
-
function
|
|
11848
|
+
function j(R) {
|
|
11849
11849
|
if (R === 62) {
|
|
11850
11850
|
const me = o.toLowerCase();
|
|
11851
11851
|
return wd.includes(me) ? (e.consume(R), ce) : B(R);
|
|
11852
11852
|
}
|
|
11853
|
-
return Ot(R) && o.length < 8 ? (e.consume(R), o += String.fromCharCode(R),
|
|
11853
|
+
return Ot(R) && o.length < 8 ? (e.consume(R), o += String.fromCharCode(R), j) : B(R);
|
|
11854
11854
|
}
|
|
11855
11855
|
function ue(R) {
|
|
11856
11856
|
return R === 93 ? (e.consume(R), N) : B(R);
|
|
@@ -11954,13 +11954,13 @@ function C2(e, t, n) {
|
|
|
11954
11954
|
return N === 61 ? (e.consume(N), B) : pe(N) ? (o = z, Z(N)) : we(N) ? (e.consume(N), z) : H(N);
|
|
11955
11955
|
}
|
|
11956
11956
|
function B(N) {
|
|
11957
|
-
return N === null || N === 60 || N === 61 || N === 62 || N === 96 ? n(N) : N === 34 || N === 39 ? (e.consume(N), i = N, Y) : pe(N) ? (o = B, Z(N)) : we(N) ? (e.consume(N), B) : (e.consume(N),
|
|
11957
|
+
return N === null || N === 60 || N === 61 || N === 62 || N === 96 ? n(N) : N === 34 || N === 39 ? (e.consume(N), i = N, Y) : pe(N) ? (o = B, Z(N)) : we(N) ? (e.consume(N), B) : (e.consume(N), W);
|
|
11958
11958
|
}
|
|
11959
11959
|
function Y(N) {
|
|
11960
11960
|
return N === i ? (e.consume(N), i = void 0, X) : N === null ? n(N) : pe(N) ? (o = Y, Z(N)) : (e.consume(N), Y);
|
|
11961
11961
|
}
|
|
11962
|
-
function
|
|
11963
|
-
return N === null || N === 34 || N === 39 || N === 60 || N === 61 || N === 96 ? n(N) : N === 47 || N === 62 || $e(N) ? H(N) : (e.consume(N),
|
|
11962
|
+
function W(N) {
|
|
11963
|
+
return N === null || N === 34 || N === 39 || N === 60 || N === 61 || N === 96 ? n(N) : N === 47 || N === 62 || $e(N) ? H(N) : (e.consume(N), W);
|
|
11964
11964
|
}
|
|
11965
11965
|
function X(N) {
|
|
11966
11966
|
return N === 47 || N === 62 || $e(N) ? H(N) : n(N);
|
|
@@ -11969,9 +11969,9 @@ function C2(e, t, n) {
|
|
|
11969
11969
|
return N === 62 ? (e.consume(N), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(N);
|
|
11970
11970
|
}
|
|
11971
11971
|
function Z(N) {
|
|
11972
|
-
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(N), e.exit("lineEnding"),
|
|
11972
|
+
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(N), e.exit("lineEnding"), j;
|
|
11973
11973
|
}
|
|
11974
|
-
function
|
|
11974
|
+
function j(N) {
|
|
11975
11975
|
return we(N) ? ve(e, ue, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(N) : ue(N);
|
|
11976
11976
|
}
|
|
11977
11977
|
function ue(N) {
|
|
@@ -12040,7 +12040,7 @@ function k2(e, t, n) {
|
|
|
12040
12040
|
}
|
|
12041
12041
|
return a;
|
|
12042
12042
|
function a(p) {
|
|
12043
|
-
return s ? s._inactive ? d(p) : (o = r.parser.defined.includes(
|
|
12043
|
+
return s ? s._inactive ? d(p) : (o = r.parser.defined.includes(jt(r.sliceSerialize({
|
|
12044
12044
|
start: s.end,
|
|
12045
12045
|
end: r.now()
|
|
12046
12046
|
}))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(p), e.exit("labelMarker"), e.exit("labelEnd"), u) : n(p);
|
|
@@ -12092,7 +12092,7 @@ function D2(e, t, n) {
|
|
|
12092
12092
|
return p0.call(r, e, s, o, "reference", "referenceMarker", "referenceString")(a);
|
|
12093
12093
|
}
|
|
12094
12094
|
function s(a) {
|
|
12095
|
-
return r.parser.defined.includes(
|
|
12095
|
+
return r.parser.defined.includes(jt(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1))) ? t(a) : n(a);
|
|
12096
12096
|
}
|
|
12097
12097
|
function o(a) {
|
|
12098
12098
|
return n(a);
|
|
@@ -12174,7 +12174,7 @@ const Ct = {
|
|
|
12174
12174
|
continuation: {
|
|
12175
12175
|
tokenize: G2
|
|
12176
12176
|
},
|
|
12177
|
-
exit:
|
|
12177
|
+
exit: W2,
|
|
12178
12178
|
name: "list",
|
|
12179
12179
|
tokenize: Y2
|
|
12180
12180
|
}, V2 = {
|
|
@@ -12182,7 +12182,7 @@ const Ct = {
|
|
|
12182
12182
|
tokenize: X2
|
|
12183
12183
|
}, q2 = {
|
|
12184
12184
|
partial: !0,
|
|
12185
|
-
tokenize:
|
|
12185
|
+
tokenize: j2
|
|
12186
12186
|
};
|
|
12187
12187
|
function Y2(e, t, n) {
|
|
12188
12188
|
const r = this, i = r.events[r.events.length - 1];
|
|
@@ -12234,7 +12234,7 @@ function G2(e, t, n) {
|
|
|
12234
12234
|
return r.containerState._closeFlow = !0, r.interrupt = void 0, ve(e, e.attempt(Ct, t, n), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a);
|
|
12235
12235
|
}
|
|
12236
12236
|
}
|
|
12237
|
-
function
|
|
12237
|
+
function j2(e, t, n) {
|
|
12238
12238
|
const r = this;
|
|
12239
12239
|
return ve(e, i, "listItemIndent", r.containerState.size + 1);
|
|
12240
12240
|
function i(s) {
|
|
@@ -12242,7 +12242,7 @@ function W2(e, t, n) {
|
|
|
12242
12242
|
return o && o[1].type === "listItemIndent" && o[2].sliceSerialize(o[1], !0).length === r.containerState.size ? t(s) : n(s);
|
|
12243
12243
|
}
|
|
12244
12244
|
}
|
|
12245
|
-
function
|
|
12245
|
+
function W2(e) {
|
|
12246
12246
|
e.exit(this.containerState.type);
|
|
12247
12247
|
}
|
|
12248
12248
|
function X2(e, t, n) {
|
|
@@ -12523,14 +12523,14 @@ function pA(e, t, n) {
|
|
|
12523
12523
|
_bufferIndex: z,
|
|
12524
12524
|
_index: B,
|
|
12525
12525
|
line: Y,
|
|
12526
|
-
column:
|
|
12526
|
+
column: W,
|
|
12527
12527
|
offset: X
|
|
12528
12528
|
} = r;
|
|
12529
12529
|
return {
|
|
12530
12530
|
_bufferIndex: z,
|
|
12531
12531
|
_index: B,
|
|
12532
12532
|
line: Y,
|
|
12533
|
-
column:
|
|
12533
|
+
column: W,
|
|
12534
12534
|
offset: X
|
|
12535
12535
|
};
|
|
12536
12536
|
}
|
|
@@ -12573,18 +12573,18 @@ function pA(e, t, n) {
|
|
|
12573
12573
|
}
|
|
12574
12574
|
function M(z, B) {
|
|
12575
12575
|
return Y;
|
|
12576
|
-
function Y(
|
|
12577
|
-
let Z,
|
|
12578
|
-
return Array.isArray(
|
|
12576
|
+
function Y(W, X, ae) {
|
|
12577
|
+
let Z, j, ue, N;
|
|
12578
|
+
return Array.isArray(W) ? (
|
|
12579
12579
|
/* c8 ignore next 1 */
|
|
12580
|
-
he(
|
|
12581
|
-
) : "tokenize" in
|
|
12580
|
+
he(W)
|
|
12581
|
+
) : "tokenize" in W ? (
|
|
12582
12582
|
// Looks like a construct.
|
|
12583
12583
|
he([
|
|
12584
12584
|
/** @type {Construct} */
|
|
12585
|
-
|
|
12585
|
+
W
|
|
12586
12586
|
])
|
|
12587
|
-
) : ce(
|
|
12587
|
+
) : ce(W);
|
|
12588
12588
|
function ce(te) {
|
|
12589
12589
|
return Te;
|
|
12590
12590
|
function Te(xe) {
|
|
@@ -12598,7 +12598,7 @@ function pA(e, t, n) {
|
|
|
12598
12598
|
}
|
|
12599
12599
|
}
|
|
12600
12600
|
function he(te) {
|
|
12601
|
-
return Z = te,
|
|
12601
|
+
return Z = te, j = 0, te.length === 0 ? ae : R(te[j]);
|
|
12602
12602
|
}
|
|
12603
12603
|
function R(te) {
|
|
12604
12604
|
return Te;
|
|
@@ -12618,7 +12618,7 @@ function pA(e, t, n) {
|
|
|
12618
12618
|
return z(ue, N), X;
|
|
12619
12619
|
}
|
|
12620
12620
|
function Ge(te) {
|
|
12621
|
-
return N.restore(), ++
|
|
12621
|
+
return N.restore(), ++j < Z.length ? R(Z[j]) : ae;
|
|
12622
12622
|
}
|
|
12623
12623
|
}
|
|
12624
12624
|
}
|
|
@@ -12626,13 +12626,13 @@ function pA(e, t, n) {
|
|
|
12626
12626
|
z.resolveAll && !s.includes(z) && s.push(z), z.resolve && Dt(c.events, B, c.events.length - B, z.resolve(c.events.slice(B), c)), z.resolveTo && (c.events = z.resolveTo(c.events, c));
|
|
12627
12627
|
}
|
|
12628
12628
|
function H() {
|
|
12629
|
-
const z = g(), B = c.previous, Y = c.currentConstruct,
|
|
12629
|
+
const z = g(), B = c.previous, Y = c.currentConstruct, W = c.events.length, X = Array.from(a);
|
|
12630
12630
|
return {
|
|
12631
|
-
from:
|
|
12631
|
+
from: W,
|
|
12632
12632
|
restore: ae
|
|
12633
12633
|
};
|
|
12634
12634
|
function ae() {
|
|
12635
|
-
r = z, c.previous = B, c.currentConstruct = Y, c.events.length =
|
|
12635
|
+
r = z, c.previous = B, c.currentConstruct = Y, c.events.length = W, a = X, w();
|
|
12636
12636
|
}
|
|
12637
12637
|
}
|
|
12638
12638
|
function w() {
|
|
@@ -12800,9 +12800,9 @@ function NA(e) {
|
|
|
12800
12800
|
emphasis: s(Je),
|
|
12801
12801
|
hardBreakEscape: s(ge),
|
|
12802
12802
|
hardBreakTrailing: s(ge),
|
|
12803
|
-
htmlFlow: s(
|
|
12803
|
+
htmlFlow: s(je, o),
|
|
12804
12804
|
htmlFlowData: H,
|
|
12805
|
-
htmlText: s(
|
|
12805
|
+
htmlText: s(je, o),
|
|
12806
12806
|
htmlTextData: H,
|
|
12807
12807
|
image: s(dt),
|
|
12808
12808
|
label: o,
|
|
@@ -12850,11 +12850,11 @@ function NA(e) {
|
|
|
12850
12850
|
hardBreakTrailing: u(B),
|
|
12851
12851
|
htmlFlow: u(Y),
|
|
12852
12852
|
htmlFlowData: w,
|
|
12853
|
-
htmlText: u(
|
|
12853
|
+
htmlText: u(W),
|
|
12854
12854
|
htmlTextData: w,
|
|
12855
12855
|
image: u(Z),
|
|
12856
12856
|
label: ue,
|
|
12857
|
-
labelText:
|
|
12857
|
+
labelText: j,
|
|
12858
12858
|
lineEnding: z,
|
|
12859
12859
|
link: u(ae),
|
|
12860
12860
|
listItem: u(),
|
|
@@ -13042,7 +13042,7 @@ function NA(e) {
|
|
|
13042
13042
|
}
|
|
13043
13043
|
function y(V) {
|
|
13044
13044
|
const ie = this.resume(), ye = this.stack[this.stack.length - 1];
|
|
13045
|
-
ye.label = ie, ye.identifier =
|
|
13045
|
+
ye.label = ie, ye.identifier = jt(this.sliceSerialize(V)).toLowerCase();
|
|
13046
13046
|
}
|
|
13047
13047
|
function S() {
|
|
13048
13048
|
const V = this.resume(), ie = this.stack[this.stack.length - 1];
|
|
@@ -13098,7 +13098,7 @@ function NA(e) {
|
|
|
13098
13098
|
const V = this.resume(), ie = this.stack[this.stack.length - 1];
|
|
13099
13099
|
ie.value = V;
|
|
13100
13100
|
}
|
|
13101
|
-
function
|
|
13101
|
+
function W() {
|
|
13102
13102
|
const V = this.resume(), ie = this.stack[this.stack.length - 1];
|
|
13103
13103
|
ie.value = V;
|
|
13104
13104
|
}
|
|
@@ -13124,9 +13124,9 @@ function NA(e) {
|
|
|
13124
13124
|
delete V.identifier, delete V.label;
|
|
13125
13125
|
this.data.referenceType = void 0;
|
|
13126
13126
|
}
|
|
13127
|
-
function
|
|
13127
|
+
function j(V) {
|
|
13128
13128
|
const ie = this.sliceSerialize(V), ye = this.stack[this.stack.length - 2];
|
|
13129
|
-
ye.label = _A(ie), ye.identifier =
|
|
13129
|
+
ye.label = _A(ie), ye.identifier = jt(ie).toLowerCase();
|
|
13130
13130
|
}
|
|
13131
13131
|
function ue() {
|
|
13132
13132
|
const V = this.stack[this.stack.length - 1], ie = this.resume(), ye = this.stack[this.stack.length - 1];
|
|
@@ -13152,7 +13152,7 @@ function NA(e) {
|
|
|
13152
13152
|
}
|
|
13153
13153
|
function me(V) {
|
|
13154
13154
|
const ie = this.resume(), ye = this.stack[this.stack.length - 1];
|
|
13155
|
-
ye.label = ie, ye.identifier =
|
|
13155
|
+
ye.label = ie, ye.identifier = jt(this.sliceSerialize(V)).toLowerCase(), this.data.referenceType = "full";
|
|
13156
13156
|
}
|
|
13157
13157
|
function Ge(V) {
|
|
13158
13158
|
this.data.characterReferenceType = V.type;
|
|
@@ -13226,7 +13226,7 @@ function NA(e) {
|
|
|
13226
13226
|
type: "break"
|
|
13227
13227
|
};
|
|
13228
13228
|
}
|
|
13229
|
-
function
|
|
13229
|
+
function je() {
|
|
13230
13230
|
return {
|
|
13231
13231
|
type: "html",
|
|
13232
13232
|
value: ""
|
|
@@ -13602,7 +13602,7 @@ function GA(e, t) {
|
|
|
13602
13602
|
};
|
|
13603
13603
|
return e.patch(t, s), e.applyData(t, s);
|
|
13604
13604
|
}
|
|
13605
|
-
function
|
|
13605
|
+
function jA(e, t, n) {
|
|
13606
13606
|
const r = n ? n.children : void 0, s = (r ? r.indexOf(t) : 1) === 0 ? "th" : "td", o = n && n.type === "table" ? n.align : void 0, a = o ? o.length : t.children.length;
|
|
13607
13607
|
let u = -1;
|
|
13608
13608
|
const c = [];
|
|
@@ -13620,7 +13620,7 @@ function WA(e, t, n) {
|
|
|
13620
13620
|
};
|
|
13621
13621
|
return e.patch(t, l), e.applyData(t, l);
|
|
13622
13622
|
}
|
|
13623
|
-
function
|
|
13623
|
+
function WA(e, t) {
|
|
13624
13624
|
const n = {
|
|
13625
13625
|
type: "element",
|
|
13626
13626
|
tagName: "td",
|
|
@@ -13690,8 +13690,8 @@ const JA = {
|
|
|
13690
13690
|
root: qA,
|
|
13691
13691
|
strong: YA,
|
|
13692
13692
|
table: GA,
|
|
13693
|
-
tableCell:
|
|
13694
|
-
tableRow:
|
|
13693
|
+
tableCell: WA,
|
|
13694
|
+
tableRow: jA,
|
|
13695
13695
|
text: KA,
|
|
13696
13696
|
thematicBreak: QA,
|
|
13697
13697
|
toml: Ts,
|
|
@@ -15432,7 +15432,7 @@ function zN(e) {
|
|
|
15432
15432
|
function VN(e) {
|
|
15433
15433
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
15434
15434
|
}
|
|
15435
|
-
const qN = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", Gd = [],
|
|
15435
|
+
const qN = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", Gd = [], jd = { allowDangerousHtml: !0 }, YN = /^(https?|ircs?|mailto|xmpp)$/i, GN = [
|
|
15436
15436
|
{ from: "astPlugins", id: "remove-buggy-html-in-markdown-parser" },
|
|
15437
15437
|
{ from: "allowDangerousHtml", id: "remove-buggy-html-in-markdown-parser" },
|
|
15438
15438
|
{
|
|
@@ -15467,14 +15467,14 @@ const qN = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md",
|
|
|
15467
15467
|
{ from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
|
|
15468
15468
|
];
|
|
15469
15469
|
function w0(e) {
|
|
15470
|
-
const t =
|
|
15470
|
+
const t = jN(e), n = WN(e);
|
|
15471
15471
|
return XN(t.runSync(t.parse(n), n), e);
|
|
15472
15472
|
}
|
|
15473
|
-
function
|
|
15474
|
-
const t = e.rehypePlugins || Gd, n = e.remarkPlugins || Gd, r = e.remarkRehypeOptions ? I(I({}, e.remarkRehypeOptions),
|
|
15473
|
+
function jN(e) {
|
|
15474
|
+
const t = e.rehypePlugins || Gd, n = e.remarkPlugins || Gd, r = e.remarkRehypeOptions ? I(I({}, e.remarkRehypeOptions), jd) : jd;
|
|
15475
15475
|
return HN().use(xA).use(n).use(SN, r).use(t);
|
|
15476
15476
|
}
|
|
15477
|
-
function
|
|
15477
|
+
function WN(e) {
|
|
15478
15478
|
const t = e.children || "", n = new I0();
|
|
15479
15479
|
return typeof t == "string" && (n.value = t), n;
|
|
15480
15480
|
}
|
|
@@ -15518,13 +15518,13 @@ function KN(e) {
|
|
|
15518
15518
|
YN.test(e.slice(0, t)) ? e : ""
|
|
15519
15519
|
);
|
|
15520
15520
|
}
|
|
15521
|
-
const
|
|
15521
|
+
const Wd = /[#.]/g;
|
|
15522
15522
|
function QN(e, t) {
|
|
15523
15523
|
const n = e || "", r = {};
|
|
15524
15524
|
let i = 0, s, o;
|
|
15525
15525
|
for (; i < n.length; ) {
|
|
15526
|
-
|
|
15527
|
-
const a =
|
|
15526
|
+
Wd.lastIndex = i;
|
|
15527
|
+
const a = Wd.exec(n), u = n.slice(i, a ? a.index : n.length);
|
|
15528
15528
|
u && (s ? s === "#" ? r.id = u : Array.isArray(r.className) ? r.className.push(u) : r.className = [u] : o = u, i += u.length), a && (s = a[0], i++);
|
|
15529
15529
|
}
|
|
15530
15530
|
return {
|
|
@@ -18631,7 +18631,7 @@ const H0 = /* @__PURE__ */ new Set([f.DD, f.DT, f.LI, f.OPTGROUP, f.OPTION, f.P,
|
|
|
18631
18631
|
f.TEMPLATE,
|
|
18632
18632
|
f.TH
|
|
18633
18633
|
]), $O = /* @__PURE__ */ new Set([...ro, f.OL, f.UL]), zO = /* @__PURE__ */ new Set([...ro, f.BUTTON]), nf = /* @__PURE__ */ new Set([f.ANNOTATION_XML, f.MI, f.MN, f.MO, f.MS, f.MTEXT]), rf = /* @__PURE__ */ new Set([f.DESC, f.FOREIGN_OBJECT, f.TITLE]), VO = /* @__PURE__ */ new Set([f.TR, f.TEMPLATE, f.HTML]), qO = /* @__PURE__ */ new Set([f.TBODY, f.TFOOT, f.THEAD, f.TEMPLATE, f.HTML]), YO = /* @__PURE__ */ new Set([f.TABLE, f.TEMPLATE, f.HTML]), GO = /* @__PURE__ */ new Set([f.TD, f.TH]);
|
|
18634
|
-
class
|
|
18634
|
+
class jO {
|
|
18635
18635
|
get currentTmplContentOrNode() {
|
|
18636
18636
|
return this._isInTemplate() ? this.treeAdapter.getTemplateContent(this.current) : this.current;
|
|
18637
18637
|
}
|
|
@@ -18852,7 +18852,7 @@ var un;
|
|
|
18852
18852
|
e[e.Marker = 0] = "Marker", e[e.Element = 1] = "Element";
|
|
18853
18853
|
})(un || (un = {}));
|
|
18854
18854
|
const sf = { type: un.Marker };
|
|
18855
|
-
class
|
|
18855
|
+
class WO {
|
|
18856
18856
|
constructor(t) {
|
|
18857
18857
|
this.treeAdapter = t, this.entries = [], this.bookmark = null;
|
|
18858
18858
|
}
|
|
@@ -19397,7 +19397,7 @@ const gx = {
|
|
|
19397
19397
|
};
|
|
19398
19398
|
class cf {
|
|
19399
19399
|
constructor(t, n, r = null, i = null) {
|
|
19400
|
-
this.fragmentContext = r, this.scriptHandler = i, this.currentToken = null, this.stopped = !1, this.insertionMode = P.INITIAL, this.originalInsertionMode = P.INITIAL, this.headElement = null, this.formElement = null, this.currentNotInHTML = !1, this.tmplInsertionModeStack = [], this.pendingCharacterTokens = [], this.hasNonWhitespacePendingCharacterToken = !1, this.framesetOk = !0, this.skipNextNewLine = !1, this.fosterParentingEnabled = !1, this.options = I(I({}, uf), t), this.treeAdapter = this.options.treeAdapter, this.onParseError = this.options.onParseError, this.onParseError && (this.options.sourceCodeLocationInfo = !0), this.document = n != null ? n : this.treeAdapter.createDocument(), this.tokenizer = new HO(this.options, this), this.activeFormattingElements = new
|
|
19400
|
+
this.fragmentContext = r, this.scriptHandler = i, this.currentToken = null, this.stopped = !1, this.insertionMode = P.INITIAL, this.originalInsertionMode = P.INITIAL, this.headElement = null, this.formElement = null, this.currentNotInHTML = !1, this.tmplInsertionModeStack = [], this.pendingCharacterTokens = [], this.hasNonWhitespacePendingCharacterToken = !1, this.framesetOk = !0, this.skipNextNewLine = !1, this.fosterParentingEnabled = !1, this.options = I(I({}, uf), t), this.treeAdapter = this.options.treeAdapter, this.onParseError = this.options.onParseError, this.onParseError && (this.options.sourceCodeLocationInfo = !0), this.document = n != null ? n : this.treeAdapter.createDocument(), this.tokenizer = new HO(this.options, this), this.activeFormattingElements = new WO(this.treeAdapter), this.fragmentContextID = r ? ri(this.treeAdapter.getTagName(r)) : f.UNKNOWN, this._setContextModes(r != null ? r : this.document, this.fragmentContextID), this.openElements = new jO(this.document, this.treeAdapter, this);
|
|
19401
19401
|
}
|
|
19402
19402
|
// API
|
|
19403
19403
|
static parse(t, n) {
|
|
@@ -19821,7 +19821,7 @@ class cf {
|
|
|
19821
19821
|
case P.IN_CAPTION:
|
|
19822
19822
|
case P.IN_CELL:
|
|
19823
19823
|
case P.IN_TEMPLATE: {
|
|
19824
|
-
|
|
19824
|
+
W0(this, t);
|
|
19825
19825
|
break;
|
|
19826
19826
|
}
|
|
19827
19827
|
case P.TEXT:
|
|
@@ -19988,7 +19988,7 @@ class cf {
|
|
|
19988
19988
|
* @protected
|
|
19989
19989
|
*/
|
|
19990
19990
|
_processStartTag(t) {
|
|
19991
|
-
this.shouldProcessStartTagTokenInForeignContent(t) ?
|
|
19991
|
+
this.shouldProcessStartTagTokenInForeignContent(t) ? jC(this, t) : this._startTagOutsideForeignContent(t);
|
|
19992
19992
|
}
|
|
19993
19993
|
/** @protected */
|
|
19994
19994
|
_startTagOutsideForeignContent(t) {
|
|
@@ -20022,7 +20022,7 @@ class cf {
|
|
|
20022
20022
|
break;
|
|
20023
20023
|
}
|
|
20024
20024
|
case P.IN_TABLE: {
|
|
20025
|
-
|
|
20025
|
+
jr(this, t);
|
|
20026
20026
|
break;
|
|
20027
20027
|
}
|
|
20028
20028
|
case P.IN_TABLE_TEXT: {
|
|
@@ -20085,7 +20085,7 @@ class cf {
|
|
|
20085
20085
|
}
|
|
20086
20086
|
/** @internal */
|
|
20087
20087
|
onEndTag(t) {
|
|
20088
|
-
this.skipNextNewLine = !1, this.currentToken = t, this.currentNotInHTML ?
|
|
20088
|
+
this.skipNextNewLine = !1, this.currentToken = t, this.currentNotInHTML ? WC(this, t) : this._endTagOutsideForeignContent(t);
|
|
20089
20089
|
}
|
|
20090
20090
|
/** @protected */
|
|
20091
20091
|
_endTagOutsideForeignContent(t) {
|
|
@@ -20272,7 +20272,7 @@ class cf {
|
|
|
20272
20272
|
case P.AFTER_BODY:
|
|
20273
20273
|
case P.AFTER_AFTER_BODY:
|
|
20274
20274
|
case P.AFTER_AFTER_FRAMESET: {
|
|
20275
|
-
|
|
20275
|
+
j0(this, t);
|
|
20276
20276
|
break;
|
|
20277
20277
|
}
|
|
20278
20278
|
case P.IN_TABLE:
|
|
@@ -20571,11 +20571,11 @@ function Mi(e, t) {
|
|
|
20571
20571
|
function Lo(e, t) {
|
|
20572
20572
|
switch (t.type) {
|
|
20573
20573
|
case Ie.CHARACTER: {
|
|
20574
|
-
|
|
20574
|
+
W0(e, t);
|
|
20575
20575
|
break;
|
|
20576
20576
|
}
|
|
20577
20577
|
case Ie.WHITESPACE_CHARACTER: {
|
|
20578
|
-
|
|
20578
|
+
j0(e, t);
|
|
20579
20579
|
break;
|
|
20580
20580
|
}
|
|
20581
20581
|
case Ie.COMMENT: {
|
|
@@ -20596,10 +20596,10 @@ function Lo(e, t) {
|
|
|
20596
20596
|
}
|
|
20597
20597
|
}
|
|
20598
20598
|
}
|
|
20599
|
-
function
|
|
20599
|
+
function j0(e, t) {
|
|
20600
20600
|
e._reconstructActiveFormattingElements(), e._insertCharacters(t);
|
|
20601
20601
|
}
|
|
20602
|
-
function
|
|
20602
|
+
function W0(e, t) {
|
|
20603
20603
|
e._reconstructActiveFormattingElements(), e._insertCharacters(t), e.framesetOk = !1;
|
|
20604
20604
|
}
|
|
20605
20605
|
function Dx(e, t) {
|
|
@@ -20653,10 +20653,10 @@ function Yx(e, t) {
|
|
|
20653
20653
|
function Gx(e, t) {
|
|
20654
20654
|
e._reconstructActiveFormattingElements(), e._insertElement(t, K.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
|
|
20655
20655
|
}
|
|
20656
|
-
function
|
|
20656
|
+
function jx(e, t) {
|
|
20657
20657
|
e._reconstructActiveFormattingElements(), e.openElements.hasInScope(f.NOBR) && (Rc(e, t), e._reconstructActiveFormattingElements()), e._insertElement(t, K.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
|
|
20658
20658
|
}
|
|
20659
|
-
function
|
|
20659
|
+
function Wx(e, t) {
|
|
20660
20660
|
e._reconstructActiveFormattingElements(), e._insertElement(t, K.HTML), e.activeFormattingElements.insertMarker(), e.framesetOk = !1;
|
|
20661
20661
|
}
|
|
20662
20662
|
function Xx(e, t) {
|
|
@@ -20839,7 +20839,7 @@ function _t(e, t) {
|
|
|
20839
20839
|
break;
|
|
20840
20840
|
}
|
|
20841
20841
|
case f.NOBR: {
|
|
20842
|
-
|
|
20842
|
+
jx(e, t);
|
|
20843
20843
|
break;
|
|
20844
20844
|
}
|
|
20845
20845
|
case f.MATH: {
|
|
@@ -20871,7 +20871,7 @@ function _t(e, t) {
|
|
|
20871
20871
|
case f.APPLET:
|
|
20872
20872
|
case f.OBJECT:
|
|
20873
20873
|
case f.MARQUEE: {
|
|
20874
|
-
|
|
20874
|
+
Wx(e, t);
|
|
20875
20875
|
break;
|
|
20876
20876
|
}
|
|
20877
20877
|
case f.IFRAME: {
|
|
@@ -21123,7 +21123,7 @@ function CC(e, t) {
|
|
|
21123
21123
|
function IC(e, t) {
|
|
21124
21124
|
!e.formElement && e.openElements.tmplCount === 0 && (e._insertElement(t, K.HTML), e.formElement = e.openElements.current, e.openElements.pop());
|
|
21125
21125
|
}
|
|
21126
|
-
function
|
|
21126
|
+
function jr(e, t) {
|
|
21127
21127
|
switch (t.tagID) {
|
|
21128
21128
|
case f.TD:
|
|
21129
21129
|
case f.TH:
|
|
@@ -21220,7 +21220,7 @@ function yi(e, t) {
|
|
|
21220
21220
|
const tm = /* @__PURE__ */ new Set([f.CAPTION, f.COL, f.COLGROUP, f.TBODY, f.TD, f.TFOOT, f.TH, f.THEAD, f.TR]);
|
|
21221
21221
|
function wC(e, t) {
|
|
21222
21222
|
const n = t.tagID;
|
|
21223
|
-
tm.has(n) ? e.openElements.hasInTableScope(f.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(f.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = P.IN_TABLE,
|
|
21223
|
+
tm.has(n) ? e.openElements.hasInTableScope(f.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(f.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = P.IN_TABLE, jr(e, t)) : _t(e, t);
|
|
21224
21224
|
}
|
|
21225
21225
|
function PC(e, t) {
|
|
21226
21226
|
const n = t.tagID;
|
|
@@ -21299,11 +21299,11 @@ function Mo(e, t) {
|
|
|
21299
21299
|
case f.TBODY:
|
|
21300
21300
|
case f.TFOOT:
|
|
21301
21301
|
case f.THEAD: {
|
|
21302
|
-
e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = P.IN_TABLE,
|
|
21302
|
+
e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = P.IN_TABLE, jr(e, t));
|
|
21303
21303
|
break;
|
|
21304
21304
|
}
|
|
21305
21305
|
default:
|
|
21306
|
-
|
|
21306
|
+
jr(e, t);
|
|
21307
21307
|
}
|
|
21308
21308
|
}
|
|
21309
21309
|
function Su(e, t) {
|
|
@@ -21350,7 +21350,7 @@ function Bo(e, t) {
|
|
|
21350
21350
|
break;
|
|
21351
21351
|
}
|
|
21352
21352
|
default:
|
|
21353
|
-
|
|
21353
|
+
jr(e, t);
|
|
21354
21354
|
}
|
|
21355
21355
|
}
|
|
21356
21356
|
function nm(e, t) {
|
|
@@ -21493,7 +21493,7 @@ function MC(e, t) {
|
|
|
21493
21493
|
case f.TBODY:
|
|
21494
21494
|
case f.TFOOT:
|
|
21495
21495
|
case f.THEAD: {
|
|
21496
|
-
e.tmplInsertionModeStack[0] = P.IN_TABLE, e.insertionMode = P.IN_TABLE,
|
|
21496
|
+
e.tmplInsertionModeStack[0] = P.IN_TABLE, e.insertionMode = P.IN_TABLE, jr(e, t);
|
|
21497
21497
|
break;
|
|
21498
21498
|
}
|
|
21499
21499
|
case f.COL: {
|
|
@@ -21602,7 +21602,7 @@ function am(e) {
|
|
|
21602
21602
|
for (; e.treeAdapter.getNamespaceURI(e.openElements.current) !== K.HTML && e.openElements.currentTagId !== void 0 && !e._isIntegrationPoint(e.openElements.currentTagId, e.openElements.current); )
|
|
21603
21603
|
e.openElements.pop();
|
|
21604
21604
|
}
|
|
21605
|
-
function
|
|
21605
|
+
function jC(e, t) {
|
|
21606
21606
|
if (ux(t))
|
|
21607
21607
|
am(e), e._startTagOutsideForeignContent(t);
|
|
21608
21608
|
else {
|
|
@@ -21610,7 +21610,7 @@ function WC(e, t) {
|
|
|
21610
21610
|
r === K.MATHML ? q0(t) : r === K.SVG && (cx(t), Y0(t)), Pc(t), t.selfClosing ? e._appendElement(t, r) : e._insertElement(t, r), t.ackSelfClosing = !0;
|
|
21611
21611
|
}
|
|
21612
21612
|
}
|
|
21613
|
-
function
|
|
21613
|
+
function WC(e, t) {
|
|
21614
21614
|
if (t.tagID === f.P || t.tagID === f.BR) {
|
|
21615
21615
|
am(e), e._endTagOutsideForeignContent(t);
|
|
21616
21616
|
return;
|
|
@@ -22351,7 +22351,7 @@ const gm = ({
|
|
|
22351
22351
|
}
|
|
22352
22352
|
),
|
|
22353
22353
|
l && /* @__PURE__ */ E(
|
|
22354
|
-
|
|
22354
|
+
Wt,
|
|
22355
22355
|
{
|
|
22356
22356
|
className: x(u, `${_}-escalate-btn`),
|
|
22357
22357
|
ariaLabel: "Connect to a human agent",
|
|
@@ -22516,7 +22516,7 @@ function qI(e, t, n) {
|
|
|
22516
22516
|
throw new Error(`[zag-js${` > ${n}`}] missing required props: ${r.join(", ")}`);
|
|
22517
22517
|
}
|
|
22518
22518
|
var YI = Object.defineProperty, GI = (e, t, n) => t in e ? YI(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, va = (e, t, n) => GI(e, typeof t != "symbol" ? t + "" : t, n), Om = () => {
|
|
22519
|
-
}, Fo = (e) => typeof e == "object" && e !== null, kr = (e) => e ? "" : void 0, xm = (e) => e ? "true" : void 0,
|
|
22519
|
+
}, Fo = (e) => typeof e == "object" && e !== null, kr = (e) => e ? "" : void 0, xm = (e) => e ? "true" : void 0, jI = 1, WI = 9, XI = 11, lt = (e) => Fo(e) && e.nodeType === jI && typeof e.nodeName == "string", Uo = (e) => Fo(e) && e.nodeType === WI, KI = (e) => Fo(e) && e === e.window, Cm = (e) => lt(e) ? e.localName || "" : "#document";
|
|
22520
22520
|
function QI(e) {
|
|
22521
22521
|
return ["html", "body", "#document"].includes(Cm(e));
|
|
22522
22522
|
}
|
|
@@ -22535,7 +22535,7 @@ function nw(e) {
|
|
|
22535
22535
|
return !1;
|
|
22536
22536
|
}
|
|
22537
22537
|
}
|
|
22538
|
-
function
|
|
22538
|
+
function Wr(e, t) {
|
|
22539
22539
|
var r;
|
|
22540
22540
|
if (!e || !t || !lt(e) || !lt(t)) return !1;
|
|
22541
22541
|
const n = (r = t.getRootNode) == null ? void 0 : r.call(t);
|
|
@@ -23092,7 +23092,7 @@ ao.ref = (e) => {
|
|
|
23092
23092
|
}
|
|
23093
23093
|
};
|
|
23094
23094
|
};
|
|
23095
|
-
function
|
|
23095
|
+
function jw(e) {
|
|
23096
23096
|
const t = re(e);
|
|
23097
23097
|
return {
|
|
23098
23098
|
get(n) {
|
|
@@ -23103,7 +23103,7 @@ function Ww(e) {
|
|
|
23103
23103
|
}
|
|
23104
23104
|
};
|
|
23105
23105
|
}
|
|
23106
|
-
var
|
|
23106
|
+
var Ww = (e, t) => {
|
|
23107
23107
|
const n = re(!1), r = re(!1);
|
|
23108
23108
|
Ne(() => {
|
|
23109
23109
|
if (n.current && r.current) return t();
|
|
@@ -23113,10 +23113,10 @@ var jw = (e, t) => {
|
|
|
23113
23113
|
}), []);
|
|
23114
23114
|
};
|
|
23115
23115
|
function zo(e, t = {}) {
|
|
23116
|
-
var z, B, Y,
|
|
23116
|
+
var z, B, Y, W, X, ae;
|
|
23117
23117
|
const n = Ue(() => {
|
|
23118
|
-
const { id: Z, ids:
|
|
23119
|
-
return Yw({ id: Z, ids:
|
|
23118
|
+
const { id: Z, ids: j, getRootNode: ue } = t;
|
|
23119
|
+
return Yw({ id: Z, ids: j, getRootNode: ue });
|
|
23120
23120
|
}, [t]), r = (...Z) => {
|
|
23121
23121
|
e.debug && console.log(...Z);
|
|
23122
23122
|
}, i = (B = (z = e.props) == null ? void 0 : z.call(e, { props: Mc(t), scope: n })) != null ? B : t, s = Xw(i), o = (Y = e.context) == null ? void 0 : Y.call(e, {
|
|
@@ -23138,21 +23138,21 @@ function zo(e, t = {}) {
|
|
|
23138
23138
|
}
|
|
23139
23139
|
}), a = Um(o), u = {
|
|
23140
23140
|
get(Z) {
|
|
23141
|
-
var
|
|
23142
|
-
return (
|
|
23141
|
+
var j;
|
|
23142
|
+
return (j = a.current) == null ? void 0 : j[Z].ref.current;
|
|
23143
23143
|
},
|
|
23144
|
-
set(Z,
|
|
23144
|
+
set(Z, j) {
|
|
23145
23145
|
var ue;
|
|
23146
|
-
(ue = a.current) == null || ue[Z].set(
|
|
23146
|
+
(ue = a.current) == null || ue[Z].set(j);
|
|
23147
23147
|
},
|
|
23148
23148
|
initial(Z) {
|
|
23149
|
-
var
|
|
23150
|
-
return (
|
|
23149
|
+
var j;
|
|
23150
|
+
return (j = a.current) == null ? void 0 : j[Z].initial;
|
|
23151
23151
|
},
|
|
23152
23152
|
hash(Z) {
|
|
23153
23153
|
var ue, N;
|
|
23154
|
-
const
|
|
23155
|
-
return (N = a.current) == null ? void 0 : N[Z].hash(
|
|
23154
|
+
const j = (ue = a.current) == null ? void 0 : ue[Z].get();
|
|
23155
|
+
return (N = a.current) == null ? void 0 : N[Z].hash(j);
|
|
23156
23156
|
}
|
|
23157
23157
|
}, c = re(/* @__PURE__ */ new Map()), l = re(null), d = re(null), p = re({ type: "" }), h = () => $(I({}, p.current), {
|
|
23158
23158
|
current() {
|
|
@@ -23166,10 +23166,10 @@ function zo(e, t = {}) {
|
|
|
23166
23166
|
return Z.includes(C.ref.current);
|
|
23167
23167
|
},
|
|
23168
23168
|
hasTag(Z) {
|
|
23169
|
-
var
|
|
23170
|
-
return !!((ue = (
|
|
23169
|
+
var j, ue;
|
|
23170
|
+
return !!((ue = (j = e.states[C.ref.current]) == null ? void 0 : j.tags) != null && ue.includes(Z));
|
|
23171
23171
|
}
|
|
23172
|
-
}), b =
|
|
23172
|
+
}), b = jw((X = (W = e.refs) == null ? void 0 : W.call(e, { prop: s, context: u })) != null ? X : {}), T = () => ({
|
|
23173
23173
|
state: g(),
|
|
23174
23174
|
context: u,
|
|
23175
23175
|
event: h(),
|
|
@@ -23177,16 +23177,16 @@ function zo(e, t = {}) {
|
|
|
23177
23177
|
send: w,
|
|
23178
23178
|
action: m,
|
|
23179
23179
|
guard: y,
|
|
23180
|
-
track:
|
|
23180
|
+
track: Ww,
|
|
23181
23181
|
refs: b,
|
|
23182
23182
|
computed: L,
|
|
23183
23183
|
flush: Sf,
|
|
23184
23184
|
scope: n,
|
|
23185
23185
|
choose: v
|
|
23186
23186
|
}), m = (Z) => {
|
|
23187
|
-
const
|
|
23188
|
-
if (!
|
|
23189
|
-
const ue =
|
|
23187
|
+
const j = Br(Z) ? Z(T()) : Z;
|
|
23188
|
+
if (!j) return;
|
|
23189
|
+
const ue = j.map((N) => {
|
|
23190
23190
|
var he, R;
|
|
23191
23191
|
const ce = (R = (he = e.implementations) == null ? void 0 : he.actions) == null ? void 0 : R[N];
|
|
23192
23192
|
return ce || Nu(`[zag-js] No implementation found for action "${JSON.stringify(N)}"`), ce;
|
|
@@ -23194,12 +23194,12 @@ function zo(e, t = {}) {
|
|
|
23194
23194
|
for (const N of ue)
|
|
23195
23195
|
N == null || N(T());
|
|
23196
23196
|
}, y = (Z) => {
|
|
23197
|
-
var
|
|
23198
|
-
return Br(Z) ? Z(T()) : (ue = (
|
|
23197
|
+
var j, ue;
|
|
23198
|
+
return Br(Z) ? Z(T()) : (ue = (j = e.implementations) == null ? void 0 : j.guards) == null ? void 0 : ue[Z](T());
|
|
23199
23199
|
}, S = (Z) => {
|
|
23200
|
-
const
|
|
23201
|
-
if (!
|
|
23202
|
-
const ue =
|
|
23200
|
+
const j = Br(Z) ? Z(T()) : Z;
|
|
23201
|
+
if (!j) return;
|
|
23202
|
+
const ue = j.map((ce) => {
|
|
23203
23203
|
var R, me;
|
|
23204
23204
|
const he = (me = (R = e.implementations) == null ? void 0 : R.effects) == null ? void 0 : me[ce];
|
|
23205
23205
|
return he || Nu(`[zag-js] No implementation found for effect "${JSON.stringify(ce)}"`), he;
|
|
@@ -23209,13 +23209,13 @@ function zo(e, t = {}) {
|
|
|
23209
23209
|
he && N.push(he);
|
|
23210
23210
|
}
|
|
23211
23211
|
return () => N.forEach((ce) => ce == null ? void 0 : ce());
|
|
23212
|
-
}, v = (Z) => _I(Z).find((
|
|
23213
|
-
let ue = !
|
|
23214
|
-
return Us(
|
|
23212
|
+
}, v = (Z) => _I(Z).find((j) => {
|
|
23213
|
+
let ue = !j.guard;
|
|
23214
|
+
return Us(j.guard) ? ue = !!y(j.guard) : Br(j.guard) && (ue = j.guard(T())), ue;
|
|
23215
23215
|
}), L = (Z) => {
|
|
23216
23216
|
VI(e.computed, () => "[zag-js] No computed object found on machine");
|
|
23217
|
-
const
|
|
23218
|
-
return
|
|
23217
|
+
const j = e.computed[Z];
|
|
23218
|
+
return j({
|
|
23219
23219
|
context: u,
|
|
23220
23220
|
event: h(),
|
|
23221
23221
|
prop: s,
|
|
@@ -23225,15 +23225,15 @@ function zo(e, t = {}) {
|
|
|
23225
23225
|
});
|
|
23226
23226
|
}, C = ao(() => ({
|
|
23227
23227
|
defaultValue: e.initialState({ prop: s }),
|
|
23228
|
-
onChange(Z,
|
|
23228
|
+
onChange(Z, j) {
|
|
23229
23229
|
var N, ce, he, R;
|
|
23230
|
-
if (
|
|
23231
|
-
const me = c.current.get(
|
|
23232
|
-
me == null || me(), c.current.delete(
|
|
23230
|
+
if (j) {
|
|
23231
|
+
const me = c.current.get(j);
|
|
23232
|
+
me == null || me(), c.current.delete(j);
|
|
23233
23233
|
}
|
|
23234
|
-
|
|
23234
|
+
j && m((N = e.states[j]) == null ? void 0 : N.exit), m((ce = l.current) == null ? void 0 : ce.actions);
|
|
23235
23235
|
const ue = S((he = e.states[Z]) == null ? void 0 : he.effects);
|
|
23236
|
-
if (ue && c.current.set(Z, ue),
|
|
23236
|
+
if (ue && c.current.set(Z, ue), j === La) {
|
|
23237
23237
|
m(e.entry);
|
|
23238
23238
|
const me = S(e.effects);
|
|
23239
23239
|
me && c.current.set(La, me);
|
|
@@ -23249,9 +23249,9 @@ function zo(e, t = {}) {
|
|
|
23249
23249
|
const N = (ce = M.current) != null ? ce : C.initial;
|
|
23250
23250
|
C.invoke(N, ue ? C.get() : La);
|
|
23251
23251
|
});
|
|
23252
|
-
const Z = c.current,
|
|
23252
|
+
const Z = c.current, j = C.ref.current;
|
|
23253
23253
|
return () => {
|
|
23254
|
-
r("unmounting..."), M.current =
|
|
23254
|
+
r("unmounting..."), M.current = j, q.current = Lr.Stopped, Z.forEach((ue) => ue == null ? void 0 : ue()), c.current = /* @__PURE__ */ new Map(), l.current = null, queueMicrotask(() => {
|
|
23255
23255
|
m(e.exit);
|
|
23256
23256
|
});
|
|
23257
23257
|
};
|
|
@@ -23261,20 +23261,20 @@ function zo(e, t = {}) {
|
|
|
23261
23261
|
var R, me, Ge, te, Te;
|
|
23262
23262
|
if (q.current !== Lr.Started) return;
|
|
23263
23263
|
d.current = p.current, p.current = Z;
|
|
23264
|
-
let
|
|
23264
|
+
let j = H();
|
|
23265
23265
|
const ue = (
|
|
23266
23266
|
// @ts-ignore
|
|
23267
|
-
(Ge = (R = e.states[
|
|
23267
|
+
(Ge = (R = e.states[j].on) == null ? void 0 : R[Z.type]) != null ? Ge : (
|
|
23268
23268
|
// @ts-ignore
|
|
23269
23269
|
(me = e.on) == null ? void 0 : me[Z.type]
|
|
23270
23270
|
)
|
|
23271
23271
|
), N = v(ue);
|
|
23272
23272
|
if (!N) return;
|
|
23273
23273
|
l.current = N;
|
|
23274
|
-
const ce = (te = N.target) != null ? te :
|
|
23275
|
-
r("transition", Z.type, N.target ||
|
|
23276
|
-
const he = ce !==
|
|
23277
|
-
he ? $u(() => C.set(ce)) : N.reenter && !he ? C.invoke(
|
|
23274
|
+
const ce = (te = N.target) != null ? te : j;
|
|
23275
|
+
r("transition", Z.type, N.target || j, `(${N.actions})`);
|
|
23276
|
+
const he = ce !== j;
|
|
23277
|
+
he ? $u(() => C.set(ce)) : N.reenter && !he ? C.invoke(j, j) : m((Te = N.actions) != null ? Te : []);
|
|
23278
23278
|
});
|
|
23279
23279
|
};
|
|
23280
23280
|
return (ae = e.watch) == null || ae.call(e, T()), {
|
|
@@ -23647,12 +23647,12 @@ function cn(e) {
|
|
|
23647
23647
|
const t = e[0];
|
|
23648
23648
|
return t === "t" || t === "b" ? "y" : "x";
|
|
23649
23649
|
}
|
|
23650
|
-
function
|
|
23650
|
+
function jc(e) {
|
|
23651
23651
|
return Yc(cn(e));
|
|
23652
23652
|
}
|
|
23653
23653
|
function aP(e, t, n) {
|
|
23654
23654
|
n === void 0 && (n = !1);
|
|
23655
|
-
const r = ci(e), i =
|
|
23655
|
+
const r = ci(e), i = jc(e), s = Gc(i);
|
|
23656
23656
|
let o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
23657
23657
|
return t.reference[s] > t.floating[s] && (o = co(o)), [o, co(o)];
|
|
23658
23658
|
}
|
|
@@ -23725,7 +23725,7 @@ function Of(e, t, n) {
|
|
|
23725
23725
|
reference: r,
|
|
23726
23726
|
floating: i
|
|
23727
23727
|
} = e;
|
|
23728
|
-
const s = cn(t), o =
|
|
23728
|
+
const s = cn(t), o = jc(t), a = Gc(o), u = zn(t), c = s === "y", l = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, p = r[a] / 2 - i[a] / 2;
|
|
23729
23729
|
let h;
|
|
23730
23730
|
switch (u) {
|
|
23731
23731
|
case "top":
|
|
@@ -23887,15 +23887,15 @@ const mP = 50, gP = (e, t, n) => de(null, null, function* () {
|
|
|
23887
23887
|
const p = Ym(d), h = {
|
|
23888
23888
|
x: r,
|
|
23889
23889
|
y: i
|
|
23890
|
-
}, g =
|
|
23890
|
+
}, g = jc(s), b = Gc(g), T = yield a.getDimensions(l), m = g === "y", y = m ? "top" : "left", S = m ? "bottom" : "right", v = m ? "clientHeight" : "clientWidth", L = o.reference[b] + o.reference[g] - h[g] - o.floating[b], C = h[g] - o.reference[g], M = yield a.getOffsetParent == null ? void 0 : a.getOffsetParent(l);
|
|
23891
23891
|
let q = M ? M[v] : 0;
|
|
23892
23892
|
(!q || !(yield a.isElement == null ? void 0 : a.isElement(M))) && (q = u.floating[v] || o.floating[b]);
|
|
23893
|
-
const H = L / 2 - C / 2, w = q / 2 - T[b] / 2 - 1, z = $n(p[y], w), B = $n(p[S], w), Y = q - T[b] - B,
|
|
23893
|
+
const H = L / 2 - C / 2, w = q / 2 - T[b] / 2 - 1, z = $n(p[y], w), B = $n(p[S], w), Y = q - T[b] - B, W = q / 2 - T[b] / 2 + H, X = qm(z, W, Y), ae = !c.arrow && ci(s) != null && W !== X && o.reference[b] / 2 - (W < z ? z : B) - T[b] / 2 < 0, Z = ae ? W < z ? W - z : W - Y : 0;
|
|
23894
23894
|
return {
|
|
23895
23895
|
[g]: h[g] + Z,
|
|
23896
23896
|
data: I({
|
|
23897
23897
|
[g]: X,
|
|
23898
|
-
centerOffset:
|
|
23898
|
+
centerOffset: W - X - Z
|
|
23899
23899
|
}, ae && {
|
|
23900
23900
|
alignmentOffset: Z
|
|
23901
23901
|
}),
|
|
@@ -23960,12 +23960,12 @@ const mP = 50, gP = (e, t, n) => de(null, null, function* () {
|
|
|
23960
23960
|
placement: Z
|
|
23961
23961
|
}
|
|
23962
23962
|
};
|
|
23963
|
-
let
|
|
23964
|
-
if (!
|
|
23963
|
+
let j = (Y = z.filter((ue) => ue.overflows[0] <= 0).sort((ue, N) => ue.overflows[1] - N.overflows[1])[0]) == null ? void 0 : Y.placement;
|
|
23964
|
+
if (!j)
|
|
23965
23965
|
switch (g) {
|
|
23966
23966
|
case "bestFit": {
|
|
23967
|
-
var
|
|
23968
|
-
const ue = (
|
|
23967
|
+
var W;
|
|
23968
|
+
const ue = (W = z.filter((N) => {
|
|
23969
23969
|
if (M) {
|
|
23970
23970
|
const ce = cn(N.placement);
|
|
23971
23971
|
return ce === S || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -23973,18 +23973,18 @@ const mP = 50, gP = (e, t, n) => de(null, null, function* () {
|
|
|
23973
23973
|
ce === "y";
|
|
23974
23974
|
}
|
|
23975
23975
|
return !0;
|
|
23976
|
-
}).map((N) => [N.placement, N.overflows.filter((ce) => ce > 0).reduce((ce, he) => ce + he, 0)]).sort((N, ce) => N[1] - ce[1])[0]) == null ? void 0 :
|
|
23977
|
-
ue && (
|
|
23976
|
+
}).map((N) => [N.placement, N.overflows.filter((ce) => ce > 0).reduce((ce, he) => ce + he, 0)]).sort((N, ce) => N[1] - ce[1])[0]) == null ? void 0 : W[0];
|
|
23977
|
+
ue && (j = ue);
|
|
23978
23978
|
break;
|
|
23979
23979
|
}
|
|
23980
23980
|
case "initialPlacement":
|
|
23981
|
-
|
|
23981
|
+
j = u;
|
|
23982
23982
|
break;
|
|
23983
23983
|
}
|
|
23984
|
-
if (s !==
|
|
23984
|
+
if (s !== j)
|
|
23985
23985
|
return {
|
|
23986
23986
|
reset: {
|
|
23987
|
-
placement:
|
|
23987
|
+
placement: j
|
|
23988
23988
|
}
|
|
23989
23989
|
};
|
|
23990
23990
|
}
|
|
@@ -24238,7 +24238,7 @@ function qo() {
|
|
|
24238
24238
|
return typeof window != "undefined";
|
|
24239
24239
|
}
|
|
24240
24240
|
function li(e) {
|
|
24241
|
-
return
|
|
24241
|
+
return jm(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
24242
24242
|
}
|
|
24243
24243
|
function Mt(e) {
|
|
24244
24244
|
var t;
|
|
@@ -24246,9 +24246,9 @@ function Mt(e) {
|
|
|
24246
24246
|
}
|
|
24247
24247
|
function bn(e) {
|
|
24248
24248
|
var t;
|
|
24249
|
-
return (t = (
|
|
24249
|
+
return (t = (jm(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
24250
24250
|
}
|
|
24251
|
-
function
|
|
24251
|
+
function jm(e) {
|
|
24252
24252
|
return qo() ? e instanceof Node || e instanceof Mt(e).Node : !1;
|
|
24253
24253
|
}
|
|
24254
24254
|
function Xt(e) {
|
|
@@ -24286,14 +24286,14 @@ function Yo(e) {
|
|
|
24286
24286
|
}
|
|
24287
24287
|
const xP = /transform|translate|scale|rotate|perspective|filter/, CP = /paint|layout|strict|content/, Kn = (e) => !!e && e !== "none";
|
|
24288
24288
|
let Ma;
|
|
24289
|
-
function
|
|
24289
|
+
function Wc(e) {
|
|
24290
24290
|
const t = Xt(e) ? Kt(e) : e;
|
|
24291
24291
|
return Kn(t.transform) || Kn(t.translate) || Kn(t.scale) || Kn(t.rotate) || Kn(t.perspective) || !Xc() && (Kn(t.backdropFilter) || Kn(t.filter)) || xP.test(t.willChange || "") || CP.test(t.contain || "");
|
|
24292
24292
|
}
|
|
24293
24293
|
function IP(e) {
|
|
24294
24294
|
let t = Vn(e);
|
|
24295
24295
|
for (; mn(t) && !Xr(t); ) {
|
|
24296
|
-
if (
|
|
24296
|
+
if (Wc(t))
|
|
24297
24297
|
return t;
|
|
24298
24298
|
if (Yo(t))
|
|
24299
24299
|
return null;
|
|
@@ -24331,14 +24331,14 @@ function Vn(e) {
|
|
|
24331
24331
|
);
|
|
24332
24332
|
return If(t) ? t.host : t;
|
|
24333
24333
|
}
|
|
24334
|
-
function
|
|
24334
|
+
function Wm(e) {
|
|
24335
24335
|
const t = Vn(e);
|
|
24336
|
-
return Xr(t) ? (e.ownerDocument || e).body : mn(t) && as(t) ? t :
|
|
24336
|
+
return Xr(t) ? (e.ownerDocument || e).body : mn(t) && as(t) ? t : Wm(t);
|
|
24337
24337
|
}
|
|
24338
24338
|
function qi(e, t, n) {
|
|
24339
24339
|
var r;
|
|
24340
24340
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
24341
|
-
const i =
|
|
24341
|
+
const i = Wm(e), s = i === ((r = e.ownerDocument) == null ? void 0 : r.body), o = Mt(i);
|
|
24342
24342
|
if (s) {
|
|
24343
24343
|
const a = Iu(o);
|
|
24344
24344
|
return t.concat(o, o.visualViewport || [], as(i) ? i : [], a && n ? qi(a) : []);
|
|
@@ -24409,12 +24409,12 @@ function Er(e, t, n, r) {
|
|
|
24409
24409
|
y: c
|
|
24410
24410
|
});
|
|
24411
24411
|
}
|
|
24412
|
-
function
|
|
24412
|
+
function jo(e, t) {
|
|
24413
24413
|
const n = Go(e).scrollLeft;
|
|
24414
24414
|
return t ? t.left + n : Er(bn(e)).left + n;
|
|
24415
24415
|
}
|
|
24416
24416
|
function Qm(e, t) {
|
|
24417
|
-
const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft -
|
|
24417
|
+
const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft - jo(e, n), i = n.top + t.scrollTop;
|
|
24418
24418
|
return {
|
|
24419
24419
|
x: r,
|
|
24420
24420
|
y: i
|
|
@@ -24452,7 +24452,7 @@ function vP(e) {
|
|
|
24452
24452
|
}
|
|
24453
24453
|
function kP(e) {
|
|
24454
24454
|
const t = bn(e), n = Go(e), r = e.ownerDocument.body, i = On(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = On(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
24455
|
-
let o = -n.scrollLeft +
|
|
24455
|
+
let o = -n.scrollLeft + jo(e);
|
|
24456
24456
|
const a = -n.scrollTop;
|
|
24457
24457
|
return Kt(r).direction === "rtl" && (o += On(t.clientWidth, r.clientWidth) - i), {
|
|
24458
24458
|
width: i,
|
|
@@ -24470,7 +24470,7 @@ function LP(e, t) {
|
|
|
24470
24470
|
const l = Xc();
|
|
24471
24471
|
(!l || l && t === "fixed") && (a = i.offsetLeft, u = i.offsetTop);
|
|
24472
24472
|
}
|
|
24473
|
-
const c =
|
|
24473
|
+
const c = jo(r);
|
|
24474
24474
|
if (c <= 0) {
|
|
24475
24475
|
const l = r.ownerDocument, d = l.body, p = getComputedStyle(d), h = l.compatMode === "CSS1Compat" && parseFloat(p.marginLeft) + parseFloat(p.marginRight) || 0, g = Math.abs(r.clientWidth - d.clientWidth - h);
|
|
24476
24476
|
g <= wf && (s -= g);
|
|
@@ -24523,7 +24523,7 @@ function BP(e, t) {
|
|
|
24523
24523
|
const s = Kt(e).position === "fixed";
|
|
24524
24524
|
let o = s ? Vn(e) : e;
|
|
24525
24525
|
for (; Xt(o) && !Xr(o); ) {
|
|
24526
|
-
const a = Kt(o), u =
|
|
24526
|
+
const a = Kt(o), u = Wc(o);
|
|
24527
24527
|
!u && a.position === "fixed" && (i = null), (s ? !u && !i : !u && a.position === "static" && !!i && DP.has(i.position) || as(o) && !u && Jm(e, o)) ? r = r.filter((l) => l !== o) : i = a, o = Vn(o);
|
|
24528
24528
|
}
|
|
24529
24529
|
return t.set(e, r), r;
|
|
@@ -24564,7 +24564,7 @@ function HP(e, t, n) {
|
|
|
24564
24564
|
};
|
|
24565
24565
|
const u = fn(0);
|
|
24566
24566
|
function c() {
|
|
24567
|
-
u.x =
|
|
24567
|
+
u.x = jo(i);
|
|
24568
24568
|
}
|
|
24569
24569
|
if (r || !r && !s)
|
|
24570
24570
|
if ((li(t) !== "body" || as(i)) && (a = Go(t)), r) {
|
|
@@ -24607,7 +24607,7 @@ function Zm(e, t) {
|
|
|
24607
24607
|
let r = Rf(e, t);
|
|
24608
24608
|
for (; r && OP(r) && Ba(r); )
|
|
24609
24609
|
r = Rf(r, t);
|
|
24610
|
-
return r && Xr(r) && Ba(r) && !
|
|
24610
|
+
return r && Xr(r) && Ba(r) && !Wc(r) ? n : r || IP(e) || n;
|
|
24611
24611
|
}
|
|
24612
24612
|
const $P = function(e) {
|
|
24613
24613
|
return de(this, null, function* () {
|
|
@@ -24722,7 +24722,7 @@ function YP(e, t, n, r) {
|
|
|
24722
24722
|
}), d == null || d(), (m = h) == null || m.disconnect(), h = null, u && cancelAnimationFrame(g);
|
|
24723
24723
|
};
|
|
24724
24724
|
}
|
|
24725
|
-
const GP = _P,
|
|
24725
|
+
const GP = _P, jP = SP, WP = TP, XP = NP, KP = bP, QP = EP, JP = AP, ZP = (e, t, n) => {
|
|
24726
24726
|
const r = /* @__PURE__ */ new Map(), i = I({
|
|
24727
24727
|
platform: VP
|
|
24728
24728
|
}, n), s = $(I({}, i.platform), {
|
|
@@ -24856,7 +24856,7 @@ function c3(e, t) {
|
|
|
24856
24856
|
function l3(e) {
|
|
24857
24857
|
if (!e.flip) return;
|
|
24858
24858
|
const t = Qc(e.boundary);
|
|
24859
|
-
return
|
|
24859
|
+
return WP($(I({}, t ? { boundary: t } : void 0), {
|
|
24860
24860
|
padding: e.overflowPadding,
|
|
24861
24861
|
fallbackPlacements: e.flip === !0 ? void 0 : e.flip
|
|
24862
24862
|
}));
|
|
@@ -24864,7 +24864,7 @@ function l3(e) {
|
|
|
24864
24864
|
function d3(e) {
|
|
24865
24865
|
if (!e.slide && !e.overlap) return;
|
|
24866
24866
|
const t = Qc(e.boundary);
|
|
24867
|
-
return
|
|
24867
|
+
return jP($(I({}, t ? { boundary: t } : void 0), {
|
|
24868
24868
|
mainAxis: e.slide,
|
|
24869
24869
|
crossAxis: e.overlap,
|
|
24870
24870
|
padding: e.overflowPadding,
|
|
@@ -25135,7 +25135,7 @@ function P3(e, t) {
|
|
|
25135
25135
|
if (!e) return;
|
|
25136
25136
|
const u = Tn(e), c = si(e), l = O3(c), d = x3(c);
|
|
25137
25137
|
function p(S, v) {
|
|
25138
|
-
if (!lt(v) || !v.isConnected ||
|
|
25138
|
+
if (!lt(v) || !v.isConnected || Wr(e, v) || I3(e, S) || a && wm(e, v)) return !1;
|
|
25139
25139
|
const L = u.querySelector(`[aria-controls="${e.id}"]`);
|
|
25140
25140
|
if (L) {
|
|
25141
25141
|
const M = Ou(L);
|
|
@@ -25264,10 +25264,10 @@ var Uf = "layer:request-dismiss", Ft = {
|
|
|
25264
25264
|
return this.getNestedLayersByType(e, t).length;
|
|
25265
25265
|
},
|
|
25266
25266
|
isInNestedLayer(e, t) {
|
|
25267
|
-
return this.getNestedLayers(e).some((n) =>
|
|
25267
|
+
return this.getNestedLayers(e).some((n) => Wr(n.node, t));
|
|
25268
25268
|
},
|
|
25269
25269
|
isInBranch(e) {
|
|
25270
|
-
return Array.from(this.branches).some((t) =>
|
|
25270
|
+
return Array.from(this.branches).some((t) => Wr(t, e));
|
|
25271
25271
|
},
|
|
25272
25272
|
add(e) {
|
|
25273
25273
|
this.layers.push(e), this.syncLayers();
|
|
@@ -25374,7 +25374,7 @@ function B3(e, t) {
|
|
|
25374
25374
|
var S;
|
|
25375
25375
|
if (!e) return !1;
|
|
25376
25376
|
const T = typeof o == "function" ? o() : o, m = Array.isArray(T) ? T : [T], y = (S = t.persistentElements) == null ? void 0 : S.map((v) => v()).filter(lt);
|
|
25377
|
-
return y && m.push(...y), m.some((v) =>
|
|
25377
|
+
return y && m.push(...y), m.some((v) => Wr(v, b)) || Ft.isInNestedLayer(e, b);
|
|
25378
25378
|
}
|
|
25379
25379
|
const g = [
|
|
25380
25380
|
s ? M3(e, t.persistentElements) : void 0,
|
|
@@ -25396,7 +25396,7 @@ function ig(e, t) {
|
|
|
25396
25396
|
i.forEach((s) => s == null ? void 0 : s());
|
|
25397
25397
|
};
|
|
25398
25398
|
}
|
|
25399
|
-
var F3 = Object.defineProperty, U3 = (e, t, n) => t in e ? F3(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n,
|
|
25399
|
+
var F3 = Object.defineProperty, U3 = (e, t, n) => t in e ? F3(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, We = (e, t, n) => U3(e, typeof t != "symbol" ? t + "" : t, n), zf = {
|
|
25400
25400
|
activateTrap(e, t) {
|
|
25401
25401
|
if (e.length > 0) {
|
|
25402
25402
|
const r = e[e.length - 1];
|
|
@@ -25411,7 +25411,7 @@ var F3 = Object.defineProperty, U3 = (e, t, n) => t in e ? F3(e, t, { enumerable
|
|
|
25411
25411
|
}
|
|
25412
25412
|
}, H3 = [], $3 = class {
|
|
25413
25413
|
constructor(e, t) {
|
|
25414
|
-
|
|
25414
|
+
We(this, "trapStack"), We(this, "config"), We(this, "doc"), We(this, "state", {
|
|
25415
25415
|
containers: [],
|
|
25416
25416
|
containerGroups: [],
|
|
25417
25417
|
tabbableGroups: [],
|
|
@@ -25421,7 +25421,7 @@ var F3 = Object.defineProperty, U3 = (e, t, n) => t in e ? F3(e, t, { enumerable
|
|
|
25421
25421
|
paused: !1,
|
|
25422
25422
|
delayInitialFocusTimer: void 0,
|
|
25423
25423
|
recentNavEvent: void 0
|
|
25424
|
-
}),
|
|
25424
|
+
}), We(this, "portalContainers", /* @__PURE__ */ new Set()), We(this, "listenerCleanups", []), We(this, "handleFocus", (r) => {
|
|
25425
25425
|
const i = Gt(r), s = this.findContainerIndex(i, r) >= 0;
|
|
25426
25426
|
if (s || Uo(i))
|
|
25427
25427
|
s && (this.state.mostRecentlyFocusedNode = i);
|
|
@@ -25447,7 +25447,7 @@ var F3 = Object.defineProperty, U3 = (e, t, n) => t in e ? F3(e, t, { enumerable
|
|
|
25447
25447
|
})), o ? this.tryFocus(o) : this.tryFocus(this.state.mostRecentlyFocusedNode || this.getInitialFocusNode());
|
|
25448
25448
|
}
|
|
25449
25449
|
this.state.recentNavEvent = void 0;
|
|
25450
|
-
}),
|
|
25450
|
+
}), We(this, "handlePointerDown", (r) => {
|
|
25451
25451
|
const i = Gt(r);
|
|
25452
25452
|
if (!(this.findContainerIndex(i, r) >= 0)) {
|
|
25453
25453
|
if (Ni(this.config.clickOutsideDeactivates, r)) {
|
|
@@ -25456,19 +25456,19 @@ var F3 = Object.defineProperty, U3 = (e, t, n) => t in e ? F3(e, t, { enumerable
|
|
|
25456
25456
|
}
|
|
25457
25457
|
Ni(this.config.allowOutsideClick, r) || r.preventDefault();
|
|
25458
25458
|
}
|
|
25459
|
-
}),
|
|
25459
|
+
}), We(this, "handleClick", (r) => {
|
|
25460
25460
|
const i = Gt(r);
|
|
25461
25461
|
this.findContainerIndex(i, r) >= 0 || Ni(this.config.clickOutsideDeactivates, r) || Ni(this.config.allowOutsideClick, r) || (r.preventDefault(), r.stopImmediatePropagation());
|
|
25462
|
-
}),
|
|
25462
|
+
}), We(this, "handleTabKey", (r) => {
|
|
25463
25463
|
if (this.config.isKeyForward(r) || this.config.isKeyBackward(r)) {
|
|
25464
25464
|
this.state.recentNavEvent = r;
|
|
25465
25465
|
const i = this.config.isKeyBackward(r), s = this.findNextNavNode({ event: r, isBackward: i });
|
|
25466
25466
|
if (!s) return;
|
|
25467
25467
|
Ai(r) && r.preventDefault(), this.tryFocus(s);
|
|
25468
25468
|
}
|
|
25469
|
-
}),
|
|
25469
|
+
}), We(this, "handleEscapeKey", (r) => {
|
|
25470
25470
|
z3(r) && Ni(this.config.escapeDeactivates, r) !== !1 && (r.preventDefault(), this.deactivate());
|
|
25471
|
-
}),
|
|
25471
|
+
}), We(this, "_mutationObserver"), We(this, "setupMutationObserver", () => {
|
|
25472
25472
|
const r = this.doc.defaultView || window;
|
|
25473
25473
|
this._mutationObserver = new r.MutationObserver((i) => {
|
|
25474
25474
|
i.some((a) => Array.from(a.removedNodes).some((c) => c === this.state.mostRecentlyFocusedNode)) && this.tryFocus(this.getInitialFocusNode()), i.some((a) => a.type === "attributes" && (a.attributeName === "aria-controls" || a.attributeName === "aria-expanded") ? !0 : a.type === "childList" && a.addedNodes.length > 0 ? Array.from(a.addedNodes).some((u) => {
|
|
@@ -25477,7 +25477,7 @@ var F3 = Object.defineProperty, U3 = (e, t, n) => t in e ? F3(e, t, { enumerable
|
|
|
25477
25477
|
return cw(c) ? !0 : c.id && !this.state.containers.some((l) => l.contains(c)) ? lw(c) : !1;
|
|
25478
25478
|
}) : !1) && this.state.active && !this.state.paused && (this.updateTabbableNodes(), this.updatePortalContainers());
|
|
25479
25479
|
});
|
|
25480
|
-
}),
|
|
25480
|
+
}), We(this, "updateObservedNodes", () => {
|
|
25481
25481
|
var r;
|
|
25482
25482
|
(r = this._mutationObserver) == null || r.disconnect(), this.state.active && !this.state.paused && (this.state.containers.map((i) => {
|
|
25483
25483
|
var s;
|
|
@@ -25490,7 +25490,7 @@ var F3 = Object.defineProperty, U3 = (e, t, n) => t in e ? F3(e, t, { enumerable
|
|
|
25490
25490
|
}), this.portalContainers.forEach((i) => {
|
|
25491
25491
|
this.observePortalContainer(i);
|
|
25492
25492
|
}));
|
|
25493
|
-
}),
|
|
25493
|
+
}), We(this, "getInitialFocusNode", () => {
|
|
25494
25494
|
let r = this.getNodeForOption("initialFocus", { hasFallback: !0 });
|
|
25495
25495
|
if (r === !1)
|
|
25496
25496
|
return !1;
|
|
@@ -25506,7 +25506,7 @@ var F3 = Object.defineProperty, U3 = (e, t, n) => t in e ? F3(e, t, { enumerable
|
|
|
25506
25506
|
if (!r)
|
|
25507
25507
|
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
25508
25508
|
return r.isConnected || (r = this.getNodeForOption("fallbackFocus")), r;
|
|
25509
|
-
}),
|
|
25509
|
+
}), We(this, "tryFocus", (r) => {
|
|
25510
25510
|
if (r !== !1 && r !== Ur(this.doc)) {
|
|
25511
25511
|
if (!r || !r.focus) {
|
|
25512
25512
|
this.tryFocus(this.getInitialFocusNode());
|
|
@@ -25514,7 +25514,7 @@ var F3 = Object.defineProperty, U3 = (e, t, n) => t in e ? F3(e, t, { enumerable
|
|
|
25514
25514
|
}
|
|
25515
25515
|
r.focus({ preventScroll: !!this.config.preventScroll }), this.state.mostRecentlyFocusedNode = r, V3(r) && r.select();
|
|
25516
25516
|
}
|
|
25517
|
-
}),
|
|
25517
|
+
}), We(this, "deactivate", (r) => {
|
|
25518
25518
|
if (!this.state.active) return this;
|
|
25519
25519
|
const i = I({
|
|
25520
25520
|
onDeactivate: this.config.onDeactivate,
|
|
@@ -25538,25 +25538,25 @@ var F3 = Object.defineProperty, U3 = (e, t, n) => t in e ? F3(e, t, { enumerable
|
|
|
25538
25538
|
return a(l).then(c, c), this;
|
|
25539
25539
|
}
|
|
25540
25540
|
return c(), this;
|
|
25541
|
-
}),
|
|
25541
|
+
}), We(this, "pause", (r) => {
|
|
25542
25542
|
if (this.state.paused || !this.state.active)
|
|
25543
25543
|
return this;
|
|
25544
25544
|
const i = this.getOption(r, "onPause"), s = this.getOption(r, "onPostPause");
|
|
25545
25545
|
return this.state.paused = !0, i == null || i(), this.removeListeners(), this.updateObservedNodes(), s == null || s(), this;
|
|
25546
|
-
}),
|
|
25546
|
+
}), We(this, "unpause", (r) => {
|
|
25547
25547
|
if (!this.state.paused || !this.state.active)
|
|
25548
25548
|
return this;
|
|
25549
25549
|
const i = this.getOption(r, "onUnpause"), s = this.getOption(r, "onPostUnpause");
|
|
25550
25550
|
return this.state.paused = !1, i == null || i(), this.updateTabbableNodes(), this.addListeners(), this.updateObservedNodes(), s == null || s(), this;
|
|
25551
|
-
}),
|
|
25551
|
+
}), We(this, "updateContainerElements", (r) => (this.state.containers = Array.isArray(r) ? r.filter(Boolean) : [r].filter(Boolean), this.state.active && this.updateTabbableNodes(), this.updateObservedNodes(), this)), We(this, "getReturnFocusNode", (r) => {
|
|
25552
25552
|
const i = this.getNodeForOption("setReturnFocus", {
|
|
25553
25553
|
params: [r]
|
|
25554
25554
|
});
|
|
25555
25555
|
return i || (i === !1 ? !1 : r);
|
|
25556
|
-
}),
|
|
25556
|
+
}), We(this, "getOption", (r, i, s) => r && r[i] !== void 0 ? r[i] : (
|
|
25557
25557
|
// @ts-expect-error
|
|
25558
25558
|
this.config[s || i]
|
|
25559
|
-
)),
|
|
25559
|
+
)), We(this, "getNodeForOption", (r, { hasFallback: i = !1, params: s = [] } = {}) => {
|
|
25560
25560
|
let o = this.config[r];
|
|
25561
25561
|
if (typeof o == "function" && (o = o(...s)), o === !0 && (o = void 0), !o) {
|
|
25562
25562
|
if (o === void 0 || o === !1)
|
|
@@ -25574,7 +25574,7 @@ var F3 = Object.defineProperty, U3 = (e, t, n) => t in e ? F3(e, t, { enumerable
|
|
|
25574
25574
|
throw new Error(`\`${r}\` as selector refers to no known node`);
|
|
25575
25575
|
}
|
|
25576
25576
|
return a;
|
|
25577
|
-
}),
|
|
25577
|
+
}), We(this, "findNextNavNode", (r) => {
|
|
25578
25578
|
const { event: i, isBackward: s = !1 } = r, o = r.target || Gt(i);
|
|
25579
25579
|
this.updateTabbableNodes();
|
|
25580
25580
|
let a = null;
|
|
@@ -25819,10 +25819,10 @@ var Y3 = ir("popover").parts(
|
|
|
25819
25819
|
}, Ru = (e) => {
|
|
25820
25820
|
var t, n;
|
|
25821
25821
|
return (n = (t = e.ids) == null ? void 0 : t.description) != null ? n : `popover:${e.id}:desc`;
|
|
25822
|
-
},
|
|
25822
|
+
}, j3 = (e) => {
|
|
25823
25823
|
var t, n;
|
|
25824
25824
|
return (n = (t = e.ids) == null ? void 0 : t.closeTrigger) != null ? n : `popover:${e.id}:close`;
|
|
25825
|
-
}, Yf = (e) => e.getById(ag(e)), Rr = (e) => e.getById(ug(e)), vr = (e) => e.getById(wu(e)), Gf = (e) => e.getById(cg(e)),
|
|
25825
|
+
}, Yf = (e) => e.getById(ag(e)), Rr = (e) => e.getById(ug(e)), vr = (e) => e.getById(wu(e)), Gf = (e) => e.getById(cg(e)), W3 = (e) => e.getById(Pu(e)), X3 = (e) => e.getById(Ru(e));
|
|
25826
25826
|
function K3(e, t) {
|
|
25827
25827
|
const { state: n, context: r, send: i, computed: s, prop: o, scope: a } = e, u = n.matches("open"), c = r.get("currentPlacement"), l = s("currentPortalled"), d = r.get("renderedElements"), p = E3($(I({}, o("positioning")), {
|
|
25828
25828
|
placement: c
|
|
@@ -25921,7 +25921,7 @@ function K3(e, t) {
|
|
|
25921
25921
|
getCloseTriggerProps() {
|
|
25922
25922
|
return t.button($(I({}, rn.closeTrigger.attrs), {
|
|
25923
25923
|
dir: o("dir"),
|
|
25924
|
-
id:
|
|
25924
|
+
id: j3(a),
|
|
25925
25925
|
type: "button",
|
|
25926
25926
|
"aria-label": "close",
|
|
25927
25927
|
onClick(h) {
|
|
@@ -26120,7 +26120,7 @@ var Q3 = {
|
|
|
26120
26120
|
checkRenderedElements({ context: e, scope: t }) {
|
|
26121
26121
|
rt(() => {
|
|
26122
26122
|
Object.assign(e.get("renderedElements"), {
|
|
26123
|
-
title: !!
|
|
26123
|
+
title: !!W3(t),
|
|
26124
26124
|
description: !!X3(t)
|
|
26125
26125
|
});
|
|
26126
26126
|
});
|
|
@@ -26183,7 +26183,7 @@ ui()([
|
|
|
26183
26183
|
"portalled",
|
|
26184
26184
|
"positioning"
|
|
26185
26185
|
]);
|
|
26186
|
-
const [
|
|
26186
|
+
const [SD, Wo] = _r({
|
|
26187
26187
|
name: "EnvironmentContext",
|
|
26188
26188
|
hookName: "useEnvironmentContext",
|
|
26189
26189
|
providerName: "<EnvironmentProvider />",
|
|
@@ -26193,14 +26193,14 @@ const [_D, jo] = _r({
|
|
|
26193
26193
|
getDocument: () => document,
|
|
26194
26194
|
getWindow: () => window
|
|
26195
26195
|
}
|
|
26196
|
-
}), [
|
|
26196
|
+
}), [AD, Jc] = _r({
|
|
26197
26197
|
name: "LocaleContext",
|
|
26198
26198
|
hookName: "useLocaleContext",
|
|
26199
26199
|
providerName: "<LocaleProvider />",
|
|
26200
26200
|
strict: !1,
|
|
26201
26201
|
defaultValue: { dir: "ltr", locale: "en-US" }
|
|
26202
26202
|
}), J3 = (e) => {
|
|
26203
|
-
const t = Uu(), { getRootNode: n } =
|
|
26203
|
+
const t = Uu(), { getRootNode: n } = Wo(), { dir: r } = Jc(), i = I({
|
|
26204
26204
|
id: t,
|
|
26205
26205
|
dir: r,
|
|
26206
26206
|
getRootNode: n
|
|
@@ -26281,10 +26281,10 @@ const iR = ({
|
|
|
26281
26281
|
) })
|
|
26282
26282
|
] });
|
|
26283
26283
|
};
|
|
26284
|
-
function
|
|
26284
|
+
function jf(e) {
|
|
26285
26285
|
return Be({ attr: { viewBox: "0 0 24 24", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M15 4.00008H13V11.0001H20V9.00008H16.4142L20.7071 4.70718L19.2929 3.29297L15 7.58586V4.00008ZM4.00008 15H7.58586L3.29297 19.2929L4.70718 20.7071L9.00008 16.4142V20H11.0001V13H4.00008V15Z" }, child: [] }] })(e);
|
|
26286
26286
|
}
|
|
26287
|
-
function
|
|
26287
|
+
function Wf(e) {
|
|
26288
26288
|
return Be({ attr: { viewBox: "0 0 24 24", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M17.5858 5H14V3H21V10H19V6.41421L14.7071 10.7071L13.2929 9.29289L17.5858 5ZM3 14H5V17.5858L9.29289 13.2929L10.7071 14.7071L6.41421 19H10V21H3V14Z" }, child: [] }] })(e);
|
|
26289
26289
|
}
|
|
26290
26290
|
const [sR, Sr] = _r({
|
|
@@ -26503,10 +26503,10 @@ function gR(e, t) {
|
|
|
26503
26503
|
dir: a("dir"),
|
|
26504
26504
|
"aria-live": u ? "off" : "polite",
|
|
26505
26505
|
onFocus(y) {
|
|
26506
|
-
|
|
26506
|
+
Wr(y.currentTarget, Gt(y)) && s({ type: "VIEWPORT.FOCUS" });
|
|
26507
26507
|
},
|
|
26508
26508
|
onBlur(y) {
|
|
26509
|
-
|
|
26509
|
+
Wr(y.currentTarget, y.relatedTarget) || s({ type: "VIEWPORT.BLUR" });
|
|
26510
26510
|
},
|
|
26511
26511
|
onMouseDown(y) {
|
|
26512
26512
|
if (y.defaultPrevented || !a("allowMouseDrag") || !Rm(y)) return;
|
|
@@ -27083,7 +27083,7 @@ ui()([
|
|
|
27083
27083
|
ui()(["index", "readOnly"]);
|
|
27084
27084
|
ui()(["index", "snapAlign"]);
|
|
27085
27085
|
const bR = (e) => {
|
|
27086
|
-
const t = Uu(), { getRootNode: n } =
|
|
27086
|
+
const t = Uu(), { getRootNode: n } = Wo(), { dir: r } = Jc(), i = I({
|
|
27087
27087
|
id: t,
|
|
27088
27088
|
dir: r,
|
|
27089
27089
|
getRootNode: n
|
|
@@ -27575,7 +27575,7 @@ ui()([
|
|
|
27575
27575
|
"trapFocus"
|
|
27576
27576
|
]);
|
|
27577
27577
|
const BR = (e) => {
|
|
27578
|
-
const t = Uu(), { getRootNode: n } =
|
|
27578
|
+
const t = Uu(), { getRootNode: n } = Wo(), { dir: r } = Jc(), i = I({
|
|
27579
27579
|
id: t,
|
|
27580
27580
|
getRootNode: n,
|
|
27581
27581
|
dir: r
|
|
@@ -27710,14 +27710,14 @@ const Bn = new zR(), VR = (e) => {
|
|
|
27710
27710
|
}, GR = (e) => {
|
|
27711
27711
|
const t = Bn.isInline, n = typeof e == "boolean" ? e : !t;
|
|
27712
27712
|
Bn.promptsStateProxy.isInline = n;
|
|
27713
|
-
},
|
|
27713
|
+
}, jR = ({
|
|
27714
27714
|
elementId: e,
|
|
27715
27715
|
entryType: t,
|
|
27716
27716
|
params: n,
|
|
27717
27717
|
isInline: r
|
|
27718
27718
|
}) => {
|
|
27719
27719
|
Bn.promptsStateProxy.elementId = e, t && (Bn.promptsStateProxy.entryType = t), typeof r == "boolean" && GR(r), n && Bn.updatePromptsParamsProxy(n), Bn.isOpen || xg(!0);
|
|
27720
|
-
},
|
|
27720
|
+
}, WR = () => {
|
|
27721
27721
|
Fh("resetConversation", !0, Eo.RESET_CONVERSATION);
|
|
27722
27722
|
}, XR = () => {
|
|
27723
27723
|
Fh("endConversation", !0, Eo.END_CONVERSATION);
|
|
@@ -27744,7 +27744,7 @@ const Bn = new zR(), VR = (e) => {
|
|
|
27744
27744
|
To(r || "dialog"), i();
|
|
27745
27745
|
};
|
|
27746
27746
|
return t ? /* @__PURE__ */ E(
|
|
27747
|
-
|
|
27747
|
+
Wt,
|
|
27748
27748
|
{
|
|
27749
27749
|
className: x(
|
|
27750
27750
|
n,
|
|
@@ -27754,7 +27754,7 @@ const Bn = new zR(), VR = (e) => {
|
|
|
27754
27754
|
ariaLabel: "Collapse",
|
|
27755
27755
|
title: "Collapse",
|
|
27756
27756
|
onClick: s,
|
|
27757
|
-
icon: /* @__PURE__ */ E(
|
|
27757
|
+
icon: /* @__PURE__ */ E(jf, {})
|
|
27758
27758
|
}
|
|
27759
27759
|
) : /* @__PURE__ */ G(
|
|
27760
27760
|
"button",
|
|
@@ -27767,7 +27767,7 @@ const Bn = new zR(), VR = (e) => {
|
|
|
27767
27767
|
),
|
|
27768
27768
|
onClick: s,
|
|
27769
27769
|
children: [
|
|
27770
|
-
/* @__PURE__ */ E(
|
|
27770
|
+
/* @__PURE__ */ E(jf, {}),
|
|
27771
27771
|
"Show ",
|
|
27772
27772
|
r || "dialog"
|
|
27773
27773
|
]
|
|
@@ -27781,7 +27781,7 @@ const Bn = new zR(), VR = (e) => {
|
|
|
27781
27781
|
Ju(!r), i();
|
|
27782
27782
|
}, o = r ? L_ : D_, a = "Toggle Fullscreen";
|
|
27783
27783
|
return t ? /* @__PURE__ */ E(
|
|
27784
|
-
|
|
27784
|
+
Wt,
|
|
27785
27785
|
{
|
|
27786
27786
|
ariaLabel: a,
|
|
27787
27787
|
title: a,
|
|
@@ -27817,7 +27817,7 @@ const Bn = new zR(), VR = (e) => {
|
|
|
27817
27817
|
Zu(s ? "bottom-right" : "bottom-left"), i();
|
|
27818
27818
|
}, a = s ? tR : eR, u = s ? "Move right" : "Move left";
|
|
27819
27819
|
return t ? /* @__PURE__ */ E(
|
|
27820
|
-
|
|
27820
|
+
Wt,
|
|
27821
27821
|
{
|
|
27822
27822
|
className: x(
|
|
27823
27823
|
n,
|
|
@@ -28089,7 +28089,7 @@ const Bn = new zR(), VR = (e) => {
|
|
|
28089
28089
|
xn(!1), $r(!0), hc();
|
|
28090
28090
|
};
|
|
28091
28091
|
return t ? /* @__PURE__ */ E(
|
|
28092
|
-
|
|
28092
|
+
Wt,
|
|
28093
28093
|
{
|
|
28094
28094
|
className: x(
|
|
28095
28095
|
n,
|
|
@@ -28125,7 +28125,7 @@ const Bn = new zR(), VR = (e) => {
|
|
|
28125
28125
|
To("modal"), r();
|
|
28126
28126
|
};
|
|
28127
28127
|
return t ? /* @__PURE__ */ E(
|
|
28128
|
-
|
|
28128
|
+
Wt,
|
|
28129
28129
|
{
|
|
28130
28130
|
className: x(
|
|
28131
28131
|
n,
|
|
@@ -28135,7 +28135,7 @@ const Bn = new zR(), VR = (e) => {
|
|
|
28135
28135
|
ariaLabel: "Expand",
|
|
28136
28136
|
title: "Expand",
|
|
28137
28137
|
onClick: i,
|
|
28138
|
-
icon: /* @__PURE__ */ E(
|
|
28138
|
+
icon: /* @__PURE__ */ E(Wf, {})
|
|
28139
28139
|
}
|
|
28140
28140
|
) : /* @__PURE__ */ G(
|
|
28141
28141
|
"button",
|
|
@@ -28148,7 +28148,7 @@ const Bn = new zR(), VR = (e) => {
|
|
|
28148
28148
|
),
|
|
28149
28149
|
onClick: i,
|
|
28150
28150
|
children: [
|
|
28151
|
-
/* @__PURE__ */ E(
|
|
28151
|
+
/* @__PURE__ */ E(Wf, {}),
|
|
28152
28152
|
"Show modal"
|
|
28153
28153
|
]
|
|
28154
28154
|
}
|
|
@@ -28460,7 +28460,7 @@ function Rv(e) {
|
|
|
28460
28460
|
}
|
|
28461
28461
|
function vv(e) {
|
|
28462
28462
|
const t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
28463
|
-
n.type, n.identifier =
|
|
28463
|
+
n.type, n.identifier = jt(
|
|
28464
28464
|
this.sliceSerialize(e)
|
|
28465
28465
|
).toLowerCase(), n.label = t;
|
|
28466
28466
|
}
|
|
@@ -28469,7 +28469,7 @@ function kv(e) {
|
|
|
28469
28469
|
}
|
|
28470
28470
|
function Lv(e) {
|
|
28471
28471
|
const t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
28472
|
-
n.type, n.identifier =
|
|
28472
|
+
n.type, n.identifier = jt(
|
|
28473
28473
|
this.sliceSerialize(e)
|
|
28474
28474
|
).toLowerCase(), n.label = t;
|
|
28475
28475
|
}
|
|
@@ -28579,14 +28579,14 @@ function Yv() {
|
|
|
28579
28579
|
function Gv(e) {
|
|
28580
28580
|
return e.length;
|
|
28581
28581
|
}
|
|
28582
|
-
function
|
|
28582
|
+
function jv(e, t) {
|
|
28583
28583
|
const n = t || {}, r = (n.align || []).concat(), i = n.stringLength || Gv, s = [], o = [], a = [], u = [];
|
|
28584
28584
|
let c = 0, l = -1;
|
|
28585
28585
|
for (; ++l < e.length; ) {
|
|
28586
28586
|
const b = [], T = [];
|
|
28587
28587
|
let m = -1;
|
|
28588
28588
|
for (e[l].length > c && (c = e[l].length); ++m < e[l].length; ) {
|
|
28589
|
-
const y =
|
|
28589
|
+
const y = Wv(e[l][m]);
|
|
28590
28590
|
if (n.alignDelimiters !== !1) {
|
|
28591
28591
|
const S = i(y);
|
|
28592
28592
|
T[m] = S, (u[m] === void 0 || S > u[m]) && (u[m] = S);
|
|
@@ -28641,7 +28641,7 @@ function Wv(e, t) {
|
|
|
28641
28641
|
return g.join(`
|
|
28642
28642
|
`);
|
|
28643
28643
|
}
|
|
28644
|
-
function
|
|
28644
|
+
function Wv(e) {
|
|
28645
28645
|
return e == null ? "" : String(e);
|
|
28646
28646
|
}
|
|
28647
28647
|
function th(e) {
|
|
@@ -29321,7 +29321,7 @@ function kk(e) {
|
|
|
29321
29321
|
return y(), m(), S;
|
|
29322
29322
|
}
|
|
29323
29323
|
function c(h, g) {
|
|
29324
|
-
return
|
|
29324
|
+
return jv(h, {
|
|
29325
29325
|
align: g,
|
|
29326
29326
|
// @ts-expect-error: `markdown-table` types should support `null`.
|
|
29327
29327
|
alignDelimiters: r,
|
|
@@ -29425,12 +29425,12 @@ const Hk = {
|
|
|
29425
29425
|
tokenize: Gk,
|
|
29426
29426
|
partial: !0
|
|
29427
29427
|
}, Gg = {
|
|
29428
|
-
tokenize: Wk,
|
|
29429
|
-
partial: !0
|
|
29430
|
-
}, Wg = {
|
|
29431
29428
|
tokenize: jk,
|
|
29432
29429
|
partial: !0
|
|
29433
29430
|
}, jg = {
|
|
29431
|
+
tokenize: Wk,
|
|
29432
|
+
partial: !0
|
|
29433
|
+
}, Wg = {
|
|
29434
29434
|
tokenize: Xk,
|
|
29435
29435
|
partial: !0
|
|
29436
29436
|
}, $k = {
|
|
@@ -29489,7 +29489,7 @@ function qk(e, t, n) {
|
|
|
29489
29489
|
const r = this;
|
|
29490
29490
|
return i;
|
|
29491
29491
|
function i(o) {
|
|
29492
|
-
return o !== 87 && o !== 119 || !Qg.call(r, r.previous) || pl(r.events) ? n(o) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(Hk, e.attempt(Gg, e.attempt(
|
|
29492
|
+
return o !== 87 && o !== 119 || !Qg.call(r, r.previous) || pl(r.events) ? n(o) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(Hk, e.attempt(Gg, e.attempt(jg, s), n), n)(o));
|
|
29493
29493
|
}
|
|
29494
29494
|
function s(o) {
|
|
29495
29495
|
return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), t(o);
|
|
@@ -29516,7 +29516,7 @@ function Yk(e, t, n) {
|
|
|
29516
29516
|
return d === 47 ? (e.consume(d), s ? c : (s = !0, u)) : n(d);
|
|
29517
29517
|
}
|
|
29518
29518
|
function c(d) {
|
|
29519
|
-
return d === null || to(d) || $e(d) || pr(d) || Io(d) ? n(d) : e.attempt(Gg, e.attempt(
|
|
29519
|
+
return d === null || to(d) || $e(d) || pr(d) || Io(d) ? n(d) : e.attempt(Gg, e.attempt(jg, l), n)(d);
|
|
29520
29520
|
}
|
|
29521
29521
|
function l(d) {
|
|
29522
29522
|
return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), t(d);
|
|
@@ -29532,11 +29532,11 @@ function Gk(e, t, n) {
|
|
|
29532
29532
|
return o === null ? n(o) : t(o);
|
|
29533
29533
|
}
|
|
29534
29534
|
}
|
|
29535
|
-
function
|
|
29535
|
+
function jk(e, t, n) {
|
|
29536
29536
|
let r, i, s;
|
|
29537
29537
|
return o;
|
|
29538
29538
|
function o(c) {
|
|
29539
|
-
return c === 46 || c === 95 ? e.check(
|
|
29539
|
+
return c === 46 || c === 95 ? e.check(Wg, u, a)(c) : c === null || $e(c) || pr(c) || c !== 45 && Io(c) ? u(c) : (s = !0, e.consume(c), o);
|
|
29540
29540
|
}
|
|
29541
29541
|
function a(c) {
|
|
29542
29542
|
return c === 95 ? r = !0 : (i = r, r = void 0), e.consume(c), o;
|
|
@@ -29545,11 +29545,11 @@ function Wk(e, t, n) {
|
|
|
29545
29545
|
return i || r || !s ? n(c) : t(c);
|
|
29546
29546
|
}
|
|
29547
29547
|
}
|
|
29548
|
-
function
|
|
29548
|
+
function Wk(e, t) {
|
|
29549
29549
|
let n = 0, r = 0;
|
|
29550
29550
|
return i;
|
|
29551
29551
|
function i(o) {
|
|
29552
|
-
return o === 40 ? (n++, e.consume(o), i) : o === 41 && r < n ? s(o) : o === 33 || o === 34 || o === 38 || o === 39 || o === 41 || o === 42 || o === 44 || o === 46 || o === 58 || o === 59 || o === 60 || o === 63 || o === 93 || o === 95 || o === 126 ? e.check(
|
|
29552
|
+
return o === 40 ? (n++, e.consume(o), i) : o === 41 && r < n ? s(o) : o === 33 || o === 34 || o === 38 || o === 39 || o === 41 || o === 42 || o === 44 || o === 46 || o === 58 || o === 59 || o === 60 || o === 63 || o === 93 || o === 95 || o === 126 ? e.check(Wg, t, s)(o) : o === null || $e(o) || pr(o) ? t(o) : (e.consume(o), i);
|
|
29553
29553
|
}
|
|
29554
29554
|
function s(o) {
|
|
29555
29555
|
return o === 41 && r++, e.consume(o), i;
|
|
@@ -29658,7 +29658,7 @@ function Zk(e, t, n) {
|
|
|
29658
29658
|
function a(u) {
|
|
29659
29659
|
if (!o || !o._balanced)
|
|
29660
29660
|
return n(u);
|
|
29661
|
-
const c =
|
|
29661
|
+
const c = jt(r.sliceSerialize({
|
|
29662
29662
|
start: o.end,
|
|
29663
29663
|
end: r.now()
|
|
29664
29664
|
}));
|
|
@@ -29737,7 +29737,7 @@ function tL(e, t, n) {
|
|
|
29737
29737
|
if (d === 93) {
|
|
29738
29738
|
e.exit("chunkString");
|
|
29739
29739
|
const p = e.exit("gfmFootnoteCallString");
|
|
29740
|
-
return i.includes(
|
|
29740
|
+
return i.includes(jt(r.sliceSerialize(p))) ? (e.enter("gfmFootnoteCallLabelMarker"), e.consume(d), e.exit("gfmFootnoteCallLabelMarker"), e.exit("gfmFootnoteCall"), t) : n(d);
|
|
29741
29741
|
}
|
|
29742
29742
|
return $e(d) || (o = !0), s++, e.consume(d), d === 92 ? l : c;
|
|
29743
29743
|
}
|
|
@@ -29767,7 +29767,7 @@ function nL(e, t, n) {
|
|
|
29767
29767
|
if (g === 93) {
|
|
29768
29768
|
e.exit("chunkString");
|
|
29769
29769
|
const b = e.exit("gfmFootnoteDefinitionLabelString");
|
|
29770
|
-
return s =
|
|
29770
|
+
return s = jt(r.sliceSerialize(b)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(g), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), p;
|
|
29771
29771
|
}
|
|
29772
29772
|
return $e(g) || (a = !0), o++, e.consume(g), g === 92 ? d : l;
|
|
29773
29773
|
}
|
|
@@ -29962,9 +29962,9 @@ function dL(e, t, n) {
|
|
|
29962
29962
|
function a(w) {
|
|
29963
29963
|
let z = r.events.length - 1;
|
|
29964
29964
|
for (; z > -1; ) {
|
|
29965
|
-
const
|
|
29966
|
-
if (
|
|
29967
|
-
|
|
29965
|
+
const W = r.events[z][1].type;
|
|
29966
|
+
if (W === "lineEnding" || // Note: markdown-rs uses `whitespace` instead of `linePrefix`
|
|
29967
|
+
W === "linePrefix") z--;
|
|
29968
29968
|
else break;
|
|
29969
29969
|
}
|
|
29970
29970
|
const B = z > -1 ? r.events[z][1].type : null, Y = B === "tableHead" || B === "tableRow" ? C : u;
|
|
@@ -30196,7 +30196,7 @@ const Gn = () => zt(Fp), Ar = () => {
|
|
|
30196
30196
|
function SL(e) {
|
|
30197
30197
|
return e.includes("-") && e === e.toLowerCase();
|
|
30198
30198
|
}
|
|
30199
|
-
function
|
|
30199
|
+
function jn({ tagName: e, props: t, label: n }) {
|
|
30200
30200
|
const r = re(null), i = re(null), s = re(e), o = re(null);
|
|
30201
30201
|
return Ne(() => {
|
|
30202
30202
|
const a = r.current;
|
|
@@ -30402,7 +30402,7 @@ const xL = ({
|
|
|
30402
30402
|
payload: i != null ? i : {},
|
|
30403
30403
|
api: l
|
|
30404
30404
|
};
|
|
30405
|
-
return /* @__PURE__ */ E(
|
|
30405
|
+
return /* @__PURE__ */ E(jn, { tagName: d, props: w, label: "ProductTile" });
|
|
30406
30406
|
}
|
|
30407
30407
|
const {
|
|
30408
30408
|
id: p,
|
|
@@ -30522,7 +30522,7 @@ const xL = ({
|
|
|
30522
30522
|
}) => {
|
|
30523
30523
|
const { showProductCaptions: o } = Le(), { overrides: a, isInitialized: u } = Gn(), c = Ar(), l = u ? a.ProductCarousel : void 0;
|
|
30524
30524
|
return l ? /* @__PURE__ */ E(
|
|
30525
|
-
|
|
30525
|
+
jn,
|
|
30526
30526
|
{
|
|
30527
30527
|
tagName: l,
|
|
30528
30528
|
props: {
|
|
@@ -30930,7 +30930,7 @@ const rE = (e) => {
|
|
|
30930
30930
|
api: b
|
|
30931
30931
|
};
|
|
30932
30932
|
return /* @__PURE__ */ G("div", { className: x(i, `${_}-cart`), children: [
|
|
30933
|
-
/* @__PURE__ */ E(eE, { overrideName: "Cart", children: /* @__PURE__ */ E(
|
|
30933
|
+
/* @__PURE__ */ E(eE, { overrideName: "Cart", children: /* @__PURE__ */ E(jn, { tagName: e, props: T, label: "Cart" }) }),
|
|
30934
30934
|
/* @__PURE__ */ E(
|
|
30935
30935
|
iE,
|
|
30936
30936
|
{
|
|
@@ -30975,11 +30975,11 @@ const rE = (e) => {
|
|
|
30975
30975
|
couponsDiscount: z,
|
|
30976
30976
|
bodyMessage: B,
|
|
30977
30977
|
footerMessage: Y,
|
|
30978
|
-
checkoutButtonUrl:
|
|
30978
|
+
checkoutButtonUrl: W,
|
|
30979
30979
|
expressPaymentUrl: X
|
|
30980
30980
|
} = e, ae = nE(m, e.couponsApplied, e.coupons), Z = () => {
|
|
30981
|
-
const
|
|
30982
|
-
!
|
|
30981
|
+
const j = u.trim();
|
|
30982
|
+
!j || h || (T(j), c(""));
|
|
30983
30983
|
};
|
|
30984
30984
|
return /* @__PURE__ */ G(
|
|
30985
30985
|
"div",
|
|
@@ -30997,7 +30997,7 @@ const rE = (e) => {
|
|
|
30997
30997
|
type: "button",
|
|
30998
30998
|
className: x(r, `${_}-cart-summary`),
|
|
30999
30999
|
"aria-expanded": o,
|
|
31000
|
-
onClick: () => a((
|
|
31000
|
+
onClick: () => a((j) => !j),
|
|
31001
31001
|
children: [
|
|
31002
31002
|
/* @__PURE__ */ E("span", { className: x(r, `${_}-cart-summary-text`), children: /* @__PURE__ */ E(
|
|
31003
31003
|
di,
|
|
@@ -31021,17 +31021,17 @@ const rE = (e) => {
|
|
|
31021
31021
|
),
|
|
31022
31022
|
o && /* @__PURE__ */ G("div", { className: x(r, `${_}-cart-expanded`), children: [
|
|
31023
31023
|
/* @__PURE__ */ G("div", { className: x(r, `${_}-cart-items-section`), children: [
|
|
31024
|
-
/* @__PURE__ */ E("ul", { className: x(r, `${_}-cart-items`), children: m.map((
|
|
31024
|
+
/* @__PURE__ */ E("ul", { className: x(r, `${_}-cart-items`), children: m.map((j) => /* @__PURE__ */ E(
|
|
31025
31025
|
HL,
|
|
31026
31026
|
{
|
|
31027
|
-
item:
|
|
31027
|
+
item: j,
|
|
31028
31028
|
currencyCode: y,
|
|
31029
31029
|
disabled: h,
|
|
31030
31030
|
globalClassName: r,
|
|
31031
31031
|
onRemove: g,
|
|
31032
31032
|
onQuantityChange: b
|
|
31033
31033
|
},
|
|
31034
|
-
|
|
31034
|
+
j.itemId
|
|
31035
31035
|
)) }),
|
|
31036
31036
|
ae.length > 0 && /* @__PURE__ */ E(
|
|
31037
31037
|
"div",
|
|
@@ -31041,14 +31041,14 @@ const rE = (e) => {
|
|
|
31041
31041
|
`${_}-cart-chips`,
|
|
31042
31042
|
`${_}-cart-applied-coupons`
|
|
31043
31043
|
),
|
|
31044
|
-
children: ae.map((
|
|
31044
|
+
children: ae.map((j) => /* @__PURE__ */ E(
|
|
31045
31045
|
Zo,
|
|
31046
31046
|
{
|
|
31047
|
-
code:
|
|
31048
|
-
inactive: !
|
|
31047
|
+
code: j.code,
|
|
31048
|
+
inactive: !j.applied,
|
|
31049
31049
|
globalClassName: r
|
|
31050
31050
|
},
|
|
31051
|
-
|
|
31051
|
+
j.code
|
|
31052
31052
|
))
|
|
31053
31053
|
}
|
|
31054
31054
|
)
|
|
@@ -31154,9 +31154,9 @@ const rE = (e) => {
|
|
|
31154
31154
|
"aria-label": "Enter coupon code",
|
|
31155
31155
|
value: u,
|
|
31156
31156
|
disabled: h,
|
|
31157
|
-
onChange: (
|
|
31158
|
-
onKeyDown: (
|
|
31159
|
-
|
|
31157
|
+
onChange: (j) => c(j.target.value),
|
|
31158
|
+
onKeyDown: (j) => {
|
|
31159
|
+
j.key === "Enter" && (j.preventDefault(), Z());
|
|
31160
31160
|
}
|
|
31161
31161
|
}
|
|
31162
31162
|
)
|
|
@@ -31177,7 +31177,7 @@ const rE = (e) => {
|
|
|
31177
31177
|
iE,
|
|
31178
31178
|
{
|
|
31179
31179
|
expressPaymentUrl: X,
|
|
31180
|
-
checkoutButtonUrl:
|
|
31180
|
+
checkoutButtonUrl: W,
|
|
31181
31181
|
globalClassName: r,
|
|
31182
31182
|
openLinksInNewTab: i
|
|
31183
31183
|
}
|
|
@@ -31421,7 +31421,7 @@ const rE = (e) => {
|
|
|
31421
31421
|
onError: a
|
|
31422
31422
|
}
|
|
31423
31423
|
);
|
|
31424
|
-
},
|
|
31424
|
+
}, jL = ({
|
|
31425
31425
|
images: e,
|
|
31426
31426
|
altText: t,
|
|
31427
31427
|
globalClassName: n
|
|
@@ -31502,7 +31502,7 @@ const rE = (e) => {
|
|
|
31502
31502
|
]
|
|
31503
31503
|
}
|
|
31504
31504
|
);
|
|
31505
|
-
},
|
|
31505
|
+
}, WL = "color", zs = (e) => (e != null ? e : "").toLowerCase() === WL, XL = (e) => e.replace(/(^|\/)large\//, "$1medium/"), sE = (e, t) => !e.vattr || !t ? !1 : e.vattr.some((n) => zs(n.id) && n.vals.includes(t)), oE = (e, t) => {
|
|
31506
31506
|
const n = XL(t), r = qs(e, n);
|
|
31507
31507
|
return n === t ? { src: r } : { src: r, fallbackSrc: qs(e, t) };
|
|
31508
31508
|
}, KL = ["hi-res", "large", "medium", "small"], aE = (e, t) => {
|
|
@@ -31674,7 +31674,7 @@ const rE = (e) => {
|
|
|
31674
31674
|
api: r
|
|
31675
31675
|
};
|
|
31676
31676
|
return /* @__PURE__ */ E(
|
|
31677
|
-
|
|
31677
|
+
jn,
|
|
31678
31678
|
{
|
|
31679
31679
|
tagName: i,
|
|
31680
31680
|
props: s,
|
|
@@ -31689,24 +31689,24 @@ const rE = (e) => {
|
|
|
31689
31689
|
openLinksInNewTab: n,
|
|
31690
31690
|
isCartMgmtSupported: r = !1
|
|
31691
31691
|
}) => {
|
|
31692
|
-
var At, De, ot, Je, ze, ge,
|
|
31692
|
+
var At, De, ot, Je, ze, ge, je, dt;
|
|
31693
31693
|
const { addToCart: i, sendMessage: s, loading: o } = it(), a = Ue(() => t6(e.data), [e.data]), u = (At = a.vattr) != null ? At : [], [c, l] = Se(
|
|
31694
31694
|
() => dh(a)
|
|
31695
31695
|
), [d, p] = Se(!1);
|
|
31696
31696
|
Ne(() => {
|
|
31697
31697
|
l(dh(a)), p(!1);
|
|
31698
31698
|
}, [a, e.id]);
|
|
31699
|
-
const h = n6(a.vmat, c), g = (ot = (De = a.quantity) == null ? void 0 : De.minQuantity) != null ? ot : 1, b = (ze = (Je = a.quantity) == null ? void 0 : Je.maxQuantity) != null ? ze : Number.POSITIVE_INFINITY, T = (
|
|
31699
|
+
const h = n6(a.vmat, c), g = (ot = (De = a.quantity) == null ? void 0 : De.minQuantity) != null ? ot : 1, b = (ze = (Je = a.quantity) == null ? void 0 : Je.maxQuantity) != null ? ze : Number.POSITIVE_INFINITY, T = (je = (ge = a.quantity) == null ? void 0 : ge.increment) != null ? je : 1, [m, y] = Se(g), [S, v] = Se(!1), L = re(!1);
|
|
31700
31700
|
Ne(() => {
|
|
31701
31701
|
S && (o ? L.current = !0 : L.current && (L.current = !1, v(!1)));
|
|
31702
31702
|
}, [S, o]);
|
|
31703
31703
|
const C = u.find((fe) => zs(fe.id)), M = u.filter((fe) => !zs(fe.id)), q = C ? c[C.id] : void 0, H = Ue(() => ZL(a, q), [a, q]), w = Ue(
|
|
31704
31704
|
() => i6(a, c),
|
|
31705
31705
|
[a, c]
|
|
31706
|
-
), z = Ue(() => s6(a), [a]), B = z ? Du($(I({}, z.active), { currencyCode: a.ccy })) : null, Y = z != null && z.compare ? Du($(I({}, z.compare), { currencyCode: a.ccy })) : null,
|
|
31706
|
+
), z = Ue(() => s6(a), [a]), B = z ? Du($(I({}, z.active), { currencyCode: a.ccy })) : null, Y = z != null && z.compare ? Du($(I({}, z.compare), { currencyCode: a.ccy })) : null, W = lh(a, c), [X, ae] = Se(m), Z = re(W), j = Z.current === W ? X : m;
|
|
31707
31707
|
Ne(() => {
|
|
31708
|
-
if (Z.current !==
|
|
31709
|
-
Z.current =
|
|
31708
|
+
if (Z.current !== W) {
|
|
31709
|
+
Z.current = W, ae(m);
|
|
31710
31710
|
return;
|
|
31711
31711
|
}
|
|
31712
31712
|
const fe = window.setTimeout(
|
|
@@ -31714,13 +31714,13 @@ const rE = (e) => {
|
|
|
31714
31714
|
o6
|
|
31715
31715
|
);
|
|
31716
31716
|
return () => window.clearTimeout(fe);
|
|
31717
|
-
}, [m,
|
|
31717
|
+
}, [m, W]);
|
|
31718
31718
|
const ue = m === X, N = Ue(
|
|
31719
|
-
() => h && (Z.current !==
|
|
31719
|
+
() => h && (Z.current !== W || ue) ? ML(a.expressPaymentUrl, W, j) : null,
|
|
31720
31720
|
[
|
|
31721
31721
|
a.expressPaymentUrl,
|
|
31722
|
-
j,
|
|
31723
31722
|
W,
|
|
31723
|
+
j,
|
|
31724
31724
|
h,
|
|
31725
31725
|
ue
|
|
31726
31726
|
]
|
|
@@ -31893,7 +31893,7 @@ const rE = (e) => {
|
|
|
31893
31893
|
] });
|
|
31894
31894
|
return /* @__PURE__ */ E("div", { className: x(t, `${_}-msg-pdp`), children: /* @__PURE__ */ G("div", { className: x(t, `${_}-msg-pdp__card`), children: [
|
|
31895
31895
|
/* @__PURE__ */ E("div", { className: x(t, `${_}-msg-pdp__gallery`), children: /* @__PURE__ */ E(
|
|
31896
|
-
|
|
31896
|
+
jL,
|
|
31897
31897
|
{
|
|
31898
31898
|
images: H,
|
|
31899
31899
|
altText: a.name,
|
|
@@ -31901,7 +31901,7 @@ const rE = (e) => {
|
|
|
31901
31901
|
}
|
|
31902
31902
|
) }),
|
|
31903
31903
|
/* @__PURE__ */ G("div", { className: x(t, `${_}-msg-pdp__content`), children: [
|
|
31904
|
-
a.slugUrl ? /* @__PURE__ */ E(
|
|
31904
|
+
a.slugUrl && !r ? /* @__PURE__ */ E(
|
|
31905
31905
|
"a",
|
|
31906
31906
|
{
|
|
31907
31907
|
href: a.slugUrl,
|
|
@@ -31985,7 +31985,7 @@ const rE = (e) => {
|
|
|
31985
31985
|
),
|
|
31986
31986
|
/* @__PURE__ */ G("div", { className: x(t, `${_}-msg-pdp__stepper`), children: [
|
|
31987
31987
|
/* @__PURE__ */ E(
|
|
31988
|
-
|
|
31988
|
+
Wt,
|
|
31989
31989
|
{
|
|
31990
31990
|
className: `${_}-msg-pdp__stepper-btn`,
|
|
31991
31991
|
ariaLabel: "Decrease quantity",
|
|
@@ -32002,7 +32002,7 @@ const rE = (e) => {
|
|
|
32002
32002
|
}
|
|
32003
32003
|
),
|
|
32004
32004
|
/* @__PURE__ */ E(
|
|
32005
|
-
|
|
32005
|
+
Wt,
|
|
32006
32006
|
{
|
|
32007
32007
|
className: `${_}-msg-pdp__stepper-btn`,
|
|
32008
32008
|
ariaLabel: "Increase quantity",
|
|
@@ -32044,7 +32044,7 @@ const rE = (e) => {
|
|
|
32044
32044
|
const { isCartMgmtSupported: i } = Le(), { overrides: s, isInitialized: o } = Gn(), a = Ar(), u = o ? s.ProductComparison : void 0;
|
|
32045
32045
|
if (u)
|
|
32046
32046
|
return /* @__PURE__ */ E(
|
|
32047
|
-
|
|
32047
|
+
jn,
|
|
32048
32048
|
{
|
|
32049
32049
|
tagName: u,
|
|
32050
32050
|
props: {
|
|
@@ -32091,7 +32091,7 @@ const rE = (e) => {
|
|
|
32091
32091
|
loading: "eager"
|
|
32092
32092
|
}
|
|
32093
32093
|
),
|
|
32094
|
-
d.slugUrl ? /* @__PURE__ */ E(
|
|
32094
|
+
d.slugUrl && !i ? /* @__PURE__ */ E(
|
|
32095
32095
|
"a",
|
|
32096
32096
|
{
|
|
32097
32097
|
href: d.slugUrl,
|
|
@@ -32099,7 +32099,8 @@ const rE = (e) => {
|
|
|
32099
32099
|
rel: "noopener",
|
|
32100
32100
|
className: x(
|
|
32101
32101
|
n,
|
|
32102
|
-
`${_}-product-comparison__name
|
|
32102
|
+
`${_}-product-comparison__name`,
|
|
32103
|
+
`${_}-product-comparison__name-link`
|
|
32103
32104
|
),
|
|
32104
32105
|
"aria-label": `Go to product page for ${d.name}`,
|
|
32105
32106
|
onClick: (L) => Jo({
|
|
@@ -32169,7 +32170,7 @@ const rE = (e) => {
|
|
|
32169
32170
|
onSuggestionClick: i
|
|
32170
32171
|
}) => {
|
|
32171
32172
|
const { overrides: s, isInitialized: o } = Gn(), a = Ar(), u = o ? s.Suggestions : void 0;
|
|
32172
|
-
return u ? /* @__PURE__ */ E(
|
|
32173
|
+
return u ? /* @__PURE__ */ E(jn, { tagName: u, props: {
|
|
32173
32174
|
name: "Suggestions",
|
|
32174
32175
|
payload: { suggestions: e },
|
|
32175
32176
|
api: a
|
|
@@ -32195,7 +32196,7 @@ const rE = (e) => {
|
|
|
32195
32196
|
[e.response]
|
|
32196
32197
|
);
|
|
32197
32198
|
return /* @__PURE__ */ E(Hn, { children: h.map((g, b) => {
|
|
32198
|
-
var T, m, y, S, v, L, C, M, q, H, w, z, B, Y,
|
|
32199
|
+
var T, m, y, S, v, L, C, M, q, H, w, z, B, Y, W, X, ae, Z, j, ue, N, ce, he, R, me, Ge;
|
|
32199
32200
|
switch (g.type) {
|
|
32200
32201
|
case "markdown": {
|
|
32201
32202
|
const te = (m = (T = g.data) == null ? void 0 : T.content) != null ? m : "";
|
|
@@ -32248,7 +32249,7 @@ const rE = (e) => {
|
|
|
32248
32249
|
`${g.type}-${(Y = g.index) != null ? Y : b}`
|
|
32249
32250
|
);
|
|
32250
32251
|
case "cart": {
|
|
32251
|
-
const te = (ae = (X = (
|
|
32252
|
+
const te = (ae = (X = (W = g.data) == null ? void 0 : W.cart) == null ? void 0 : X.cartSummary) == null ? void 0 : ae.cartDetails;
|
|
32252
32253
|
return te ? /* @__PURE__ */ E(
|
|
32253
32254
|
zL,
|
|
32254
32255
|
{
|
|
@@ -32262,7 +32263,7 @@ const rE = (e) => {
|
|
|
32262
32263
|
) : null;
|
|
32263
32264
|
}
|
|
32264
32265
|
case "order_confirmation": {
|
|
32265
|
-
const te = g.data, Te = (N = (
|
|
32266
|
+
const te = g.data, Te = (N = (j = te == null ? void 0 : te.order) == null ? void 0 : j.orderDetails) != null ? N : (ue = te == null ? void 0 : te.data) == null ? void 0 : ue.orderConfirmation;
|
|
32266
32267
|
return Te ? /* @__PURE__ */ E(
|
|
32267
32268
|
YL,
|
|
32268
32269
|
{
|
|
@@ -32285,7 +32286,7 @@ const rE = (e) => {
|
|
|
32285
32286
|
eE,
|
|
32286
32287
|
{
|
|
32287
32288
|
overrideName: Te,
|
|
32288
|
-
children: /* @__PURE__ */ E(
|
|
32289
|
+
children: /* @__PURE__ */ E(jn, { tagName: tt, props: {
|
|
32289
32290
|
name: Te,
|
|
32290
32291
|
payload: te,
|
|
32291
32292
|
api: p
|
|
@@ -32616,11 +32617,27 @@ const d6 = ({
|
|
|
32616
32617
|
T
|
|
32617
32618
|
]), { endRef: o, showJumpToLatest: p, scrollToLatest: g };
|
|
32618
32619
|
}, b6 = 4e3, ph = (e) => (typeof e == "string" ? e : "").replace(/<[^>]*>/g, " ").replace(/!\[([^\]]*)\]\([^)]*\)/g, "$1").replace(/\[([^\]]+)\]\([^)]*\)/g, "$1").replace(/[`*_~#>|]+/g, " ").replace(/\s+/g, " ").trim().slice(0, b6), Oi = "Assistant response available", y6 = (e) => {
|
|
32620
|
+
if (typeof e != "object" || e === null) return "";
|
|
32621
|
+
const t = e;
|
|
32622
|
+
if (t.type !== "product_carousel" || typeof t.data != "object" || t.data === null)
|
|
32623
|
+
return "";
|
|
32624
|
+
const n = t.data.products;
|
|
32625
|
+
if (!Array.isArray(n)) return "";
|
|
32626
|
+
if (n.length === 0) return "No products found.";
|
|
32627
|
+
const r = n.map((a) => {
|
|
32628
|
+
if (typeof a != "object" || a === null || Array.isArray(a)) return "";
|
|
32629
|
+
const u = a, c = typeof u.data == "object" && u.data !== null && !Array.isArray(u.data) ? u.data : null, l = typeof (c == null ? void 0 : c.name) == "string" ? c.name.trim() : "", d = typeof u.id == "string" ? u.id.trim() : "";
|
|
32630
|
+
return l || d;
|
|
32631
|
+
}).filter(Boolean), i = n.length === 1 ? "1 product found." : `${n.length} products found.`;
|
|
32632
|
+
if (r.length === 0) return i;
|
|
32633
|
+
const s = n.length === 1 ? "Product title" : "Product titles", o = `${i} ${s}: ${r.join("; ")}`;
|
|
32634
|
+
return /[.!?]$/.test(o) ? o : `${o}.`;
|
|
32635
|
+
}, _6 = (e) => {
|
|
32619
32636
|
var s, o;
|
|
32620
32637
|
if (typeof e != "string") return Oi;
|
|
32621
32638
|
const t = Ki(e), n = t ? null : So(e), r = (s = t == null ? void 0 : t.response) != null ? s : n ? [n] : null;
|
|
32622
32639
|
if (r)
|
|
32623
|
-
return r.
|
|
32640
|
+
return r.map((u) => u.type === "markdown" ? ph(u.data.content) : y6(u)).filter(Boolean).join(" ").trim() || Oi;
|
|
32624
32641
|
const i = e.trim();
|
|
32625
32642
|
try {
|
|
32626
32643
|
const a = JSON.parse(i);
|
|
@@ -32630,7 +32647,7 @@ const d6 = ({
|
|
|
32630
32647
|
if (i.startsWith("{") || i.startsWith("[")) return Oi;
|
|
32631
32648
|
}
|
|
32632
32649
|
return ph(e) || Oi;
|
|
32633
|
-
},
|
|
32650
|
+
}, S6 = ({
|
|
32634
32651
|
message: e,
|
|
32635
32652
|
announcementKey: t
|
|
32636
32653
|
}) => {
|
|
@@ -32642,17 +32659,17 @@ const d6 = ({
|
|
|
32642
32659
|
clearTimeout(i), clearTimeout(s);
|
|
32643
32660
|
};
|
|
32644
32661
|
}, [e, t]), /* @__PURE__ */ E("span", { className: `${_}-visually-hidden`, role: "status", "aria-atomic": "true", children: n });
|
|
32645
|
-
},
|
|
32662
|
+
}, A6 = () => {
|
|
32646
32663
|
const { messages: e } = it(), t = [...e].reverse().find((n) => n.role === "agent" && !n.restored);
|
|
32647
32664
|
return /* @__PURE__ */ E(
|
|
32648
|
-
|
|
32665
|
+
S6,
|
|
32649
32666
|
{
|
|
32650
|
-
message: t ?
|
|
32667
|
+
message: t ? _6(t.content) : "",
|
|
32651
32668
|
announcementKey: t == null ? void 0 : t.id
|
|
32652
32669
|
}
|
|
32653
32670
|
);
|
|
32654
|
-
},
|
|
32655
|
-
var Y,
|
|
32671
|
+
}, N6 = "You are offline or we couldn't reach the assistant. Check connection and try again.", gl = ({ isWidgetStandalone: e, isOpen: t }) => {
|
|
32672
|
+
var Y, W;
|
|
32656
32673
|
const { globalClassName: n, openLinksInNewTab: r, logger: i, autoScroll: s } = Le(), {
|
|
32657
32674
|
messages: o,
|
|
32658
32675
|
streamingBlocks: a,
|
|
@@ -32674,18 +32691,18 @@ const d6 = ({
|
|
|
32674
32691
|
}), S = o.length > 0, v = a.some(Qb), L = o[o.length - 1], C = L ? bp(L.content, "suggestions") : !1, M = S && (c || u) && !v && !C, q = d === "reconnecting" && !M, H = d === "error";
|
|
32675
32692
|
let w = null;
|
|
32676
32693
|
H ? w = {
|
|
32677
|
-
message: p != null ? p :
|
|
32694
|
+
message: p != null ? p : N6,
|
|
32678
32695
|
kind: "connection",
|
|
32679
32696
|
onRetry: b
|
|
32680
32697
|
} : h && (w = { message: h.message, kind: "send", onRetry: g });
|
|
32681
|
-
const z = (Y = w == null ? void 0 : w.message) != null ? Y : null, B = (
|
|
32698
|
+
const z = (Y = w == null ? void 0 : w.message) != null ? Y : null, B = (W = w == null ? void 0 : w.kind) != null ? W : null;
|
|
32682
32699
|
return Ne(() => {
|
|
32683
32700
|
z && (i == null || i.error("Error message shown to user", {
|
|
32684
32701
|
message: z,
|
|
32685
32702
|
kind: B
|
|
32686
32703
|
}));
|
|
32687
32704
|
}, [z, B, i]), /* @__PURE__ */ G(Hn, { children: [
|
|
32688
|
-
/* @__PURE__ */ E(
|
|
32705
|
+
/* @__PURE__ */ E(A6, {}),
|
|
32689
32706
|
c && !S && /* @__PURE__ */ E(
|
|
32690
32707
|
uv,
|
|
32691
32708
|
{
|
|
@@ -32759,7 +32776,7 @@ const d6 = ({
|
|
|
32759
32776
|
m && /* @__PURE__ */ E(p6, { globalClassName: n, onClick: () => y() }),
|
|
32760
32777
|
/* @__PURE__ */ E("div", { ref: T, "aria-hidden": "true" })
|
|
32761
32778
|
] });
|
|
32762
|
-
},
|
|
32779
|
+
}, O6 = () => /* @__PURE__ */ G(
|
|
32763
32780
|
"svg",
|
|
32764
32781
|
{
|
|
32765
32782
|
"aria-hidden": "true",
|
|
@@ -32781,7 +32798,7 @@ const d6 = ({
|
|
|
32781
32798
|
)
|
|
32782
32799
|
]
|
|
32783
32800
|
}
|
|
32784
|
-
),
|
|
32801
|
+
), x6 = () => /* @__PURE__ */ E(
|
|
32785
32802
|
"svg",
|
|
32786
32803
|
{
|
|
32787
32804
|
"aria-hidden": "true",
|
|
@@ -32799,15 +32816,15 @@ const d6 = ({
|
|
|
32799
32816
|
}
|
|
32800
32817
|
)
|
|
32801
32818
|
}
|
|
32802
|
-
),
|
|
32819
|
+
), C6 = (e, t) => e === 0 ? [] : e < 0 ? t : t.slice(-e), El = ({
|
|
32803
32820
|
progressStepsLimit: e,
|
|
32804
32821
|
steps: t,
|
|
32805
32822
|
globalClassName: n
|
|
32806
32823
|
}) => {
|
|
32807
32824
|
const { progressStepsLimit: r } = Le(), i = e != null ? e : r, { overrides: s, isInitialized: o } = Gn(), a = Ar();
|
|
32808
32825
|
if (t.length === 0 || i === 0) return null;
|
|
32809
|
-
const u =
|
|
32810
|
-
return c ? /* @__PURE__ */ E(
|
|
32826
|
+
const u = C6(i, t), c = o ? s.ProgressSteps : void 0;
|
|
32827
|
+
return c ? /* @__PURE__ */ E(jn, { tagName: c, props: {
|
|
32811
32828
|
name: "ProgressSteps",
|
|
32812
32829
|
payload: { steps: u },
|
|
32813
32830
|
api: a
|
|
@@ -32828,7 +32845,7 @@ const d6 = ({
|
|
|
32828
32845
|
`${_}-progress-step-icon`,
|
|
32829
32846
|
p ? "done" : "active"
|
|
32830
32847
|
),
|
|
32831
|
-
children: p ? /* @__PURE__ */ E(
|
|
32848
|
+
children: p ? /* @__PURE__ */ E(O6, {}) : /* @__PURE__ */ E(x6, {})
|
|
32832
32849
|
}
|
|
32833
32850
|
)
|
|
32834
32851
|
]
|
|
@@ -32836,7 +32853,7 @@ const d6 = ({
|
|
|
32836
32853
|
`${d}-${l}`
|
|
32837
32854
|
);
|
|
32838
32855
|
}) }) }) });
|
|
32839
|
-
},
|
|
32856
|
+
}, I6 = () => {
|
|
32840
32857
|
const { globalClassName: e, themeVariables: t, messageAlignment: n, enableDownloadTranscript: r } = Le(), { isAgentTyping: i, resetConversation: s, endConversation: o, progressSteps: a, downloadTranscript: u } = it(), c = Qo(), l = i, d = (p) => c(p);
|
|
32841
32858
|
return /* @__PURE__ */ G(
|
|
32842
32859
|
"div",
|
|
@@ -32890,23 +32907,23 @@ const d6 = ({
|
|
|
32890
32907
|
}, lE = (e) => {
|
|
32891
32908
|
var u;
|
|
32892
32909
|
const { children: t, disabled: n } = e, [r, i] = Se((u = e.container) == null ? void 0 : u.current), s = _E(
|
|
32893
|
-
|
|
32910
|
+
P6,
|
|
32894
32911
|
() => !1,
|
|
32895
32912
|
() => !0
|
|
32896
|
-
), { getRootNode: o } =
|
|
32913
|
+
), { getRootNode: o } = Wo();
|
|
32897
32914
|
if (Ne(() => {
|
|
32898
32915
|
i(() => {
|
|
32899
32916
|
var c;
|
|
32900
32917
|
return (c = e.container) == null ? void 0 : c.current;
|
|
32901
32918
|
});
|
|
32902
32919
|
}, [e.container]), s || n) return /* @__PURE__ */ E(Hn, { children: t });
|
|
32903
|
-
const a = r != null ? r :
|
|
32920
|
+
const a = r != null ? r : w6(o);
|
|
32904
32921
|
return /* @__PURE__ */ E(Hn, { children: yh.map(t, (c) => Hu(c, a)) });
|
|
32905
|
-
},
|
|
32922
|
+
}, w6 = (e) => {
|
|
32906
32923
|
const t = e == null ? void 0 : e(), n = t.getRootNode();
|
|
32907
32924
|
return gr(n) ? n : Tn(t).body;
|
|
32908
|
-
},
|
|
32909
|
-
},
|
|
32925
|
+
}, P6 = () => () => {
|
|
32926
|
+
}, R6 = () => {
|
|
32910
32927
|
const { globalClassName: e, themeVariables: t, messageAlignment: n } = Le(), { mode: r, status: i, dialogPosition: s, isDialogFullHeight: o, dialogWidth: a } = gn(), {
|
|
32911
32928
|
loading: u,
|
|
32912
32929
|
isAgentTyping: c,
|
|
@@ -32982,7 +32999,7 @@ const d6 = ({
|
|
|
32982
32999
|
) })
|
|
32983
33000
|
}
|
|
32984
33001
|
) : null;
|
|
32985
|
-
},
|
|
33002
|
+
}, v6 = () => {
|
|
32986
33003
|
const { globalClassName: e, themeVariables: t, messageAlignment: n } = Le(), { mode: r, status: i, isModalFullscreen: s } = gn(), {
|
|
32987
33004
|
loading: o,
|
|
32988
33005
|
isAgentTyping: a,
|
|
@@ -33079,12 +33096,12 @@ const d6 = ({
|
|
|
33079
33096
|
) })
|
|
33080
33097
|
}
|
|
33081
33098
|
) : null;
|
|
33082
|
-
},
|
|
33099
|
+
}, k6 = () => {
|
|
33083
33100
|
const e = gn(), {
|
|
33084
33101
|
status: { type: t, isMinimized: n }
|
|
33085
33102
|
} = e || { status: {} };
|
|
33086
|
-
return n ? /* @__PURE__ */ E(C_, {}) : t === "dialog" ? /* @__PURE__ */ E(
|
|
33087
|
-
},
|
|
33103
|
+
return n ? /* @__PURE__ */ E(C_, {}) : t === "dialog" ? /* @__PURE__ */ E(R6, {}) : t === "modal" ? /* @__PURE__ */ E(v6, {}) : /* @__PURE__ */ E(I6, {});
|
|
33104
|
+
}, L6 = () => {
|
|
33088
33105
|
const { setIsOpen: e, setIsInline: t, setElementId: n, setEntryType: r, setParams: i } = KR();
|
|
33089
33106
|
Ne(() => {
|
|
33090
33107
|
const s = (o) => {
|
|
@@ -33098,7 +33115,7 @@ const d6 = ({
|
|
|
33098
33115
|
}, mh = (e, t, n) => {
|
|
33099
33116
|
n !== void 0 ? e(t, n) : e(t);
|
|
33100
33117
|
};
|
|
33101
|
-
function
|
|
33118
|
+
function D6({
|
|
33102
33119
|
isReady: e,
|
|
33103
33120
|
hasError: t,
|
|
33104
33121
|
transmit: n
|
|
@@ -33122,7 +33139,7 @@ function L6({
|
|
|
33122
33139
|
const dE = {
|
|
33123
33140
|
copilot: "Ask Copilot",
|
|
33124
33141
|
messaging: "Ask a question"
|
|
33125
|
-
},
|
|
33142
|
+
}, M6 = ({
|
|
33126
33143
|
onSubmit: e,
|
|
33127
33144
|
disabled: t = !1
|
|
33128
33145
|
}) => {
|
|
@@ -33152,7 +33169,7 @@ const dE = {
|
|
|
33152
33169
|
}
|
|
33153
33170
|
),
|
|
33154
33171
|
/* @__PURE__ */ E(
|
|
33155
|
-
|
|
33172
|
+
Wt,
|
|
33156
33173
|
{
|
|
33157
33174
|
className: x(n, `${_}-prompts-input-submit-button`),
|
|
33158
33175
|
type: "submit",
|
|
@@ -33164,7 +33181,7 @@ const dE = {
|
|
|
33164
33181
|
]
|
|
33165
33182
|
}
|
|
33166
33183
|
);
|
|
33167
|
-
},
|
|
33184
|
+
}, B6 = () => {
|
|
33168
33185
|
const { globalClassName: e, mode: t } = Le(), { placeholder: n } = Xo(), r = n || dE[t];
|
|
33169
33186
|
return /* @__PURE__ */ G("div", { className: x(e, `${_}-prompts-header`), children: [
|
|
33170
33187
|
/* @__PURE__ */ E(
|
|
@@ -33198,17 +33215,17 @@ const dE = {
|
|
|
33198
33215
|
]
|
|
33199
33216
|
}
|
|
33200
33217
|
);
|
|
33201
|
-
},
|
|
33218
|
+
}, F6 = "Ask me something else", U6 = ({
|
|
33202
33219
|
label: e,
|
|
33203
33220
|
disabled: t = !1
|
|
33204
33221
|
}) => /* @__PURE__ */ E(
|
|
33205
33222
|
fE,
|
|
33206
33223
|
{
|
|
33207
|
-
label: e ||
|
|
33224
|
+
label: e || F6,
|
|
33208
33225
|
disabled: t,
|
|
33209
33226
|
onClick: () => xn(!0)
|
|
33210
33227
|
}
|
|
33211
|
-
),
|
|
33228
|
+
), H6 = ({
|
|
33212
33229
|
onPromptClick: e,
|
|
33213
33230
|
disabled: t = !1
|
|
33214
33231
|
}) => {
|
|
@@ -33228,10 +33245,10 @@ const dE = {
|
|
|
33228
33245
|
},
|
|
33229
33246
|
a
|
|
33230
33247
|
)),
|
|
33231
|
-
!s && /* @__PURE__ */ E(
|
|
33248
|
+
!s && /* @__PURE__ */ E(U6, { label: i, disabled: t })
|
|
33232
33249
|
] });
|
|
33233
|
-
},
|
|
33234
|
-
const { globalClassName: e, themeVariables: t, enablePageContext: n } = Le(), { isOpen: r, elementId: i, promptsDisplay: s } = Xo(), { isConnected: o, sessionExpired: a, sendMessage: u, connectionStatus: c } = it(), { productId: l } = Cg(), d = s !== "buttons", p = s !== "input", [h, g] = Se(null), b = c === "error", T = c === "connecting", m = Ap(o, a), y =
|
|
33250
|
+
}, $6 = () => {
|
|
33251
|
+
const { globalClassName: e, themeVariables: t, enablePageContext: n } = Le(), { isOpen: r, elementId: i, promptsDisplay: s } = Xo(), { isConnected: o, sessionExpired: a, sendMessage: u, connectionStatus: c } = it(), { productId: l } = Cg(), d = s !== "buttons", p = s !== "input", [h, g] = Se(null), b = c === "error", T = c === "connecting", m = Ap(o, a), y = D6({
|
|
33235
33252
|
isReady: m,
|
|
33236
33253
|
hasError: b,
|
|
33237
33254
|
transmit: u
|
|
@@ -33263,9 +33280,9 @@ const dE = {
|
|
|
33263
33280
|
className: x(e, `${_}-prompts-extension-container`),
|
|
33264
33281
|
style: t,
|
|
33265
33282
|
children: [
|
|
33266
|
-
d && /* @__PURE__ */ E(
|
|
33267
|
-
!d && /* @__PURE__ */ E(
|
|
33268
|
-
p && /* @__PURE__ */ E(
|
|
33283
|
+
d && /* @__PURE__ */ E(M6, { onSubmit: S, disabled: b }),
|
|
33284
|
+
!d && /* @__PURE__ */ E(B6, {}),
|
|
33285
|
+
p && /* @__PURE__ */ E(H6, { onPromptClick: S, disabled: b }),
|
|
33269
33286
|
!b && T && /* @__PURE__ */ E("p", { className: x(e, `${_}-prompts-connecting-message`), children: "Connecting to agent..." }),
|
|
33270
33287
|
b && /* @__PURE__ */ E("p", { className: x(e, `${_}-prompts-error-message`), children: "Oops, an error occurred with our agent." })
|
|
33271
33288
|
]
|
|
@@ -33273,16 +33290,16 @@ const dE = {
|
|
|
33273
33290
|
),
|
|
33274
33291
|
h
|
|
33275
33292
|
);
|
|
33276
|
-
},
|
|
33277
|
-
/* @__PURE__ */ E(
|
|
33278
|
-
/* @__PURE__ */ E(
|
|
33293
|
+
}, z6 = () => (L6(), /* @__PURE__ */ E($6, {})), V6 = (e) => /* @__PURE__ */ G(f_, $(I({}, e), { children: [
|
|
33294
|
+
/* @__PURE__ */ E(k6, {}),
|
|
33295
|
+
/* @__PURE__ */ E(z6, {})
|
|
33279
33296
|
] }));
|
|
33280
|
-
function
|
|
33297
|
+
function q6(e, t) {
|
|
33281
33298
|
return de(this, null, function* () {
|
|
33282
33299
|
return Cp().sendMessage(e, t);
|
|
33283
33300
|
});
|
|
33284
33301
|
}
|
|
33285
|
-
const
|
|
33302
|
+
const ND = {
|
|
33286
33303
|
components: {
|
|
33287
33304
|
setEntryType: Qu,
|
|
33288
33305
|
toggleWidgetOpen: xn,
|
|
@@ -33290,13 +33307,13 @@ const AD = {
|
|
|
33290
33307
|
toggleModalFullscreen: Ju,
|
|
33291
33308
|
setWidgetType: To,
|
|
33292
33309
|
setWidgetDialogPosition: Zu,
|
|
33293
|
-
loadPromptsComponent:
|
|
33310
|
+
loadPromptsComponent: jR,
|
|
33294
33311
|
togglePromptsExtensionOpen: xg
|
|
33295
33312
|
},
|
|
33296
33313
|
session: {
|
|
33297
|
-
resetConversation:
|
|
33314
|
+
resetConversation: WR,
|
|
33298
33315
|
endConversation: XR,
|
|
33299
|
-
sendMessage:
|
|
33316
|
+
sendMessage: q6
|
|
33300
33317
|
},
|
|
33301
33318
|
pageContext: {
|
|
33302
33319
|
set: Hy,
|
|
@@ -33309,7 +33326,7 @@ const AD = {
|
|
|
33309
33326
|
const i = SE(e);
|
|
33310
33327
|
gh.set(e, i), i.render(
|
|
33311
33328
|
/* @__PURE__ */ E(
|
|
33312
|
-
|
|
33329
|
+
V6,
|
|
33313
33330
|
$(I({}, t), {
|
|
33314
33331
|
overridesUrl: n,
|
|
33315
33332
|
inlineOverrides: r,
|
|
@@ -33317,7 +33334,7 @@ const AD = {
|
|
|
33317
33334
|
})
|
|
33318
33335
|
)
|
|
33319
33336
|
);
|
|
33320
|
-
},
|
|
33337
|
+
}, Y6 = (s) => {
|
|
33321
33338
|
var o = s, {
|
|
33322
33339
|
elementId: e,
|
|
33323
33340
|
timeout: t = 5e3,
|
|
@@ -33346,7 +33363,7 @@ const AD = {
|
|
|
33346
33363
|
`Element with id: ${e} not found within ${t} milliseconds, stopping observation`
|
|
33347
33364
|
);
|
|
33348
33365
|
}, t), c;
|
|
33349
|
-
},
|
|
33366
|
+
}, OD = (s) => {
|
|
33350
33367
|
var o = s, {
|
|
33351
33368
|
timeout: e,
|
|
33352
33369
|
elementId: t,
|
|
@@ -33372,17 +33389,17 @@ const AD = {
|
|
|
33372
33389
|
}
|
|
33373
33390
|
const a = document.getElementById(t);
|
|
33374
33391
|
if (!a) {
|
|
33375
|
-
Ye(!0, "warn", "Container element not found for id:", t), Ye(!0, "warn", "Beginning observation for element"),
|
|
33392
|
+
Ye(!0, "warn", "Container element not found for id:", t), Ye(!0, "warn", "Beginning observation for element"), Y6(I({ elementId: t, timeout: e, overridesUrl: n, inlineOverrides: r }, i));
|
|
33376
33393
|
return;
|
|
33377
33394
|
}
|
|
33378
33395
|
hE(a, i, n, r);
|
|
33379
33396
|
};
|
|
33380
|
-
function
|
|
33397
|
+
function xD() {
|
|
33381
33398
|
return de(this, null, function* () {
|
|
33382
33399
|
return Cp().getAuthLinkKey();
|
|
33383
33400
|
});
|
|
33384
33401
|
}
|
|
33385
|
-
class
|
|
33402
|
+
class CD extends HTMLElement {
|
|
33386
33403
|
constructor() {
|
|
33387
33404
|
super(...arguments);
|
|
33388
33405
|
Ee(this, "_props", null);
|
|
@@ -33412,20 +33429,20 @@ class xD extends HTMLElement {
|
|
|
33412
33429
|
}
|
|
33413
33430
|
}
|
|
33414
33431
|
export {
|
|
33415
|
-
|
|
33432
|
+
V6 as AgentForceWidget,
|
|
33416
33433
|
f_ as AgentforceWidgetProvider,
|
|
33417
33434
|
I1 as CIMULATE_WIDGET_READY_EVENT,
|
|
33418
|
-
|
|
33419
|
-
|
|
33420
|
-
|
|
33435
|
+
R6 as MessagingDialog,
|
|
33436
|
+
I6 as MessagingEmbed,
|
|
33437
|
+
v6 as MessagingModal,
|
|
33421
33438
|
Yy as MessagingProvider,
|
|
33422
|
-
|
|
33439
|
+
CD as OverrideElement,
|
|
33423
33440
|
$y as clearPageContext,
|
|
33424
|
-
|
|
33425
|
-
|
|
33441
|
+
ND as eventHandlers,
|
|
33442
|
+
xD as getAuthLinkKey,
|
|
33426
33443
|
Ip as getPageContext,
|
|
33427
|
-
|
|
33428
|
-
|
|
33444
|
+
OD as injectMessagingWidget,
|
|
33445
|
+
q6 as sendMessage,
|
|
33429
33446
|
Hy as setPageContext,
|
|
33430
33447
|
it as useMessaging
|
|
33431
33448
|
};
|