@cimulate/copilot-widget 1.48.0 → 1.48.1

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.
@@ -3414,8 +3414,8 @@ const Mp = sn({
3414
3414
  isMinimized: t && "isMinimized" in t ? !!t.isMinimized : Fe.statusProxy.isMinimized
3415
3415
  }), [l, d] = Oe(Fe.dialogProxy.position), [p, h] = Oe(Fe.dialogProxy.isFullHeight), [m, T] = Oe(Fe.dialogProxy.width), [_, g] = Oe(Fe.modalProxy.isFullscreen), b = Q(!1), A = sb(u.type);
3416
3416
  Ie(() => {
3417
- const O = (w) => {
3418
- const { property: D, value: F } = w.detail || {};
3417
+ const I = (O) => {
3418
+ const { property: D, value: F } = O.detail || {};
3419
3419
  if (!(!D || F === void 0)) {
3420
3420
  if (D === "mode") {
3421
3421
  a(F);
@@ -3455,24 +3455,24 @@ const Mp = sn({
3455
3455
  }
3456
3456
  }
3457
3457
  };
3458
- return XT(O), () => {
3459
- KT(O);
3458
+ return XT(I), () => {
3459
+ KT(I);
3460
3460
  };
3461
3461
  }, []), Gs(() => {
3462
3462
  e && co(e);
3463
3463
  }), Gs(() => {
3464
3464
  if (b.current) return;
3465
3465
  b.current = !0;
3466
- const O = n || (t == null ? void 0 : t.type);
3467
- O && Bo(O);
3468
- const w = GT();
3469
- t && "isOpen" in t && Pn(!!t.isOpen), t && "isMinimized" in t && Kr(!!t.isMinimized), w && Kr(!0);
3466
+ const I = n || (t == null ? void 0 : t.type);
3467
+ I && Bo(I);
3468
+ const O = GT();
3469
+ t && "isOpen" in t && Pn(!!t.isOpen), t && "isMinimized" in t && Kr(!!t.isMinimized), O && Kr(!0);
3470
3470
  }), Gs(() => {
3471
3471
  if (!(t != null && t.options)) return;
3472
- const { dialogPosition: O } = t.options;
3473
- O && Ac(O), "dialogFullHeight" in t.options && JT(!!t.options.dialogFullHeight), "dialogWidth" in t.options && t.options.dialogWidth && T(t.options.dialogWidth), "isModalFullscreen" in t.options && Sc(!!t.options.isModalFullscreen);
3472
+ const { dialogPosition: I } = t.options;
3473
+ I && Ac(I), "dialogFullHeight" in t.options && JT(!!t.options.dialogFullHeight), "dialogWidth" in t.options && t.options.dialogWidth && T(t.options.dialogWidth), "isModalFullscreen" in t.options && Sc(!!t.options.isModalFullscreen);
3474
3474
  });
3475
- const C = ze(
3475
+ const P = ze(
3476
3476
  () => ({
3477
3477
  mode: o,
3478
3478
  entryType: i,
@@ -3494,7 +3494,7 @@ const Mp = sn({
3494
3494
  _
3495
3495
  ]
3496
3496
  );
3497
- return /* @__PURE__ */ E(Mp.Provider, { value: C, children: r });
3497
+ return /* @__PURE__ */ E(Mp.Provider, { value: P, children: r });
3498
3498
  }, bn = () => {
3499
3499
  const e = Wt(Mp);
3500
3500
  if (!e)
@@ -4385,8 +4385,8 @@ function Uo(e, t, n) {
4385
4385
  throw new TypeError("target must be an object");
4386
4386
  t = t || new FormData();
4387
4387
  const r = (b, A) => {
4388
- const C = L.getSafeProp(n, b);
4389
- return L.isUndefined(C) ? A : C;
4388
+ const P = L.getSafeProp(n, b);
4389
+ return L.isUndefined(P) ? A : P;
4390
4390
  }, i = r("metaTokens", !0), s = r("visitor") || T, o = r("dots", !1), a = r("indexes", !1), u = r("Blob") || typeof Blob != "undefined" && Blob, c = r("maxDepth", em), l = u && L.isSpecCompliantForm(t), d = [];
4391
4391
  if (!L.isFunction(s))
4392
4392
  throw new TypeError("visitor must be a function");
@@ -4418,24 +4418,24 @@ function Uo(e, t, n) {
4418
4418
  function m(b, A) {
4419
4419
  if (c === 1 / 0)
4420
4420
  return JSON.stringify(b);
4421
- const C = [];
4422
- return JSON.stringify(b, function(w, D) {
4421
+ const P = [];
4422
+ return JSON.stringify(b, function(O, D) {
4423
4423
  if (!L.isObject(D))
4424
4424
  return D;
4425
- for (; C.length && C[C.length - 1] !== this; )
4426
- C.pop();
4427
- return C.push(D), h(A + C.length - 1), D;
4425
+ for (; P.length && P[P.length - 1] !== this; )
4426
+ P.pop();
4427
+ return P.push(D), h(A + P.length - 1), D;
4428
4428
  });
4429
4429
  }
4430
- function T(b, A, C) {
4431
- let O = b;
4430
+ function T(b, A, P) {
4431
+ let I = b;
4432
4432
  if (L.isReactNative(t) && L.isReactNativeBlob(b))
4433
- return t.append(ka(C, A, o), p(b)), !1;
4434
- if (b && !C && typeof b == "object") {
4433
+ return t.append(ka(P, A, o), p(b)), !1;
4434
+ if (b && !P && typeof b == "object") {
4435
4435
  if (L.endsWith(A, "{}"))
4436
4436
  A = i ? A : A.slice(0, -2), b = m(b, 1);
4437
- else if (L.isArray(b) && Py(b) || (L.isFileList(b) || L.endsWith(A, "[]")) && (O = L.toArray(b)))
4438
- return A = tm(A), O.forEach(function(D, F) {
4437
+ else if (L.isArray(b) && Py(b) || (L.isFileList(b) || L.endsWith(A, "[]")) && (I = L.toArray(b)))
4438
+ return A = tm(A), I.forEach(function(D, F) {
4439
4439
  !(L.isUndefined(D) || D === null) && t.append(
4440
4440
  // eslint-disable-next-line no-nested-ternary
4441
4441
  a === !0 ? ka([A], F, o) : a === null ? A : A + "[]",
@@ -4443,19 +4443,19 @@ function Uo(e, t, n) {
4443
4443
  );
4444
4444
  }), !1;
4445
4445
  }
4446
- return Nu(b) ? !0 : (t.append(ka(C, A, o), p(b)), !1);
4446
+ return Nu(b) ? !0 : (t.append(ka(P, A, o), p(b)), !1);
4447
4447
  }
4448
4448
  const _ = Object.assign(vy, {
4449
4449
  defaultVisitor: T,
4450
4450
  convertValue: p,
4451
4451
  isVisitable: Nu
4452
4452
  });
4453
- function g(b, A, C = 0) {
4453
+ function g(b, A, P = 0) {
4454
4454
  if (!L.isUndefined(b)) {
4455
- if (h(C), d.indexOf(b) !== -1)
4455
+ if (h(P), d.indexOf(b) !== -1)
4456
4456
  throw new Error("Circular reference detected in " + A.join("."));
4457
- d.push(b), L.forEach(b, function(w, D) {
4458
- (!(L.isUndefined(w) || w === null) && s.call(t, w, L.isString(D) ? D.trim() : D, A, _)) === !0 && g(w, A ? A.concat(D) : [D], C + 1);
4457
+ d.push(b), L.forEach(b, function(O, D) {
4458
+ (!(L.isUndefined(O) || O === null) && s.call(t, O, L.isString(D) ? D.trim() : D, A, _)) === !0 && g(O, A ? A.concat(D) : [D], P + 1);
4459
4459
  }), d.pop();
4460
4460
  }
4461
4461
  }
@@ -5102,7 +5102,7 @@ const s_ = typeof XMLHttpRequest != "undefined", o_ = s_ && function(e) {
5102
5102
  }
5103
5103
  let g = new XMLHttpRequest();
5104
5104
  g.open(i.method.toUpperCase(), i.url, !0), g.timeout = i.timeout;
5105
- function b(C) {
5105
+ function b(P) {
5106
5106
  if (!g)
5107
5107
  return;
5108
5108
  if (g.status === 0 && (Da(lm(i.url)) || Da(dt.origin)) !== "file" && !(g.responseURL && g.responseURL.startsWith("file:"))) {
@@ -5110,7 +5110,7 @@ const s_ = typeof XMLHttpRequest != "undefined", o_ = s_ && function(e) {
5110
5110
  return;
5111
5111
  }
5112
5112
  try {
5113
- C ? T && T(C) : m && m();
5113
+ P ? T && T(P) : m && m();
5114
5114
  } catch (F) {
5115
5115
  setTimeout(() => {
5116
5116
  throw F;
@@ -5118,13 +5118,13 @@ const s_ = typeof XMLHttpRequest != "undefined", o_ = s_ && function(e) {
5118
5118
  }
5119
5119
  if (!g)
5120
5120
  return;
5121
- const O = St.from(
5121
+ const I = St.from(
5122
5122
  "getAllResponseHeaders" in g && g.getAllResponseHeaders()
5123
5123
  ), D = {
5124
5124
  data: !a || a === "text" || a === "json" ? g.responseText : g.response,
5125
5125
  status: g.status,
5126
5126
  statusText: g.statusText,
5127
- headers: O,
5127
+ headers: I,
5128
5128
  config: e,
5129
5129
  request: g
5130
5130
  };
@@ -5142,27 +5142,27 @@ const s_ = typeof XMLHttpRequest != "undefined", o_ = s_ && function(e) {
5142
5142
  !g || g.readyState !== 4 || g.status === 0 && !(g.responseURL && g.responseURL.startsWith("file:")) || setTimeout(b);
5143
5143
  }, g.onabort = function() {
5144
5144
  g && (r(new le("Request aborted", le.ECONNABORTED, e, g)), _(), g = null);
5145
- }, g.onerror = function(O) {
5146
- const w = O && O.message ? O.message : "Network Error", D = new le(w, le.ERR_NETWORK, e, g);
5147
- D.event = O || null, r(D), _(), g = null;
5145
+ }, g.onerror = function(I) {
5146
+ const O = I && I.message ? I.message : "Network Error", D = new le(O, le.ERR_NETWORK, e, g);
5147
+ D.event = I || null, r(D), _(), g = null;
5148
5148
  }, g.ontimeout = function() {
5149
- let O = i.timeout ? "timeout of " + i.timeout + "ms exceeded" : "timeout exceeded";
5150
- const w = i.transitional || Cc;
5151
- i.timeoutErrorMessage && (O = i.timeoutErrorMessage), r(
5149
+ let I = i.timeout ? "timeout of " + i.timeout + "ms exceeded" : "timeout exceeded";
5150
+ const O = i.transitional || Cc;
5151
+ i.timeoutErrorMessage && (I = i.timeoutErrorMessage), r(
5152
5152
  new le(
5153
- O,
5154
- w.clarifyTimeoutError ? le.ETIMEDOUT : le.ECONNABORTED,
5153
+ I,
5154
+ O.clarifyTimeoutError ? le.ETIMEDOUT : le.ECONNABORTED,
5155
5155
  e,
5156
5156
  g
5157
5157
  )
5158
5158
  ), _(), g = null;
5159
- }, s === void 0 && o.setContentType(null), "setRequestHeader" in g && L.forEach(Jp(o), function(O, w) {
5160
- g.setRequestHeader(w, O);
5159
+ }, s === void 0 && o.setContentType(null), "setRequestHeader" in g && L.forEach(Jp(o), function(I, O) {
5160
+ g.setRequestHeader(O, I);
5161
5161
  }), L.isUndefined(i.withCredentials) || (g.withCredentials = !!i.withCredentials), a && a !== "json" && (g.responseType = i.responseType), c && ([p, m, T] = fo(
5162
5162
  c,
5163
5163
  !0
5164
- ), g.addEventListener("progress", p)), u && g.upload && ([d, h] = fo(u), g.upload.addEventListener("progress", d), g.upload.addEventListener("loadend", h)), (i.cancelToken || i.signal) && (l = (C) => {
5165
- g && (r(!C || C.type ? new us(null, e, g) : C), g.abort(), _(), g = null);
5164
+ ), g.addEventListener("progress", p)), u && g.upload && ([d, h] = fo(u), g.upload.addEventListener("progress", d), g.upload.addEventListener("loadend", h)), (i.cancelToken || i.signal) && (l = (P) => {
5165
+ g && (r(!P || P.type ? new us(null, e, g) : P), g.abort(), _(), g = null);
5166
5166
  }, i.cancelToken && i.cancelToken.subscribe(l), i.signal && (i.signal.aborted ? l() : i.signal.addEventListener("abort", l)));
5167
5167
  const A = Da(i.url);
5168
5168
  if (A && !dt.protocols.includes(A)) {
@@ -5414,9 +5414,9 @@ const vc = "1.20.0", vd = 64 * 1024, T_ = {
5414
5414
  };
5415
5415
  a && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((g) => {
5416
5416
  !m[g] && (m[g] = (b, A) => {
5417
- let C = b && b[g];
5418
- if (C)
5419
- return C.call(b);
5417
+ let P = b && b[g];
5418
+ if (P)
5419
+ return P.call(b);
5420
5420
  throw new le(
5421
5421
  `Response type '${g}' is not supported`,
5422
5422
  le.ERR_NOT_SUPPORT,
@@ -5446,9 +5446,9 @@ const vc = "1.20.0", vd = 64 * 1024, T_ = {
5446
5446
  let {
5447
5447
  url: b,
5448
5448
  method: A,
5449
- data: C,
5450
- signal: O,
5451
- cancelToken: w,
5449
+ data: P,
5450
+ signal: I,
5451
+ cancelToken: O,
5452
5452
  timeout: D,
5453
5453
  onDownloadProgress: F,
5454
5454
  onUploadProgress: j,
@@ -5464,10 +5464,10 @@ const vc = "1.20.0", vd = 64 * 1024, T_ = {
5464
5464
  let S = i || fetch;
5465
5465
  k = k ? (k + "").toLowerCase() : "text";
5466
5466
  let Z = a_(
5467
- [O, w && w.toAbortSignal()],
5467
+ [I, O && O.toAbortSignal()],
5468
5468
  D
5469
5469
  ), fe = null;
5470
- const I = Z && Z.unsubscribe && (() => {
5470
+ const w = Z && Z.unsubscribe && (() => {
5471
5471
  Z.unsubscribe();
5472
5472
  });
5473
5473
  let ye, Be = null;
@@ -5509,11 +5509,11 @@ const vc = "1.20.0", vd = 64 * 1024, T_ = {
5509
5509
  fe
5510
5510
  );
5511
5511
  if (K && A !== "get" && A !== "head") {
5512
- const de = yield T(C);
5512
+ const de = yield T(P);
5513
5513
  if (typeof de == "number" && isFinite(de) && (ye = de, de > z))
5514
5514
  throw Ce();
5515
5515
  }
5516
- const we = K && (L.isReadableStream(C) || L.isStream(C)), Xe = (de, be, st) => xd(
5516
+ const we = K && (L.isReadableStream(P) || L.isStream(P)), Xe = (de, be, st) => xd(
5517
5517
  de,
5518
5518
  vd,
5519
5519
  (Ht) => {
@@ -5524,22 +5524,22 @@ const vc = "1.20.0", vd = 64 * 1024, T_ = {
5524
5524
  st
5525
5525
  );
5526
5526
  if (p && A !== "get" && A !== "head" && (j || we)) {
5527
- if (ye = ye == null ? yield _($, C) : ye, ye !== 0 || we) {
5527
+ if (ye = ye == null ? yield _($, P) : ye, ye !== 0 || we) {
5528
5528
  let de = new s(b, {
5529
5529
  method: "POST",
5530
- body: C,
5530
+ body: P,
5531
5531
  duplex: "half"
5532
5532
  }), be;
5533
- if (L.isFormData(C) && (be = de.headers.get("content-type")) && $.setContentType(be), de.body) {
5533
+ if (L.isFormData(P) && (be = de.headers.get("content-type")) && $.setContentType(be), de.body) {
5534
5534
  const [st, Ht] = j && Nd(
5535
5535
  ye,
5536
5536
  fo(Id(j))
5537
5537
  ) || [];
5538
- C = Xe(de.body, st, Ht);
5538
+ P = Xe(de.body, st, Ht);
5539
5539
  }
5540
5540
  }
5541
5541
  } else if (we && !u && l && A !== "get" && A !== "head")
5542
- C = Xe(C);
5542
+ P = Xe(P);
5543
5543
  else if (we && u && !p && A !== "get" && A !== "head")
5544
5544
  throw new le(
5545
5545
  "Stream request bodies are not supported by the current fetch implementation",
@@ -5549,7 +5549,7 @@ const vc = "1.20.0", vd = 64 * 1024, T_ = {
5549
5549
  );
5550
5550
  L.isString(B) || (B = B ? "include" : "omit");
5551
5551
  const tt = u && "credentials" in s.prototype;
5552
- if (L.isFormData(C)) {
5552
+ if (L.isFormData(P)) {
5553
5553
  const de = $.getContentType();
5554
5554
  de && /^multipart\/form-data/i.test(de) && !/boundary=/i.test(de) && $.delete("content-type");
5555
5555
  }
@@ -5560,7 +5560,7 @@ const vc = "1.20.0", vd = 64 * 1024, T_ = {
5560
5560
  signal: Z,
5561
5561
  method: A.toUpperCase(),
5562
5562
  headers: Jp($.normalize()),
5563
- body: C,
5563
+ body: P,
5564
5564
  duplex: "half",
5565
5565
  credentials: tt ? B : void 0
5566
5566
  });
@@ -5580,7 +5580,7 @@ const vc = "1.20.0", vd = 64 * 1024, T_ = {
5580
5580
  );
5581
5581
  }
5582
5582
  const he = h && (k === "stream" || k === "response");
5583
- if (h && Qe.body && (F || G || he && I)) {
5583
+ if (h && Qe.body && (F || G || he && w)) {
5584
5584
  const de = {};
5585
5585
  ["status", "statusText", "headers"].forEach((Ke) => {
5586
5586
  de[Ke] = Qe[Ke];
@@ -5602,7 +5602,7 @@ const vc = "1.20.0", vd = 64 * 1024, T_ = {
5602
5602
  };
5603
5603
  Qe = new o(
5604
5604
  xd(Qe.body, vd, Tt, () => {
5605
- Ht && Ht(), I && I();
5605
+ Ht && Ht(), w && w();
5606
5606
  }),
5607
5607
  de
5608
5608
  );
@@ -5622,7 +5622,7 @@ const vc = "1.20.0", vd = 64 * 1024, T_ = {
5622
5622
  fe
5623
5623
  );
5624
5624
  }
5625
- return !he && I && I(), yield new Promise((de, be) => {
5625
+ return !he && w && w(), yield new Promise((de, be) => {
5626
5626
  cm(de, be, {
5627
5627
  data: Ee,
5628
5628
  headers: St.from(Qe.headers),
@@ -5633,7 +5633,7 @@ const vc = "1.20.0", vd = 64 * 1024, T_ = {
5633
5633
  });
5634
5634
  });
5635
5635
  } catch (Te) {
5636
- if (I && I(), Z && Z.aborted && Z.reason instanceof le) {
5636
+ if (w && w(), Z && Z.aborted && Z.reason instanceof le) {
5637
5637
  const Ae = Z.reason;
5638
5638
  throw Ae.config = g, fe && (Ae.request = fe), Te !== Ae && Object.defineProperty(Ae, "cause", {
5639
5639
  __proto__: null,
@@ -6303,9 +6303,9 @@ const v_ = {
6303
6303
  messageAlignment: g = "start",
6304
6304
  autoScroll: b = !0,
6305
6305
  showProductDescription: A = !1,
6306
- componentConfig: C,
6307
- conversationHistory: O,
6308
- resetConversationMessage: w = "",
6306
+ componentConfig: P,
6307
+ conversationHistory: I,
6308
+ resetConversationMessage: O = "",
6309
6309
  apiKey: D,
6310
6310
  apiToken: F,
6311
6311
  baseUrl: j,
@@ -6322,7 +6322,7 @@ const v_ = {
6322
6322
  showProductCaptions: S = !1,
6323
6323
  staticQuestions: Z,
6324
6324
  staticQuestionsStrategy: fe = "append",
6325
- children: I
6325
+ children: w
6326
6326
  }) => {
6327
6327
  const ye = e === "messaging", Be = ze(() => {
6328
6328
  const je = z == null ? void 0 : z.isCartMgmtSupported;
@@ -6365,17 +6365,17 @@ const v_ = {
6365
6365
  messageAlignment: g,
6366
6366
  autoScroll: b,
6367
6367
  showProductDescription: !!A,
6368
- enableMinimize: !!(C != null && C.enableMinimize),
6369
- launcherAriaLabel: C == null ? void 0 : C.launcherAriaLabel,
6368
+ enableMinimize: !!(P != null && P.enableMinimize),
6369
+ launcherAriaLabel: P == null ? void 0 : P.launcherAriaLabel,
6370
6370
  enableDownloadTranscript: ne,
6371
6371
  enablePageContext: G,
6372
6372
  enableEscalationToAgent: K,
6373
6373
  enableImageUpload: se,
6374
6374
  showProductCaptions: !!S,
6375
- resetConversationMessage: w,
6375
+ resetConversationMessage: O,
6376
6376
  conversationHistory: {
6377
- sinceHours: typeof (O == null ? void 0 : O.sinceHours) == "number" ? O.sinceHours : ye ? 24 : 1,
6378
- limit: O == null ? void 0 : O.limit
6377
+ sinceHours: typeof (I == null ? void 0 : I.sinceHours) == "number" ? I.sinceHours : ye ? 24 : 1,
6378
+ limit: I == null ? void 0 : I.limit
6379
6379
  },
6380
6380
  features: M,
6381
6381
  isCartMgmtSupported: Be
@@ -6399,23 +6399,23 @@ const v_ = {
6399
6399
  g,
6400
6400
  b,
6401
6401
  A,
6402
- C,
6402
+ P,
6403
6403
  ne,
6404
6404
  G,
6405
6405
  K,
6406
6406
  se,
6407
6407
  _,
6408
6408
  S,
6409
- w,
6409
+ O,
6410
6410
  Te,
6411
6411
  Ae,
6412
- O,
6412
+ I,
6413
6413
  M,
6414
6414
  Be,
6415
6415
  ye
6416
6416
  ]
6417
6417
  );
6418
- return /* @__PURE__ */ E(Tm.Provider, { value: tt, children: I });
6418
+ return /* @__PURE__ */ E(Tm.Provider, { value: tt, children: w });
6419
6419
  }, ve = () => {
6420
6420
  const e = Wt(Tm);
6421
6421
  if (!e)
@@ -7348,12 +7348,12 @@ function gS(e) {
7348
7348
  Ni(t, n, F), l.current = F, g(j);
7349
7349
  },
7350
7350
  [t, n, g]
7351
- ), C = me(
7351
+ ), P = me(
7352
7352
  (F) => {
7353
7353
  l.current && zd(l.current), Ua(t, n), Y_(t, n), Q_(c.current), l.current = null, g(F);
7354
7354
  },
7355
7355
  [t, n, g]
7356
- ), O = me(() => {
7356
+ ), I = me(() => {
7357
7357
  d.current || (d.current = !0, o && s && Im(o) !== "expired" && (Hd(
7358
7358
  t,
7359
7359
  n,
@@ -7364,7 +7364,7 @@ function gS(e) {
7364
7364
  return F ? v({
7365
7365
  continuationToken: F.accessToken
7366
7366
  }, F.lastEventId ? { lastEventId: F.lastEventId } : {}) : null;
7367
- }, [t, n, o, s, a]), w = me(() => ce(null, null, function* () {
7367
+ }, [t, n, o, s, a]), O = me(() => ce(null, null, function* () {
7368
7368
  const F = yield _();
7369
7369
  return !(F != null && F.continuationToken) || wu(F.storedAt, T) ? null : {
7370
7370
  continuationToken: F.continuationToken,
@@ -7384,9 +7384,9 @@ function gS(e) {
7384
7384
  return {
7385
7385
  initializeConversation: b,
7386
7386
  persistConversationId: A,
7387
- clearPersistedConversation: C,
7388
- getStoredConnectOptions: O,
7389
- getPeerConnectOptions: w,
7387
+ clearPersistedConversation: P,
7388
+ getStoredConnectOptions: I,
7389
+ getPeerConnectOptions: O,
7390
7390
  persistContinuationToken: D
7391
7391
  };
7392
7392
  }
@@ -7477,10 +7477,10 @@ function wS({
7477
7477
  T.current = 0, _.current = !1, g.current = 0;
7478
7478
  return;
7479
7479
  }
7480
- const C = s || T.current > 0;
7481
- if (!(i && C && e === "connected" && !r && !_.current))
7480
+ const P = s || T.current > 0;
7481
+ if (!(i && P && e === "connected" && !r && !_.current))
7482
7482
  return;
7483
- const w = setTimeout(() => {
7483
+ const O = setTimeout(() => {
7484
7484
  ce(null, null, function* () {
7485
7485
  var k, $;
7486
7486
  if ((k = m.current) != null && k.call(m)) {
@@ -7514,7 +7514,7 @@ function wS({
7514
7514
  });
7515
7515
  }, u);
7516
7516
  return () => {
7517
- clearTimeout(w);
7517
+ clearTimeout(O);
7518
7518
  };
7519
7519
  }, [
7520
7520
  e,
@@ -7837,8 +7837,8 @@ const Mr = /* @__PURE__ */ Symbol("initialization-cancelled"), qS = 3e4, jS = "I
7837
7837
  }) => {
7838
7838
  const { logger: g, conversationHistory: b } = ve(), {
7839
7839
  status: { isOpen: A }
7840
- } = bn(), [C, O] = dp(U_, Am), [w, D] = Oe(!1), [F, j] = Oe(!1), [k, $] = Oe(!1), B = Q(C);
7841
- B.current = C;
7840
+ } = bn(), [P, I] = dp(U_, Am), [O, D] = Oe(!1), [F, j] = Oe(!1), [k, $] = Oe(!1), B = Q(P);
7841
+ B.current = P;
7842
7842
  const ee = Q(null);
7843
7843
  ee.current || (ee.current = crypto.randomUUID());
7844
7844
  const M = Q(null);
@@ -7853,7 +7853,7 @@ const Mr = /* @__PURE__ */ Symbol("initialization-cancelled"), qS = 3e4, jS = "I
7853
7853
  }));
7854
7854
  const z = Q(null), ne = Q(null), G = Q(null), K = Q(!1);
7855
7855
  Ie(() => {
7856
- const H = C.connectionStatus, oe = z.current;
7856
+ const H = P.connectionStatus, oe = z.current;
7857
7857
  z.current = H;
7858
7858
  const ue = M.current;
7859
7859
  if (ue)
@@ -7875,16 +7875,16 @@ const Mr = /* @__PURE__ */ Symbol("initialization-cancelled"), qS = 3e4, jS = "I
7875
7875
  oe !== null && ue.disconnected();
7876
7876
  break;
7877
7877
  }
7878
- }, [C.connectionStatus]), Ie(() => {
7878
+ }, [P.connectionStatus]), Ie(() => {
7879
7879
  var H;
7880
- (H = M.current) == null || H.sessionState(C.sessionExpired);
7881
- }, [C.sessionExpired]);
7880
+ (H = M.current) == null || H.sessionState(P.sessionExpired);
7881
+ }, [P.sessionExpired]);
7882
7882
  const se = Q(null);
7883
7883
  Ie(() => {
7884
7884
  var ue;
7885
- const H = C.conversationId, oe = se.current;
7885
+ const H = P.conversationId, oe = se.current;
7886
7886
  se.current = H, H && H !== oe && ((ue = M.current) == null || ue.conversationStarted());
7887
- }, [C.conversationId]);
7887
+ }, [P.conversationId]);
7888
7888
  const S = gS({
7889
7889
  orgId: t,
7890
7890
  esDeveloperName: n,
@@ -7894,7 +7894,7 @@ const Mr = /* @__PURE__ */ Symbol("initialization-cancelled"), qS = 3e4, jS = "I
7894
7894
  continuationToken: s,
7895
7895
  lastEventId: o,
7896
7896
  onSessionUpdate: T
7897
- }), Z = Q(null), fe = Q(d), I = Q(p), ye = Q(l), Be = Q(h), Ce = Q(m), Te = Q(!1), Ae = Q(!1), we = Q(!1), Xe = Q(0), tt = Q(0), je = Q(0), Je = Q(null), Qe = Q(null), pt = Q(null), he = Q(0), Ee = Q(!1), de = Q(0), be = Q(0), st = Q(
7897
+ }), Z = Q(null), fe = Q(d), w = Q(p), ye = Q(l), Be = Q(h), Ce = Q(m), Te = Q(!1), Ae = Q(!1), we = Q(!1), Xe = Q(0), tt = Q(0), je = Q(0), Je = Q(null), Qe = Q(null), pt = Q(null), he = Q(0), Ee = Q(!1), de = Q(0), be = Q(0), st = Q(
7898
7898
  () => Promise.reject(new Error("Messaging is unavailable"))
7899
7899
  ), Ht = Q(), Zn = Q(() => ce(null, null, function* () {
7900
7900
  return {
@@ -7906,7 +7906,7 @@ const Mr = /* @__PURE__ */ Symbol("initialization-cancelled"), qS = 3e4, jS = "I
7906
7906
  (ue) => ue === H || !ue.timedOut
7907
7907
  )) : Tt.current = Tt.current.filter((ue) => ue !== H), clearTimeout(H.timeoutId), H.resolve(oe);
7908
7908
  }, []);
7909
- fe.current = d, I.current = p, ye.current = l, Be.current = h, Ce.current = m, Ie(() => {
7909
+ fe.current = d, w.current = p, ye.current = l, Be.current = h, Ce.current = m, Ie(() => {
7910
7910
  const H = new vT({
7911
7911
  baseURL: e,
7912
7912
  orgId: t,
@@ -7915,13 +7915,13 @@ const Mr = /* @__PURE__ */ Symbol("initialization-cancelled"), qS = 3e4, jS = "I
7915
7915
  enableLogging: c
7916
7916
  }, a ? { capabilitiesVersion: a } : {})
7917
7917
  });
7918
- Z.current = H, Ee.current = !1, K.current = !1, $(!1), D(!1), j(!1), O({ type: "RESET" }), H.on("connected", () => {
7918
+ Z.current = H, Ee.current = !1, K.current = !1, $(!1), D(!1), j(!1), I({ type: "RESET" }), H.on("connected", () => {
7919
7919
  var W, pe;
7920
- O({ type: "SET_CONNECTION_STATUS", status: "connected" }), K.current || (K.current = !0, (W = M.current) == null || W.sessionStarted()), (pe = ye.current) == null || pe.call(ye);
7920
+ I({ type: "SET_CONNECTION_STATUS", status: "connected" }), K.current || (K.current = !0, (W = M.current) == null || W.sessionStarted()), (pe = ye.current) == null || pe.call(ye);
7921
7921
  }), H.on("disconnected", () => {
7922
- O({ type: "SET_CONNECTION_STATUS", status: "disconnected" });
7922
+ I({ type: "SET_CONNECTION_STATUS", status: "disconnected" });
7923
7923
  }), H.on("reconnecting", () => {
7924
- O({ type: "SET_CONNECTION_STATUS", status: "reconnecting" });
7924
+ I({ type: "SET_CONNECTION_STATUS", status: "reconnecting" });
7925
7925
  }), H.on("message", (W) => {
7926
7926
  var Is, td;
7927
7927
  const pe = Y(v({
@@ -7939,9 +7939,9 @@ const Mr = /* @__PURE__ */ Symbol("initialization-cancelled"), qS = 3e4, jS = "I
7939
7939
  streamedFinalOnly: Xe.current === 0
7940
7940
  }), Xe.current = 0;
7941
7941
  const ge = Ii(Tt.current), mt = ge == null ? void 0 : ge.options.reconcileMessageId;
7942
- O({ type: "FLUSH_STREAMING", message: pe, replaceMessageId: mt }), (Is = fe.current) == null || Is.call(fe, pe), ge && q(ge, { outcome: "success" });
7942
+ I({ type: "FLUSH_STREAMING", message: pe, replaceMessageId: mt }), (Is = fe.current) == null || Is.call(fe, pe), ge && q(ge, { outcome: "success" });
7943
7943
  const { messagingSessionId: He } = W;
7944
- He && O({ type: "SET_MESSAGING_SESSION_ID", id: He });
7944
+ He && I({ type: "SET_MESSAGING_SESSION_ID", id: He });
7945
7945
  const xt = He ? D_(W.content) : null;
7946
7946
  He && xt && ((td = Be.current) == null || td.call(Be, {
7947
7947
  agentSessionId: He,
@@ -7965,27 +7965,27 @@ const Mr = /* @__PURE__ */ Symbol("initialization-cancelled"), qS = 3e4, jS = "I
7965
7965
  token: W.token
7966
7966
  });
7967
7967
  }
7968
- O({ type: "APPEND_STREAMING_TOKEN", token: W.token });
7968
+ I({ type: "APPEND_STREAMING_TOKEN", token: W.token });
7969
7969
  }
7970
7970
  }), H.on("typing_started", () => {
7971
7971
  var W;
7972
- (W = Ii(Tt.current)) != null && W.options.silent || O({ type: "SET_AGENT_TYPING", isTyping: !0 });
7972
+ (W = Ii(Tt.current)) != null && W.options.silent || I({ type: "SET_AGENT_TYPING", isTyping: !0 });
7973
7973
  }), H.on("typing_stopped", () => {
7974
7974
  var W;
7975
- (W = Ii(Tt.current)) != null && W.options.silent || O({ type: "SET_AGENT_TYPING", isTyping: !1 });
7975
+ (W = Ii(Tt.current)) != null && W.options.silent || I({ type: "SET_AGENT_TYPING", isTyping: !1 });
7976
7976
  }), H.on("progress_indicator", (W) => {
7977
7977
  var pe;
7978
- (pe = Ii(Tt.current)) != null && pe.options.silent || O({ type: "ADD_PROGRESS_STEP", message: W.message });
7978
+ (pe = Ii(Tt.current)) != null && pe.options.silent || I({ type: "ADD_PROGRESS_STEP", message: W.message });
7979
7979
  }), H.on("routing_result", (W) => {
7980
7980
  var pe;
7981
- if (O({ type: "SET_ROUTING_RESULT", result: W }), !W.isSuccessful) {
7981
+ if (I({ type: "SET_ROUTING_RESULT", result: W }), !W.isSuccessful) {
7982
7982
  const ge = `Routing failed: ${W.failureType || "unknown"}`;
7983
- O({
7983
+ I({
7984
7984
  type: "SET_ERROR",
7985
7985
  error: Wd({
7986
7986
  code: "ROUTING_FAILED"
7987
7987
  })
7988
- }), O({ type: "SET_CONNECTION_STATUS", status: "error" }), (pe = I.current) == null || pe.call(I, ge);
7988
+ }), I({ type: "SET_CONNECTION_STATUS", status: "error" }), (pe = w.current) == null || pe.call(w, ge);
7989
7989
  }
7990
7990
  }), H.on("participant_changed", (W) => {
7991
7991
  var ge;
@@ -7999,7 +7999,7 @@ const Mr = /* @__PURE__ */ Symbol("initialization-cancelled"), qS = 3e4, jS = "I
7999
7999
  });
8000
8000
  g == null || g.log("🦜 MessagingProvider participant_changed event received", {
8001
8001
  event: W
8002
- }), W.action === "add" && ((ge = M.current) == null || ge.participantJoined(W.participant.name || "Agent")), O({ type: "ADD_MESSAGE", message: pe });
8002
+ }), W.action === "add" && ((ge = M.current) == null || ge.participantJoined(W.participant.name || "Agent")), I({ type: "ADD_MESSAGE", message: pe });
8003
8003
  }), H.on("conversation_closed", () => {
8004
8004
  var pe;
8005
8005
  const W = {
@@ -8008,14 +8008,14 @@ const Mr = /* @__PURE__ */ Symbol("initialization-cancelled"), qS = 3e4, jS = "I
8008
8008
  content: Yd,
8009
8009
  timestamp: (/* @__PURE__ */ new Date()).toISOString()
8010
8010
  };
8011
- (pe = M.current) == null || pe.conversationEnded("server_closed"), O({ type: "ADD_MESSAGE", message: W }), O({ type: "SET_CONVERSATION_ID", id: null }), S.clearPersistedConversation("ended");
8011
+ (pe = M.current) == null || pe.conversationEnded("server_closed"), I({ type: "ADD_MESSAGE", message: W }), I({ type: "SET_CONVERSATION_ID", id: null }), S.clearPersistedConversation("ended");
8012
8012
  }), H.on("error", (W) => {
8013
8013
  var pe;
8014
8014
  if (g == null || g.log("🦜 MessagingProvider ERROR event received", { event: W }), W.code === "SESSION_EXPIRED") {
8015
- we.current = !0, O({ type: "SET_SESSION_EXPIRED", expired: !0 }), O({ type: "SET_CONNECTION_STATUS", status: "disconnected" }), O({ type: "SET_LOADING", isLoading: !1 });
8015
+ we.current = !0, I({ type: "SET_SESSION_EXPIRED", expired: !0 }), I({ type: "SET_CONNECTION_STATUS", status: "disconnected" }), I({ type: "SET_LOADING", isLoading: !1 });
8016
8016
  return;
8017
8017
  }
8018
- O({ type: "SET_ERROR", error: Wd(W) }), W.recoverable || O({ type: "SET_CONNECTION_STATUS", status: "error" }), (pe = I.current) == null || pe.call(I, W.message);
8018
+ I({ type: "SET_ERROR", error: Wd(W) }), W.recoverable || I({ type: "SET_CONNECTION_STATUS", status: "error" }), (pe = w.current) == null || pe.call(w, W.message);
8019
8019
  });
8020
8020
  const oe = (W) => {
8021
8021
  if (W !== de.current)
@@ -8047,12 +8047,12 @@ const Mr = /* @__PURE__ */ Symbol("initialization-cancelled"), qS = 3e4, jS = "I
8047
8047
  outcome: He.outcome,
8048
8048
  restoredMessages: He.restoredMessages.length
8049
8049
  }), He.outcome === "aborted")
8050
- throw O({ type: "SET_LOADING", isLoading: !1 }), O({ type: "SET_CONNECTION_STATUS", status: "disconnected" }), Mr;
8050
+ throw I({ type: "SET_LOADING", isLoading: !1 }), I({ type: "SET_CONNECTION_STATUS", status: "disconnected" }), Mr;
8051
8051
  if (He.outcome === "unverified-error") {
8052
- He.conversationId && (H.resumeConversation(He.conversationId), O({ type: "SET_CONVERSATION_ID", id: He.conversationId })), D(!0);
8052
+ He.conversationId && (H.resumeConversation(He.conversationId), I({ type: "SET_CONVERSATION_ID", id: He.conversationId })), D(!0);
8053
8053
  return;
8054
8054
  }
8055
- O({ type: "SET_CONVERSATION_ID", id: He.conversationId }), He.resumed && O({ type: "LOAD_HISTORY", messages: He.restoredMessages }), D(!0), O({ type: "SET_LOADING", isLoading: !1 });
8055
+ I({ type: "SET_CONVERSATION_ID", id: He.conversationId }), He.resumed && I({ type: "LOAD_HISTORY", messages: He.restoredMessages }), D(!0), I({ type: "SET_LOADING", isLoading: !1 });
8056
8056
  });
8057
8057
  return Qe.current = ae, () => {
8058
8058
  de.current += 1, be.current += 1, H.disconnect(), H.off(), Z.current = null, Qe.current = null, pt.current = null, Ee.current = !1;
@@ -8066,7 +8066,7 @@ const Mr = /* @__PURE__ */ Symbol("initialization-cancelled"), qS = 3e4, jS = "I
8066
8066
  }).then(() => st.current());
8067
8067
  const H = Qe.current;
8068
8068
  if (!H) return Promise.reject(new Error("Messaging is unavailable"));
8069
- O({ type: "SET_LOADING", isLoading: !0 }), O({ type: "SET_CONNECTION_STATUS", status: "connecting" });
8069
+ I({ type: "SET_LOADING", isLoading: !0 }), I({ type: "SET_CONNECTION_STATUS", status: "connecting" });
8070
8070
  const oe = ++de.current;
8071
8071
  he.current = oe;
8072
8072
  const ue = H(oe).then(() => {
@@ -8076,7 +8076,7 @@ const Mr = /* @__PURE__ */ Symbol("initialization-cancelled"), qS = 3e4, jS = "I
8076
8076
  if (ae === Mr)
8077
8077
  throw ae;
8078
8078
  const W = ae instanceof Error ? ae.message : String(ae);
8079
- throw O({ type: "SET_CONNECTION_STATUS", status: "error" }), O({ type: "SET_ERROR", error: an(ae) }), (pe = I.current) == null || pe.call(I, W), ae;
8079
+ throw I({ type: "SET_CONNECTION_STATUS", status: "error" }), I({ type: "SET_ERROR", error: an(ae) }), (pe = w.current) == null || pe.call(w, W), ae;
8080
8080
  }).finally(() => {
8081
8081
  pt.current === ue && (pt.current = null);
8082
8082
  });
@@ -8088,9 +8088,9 @@ const Mr = /* @__PURE__ */ Symbol("initialization-cancelled"), qS = 3e4, jS = "I
8088
8088
  }, [A, e, t, n, a, re]);
8089
8089
  const Ne = vS({
8090
8090
  isOpen: A,
8091
- connectionStatus: C.connectionStatus,
8092
- conversationId: C.conversationId,
8093
- messages: C.messages,
8091
+ connectionStatus: P.connectionStatus,
8092
+ conversationId: P.conversationId,
8093
+ messages: P.messages,
8094
8094
  deliverUserMessageRef: Ht
8095
8095
  }), Pe = me(() => ce(null, null, function* () {
8096
8096
  const H = Z.current;
@@ -8121,18 +8121,18 @@ const Mr = /* @__PURE__ */ Symbol("initialization-cancelled"), qS = 3e4, jS = "I
8121
8121
  { conversationId: ue.conversationId }
8122
8122
  ), H.resumeConversation(ue.conversationId)), g == null || g.log("🦜 attemptResume: resumed conversation on same identity", {
8123
8123
  conversationId: ue.conversationId
8124
- }), O({ type: "SET_CONVERSATION_ID", id: ue.conversationId }), O({ type: "SET_CONNECTION_STATUS", status: "connected" }), ue.outcome !== "resumed" && S.persistConversationId(ue.conversationId, "resumed"), we.current = !1, O({ type: "SET_SESSION_EXPIRED", expired: !1 }), !0);
8124
+ }), I({ type: "SET_CONVERSATION_ID", id: ue.conversationId }), I({ type: "SET_CONNECTION_STATUS", status: "connected" }), ue.outcome !== "resumed" && S.persistConversationId(ue.conversationId, "resumed"), we.current = !1, I({ type: "SET_SESSION_EXPIRED", expired: !1 }), !0);
8125
8125
  }), [S, g]), Ue = me(
8126
8126
  (H) => ce(null, null, function* () {
8127
8127
  var ue, ae, W;
8128
8128
  const oe = Z.current;
8129
8129
  if (oe) {
8130
- H.options.silent || (O({ type: "SET_LOADING", isLoading: !0 }), O({ type: "SET_PROGRESS_MESSAGE", message: "" }));
8130
+ H.options.silent || (I({ type: "SET_LOADING", isLoading: !0 }), I({ type: "SET_PROGRESS_MESSAGE", message: "" }));
8131
8131
  try {
8132
8132
  if (H.file) {
8133
8133
  const pe = yield Xd(H);
8134
8134
  if ("error" in pe) {
8135
- O({
8135
+ I({
8136
8136
  type: "SET_SEND_ERROR",
8137
8137
  error: {
8138
8138
  text: H.text,
@@ -8142,7 +8142,7 @@ const Mr = /* @__PURE__ */ Symbol("initialization-cancelled"), qS = 3e4, jS = "I
8142
8142
  file: H.file,
8143
8143
  message: pe.error
8144
8144
  }
8145
- }), (ue = I.current) == null || ue.call(I, pe.error), q(H, { outcome: "failure", message: pe.error });
8145
+ }), (ue = w.current) == null || ue.call(w, pe.error), q(H, { outcome: "failure", message: pe.error });
8146
8146
  return;
8147
8147
  }
8148
8148
  const ge = yield oe.sendFile(
@@ -8157,7 +8157,7 @@ const Mr = /* @__PURE__ */ Symbol("initialization-cancelled"), qS = 3e4, jS = "I
8157
8157
  } else H.sessionContext ? yield oe.sendMessage(H.text, H.sessionContext) : yield oe.sendMessage(H.text);
8158
8158
  } catch (pe) {
8159
8159
  const ge = an(pe);
8160
- O({
8160
+ I({
8161
8161
  type: "SET_SEND_ERROR",
8162
8162
  error: {
8163
8163
  text: H.text,
@@ -8167,7 +8167,7 @@ const Mr = /* @__PURE__ */ Symbol("initialization-cancelled"), qS = 3e4, jS = "I
8167
8167
  file: H.file,
8168
8168
  message: ge
8169
8169
  }
8170
- }), (W = I.current) == null || W.call(I, pe instanceof Error ? pe.message : String(pe)), q(H, { outcome: "failure", message: ge });
8170
+ }), (W = w.current) == null || W.call(w, pe instanceof Error ? pe.message : String(pe)), q(H, { outcome: "failure", message: ge });
8171
8171
  }
8172
8172
  }
8173
8173
  }),
@@ -8185,7 +8185,7 @@ const Mr = /* @__PURE__ */ Symbol("initialization-cancelled"), qS = 3e4, jS = "I
8185
8185
  }
8186
8186
  g == null || g.log(
8187
8187
  "🦜 recoverExpiredSession: resume failed — starting a new session + conversation"
8188
- ), we.current = !1, O({ type: "SET_SESSION_EXPIRED", expired: !1 }), O({
8188
+ ), we.current = !1, I({ type: "SET_SESSION_EXPIRED", expired: !1 }), I({
8189
8189
  type: "ADD_MESSAGE",
8190
8190
  message: {
8191
8191
  id: crypto.randomUUID(),
@@ -8193,17 +8193,17 @@ const Mr = /* @__PURE__ */ Symbol("initialization-cancelled"), qS = 3e4, jS = "I
8193
8193
  content: bS,
8194
8194
  timestamp: (/* @__PURE__ */ new Date()).toISOString()
8195
8195
  }
8196
- }), S.clearPersistedConversation("reset"), O({ type: "SET_CONNECTION_STATUS", status: "connecting" }), oe.disconnect(), yield oe.connect(), yield S.persistContinuationToken(oe);
8196
+ }), S.clearPersistedConversation("reset"), I({ type: "SET_CONNECTION_STATUS", status: "connecting" }), oe.disconnect(), yield oe.connect(), yield S.persistContinuationToken(oe);
8197
8197
  const ae = yield po({ routingAttributes: r });
8198
8198
  if (ae === Ki) {
8199
- O({ type: "SET_CONNECTION_STATUS", status: "disconnected" });
8199
+ I({ type: "SET_CONNECTION_STATUS", status: "disconnected" });
8200
8200
  return;
8201
8201
  }
8202
8202
  const W = yield oe.createConversation(ae);
8203
- g == null || g.log("🦜 recoverExpiredSession: new conversation created", { conversationId: W }), O({ type: "SET_CONVERSATION_ID", id: W }), O({ type: "SET_CONNECTION_STATUS", status: "connected" }), S.persistConversationId(W, "created"), H && (yield Ue(H));
8203
+ g == null || g.log("🦜 recoverExpiredSession: new conversation created", { conversationId: W }), I({ type: "SET_CONVERSATION_ID", id: W }), I({ type: "SET_CONNECTION_STATUS", status: "connected" }), S.persistConversationId(W, "created"), H && (yield Ue(H));
8204
8204
  } catch (ae) {
8205
8205
  const W = ae instanceof Error ? ae.message : String(ae);
8206
- O({ type: "SET_ERROR", error: an(ae) }), O({ type: "SET_CONNECTION_STATUS", status: "error" }), (ue = I.current) == null || ue.call(I, W), H && q(H, { outcome: "failure", message: an(ae) });
8206
+ I({ type: "SET_ERROR", error: an(ae) }), I({ type: "SET_CONNECTION_STATUS", status: "error" }), (ue = w.current) == null || ue.call(w, W), H && q(H, { outcome: "failure", message: an(ae) });
8207
8207
  } finally {
8208
8208
  Te.current = !1, Ae.current = !1;
8209
8209
  }
@@ -8222,9 +8222,9 @@ const Mr = /* @__PURE__ */ Symbol("initialization-cancelled"), qS = 3e4, jS = "I
8222
8222
  Te.current = !0;
8223
8223
  const oe = ce(null, null, function* () {
8224
8224
  try {
8225
- (yield Pe()) || (we.current = !0, O({ type: "SET_SESSION_EXPIRED", expired: !0 }), O({ type: "SET_CONNECTION_STATUS", status: "disconnected" }));
8225
+ (yield Pe()) || (we.current = !0, I({ type: "SET_SESSION_EXPIRED", expired: !0 }), I({ type: "SET_CONNECTION_STATUS", status: "disconnected" }));
8226
8226
  } catch (ue) {
8227
- we.current = !0, O({ type: "SET_SESSION_EXPIRED", expired: !0 }), O({ type: "SET_CONNECTION_STATUS", status: "disconnected" });
8227
+ we.current = !0, I({ type: "SET_SESSION_EXPIRED", expired: !0 }), I({ type: "SET_CONNECTION_STATUS", status: "disconnected" });
8228
8228
  } finally {
8229
8229
  Te.current = !1, Je.current = null;
8230
8230
  }
@@ -8244,7 +8244,7 @@ const Mr = /* @__PURE__ */ Symbol("initialization-cancelled"), qS = 3e4, jS = "I
8244
8244
  ae && H.resumeConversation(ae);
8245
8245
  } catch (ae) {
8246
8246
  if ($a(ae)) {
8247
- we.current = !0, O({ type: "SET_SESSION_EXPIRED", expired: !0 }), O({ type: "SET_CONNECTION_STATUS", status: "disconnected" }), O({ type: "SET_LOADING", isLoading: !1 });
8247
+ we.current = !0, I({ type: "SET_SESSION_EXPIRED", expired: !0 }), I({ type: "SET_CONNECTION_STATUS", status: "disconnected" }), I({ type: "SET_LOADING", isLoading: !1 });
8248
8248
  return;
8249
8249
  }
8250
8250
  g == null || g.log("🦜 reconnectOmittingLastEventId: transient connect failure — session kept", {
@@ -8293,7 +8293,7 @@ const Mr = /* @__PURE__ */ Symbol("initialization-cancelled"), qS = 3e4, jS = "I
8293
8293
  if (H.file) {
8294
8294
  const ge = yield Xd(H);
8295
8295
  if ("error" in ge) {
8296
- O({ type: "SET_SEND_ERROR", error: oe(ge.error) }), (ae = I.current) == null || ae.call(I, ge.error), q(H, { outcome: "failure", message: ge.error });
8296
+ I({ type: "SET_SEND_ERROR", error: oe(ge.error) }), (ae = w.current) == null || ae.call(w, ge.error), q(H, { outcome: "failure", message: ge.error });
8297
8297
  return;
8298
8298
  }
8299
8299
  const mt = yield ue.sendFile(
@@ -8312,7 +8312,7 @@ const Mr = /* @__PURE__ */ Symbol("initialization-cancelled"), qS = 3e4, jS = "I
8312
8312
  return;
8313
8313
  }
8314
8314
  const mt = an(ge);
8315
- O({ type: "SET_SEND_ERROR", error: oe(mt) }), (pe = I.current) == null || pe.call(I, ge instanceof Error ? ge.message : String(ge)), q(H, { outcome: "failure", message: mt });
8315
+ I({ type: "SET_SEND_ERROR", error: oe(mt) }), (pe = w.current) == null || pe.call(w, ge instanceof Error ? ge.message : String(ge)), q(H, { outcome: "failure", message: mt });
8316
8316
  }
8317
8317
  }),
8318
8318
  [q]
@@ -8338,12 +8338,12 @@ const Mr = /* @__PURE__ */ Symbol("initialization-cancelled"), qS = 3e4, jS = "I
8338
8338
  file: W,
8339
8339
  resolve: ge,
8340
8340
  timeoutId: setTimeout(() => {
8341
- O({ type: "SET_LOADING", isLoading: !1 }), q(He, { outcome: "timeout" });
8341
+ I({ type: "SET_LOADING", isLoading: !1 }), q(He, { outcome: "timeout" });
8342
8342
  }, SS)
8343
- }), Tt.current.push(He), O({ type: "CLEAR_SEND_ERROR" }), !ue.silent) {
8343
+ }), Tt.current.push(He), I({ type: "CLEAR_SEND_ERROR" }), !ue.silent) {
8344
8344
  if (!pe) {
8345
8345
  const xt = crypto.randomUUID();
8346
- O({
8346
+ I({
8347
8347
  type: "ADD_MESSAGE",
8348
8348
  message: {
8349
8349
  id: xt,
@@ -8352,7 +8352,7 @@ const Mr = /* @__PURE__ */ Symbol("initialization-cancelled"), qS = 3e4, jS = "I
8352
8352
  timestamp: (/* @__PURE__ */ new Date()).toISOString()
8353
8353
  }
8354
8354
  }), W && W.type.startsWith("image/") && Ic(W, { maxDimension: GS, quality: WS }).then(Up).then(
8355
- (zt) => O({
8355
+ (zt) => I({
8356
8356
  type: "UPDATE_MESSAGE",
8357
8357
  id: xt,
8358
8358
  patch: { attachmentImageUrl: zt }
@@ -8360,7 +8360,7 @@ const Mr = /* @__PURE__ */ Symbol("initialization-cancelled"), qS = 3e4, jS = "I
8360
8360
  ).catch(() => {
8361
8361
  });
8362
8362
  }
8363
- O({ type: "SET_LOADING", isLoading: !0 }), O({ type: "SET_PROGRESS_MESSAGE", message: "" });
8363
+ I({ type: "SET_LOADING", isLoading: !0 }), I({ type: "SET_PROGRESS_MESSAGE", message: "" });
8364
8364
  }
8365
8365
  Nn(
8366
8366
  () => bt(He, (xt) => ({
@@ -8462,16 +8462,16 @@ const Mr = /* @__PURE__ */ Symbol("initialization-cancelled"), qS = 3e4, jS = "I
8462
8462
  }), ae;
8463
8463
  }, [ot]), Zl = me(() => {
8464
8464
  const H = Z.current;
8465
- H && (pt.current || (we.current = !1, Ee.current = !1, $(!1), H.disconnect(), O({ type: "SET_CONNECTION_STATUS", status: "connecting" }), re().catch(() => {
8465
+ H && (pt.current || (we.current = !1, Ee.current = !1, $(!1), H.disconnect(), I({ type: "SET_CONNECTION_STATUS", status: "connecting" }), re().catch(() => {
8466
8466
  })));
8467
8467
  }, [re]), Ss = me(() => {
8468
8468
  var ue;
8469
8469
  const H = Z.current;
8470
8470
  if (!H) return Promise.resolve();
8471
8471
  if (Tt.current = [], (ue = M.current) == null || ue.conversationEnded("user_cleared"), !Ee.current)
8472
- return de.current += 1, be.current += 1, H.disconnect(), S.clearPersistedConversation("reset"), O({ type: "RESET" }), Promise.resolve();
8472
+ return de.current += 1, be.current += 1, H.disconnect(), S.clearPersistedConversation("reset"), I({ type: "RESET" }), Promise.resolve();
8473
8473
  const oe = ++be.current;
8474
- return we.current = !1, j(!1), S.clearPersistedConversation("reset"), O({ type: "RESET" }), O({ type: "SET_LOADING", isLoading: !0 }), O({ type: "SET_CONNECTION_STATUS", status: "connecting" }), H.endConversation().then(() => oe !== be.current || Z.current !== H ? null : (H.disconnect(), H.connect().then(() => H))).then((ae) => ce(null, null, function* () {
8474
+ return we.current = !1, j(!1), S.clearPersistedConversation("reset"), I({ type: "RESET" }), I({ type: "SET_LOADING", isLoading: !0 }), I({ type: "SET_CONNECTION_STATUS", status: "connecting" }), H.endConversation().then(() => oe !== be.current || Z.current !== H ? null : (H.disconnect(), H.connect().then(() => H))).then((ae) => ce(null, null, function* () {
8475
8475
  if (!ae || oe !== be.current || (yield S.persistContinuationToken(
8476
8476
  ae,
8477
8477
  () => oe === be.current && Z.current === ae
@@ -8480,24 +8480,24 @@ const Mr = /* @__PURE__ */ Symbol("initialization-cancelled"), qS = 3e4, jS = "I
8480
8480
  const W = yield po({ routingAttributes: r });
8481
8481
  return W === Ki ? null : H.createConversation(W);
8482
8482
  })).then((ae) => {
8483
- !ae || oe !== be.current || Z.current !== H || (O({ type: "SET_CONVERSATION_ID", id: ae }), O({ type: "SET_CONNECTION_STATUS", status: "connected" }), S.persistConversationId(ae, "created"));
8483
+ !ae || oe !== be.current || Z.current !== H || (I({ type: "SET_CONVERSATION_ID", id: ae }), I({ type: "SET_CONNECTION_STATUS", status: "connected" }), S.persistConversationId(ae, "created"));
8484
8484
  }).catch((ae) => {
8485
8485
  var W;
8486
- oe !== be.current || Z.current !== H || (O({ type: "SET_ERROR", error: an(ae) }), O({ type: "SET_CONNECTION_STATUS", status: "error" }), (W = I.current) == null || W.call(I, ae.message));
8486
+ oe !== be.current || Z.current !== H || (I({ type: "SET_ERROR", error: an(ae) }), I({ type: "SET_CONNECTION_STATUS", status: "error" }), (W = w.current) == null || W.call(w, ae.message));
8487
8487
  });
8488
8488
  }, [r, S]);
8489
8489
  RS(Ss), wS({
8490
- connectionStatus: C.connectionStatus,
8491
- loading: C.loading,
8492
- hasMessages: C.messages.length > 0,
8493
- sessionExpired: C.sessionExpired,
8494
- bootstrapSettled: w,
8490
+ connectionStatus: P.connectionStatus,
8491
+ loading: P.loading,
8492
+ hasMessages: P.messages.length > 0,
8493
+ sessionExpired: P.sessionExpired,
8494
+ bootstrapSettled: O,
8495
8495
  resumeUsedLastEventId: F,
8496
8496
  recoverySteps: [er, Ss],
8497
8497
  onExhausted: () => {
8498
8498
  var oe;
8499
8499
  const H = an({ type: "network" });
8500
- O({ type: "SET_ERROR", error: H }), O({ type: "SET_CONNECTION_STATUS", status: "error" }), (oe = I.current) == null || oe.call(I, H);
8500
+ I({ type: "SET_ERROR", error: H }), I({ type: "SET_CONNECTION_STATUS", status: "error" }), (oe = w.current) == null || oe.call(w, H);
8501
8501
  },
8502
8502
  logger: g,
8503
8503
  isRecoveryInFlight: () => Te.current || Je.current !== null
@@ -8517,7 +8517,7 @@ const Mr = /* @__PURE__ */ Symbol("initialization-cancelled"), qS = 3e4, jS = "I
8517
8517
  const H = Z.current;
8518
8518
  if (!H) return Promise.resolve();
8519
8519
  if (Tt.current = [], !Ee.current)
8520
- return de.current += 1, be.current += 1, H.disconnect(), S.clearPersistedConversation("ended"), O({ type: "RESET" }), O({ type: "SET_CONNECTION_STATUS", status: "disconnected" }), Promise.resolve();
8520
+ return de.current += 1, be.current += 1, H.disconnect(), S.clearPersistedConversation("ended"), I({ type: "RESET" }), I({ type: "SET_CONNECTION_STATUS", status: "disconnected" }), Promise.resolve();
8521
8521
  const oe = ++be.current;
8522
8522
  if (we.current = !1, j(!1), Ce.current)
8523
8523
  try {
@@ -8528,18 +8528,18 @@ const Mr = /* @__PURE__ */ Symbol("initialization-cancelled"), qS = 3e4, jS = "I
8528
8528
  } catch (ae) {
8529
8529
  g == null || g.error("onEndConversation callback failed", ae);
8530
8530
  }
8531
- S.clearPersistedConversation("ended"), O({ type: "RESET" }), O({ type: "SET_CONNECTION_STATUS", status: "disconnected" });
8531
+ S.clearPersistedConversation("ended"), I({ type: "RESET" }), I({ type: "SET_CONNECTION_STATUS", status: "disconnected" });
8532
8532
  const ue = {
8533
8533
  id: crypto.randomUUID(),
8534
8534
  role: "system",
8535
8535
  content: Yd,
8536
8536
  timestamp: (/* @__PURE__ */ new Date()).toISOString()
8537
8537
  };
8538
- return O({ type: "ADD_MESSAGE", message: ue }), Ee.current = !1, $(!1), H.endConversation().then(() => {
8538
+ return I({ type: "ADD_MESSAGE", message: ue }), Ee.current = !1, $(!1), H.endConversation().then(() => {
8539
8539
  oe !== be.current || Z.current !== H || H.disconnect();
8540
8540
  }).catch((ae) => {
8541
8541
  var W;
8542
- oe !== be.current || Z.current !== H || (O({ type: "SET_ERROR", error: an(ae) }), O({ type: "SET_CONNECTION_STATUS", status: "error" }), (W = I.current) == null || W.call(I, ae.message));
8542
+ oe !== be.current || Z.current !== H || (I({ type: "SET_ERROR", error: an(ae) }), I({ type: "SET_CONNECTION_STATUS", status: "error" }), (W = w.current) == null || W.call(w, ae.message));
8543
8543
  });
8544
8544
  }), [g, S, j]);
8545
8545
  kS(ba);
@@ -8556,25 +8556,25 @@ const Mr = /* @__PURE__ */ Symbol("initialization-cancelled"), qS = 3e4, jS = "I
8556
8556
  };
8557
8557
  return DS(H), () => MS(H);
8558
8558
  }, [As]);
8559
- const Ns = C.connectionStatus === "connected" && C.conversationId !== null;
8559
+ const Ns = P.connectionStatus === "connected" && P.conversationId !== null;
8560
8560
  Ie(() => {
8561
8561
  md(Ns);
8562
8562
  }, [Ns]), Ie(() => () => md(!1), []);
8563
8563
  const g1 = ze(
8564
8564
  () => ({
8565
- connectionStatus: C.connectionStatus,
8565
+ connectionStatus: P.connectionStatus,
8566
8566
  isConnected: Ns,
8567
- isAgentTyping: C.isAgentTyping,
8568
- conversationId: C.conversationId,
8569
- messages: C.messages,
8570
- streamingBlocks: C.streamingBlocks,
8571
- progressMessage: C.progressMessage,
8572
- progressSteps: C.progressSteps,
8573
- error: C.error,
8574
- sendError: C.sendError,
8575
- canInitialize: !k && C.error === null,
8576
- loading: C.loading,
8577
- sessionExpired: C.sessionExpired,
8567
+ isAgentTyping: P.isAgentTyping,
8568
+ conversationId: P.conversationId,
8569
+ messages: P.messages,
8570
+ streamingBlocks: P.streamingBlocks,
8571
+ progressMessage: P.progressMessage,
8572
+ progressSteps: P.progressSteps,
8573
+ error: P.error,
8574
+ sendError: P.sendError,
8575
+ canInitialize: !k && P.error === null,
8576
+ loading: P.loading,
8577
+ sessionExpired: P.sessionExpired,
8578
8578
  sendMessage: bi,
8579
8579
  sendFile: Kl,
8580
8580
  addToCart: Ql,
@@ -8586,7 +8586,7 @@ const Mr = /* @__PURE__ */ Symbol("initialization-cancelled"), qS = 3e4, jS = "I
8586
8586
  getAuthLinkKey: As
8587
8587
  }),
8588
8588
  [
8589
- C,
8589
+ P,
8590
8590
  Ns,
8591
8591
  k,
8592
8592
  bi,
@@ -9314,9 +9314,9 @@ const c2 = (e) => Array.from(new Set((e != null ? e : []).map((t) => t.trim()).f
9314
9314
  disclaimerText: g,
9315
9315
  disclaimerMarkdown: b,
9316
9316
  clientContext: A,
9317
- searchPlaceholder: C,
9318
- searchButtonLabel: O,
9319
- searchConfig: w,
9317
+ searchPlaceholder: P,
9318
+ searchButtonLabel: I,
9319
+ searchConfig: O,
9320
9320
  suggestionButtonConfig: D,
9321
9321
  messageAlignment: F,
9322
9322
  autoScroll: j,
@@ -9347,9 +9347,9 @@ const c2 = (e) => Array.from(new Set((e != null ? e : []).map((t) => t.trim()).f
9347
9347
  globalClassName: l,
9348
9348
  openLinksInNewTab: u,
9349
9349
  onNavigate: c,
9350
- searchPlaceholder: C,
9351
- searchButtonLabel: O,
9352
- searchConfig: w,
9350
+ searchPlaceholder: P,
9351
+ searchButtonLabel: I,
9352
+ searchConfig: O,
9353
9353
  suggestionButtonConfig: D,
9354
9354
  messageAlignment: F,
9355
9355
  autoScroll: j,
@@ -9415,7 +9415,7 @@ function $m(e) {
9415
9415
  } else for (n in e) e[n] && (r && (r += " "), r += n);
9416
9416
  return r;
9417
9417
  }
9418
- function P() {
9418
+ function C() {
9419
9419
  for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = $m(e)) && (r && (r += " "), r += t);
9420
9420
  return r;
9421
9421
  }
@@ -9571,7 +9571,7 @@ const tn = ({
9571
9571
  }) => !n && !t ? null : /* @__PURE__ */ E(
9572
9572
  "button",
9573
9573
  {
9574
- className: P(e, `${y}-icon-button`),
9574
+ className: C(e, `${y}-icon-button`),
9575
9575
  type: r,
9576
9576
  "aria-label": i,
9577
9577
  title: s,
@@ -9580,7 +9580,7 @@ const tn = ({
9580
9580
  children: t ? /* @__PURE__ */ E(
9581
9581
  "img",
9582
9582
  {
9583
- className: P(`${y}-icon-image`),
9583
+ className: C(`${y}-icon-image`),
9584
9584
  src: t,
9585
9585
  alt: i,
9586
9586
  loading: "lazy"
@@ -9591,20 +9591,20 @@ const tn = ({
9591
9591
  const { globalClassName: t, headerConfig: n, launcherAriaLabel: r, mode: i } = ve(), s = i === "messaging", a = r || (s ? "Open Commerce Client" : "Open Copilot"), u = s ? /* @__PURE__ */ E(
9592
9592
  C2,
9593
9593
  {
9594
- className: P(t, `${y}-minimized-icon`)
9594
+ className: C(t, `${y}-minimized-icon`)
9595
9595
  }
9596
9596
  ) : /* @__PURE__ */ E(
9597
9597
  "img",
9598
9598
  {
9599
9599
  src: (n == null ? void 0 : n.logoUrl) || P2,
9600
9600
  alt: "Copilot",
9601
- className: P(t, `${y}-minimized-icon-img`)
9601
+ className: C(t, `${y}-minimized-icon-img`)
9602
9602
  }
9603
9603
  );
9604
9604
  return /* @__PURE__ */ E(
9605
9605
  tn,
9606
9606
  {
9607
- className: P(t, `${y}-minimized-button`),
9607
+ className: C(t, `${y}-minimized-button`),
9608
9608
  ariaLabel: a,
9609
9609
  title: a,
9610
9610
  icon: u,
@@ -9619,7 +9619,7 @@ const tn = ({
9619
9619
  /* @__PURE__ */ E(
9620
9620
  "div",
9621
9621
  {
9622
- className: P(e, `${y}-minimized-container`),
9622
+ className: C(e, `${y}-minimized-container`),
9623
9623
  style: t,
9624
9624
  children: /* @__PURE__ */ E(v2, { onClick: n })
9625
9625
  }
@@ -9723,7 +9723,7 @@ const Y2 = (e) => ({
9723
9723
  {
9724
9724
  "aria-label": t,
9725
9725
  title: t,
9726
- className: P(e, `${y}-close-button`),
9726
+ className: C(e, `${y}-close-button`),
9727
9727
  disabled: r,
9728
9728
  onClick: n,
9729
9729
  type: "button",
@@ -9754,7 +9754,7 @@ const Y2 = (e) => ({
9754
9754
  }, [e]), /* @__PURE__ */ X(
9755
9755
  "div",
9756
9756
  {
9757
- className: P(
9757
+ className: C(
9758
9758
  n,
9759
9759
  `cim-${t}-component`,
9760
9760
  `${y}-image-file-preview`
@@ -9763,7 +9763,7 @@ const Y2 = (e) => ({
9763
9763
  /* @__PURE__ */ E(
9764
9764
  "img",
9765
9765
  {
9766
- className: P(
9766
+ className: C(
9767
9767
  n,
9768
9768
  `cim-${t}-component`,
9769
9769
  `${y}-image-preview`
@@ -9776,7 +9776,7 @@ const Y2 = (e) => ({
9776
9776
  /* @__PURE__ */ E(
9777
9777
  "span",
9778
9778
  {
9779
- className: P(
9779
+ className: C(
9780
9780
  n,
9781
9781
  `cim-${t}-component`,
9782
9782
  `${y}-image-file-name`
@@ -9788,7 +9788,7 @@ const Y2 = (e) => ({
9788
9788
  /* @__PURE__ */ E(
9789
9789
  Gm,
9790
9790
  {
9791
- className: P(`cim-${t}-component`, "clear-attachment"),
9791
+ className: C(`cim-${t}-component`, "clear-attachment"),
9792
9792
  label: "Remove image",
9793
9793
  onClick: r
9794
9794
  }
@@ -9820,7 +9820,7 @@ const Y2 = (e) => ({
9820
9820
  "button",
9821
9821
  {
9822
9822
  type: "button",
9823
- className: P(
9823
+ className: C(
9824
9824
  i,
9825
9825
  s,
9826
9826
  `cim-${e}-component`,
@@ -9834,7 +9834,7 @@ const Y2 = (e) => ({
9834
9834
  /* @__PURE__ */ E(
9835
9835
  "span",
9836
9836
  {
9837
- className: P(
9837
+ className: C(
9838
9838
  i,
9839
9839
  s,
9840
9840
  `cim-${e}-component`,
@@ -9849,7 +9849,7 @@ const Y2 = (e) => ({
9849
9849
  "input",
9850
9850
  {
9851
9851
  ref: u,
9852
- className: P(
9852
+ className: C(
9853
9853
  i,
9854
9854
  s,
9855
9855
  `cim-${e}-component`,
@@ -9877,7 +9877,7 @@ const Y2 = (e) => ({
9877
9877
  "button",
9878
9878
  {
9879
9879
  "aria-label": s,
9880
- className: P(`${y}-button`, e, { disabled: r }),
9880
+ className: C(`${y}-button`, e, { disabled: r }),
9881
9881
  type: n || "button",
9882
9882
  disabled: r,
9883
9883
  onClick: i,
@@ -9891,7 +9891,7 @@ const Y2 = (e) => ({
9891
9891
  return n ? /* @__PURE__ */ E(
9892
9892
  "img",
9893
9893
  {
9894
- className: P(`${y}-search-button-icon-image`, t),
9894
+ className: C(`${y}-search-button-icon-image`, t),
9895
9895
  src: n,
9896
9896
  alt: "",
9897
9897
  loading: "lazy"
@@ -9908,7 +9908,7 @@ const Y2 = (e) => ({
9908
9908
  return /* @__PURE__ */ E(
9909
9909
  tn,
9910
9910
  {
9911
- className: P(
9911
+ className: C(
9912
9912
  e,
9913
9913
  n,
9914
9914
  `cim-${r}-component`,
@@ -9925,7 +9925,7 @@ const Y2 = (e) => ({
9925
9925
  return /* @__PURE__ */ X(
9926
9926
  qc,
9927
9927
  {
9928
- className: P(
9928
+ className: C(
9929
9929
  e,
9930
9930
  n,
9931
9931
  `cim-${r}-component`,
@@ -11162,22 +11162,22 @@ function fA() {
11162
11162
  if (!_) return [];
11163
11163
  g = g || {};
11164
11164
  var b = 1, A = 1;
11165
- function C(M) {
11165
+ function P(M) {
11166
11166
  var z = M.match(t);
11167
11167
  z && (b += z.length);
11168
11168
  var ne = M.lastIndexOf(u);
11169
11169
  A = ~ne ? M.length - ne : A + M.length;
11170
11170
  }
11171
- function O() {
11171
+ function I() {
11172
11172
  var M = { line: b, column: A };
11173
11173
  return function(z) {
11174
- return z.position = new w(M), j(), z;
11174
+ return z.position = new O(M), j(), z;
11175
11175
  };
11176
11176
  }
11177
- function w(M) {
11177
+ function O(M) {
11178
11178
  this.start = M, this.end = { line: b, column: A }, this.source = g.source;
11179
11179
  }
11180
- w.prototype.content = _;
11180
+ O.prototype.content = _;
11181
11181
  function D(M) {
11182
11182
  var z = new Error(
11183
11183
  g.source + ":" + b + ":" + A + ": " + M
@@ -11188,7 +11188,7 @@ function fA() {
11188
11188
  var z = M.exec(_);
11189
11189
  if (z) {
11190
11190
  var ne = z[0];
11191
- return C(ne), _ = _.slice(ne.length), z;
11191
+ return P(ne), _ = _.slice(ne.length), z;
11192
11192
  }
11193
11193
  }
11194
11194
  function j() {
@@ -11201,21 +11201,21 @@ function fA() {
11201
11201
  return M;
11202
11202
  }
11203
11203
  function $() {
11204
- var M = O();
11204
+ var M = I();
11205
11205
  if (!(c != _.charAt(0) || l != _.charAt(1))) {
11206
11206
  for (var z = 2; d != _.charAt(z) && (l != _.charAt(z) || c != _.charAt(z + 1)); )
11207
11207
  ++z;
11208
11208
  if (z += 2, d === _.charAt(z - 1))
11209
11209
  return D("End of comment missing");
11210
11210
  var ne = _.slice(2, z - 2);
11211
- return A += 2, C(ne), _ = _.slice(z), A += 2, M({
11211
+ return A += 2, P(ne), _ = _.slice(z), A += 2, M({
11212
11212
  type: p,
11213
11213
  comment: ne
11214
11214
  });
11215
11215
  }
11216
11216
  }
11217
11217
  function B() {
11218
- var M = O(), z = F(r);
11218
+ var M = I(), z = F(r);
11219
11219
  if (z) {
11220
11220
  if ($(), !F(i)) return D("property missing ':'");
11221
11221
  var ne = F(s), G = M({
@@ -11912,26 +11912,26 @@ function WA(e) {
11912
11912
  return a;
11913
11913
  function a(A) {
11914
11914
  if (r < n.length) {
11915
- const C = n[r];
11916
- return t.containerState = C[1], e.attempt(C[0].continuation, u, c)(A);
11915
+ const P = n[r];
11916
+ return t.containerState = P[1], e.attempt(P[0].continuation, u, c)(A);
11917
11917
  }
11918
11918
  return c(A);
11919
11919
  }
11920
11920
  function u(A) {
11921
11921
  if (r++, t.containerState._closeFlow) {
11922
11922
  t.containerState._closeFlow = void 0, i && b();
11923
- const C = t.events.length;
11924
- let O = C, w;
11925
- for (; O--; )
11926
- if (t.events[O][0] === "exit" && t.events[O][1].type === "chunkFlow") {
11927
- w = t.events[O][1].end;
11923
+ const P = t.events.length;
11924
+ let I = P, O;
11925
+ for (; I--; )
11926
+ if (t.events[I][0] === "exit" && t.events[I][1].type === "chunkFlow") {
11927
+ O = t.events[I][1].end;
11928
11928
  break;
11929
11929
  }
11930
11930
  g(r);
11931
- let D = C;
11931
+ let D = P;
11932
11932
  for (; D < t.events.length; )
11933
- t.events[D][1].end = v({}, w), D++;
11934
- return Bt(t.events, O + 1, 0, t.events.slice(C)), t.events.length = D, c(A);
11933
+ t.events[D][1].end = v({}, O), D++;
11934
+ return Bt(t.events, I + 1, 0, t.events.slice(P)), t.events.length = D, c(A);
11935
11935
  }
11936
11936
  return a(A);
11937
11937
  }
@@ -11975,16 +11975,16 @@ function WA(e) {
11975
11975
  }
11976
11976
  return _e(A) ? (e.consume(A), _(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, a) : (e.consume(A), T);
11977
11977
  }
11978
- function _(A, C) {
11979
- const O = t.sliceStream(A);
11980
- if (C && O.push(null), A.previous = s, s && (s.next = A), s = A, i.defineSkip(A.start), i.write(O), t.parser.lazy[A.start.line]) {
11981
- let w = i.events.length;
11982
- for (; w--; )
11978
+ function _(A, P) {
11979
+ const I = t.sliceStream(A);
11980
+ if (P && I.push(null), A.previous = s, s && (s.next = A), s = A, i.defineSkip(A.start), i.write(I), t.parser.lazy[A.start.line]) {
11981
+ let O = i.events.length;
11982
+ for (; O--; )
11983
11983
  if (
11984
11984
  // The token starts before the line ending…
11985
- i.events[w][1].start.offset < o && // …and either is not ended yet…
11986
- (!i.events[w][1].end || // …or ends after it.
11987
- i.events[w][1].end.offset > o)
11985
+ i.events[O][1].start.offset < o && // …and either is not ended yet…
11986
+ (!i.events[O][1].end || // …or ends after it.
11987
+ i.events[O][1].end.offset > o)
11988
11988
  )
11989
11989
  return;
11990
11990
  const D = t.events.length;
@@ -11997,16 +11997,16 @@ function WA(e) {
11997
11997
  }
11998
11998
  j = !0;
11999
11999
  }
12000
- for (g(r), w = D; w < t.events.length; )
12001
- t.events[w][1].end = v({}, k), w++;
12002
- Bt(t.events, F + 1, 0, t.events.slice(D)), t.events.length = w;
12000
+ for (g(r), O = D; O < t.events.length; )
12001
+ t.events[O][1].end = v({}, k), O++;
12002
+ Bt(t.events, F + 1, 0, t.events.slice(D)), t.events.length = O;
12003
12003
  }
12004
12004
  }
12005
12005
  function g(A) {
12006
- let C = n.length;
12007
- for (; C-- > A; ) {
12008
- const O = n[C];
12009
- t.containerState = O[1], O[0].exit.call(t, e);
12006
+ let P = n.length;
12007
+ for (; P-- > A; ) {
12008
+ const I = n[P];
12009
+ t.containerState = I[1], I[0].exit.call(t, e);
12010
12010
  }
12011
12011
  n.length = A;
12012
12012
  }
@@ -12227,71 +12227,71 @@ const Sf = {
12227
12227
  function oN(e, t, n) {
12228
12228
  const r = this, i = {
12229
12229
  partial: !0,
12230
- tokenize: O
12230
+ tokenize: I
12231
12231
  };
12232
12232
  let s = 0, o = 0, a;
12233
12233
  return u;
12234
- function u(w) {
12235
- return c(w);
12234
+ function u(O) {
12235
+ return c(O);
12236
12236
  }
12237
- function c(w) {
12237
+ function c(O) {
12238
12238
  const D = r.events[r.events.length - 1];
12239
- return s = D && D[1].type === "linePrefix" ? D[2].sliceSerialize(D[1], !0).length : 0, a = w, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), l(w);
12239
+ return s = D && D[1].type === "linePrefix" ? D[2].sliceSerialize(D[1], !0).length : 0, a = O, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), l(O);
12240
12240
  }
12241
- function l(w) {
12242
- return w === a ? (o++, e.consume(w), l) : o < 3 ? n(w) : (e.exit("codeFencedFenceSequence"), ke(w) ? De(e, d, "whitespace")(w) : d(w));
12241
+ function l(O) {
12242
+ return O === a ? (o++, e.consume(O), l) : o < 3 ? n(O) : (e.exit("codeFencedFenceSequence"), ke(O) ? De(e, d, "whitespace")(O) : d(O));
12243
12243
  }
12244
- function d(w) {
12245
- return w === null || _e(w) ? (e.exit("codeFencedFence"), r.interrupt ? t(w) : e.check(Sf, T, C)(w)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
12244
+ function d(O) {
12245
+ return O === null || _e(O) ? (e.exit("codeFencedFence"), r.interrupt ? t(O) : e.check(Sf, T, P)(O)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
12246
12246
  contentType: "string"
12247
- }), p(w));
12247
+ }), p(O));
12248
12248
  }
12249
- function p(w) {
12250
- return w === null || _e(w) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(w)) : ke(w) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), De(e, h, "whitespace")(w)) : w === 96 && w === a ? n(w) : (e.consume(w), p);
12249
+ function p(O) {
12250
+ return O === null || _e(O) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(O)) : ke(O) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), De(e, h, "whitespace")(O)) : O === 96 && O === a ? n(O) : (e.consume(O), p);
12251
12251
  }
12252
- function h(w) {
12253
- return w === null || _e(w) ? d(w) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
12252
+ function h(O) {
12253
+ return O === null || _e(O) ? d(O) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
12254
12254
  contentType: "string"
12255
- }), m(w));
12255
+ }), m(O));
12256
12256
  }
12257
- function m(w) {
12258
- return w === null || _e(w) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), d(w)) : w === 96 && w === a ? n(w) : (e.consume(w), m);
12257
+ function m(O) {
12258
+ return O === null || _e(O) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), d(O)) : O === 96 && O === a ? n(O) : (e.consume(O), m);
12259
12259
  }
12260
- function T(w) {
12261
- return e.attempt(i, C, _)(w);
12260
+ function T(O) {
12261
+ return e.attempt(i, P, _)(O);
12262
12262
  }
12263
- function _(w) {
12264
- return e.enter("lineEnding"), e.consume(w), e.exit("lineEnding"), g;
12263
+ function _(O) {
12264
+ return e.enter("lineEnding"), e.consume(O), e.exit("lineEnding"), g;
12265
12265
  }
12266
- function g(w) {
12267
- return s > 0 && ke(w) ? De(e, b, "linePrefix", s + 1)(w) : b(w);
12266
+ function g(O) {
12267
+ return s > 0 && ke(O) ? De(e, b, "linePrefix", s + 1)(O) : b(O);
12268
12268
  }
12269
- function b(w) {
12270
- return w === null || _e(w) ? e.check(Sf, T, C)(w) : (e.enter("codeFlowValue"), A(w));
12269
+ function b(O) {
12270
+ return O === null || _e(O) ? e.check(Sf, T, P)(O) : (e.enter("codeFlowValue"), A(O));
12271
12271
  }
12272
- function A(w) {
12273
- return w === null || _e(w) ? (e.exit("codeFlowValue"), b(w)) : (e.consume(w), A);
12272
+ function A(O) {
12273
+ return O === null || _e(O) ? (e.exit("codeFlowValue"), b(O)) : (e.consume(O), A);
12274
12274
  }
12275
- function C(w) {
12276
- return e.exit("codeFenced"), t(w);
12275
+ function P(O) {
12276
+ return e.exit("codeFenced"), t(O);
12277
12277
  }
12278
- function O(w, D, F) {
12278
+ function I(O, D, F) {
12279
12279
  let j = 0;
12280
12280
  return k;
12281
12281
  function k(z) {
12282
- return w.enter("lineEnding"), w.consume(z), w.exit("lineEnding"), $;
12282
+ return O.enter("lineEnding"), O.consume(z), O.exit("lineEnding"), $;
12283
12283
  }
12284
12284
  function $(z) {
12285
- return w.enter("codeFencedFence"), ke(z) ? De(w, B, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(z) : B(z);
12285
+ return O.enter("codeFencedFence"), ke(z) ? De(O, B, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(z) : B(z);
12286
12286
  }
12287
12287
  function B(z) {
12288
- return z === a ? (w.enter("codeFencedFenceSequence"), ee(z)) : F(z);
12288
+ return z === a ? (O.enter("codeFencedFenceSequence"), ee(z)) : F(z);
12289
12289
  }
12290
12290
  function ee(z) {
12291
- return z === a ? (j++, w.consume(z), ee) : j >= o ? (w.exit("codeFencedFenceSequence"), ke(z) ? De(w, M, "whitespace")(z) : M(z)) : F(z);
12291
+ return z === a ? (j++, O.consume(z), ee) : j >= o ? (O.exit("codeFencedFenceSequence"), ke(z) ? De(O, M, "whitespace")(z) : M(z)) : F(z);
12292
12292
  }
12293
12293
  function M(z) {
12294
- return z === null || _e(z) ? (w.exit("codeFencedFence"), D(z)) : F(z);
12294
+ return z === null || _e(z) ? (O.exit("codeFencedFence"), D(z)) : F(z);
12295
12295
  }
12296
12296
  }
12297
12297
  }
@@ -12934,104 +12934,104 @@ function MN(e, t, n) {
12934
12934
  const r = this;
12935
12935
  let i, s, o, a, u;
12936
12936
  return c;
12937
- function c(I) {
12938
- return l(I);
12937
+ function c(w) {
12938
+ return l(w);
12939
12939
  }
12940
- function l(I) {
12941
- return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(I), d;
12940
+ function l(w) {
12941
+ return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(w), d;
12942
12942
  }
12943
- function d(I) {
12944
- return I === 33 ? (e.consume(I), p) : I === 47 ? (e.consume(I), s = !0, T) : I === 63 ? (e.consume(I), i = 3, r.interrupt ? t : S) : Ot(I) ? (e.consume(I), o = String.fromCharCode(I), _) : n(I);
12943
+ function d(w) {
12944
+ return w === 33 ? (e.consume(w), p) : w === 47 ? (e.consume(w), s = !0, T) : w === 63 ? (e.consume(w), i = 3, r.interrupt ? t : S) : Ot(w) ? (e.consume(w), o = String.fromCharCode(w), _) : n(w);
12945
12945
  }
12946
- function p(I) {
12947
- return I === 45 ? (e.consume(I), i = 2, h) : I === 91 ? (e.consume(I), i = 5, a = 0, m) : Ot(I) ? (e.consume(I), i = 4, r.interrupt ? t : S) : n(I);
12946
+ function p(w) {
12947
+ return w === 45 ? (e.consume(w), i = 2, h) : w === 91 ? (e.consume(w), i = 5, a = 0, m) : Ot(w) ? (e.consume(w), i = 4, r.interrupt ? t : S) : n(w);
12948
12948
  }
12949
- function h(I) {
12950
- return I === 45 ? (e.consume(I), r.interrupt ? t : S) : n(I);
12949
+ function h(w) {
12950
+ return w === 45 ? (e.consume(w), r.interrupt ? t : S) : n(w);
12951
12951
  }
12952
- function m(I) {
12952
+ function m(w) {
12953
12953
  const ye = "CDATA[";
12954
- return I === ye.charCodeAt(a++) ? (e.consume(I), a === ye.length ? r.interrupt ? t : B : m) : n(I);
12954
+ return w === ye.charCodeAt(a++) ? (e.consume(w), a === ye.length ? r.interrupt ? t : B : m) : n(w);
12955
12955
  }
12956
- function T(I) {
12957
- return Ot(I) ? (e.consume(I), o = String.fromCharCode(I), _) : n(I);
12956
+ function T(w) {
12957
+ return Ot(w) ? (e.consume(w), o = String.fromCharCode(w), _) : n(w);
12958
12958
  }
12959
- function _(I) {
12960
- if (I === null || I === 47 || I === 62 || Ve(I)) {
12961
- const ye = I === 47, Be = o.toLowerCase();
12962
- return !ye && !s && Nf.includes(Be) ? (i = 1, r.interrupt ? t(I) : B(I)) : vN.includes(o.toLowerCase()) ? (i = 6, ye ? (e.consume(I), g) : r.interrupt ? t(I) : B(I)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(I) : s ? b(I) : A(I));
12959
+ function _(w) {
12960
+ if (w === null || w === 47 || w === 62 || Ve(w)) {
12961
+ const ye = w === 47, Be = o.toLowerCase();
12962
+ return !ye && !s && Nf.includes(Be) ? (i = 1, r.interrupt ? t(w) : B(w)) : vN.includes(o.toLowerCase()) ? (i = 6, ye ? (e.consume(w), g) : r.interrupt ? t(w) : B(w)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(w) : s ? b(w) : A(w));
12963
12963
  }
12964
- return I === 45 || _t(I) ? (e.consume(I), o += String.fromCharCode(I), _) : n(I);
12964
+ return w === 45 || _t(w) ? (e.consume(w), o += String.fromCharCode(w), _) : n(w);
12965
12965
  }
12966
- function g(I) {
12967
- return I === 62 ? (e.consume(I), r.interrupt ? t : B) : n(I);
12966
+ function g(w) {
12967
+ return w === 62 ? (e.consume(w), r.interrupt ? t : B) : n(w);
12968
12968
  }
12969
- function b(I) {
12970
- return ke(I) ? (e.consume(I), b) : k(I);
12969
+ function b(w) {
12970
+ return ke(w) ? (e.consume(w), b) : k(w);
12971
12971
  }
12972
- function A(I) {
12973
- return I === 47 ? (e.consume(I), k) : I === 58 || I === 95 || Ot(I) ? (e.consume(I), C) : ke(I) ? (e.consume(I), A) : k(I);
12972
+ function A(w) {
12973
+ return w === 47 ? (e.consume(w), k) : w === 58 || w === 95 || Ot(w) ? (e.consume(w), P) : ke(w) ? (e.consume(w), A) : k(w);
12974
12974
  }
12975
- function C(I) {
12976
- return I === 45 || I === 46 || I === 58 || I === 95 || _t(I) ? (e.consume(I), C) : O(I);
12975
+ function P(w) {
12976
+ return w === 45 || w === 46 || w === 58 || w === 95 || _t(w) ? (e.consume(w), P) : I(w);
12977
12977
  }
12978
- function O(I) {
12979
- return I === 61 ? (e.consume(I), w) : ke(I) ? (e.consume(I), O) : A(I);
12978
+ function I(w) {
12979
+ return w === 61 ? (e.consume(w), O) : ke(w) ? (e.consume(w), I) : A(w);
12980
12980
  }
12981
- function w(I) {
12982
- return I === null || I === 60 || I === 61 || I === 62 || I === 96 ? n(I) : I === 34 || I === 39 ? (e.consume(I), u = I, D) : ke(I) ? (e.consume(I), w) : F(I);
12981
+ function O(w) {
12982
+ return w === null || w === 60 || w === 61 || w === 62 || w === 96 ? n(w) : w === 34 || w === 39 ? (e.consume(w), u = w, D) : ke(w) ? (e.consume(w), O) : F(w);
12983
12983
  }
12984
- function D(I) {
12985
- return I === u ? (e.consume(I), u = null, j) : I === null || _e(I) ? n(I) : (e.consume(I), D);
12984
+ function D(w) {
12985
+ return w === u ? (e.consume(w), u = null, j) : w === null || _e(w) ? n(w) : (e.consume(w), D);
12986
12986
  }
12987
- function F(I) {
12988
- return I === null || I === 34 || I === 39 || I === 47 || I === 60 || I === 61 || I === 62 || I === 96 || Ve(I) ? O(I) : (e.consume(I), F);
12987
+ function F(w) {
12988
+ return w === null || w === 34 || w === 39 || w === 47 || w === 60 || w === 61 || w === 62 || w === 96 || Ve(w) ? I(w) : (e.consume(w), F);
12989
12989
  }
12990
- function j(I) {
12991
- return I === 47 || I === 62 || ke(I) ? A(I) : n(I);
12990
+ function j(w) {
12991
+ return w === 47 || w === 62 || ke(w) ? A(w) : n(w);
12992
12992
  }
12993
- function k(I) {
12994
- return I === 62 ? (e.consume(I), $) : n(I);
12993
+ function k(w) {
12994
+ return w === 62 ? (e.consume(w), $) : n(w);
12995
12995
  }
12996
- function $(I) {
12997
- return I === null || _e(I) ? B(I) : ke(I) ? (e.consume(I), $) : n(I);
12996
+ function $(w) {
12997
+ return w === null || _e(w) ? B(w) : ke(w) ? (e.consume(w), $) : n(w);
12998
12998
  }
12999
- function B(I) {
13000
- return I === 45 && i === 2 ? (e.consume(I), ne) : I === 60 && i === 1 ? (e.consume(I), G) : I === 62 && i === 4 ? (e.consume(I), Z) : I === 63 && i === 3 ? (e.consume(I), S) : I === 93 && i === 5 ? (e.consume(I), se) : _e(I) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(kN, fe, ee)(I)) : I === null || _e(I) ? (e.exit("htmlFlowData"), ee(I)) : (e.consume(I), B);
12999
+ function B(w) {
13000
+ return w === 45 && i === 2 ? (e.consume(w), ne) : w === 60 && i === 1 ? (e.consume(w), G) : w === 62 && i === 4 ? (e.consume(w), Z) : w === 63 && i === 3 ? (e.consume(w), S) : w === 93 && i === 5 ? (e.consume(w), se) : _e(w) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(kN, fe, ee)(w)) : w === null || _e(w) ? (e.exit("htmlFlowData"), ee(w)) : (e.consume(w), B);
13001
13001
  }
13002
- function ee(I) {
13003
- return e.check(LN, M, fe)(I);
13002
+ function ee(w) {
13003
+ return e.check(LN, M, fe)(w);
13004
13004
  }
13005
- function M(I) {
13006
- return e.enter("lineEnding"), e.consume(I), e.exit("lineEnding"), z;
13005
+ function M(w) {
13006
+ return e.enter("lineEnding"), e.consume(w), e.exit("lineEnding"), z;
13007
13007
  }
13008
- function z(I) {
13009
- return I === null || _e(I) ? ee(I) : (e.enter("htmlFlowData"), B(I));
13008
+ function z(w) {
13009
+ return w === null || _e(w) ? ee(w) : (e.enter("htmlFlowData"), B(w));
13010
13010
  }
13011
- function ne(I) {
13012
- return I === 45 ? (e.consume(I), S) : B(I);
13011
+ function ne(w) {
13012
+ return w === 45 ? (e.consume(w), S) : B(w);
13013
13013
  }
13014
- function G(I) {
13015
- return I === 47 ? (e.consume(I), o = "", K) : B(I);
13014
+ function G(w) {
13015
+ return w === 47 ? (e.consume(w), o = "", K) : B(w);
13016
13016
  }
13017
- function K(I) {
13018
- if (I === 62) {
13017
+ function K(w) {
13018
+ if (w === 62) {
13019
13019
  const ye = o.toLowerCase();
13020
- return Nf.includes(ye) ? (e.consume(I), Z) : B(I);
13020
+ return Nf.includes(ye) ? (e.consume(w), Z) : B(w);
13021
13021
  }
13022
- return Ot(I) && o.length < 8 ? (e.consume(I), o += String.fromCharCode(I), K) : B(I);
13022
+ return Ot(w) && o.length < 8 ? (e.consume(w), o += String.fromCharCode(w), K) : B(w);
13023
13023
  }
13024
- function se(I) {
13025
- return I === 93 ? (e.consume(I), S) : B(I);
13024
+ function se(w) {
13025
+ return w === 93 ? (e.consume(w), S) : B(w);
13026
13026
  }
13027
- function S(I) {
13028
- return I === 62 ? (e.consume(I), Z) : I === 45 && i === 2 ? (e.consume(I), S) : B(I);
13027
+ function S(w) {
13028
+ return w === 62 ? (e.consume(w), Z) : w === 45 && i === 2 ? (e.consume(w), S) : B(w);
13029
13029
  }
13030
- function Z(I) {
13031
- return I === null || _e(I) ? (e.exit("htmlFlowData"), fe(I)) : (e.consume(I), Z);
13030
+ function Z(w) {
13031
+ return w === null || _e(w) ? (e.exit("htmlFlowData"), fe(w)) : (e.consume(w), Z);
13032
13032
  }
13033
- function fe(I) {
13034
- return e.exit("htmlFlow"), t(I);
13033
+ function fe(w) {
13034
+ return e.exit("htmlFlow"), t(w);
13035
13035
  }
13036
13036
  }
13037
13037
  function BN(e, t, n) {
@@ -13062,7 +13062,7 @@ function HN(e, t, n) {
13062
13062
  return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(S), u;
13063
13063
  }
13064
13064
  function u(S) {
13065
- return S === 33 ? (e.consume(S), c) : S === 47 ? (e.consume(S), O) : S === 63 ? (e.consume(S), A) : Ot(S) ? (e.consume(S), F) : n(S);
13065
+ return S === 33 ? (e.consume(S), c) : S === 47 ? (e.consume(S), I) : S === 63 ? (e.consume(S), A) : Ot(S) ? (e.consume(S), F) : n(S);
13066
13066
  }
13067
13067
  function c(S) {
13068
13068
  return S === 45 ? (e.consume(S), l) : S === 91 ? (e.consume(S), s = 0, m) : Ot(S) ? (e.consume(S), b) : n(S);
@@ -13096,16 +13096,16 @@ function HN(e, t, n) {
13096
13096
  return S === null || S === 62 ? ne(S) : _e(S) ? (o = b, G(S)) : (e.consume(S), b);
13097
13097
  }
13098
13098
  function A(S) {
13099
- return S === null ? n(S) : S === 63 ? (e.consume(S), C) : _e(S) ? (o = A, G(S)) : (e.consume(S), A);
13099
+ return S === null ? n(S) : S === 63 ? (e.consume(S), P) : _e(S) ? (o = A, G(S)) : (e.consume(S), A);
13100
13100
  }
13101
- function C(S) {
13101
+ function P(S) {
13102
13102
  return S === 62 ? ne(S) : A(S);
13103
13103
  }
13104
- function O(S) {
13105
- return Ot(S) ? (e.consume(S), w) : n(S);
13104
+ function I(S) {
13105
+ return Ot(S) ? (e.consume(S), O) : n(S);
13106
13106
  }
13107
- function w(S) {
13108
- return S === 45 || _t(S) ? (e.consume(S), w) : D(S);
13107
+ function O(S) {
13108
+ return S === 45 || _t(S) ? (e.consume(S), O) : D(S);
13109
13109
  }
13110
13110
  function D(S) {
13111
13111
  return _e(S) ? (o = D, G(S)) : ke(S) ? (e.consume(S), D) : ne(S);
@@ -13656,12 +13656,12 @@ function wI(e, t, n) {
13656
13656
  const i = {}, s = [];
13657
13657
  let o = [], a = [];
13658
13658
  const u = {
13659
- attempt: D(O),
13660
- check: D(w),
13659
+ attempt: D(I),
13660
+ check: D(O),
13661
13661
  consume: b,
13662
13662
  enter: A,
13663
- exit: C,
13664
- interrupt: D(w, {
13663
+ exit: P,
13664
+ interrupt: D(O, {
13665
13665
  interrupt: !0
13666
13666
  })
13667
13667
  }, c = {
@@ -13730,14 +13730,14 @@ function wI(e, t, n) {
13730
13730
  const ee = B || {};
13731
13731
  return ee.type = $, ee.start = m(), c.events.push(["enter", ee, c]), a.push(ee), ee;
13732
13732
  }
13733
- function C($) {
13733
+ function P($) {
13734
13734
  const B = a.pop();
13735
13735
  return B.end = m(), c.events.push(["exit", B, c]), B;
13736
13736
  }
13737
- function O($, B) {
13737
+ function I($, B) {
13738
13738
  F($, B.from);
13739
13739
  }
13740
- function w($, B) {
13740
+ function O($, B) {
13741
13741
  B.restore();
13742
13742
  }
13743
13743
  function D($, B) {
@@ -13767,9 +13767,9 @@ function wI(e, t, n) {
13767
13767
  }
13768
13768
  }
13769
13769
  function fe(Ce) {
13770
- return G = Ce, K = 0, Ce.length === 0 ? ne : I(Ce[K]);
13770
+ return G = Ce, K = 0, Ce.length === 0 ? ne : w(Ce[K]);
13771
13771
  }
13772
- function I(Ce) {
13772
+ function w(Ce) {
13773
13773
  return Te;
13774
13774
  function Te(Ae) {
13775
13775
  return S = j(), se = Ce, Ce.partial || (c.currentConstruct = Ce), Ce.name && c.parser.constructs.disable.null.includes(Ce.name) ? Be() : Ce.tokenize.call(
@@ -13787,7 +13787,7 @@ function wI(e, t, n) {
13787
13787
  return $(se, S), z;
13788
13788
  }
13789
13789
  function Be(Ce) {
13790
- return S.restore(), ++K < G.length ? I(G[K]) : ne;
13790
+ return S.restore(), ++K < G.length ? w(G[K]) : ne;
13791
13791
  }
13792
13792
  }
13793
13793
  }
@@ -13981,7 +13981,7 @@ function BI(e) {
13981
13981
  listOrdered: s(st, d),
13982
13982
  listUnordered: s(st),
13983
13983
  paragraph: s(Zn),
13984
- reference: I,
13984
+ reference: w,
13985
13985
  referenceString: o,
13986
13986
  resourceDestinationString: o,
13987
13987
  resourceTitleString: o,
@@ -13991,7 +13991,7 @@ function BI(e) {
13991
13991
  },
13992
13992
  exit: {
13993
13993
  atxHeading: u(),
13994
- atxHeadingSequence: O,
13994
+ atxHeadingSequence: I,
13995
13995
  autolink: u(),
13996
13996
  autolinkEmail: we,
13997
13997
  autolinkProtocol: Ae,
@@ -14011,7 +14011,7 @@ function BI(e) {
14011
14011
  codeTextData: k,
14012
14012
  data: k,
14013
14013
  definition: u(),
14014
- definitionDestinationString: C,
14014
+ definitionDestinationString: P,
14015
14015
  definitionLabelString: b,
14016
14016
  definitionTitleString: A,
14017
14017
  emphasis: u(),
@@ -14036,7 +14036,7 @@ function BI(e) {
14036
14036
  resource: fe,
14037
14037
  setextHeading: u(F),
14038
14038
  setextHeadingLineSequence: D,
14039
- setextHeadingText: w,
14039
+ setextHeadingText: O,
14040
14040
  strong: u(),
14041
14041
  thematicBreak: u()
14042
14042
  }
@@ -14217,18 +14217,18 @@ function BI(e) {
14217
14217
  const q = this.resume(), re = this.stack[this.stack.length - 1];
14218
14218
  re.title = q;
14219
14219
  }
14220
- function C() {
14220
+ function P() {
14221
14221
  const q = this.resume(), re = this.stack[this.stack.length - 1];
14222
14222
  re.url = q;
14223
14223
  }
14224
- function O(q) {
14224
+ function I(q) {
14225
14225
  const re = this.stack[this.stack.length - 1];
14226
14226
  if (!re.depth) {
14227
14227
  const Ne = this.sliceSerialize(q).length;
14228
14228
  re.depth = Ne;
14229
14229
  }
14230
14230
  }
14231
- function w() {
14231
+ function O() {
14232
14232
  this.data.setextHeadingSlurpLineEnding = !0;
14233
14233
  }
14234
14234
  function D(q) {
@@ -14316,7 +14316,7 @@ function BI(e) {
14316
14316
  function fe() {
14317
14317
  this.data.inReference = void 0;
14318
14318
  }
14319
- function I() {
14319
+ function w() {
14320
14320
  this.data.referenceType = "collapsed";
14321
14321
  }
14322
14322
  function ye(q) {
@@ -23403,7 +23403,7 @@ const bg = ({
23403
23403
  return /* @__PURE__ */ E(
23404
23404
  "a",
23405
23405
  Y(v(v({
23406
- className: P(e, `${y}-link`)
23406
+ className: C(e, `${y}-link`)
23407
23407
  }, n ? { href: n, target: o, onClick: i } : {}), r ? { title: r } : {}), {
23408
23408
  rel: "noopener noreferrer",
23409
23409
  children: s
@@ -23411,14 +23411,14 @@ const bg = ({
23411
23411
  );
23412
23412
  }, vP = () => {
23413
23413
  const { disclaimerText: e, disclaimerMarkdown: t, globalClassName: n } = ve();
23414
- return !e && !t ? null : /* @__PURE__ */ E("div", { className: P(n, `${y}-disclaimer`), children: t ? /* @__PURE__ */ E(
23414
+ return !e && !t ? null : /* @__PURE__ */ E("div", { className: C(n, `${y}-disclaimer`), children: t ? /* @__PURE__ */ E(
23415
23415
  R0,
23416
23416
  {
23417
23417
  rehypePlugins: [mg, PP],
23418
23418
  components: {
23419
- ul: ({ children: r }) => /* @__PURE__ */ E("ul", { className: P(n, `${y}-ul`), children: r }),
23420
- ol: ({ children: r }) => /* @__PURE__ */ E("ol", { className: P(n, `${y}-ol`), children: r }),
23421
- li: ({ children: r }) => /* @__PURE__ */ E("li", { className: P(n, `${y}-li`), children: r }),
23419
+ ul: ({ children: r }) => /* @__PURE__ */ E("ul", { className: C(n, `${y}-ul`), children: r }),
23420
+ ol: ({ children: r }) => /* @__PURE__ */ E("ol", { className: C(n, `${y}-ol`), children: r }),
23421
+ li: ({ children: r }) => /* @__PURE__ */ E("li", { className: C(n, `${y}-li`), children: r }),
23422
23422
  a: ({ href: r, title: i, children: s }) => /* @__PURE__ */ E(
23423
23423
  bg,
23424
23424
  {
@@ -23432,23 +23432,23 @@ const bg = ({
23432
23432
  img: ({ src: r, alt: i }) => /* @__PURE__ */ E(
23433
23433
  "img",
23434
23434
  {
23435
- className: P(n, `${y}-disclaimer-image`),
23435
+ className: C(n, `${y}-disclaimer-image`),
23436
23436
  src: r,
23437
23437
  alt: i
23438
23438
  }
23439
23439
  ),
23440
- p: ({ children: r }) => /* @__PURE__ */ E("p", { className: P(n, `${y}-disclaimer-text`), children: r }),
23440
+ p: ({ children: r }) => /* @__PURE__ */ E("p", { className: C(n, `${y}-disclaimer-text`), children: r }),
23441
23441
  span: ({ children: r }) => /* @__PURE__ */ E(
23442
23442
  "span",
23443
23443
  {
23444
- className: P(n, `${y}-disclaimer-text-span`),
23444
+ className: C(n, `${y}-disclaimer-text-span`),
23445
23445
  children: r
23446
23446
  }
23447
23447
  )
23448
23448
  },
23449
23449
  children: t
23450
23450
  }
23451
- ) : /* @__PURE__ */ E("p", { className: P(n, `${y}-disclaimer-text`), children: e }) });
23451
+ ) : /* @__PURE__ */ E("p", { className: C(n, `${y}-disclaimer-text`), children: e }) });
23452
23452
  }, RP = Math.round(Nc / (1024 * 1024)), kP = (e) => e === "oversize" ? `File size exceeds the ${RP}MB limit. Please choose a smaller file.` : "That file type isn't supported. Please choose a PNG, JPG, or GIF image.", cl = ({
23453
23453
  className: e,
23454
23454
  isLoading: t,
@@ -23457,77 +23457,77 @@ const bg = ({
23457
23457
  }) => {
23458
23458
  const { isConnected: i, sessionExpired: s, canInitialize: o, messages: a } = it(), { globalClassName: u, searchConfig: c, enableEscalationToAgent: l, enableImageUpload: d } = ve(), p = Q(null), h = Q(a);
23459
23459
  h.current = a;
23460
- const [m, T] = Oe(!1), [_, g] = Oe(null), b = d, A = !wm(i, s, o), C = t || A, O = me(
23460
+ const [m, T] = Oe(!1), [_, g] = Oe(null), b = d, A = !wm(i, s, o), P = t || A, I = me(
23461
23461
  (z) => g(kP(z)),
23462
23462
  []
23463
- ), { file: w, attach: D, clear: F } = W2({
23463
+ ), { file: O, attach: D, clear: F } = W2({
23464
23464
  allowedMime: Bp,
23465
23465
  // Size cap is enforced at send time after downsizing, not at attach.
23466
23466
  maxBytes: Number.POSITIVE_INFINITY,
23467
- onReject: O
23467
+ onReject: I
23468
23468
  });
23469
23469
  Ie(() => {
23470
- w && g(null);
23471
- }, [w]);
23470
+ O && g(null);
23471
+ }, [O]);
23472
23472
  const j = me(
23473
23473
  (z) => ce(null, null, function* () {
23474
23474
  var G, K, se;
23475
- if (z.preventDefault(), C) return;
23475
+ if (z.preventDefault(), P) return;
23476
23476
  g(null);
23477
23477
  const ne = (((G = p.current) == null ? void 0 : G.value) || "").trim();
23478
- if (ne || w) {
23478
+ if (ne || O) {
23479
23479
  const S = !i && !s && o === !0, Z = h.current.length;
23480
23480
  p.current.value = "", (K = p.current) == null || K.focus({ preventScroll: !0 });
23481
23481
  const fe = { text: ne };
23482
- w && (fe.file = w), F();
23483
- const I = yield r(fe), ye = !!I && I.outcome !== "success", Be = h.current.length === Z, Ce = ((se = p.current) == null ? void 0 : se.value) === "";
23482
+ O && (fe.file = O), F();
23483
+ const w = yield r(fe), ye = !!w && w.outcome !== "success", Be = h.current.length === Z, Ce = ((se = p.current) == null ? void 0 : se.value) === "";
23484
23484
  ye && (S && Be && Ce) && (p.current.value = ne, fe.file && D([fe.file]), p.current.disabled || p.current.focus({ preventScroll: !0 }));
23485
23485
  }
23486
23486
  }),
23487
- [w, i, s, o, C, F, r, D]
23487
+ [O, i, s, o, P, F, r, D]
23488
23488
  ), k = me(() => {
23489
23489
  r({ text: "Can you connect me to a human?" });
23490
23490
  }, [r]), $ = me(
23491
23491
  (z) => {
23492
- !b || C || (z.preventDefault(), T(!0));
23492
+ !b || P || (z.preventDefault(), T(!0));
23493
23493
  },
23494
- [b, C]
23494
+ [b, P]
23495
23495
  ), B = me(() => T(!1), []), ee = me(
23496
23496
  (z) => {
23497
- !b || C || (z.preventDefault(), T(!1), D(z.dataTransfer.files));
23497
+ !b || P || (z.preventDefault(), T(!1), D(z.dataTransfer.files));
23498
23498
  },
23499
- [b, C, D]
23499
+ [b, P, D]
23500
23500
  ), M = me(
23501
23501
  (z) => {
23502
- !b || C || z.clipboardData.files.length > 0 && D(z.clipboardData.files);
23502
+ !b || P || z.clipboardData.files.length > 0 && D(z.clipboardData.files);
23503
23503
  },
23504
- [b, C, D]
23504
+ [b, P, D]
23505
23505
  );
23506
23506
  return /* @__PURE__ */ X(
23507
23507
  "div",
23508
23508
  {
23509
- className: P(
23509
+ className: C(
23510
23510
  u,
23511
23511
  e,
23512
23512
  `cim-${n}-component`,
23513
- w && "with-attachments",
23513
+ O && "with-attachments",
23514
23514
  `${y}-search-bar-wrapper`
23515
23515
  ),
23516
23516
  children: [
23517
- b && w && /* @__PURE__ */ E(
23517
+ b && O && /* @__PURE__ */ E(
23518
23518
  X2,
23519
23519
  {
23520
- file: w,
23520
+ file: O,
23521
23521
  componentType: n,
23522
23522
  globalClassName: u,
23523
23523
  onRemove: F
23524
23524
  }
23525
23525
  ),
23526
- b && _ && /* @__PURE__ */ E("div", { className: P(u, `${y}-attach-error`), role: "alert", children: _ }),
23526
+ b && _ && /* @__PURE__ */ E("div", { className: C(u, `${y}-attach-error`), role: "alert", children: _ }),
23527
23527
  /* @__PURE__ */ X(
23528
23528
  "form",
23529
23529
  {
23530
- className: P(
23530
+ className: C(
23531
23531
  u,
23532
23532
  e,
23533
23533
  `cim-${n}-component`,
@@ -23543,7 +23543,7 @@ const bg = ({
23543
23543
  /* @__PURE__ */ X(
23544
23544
  "div",
23545
23545
  {
23546
- className: P(
23546
+ className: C(
23547
23547
  u,
23548
23548
  e,
23549
23549
  `cim-${n}-component`,
@@ -23555,7 +23555,7 @@ const bg = ({
23555
23555
  {
23556
23556
  componentType: n,
23557
23557
  accept: ub,
23558
- disabled: C,
23558
+ disabled: P,
23559
23559
  globalClassName: u,
23560
23560
  className: e,
23561
23561
  icon: /* @__PURE__ */ E(q2, {}),
@@ -23565,7 +23565,7 @@ const bg = ({
23565
23565
  /* @__PURE__ */ E(
23566
23566
  "input",
23567
23567
  {
23568
- className: P(
23568
+ className: C(
23569
23569
  u,
23570
23570
  e,
23571
23571
  `cim-${n}-component`,
@@ -23591,16 +23591,16 @@ const bg = ({
23591
23591
  globalClassName: u,
23592
23592
  searchConfig: c,
23593
23593
  componentType: n,
23594
- isLoading: C
23594
+ isLoading: P
23595
23595
  }
23596
23596
  ),
23597
23597
  l && /* @__PURE__ */ E(
23598
23598
  tn,
23599
23599
  {
23600
- className: P(u, `${y}-escalate-btn`),
23600
+ className: C(u, `${y}-escalate-btn`),
23601
23601
  ariaLabel: "Connect to a human agent",
23602
23602
  title: "Connect to a human agent",
23603
- disabled: C,
23603
+ disabled: P,
23604
23604
  onClick: k,
23605
23605
  icon: /* @__PURE__ */ E(k2, {})
23606
23606
  }
@@ -23636,7 +23636,7 @@ const yg = sn({
23636
23636
  return /* @__PURE__ */ X(
23637
23637
  "button",
23638
23638
  {
23639
- className: P(
23639
+ className: C(
23640
23640
  `${y}-overflow-menu-button`,
23641
23641
  "clear-chat-button",
23642
23642
  `cim-${t}-component`
@@ -23667,7 +23667,7 @@ const yg = sn({
23667
23667
  return /* @__PURE__ */ X(
23668
23668
  "button",
23669
23669
  {
23670
- className: P(
23670
+ className: C(
23671
23671
  `${y}-overflow-menu-button`,
23672
23672
  "download-transcript-button",
23673
23673
  `cim-${t}-component`
@@ -23690,7 +23690,7 @@ const yg = sn({
23690
23690
  return /* @__PURE__ */ X(
23691
23691
  "button",
23692
23692
  {
23693
- className: P(
23693
+ className: C(
23694
23694
  `${y}-overflow-menu-button`,
23695
23695
  "end-conversation-button",
23696
23696
  `cim-${t}-component`
@@ -24372,7 +24372,7 @@ function ua(e, t = {}) {
24372
24372
  return u;
24373
24373
  },
24374
24374
  getComputed() {
24375
- return O;
24375
+ return I;
24376
24376
  },
24377
24377
  getRefs() {
24378
24378
  return T;
@@ -24405,13 +24405,13 @@ function ua(e, t = {}) {
24405
24405
  previous() {
24406
24406
  return d.current;
24407
24407
  }
24408
- }), m = () => Y(v({}, w), {
24408
+ }), m = () => Y(v({}, O), {
24409
24409
  matches(...G) {
24410
- return G.includes(w.ref.current);
24410
+ return G.includes(O.ref.current);
24411
24411
  },
24412
24412
  hasTag(G) {
24413
24413
  var K, se;
24414
- return !!((se = (K = e.states[w.ref.current]) == null ? void 0 : K.tags) != null && se.includes(G));
24414
+ return !!((se = (K = e.states[O.ref.current]) == null ? void 0 : K.tags) != null && se.includes(G));
24415
24415
  }
24416
24416
  }), T = uR((z = (M = e.refs) == null ? void 0 : M.call(e, { prop: s, context: u })) != null ? z : {}), _ = () => ({
24417
24417
  state: m(),
@@ -24423,16 +24423,16 @@ function ua(e, t = {}) {
24423
24423
  guard: b,
24424
24424
  track: cR,
24425
24425
  refs: T,
24426
- computed: O,
24426
+ computed: I,
24427
24427
  flush: gh,
24428
24428
  scope: n,
24429
- choose: C
24429
+ choose: P
24430
24430
  }), g = (G) => {
24431
24431
  const K = Yr(G) ? G(_()) : G;
24432
24432
  if (!K) return;
24433
24433
  const se = K.map((S) => {
24434
- var fe, I;
24435
- const Z = (I = (fe = e.implementations) == null ? void 0 : fe.actions) == null ? void 0 : I[S];
24434
+ var fe, w;
24435
+ const Z = (w = (fe = e.implementations) == null ? void 0 : fe.actions) == null ? void 0 : w[S];
24436
24436
  return Z || Ku(`[zag-js] No implementation found for action "${JSON.stringify(S)}"`), Z;
24437
24437
  });
24438
24438
  for (const S of se)
@@ -24444,8 +24444,8 @@ function ua(e, t = {}) {
24444
24444
  const K = Yr(G) ? G(_()) : G;
24445
24445
  if (!K) return;
24446
24446
  const se = K.map((Z) => {
24447
- var I, ye;
24448
- const fe = (ye = (I = e.implementations) == null ? void 0 : I.effects) == null ? void 0 : ye[Z];
24447
+ var w, ye;
24448
+ const fe = (ye = (w = e.implementations) == null ? void 0 : w.effects) == null ? void 0 : ye[Z];
24449
24449
  return fe || Ku(`[zag-js] No implementation found for effect "${JSON.stringify(Z)}"`), fe;
24450
24450
  }), S = [];
24451
24451
  for (const Z of se) {
@@ -24453,10 +24453,10 @@ function ua(e, t = {}) {
24453
24453
  fe && S.push(fe);
24454
24454
  }
24455
24455
  return () => S.forEach((Z) => Z == null ? void 0 : Z());
24456
- }, C = (G) => MP(G).find((K) => {
24456
+ }, P = (G) => MP(G).find((K) => {
24457
24457
  let se = !K.guard;
24458
24458
  return to(K.guard) ? se = !!b(K.guard) : Yr(K.guard) && (se = K.guard(_())), se;
24459
- }), O = (G) => {
24459
+ }), I = (G) => {
24460
24460
  iv(e.computed, () => "[zag-js] No computed object found on machine");
24461
24461
  const K = e.computed[G];
24462
24462
  return K({
@@ -24465,12 +24465,12 @@ function ua(e, t = {}) {
24465
24465
  prop: s,
24466
24466
  refs: T,
24467
24467
  scope: n,
24468
- computed: O
24468
+ computed: I
24469
24469
  });
24470
- }, w = wo(() => ({
24470
+ }, O = wo(() => ({
24471
24471
  defaultValue: e.initialState({ prop: s }),
24472
24472
  onChange(G, K) {
24473
- var S, Z, fe, I;
24473
+ var S, Z, fe, w;
24474
24474
  if (K) {
24475
24475
  const ye = c.current.get(K);
24476
24476
  ye == null || ye(), c.current.delete(K);
@@ -24482,7 +24482,7 @@ function ua(e, t = {}) {
24482
24482
  const ye = A(e.effects);
24483
24483
  ye && c.current.set(au, ye);
24484
24484
  }
24485
- g((I = e.states[G]) == null ? void 0 : I.entry);
24485
+ g((w = e.states[G]) == null ? void 0 : w.entry);
24486
24486
  }
24487
24487
  })), D = Q(void 0), F = Q(Vr.NotStarted);
24488
24488
  $g(() => {
@@ -24490,35 +24490,35 @@ function ua(e, t = {}) {
24490
24490
  var Z;
24491
24491
  const se = F.current === Vr.Started;
24492
24492
  F.current = Vr.Started, r(se ? "rehydrating..." : "initializing...");
24493
- const S = (Z = D.current) != null ? Z : w.initial;
24494
- w.invoke(S, se ? w.get() : au);
24493
+ const S = (Z = D.current) != null ? Z : O.initial;
24494
+ O.invoke(S, se ? O.get() : au);
24495
24495
  });
24496
- const G = c.current, K = w.ref.current;
24496
+ const G = c.current, K = O.ref.current;
24497
24497
  return () => {
24498
24498
  r("unmounting..."), D.current = K, F.current = Vr.Stopped, G.forEach((se) => se == null ? void 0 : se()), c.current = /* @__PURE__ */ new Map(), l.current = null, queueMicrotask(() => {
24499
24499
  g(e.exit);
24500
24500
  });
24501
24501
  };
24502
24502
  }, []);
24503
- const j = () => "ref" in w ? w.ref.current : w.get(), k = (G) => {
24503
+ const j = () => "ref" in O ? O.ref.current : O.get(), k = (G) => {
24504
24504
  queueMicrotask(() => {
24505
- var I, ye, Be, Ce, Te;
24505
+ var w, ye, Be, Ce, Te;
24506
24506
  if (F.current !== Vr.Started) return;
24507
24507
  d.current = p.current, p.current = G;
24508
24508
  let K = j();
24509
24509
  const se = (
24510
24510
  // @ts-ignore
24511
- (Be = (I = e.states[K].on) == null ? void 0 : I[G.type]) != null ? Be : (
24511
+ (Be = (w = e.states[K].on) == null ? void 0 : w[G.type]) != null ? Be : (
24512
24512
  // @ts-ignore
24513
24513
  (ye = e.on) == null ? void 0 : ye[G.type]
24514
24514
  )
24515
- ), S = C(se);
24515
+ ), S = P(se);
24516
24516
  if (!S) return;
24517
24517
  l.current = S;
24518
24518
  const Z = (Ce = S.target) != null ? Ce : K;
24519
24519
  r("transition", G.type, S.target || K, `(${S.actions})`);
24520
24520
  const fe = Z !== K;
24521
- fe ? dc(() => w.set(Z)) : S.reenter && !fe ? w.invoke(K, K) : g((Te = S.actions) != null ? Te : []);
24521
+ fe ? dc(() => O.set(Z)) : S.reenter && !fe ? O.invoke(K, K) : g((Te = S.actions) != null ? Te : []);
24522
24522
  });
24523
24523
  };
24524
24524
  return (ne = e.watch) == null || ne.call(e, _()), {
@@ -24528,7 +24528,7 @@ function ua(e, t = {}) {
24528
24528
  prop: s,
24529
24529
  scope: n,
24530
24530
  refs: T,
24531
- computed: O,
24531
+ computed: I,
24532
24532
  event: h(),
24533
24533
  getStatus: () => F.current
24534
24534
  };
@@ -25032,20 +25032,20 @@ function CR(e, t) {
25032
25032
  y: i,
25033
25033
  width: o.floating.width,
25034
25034
  height: o.floating.height
25035
- } : o.reference, A = yield s.getOffsetParent == null ? void 0 : s.getOffsetParent(a.floating), C = (yield s.isElement == null ? void 0 : s.isElement(A)) && (yield s.getScale == null ? void 0 : s.getScale(A)) || {
25035
+ } : o.reference, A = yield s.getOffsetParent == null ? void 0 : s.getOffsetParent(a.floating), P = (yield s.isElement == null ? void 0 : s.isElement(A)) && (yield s.getScale == null ? void 0 : s.getScale(A)) || {
25036
25036
  x: 1,
25037
25037
  y: 1
25038
- }, O = Po(s.convertOffsetParentRelativeRectToViewportRelativeRect ? yield s.convertOffsetParentRelativeRectToViewportRelativeRect({
25038
+ }, I = Po(s.convertOffsetParentRelativeRectToViewportRelativeRect ? yield s.convertOffsetParentRelativeRectToViewportRelativeRect({
25039
25039
  elements: a,
25040
25040
  rect: b,
25041
25041
  offsetParent: A,
25042
25042
  strategy: u
25043
25043
  }) : b);
25044
25044
  return {
25045
- top: (g.top - O.top + m.top) / C.y,
25046
- bottom: (O.bottom - g.bottom + m.bottom) / C.y,
25047
- left: (g.left - O.left + m.left) / C.x,
25048
- right: (O.right - g.right + m.right) / C.x
25045
+ top: (g.top - I.top + m.top) / P.y,
25046
+ bottom: (I.bottom - g.bottom + m.bottom) / P.y,
25047
+ left: (g.left - I.left + m.left) / P.x,
25048
+ right: (I.right - g.right + m.right) / P.x
25049
25049
  };
25050
25050
  });
25051
25051
  }
@@ -25076,9 +25076,9 @@ const PR = 50, vR = (e, t, n) => ce(null, null, function* () {
25076
25076
  fn: b
25077
25077
  } = _, {
25078
25078
  x: A,
25079
- y: C,
25080
- data: O,
25081
- reset: w
25079
+ y: P,
25080
+ data: I,
25081
+ reset: O
25082
25082
  } = yield b({
25083
25083
  x: l,
25084
25084
  y: d,
@@ -25093,11 +25093,11 @@ const PR = 50, vR = (e, t, n) => ce(null, null, function* () {
25093
25093
  floating: t
25094
25094
  }
25095
25095
  });
25096
- l = A != null ? A : l, d = C != null ? C : d, m[g] = v(v({}, m[g]), O), w && h < PR && (h++, typeof w == "object" && (w.placement && (p = w.placement), w.rects && (c = w.rects === !0 ? yield o.getElementRects({
25096
+ l = A != null ? A : l, d = P != null ? P : d, m[g] = v(v({}, m[g]), I), O && h < PR && (h++, typeof O == "object" && (O.placement && (p = O.placement), O.rects && (c = O.rects === !0 ? yield o.getElementRects({
25097
25097
  reference: e,
25098
25098
  floating: t,
25099
25099
  strategy: i
25100
- }) : w.rects), {
25100
+ }) : O.rects), {
25101
25101
  x: l,
25102
25102
  y: d
25103
25103
  } = bh(c, p, u)), T = -1);
@@ -25131,10 +25131,10 @@ const PR = 50, vR = (e, t, n) => ce(null, null, function* () {
25131
25131
  const p = Wg(d), h = {
25132
25132
  x: r,
25133
25133
  y: i
25134
- }, m = Sl(s), T = _l(m), _ = yield a.getDimensions(l), g = m === "y", b = g ? "top" : "left", A = g ? "bottom" : "right", C = g ? "clientHeight" : "clientWidth", O = o.reference[T] + o.reference[m] - h[m] - o.floating[T], w = h[m] - o.reference[m], D = yield a.getOffsetParent == null ? void 0 : a.getOffsetParent(l);
25135
- let F = D ? D[C] : 0;
25136
- (!F || !(yield a.isElement == null ? void 0 : a.isElement(D))) && (F = u.floating[C] || o.floating[T]);
25137
- const j = O / 2 - w / 2, k = F / 2 - _[T] / 2 - 1, $ = jn(p[b], k), B = jn(p[A], k), ee = F - _[T] - B, M = F / 2 - _[T] / 2 + j, z = Gg($, M, ee), ne = !c.arrow && gi(s) != null && M !== z && o.reference[T] / 2 - (M < $ ? $ : B) - _[T] / 2 < 0, G = ne ? M < $ ? M - $ : M - ee : 0;
25134
+ }, m = Sl(s), T = _l(m), _ = yield a.getDimensions(l), g = m === "y", b = g ? "top" : "left", A = g ? "bottom" : "right", P = g ? "clientHeight" : "clientWidth", I = o.reference[T] + o.reference[m] - h[m] - o.floating[T], O = h[m] - o.reference[m], D = yield a.getOffsetParent == null ? void 0 : a.getOffsetParent(l);
25135
+ let F = D ? D[P] : 0;
25136
+ (!F || !(yield a.isElement == null ? void 0 : a.isElement(D))) && (F = u.floating[P] || o.floating[T]);
25137
+ const j = I / 2 - O / 2, k = F / 2 - _[T] / 2 - 1, $ = jn(p[b], k), B = jn(p[A], k), ee = F - _[T] - B, M = F / 2 - _[T] / 2 + j, z = Gg($, M, ee), ne = !c.arrow && gi(s) != null && M !== z && o.reference[T] / 2 - (M < $ ? $ : B) - _[T] / 2 < 0, G = ne ? M < $ ? M - $ : M - ee : 0;
25138
25138
  return {
25139
25139
  [m]: h[m] + G,
25140
25140
  data: v({
@@ -25178,12 +25178,12 @@ const PR = 50, vR = (e, t, n) => ce(null, null, function* () {
25178
25178
  ]);
25179
25179
  if ((r = o.arrow) != null && r.alignmentOffset)
25180
25180
  return {};
25181
- const b = Yn(s), A = hn(u), C = Yn(u) === u, O = yield c.isRTL == null ? void 0 : c.isRTL(l.floating), w = h || (C || !_ ? [Co(u)] : AR(u)), D = T !== "none";
25182
- !h && D && w.push(...wR(u, _, T, O));
25183
- const F = [u, ...w], j = yield c.detectOverflow(n, g), k = [];
25181
+ const b = Yn(s), A = hn(u), P = Yn(u) === u, I = yield c.isRTL == null ? void 0 : c.isRTL(l.floating), O = h || (P || !_ ? [Co(u)] : AR(u)), D = T !== "none";
25182
+ !h && D && O.push(...wR(u, _, T, I));
25183
+ const F = [u, ...O], j = yield c.detectOverflow(n, g), k = [];
25184
25184
  let $ = ((i = o.flip) == null ? void 0 : i.overflows) || [];
25185
25185
  if (d && k.push(j[b]), p) {
25186
- const ne = SR(s, a, O);
25186
+ const ne = SR(s, a, I);
25187
25187
  k.push(j[ne[0]], j[ne[1]]);
25188
25188
  }
25189
25189
  if ($ = [...$, {
@@ -25359,14 +25359,14 @@ const MR = function(e) {
25359
25359
  mainAxis: a = !0,
25360
25360
  crossAxis: u = !1,
25361
25361
  limiter: c = {
25362
- fn: (C) => {
25362
+ fn: (P) => {
25363
25363
  let {
25364
- x: O,
25365
- y: w
25366
- } = C;
25364
+ x: I,
25365
+ y: O
25366
+ } = P;
25367
25367
  return {
25368
- x: O,
25369
- y: w
25368
+ x: I,
25369
+ y: O
25370
25370
  };
25371
25371
  }
25372
25372
  }
@@ -25379,7 +25379,7 @@ const MR = function(e) {
25379
25379
  y: i
25380
25380
  }, p = yield o.detectOverflow(n, l), h = hn(s), m = yl(h);
25381
25381
  let T = d[m], _ = d[h];
25382
- const g = (C, O) => Gg(O + p[C === "y" ? "top" : "left"], O, O - p[C === "y" ? "bottom" : "right"]);
25382
+ const g = (P, I) => Gg(I + p[P === "y" ? "top" : "left"], I, I - p[P === "y" ? "bottom" : "right"]);
25383
25383
  a && (T = g(m, T)), u && (_ = g(h, _));
25384
25384
  const b = c.fn(Y(v({}, n), {
25385
25385
  [m]: T,
@@ -25426,12 +25426,12 @@ const MR = function(e) {
25426
25426
  crossAxis: (r = g.crossAxis) != null ? r : 0
25427
25427
  };
25428
25428
  if (l) {
25429
- const O = m === "y" ? "height" : "width", w = a.reference[m] - a.floating[O] + b.mainAxis, D = a.reference[m] + a.reference[O] - b.mainAxis;
25430
- T < w ? T = w : T > D && (T = D);
25429
+ const I = m === "y" ? "height" : "width", O = a.reference[m] - a.floating[I] + b.mainAxis, D = a.reference[m] + a.reference[I] - b.mainAxis;
25430
+ T < O ? T = O : T > D && (T = D);
25431
25431
  }
25432
25432
  if (d) {
25433
- var A, C;
25434
- const O = m === "y" ? "width" : "height", w = Xg.has(Yn(o)), D = a.reference[h] - a.floating[O] + (w && ((A = u.offset) == null ? void 0 : A[h]) || 0) + (w ? 0 : b.crossAxis), F = a.reference[h] + a.reference[O] + (w ? 0 : ((C = u.offset) == null ? void 0 : C[h]) || 0) - (w ? b.crossAxis : 0);
25433
+ var A, P;
25434
+ const I = m === "y" ? "width" : "height", O = Xg.has(Yn(o)), D = a.reference[h] - a.floating[I] + (O && ((A = u.offset) == null ? void 0 : A[h]) || 0) + (O ? 0 : b.crossAxis), F = a.reference[h] + a.reference[I] + (O ? 0 : ((P = u.offset) == null ? void 0 : P[h]) || 0) - (O ? b.crossAxis : 0);
25435
25435
  _ < D ? _ = D : _ > F && (_ = F);
25436
25436
  }
25437
25437
  return {
@@ -25462,9 +25462,9 @@ const MR = function(e) {
25462
25462
  } = i.floating;
25463
25463
  let T, _;
25464
25464
  l === "top" || l === "bottom" ? (T = l, _ = d === ((yield s.isRTL == null ? void 0 : s.isRTL(o.floating)) ? "start" : "end") ? "left" : "right") : (_ = l, T = d === "end" ? "top" : "bottom");
25465
- const g = m - c.top - c.bottom, b = h - c.left - c.right, A = jn(m - c[T], g), C = jn(h - c[_], b), O = n.middlewareData.shift, w = !O;
25466
- let D = A, F = C;
25467
- O != null && O.enabled.x && (F = b), O != null && O.enabled.y && (D = g), w && !d && (p ? F = h - 2 * xn(c.left, c.right) : D = m - 2 * xn(c.top, c.bottom)), yield a(Y(v({}, n), {
25465
+ const g = m - c.top - c.bottom, b = h - c.left - c.right, A = jn(m - c[T], g), P = jn(h - c[_], b), I = n.middlewareData.shift, O = !I;
25466
+ let D = A, F = P;
25467
+ I != null && I.enabled.x && (F = b), I != null && I.enabled.y && (D = g), O && !d && (p ? F = h - 2 * xn(c.left, c.right) : D = m - 2 * xn(c.top, c.bottom)), yield a(Y(v({}, n), {
25468
25468
  availableWidth: F,
25469
25469
  availableHeight: D
25470
25470
  }));
@@ -25642,8 +25642,8 @@ function Or(e, t, n, r) {
25642
25642
  const p = Ft(s), h = r && nn(r) ? Ft(r) : r;
25643
25643
  let m = p, T = ec(m);
25644
25644
  for (; T && r && h !== m; ) {
25645
- const _ = Xr(T), g = T.getBoundingClientRect(), b = rn(T), A = g.left + (T.clientLeft + parseFloat(b.paddingLeft)) * _.x, C = g.top + (T.clientTop + parseFloat(b.paddingTop)) * _.y;
25646
- u *= _.x, c *= _.y, l *= _.x, d *= _.y, u += A, c += C, m = Ft(T), T = ec(m);
25645
+ const _ = Xr(T), g = T.getBoundingClientRect(), b = rn(T), A = g.left + (T.clientLeft + parseFloat(b.paddingLeft)) * _.x, P = g.top + (T.clientTop + parseFloat(b.paddingTop)) * _.y;
25646
+ u *= _.x, c *= _.y, l *= _.x, d *= _.y, u += A, c += P, m = Ft(T), T = ec(m);
25647
25647
  }
25648
25648
  }
25649
25649
  return Po({
@@ -25906,25 +25906,25 @@ function s3(e, t) {
25906
25906
  rootMargin: -m + "px " + -T + "px " + -_ + "px " + -g + "px",
25907
25907
  threshold: xn(0, jn(1, u)) || 1
25908
25908
  };
25909
- let C = !0;
25910
- function O(w) {
25911
- const D = w[0].intersectionRatio;
25909
+ let P = !0;
25910
+ function I(O) {
25911
+ const D = O[0].intersectionRatio;
25912
25912
  if (D !== u) {
25913
- if (!C)
25913
+ if (!P)
25914
25914
  return o();
25915
25915
  D ? o(!1, D) : r = setTimeout(() => {
25916
25916
  o(!1, 1e-7);
25917
25917
  }, 1e3);
25918
25918
  }
25919
- D === 1 && !rE(c, e.getBoundingClientRect()) && o(), C = !1;
25919
+ D === 1 && !rE(c, e.getBoundingClientRect()) && o(), P = !1;
25920
25920
  }
25921
25921
  try {
25922
- n = new IntersectionObserver(O, Y(v({}, A), {
25922
+ n = new IntersectionObserver(I, Y(v({}, A), {
25923
25923
  // Handle <iframe>s
25924
25924
  root: i.ownerDocument
25925
25925
  }));
25926
- } catch (w) {
25927
- n = new IntersectionObserver(O, A);
25926
+ } catch (O) {
25927
+ n = new IntersectionObserver(I, A);
25928
25928
  }
25929
25929
  n.observe(e);
25930
25930
  }
@@ -26017,18 +26017,18 @@ function T3(e, t) {
26017
26017
  name: "transformOrigin",
26018
26018
  fn(n) {
26019
26019
  var j, k, $, B, ee;
26020
- const { elements: r, middlewareData: i, placement: s, rects: o, y: a } = n, u = s.split("-")[0], c = E3(u), l = ((j = i.arrow) == null ? void 0 : j.x) || 0, d = ((k = i.arrow) == null ? void 0 : k.y) || 0, p = (t == null ? void 0 : t.clientWidth) || 0, h = (t == null ? void 0 : t.clientHeight) || 0, m = l + p / 2, T = d + h / 2, _ = Math.abs((($ = i.shift) == null ? void 0 : $.y) || 0), g = o.reference.height / 2, b = h / 2, A = (ee = (B = e.offset) == null ? void 0 : B.mainAxis) != null ? ee : e.gutter, C = typeof A == "number" ? A + b : A != null ? A : b, O = _ > C, w = {
26021
- top: `${m}px calc(100% + ${C}px)`,
26022
- bottom: `${m}px ${-C}px`,
26023
- left: `calc(100% + ${C}px) ${T}px`,
26024
- right: `${-C}px ${T}px`
26025
- }[u], D = `${m}px ${o.reference.y + g - a}px`, F = !!e.overlap && c === "y" && O;
26020
+ const { elements: r, middlewareData: i, placement: s, rects: o, y: a } = n, u = s.split("-")[0], c = E3(u), l = ((j = i.arrow) == null ? void 0 : j.x) || 0, d = ((k = i.arrow) == null ? void 0 : k.y) || 0, p = (t == null ? void 0 : t.clientWidth) || 0, h = (t == null ? void 0 : t.clientHeight) || 0, m = l + p / 2, T = d + h / 2, _ = Math.abs((($ = i.shift) == null ? void 0 : $.y) || 0), g = o.reference.height / 2, b = h / 2, A = (ee = (B = e.offset) == null ? void 0 : B.mainAxis) != null ? ee : e.gutter, P = typeof A == "number" ? A + b : A != null ? A : b, I = _ > P, O = {
26021
+ top: `${m}px calc(100% + ${P}px)`,
26022
+ bottom: `${m}px ${-P}px`,
26023
+ left: `calc(100% + ${P}px) ${T}px`,
26024
+ right: `${-P}px ${T}px`
26025
+ }[u], D = `${m}px ${o.reference.y + g - a}px`, F = !!e.overlap && c === "y" && I;
26026
26026
  return r.floating.style.setProperty(
26027
26027
  On.transformOrigin.variable,
26028
- F ? D : w
26028
+ F ? D : O
26029
26029
  ), {
26030
26030
  data: {
26031
- transformOrigin: F ? D : w
26031
+ transformOrigin: F ? D : O
26032
26032
  }
26033
26033
  };
26034
26034
  }
@@ -26149,7 +26149,7 @@ function P3(e, t, n = {}) {
26149
26149
  x3(i),
26150
26150
  b3
26151
26151
  ], { placement: a, strategy: u, onComplete: c, onPositioned: l } = i, d = () => ce(null, null, function* () {
26152
- var C;
26152
+ var P;
26153
26153
  if (!r || !t) return;
26154
26154
  const T = yield p3(r, t, {
26155
26155
  placement: a,
@@ -26158,11 +26158,11 @@ function P3(e, t, n = {}) {
26158
26158
  });
26159
26159
  c == null || c(T), l == null || l({ placed: !0 });
26160
26160
  const _ = fi(t), g = wh(_, T.x), b = wh(_, T.y);
26161
- t.style.setProperty("--x", `${g}px`), t.style.setProperty("--y", `${b}px`), i.hideWhenDetached && (((C = T.middlewareData.hide) == null ? void 0 : C.referenceHidden) ? (t.style.setProperty("visibility", "hidden"), t.style.setProperty("pointer-events", "none")) : (t.style.removeProperty("visibility"), t.style.removeProperty("pointer-events")));
26161
+ t.style.setProperty("--x", `${g}px`), t.style.setProperty("--y", `${b}px`), i.hideWhenDetached && (((P = T.middlewareData.hide) == null ? void 0 : P.referenceHidden) ? (t.style.setProperty("visibility", "hidden"), t.style.setProperty("pointer-events", "none")) : (t.style.removeProperty("visibility"), t.style.removeProperty("pointer-events")));
26162
26162
  const A = t.firstElementChild;
26163
26163
  if (A) {
26164
- const O = hi(A);
26165
- t.style.setProperty("--z-index", O.zIndex);
26164
+ const I = hi(A);
26165
+ t.style.setProperty("--z-index", I.zIndex);
26166
26166
  }
26167
26167
  }), p = () => ce(null, null, function* () {
26168
26168
  n.updatePosition ? (yield n.updatePosition({ updatePosition: d, floatingElement: t }), l == null || l({ placed: !0 })) : yield d();
@@ -26378,22 +26378,22 @@ function j3(e, t) {
26378
26378
  } = t;
26379
26379
  if (!e) return;
26380
26380
  const u = _n(e), c = fi(e), l = H3(c), d = $3(c);
26381
- function p(A, C) {
26382
- if (!ht(C) || !C.isConnected || ti(e, C) || V3(e, A) || a && Rg(e, C)) return !1;
26383
- const O = u.querySelector(`[aria-controls="${e.id}"]`);
26384
- if (O) {
26385
- const D = Qu(O);
26381
+ function p(A, P) {
26382
+ if (!ht(P) || !P.isConnected || ti(e, P) || V3(e, A) || a && Rg(e, P)) return !1;
26383
+ const I = u.querySelector(`[aria-controls="${e.id}"]`);
26384
+ if (I) {
26385
+ const D = Qu(I);
26386
26386
  if (vh(A, D)) return !1;
26387
26387
  }
26388
- const w = Qu(e);
26389
- return vh(A, w) ? !1 : !(n != null && n(C));
26388
+ const O = Qu(e);
26389
+ return vh(A, O) ? !1 : !(n != null && n(P));
26390
26390
  }
26391
26391
  const h = /* @__PURE__ */ new Set(), m = Ir(e == null ? void 0 : e.getRootNode());
26392
26392
  function T(A) {
26393
- function C(O) {
26393
+ function P(I) {
26394
26394
  var j, k;
26395
- const w = o && !dh() ? at : ($) => $(), D = O != null ? O : A, F = (k = (j = D == null ? void 0 : D.composedPath) == null ? void 0 : j.call(D)) != null ? k : [D == null ? void 0 : D.target];
26396
- w(() => {
26395
+ const O = o && !dh() ? at : ($) => $(), D = I != null ? I : A, F = (k = (j = D == null ? void 0 : D.composedPath) == null ? void 0 : j.call(D)) != null ? k : [D == null ? void 0 : D.target];
26396
+ O(() => {
26397
26397
  const $ = m ? F[0] : Zt(A);
26398
26398
  if (!(!e || !p(A, $))) {
26399
26399
  if (i || s) {
@@ -26413,16 +26413,16 @@ function j3(e, t) {
26413
26413
  }
26414
26414
  });
26415
26415
  }
26416
- A.pointerType === "touch" ? (h.forEach((O) => O()), h.add(lt(u, "click", C, { once: !0 })), h.add(d.addEventListener("click", C, { once: !0 })), h.add(l.addEventListener("click", C, { once: !0 }))) : C();
26416
+ A.pointerType === "touch" ? (h.forEach((I) => I()), h.add(lt(u, "click", P, { once: !0 })), h.add(d.addEventListener("click", P, { once: !0 })), h.add(l.addEventListener("click", P, { once: !0 }))) : P();
26417
26417
  }
26418
26418
  const _ = /* @__PURE__ */ new Set(), g = setTimeout(() => {
26419
26419
  _.add(lt(u, "pointerdown", T, !0)), _.add(d.addEventListener("pointerdown", T, !0)), _.add(l.addEventListener("pointerdown", T, !0));
26420
26420
  }, 0);
26421
26421
  function b(A) {
26422
- (o ? at : (O) => O())(() => {
26422
+ (o ? at : (I) => I())(() => {
26423
26423
  var D, F;
26424
- const O = (F = (D = A == null ? void 0 : A.composedPath) == null ? void 0 : D.call(A)) != null ? F : [A == null ? void 0 : A.target], w = m ? O[0] : Zt(A);
26425
- if (!(!e || !p(A, w))) {
26424
+ const I = (F = (D = A == null ? void 0 : A.composedPath) == null ? void 0 : D.call(A)) != null ? F : [A == null ? void 0 : A.target], O = m ? I[0] : Zt(A);
26425
+ if (!(!e || !p(A, O))) {
26426
26426
  if (r || s) {
26427
26427
  const j = Xu(r, s);
26428
26428
  e.addEventListener(Ph, j, { once: !0 });
@@ -26433,8 +26433,8 @@ function j3(e, t) {
26433
26433
  detail: {
26434
26434
  originalEvent: A,
26435
26435
  contextmenu: !1,
26436
- focusable: mn(w),
26437
- target: w
26436
+ focusable: mn(O),
26437
+ target: O
26438
26438
  }
26439
26439
  });
26440
26440
  }
@@ -26617,8 +26617,8 @@ function J3(e, t) {
26617
26617
  function h(T) {
26618
26618
  var A;
26619
26619
  if (!e) return !1;
26620
- const _ = typeof o == "function" ? o() : o, g = Array.isArray(_) ? _ : [_], b = (A = t.persistentElements) == null ? void 0 : A.map((C) => C()).filter(ht);
26621
- return b && g.push(...b), g.some((C) => ti(C, T)) || Vt.isInNestedLayer(e, T);
26620
+ const _ = typeof o == "function" ? o() : o, g = Array.isArray(_) ? _ : [_], b = (A = t.persistentElements) == null ? void 0 : A.map((P) => P()).filter(ht);
26621
+ return b && g.push(...b), g.some((P) => ti(P, T)) || Vt.isInNestedLayer(e, T);
26622
26622
  }
26623
26623
  const m = [
26624
26624
  s ? Q3(e, t.persistentElements) : void 0,
@@ -27013,8 +27013,8 @@ function cE(e) {
27013
27013
  };
27014
27014
  return !o && a > 0 && (m[c] = `${a}px`), Oo(i, m);
27015
27015
  }, d = () => {
27016
- var O, w;
27017
- const { scrollX: m, scrollY: T, visualViewport: _ } = n, g = (O = _ == null ? void 0 : _.offsetLeft) != null ? O : 0, b = (w = _ == null ? void 0 : _.offsetTop) != null ? w : 0, A = {
27016
+ var I, O;
27017
+ const { scrollX: m, scrollY: T, visualViewport: _ } = n, g = (I = _ == null ? void 0 : _.offsetLeft) != null ? I : 0, b = (O = _ == null ? void 0 : _.offsetTop) != null ? O : 0, A = {
27018
27018
  position: "fixed",
27019
27019
  overflow: "hidden",
27020
27020
  top: `${-(T - Math.floor(b))}px`,
@@ -27022,9 +27022,9 @@ function cE(e) {
27022
27022
  right: "0"
27023
27023
  };
27024
27024
  !o && a > 0 && (A[c] = `${a}px`);
27025
- const C = Oo(i, A);
27025
+ const P = Oo(i, A);
27026
27026
  return () => {
27027
- C == null || C(), n.scrollTo({ left: m, top: T, behavior: "instant" });
27027
+ P == null || P(), n.scrollTo({ left: m, top: T, behavior: "instant" });
27028
27028
  };
27029
27029
  }, p = [u(), oa() ? d() : l()];
27030
27030
  return () => {
@@ -27502,7 +27502,7 @@ const bk = ({
27502
27502
  hE,
27503
27503
  {
27504
27504
  "aria-label": `Overflow menu for ${t}`,
27505
- className: P(
27505
+ className: C(
27506
27506
  `${y}-overflow-menu-button-trigger`,
27507
27507
  `${y}-icon-button`,
27508
27508
  s,
@@ -27515,7 +27515,7 @@ const bk = ({
27515
27515
  /* @__PURE__ */ E(jg, { children: /* @__PURE__ */ E(
27516
27516
  qg,
27517
27517
  {
27518
- className: P(
27518
+ className: C(
27519
27519
  `${y}-overflow-menu-list`,
27520
27520
  s,
27521
27521
  `cim-${t}-component`
@@ -27793,8 +27793,8 @@ function vk(e, t) {
27793
27793
  style: {
27794
27794
  scrollSnapAlign: (() => {
27795
27795
  var F;
27796
- const C = (F = b.snapAlign) != null ? F : "start", O = a("slidesPerMove"), w = O === "auto" ? Math.floor(a("slidesPerPage")) : O;
27797
- return (b.index + w) % w === 0 ? C : void 0;
27796
+ const P = (F = b.snapAlign) != null ? F : "start", I = a("slidesPerMove"), O = I === "auto" ? Math.floor(a("slidesPerPage")) : I;
27797
+ return (b.index + O) % O === 0 ? P : void 0;
27798
27798
  })()
27799
27799
  }
27800
27800
  }));
@@ -27839,7 +27839,7 @@ function vk(e, t) {
27839
27839
  "data-orientation": a("orientation"),
27840
27840
  onKeyDown(b) {
27841
27841
  if (b.defaultPrevented) return;
27842
- const A = "indicator", C = {
27842
+ const A = "indicator", P = {
27843
27843
  ArrowDown(D) {
27844
27844
  p || (s({ type: "PAGE.NEXT", src: A }), D.preventDefault());
27845
27845
  },
@@ -27858,11 +27858,11 @@ function vk(e, t) {
27858
27858
  End(D) {
27859
27859
  s({ type: "PAGE.SET", index: h.length - 1, src: A }), D.preventDefault();
27860
27860
  }
27861
- }, O = Mv(b, {
27861
+ }, I = Mv(b, {
27862
27862
  dir: a("dir"),
27863
27863
  orientation: a("orientation")
27864
- }), w = C[O];
27865
- w == null || w(b);
27864
+ }), O = P[I];
27865
+ O == null || O(b);
27866
27866
  }
27867
27867
  }));
27868
27868
  },
@@ -28381,16 +28381,16 @@ const Dk = 180, Mk = (e) => {
28381
28381
  oo(() => {
28382
28382
  h.current && T(h.current.getBoundingClientRect().width);
28383
28383
  }, [_, p]);
28384
- const g = Mk(r), b = n + g, A = m > 0 ? (m + g) / b : 1, C = Math.max(1, Math.floor(A));
28384
+ const g = Mk(r), b = n + g, A = m > 0 ? (m + g) / b : 1, P = Math.max(1, Math.floor(A));
28385
28385
  if (p === 0) return null;
28386
- const O = p > C, w = Math.ceil(p / C), D = O ? Math.max(1, A) : C;
28386
+ const I = p > P, O = Math.ceil(p / P), D = I ? Math.max(1, A) : P;
28387
28387
  return /* @__PURE__ */ X(
28388
28388
  Ml,
28389
28389
  {
28390
28390
  ref: h,
28391
- className: P(e, t, `${y}-carousel`),
28391
+ className: C(e, t, `${y}-carousel`),
28392
28392
  slidesPerPage: D,
28393
- slidesPerMove: C,
28393
+ slidesPerMove: P,
28394
28394
  spacing: r,
28395
28395
  loop: i,
28396
28396
  allowMouseDrag: s,
@@ -28401,29 +28401,29 @@ const Dk = 180, Mk = (e) => {
28401
28401
  /* @__PURE__ */ E(
28402
28402
  kl,
28403
28403
  {
28404
- className: P(e, `${y}-carousel__item-group`, {
28405
- "carousel-row-container": !O
28404
+ className: C(e, `${y}-carousel__item-group`, {
28405
+ "carousel-row-container": !I
28406
28406
  }),
28407
28407
  children: d.map(({ node: F, key: j }, k) => /* @__PURE__ */ E(
28408
28408
  Rl,
28409
28409
  {
28410
28410
  index: k,
28411
- className: P(e, `${y}-carousel__item`),
28411
+ className: C(e, `${y}-carousel__item`),
28412
28412
  children: F
28413
28413
  },
28414
28414
  j
28415
28415
  ))
28416
28416
  }
28417
28417
  ),
28418
- a && O && /* @__PURE__ */ X(
28418
+ a && I && /* @__PURE__ */ X(
28419
28419
  Cl,
28420
28420
  {
28421
- className: P(e, `${y}-carousel__control`),
28421
+ className: C(e, `${y}-carousel__control`),
28422
28422
  children: [
28423
28423
  /* @__PURE__ */ E(
28424
28424
  Dl,
28425
28425
  {
28426
- className: P(e, `${y}-carousel__prev-trigger`),
28426
+ className: C(e, `${y}-carousel__prev-trigger`),
28427
28427
  "aria-label": "Previous slide",
28428
28428
  children: /* @__PURE__ */ E(pE, { size: "16px" })
28429
28429
  }
@@ -28431,7 +28431,7 @@ const Dk = 180, Mk = (e) => {
28431
28431
  /* @__PURE__ */ E(
28432
28432
  Ll,
28433
28433
  {
28434
- className: P(e, `${y}-carousel__next-trigger`),
28434
+ className: C(e, `${y}-carousel__next-trigger`),
28435
28435
  "aria-label": "Next slide",
28436
28436
  children: /* @__PURE__ */ E(mE, { size: "16px" })
28437
28437
  }
@@ -28439,15 +28439,15 @@ const Dk = 180, Mk = (e) => {
28439
28439
  ]
28440
28440
  }
28441
28441
  ),
28442
- o && O && /* @__PURE__ */ E(
28442
+ o && I && /* @__PURE__ */ E(
28443
28443
  vl,
28444
28444
  {
28445
- className: P(e, `${y}-carousel__indicator-group`),
28446
- children: Array.from({ length: w }, (F, j) => /* @__PURE__ */ E(
28445
+ className: C(e, `${y}-carousel__indicator-group`),
28446
+ children: Array.from({ length: O }, (F, j) => /* @__PURE__ */ E(
28447
28447
  Pl,
28448
28448
  {
28449
28449
  index: j,
28450
- className: P(e, `${y}-carousel__indicator`),
28450
+ className: C(e, `${y}-carousel__indicator`),
28451
28451
  "aria-label": `Go to slide group ${j + 1}`
28452
28452
  },
28453
28453
  j
@@ -28836,7 +28836,7 @@ const Jk = ({ children: e }) => {
28836
28836
  "div",
28837
28837
  {
28838
28838
  ref: s,
28839
- className: P(
28839
+ className: C(
28840
28840
  `${y}-overflow-panel`,
28841
28841
  i,
28842
28842
  `cim-${e}-component`
@@ -28852,7 +28852,7 @@ const Jk = ({ children: e }) => {
28852
28852
  "aria-label": `Overflow menu for ${e}`,
28853
28853
  title: "More options",
28854
28854
  "aria-expanded": r,
28855
- className: P(
28855
+ className: C(
28856
28856
  `${y}-overflow-menu-button-trigger`,
28857
28857
  `${y}-icon-button`,
28858
28858
  i,
@@ -28962,7 +28962,7 @@ const $n = new nL(), rL = (e) => {
28962
28962
  return t ? /* @__PURE__ */ E(
28963
28963
  tn,
28964
28964
  {
28965
- className: P(
28965
+ className: C(
28966
28966
  n,
28967
28967
  `${y}-toggle-dialog-button`,
28968
28968
  `cim-${e}-component`
@@ -28975,7 +28975,7 @@ const $n = new nL(), rL = (e) => {
28975
28975
  ) : /* @__PURE__ */ X(
28976
28976
  "button",
28977
28977
  {
28978
- className: P(
28978
+ className: C(
28979
28979
  n,
28980
28980
  `${y}-overflow-menu-button`,
28981
28981
  `${y}-toggle-dialog-button`,
@@ -29001,7 +29001,7 @@ const $n = new nL(), rL = (e) => {
29001
29001
  {
29002
29002
  ariaLabel: a,
29003
29003
  title: a,
29004
- className: P(
29004
+ className: C(
29005
29005
  n,
29006
29006
  `${y}-modal-fullscreen-button`,
29007
29007
  `cim-${e}-component`
@@ -29012,7 +29012,7 @@ const $n = new nL(), rL = (e) => {
29012
29012
  ) : /* @__PURE__ */ X(
29013
29013
  "button",
29014
29014
  {
29015
- className: P(
29015
+ className: C(
29016
29016
  n,
29017
29017
  `${y}-overflow-menu-button`,
29018
29018
  `${y}-modal-fullscreen-button`,
@@ -29035,7 +29035,7 @@ const $n = new nL(), rL = (e) => {
29035
29035
  return t ? /* @__PURE__ */ E(
29036
29036
  tn,
29037
29037
  {
29038
- className: P(
29038
+ className: C(
29039
29039
  n,
29040
29040
  `${y}-left-right-toggle-button`,
29041
29041
  `cim-${e}-component`
@@ -29048,7 +29048,7 @@ const $n = new nL(), rL = (e) => {
29048
29048
  ) : /* @__PURE__ */ X(
29049
29049
  "button",
29050
29050
  {
29051
- className: P(
29051
+ className: C(
29052
29052
  n,
29053
29053
  `${y}-overflow-menu-button`,
29054
29054
  `${y}-left-right-toggle-button`,
@@ -29072,7 +29072,7 @@ const $n = new nL(), rL = (e) => {
29072
29072
  return /* @__PURE__ */ E(Jk, { children: /* @__PURE__ */ X(
29073
29073
  "div",
29074
29074
  {
29075
- className: P(o, `${y}-${e}-header-wrapper`),
29075
+ className: C(o, `${y}-${e}-header-wrapper`),
29076
29076
  style: {
29077
29077
  display: "flex",
29078
29078
  flexDirection: "column",
@@ -29082,7 +29082,7 @@ const $n = new nL(), rL = (e) => {
29082
29082
  /* @__PURE__ */ X(
29083
29083
  "div",
29084
29084
  {
29085
- className: P(o, `${y}-${e}-header`, {
29085
+ className: C(o, `${y}-${e}-header`, {
29086
29086
  standalone: d,
29087
29087
  embedded: !d
29088
29088
  }),
@@ -29093,7 +29093,7 @@ const $n = new nL(), rL = (e) => {
29093
29093
  {
29094
29094
  alt: "",
29095
29095
  role: "img",
29096
- className: P(o, `${y}-${e}-logo`, {
29096
+ className: C(o, `${y}-${e}-logo`, {
29097
29097
  standalone: d,
29098
29098
  embedded: !d
29099
29099
  }),
@@ -29103,7 +29103,7 @@ const $n = new nL(), rL = (e) => {
29103
29103
  /* @__PURE__ */ E(
29104
29104
  OE,
29105
29105
  {
29106
- className: P(o, `${y}-${e}-title`, {
29106
+ className: C(o, `${y}-${e}-title`, {
29107
29107
  standalone: d,
29108
29108
  embedded: !d
29109
29109
  }),
@@ -29113,14 +29113,14 @@ const $n = new nL(), rL = (e) => {
29113
29113
  /* @__PURE__ */ X(
29114
29114
  "div",
29115
29115
  {
29116
- className: P(o, `${y}-${e}-controls`),
29116
+ className: C(o, `${y}-${e}-controls`),
29117
29117
  children: [
29118
29118
  /* @__PURE__ */ E(h, { componentType: e, isIcon: !0 }),
29119
29119
  /* @__PURE__ */ E(tL, { componentType: e }),
29120
29120
  /* @__PURE__ */ E(
29121
29121
  Gm,
29122
29122
  {
29123
- className: P(o, `cim-${e}-component`),
29123
+ className: C(o, `cim-${e}-component`),
29124
29124
  label: s == null ? void 0 : s.closeButtonAriaLabel,
29125
29125
  onClick: r
29126
29126
  }
@@ -29216,12 +29216,12 @@ const $n = new nL(), rL = (e) => {
29216
29216
  return /* @__PURE__ */ X(
29217
29217
  "div",
29218
29218
  {
29219
- className: P(i, s, `${y}-price`),
29219
+ className: C(i, s, `${y}-price`),
29220
29220
  style: c,
29221
29221
  children: [
29222
29222
  /* @__PURE__ */ E("span", { className: `${y}-visually-hidden`, children: "Current price: " }),
29223
- /* @__PURE__ */ E("span", { className: P(i, `${y}-price__amount`), children: o }),
29224
- u && a && /* @__PURE__ */ X("span", { className: P(i, `${y}-price__compare`), children: [
29223
+ /* @__PURE__ */ E("span", { className: C(i, `${y}-price__amount`), children: o }),
29224
+ u && a && /* @__PURE__ */ X("span", { className: C(i, `${y}-price__compare`), children: [
29225
29225
  /* @__PURE__ */ E("span", { className: `${y}-visually-hidden`, children: "Original price: " }),
29226
29226
  a
29227
29227
  ] })
@@ -29259,7 +29259,7 @@ const $n = new nL(), rL = (e) => {
29259
29259
  return /* @__PURE__ */ E(
29260
29260
  "div",
29261
29261
  {
29262
- className: P(
29262
+ className: C(
29263
29263
  t,
29264
29264
  `${y}-suggestion-container ${c}`,
29265
29265
  e
@@ -29269,7 +29269,7 @@ const $n = new nL(), rL = (e) => {
29269
29269
  qc,
29270
29270
  {
29271
29271
  disabled: r,
29272
- className: P(
29272
+ className: C(
29273
29273
  t,
29274
29274
  `${y}-suggestion-button standalone`,
29275
29275
  d
@@ -29282,7 +29282,7 @@ const $n = new nL(), rL = (e) => {
29282
29282
  "button",
29283
29283
  {
29284
29284
  disabled: r,
29285
- className: P(
29285
+ className: C(
29286
29286
  t,
29287
29287
  `${y}-suggestion-button embedded`,
29288
29288
  d
@@ -29307,7 +29307,7 @@ const $n = new nL(), rL = (e) => {
29307
29307
  return t ? /* @__PURE__ */ E(
29308
29308
  tn,
29309
29309
  {
29310
- className: P(
29310
+ className: C(
29311
29311
  n,
29312
29312
  `${y}-toggle-minimize-button`,
29313
29313
  `cim-${e}-component`
@@ -29320,7 +29320,7 @@ const $n = new nL(), rL = (e) => {
29320
29320
  ) : /* @__PURE__ */ X(
29321
29321
  "button",
29322
29322
  {
29323
- className: P(
29323
+ className: C(
29324
29324
  n,
29325
29325
  `${y}-overflow-menu-button`,
29326
29326
  `${y}-toggle-minimize-button`,
@@ -29343,7 +29343,7 @@ const $n = new nL(), rL = (e) => {
29343
29343
  return t ? /* @__PURE__ */ E(
29344
29344
  tn,
29345
29345
  {
29346
- className: P(
29346
+ className: C(
29347
29347
  n,
29348
29348
  `${y}-toggle-modal-button`,
29349
29349
  `cim-${e}-component`
@@ -29356,7 +29356,7 @@ const $n = new nL(), rL = (e) => {
29356
29356
  ) : /* @__PURE__ */ X(
29357
29357
  "button",
29358
29358
  {
29359
- className: P(
29359
+ className: C(
29360
29360
  n,
29361
29361
  `${y}-overflow-menu-button`,
29362
29362
  `${y}-toggle-modal-button`,
@@ -29420,7 +29420,7 @@ const yL = [
29420
29420
  }, [n.length]), /* @__PURE__ */ X(
29421
29421
  "div",
29422
29422
  {
29423
- className: P(
29423
+ className: C(
29424
29424
  e,
29425
29425
  `${y}-connecting-indicator`,
29426
29426
  t ? "standalone" : "embedded"
@@ -29435,7 +29435,7 @@ const yL = [
29435
29435
  /* @__PURE__ */ E(
29436
29436
  "span",
29437
29437
  {
29438
- className: P(
29438
+ className: C(
29439
29439
  `${y}-connecting-text`,
29440
29440
  s && `${y}-connecting-text--visible`
29441
29441
  ),
@@ -29457,7 +29457,7 @@ const yL = [
29457
29457
  }) => /* @__PURE__ */ X(
29458
29458
  "div",
29459
29459
  {
29460
- className: P(
29460
+ className: C(
29461
29461
  e,
29462
29462
  `${y}-processing-indicator`,
29463
29463
  t ? "standalone" : "embedded"
@@ -29555,16 +29555,16 @@ function RL(e, t, n) {
29555
29555
  p.lastIndex = 0;
29556
29556
  let A = p.exec(c.value);
29557
29557
  for (; A; ) {
29558
- const C = A.index, O = {
29558
+ const P = A.index, I = {
29559
29559
  index: A.index,
29560
29560
  input: A.input,
29561
29561
  stack: [...l, c]
29562
29562
  };
29563
- let w = h(...A, O);
29564
- if (typeof w == "string" && (w = w.length > 0 ? { type: "text", value: w } : void 0), w === !1 ? p.lastIndex = C + 1 : (m !== C && b.push({
29563
+ let O = h(...A, I);
29564
+ if (typeof O == "string" && (O = O.length > 0 ? { type: "text", value: O } : void 0), O === !1 ? p.lastIndex = P + 1 : (m !== P && b.push({
29565
29565
  type: "text",
29566
- value: c.value.slice(m, C)
29567
- }), Array.isArray(w) ? b.push(...w) : w && b.push(w), m = C + A[0].length, g = !0), !p.global)
29566
+ value: c.value.slice(m, P)
29567
+ }), Array.isArray(O) ? b.push(...O) : O && b.push(O), m = P + A[0].length, g = !0), !p.global)
29568
29568
  break;
29569
29569
  A = p.exec(c.value);
29570
29570
  }
@@ -29896,14 +29896,14 @@ function h6(e, t) {
29896
29896
  const g = [];
29897
29897
  for (; ++d < c; ) {
29898
29898
  const b = T[d] || "";
29899
- let A = "", C = "";
29899
+ let A = "", P = "";
29900
29900
  if (n.alignDelimiters !== !1) {
29901
- const O = u[d] - (_[d] || 0), w = s[d];
29902
- w === 114 ? A = " ".repeat(O) : w === 99 ? O % 2 ? (A = " ".repeat(O / 2 + 0.5), C = " ".repeat(O / 2 - 0.5)) : (A = " ".repeat(O / 2), C = A) : C = " ".repeat(O);
29901
+ const I = u[d] - (_[d] || 0), O = s[d];
29902
+ O === 114 ? A = " ".repeat(I) : O === 99 ? I % 2 ? (A = " ".repeat(I / 2 + 0.5), P = " ".repeat(I / 2 - 0.5)) : (A = " ".repeat(I / 2), P = A) : P = " ".repeat(I);
29903
29903
  }
29904
29904
  n.delimiterStart !== !1 && !d && g.push("|"), n.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
29905
29905
  // empty: there will be a closing space.
29906
- !(n.alignDelimiters === !1 && b === "") && (n.delimiterStart !== !1 || d) && g.push(" "), n.alignDelimiters !== !1 && g.push(A), g.push(b), n.alignDelimiters !== !1 && g.push(C), n.padding !== !1 && g.push(" "), (n.delimiterEnd !== !1 || d !== c - 1) && g.push("|");
29906
+ !(n.alignDelimiters === !1 && b === "") && (n.delimiterStart !== !1 || d) && g.push(" "), n.alignDelimiters !== !1 && g.push(A), g.push(b), n.alignDelimiters !== !1 && g.push(P), n.padding !== !1 && g.push(" "), (n.delimiterEnd !== !1 || d !== c - 1) && g.push("|");
29907
29907
  }
29908
29908
  m.push(
29909
29909
  n.delimiterEnd === !1 ? g.join("").replace(/ +$/, "") : g.join("")
@@ -31238,8 +31238,8 @@ function vD(e, t, n) {
31238
31238
  M === "linePrefix") $--;
31239
31239
  else break;
31240
31240
  }
31241
- const B = $ > -1 ? r.events[$][1].type : null, ee = B === "tableHead" || B === "tableRow" ? w : u;
31242
- return ee === w && r.parser.lazy[r.now().line] ? n(k) : ee(k);
31241
+ const B = $ > -1 ? r.events[$][1].type : null, ee = B === "tableHead" || B === "tableRow" ? O : u;
31242
+ return ee === O && r.parser.lazy[r.now().line] ? n(k) : ee(k);
31243
31243
  }
31244
31244
  function u(k) {
31245
31245
  return e.enter("tableHead"), e.enter("tableRow"), c(k);
@@ -31260,30 +31260,30 @@ function vD(e, t, n) {
31260
31260
  return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(k) : (e.enter("tableDelimiterRow"), o = !1, ke(k) ? De(e, m, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(k) : m(k));
31261
31261
  }
31262
31262
  function m(k) {
31263
- return k === 45 || k === 58 ? _(k) : k === 124 ? (o = !0, e.enter("tableCellDivider"), e.consume(k), e.exit("tableCellDivider"), T) : O(k);
31263
+ return k === 45 || k === 58 ? _(k) : k === 124 ? (o = !0, e.enter("tableCellDivider"), e.consume(k), e.exit("tableCellDivider"), T) : I(k);
31264
31264
  }
31265
31265
  function T(k) {
31266
31266
  return ke(k) ? De(e, _, "whitespace")(k) : _(k);
31267
31267
  }
31268
31268
  function _(k) {
31269
- return k === 58 ? (s += 1, o = !0, e.enter("tableDelimiterMarker"), e.consume(k), e.exit("tableDelimiterMarker"), g) : k === 45 ? (s += 1, g(k)) : k === null || _e(k) ? C(k) : O(k);
31269
+ return k === 58 ? (s += 1, o = !0, e.enter("tableDelimiterMarker"), e.consume(k), e.exit("tableDelimiterMarker"), g) : k === 45 ? (s += 1, g(k)) : k === null || _e(k) ? P(k) : I(k);
31270
31270
  }
31271
31271
  function g(k) {
31272
- return k === 45 ? (e.enter("tableDelimiterFiller"), b(k)) : O(k);
31272
+ return k === 45 ? (e.enter("tableDelimiterFiller"), b(k)) : I(k);
31273
31273
  }
31274
31274
  function b(k) {
31275
31275
  return k === 45 ? (e.consume(k), b) : k === 58 ? (o = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(k), e.exit("tableDelimiterMarker"), A) : (e.exit("tableDelimiterFiller"), A(k));
31276
31276
  }
31277
31277
  function A(k) {
31278
- return ke(k) ? De(e, C, "whitespace")(k) : C(k);
31278
+ return ke(k) ? De(e, P, "whitespace")(k) : P(k);
31279
31279
  }
31280
- function C(k) {
31281
- return k === 124 ? m(k) : k === null || _e(k) ? !o || i !== s ? O(k) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(k)) : O(k);
31280
+ function P(k) {
31281
+ return k === 124 ? m(k) : k === null || _e(k) ? !o || i !== s ? I(k) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(k)) : I(k);
31282
31282
  }
31283
- function O(k) {
31283
+ function I(k) {
31284
31284
  return n(k);
31285
31285
  }
31286
- function w(k) {
31286
+ function O(k) {
31287
31287
  return e.enter("tableRow"), D(k);
31288
31288
  }
31289
31289
  function D(k) {
@@ -31422,12 +31422,12 @@ const HD = () => /* @__PURE__ */ E("span", { className: `${y}-blinking-cursor`,
31422
31422
  remarkPlugins: [UD],
31423
31423
  rehypePlugins: [mg],
31424
31424
  components: {
31425
- h1: ({ children: s }) => /* @__PURE__ */ E("h1", { className: P(e, `${y}-header h1`), children: s }),
31426
- h2: ({ children: s }) => /* @__PURE__ */ E("h2", { className: P(e, `${y}-header h2`), children: s }),
31427
- h3: ({ children: s }) => /* @__PURE__ */ E("h3", { className: P(e, `${y}-header h3`), children: s }),
31428
- ul: ({ children: s }) => /* @__PURE__ */ E("ul", { className: P(e, `${y}-ul`), children: s }),
31429
- ol: ({ children: s }) => /* @__PURE__ */ E("ol", { className: P(e, `${y}-ol`), children: s }),
31430
- li: ({ children: s }) => /* @__PURE__ */ E("li", { className: P(e, `${y}-li`), children: s }),
31425
+ h1: ({ children: s }) => /* @__PURE__ */ E("h1", { className: C(e, `${y}-header h1`), children: s }),
31426
+ h2: ({ children: s }) => /* @__PURE__ */ E("h2", { className: C(e, `${y}-header h2`), children: s }),
31427
+ h3: ({ children: s }) => /* @__PURE__ */ E("h3", { className: C(e, `${y}-header h3`), children: s }),
31428
+ ul: ({ children: s }) => /* @__PURE__ */ E("ul", { className: C(e, `${y}-ul`), children: s }),
31429
+ ol: ({ children: s }) => /* @__PURE__ */ E("ol", { className: C(e, `${y}-ol`), children: s }),
31430
+ li: ({ children: s }) => /* @__PURE__ */ E("li", { className: C(e, `${y}-li`), children: s }),
31431
31431
  a: ({ href: s, children: o }) => /* @__PURE__ */ E(
31432
31432
  bg,
31433
31433
  {
@@ -31438,12 +31438,12 @@ const HD = () => /* @__PURE__ */ E("span", { className: `${y}-blinking-cursor`,
31438
31438
  children: o
31439
31439
  }
31440
31440
  ),
31441
- table: ({ children: s }) => /* @__PURE__ */ E("div", { className: P(e, `${y}-table-container`), children: /* @__PURE__ */ E("table", { className: P(e, `${y}-table`), children: s }) }),
31442
- thead: ({ children: s }) => /* @__PURE__ */ E("thead", { className: P(e, `${y}-thead`), children: s }),
31443
- tbody: ({ children: s }) => /* @__PURE__ */ E("tbody", { className: P(e, `${y}-tbody`), children: s }),
31444
- tr: ({ children: s }) => /* @__PURE__ */ E("tr", { className: P(e, `${y}-tr`), children: s }),
31445
- th: ({ children: s }) => /* @__PURE__ */ E("th", { className: P(e, `${y}-th`), children: s }),
31446
- td: ({ children: s }) => /* @__PURE__ */ E("td", { className: P(e, `${y}-td`), children: s }),
31441
+ table: ({ children: s }) => /* @__PURE__ */ E("div", { className: C(e, `${y}-table-container`), children: /* @__PURE__ */ E("table", { className: C(e, `${y}-table`), children: s }) }),
31442
+ thead: ({ children: s }) => /* @__PURE__ */ E("thead", { className: C(e, `${y}-thead`), children: s }),
31443
+ tbody: ({ children: s }) => /* @__PURE__ */ E("tbody", { className: C(e, `${y}-tbody`), children: s }),
31444
+ tr: ({ children: s }) => /* @__PURE__ */ E("tr", { className: C(e, `${y}-tr`), children: s }),
31445
+ th: ({ children: s }) => /* @__PURE__ */ E("th", { className: C(e, `${y}-th`), children: s }),
31446
+ td: ({ children: s }) => /* @__PURE__ */ E("td", { className: C(e, `${y}-td`), children: s }),
31447
31447
  span: ({ className: s, children: o }) => s === `${y}-blinking-cursor` ? /* @__PURE__ */ E(HD, {}) : /* @__PURE__ */ E("span", { children: o })
31448
31448
  },
31449
31449
  children: r + (n ? `<span className='${y}-blinking-cursor'></span>` : "")
@@ -31548,12 +31548,12 @@ const qD = ({
31548
31548
  return /* @__PURE__ */ E(
31549
31549
  "div",
31550
31550
  {
31551
- className: P(t, `${y}-msg-product-card__image-wrapper`),
31551
+ className: C(t, `${y}-msg-product-card__image-wrapper`),
31552
31552
  children: e ? n ? /* @__PURE__ */ E(
31553
31553
  "button",
31554
31554
  {
31555
31555
  type: "button",
31556
- className: P(
31556
+ className: C(
31557
31557
  t,
31558
31558
  `${y}-msg-product-card__image-button`
31559
31559
  ),
@@ -31563,7 +31563,7 @@ const qD = ({
31563
31563
  children: /* @__PURE__ */ E(
31564
31564
  "img",
31565
31565
  {
31566
- className: P(t, `${y}-msg-product-card__image`),
31566
+ className: C(t, `${y}-msg-product-card__image`),
31567
31567
  src: e,
31568
31568
  alt: o || "Product image",
31569
31569
  loading: "lazy"
@@ -31587,7 +31587,7 @@ const qD = ({
31587
31587
  children: /* @__PURE__ */ E(
31588
31588
  "img",
31589
31589
  {
31590
- className: P(t, `${y}-msg-product-card__image`),
31590
+ className: C(t, `${y}-msg-product-card__image`),
31591
31591
  src: e,
31592
31592
  alt: o || "Product image",
31593
31593
  loading: "lazy"
@@ -31597,7 +31597,7 @@ const qD = ({
31597
31597
  ) : /* @__PURE__ */ E(
31598
31598
  "img",
31599
31599
  {
31600
- className: P(t, `${y}-msg-product-card__image`),
31600
+ className: C(t, `${y}-msg-product-card__image`),
31601
31601
  src: e,
31602
31602
  alt: o || "Product image",
31603
31603
  loading: "lazy"
@@ -31605,7 +31605,7 @@ const qD = ({
31605
31605
  ) : /* @__PURE__ */ E(
31606
31606
  "div",
31607
31607
  {
31608
- className: P(
31608
+ className: C(
31609
31609
  t,
31610
31610
  `${y}-msg-product-card__image-placeholder`
31611
31611
  ),
@@ -31632,7 +31632,7 @@ const qD = ({
31632
31632
  type: "button",
31633
31633
  disabled: a,
31634
31634
  onClick: o,
31635
- className: P(t, `${y}-msg-product-card__title-link`),
31635
+ className: C(t, `${y}-msg-product-card__title-link`),
31636
31636
  "aria-label": s,
31637
31637
  children: e
31638
31638
  }
@@ -31642,7 +31642,7 @@ const qD = ({
31642
31642
  href: r,
31643
31643
  target: i ? "_blank" : "_self",
31644
31644
  rel: "noopener",
31645
- className: P(t, `${y}-msg-product-card__title-link`),
31645
+ className: C(t, `${y}-msg-product-card__title-link`),
31646
31646
  "aria-label": s,
31647
31647
  onClick: (c) => Ea({
31648
31648
  event: c,
@@ -31653,7 +31653,7 @@ const qD = ({
31653
31653
  }),
31654
31654
  children: e
31655
31655
  }
31656
- ) : /* @__PURE__ */ E("p", { className: P(t, `${y}-msg-product-card__title`), children: e });
31656
+ ) : /* @__PURE__ */ E("p", { className: C(t, `${y}-msg-product-card__title`), children: e });
31657
31657
  }, YD = ({
31658
31658
  product: e,
31659
31659
  globalClassName: t,
@@ -31678,15 +31678,15 @@ const qD = ({
31678
31678
  productPageUrl: g,
31679
31679
  price: b,
31680
31680
  priceBreakdown: A,
31681
- discountPrice: C,
31682
- listPrice: O,
31683
- currencyCode: w
31684
- } = e, D = C != null ? C : b, F = gL({ priceBreakdown: A, currencyCode: w }), j = () => {
31681
+ discountPrice: P,
31682
+ listPrice: I,
31683
+ currencyCode: O
31684
+ } = e, D = P != null ? P : b, F = gL({ priceBreakdown: A, currencyCode: O }), j = () => {
31685
31685
  if (l) return;
31686
31686
  const B = m || "this product", ee = h ? ` [SKU: ${h}]` : "";
31687
31687
  c(`Show me details for ${B}${ee}`);
31688
31688
  }, k = (B) => Kn({ event: B, openLinksInNewTab: n, onNavigate: o }), $ = r ? `View details for ${m}` : `Go to product page for ${m}`;
31689
- return /* @__PURE__ */ X("div", { className: P(t, `${y}-msg-product-card`), children: [
31689
+ return /* @__PURE__ */ X("div", { className: C(t, `${y}-msg-product-card`), children: [
31690
31690
  /* @__PURE__ */ E(
31691
31691
  qD,
31692
31692
  {
@@ -31700,11 +31700,11 @@ const qD = ({
31700
31700
  showInWidgetDetails: j
31701
31701
  }
31702
31702
  ),
31703
- /* @__PURE__ */ X("div", { className: P(t, `${y}-msg-product-card__content`), children: [
31703
+ /* @__PURE__ */ X("div", { className: C(t, `${y}-msg-product-card__content`), children: [
31704
31704
  /* @__PURE__ */ X(
31705
31705
  "div",
31706
31706
  {
31707
- className: P(
31707
+ className: C(
31708
31708
  t,
31709
31709
  `${y}-msg-product-card__content-header`
31710
31710
  ),
@@ -31724,7 +31724,7 @@ const qD = ({
31724
31724
  s && _ && /* @__PURE__ */ E(
31725
31725
  "div",
31726
31726
  {
31727
- className: P(
31727
+ className: C(
31728
31728
  t,
31729
31729
  `${y}-msg-product-card__description`
31730
31730
  ),
@@ -31746,11 +31746,11 @@ const qD = ({
31746
31746
  /* @__PURE__ */ E(
31747
31747
  "div",
31748
31748
  {
31749
- className: P(t, `${y}-msg-product-card__price-row`),
31749
+ className: C(t, `${y}-msg-product-card__price-row`),
31750
31750
  children: F ? /* @__PURE__ */ E(
31751
31751
  "span",
31752
31752
  {
31753
- className: P(t, `${y}-msg-product-card__price`),
31753
+ className: C(t, `${y}-msg-product-card__price`),
31754
31754
  "aria-label": `Price from ${F.low} to ${F.high}`,
31755
31755
  children: F.range
31756
31756
  }
@@ -31758,9 +31758,9 @@ const qD = ({
31758
31758
  zl,
31759
31759
  {
31760
31760
  globalClassName: t,
31761
- retailPrice: O,
31761
+ retailPrice: I,
31762
31762
  discountPrice: D,
31763
- currencyCode: w
31763
+ currencyCode: O
31764
31764
  }
31765
31765
  )
31766
31766
  }
@@ -31807,7 +31807,7 @@ const qD = ({
31807
31807
  label: "ProductCarousel"
31808
31808
  }
31809
31809
  ) : /* @__PURE__ */ X("div", { style: { marginBottom: "1rem" }, children: [
31810
- e && /* @__PURE__ */ E("p", { className: P(n, `${y}-product-carousel-title`), children: e }),
31810
+ e && /* @__PURE__ */ E("p", { className: C(n, `${y}-product-carousel-title`), children: e }),
31811
31811
  /* @__PURE__ */ E(
31812
31812
  Bk,
31813
31813
  {
@@ -31817,7 +31817,7 @@ const qD = ({
31817
31817
  children: t.map((d) => /* @__PURE__ */ X(
31818
31818
  "div",
31819
31819
  {
31820
- className: P(n, `${y}-product-carousel-item`),
31820
+ className: C(n, `${y}-product-carousel-item`),
31821
31821
  children: [
31822
31822
  /* @__PURE__ */ E(
31823
31823
  YD,
@@ -31832,7 +31832,7 @@ const qD = ({
31832
31832
  o && /* @__PURE__ */ E(
31833
31833
  "p",
31834
31834
  {
31835
- className: P(
31835
+ className: C(
31836
31836
  n,
31837
31837
  `${y}-product-carousel-caption`
31838
31838
  ),
@@ -31873,7 +31873,7 @@ const qD = ({
31873
31873
  } catch (r) {
31874
31874
  return null;
31875
31875
  }
31876
- }, tp = "Payment failed. Please try again or choose another method.", t4 = "Payment was canceled.", n4 = (e) => typeof e != "string" ? tp : e.trim() || tp, r1 = ({
31876
+ }, t4 = "Payment failed. Please try again or choose another method.", n4 = "Payment was canceled.", tp = (e, t) => typeof e != "string" ? t : e.trim() || t, r1 = ({
31877
31877
  expressPaymentUrl: e,
31878
31878
  globalClassName: t,
31879
31879
  onOrderComplete: n
@@ -31881,7 +31881,7 @@ const qD = ({
31881
31881
  const r = Q(null), [i, s] = Oe(!1), [o, a] = Oe(uc), [u, c] = Oe(null), l = typeof window != "undefined" ? window.location.origin : "", d = ZD(e, l), p = QD(e);
31882
31882
  return Ie(() => {
31883
31883
  const h = (m) => {
31884
- var _, g, b, A;
31884
+ var _, g, b, A, P;
31885
31885
  if (p && m.origin !== p || r.current && m.source !== r.current.contentWindow) return;
31886
31886
  const T = m.data;
31887
31887
  if (!(!T || typeof T.type != "string"))
@@ -31896,13 +31896,16 @@ const qD = ({
31896
31896
  c(null), n == null || n((b = (g = T.payload) == null ? void 0 : g.orderId) != null ? b : null);
31897
31897
  break;
31898
31898
  case "express.payment.failure":
31899
- c({ text: n4((A = T.payload) == null ? void 0 : A.error), persist: !0 });
31899
+ c({
31900
+ text: tp((A = T.payload) == null ? void 0 : A.error, t4),
31901
+ persist: !0
31902
+ });
31900
31903
  break;
31901
- case "express.payment.cancel":
31902
- c(
31903
- (C) => C != null && C.persist ? C : { text: t4, persist: !1 }
31904
- );
31904
+ case "express.payment.cancel": {
31905
+ const I = tp((P = T.payload) == null ? void 0 : P.cancel, n4);
31906
+ c((O) => O != null && O.persist ? O : { text: I, persist: !1 });
31905
31907
  break;
31908
+ }
31906
31909
  }
31907
31910
  };
31908
31911
  return window.addEventListener("message", h), () => window.removeEventListener("message", h);
@@ -31910,7 +31913,7 @@ const qD = ({
31910
31913
  u && /* @__PURE__ */ X(
31911
31914
  "div",
31912
31915
  {
31913
- className: P(t, `${y}-cart-express-error`),
31916
+ className: C(t, `${y}-cart-express-error`),
31914
31917
  role: "alert",
31915
31918
  "data-testid": "express-payment-error",
31916
31919
  children: [
@@ -31920,7 +31923,7 @@ const qD = ({
31920
31923
  "button",
31921
31924
  {
31922
31925
  type: "button",
31923
- className: P(t, `${y}-cart-express-error-dismiss`),
31926
+ className: C(t, `${y}-cart-express-error-dismiss`),
31924
31927
  onClick: () => c(null),
31925
31928
  "aria-label": "Dismiss",
31926
31929
  "data-testid": "express-payment-error-dismiss",
@@ -31933,7 +31936,7 @@ const qD = ({
31933
31936
  /* @__PURE__ */ E(
31934
31937
  "div",
31935
31938
  {
31936
- className: P(t, `${y}-cart-express`, {
31939
+ className: C(t, `${y}-cart-express`, {
31937
31940
  [`${y}-cart-express-ready`]: i
31938
31941
  }),
31939
31942
  style: i ? { height: o } : void 0,
@@ -31943,7 +31946,7 @@ const qD = ({
31943
31946
  "iframe",
31944
31947
  {
31945
31948
  ref: r,
31946
- className: P(t, `${y}-cart-express-frame`),
31949
+ className: C(t, `${y}-cart-express-frame`),
31947
31950
  src: d,
31948
31951
  title: "Express payment",
31949
31952
  allow: "payment *",
@@ -31960,7 +31963,7 @@ const qD = ({
31960
31963
  }) => /* @__PURE__ */ X(
31961
31964
  "span",
31962
31965
  {
31963
- className: P(t, `${y}-cart-chip`, { inactive: n }),
31966
+ className: C(t, `${y}-cart-chip`, { inactive: n }),
31964
31967
  title: n ? "Not applied" : void 0,
31965
31968
  children: [
31966
31969
  /* @__PURE__ */ E(Ym, { "aria-hidden": "true" }),
@@ -31988,15 +31991,15 @@ const qD = ({
31988
31991
  return /* @__PURE__ */ X(
31989
31992
  "div",
31990
31993
  {
31991
- className: P(i, `${y}-cart-total-row`, {
31994
+ className: C(i, `${y}-cart-total-row`, {
31992
31995
  emphasized: s
31993
31996
  }),
31994
31997
  children: [
31995
- /* @__PURE__ */ X("span", { className: P(i, `${y}-cart-total-label`), children: [
31998
+ /* @__PURE__ */ X("span", { className: C(i, `${y}-cart-total-label`), children: [
31996
31999
  e,
31997
- t && /* @__PURE__ */ E("span", { className: P(i, `${y}-cart-total-badge`), children: t })
32000
+ t && /* @__PURE__ */ E("span", { className: C(i, `${y}-cart-total-badge`), children: t })
31998
32001
  ] }),
31999
- /* @__PURE__ */ E("span", { className: P(i, `${y}-cart-total-value`), children: u ? /* @__PURE__ */ E("span", { className: P(i, `${y}-cart-total-shimmer`) }) : c })
32002
+ /* @__PURE__ */ E("span", { className: C(i, `${y}-cart-total-value`), children: u ? /* @__PURE__ */ E("span", { className: C(i, `${y}-cart-total-shimmer`) }) : c })
32000
32003
  ]
32001
32004
  }
32002
32005
  );
@@ -32083,13 +32086,13 @@ const s1 = (e) => {
32083
32086
  }, u = (c) => {
32084
32087
  c.key === "Enter" && (c.preventDefault(), a());
32085
32088
  };
32086
- return /* @__PURE__ */ E("div", { className: P(n, `${y}-cart-qty-input-wrapper`), children: /* @__PURE__ */ E(
32089
+ return /* @__PURE__ */ E("div", { className: C(n, `${y}-cart-qty-input-wrapper`), children: /* @__PURE__ */ E(
32087
32090
  "input",
32088
32091
  {
32089
32092
  type: "text",
32090
32093
  inputMode: "numeric",
32091
32094
  pattern: "[0-9]*",
32092
- className: P(n, `${y}-cart-qty-input`),
32095
+ className: C(n, `${y}-cart-qty-input`),
32093
32096
  value: i,
32094
32097
  disabled: t,
32095
32098
  onChange: o,
@@ -32108,15 +32111,15 @@ const s1 = (e) => {
32108
32111
  }) => {
32109
32112
  var u, c;
32110
32113
  const o = typeof e.originalSubtotal == "number" && typeof e.itemSubtotal == "number" && e.originalSubtotal > e.itemSubtotal, a = Gl(e.coupons);
32111
- return /* @__PURE__ */ X("li", { className: P(r, `${y}-cart-item`), children: [
32112
- e.imageUrl && /* @__PURE__ */ E("div", { className: P(r, `${y}-cart-item-image`), children: /* @__PURE__ */ E("img", { src: e.imageUrl, alt: e.name || "Product image", loading: "lazy" }) }),
32113
- /* @__PURE__ */ X("div", { className: P(r, `${y}-cart-item-details`), children: [
32114
- /* @__PURE__ */ E("p", { className: P(r, `${y}-cart-item-name`), children: e.name }),
32115
- /* @__PURE__ */ X("div", { className: P(r, `${y}-cart-item-attrs`), children: [
32114
+ return /* @__PURE__ */ X("li", { className: C(r, `${y}-cart-item`), children: [
32115
+ e.imageUrl && /* @__PURE__ */ E("div", { className: C(r, `${y}-cart-item-image`), children: /* @__PURE__ */ E("img", { src: e.imageUrl, alt: e.name || "Product image", loading: "lazy" }) }),
32116
+ /* @__PURE__ */ X("div", { className: C(r, `${y}-cart-item-details`), children: [
32117
+ /* @__PURE__ */ E("p", { className: C(r, `${y}-cart-item-name`), children: e.name }),
32118
+ /* @__PURE__ */ X("div", { className: C(r, `${y}-cart-item-attrs`), children: [
32116
32119
  ((u = e.variants) != null ? u : []).map((l) => /* @__PURE__ */ X(
32117
32120
  "p",
32118
32121
  {
32119
- className: P(r, `${y}-cart-item-attr`),
32122
+ className: C(r, `${y}-cart-item-attr`),
32120
32123
  children: [
32121
32124
  l.lbl,
32122
32125
  ": ",
@@ -32128,7 +32131,7 @@ const s1 = (e) => {
32128
32131
  ((c = e.promotions) != null ? c : []).map((l) => /* @__PURE__ */ X(
32129
32132
  "p",
32130
32133
  {
32131
- className: P(r, `${y}-cart-item-attr`),
32134
+ className: C(r, `${y}-cart-item-attr`),
32132
32135
  children: [
32133
32136
  "Promotion: ",
32134
32137
  l
@@ -32137,19 +32140,19 @@ const s1 = (e) => {
32137
32140
  l
32138
32141
  ))
32139
32142
  ] }),
32140
- a.length > 0 && /* @__PURE__ */ E("div", { className: P(r, `${y}-cart-chips`), children: a.map((l) => /* @__PURE__ */ E(Ta, { code: l, globalClassName: r }, l)) }),
32141
- /* @__PURE__ */ X("span", { className: P(r, `${y}-cart-item-price`), children: [
32143
+ a.length > 0 && /* @__PURE__ */ E("div", { className: C(r, `${y}-cart-chips`), children: a.map((l) => /* @__PURE__ */ E(Ta, { code: l, globalClassName: r }, l)) }),
32144
+ /* @__PURE__ */ X("span", { className: C(r, `${y}-cart-item-price`), children: [
32142
32145
  o && /* @__PURE__ */ E(
32143
32146
  "span",
32144
32147
  {
32145
- className: P(r, `${y}-cart-item-original-price`),
32148
+ className: C(r, `${y}-cart-item-original-price`),
32146
32149
  children: Rn(e.originalSubtotal, t)
32147
32150
  }
32148
32151
  ),
32149
- /* @__PURE__ */ E("span", { className: P(r, `${y}-cart-item-final-price`), children: Rn(e.itemSubtotal, t) })
32152
+ /* @__PURE__ */ E("span", { className: C(r, `${y}-cart-item-final-price`), children: Rn(e.itemSubtotal, t) })
32150
32153
  ] }),
32151
- /* @__PURE__ */ X("div", { className: P(r, `${y}-cart-item-footer`), children: [
32152
- /* @__PURE__ */ E("span", { className: P(r, `${y}-cart-qty-heading`), children: "Quantity" }),
32154
+ /* @__PURE__ */ X("div", { className: C(r, `${y}-cart-item-footer`), children: [
32155
+ /* @__PURE__ */ E("span", { className: C(r, `${y}-cart-qty-heading`), children: "Quantity" }),
32153
32156
  /* @__PURE__ */ E(
32154
32157
  s4,
32155
32158
  {
@@ -32163,7 +32166,7 @@ const s1 = (e) => {
32163
32166
  "button",
32164
32167
  {
32165
32168
  type: "button",
32166
- className: P(r, `${y}-cart-item-remove`),
32169
+ className: C(r, `${y}-cart-item-remove`),
32167
32170
  disabled: n,
32168
32171
  onClick: () => i(e),
32169
32172
  children: "Remove"
@@ -32200,7 +32203,7 @@ const s1 = (e) => {
32200
32203
  t && /* @__PURE__ */ X(
32201
32204
  "a",
32202
32205
  {
32203
- className: P(n, `${y}-cart-checkout-button`),
32206
+ className: C(n, `${y}-cart-checkout-button`),
32204
32207
  href: t,
32205
32208
  target: r ? "_blank" : "_self",
32206
32209
  rel: "noopener noreferrer",
@@ -32227,11 +32230,11 @@ const s1 = (e) => {
32227
32230
  mode: u,
32228
32231
  cart: {
32229
32232
  setQuantity: (g, b) => {
32230
- var w, D;
32233
+ var O, D;
32231
32234
  const A = m(g);
32232
32235
  if (!A) return;
32233
- const C = Math.max(1, (w = A.minQuantity) != null ? w : 1), O = (D = A.maxQuantity) != null ? D : 1 / 0;
32234
- p(A, Math.min(O, Math.max(C, Math.floor(b))));
32236
+ const P = Math.max(1, (O = A.minQuantity) != null ? O : 1), I = (D = A.maxQuantity) != null ? D : 1 / 0;
32237
+ p(A, Math.min(I, Math.max(P, Math.floor(b))));
32235
32238
  },
32236
32239
  remove: (g) => {
32237
32240
  const b = m(g);
@@ -32244,7 +32247,7 @@ const s1 = (e) => {
32244
32247
  payload: { cart: i4(t), productsToHighlight: n, readOnly: r },
32245
32248
  api: T
32246
32249
  };
32247
- return /* @__PURE__ */ X("div", { className: P(i, `${y}-cart`), children: [
32250
+ return /* @__PURE__ */ X("div", { className: C(i, `${y}-cart`), children: [
32248
32251
  /* @__PURE__ */ E(n1, { overrideName: "Cart", children: /* @__PURE__ */ E(Jn, { tagName: e, props: _, label: "Cart" }) }),
32249
32252
  /* @__PURE__ */ E(
32250
32253
  o1,
@@ -32278,9 +32281,9 @@ const s1 = (e) => {
32278
32281
  );
32279
32282
  const {
32280
32283
  items: A = [],
32281
- currencyCode: C = "USD",
32282
- subtotal: O,
32283
- total: w,
32284
+ currencyCode: P = "USD",
32285
+ subtotal: I,
32286
+ total: O,
32284
32287
  taxes: D,
32285
32288
  shippingCost: F,
32286
32289
  shippingDiscount: j,
@@ -32299,22 +32302,22 @@ const s1 = (e) => {
32299
32302
  return /* @__PURE__ */ X(
32300
32303
  "div",
32301
32304
  {
32302
- className: P(
32305
+ className: C(
32303
32306
  r,
32304
32307
  `${y}-cart`,
32305
32308
  m && `${y}-cart-busy`
32306
32309
  ),
32307
32310
  children: [
32308
- /* @__PURE__ */ X("div", { className: P(r, `${y}-cart-box`), children: [
32311
+ /* @__PURE__ */ X("div", { className: C(r, `${y}-cart-box`), children: [
32309
32312
  M && /* @__PURE__ */ X(
32310
32313
  "button",
32311
32314
  {
32312
32315
  type: "button",
32313
- className: P(r, `${y}-cart-summary`),
32316
+ className: C(r, `${y}-cart-summary`),
32314
32317
  "aria-expanded": a,
32315
32318
  onClick: () => u((S) => !S),
32316
32319
  children: [
32317
- /* @__PURE__ */ E("span", { className: P(r, `${y}-cart-summary-text`), children: /* @__PURE__ */ E(
32320
+ /* @__PURE__ */ E("span", { className: C(r, `${y}-cart-summary-text`), children: /* @__PURE__ */ E(
32318
32321
  Ti,
32319
32322
  {
32320
32323
  text: M,
@@ -32327,7 +32330,7 @@ const s1 = (e) => {
32327
32330
  /* @__PURE__ */ E(
32328
32331
  "span",
32329
32332
  {
32330
- className: P(r, `${y}-cart-summary-toggle`),
32333
+ className: C(r, `${y}-cart-summary-toggle`),
32331
32334
  "aria-hidden": "true",
32332
32335
  children: a ? /* @__PURE__ */ E(qm, {}) : /* @__PURE__ */ E(jm, {})
32333
32336
  }
@@ -32335,13 +32338,13 @@ const s1 = (e) => {
32335
32338
  ]
32336
32339
  }
32337
32340
  ),
32338
- a && /* @__PURE__ */ X("div", { className: P(r, `${y}-cart-expanded`), children: [
32339
- /* @__PURE__ */ X("div", { className: P(r, `${y}-cart-items-section`), children: [
32340
- /* @__PURE__ */ E("ul", { className: P(r, `${y}-cart-items`), children: A.map((S) => /* @__PURE__ */ E(
32341
+ a && /* @__PURE__ */ X("div", { className: C(r, `${y}-cart-expanded`), children: [
32342
+ /* @__PURE__ */ X("div", { className: C(r, `${y}-cart-items-section`), children: [
32343
+ /* @__PURE__ */ E("ul", { className: C(r, `${y}-cart-items`), children: A.map((S) => /* @__PURE__ */ E(
32341
32344
  o4,
32342
32345
  {
32343
32346
  item: S,
32344
- currencyCode: C,
32347
+ currencyCode: P,
32345
32348
  disabled: m,
32346
32349
  globalClassName: r,
32347
32350
  onRemove: T,
@@ -32352,7 +32355,7 @@ const s1 = (e) => {
32352
32355
  K.length > 0 && /* @__PURE__ */ E(
32353
32356
  "div",
32354
32357
  {
32355
- className: P(
32358
+ className: C(
32356
32359
  r,
32357
32360
  `${y}-cart-chips`,
32358
32361
  `${y}-cart-applied-coupons`
@@ -32369,13 +32372,13 @@ const s1 = (e) => {
32369
32372
  }
32370
32373
  )
32371
32374
  ] }),
32372
- /* @__PURE__ */ X("div", { className: P(r, `${y}-cart-totals`), children: [
32375
+ /* @__PURE__ */ X("div", { className: C(r, `${y}-cart-totals`), children: [
32373
32376
  /* @__PURE__ */ E(
32374
32377
  Rt,
32375
32378
  {
32376
32379
  label: "Subtotal",
32377
- value: O,
32378
- currencyCode: C,
32380
+ value: I,
32381
+ currencyCode: P,
32379
32382
  globalClassName: r,
32380
32383
  loading: !1
32381
32384
  }
@@ -32385,7 +32388,7 @@ const s1 = (e) => {
32385
32388
  {
32386
32389
  label: "Coupon",
32387
32390
  value: ee,
32388
- currencyCode: C,
32391
+ currencyCode: P,
32389
32392
  globalClassName: r,
32390
32393
  isDiscount: !0,
32391
32394
  loading: !1
@@ -32397,7 +32400,7 @@ const s1 = (e) => {
32397
32400
  label: "Promotions",
32398
32401
  badge: B[0],
32399
32402
  value: $,
32400
- currencyCode: C,
32403
+ currencyCode: P,
32401
32404
  globalClassName: r,
32402
32405
  isDiscount: !0,
32403
32406
  loading: !1
@@ -32408,7 +32411,7 @@ const s1 = (e) => {
32408
32411
  {
32409
32412
  label: "Shipping",
32410
32413
  value: F,
32411
- currencyCode: C,
32414
+ currencyCode: P,
32412
32415
  globalClassName: r,
32413
32416
  fallback: "TBD",
32414
32417
  loading: !1
@@ -32420,7 +32423,7 @@ const s1 = (e) => {
32420
32423
  label: "Shipping Discount",
32421
32424
  badge: k[0],
32422
32425
  value: j,
32423
- currencyCode: C,
32426
+ currencyCode: P,
32424
32427
  globalClassName: r,
32425
32428
  isDiscount: !0,
32426
32429
  loading: !1
@@ -32431,7 +32434,7 @@ const s1 = (e) => {
32431
32434
  {
32432
32435
  label: "Tax",
32433
32436
  value: D,
32434
- currencyCode: C,
32437
+ currencyCode: P,
32435
32438
  globalClassName: r,
32436
32439
  fallback: "TBD",
32437
32440
  loading: !1
@@ -32441,8 +32444,8 @@ const s1 = (e) => {
32441
32444
  Rt,
32442
32445
  {
32443
32446
  label: "Total",
32444
- value: w,
32445
- currencyCode: C,
32447
+ value: O,
32448
+ currencyCode: P,
32446
32449
  globalClassName: r,
32447
32450
  emphasized: !0,
32448
32451
  loading: !1
@@ -32451,12 +32454,12 @@ const s1 = (e) => {
32451
32454
  ] })
32452
32455
  ] })
32453
32456
  ] }),
32454
- /* @__PURE__ */ X("div", { className: P(r, `${y}-cart-coupon`), children: [
32455
- /* @__PURE__ */ X("div", { className: P(r, `${y}-cart-coupon-field`), children: [
32457
+ /* @__PURE__ */ X("div", { className: C(r, `${y}-cart-coupon`), children: [
32458
+ /* @__PURE__ */ X("div", { className: C(r, `${y}-cart-coupon-field`), children: [
32456
32459
  /* @__PURE__ */ E(
32457
32460
  "span",
32458
32461
  {
32459
- className: P(r, `${y}-cart-coupon-icon`),
32462
+ className: C(r, `${y}-cart-coupon-icon`),
32460
32463
  "aria-hidden": "true",
32461
32464
  children: /* @__PURE__ */ E(Ym, {})
32462
32465
  }
@@ -32465,7 +32468,7 @@ const s1 = (e) => {
32465
32468
  "input",
32466
32469
  {
32467
32470
  type: "text",
32468
- className: P(r, `${y}-cart-coupon-input`),
32471
+ className: C(r, `${y}-cart-coupon-input`),
32469
32472
  placeholder: "Enter coupon code",
32470
32473
  "aria-label": "Enter coupon code",
32471
32474
  value: c,
@@ -32481,7 +32484,7 @@ const s1 = (e) => {
32481
32484
  "button",
32482
32485
  {
32483
32486
  type: "button",
32484
- className: P(r, `${y}-cart-coupon-submit`),
32487
+ className: C(r, `${y}-cart-coupon-submit`),
32485
32488
  "aria-label": "Apply coupon",
32486
32489
  disabled: m || !c.trim(),
32487
32490
  onClick: se,
@@ -32498,7 +32501,7 @@ const s1 = (e) => {
32498
32501
  openLinksInNewTab: i
32499
32502
  }
32500
32503
  ),
32501
- /* @__PURE__ */ E("p", { className: P(r, `${y}-cart-footer`), children: z || "Shipping and taxes calculated at checkout." })
32504
+ /* @__PURE__ */ E("p", { className: C(r, `${y}-cart-footer`), children: z || "Shipping and taxes calculated at checkout." })
32502
32505
  ]
32503
32506
  }
32504
32507
  );
@@ -32509,15 +32512,15 @@ const s1 = (e) => {
32509
32512
  }) => {
32510
32513
  var s, o;
32511
32514
  const r = typeof e.originalSubtotal == "number" && typeof e.itemSubtotal == "number" && e.originalSubtotal > e.itemSubtotal, i = Gl(e.coupons);
32512
- return /* @__PURE__ */ X("li", { className: P(n, `${y}-cart-item`), children: [
32513
- e.imageUrl && /* @__PURE__ */ E("div", { className: P(n, `${y}-cart-item-image`), children: /* @__PURE__ */ E("img", { src: e.imageUrl, alt: e.name || "Product image", loading: "lazy" }) }),
32514
- /* @__PURE__ */ X("div", { className: P(n, `${y}-cart-item-details`), children: [
32515
- /* @__PURE__ */ E("p", { className: P(n, `${y}-cart-item-name`), children: e.name }),
32516
- /* @__PURE__ */ X("div", { className: P(n, `${y}-cart-item-attrs`), children: [
32515
+ return /* @__PURE__ */ X("li", { className: C(n, `${y}-cart-item`), children: [
32516
+ e.imageUrl && /* @__PURE__ */ E("div", { className: C(n, `${y}-cart-item-image`), children: /* @__PURE__ */ E("img", { src: e.imageUrl, alt: e.name || "Product image", loading: "lazy" }) }),
32517
+ /* @__PURE__ */ X("div", { className: C(n, `${y}-cart-item-details`), children: [
32518
+ /* @__PURE__ */ E("p", { className: C(n, `${y}-cart-item-name`), children: e.name }),
32519
+ /* @__PURE__ */ X("div", { className: C(n, `${y}-cart-item-attrs`), children: [
32517
32520
  ((s = e.variants) != null ? s : []).map((a) => /* @__PURE__ */ X(
32518
32521
  "p",
32519
32522
  {
32520
- className: P(n, `${y}-cart-item-attr`),
32523
+ className: C(n, `${y}-cart-item-attr`),
32521
32524
  children: [
32522
32525
  a.lbl,
32523
32526
  ": ",
@@ -32529,7 +32532,7 @@ const s1 = (e) => {
32529
32532
  ((o = e.promotions) != null ? o : []).map((a) => /* @__PURE__ */ X(
32530
32533
  "p",
32531
32534
  {
32532
- className: P(n, `${y}-cart-item-attr`),
32535
+ className: C(n, `${y}-cart-item-attr`),
32533
32536
  children: [
32534
32537
  "Promotion: ",
32535
32538
  a
@@ -32538,18 +32541,18 @@ const s1 = (e) => {
32538
32541
  a
32539
32542
  ))
32540
32543
  ] }),
32541
- i.length > 0 && /* @__PURE__ */ E("div", { className: P(n, `${y}-cart-chips`), children: i.map((a) => /* @__PURE__ */ E(Ta, { code: a, globalClassName: n }, a)) }),
32542
- /* @__PURE__ */ X("span", { className: P(n, `${y}-cart-item-price`), children: [
32544
+ i.length > 0 && /* @__PURE__ */ E("div", { className: C(n, `${y}-cart-chips`), children: i.map((a) => /* @__PURE__ */ E(Ta, { code: a, globalClassName: n }, a)) }),
32545
+ /* @__PURE__ */ X("span", { className: C(n, `${y}-cart-item-price`), children: [
32543
32546
  r && /* @__PURE__ */ E(
32544
32547
  "span",
32545
32548
  {
32546
- className: P(n, `${y}-cart-item-original-price`),
32549
+ className: C(n, `${y}-cart-item-original-price`),
32547
32550
  children: Rn(e.originalSubtotal, t)
32548
32551
  }
32549
32552
  ),
32550
- /* @__PURE__ */ E("span", { className: P(n, `${y}-cart-item-final-price`), children: Rn(e.itemSubtotal, t) })
32553
+ /* @__PURE__ */ E("span", { className: C(n, `${y}-cart-item-final-price`), children: Rn(e.itemSubtotal, t) })
32551
32554
  ] }),
32552
- /* @__PURE__ */ E("div", { className: P(n, `${y}-cart-item-footer`), children: /* @__PURE__ */ X("span", { className: P(n, `${y}-cart-item-qty`), children: [
32555
+ /* @__PURE__ */ E("div", { className: C(n, `${y}-cart-item-footer`), children: /* @__PURE__ */ X("span", { className: C(n, `${y}-cart-item-qty`), children: [
32553
32556
  "Qty: ",
32554
32557
  e.quantity
32555
32558
  ] }) })
@@ -32577,22 +32580,22 @@ const s1 = (e) => {
32577
32580
  promotionsDiscount: g,
32578
32581
  promotions: b = [],
32579
32582
  couponsDiscount: A,
32580
- bodyMessage: C,
32581
- footerMessage: O
32582
- } = e, w = i1(c, e.couponsApplied);
32583
- return /* @__PURE__ */ X("div", { className: P(t, `${y}-cart`), children: [
32584
- /* @__PURE__ */ X("div", { className: P(t, `${y}-cart-banner`), children: [
32583
+ bodyMessage: P,
32584
+ footerMessage: I
32585
+ } = e, O = i1(c, e.couponsApplied);
32586
+ return /* @__PURE__ */ X("div", { className: C(t, `${y}-cart`), children: [
32587
+ /* @__PURE__ */ X("div", { className: C(t, `${y}-cart-banner`), children: [
32585
32588
  /* @__PURE__ */ E(
32586
32589
  "span",
32587
32590
  {
32588
- className: P(t, `${y}-cart-banner-icon`),
32591
+ className: C(t, `${y}-cart-banner-icon`),
32589
32592
  "aria-hidden": "true",
32590
32593
  children: /* @__PURE__ */ E(F2, {})
32591
32594
  }
32592
32595
  ),
32593
- /* @__PURE__ */ E("p", { className: P(t, `${y}-cart-banner-text`), children: "Your order is confirmed!" })
32596
+ /* @__PURE__ */ E("p", { className: C(t, `${y}-cart-banner-text`), children: "Your order is confirmed!" })
32594
32597
  ] }),
32595
- /* @__PURE__ */ X("div", { className: P(t, `${y}-order-confirmation-meta`), children: [
32598
+ /* @__PURE__ */ X("div", { className: C(t, `${y}-order-confirmation-meta`), children: [
32596
32599
  /* @__PURE__ */ X("span", { children: [
32597
32600
  "Order No: ",
32598
32601
  a
@@ -32602,19 +32605,19 @@ const s1 = (e) => {
32602
32605
  l4(u)
32603
32606
  ] })
32604
32607
  ] }),
32605
- /* @__PURE__ */ X("div", { className: P(t, `${y}-cart-box`), children: [
32606
- C && /* @__PURE__ */ X(
32608
+ /* @__PURE__ */ X("div", { className: C(t, `${y}-cart-box`), children: [
32609
+ P && /* @__PURE__ */ X(
32607
32610
  "button",
32608
32611
  {
32609
32612
  type: "button",
32610
- className: P(t, `${y}-cart-summary`),
32613
+ className: C(t, `${y}-cart-summary`),
32611
32614
  "aria-expanded": i,
32612
32615
  onClick: () => s((D) => !D),
32613
32616
  children: [
32614
- /* @__PURE__ */ E("span", { className: P(t, `${y}-cart-summary-text`), children: /* @__PURE__ */ E(
32617
+ /* @__PURE__ */ E("span", { className: C(t, `${y}-cart-summary-text`), children: /* @__PURE__ */ E(
32615
32618
  Ti,
32616
32619
  {
32617
- text: C,
32620
+ text: P,
32618
32621
  globalClassName: t,
32619
32622
  showIsLoading: !1,
32620
32623
  openLinksInNewTab: n,
@@ -32624,7 +32627,7 @@ const s1 = (e) => {
32624
32627
  /* @__PURE__ */ E(
32625
32628
  "span",
32626
32629
  {
32627
- className: P(t, `${y}-cart-summary-toggle`),
32630
+ className: C(t, `${y}-cart-summary-toggle`),
32628
32631
  "aria-hidden": "true",
32629
32632
  children: i ? /* @__PURE__ */ E(qm, {}) : /* @__PURE__ */ E(jm, {})
32630
32633
  }
@@ -32632,8 +32635,8 @@ const s1 = (e) => {
32632
32635
  ]
32633
32636
  }
32634
32637
  ),
32635
- i && /* @__PURE__ */ X("div", { className: P(t, `${y}-cart-expanded`), children: [
32636
- /* @__PURE__ */ E("ul", { className: P(t, `${y}-cart-items`), children: c.map((D) => /* @__PURE__ */ E(
32638
+ i && /* @__PURE__ */ X("div", { className: C(t, `${y}-cart-expanded`), children: [
32639
+ /* @__PURE__ */ E("ul", { className: C(t, `${y}-cart-items`), children: c.map((D) => /* @__PURE__ */ E(
32637
32640
  c4,
32638
32641
  {
32639
32642
  item: D,
@@ -32642,18 +32645,18 @@ const s1 = (e) => {
32642
32645
  },
32643
32646
  D.itemId
32644
32647
  )) }),
32645
- w.length > 0 && /* @__PURE__ */ E(
32648
+ O.length > 0 && /* @__PURE__ */ E(
32646
32649
  "div",
32647
32650
  {
32648
- className: P(
32651
+ className: C(
32649
32652
  t,
32650
32653
  `${y}-cart-chips`,
32651
32654
  `${y}-cart-applied-coupons`
32652
32655
  ),
32653
- children: w.map((D) => /* @__PURE__ */ E(Ta, { code: D.code, globalClassName: t }, D.code))
32656
+ children: O.map((D) => /* @__PURE__ */ E(Ta, { code: D.code, globalClassName: t }, D.code))
32654
32657
  }
32655
32658
  ),
32656
- /* @__PURE__ */ X("div", { className: P(t, `${y}-cart-totals`), children: [
32659
+ /* @__PURE__ */ X("div", { className: C(t, `${y}-cart-totals`), children: [
32657
32660
  /* @__PURE__ */ E(
32658
32661
  Rt,
32659
32662
  {
@@ -32728,7 +32731,7 @@ const s1 = (e) => {
32728
32731
  ] })
32729
32732
  ] })
32730
32733
  ] }),
32731
- /* @__PURE__ */ E("p", { className: P(t, `${y}-cart-footer`), children: O || "Shipping and taxes calculated at checkout." })
32734
+ /* @__PURE__ */ E("p", { className: C(t, `${y}-cart-footer`), children: I || "Shipping and taxes calculated at checkout." })
32732
32735
  ] });
32733
32736
  }, f4 = ({ image: e, alt: t, globalClassName: n }) => {
32734
32737
  const [r, i] = Oe(e.src), [s, o] = Oe(!1), a = () => {
@@ -32737,7 +32740,7 @@ const s1 = (e) => {
32737
32740
  return /* @__PURE__ */ E(
32738
32741
  "img",
32739
32742
  {
32740
- className: P(n, `${y}-pdp-gallery__image`, {
32743
+ className: C(n, `${y}-pdp-gallery__image`, {
32741
32744
  [`${y}-pdp-gallery__image--loaded`]: s
32742
32745
  }),
32743
32746
  src: r,
@@ -32757,7 +32760,7 @@ const s1 = (e) => {
32757
32760
  return /* @__PURE__ */ X(
32758
32761
  Ml,
32759
32762
  {
32760
- className: P(n, `${y}-pdp-gallery`),
32763
+ className: C(n, `${y}-pdp-gallery`),
32761
32764
  slidesPerPage: 1,
32762
32765
  slidesPerMove: 1,
32763
32766
  slideCount: e.length,
@@ -32767,12 +32770,12 @@ const s1 = (e) => {
32767
32770
  /* @__PURE__ */ E(
32768
32771
  kl,
32769
32772
  {
32770
- className: P(n, `${y}-pdp-gallery__item-group`),
32773
+ className: C(n, `${y}-pdp-gallery__item-group`),
32771
32774
  children: e.map((i, s) => /* @__PURE__ */ E(
32772
32775
  Rl,
32773
32776
  {
32774
32777
  index: s,
32775
- className: P(n, `${y}-pdp-gallery__item`),
32778
+ className: C(n, `${y}-pdp-gallery__item`),
32776
32779
  children: /* @__PURE__ */ E(
32777
32780
  f4,
32778
32781
  {
@@ -32789,12 +32792,12 @@ const s1 = (e) => {
32789
32792
  r && /* @__PURE__ */ X(
32790
32793
  Cl,
32791
32794
  {
32792
- className: P(n, `${y}-pdp-gallery__control`),
32795
+ className: C(n, `${y}-pdp-gallery__control`),
32793
32796
  children: [
32794
32797
  /* @__PURE__ */ E(
32795
32798
  Dl,
32796
32799
  {
32797
- className: P(n, `${y}-pdp-gallery__prev-trigger`),
32800
+ className: C(n, `${y}-pdp-gallery__prev-trigger`),
32798
32801
  "aria-label": "Previous image",
32799
32802
  children: /* @__PURE__ */ E(pE, { size: "16px" })
32800
32803
  }
@@ -32802,7 +32805,7 @@ const s1 = (e) => {
32802
32805
  /* @__PURE__ */ E(
32803
32806
  Ll,
32804
32807
  {
32805
- className: P(n, `${y}-pdp-gallery__next-trigger`),
32808
+ className: C(n, `${y}-pdp-gallery__next-trigger`),
32806
32809
  "aria-label": "Next image",
32807
32810
  children: /* @__PURE__ */ E(mE, { size: "16px" })
32808
32811
  }
@@ -32813,12 +32816,12 @@ const s1 = (e) => {
32813
32816
  r && /* @__PURE__ */ E(
32814
32817
  vl,
32815
32818
  {
32816
- className: P(n, `${y}-pdp-gallery__indicator-group`),
32819
+ className: C(n, `${y}-pdp-gallery__indicator-group`),
32817
32820
  children: Array.from({ length: e.length }, (i, s) => /* @__PURE__ */ E(
32818
32821
  Pl,
32819
32822
  {
32820
32823
  index: s,
32821
- className: P(n, `${y}-pdp-gallery__indicator`),
32824
+ className: C(n, `${y}-pdp-gallery__indicator`),
32822
32825
  "aria-label": `Go to image ${s + 1}`
32823
32826
  },
32824
32827
  s
@@ -32998,11 +33001,11 @@ const s1 = (e) => {
32998
33001
  Ie(() => {
32999
33002
  d(op(u));
33000
33003
  }, [u, e.id]);
33001
- const p = S4(u.vmat, l), h = (Xe = (we = u.quantity) == null ? void 0 : we.minQuantity) != null ? Xe : 1, m = (je = (tt = u.quantity) == null ? void 0 : tt.maxQuantity) != null ? je : Number.POSITIVE_INFINITY, T = (Qe = (Je = u.quantity) == null ? void 0 : Je.increment) != null ? Qe : 1, [_, g] = Oe(h), [b, A] = Oe(!1), C = Q(!1);
33004
+ const p = S4(u.vmat, l), h = (Xe = (we = u.quantity) == null ? void 0 : we.minQuantity) != null ? Xe : 1, m = (je = (tt = u.quantity) == null ? void 0 : tt.maxQuantity) != null ? je : Number.POSITIVE_INFINITY, T = (Qe = (Je = u.quantity) == null ? void 0 : Je.increment) != null ? Qe : 1, [_, g] = Oe(h), [b, A] = Oe(!1), P = Q(!1);
33002
33005
  Ie(() => {
33003
- b && (o ? C.current = !0 : C.current && (C.current = !1, A(!1)));
33006
+ b && (o ? P.current = !0 : P.current && (P.current = !1, A(!1)));
33004
33007
  }, [b, o]);
33005
- const O = c.find((he) => io(he.id)), w = c.filter((he) => !io(he.id)), D = O ? l[O.id] : void 0, F = ze(() => b4(u, D), [u, D]), j = ze(
33008
+ const I = c.find((he) => io(he.id)), O = c.filter((he) => !io(he.id)), D = I ? l[I.id] : void 0, F = ze(() => b4(u, D), [u, D]), j = ze(
33006
33009
  () => N4(u, l),
33007
33010
  [u, l]
33008
33011
  ), k = sp(u, l), [$, B] = Oe(_), ee = Q(k), M = ee.current === k ? $ : _;
@@ -33052,38 +33055,38 @@ const s1 = (e) => {
33052
33055
  quantity: _,
33053
33056
  variants: Ee
33054
33057
  });
33055
- }, Z = !p || _ - T < h, fe = !p || _ + T > m, I = (he) => {
33058
+ }, Z = !p || _ - T < h, fe = !p || _ + T > m, w = (he) => {
33056
33059
  var de;
33057
33060
  const Ee = l[he.id];
33058
33061
  return (de = he.opts.find((be) => be.val === Ee)) == null ? void 0 : de.name;
33059
33062
  }, ye = () => g((he) => Math.max(h, he - T)), Be = () => g((he) => Math.min(m, he + T)), Ce = (he) => /* @__PURE__ */ X(
33060
33063
  "div",
33061
33064
  {
33062
- className: P(t, `${y}-msg-pdp__variant`),
33065
+ className: C(t, `${y}-msg-pdp__variant`),
33063
33066
  children: [
33064
- /* @__PURE__ */ X("div", { className: P(t, `${y}-msg-pdp__variant-label`), children: [
33067
+ /* @__PURE__ */ X("div", { className: C(t, `${y}-msg-pdp__variant-label`), children: [
33065
33068
  /* @__PURE__ */ E(
33066
33069
  "span",
33067
33070
  {
33068
33071
  id: `variant-label-${he.id}`,
33069
- className: P(t, `${y}-msg-pdp__variant-name`),
33072
+ className: C(t, `${y}-msg-pdp__variant-name`),
33070
33073
  children: he.lbl || he.id
33071
33074
  }
33072
33075
  ),
33073
- I(he) && /* @__PURE__ */ E("span", { className: P(t, `${y}-msg-pdp__variant-value`), children: I(he) })
33076
+ w(he) && /* @__PURE__ */ E("span", { className: C(t, `${y}-msg-pdp__variant-value`), children: w(he) })
33074
33077
  ] }),
33075
33078
  /* @__PURE__ */ E(
33076
33079
  "div",
33077
33080
  {
33078
33081
  role: "radiogroup",
33079
33082
  "aria-labelledby": `variant-label-${he.id}`,
33080
- className: P(t, `${y}-msg-pdp__chips`),
33083
+ className: C(t, `${y}-msg-pdp__chips`),
33081
33084
  children: he.opts.map((Ee) => {
33082
33085
  const de = so(u.vmat, he.id, Ee.val, l), be = l[he.id] === Ee.val;
33083
33086
  return /* @__PURE__ */ X(
33084
33087
  "label",
33085
33088
  {
33086
- className: P(`${y}-msg-pdp__chip`, {
33089
+ className: C(`${y}-msg-pdp__chip`, {
33087
33090
  selected: be,
33088
33091
  unavailable: !de
33089
33092
  }),
@@ -33111,30 +33114,30 @@ const s1 = (e) => {
33111
33114
  ]
33112
33115
  },
33113
33116
  he.id
33114
- ), Te = (he) => /* @__PURE__ */ X("div", { className: P(t, `${y}-msg-pdp__variant`), children: [
33115
- /* @__PURE__ */ X("div", { className: P(t, `${y}-msg-pdp__variant-label`), children: [
33117
+ ), Te = (he) => /* @__PURE__ */ X("div", { className: C(t, `${y}-msg-pdp__variant`), children: [
33118
+ /* @__PURE__ */ X("div", { className: C(t, `${y}-msg-pdp__variant-label`), children: [
33116
33119
  /* @__PURE__ */ E(
33117
33120
  "span",
33118
33121
  {
33119
33122
  id: `variant-label-${he.id}`,
33120
- className: P(t, `${y}-msg-pdp__variant-name`),
33123
+ className: C(t, `${y}-msg-pdp__variant-name`),
33121
33124
  children: he.lbl || "Color"
33122
33125
  }
33123
33126
  ),
33124
- I(he) && /* @__PURE__ */ E("span", { className: P(t, `${y}-msg-pdp__variant-value`), children: I(he) })
33127
+ w(he) && /* @__PURE__ */ E("span", { className: C(t, `${y}-msg-pdp__variant-value`), children: w(he) })
33125
33128
  ] }),
33126
33129
  /* @__PURE__ */ E(
33127
33130
  "div",
33128
33131
  {
33129
33132
  role: "radiogroup",
33130
33133
  "aria-labelledby": `variant-label-${he.id}`,
33131
- className: P(t, `${y}-msg-pdp__swatches`),
33134
+ className: C(t, `${y}-msg-pdp__swatches`),
33132
33135
  children: he.opts.map((Ee) => {
33133
33136
  const de = so(u.vmat, he.id, Ee.val, l), be = l[he.id] === Ee.val, st = y4(u, Ee.val);
33134
33137
  return st ? /* @__PURE__ */ X(
33135
33138
  "label",
33136
33139
  {
33137
- className: P(`${y}-msg-pdp__swatch`, {
33140
+ className: C(`${y}-msg-pdp__swatch`, {
33138
33141
  selected: be,
33139
33142
  unavailable: !de
33140
33143
  }),
@@ -33155,7 +33158,7 @@ const s1 = (e) => {
33155
33158
  /* @__PURE__ */ E(
33156
33159
  "img",
33157
33160
  {
33158
- className: P(t, `${y}-msg-pdp__swatch-image`),
33161
+ className: C(t, `${y}-msg-pdp__swatch-image`),
33159
33162
  src: st,
33160
33163
  alt: Ee.name || Ee.val,
33161
33164
  loading: "lazy"
@@ -33167,7 +33170,7 @@ const s1 = (e) => {
33167
33170
  ) : /* @__PURE__ */ X(
33168
33171
  "label",
33169
33172
  {
33170
- className: P(`${y}-msg-pdp__chip`, {
33173
+ className: C(`${y}-msg-pdp__chip`, {
33171
33174
  selected: be,
33172
33175
  unavailable: !de
33173
33176
  }),
@@ -33193,8 +33196,8 @@ const s1 = (e) => {
33193
33196
  }
33194
33197
  )
33195
33198
  ] });
33196
- return /* @__PURE__ */ E("div", { className: P(t, `${y}-msg-pdp`), children: /* @__PURE__ */ X("div", { className: P(t, `${y}-msg-pdp__card`), children: [
33197
- /* @__PURE__ */ E("div", { className: P(t, `${y}-msg-pdp__gallery`), children: /* @__PURE__ */ E(
33199
+ return /* @__PURE__ */ E("div", { className: C(t, `${y}-msg-pdp`), children: /* @__PURE__ */ X("div", { className: C(t, `${y}-msg-pdp__card`), children: [
33200
+ /* @__PURE__ */ E("div", { className: C(t, `${y}-msg-pdp__gallery`), children: /* @__PURE__ */ E(
33198
33201
  h4,
33199
33202
  {
33200
33203
  images: F,
@@ -33202,14 +33205,14 @@ const s1 = (e) => {
33202
33205
  globalClassName: t
33203
33206
  }
33204
33207
  ) }),
33205
- /* @__PURE__ */ X("div", { className: P(t, `${y}-msg-pdp__content`), children: [
33208
+ /* @__PURE__ */ X("div", { className: C(t, `${y}-msg-pdp__content`), children: [
33206
33209
  u.slugUrl && !r ? /* @__PURE__ */ E(
33207
33210
  "a",
33208
33211
  {
33209
33212
  href: u.slugUrl,
33210
33213
  target: n ? "_blank" : "_self",
33211
33214
  rel: "noopener noreferrer",
33212
- className: P(t, `${y}-msg-pdp__title-link`),
33215
+ className: C(t, `${y}-msg-pdp__title-link`),
33213
33216
  "aria-label": `Go to product page for ${u.name}`,
33214
33217
  onClick: (he) => Ea({
33215
33218
  event: he,
@@ -33220,7 +33223,7 @@ const s1 = (e) => {
33220
33223
  }),
33221
33224
  children: u.name
33222
33225
  }
33223
- ) : /* @__PURE__ */ E("p", { className: P(t, `${y}-msg-pdp__title`), children: u.name }),
33226
+ ) : /* @__PURE__ */ E("p", { className: C(t, `${y}-msg-pdp__title`), children: u.name }),
33224
33227
  /* @__PURE__ */ E("div", { "aria-live": "polite", "aria-atomic": "true", children: /* @__PURE__ */ E(
33225
33228
  zl,
33226
33229
  {
@@ -33232,7 +33235,7 @@ const s1 = (e) => {
33232
33235
  fontSize: "14px"
33233
33236
  }
33234
33237
  ) }),
33235
- u.dscr && /* @__PURE__ */ E("div", { className: P(t, `${y}-msg-pdp__description`), children: /* @__PURE__ */ E(
33238
+ u.dscr && /* @__PURE__ */ E("div", { className: C(t, `${y}-msg-pdp__description`), children: /* @__PURE__ */ E(
33236
33239
  Ti,
33237
33240
  {
33238
33241
  globalClassName: t,
@@ -33241,25 +33244,25 @@ const s1 = (e) => {
33241
33244
  onLinkClick: K
33242
33245
  }
33243
33246
  ) }),
33244
- O && Te(O),
33245
- w.map(Ce),
33246
- r && /* @__PURE__ */ X("div", { className: P(t, `${y}-msg-pdp__variant`), children: [
33247
+ I && Te(I),
33248
+ O.map(Ce),
33249
+ r && /* @__PURE__ */ X("div", { className: C(t, `${y}-msg-pdp__variant`), children: [
33247
33250
  /* @__PURE__ */ X(
33248
33251
  "div",
33249
33252
  {
33250
- className: P(t, `${y}-msg-pdp__variant-label`),
33253
+ className: C(t, `${y}-msg-pdp__variant-label`),
33251
33254
  children: [
33252
33255
  /* @__PURE__ */ E(
33253
33256
  "span",
33254
33257
  {
33255
- className: P(t, `${y}-msg-pdp__variant-name`),
33258
+ className: C(t, `${y}-msg-pdp__variant-name`),
33256
33259
  children: "Quantity"
33257
33260
  }
33258
33261
  ),
33259
33262
  /* @__PURE__ */ E(
33260
33263
  "span",
33261
33264
  {
33262
- className: P(
33265
+ className: C(
33263
33266
  t,
33264
33267
  `${y}-msg-pdp__variant-value`
33265
33268
  ),
@@ -33269,7 +33272,7 @@ const s1 = (e) => {
33269
33272
  ]
33270
33273
  }
33271
33274
  ),
33272
- /* @__PURE__ */ X("div", { className: P(t, `${y}-msg-pdp__stepper`), children: [
33275
+ /* @__PURE__ */ X("div", { className: C(t, `${y}-msg-pdp__stepper`), children: [
33273
33276
  /* @__PURE__ */ E(
33274
33277
  tn,
33275
33278
  {
@@ -33283,7 +33286,7 @@ const s1 = (e) => {
33283
33286
  /* @__PURE__ */ E(
33284
33287
  "span",
33285
33288
  {
33286
- className: P(t, `${y}-msg-pdp__quantity`),
33289
+ className: C(t, `${y}-msg-pdp__quantity`),
33287
33290
  children: _
33288
33291
  }
33289
33292
  ),
@@ -33299,7 +33302,7 @@ const s1 = (e) => {
33299
33302
  )
33300
33303
  ] })
33301
33304
  ] }),
33302
- r && /* @__PURE__ */ X("div", { className: P(t, `${y}-msg-pdp__actions`), children: [
33305
+ r && /* @__PURE__ */ X("div", { className: C(t, `${y}-msg-pdp__actions`), children: [
33303
33306
  ne && /* @__PURE__ */ E(
33304
33307
  r1,
33305
33308
  {
@@ -33343,7 +33346,7 @@ const s1 = (e) => {
33343
33346
  );
33344
33347
  if (!e.length) return null;
33345
33348
  const l = `auto repeat(${e.length}, 1fr)`, d = `${90 + e.length * 140}px`;
33346
- return /* @__PURE__ */ E("div", { className: P(n, `${y}-product-comparison`), children: /* @__PURE__ */ X(
33349
+ return /* @__PURE__ */ E("div", { className: C(n, `${y}-product-comparison`), children: /* @__PURE__ */ X(
33347
33350
  "div",
33348
33351
  {
33349
33352
  className: `${y}-product-comparison__grid`,
@@ -33352,7 +33355,7 @@ const s1 = (e) => {
33352
33355
  /* @__PURE__ */ X("div", { className: `${y}-product-comparison__header`, children: [
33353
33356
  /* @__PURE__ */ E("div", { className: `${y}-product-comparison__header-spacer` }),
33354
33357
  e.map((p) => {
33355
- var T, _, g, b, A, C, O;
33358
+ var T, _, g, b, A, P, I;
33356
33359
  const h = p.imageUrl ? ao(p.baseUrl, p.imageUrl) : void 0, m = $l(
33357
33360
  p.promotions,
33358
33361
  (T = p.extendedData) == null ? void 0 : T.productPromotions
@@ -33360,7 +33363,7 @@ const s1 = (e) => {
33360
33363
  return /* @__PURE__ */ X(
33361
33364
  "div",
33362
33365
  {
33363
- className: P(
33366
+ className: C(
33364
33367
  n,
33365
33368
  `${y}-product-comparison__product-col`
33366
33369
  ),
@@ -33368,7 +33371,7 @@ const s1 = (e) => {
33368
33371
  h && /* @__PURE__ */ E(
33369
33372
  "img",
33370
33373
  {
33371
- className: P(
33374
+ className: C(
33372
33375
  n,
33373
33376
  `${y}-product-comparison__image`
33374
33377
  ),
@@ -33383,14 +33386,14 @@ const s1 = (e) => {
33383
33386
  href: p.slugUrl,
33384
33387
  target: r ? "_blank" : "_self",
33385
33388
  rel: "noopener",
33386
- className: P(
33389
+ className: C(
33387
33390
  n,
33388
33391
  `${y}-product-comparison__name`,
33389
33392
  `${y}-product-comparison__name-link`
33390
33393
  ),
33391
33394
  "aria-label": `Go to product page for ${p.name}`,
33392
- onClick: (w) => Ea({
33393
- event: w,
33395
+ onClick: (O) => Ea({
33396
+ event: O,
33394
33397
  href: p.slugUrl,
33395
33398
  openLinksInNewTab: r,
33396
33399
  isCartMgmtSupported: i,
@@ -33401,7 +33404,7 @@ const s1 = (e) => {
33401
33404
  ) : /* @__PURE__ */ E(
33402
33405
  "span",
33403
33406
  {
33404
- className: P(
33407
+ className: C(
33405
33408
  n,
33406
33409
  `${y}-product-comparison__name`
33407
33410
  ),
@@ -33413,7 +33416,7 @@ const s1 = (e) => {
33413
33416
  {
33414
33417
  globalClassName: n,
33415
33418
  retailPrice: (b = (_ = p.pr) == null ? void 0 : _.orig) != null ? b : (g = p.pr) == null ? void 0 : g.cur,
33416
- discountPrice: (O = m != null ? m : (A = p.pr) == null ? void 0 : A.prom) != null ? O : (C = p.pr) == null ? void 0 : C.cur,
33419
+ discountPrice: (I = m != null ? m : (A = p.pr) == null ? void 0 : A.prom) != null ? I : (P = p.pr) == null ? void 0 : P.cur,
33417
33420
  currencyCode: p.ccy,
33418
33421
  fontSize: "0.875rem"
33419
33422
  }
@@ -33428,7 +33431,7 @@ const s1 = (e) => {
33428
33431
  /* @__PURE__ */ E(
33429
33432
  "div",
33430
33433
  {
33431
- className: P(
33434
+ className: C(
33432
33435
  n,
33433
33436
  `${y}-product-comparison__row-label`
33434
33437
  ),
@@ -33438,7 +33441,7 @@ const s1 = (e) => {
33438
33441
  e.map((h, m) => /* @__PURE__ */ E(
33439
33442
  "div",
33440
33443
  {
33441
- className: P(
33444
+ className: C(
33442
33445
  n,
33443
33446
  `${y}-product-comparison__row-value`
33444
33447
  ),
@@ -33484,7 +33487,7 @@ const s1 = (e) => {
33484
33487
  [e.response]
33485
33488
  ), T = (_) => Kn({ event: _, openLinksInNewTab: r, onNavigate: l });
33486
33489
  return /* @__PURE__ */ E(Cn, { children: m.map((_, g) => {
33487
- var b, A, C, O, w, D, F, j, k, $, B, ee, M, z, ne, G, K, se, S, Z, fe, I, ye, Be, Ce, Te;
33490
+ var b, A, P, I, O, D, F, j, k, $, B, ee, M, z, ne, G, K, se, S, Z, fe, w, ye, Be, Ce, Te;
33488
33491
  switch (_.type) {
33489
33492
  case "markdown": {
33490
33493
  const Ae = (A = (b = _.data) == null ? void 0 : b.content) != null ? A : "";
@@ -33497,14 +33500,14 @@ const s1 = (e) => {
33497
33500
  showIsLoading: !1,
33498
33501
  onLinkClick: T
33499
33502
  },
33500
- `${_.type}-${(C = _.index) != null ? C : g}`
33503
+ `${_.type}-${(P = _.index) != null ? P : g}`
33501
33504
  );
33502
33505
  }
33503
33506
  case "product_carousel":
33504
33507
  return /* @__PURE__ */ E(
33505
33508
  WD,
33506
33509
  {
33507
- title: (w = (O = _.data) == null ? void 0 : O.title) != null ? w : "",
33510
+ title: (O = (I = _.data) == null ? void 0 : I.title) != null ? O : "",
33508
33511
  products: (F = (D = _.data) == null ? void 0 : D.products) != null ? F : [],
33509
33512
  globalClassName: n,
33510
33513
  openLinksInNewTab: r,
@@ -33561,7 +33564,7 @@ const s1 = (e) => {
33561
33564
  openLinksInNewTab: r,
33562
33565
  isWidgetStandalone: i
33563
33566
  },
33564
- `${_.type}-${(I = _.index) != null ? I : g}`
33567
+ `${_.type}-${(w = _.index) != null ? w : g}`
33565
33568
  ) : null;
33566
33569
  }
33567
33570
  case "tool_results": {
@@ -33612,7 +33615,7 @@ class d1 extends pp {
33612
33615
  Ye(!0, "error", "Message content threw during render:", t, n.componentStack);
33613
33616
  }
33614
33617
  render() {
33615
- return this.state.hasError ? /* @__PURE__ */ E("p", { className: P(this.props.globalClassName, `${y}-reset-message`), children: "Oops, I had trouble displaying this response." }) : this.props.children;
33618
+ return this.state.hasError ? /* @__PURE__ */ E("p", { className: C(this.props.globalClassName, `${y}-reset-message`), children: "Oops, I had trouble displaying this response." }) : this.props.children;
33616
33619
  }
33617
33620
  }
33618
33621
  const P4 = ({
@@ -33624,7 +33627,7 @@ const P4 = ({
33624
33627
  return IS(e.content) ? (r == null || r.debug("Omitting structured user message from transcript", e.content), null) : /* @__PURE__ */ E(
33625
33628
  "div",
33626
33629
  {
33627
- className: P(
33630
+ className: C(
33628
33631
  t,
33629
33632
  `${y}-message`,
33630
33633
  n ? "standalone" : "embedded"
@@ -33632,7 +33635,7 @@ const P4 = ({
33632
33635
  children: /* @__PURE__ */ E(
33633
33636
  "div",
33634
33637
  {
33635
- className: P(
33638
+ className: C(
33636
33639
  t,
33637
33640
  `${y}-user-message`,
33638
33641
  n ? "standalone" : "embedded"
@@ -33640,7 +33643,7 @@ const P4 = ({
33640
33643
  children: /* @__PURE__ */ X(
33641
33644
  "div",
33642
33645
  {
33643
- className: P(
33646
+ className: C(
33644
33647
  t,
33645
33648
  `${y}-user-message-row`,
33646
33649
  n ? "standalone" : "embedded"
@@ -33649,7 +33652,7 @@ const P4 = ({
33649
33652
  /* @__PURE__ */ E(
33650
33653
  "span",
33651
33654
  {
33652
- className: P(
33655
+ className: C(
33653
33656
  t,
33654
33657
  `${y}-message-icon user-message-icon`,
33655
33658
  n ? "standalone" : "embedded"
@@ -33660,7 +33663,7 @@ const P4 = ({
33660
33663
  /* @__PURE__ */ X(
33661
33664
  "div",
33662
33665
  {
33663
- className: P(
33666
+ className: C(
33664
33667
  t,
33665
33668
  `${y}-user-message-body`,
33666
33669
  n ? "standalone" : "embedded"
@@ -33671,13 +33674,13 @@ const P4 = ({
33671
33674
  {
33672
33675
  src: e.attachmentImageUrl,
33673
33676
  alt: e.content || "Attachment",
33674
- className: P(t, `${y}-user-message-image`)
33677
+ className: C(t, `${y}-user-message-image`)
33675
33678
  }
33676
33679
  ),
33677
33680
  e.content && /* @__PURE__ */ E(
33678
33681
  "p",
33679
33682
  {
33680
- className: P(
33683
+ className: C(
33681
33684
  t,
33682
33685
  `${y}-user-message-text`,
33683
33686
  n ? "standalone" : "embedded"
@@ -33758,7 +33761,7 @@ const R4 = ({
33758
33761
  return /* @__PURE__ */ E(
33759
33762
  "div",
33760
33763
  {
33761
- className: P(
33764
+ className: C(
33762
33765
  t,
33763
33766
  `${y}-message-group`,
33764
33767
  v4((c = e.sender) == null ? void 0 : c.role),
@@ -33789,12 +33792,12 @@ const R4 = ({
33789
33792
  return /* @__PURE__ */ E(
33790
33793
  "div",
33791
33794
  {
33792
- className: P(
33795
+ className: C(
33793
33796
  t,
33794
33797
  `${y}-message`,
33795
33798
  r ? "standalone" : "embedded"
33796
33799
  ),
33797
- children: /* @__PURE__ */ E("p", { className: P(t, `${y}-reset-message`), children: e.content })
33800
+ children: /* @__PURE__ */ E("p", { className: C(t, `${y}-reset-message`), children: e.content })
33798
33801
  }
33799
33802
  );
33800
33803
  }
@@ -33806,19 +33809,19 @@ const R4 = ({
33806
33809
  }) => /* @__PURE__ */ X(
33807
33810
  "div",
33808
33811
  {
33809
- className: P(
33812
+ className: C(
33810
33813
  n,
33811
33814
  `${y}-send-error`,
33812
33815
  r ? "standalone" : "embedded"
33813
33816
  ),
33814
33817
  role: "alert",
33815
33818
  children: [
33816
- /* @__PURE__ */ E("span", { className: P(n, `${y}-send-error-text`), children: e }),
33819
+ /* @__PURE__ */ E("span", { className: C(n, `${y}-send-error-text`), children: e }),
33817
33820
  /* @__PURE__ */ X(
33818
33821
  "button",
33819
33822
  {
33820
33823
  type: "button",
33821
- className: P(n, `${y}-retry-button`),
33824
+ className: C(n, `${y}-retry-button`),
33822
33825
  onClick: t,
33823
33826
  children: [
33824
33827
  /* @__PURE__ */ E(z2, { "aria-hidden": "true" }),
@@ -33828,11 +33831,11 @@ const R4 = ({
33828
33831
  )
33829
33832
  ]
33830
33833
  }
33831
- ), L4 = ({ globalClassName: e, onClick: t }) => /* @__PURE__ */ E("div", { className: P(e, `${y}-jump-to-latest`), children: /* @__PURE__ */ E(
33834
+ ), L4 = ({ globalClassName: e, onClick: t }) => /* @__PURE__ */ E("div", { className: C(e, `${y}-jump-to-latest`), children: /* @__PURE__ */ E(
33832
33835
  "button",
33833
33836
  {
33834
33837
  type: "button",
33835
- className: P(e, `${y}-jump-to-latest-button`),
33838
+ className: C(e, `${y}-jump-to-latest-button`),
33836
33839
  "aria-label": "Jump to latest message",
33837
33840
  title: "Jump to latest message",
33838
33841
  onClick: t,
@@ -33874,7 +33877,7 @@ const R4 = ({
33874
33877
  b.current = n.length > 0;
33875
33878
  const A = Q(!1);
33876
33879
  A.current = (($ = t[t.length - 1]) == null ? void 0 : $.restored) === !0;
33877
- const [C, O] = Oe(!1), w = me((B = "smooth") => {
33880
+ const [P, I] = Oe(!1), O = me((B = "smooth") => {
33878
33881
  var z;
33879
33882
  const ee = (z = u.current) != null ? z : zs(a.current);
33880
33883
  if (!ee) return;
@@ -33883,14 +33886,14 @@ const R4 = ({
33883
33886
  }, []), D = me(() => {
33884
33887
  const B = u.current;
33885
33888
  if (!B || B.clientHeight === 0) {
33886
- B || O(!1);
33889
+ B || I(!1);
33887
33890
  return;
33888
33891
  }
33889
- O(!ap(B));
33892
+ I(!ap(B));
33890
33893
  }, []), F = me(() => {
33891
33894
  const B = u.current;
33892
33895
  if (!B) {
33893
- c.current = !0, O(!1);
33896
+ c.current = !0, I(!1);
33894
33897
  return;
33895
33898
  }
33896
33899
  B.clientHeight !== 0 && (c.current = ap(B), D());
@@ -33899,7 +33902,7 @@ const R4 = ({
33899
33902
  const B = m.current;
33900
33903
  if (B == null) return;
33901
33904
  const ee = zs(a.current);
33902
- u.current = ee, ee && (ee.scrollTop = B, c.current = !1, O(!0));
33905
+ u.current = ee, ee && (ee.scrollTop = B, c.current = !1, I(!0));
33903
33906
  }, []), oo(() => {
33904
33907
  const B = a.current;
33905
33908
  return () => {
@@ -33932,9 +33935,9 @@ const R4 = ({
33932
33935
  B.addEventListener("scroll", z, { passive: !0 }), B.addEventListener("scrollend", M), B.addEventListener("wheel", ne, { passive: !0 }), B.addEventListener("touchstart", ne, { passive: !0 });
33933
33936
  const G = () => {
33934
33937
  if (l.current) return;
33935
- const S = p.current, Z = !S, fe = c.current, I = A.current, ye = g.current, Be = b.current;
33936
- if (fe && (ye || I || Z)) {
33937
- w(Be && S ? "smooth" : "auto");
33938
+ const S = p.current, Z = !S, fe = c.current, w = A.current, ye = g.current, Be = b.current;
33939
+ if (fe && (ye || w || Z)) {
33940
+ O(Be && S ? "smooth" : "auto");
33938
33941
  return;
33939
33942
  }
33940
33943
  F();
@@ -33944,11 +33947,11 @@ const R4 = ({
33944
33947
  return se.observe(B, { childList: !0, subtree: !0 }), () => {
33945
33948
  ee(), B.removeEventListener("scroll", z), B.removeEventListener("scrollend", M), B.removeEventListener("wheel", ne), B.removeEventListener("touchstart", ne), K.disconnect(), se.disconnect();
33946
33949
  };
33947
- }, [w, D, F]), Ie(() => {
33948
- m.current == null && w("auto");
33949
- }, [w]), Ie(() => {
33950
- s && m.current == null && w("auto");
33951
- }, [s, w]), Ie(() => {
33950
+ }, [O, D, F]), Ie(() => {
33951
+ m.current == null && O("auto");
33952
+ }, [O]), Ie(() => {
33953
+ s && m.current == null && O("auto");
33954
+ }, [s, O]), Ie(() => {
33952
33955
  var Z;
33953
33956
  const B = t[t.length - 1], ee = (Z = B == null ? void 0 : B.id) != null ? Z : null, M = ee !== h.current;
33954
33957
  h.current = ee;
@@ -33956,17 +33959,17 @@ const R4 = ({
33956
33959
  ne && (p.current = !0);
33957
33960
  const G = c.current, K = t.length > 0, se = !p.current && K;
33958
33961
  if (G && (e || z || se)) {
33959
- w(z || se ? "auto" : "smooth");
33962
+ O(z || se ? "auto" : "smooth");
33960
33963
  return;
33961
33964
  }
33962
33965
  if (M && ne) {
33963
- w("smooth");
33966
+ O("smooth");
33964
33967
  return;
33965
33968
  }
33966
33969
  F();
33967
- }, [t, e, w, F]), Ie(() => {
33970
+ }, [t, e, O, F]), Ie(() => {
33968
33971
  if (e && c.current) {
33969
- w(p.current ? "smooth" : "auto");
33972
+ O(p.current ? "smooth" : "auto");
33970
33973
  return;
33971
33974
  }
33972
33975
  F();
@@ -33975,9 +33978,9 @@ const R4 = ({
33975
33978
  r,
33976
33979
  i,
33977
33980
  e,
33978
- w,
33981
+ O,
33979
33982
  F
33980
- ]), { endRef: a, showJumpToLatest: C, scrollToLatest: w };
33983
+ ]), { endRef: a, showJumpToLatest: P, scrollToLatest: O };
33981
33984
  }, $4 = 4e3, up = (e) => (typeof e == "string" ? e : "").replace(/<[^>]*>/g, " ").replace(/!\[([^\]]*)\]\([^)]*\)/g, "$1").replace(/\[([^\]]+)\]\([^)]*\)/g, "$1").replace(/[`*_~#>|]+/g, " ").replace(/\s+/g, " ").trim().slice(0, $4), Mi = "Assistant response available", z4 = (e) => {
33982
33985
  if (typeof e != "object" || e === null) return "";
33983
33986
  const t = e;
@@ -34055,7 +34058,7 @@ const R4 = ({
34055
34058
  error: h,
34056
34059
  isOpen: t,
34057
34060
  scrollSnapshotRef: n
34058
- }), C = a.length > 0, O = u.some(L_), w = a[a.length - 1], D = w ? _m(w.content, "suggestions") : !1, F = C && (l || c) && !O && !D, j = p === "reconnecting" && !F, k = p === "error";
34061
+ }), P = a.length > 0, I = u.some(L_), O = a[a.length - 1], D = O ? _m(O.content, "suggestions") : !1, F = P && (l || c) && !I && !D, j = p === "reconnecting" && !F, k = p === "error";
34059
34062
  let $ = null;
34060
34063
  k ? $ = {
34061
34064
  message: h != null ? h : Y4,
@@ -34070,7 +34073,7 @@ const R4 = ({
34070
34073
  }));
34071
34074
  }, [B, ee, s]), /* @__PURE__ */ X(Cn, { children: [
34072
34075
  /* @__PURE__ */ E(j4, {}),
34073
- l && !C && /* @__PURE__ */ E(
34076
+ l && !P && /* @__PURE__ */ E(
34074
34077
  AL,
34075
34078
  {
34076
34079
  globalClassName: r,
@@ -34096,10 +34099,10 @@ const R4 = ({
34096
34099
  isWidgetStandalone: e
34097
34100
  }
34098
34101
  ),
34099
- O && /* @__PURE__ */ X(
34102
+ I && /* @__PURE__ */ X(
34100
34103
  "div",
34101
34104
  {
34102
- className: P(
34105
+ className: C(
34103
34106
  r,
34104
34107
  `${y}-message-group`,
34105
34108
  e ? "standalone" : "embedded"
@@ -34195,12 +34198,12 @@ const R4 = ({
34195
34198
  name: "ProgressSteps",
34196
34199
  payload: { steps: u },
34197
34200
  api: a
34198
- }, label: "ProgressSteps" }) : /* @__PURE__ */ E("div", { className: P(n, `${y}-progress-steps-panel`), children: /* @__PURE__ */ E("div", { className: `${y}-progress-steps`, children: /* @__PURE__ */ E("ul", { className: `${y}-progress-steps-list`, children: u.map((l, d) => {
34201
+ }, label: "ProgressSteps" }) : /* @__PURE__ */ E("div", { className: C(n, `${y}-progress-steps-panel`), children: /* @__PURE__ */ E("div", { className: `${y}-progress-steps`, children: /* @__PURE__ */ E("ul", { className: `${y}-progress-steps-list`, children: u.map((l, d) => {
34199
34202
  const p = d < u.length - 1, h = d === u.length - 1;
34200
34203
  return /* @__PURE__ */ X(
34201
34204
  "li",
34202
34205
  {
34203
- className: P(`${y}-progress-step`, h && "active"),
34206
+ className: C(`${y}-progress-step`, h && "active"),
34204
34207
  "aria-label": `${l} (${p ? "completed" : "in progress"})`,
34205
34208
  children: [
34206
34209
  h && /* @__PURE__ */ E("span", { className: `${y}-progress-step-arc` }),
@@ -34208,7 +34211,7 @@ const R4 = ({
34208
34211
  /* @__PURE__ */ E(
34209
34212
  "span",
34210
34213
  {
34211
- className: P(
34214
+ className: C(
34212
34215
  `${y}-progress-step-icon`,
34213
34216
  p ? "done" : "active"
34214
34217
  ),
@@ -34225,7 +34228,7 @@ const R4 = ({
34225
34228
  return /* @__PURE__ */ X(
34226
34229
  "div",
34227
34230
  {
34228
- className: P(
34231
+ className: C(
34229
34232
  e,
34230
34233
  `${y}-container`,
34231
34234
  `${y}-embedded-chat`
@@ -34235,7 +34238,7 @@ const R4 = ({
34235
34238
  /* @__PURE__ */ E(
34236
34239
  "div",
34237
34240
  {
34238
- className: P(
34241
+ className: C(
34239
34242
  e,
34240
34243
  `${y}-message-container`,
34241
34244
  `container-${n}`,
@@ -34256,7 +34259,7 @@ const R4 = ({
34256
34259
  onSubmit: p
34257
34260
  }
34258
34261
  ),
34259
- /* @__PURE__ */ E("div", { className: P(`${y}-embedded-chat-menu`), children: /* @__PURE__ */ X(bk, { componentType: "chat", children: [
34262
+ /* @__PURE__ */ E("div", { className: C(`${y}-embedded-chat-menu`), children: /* @__PURE__ */ X(bk, { componentType: "chat", children: [
34260
34263
  /* @__PURE__ */ E(RE, { componentType: "chat" }),
34261
34264
  /* @__PURE__ */ E(Sg, { componentType: "chat", onClearChat: s }),
34262
34265
  /* @__PURE__ */ E(Ng, { componentType: "chat", onEndConversation: o }),
@@ -34298,9 +34301,9 @@ const R4 = ({
34298
34301
  endConversation: p,
34299
34302
  progressSteps: h,
34300
34303
  downloadTranscript: m
34301
- } = it(), T = ga(), _ = Vl(), { isOpen: g } = s || {}, b = !!s.isOpen, A = i === "standalone", C = l || c, O = () => {
34304
+ } = it(), T = ga(), _ = Vl(), { isOpen: g } = s || {}, b = !!s.isOpen, A = i === "standalone", P = l || c, I = () => {
34302
34305
  Pn(!1), zc();
34303
- }, w = (D) => D.file ? _(D) : T(D.text);
34306
+ }, O = (D) => D.file ? _(D) : T(D.text);
34304
34307
  return b ? /* @__PURE__ */ E(
34305
34308
  IE,
34306
34309
  {
@@ -34314,7 +34317,7 @@ const R4 = ({
34314
34317
  children: /* @__PURE__ */ E(f1, { children: /* @__PURE__ */ E(
34315
34318
  Ul,
34316
34319
  {
34317
- className: P(
34320
+ className: C(
34318
34321
  t,
34319
34322
  `${y}-container`,
34320
34323
  `${y}-dialog`,
@@ -34325,7 +34328,7 @@ const R4 = ({
34325
34328
  children: /* @__PURE__ */ X(
34326
34329
  Bl,
34327
34330
  {
34328
- className: P(t, `${y}-dialog-content`, {
34331
+ className: C(t, `${y}-dialog-content`, {
34329
34332
  standalone: A,
34330
34333
  embedded: !A
34331
34334
  }),
@@ -34336,14 +34339,14 @@ const R4 = ({
34336
34339
  componentType: "dialog",
34337
34340
  onClearChat: d,
34338
34341
  onEndConversation: p,
34339
- onClose: O,
34342
+ onClose: I,
34340
34343
  onDownloadTranscript: m
34341
34344
  }
34342
34345
  ),
34343
34346
  /* @__PURE__ */ E(
34344
34347
  Fl,
34345
34348
  {
34346
- className: P(
34349
+ className: C(
34347
34350
  t,
34348
34351
  `${y}-message-container`,
34349
34352
  `container-${r}`,
@@ -34365,7 +34368,7 @@ const R4 = ({
34365
34368
  }
34366
34369
  ),
34367
34370
  /* @__PURE__ */ E(Xl, { steps: h, globalClassName: t }),
34368
- /* @__PURE__ */ E(cl, { componentType: "dialog", isLoading: C, onSubmit: w })
34371
+ /* @__PURE__ */ E(cl, { componentType: "dialog", isLoading: P, onSubmit: O })
34369
34372
  ]
34370
34373
  }
34371
34374
  )
@@ -34381,15 +34384,15 @@ const R4 = ({
34381
34384
  endConversation: l,
34382
34385
  progressSteps: d,
34383
34386
  downloadTranscript: p
34384
- } = it(), h = ga(), m = Vl(), { isOpen: T } = s || {}, _ = !!s.isOpen, g = i === "standalone", b = u || a, A = ({ open: w }) => {
34385
- if (w) {
34387
+ } = it(), h = ga(), m = Vl(), { isOpen: T } = s || {}, _ = !!s.isOpen, g = i === "standalone", b = u || a, A = ({ open: O }) => {
34388
+ if (O) {
34386
34389
  Pn(!0);
34387
34390
  return;
34388
34391
  }
34389
- C();
34390
- }, C = () => {
34392
+ P();
34393
+ }, P = () => {
34391
34394
  Pn(!1), zc();
34392
- }, O = (w) => w.file ? m(w) : h(w.text);
34395
+ }, I = (O) => O.file ? m(O) : h(O.text);
34393
34396
  return _ ? /* @__PURE__ */ E(
34394
34397
  IE,
34395
34398
  {
@@ -34401,19 +34404,19 @@ const R4 = ({
34401
34404
  children: /* @__PURE__ */ E(f1, { children: /* @__PURE__ */ X(
34402
34405
  "div",
34403
34406
  {
34404
- className: P(t, `${y}-modal-container`),
34407
+ className: C(t, `${y}-modal-container`),
34405
34408
  style: n,
34406
34409
  children: [
34407
34410
  /* @__PURE__ */ E(
34408
34411
  yE,
34409
34412
  {
34410
- className: P(t, `${y}-modal-backdrop`)
34413
+ className: C(t, `${y}-modal-backdrop`)
34411
34414
  }
34412
34415
  ),
34413
34416
  /* @__PURE__ */ E(
34414
34417
  Ul,
34415
34418
  {
34416
- className: P(
34419
+ className: C(
34417
34420
  t,
34418
34421
  `${y}-container`,
34419
34422
  `${y}-modal`,
@@ -34426,7 +34429,7 @@ const R4 = ({
34426
34429
  children: /* @__PURE__ */ X(
34427
34430
  Bl,
34428
34431
  {
34429
- className: P(t, `${y}-modal-content`, {
34432
+ className: C(t, `${y}-modal-content`, {
34430
34433
  standalone: g,
34431
34434
  embedded: !g
34432
34435
  }),
@@ -34437,14 +34440,14 @@ const R4 = ({
34437
34440
  componentType: "modal",
34438
34441
  onClearChat: c,
34439
34442
  onEndConversation: l,
34440
- onClose: C,
34443
+ onClose: P,
34441
34444
  onDownloadTranscript: p
34442
34445
  }
34443
34446
  ),
34444
34447
  /* @__PURE__ */ E(
34445
34448
  Fl,
34446
34449
  {
34447
- className: P(
34450
+ className: C(
34448
34451
  t,
34449
34452
  `${y}-message-container`,
34450
34453
  `container-${r}`,
@@ -34466,7 +34469,7 @@ const R4 = ({
34466
34469
  }
34467
34470
  ),
34468
34471
  /* @__PURE__ */ E(Xl, { steps: d, globalClassName: t }),
34469
- /* @__PURE__ */ E(cl, { componentType: "modal", isLoading: b, onSubmit: O })
34472
+ /* @__PURE__ */ E(cl, { componentType: "modal", isLoading: b, onSubmit: I })
34470
34473
  ]
34471
34474
  }
34472
34475
  )
@@ -34531,16 +34534,16 @@ const h1 = {
34531
34534
  return /* @__PURE__ */ X(
34532
34535
  "form",
34533
34536
  {
34534
- className: P(n, `${y}-prompts-input-container`),
34537
+ className: C(n, `${y}-prompts-input-container`),
34535
34538
  name: `${y}-prompts-form`,
34536
34539
  onSubmit: l,
34537
34540
  children: [
34538
- /* @__PURE__ */ E("label", { htmlFor: `${y}-prompts-input`, "aria-label": o, children: /* @__PURE__ */ E(xl, { className: P(n, `${y}-prompts-input-icon`) }) }),
34541
+ /* @__PURE__ */ E("label", { htmlFor: `${y}-prompts-input`, "aria-label": o, children: /* @__PURE__ */ E(xl, { className: C(n, `${y}-prompts-input-icon`) }) }),
34539
34542
  /* @__PURE__ */ E(
34540
34543
  "input",
34541
34544
  {
34542
34545
  id: `${y}-prompts-input`,
34543
- className: P(n, `${y}-prompts-input`),
34546
+ className: C(n, `${y}-prompts-input`),
34544
34547
  name: `${y}-prompts-input`,
34545
34548
  placeholder: o,
34546
34549
  type: "text",
@@ -34552,7 +34555,7 @@ const h1 = {
34552
34555
  /* @__PURE__ */ E(
34553
34556
  tn,
34554
34557
  {
34555
- className: P(n, `${y}-prompts-input-submit-button`),
34558
+ className: C(n, `${y}-prompts-input-submit-button`),
34556
34559
  type: "submit",
34557
34560
  ariaLabel: "Submit Prompt",
34558
34561
  icon: /* @__PURE__ */ E(Vc, {}),
@@ -34564,15 +34567,15 @@ const h1 = {
34564
34567
  );
34565
34568
  }, s5 = () => {
34566
34569
  const { globalClassName: e, mode: t } = ve(), { placeholder: n } = ma(), r = n || h1[t];
34567
- return /* @__PURE__ */ X("div", { className: P(e, `${y}-prompts-header`), children: [
34570
+ return /* @__PURE__ */ X("div", { className: C(e, `${y}-prompts-header`), children: [
34568
34571
  /* @__PURE__ */ E(
34569
34572
  xl,
34570
34573
  {
34571
- className: P(e, `${y}-prompts-input-icon`),
34574
+ className: C(e, `${y}-prompts-input-icon`),
34572
34575
  "aria-hidden": "true"
34573
34576
  }
34574
34577
  ),
34575
- /* @__PURE__ */ E("span", { className: P(e, `${y}-prompts-header-text`), children: r })
34578
+ /* @__PURE__ */ E("span", { className: C(e, `${y}-prompts-header-text`), children: r })
34576
34579
  ] });
34577
34580
  }, p1 = ({
34578
34581
  label: e,
@@ -34584,7 +34587,7 @@ const h1 = {
34584
34587
  return /* @__PURE__ */ X(
34585
34588
  "button",
34586
34589
  {
34587
- className: P(r, `${y}-prompts-button`, {
34590
+ className: C(r, `${y}-prompts-button`, {
34588
34591
  "has-icon": !!s,
34589
34592
  "icon-right": !!s && o === "right"
34590
34593
  }),
@@ -34616,7 +34619,7 @@ const h1 = {
34616
34619
  const u = a.trim();
34617
34620
  u && e(u);
34618
34621
  };
34619
- return /* @__PURE__ */ X("div", { className: P(n, `${y}-prompts-button-group`), children: [
34622
+ return /* @__PURE__ */ X("div", { className: C(n, `${y}-prompts-button-group`), children: [
34620
34623
  r.map((a) => /* @__PURE__ */ E(
34621
34624
  p1,
34622
34625
  {
@@ -34636,21 +34639,21 @@ const h1 = {
34636
34639
  });
34637
34640
  Ie(() => {
34638
34641
  if (!i || h) return;
34639
- const C = document.getElementById(i);
34640
- C && m(C);
34642
+ const P = document.getElementById(i);
34643
+ P && m(P);
34641
34644
  }, [i, h]);
34642
34645
  const A = me(
34643
- (C) => {
34646
+ (P) => {
34644
34647
  if (Pn(!0), n) {
34645
- b(C);
34648
+ b(P);
34646
34649
  return;
34647
34650
  }
34648
- const { prompt: O, display: w } = Fc(C, l);
34649
- if (w && w.length > 0) {
34650
- b(O, { displayContent: w });
34651
+ const { prompt: I, display: O } = Fc(P, l);
34652
+ if (O && O.length > 0) {
34653
+ b(I, { displayContent: O });
34651
34654
  return;
34652
34655
  }
34653
- b(O);
34656
+ b(I);
34654
34657
  },
34655
34658
  [b, l, n]
34656
34659
  );
@@ -34658,14 +34661,14 @@ const h1 = {
34658
34661
  /* @__PURE__ */ X(
34659
34662
  "div",
34660
34663
  {
34661
- className: P(e, `${y}-prompts-extension-container`),
34664
+ className: C(e, `${y}-prompts-extension-container`),
34662
34665
  style: t,
34663
34666
  children: [
34664
34667
  d && /* @__PURE__ */ E(i5, { onSubmit: A, disabled: T }),
34665
34668
  !d && /* @__PURE__ */ E(s5, {}),
34666
34669
  p && /* @__PURE__ */ E(u5, { onPromptClick: A, disabled: T }),
34667
- !T && _ && /* @__PURE__ */ E("p", { className: P(e, `${y}-prompts-connecting-message`), children: "Connecting to agent..." }),
34668
- T && /* @__PURE__ */ E("p", { className: P(e, `${y}-prompts-error-message`), children: "Oops, an error occurred with our agent." })
34670
+ !T && _ && /* @__PURE__ */ E("p", { className: C(e, `${y}-prompts-connecting-message`), children: "Connecting to agent..." }),
34671
+ T && /* @__PURE__ */ E("p", { className: C(e, `${y}-prompts-error-message`), children: "Oops, an error occurred with our agent." })
34669
34672
  ]
34670
34673
  }
34671
34674
  ),