@pagelines/sdk 1.0.649 → 1.0.650

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.
@@ -583,24 +583,24 @@ function na(s) {
583
583
  return s ? typeof s == "string" ? s : s.src || "" : "";
584
584
  }
585
585
  u(na, "getImageSrc");
586
- function Kl(s) {
586
+ function Yl(s) {
587
587
  return na(s.cover) || na(s.avatar) || Rn(s.name);
588
588
  }
589
- u(Kl, "getAgentAvatarUrl");
589
+ u(Yl, "getAgentAvatarUrl");
590
590
  function aa(s) {
591
591
  const t = s.target;
592
592
  t.dataset.fallbackUsed || (t.dataset.fallbackUsed = "true", t.src = Rn());
593
593
  }
594
594
  u(aa, "handleImageError");
595
- function Yl(s) {
595
+ function Xl(s) {
596
596
  const { template: t, agent: e } = s;
597
597
  return t.replace(/{name}/g, e.name || "Assistant").replace(/{title}/g, e.title || "").replace(/{handle}/g, e.handle || "").replace(/{orgName}/g, e.org?.name || "");
598
598
  }
599
- u(Yl, "parseButtonTemplate");
599
+ u(Xl, "parseButtonTemplate");
600
600
  const Ts = {
601
601
  key: 0,
602
602
  class: "absolute inset-0 flex items-center justify-center"
603
- }, Xl = /* @__PURE__ */ De({
603
+ }, Zl = /* @__PURE__ */ De({
604
604
  __name: "ElAgentButton",
605
605
  props: {
606
606
  theme: { default: "primary" },
@@ -645,7 +645,7 @@ const Ts = {
645
645
  ], 2)
646
646
  ], 2));
647
647
  }
648
- }), Ss = ["value"], Zl = /* @__PURE__ */ De({
648
+ }), Ss = ["value"], Ql = /* @__PURE__ */ De({
649
649
  __name: "AgentInputEmail",
650
650
  props: {
651
651
  modelValue: { default: "" }
@@ -668,7 +668,7 @@ const Ts = {
668
668
  onInput: i[0] || (i[0] = (a) => e("update:modelValue", a.target.value))
669
669
  }, null, 40, Ss));
670
670
  }
671
- }), As = ["placeholder", "value"], Ql = /* @__PURE__ */ De({
671
+ }), As = ["placeholder", "value"], Jl = /* @__PURE__ */ De({
672
672
  __name: "AgentInputOneTimeCode",
673
673
  props: {
674
674
  modelValue: {},
@@ -1231,7 +1231,7 @@ function Oa() {
1231
1231
  let oe = ma();
1232
1232
  t.isSupported = typeof Da == "function" && typeof ee == "function" && Me && Me.createHTMLDocument !== void 0;
1233
1233
  const nt = si, xe = ii, je = ri, xt = li, Ae = oi, Le = ci, Ge = ui, ke = hi;
1234
- let We = ga, Q = null;
1234
+ let We = ga, Z = null;
1235
1235
  const at = q({}, [...da, ...yn, ...kn, ...bn, ...ha]);
1236
1236
  let ie = null;
1237
1237
  const st = q({}, [...pa, ...wn, ...fa, ...Qt]);
@@ -1291,9 +1291,9 @@ function Oa() {
1291
1291
  if (bt && bt === r)
1292
1292
  return;
1293
1293
  (!r || typeof r != "object") && (r = {}), r = Te(r), Ot = // eslint-disable-next-line unicorn/prefer-includes
1294
- Za.indexOf(r.PARSER_MEDIA_TYPE) === -1 ? Qa : r.PARSER_MEDIA_TYPE, fe = Ot === "application/xhtml+xml" ? xn : jt, Q = de(r, "ALLOWED_TAGS") && _e(r.ALLOWED_TAGS) ? q({}, r.ALLOWED_TAGS, fe) : at, ie = de(r, "ALLOWED_ATTR") && _e(r.ALLOWED_ATTR) ? q({}, r.ALLOWED_ATTR, fe) : st, pn = de(r, "ALLOWED_NAMESPACES") && _e(r.ALLOWED_NAMESPACES) ? q({}, r.ALLOWED_NAMESPACES, xn) : Ya, dn = de(r, "ADD_URI_SAFE_ATTR") && _e(r.ADD_URI_SAFE_ATTR) ? q(Te(Bn), r.ADD_URI_SAFE_ATTR, fe) : Bn, Ke = de(r, "ADD_DATA_URI_TAGS") && _e(r.ADD_DATA_URI_TAGS) ? q(Te(yt), r.ADD_DATA_URI_TAGS, fe) : yt, B = de(r, "FORBID_CONTENTS") && _e(r.FORBID_CONTENTS) ? q({}, r.FORBID_CONTENTS, fe) : ae, qe = de(r, "FORBID_TAGS") && _e(r.FORBID_TAGS) ? q({}, r.FORBID_TAGS, fe) : Te({}), m = de(r, "FORBID_ATTR") && _e(r.FORBID_ATTR) ? q({}, r.FORBID_ATTR, fe) : Te({}), W = de(r, "USE_PROFILES") ? r.USE_PROFILES && typeof r.USE_PROFILES == "object" ? Te(r.USE_PROFILES) : r.USE_PROFILES : !1, o = r.ALLOW_ARIA_ATTR !== !1, R = r.ALLOW_DATA_ATTR !== !1, $ = r.ALLOW_UNKNOWN_PROTOCOLS || !1, I = r.ALLOW_SELF_CLOSE_IN_ATTR !== !1, H = r.SAFE_FOR_TEMPLATES || !1, re = r.SAFE_FOR_XML !== !1, he = r.WHOLE_DOCUMENT || !1, we = r.RETURN_DOM || !1, Ie = r.RETURN_DOM_FRAGMENT || !1, Ee = r.RETURN_TRUSTED_TYPE || !1, pe = r.FORCE_BODY || !1, Ve = r.SANITIZE_DOM !== !1, Pe = r.SANITIZE_NAMED_PROPS || !1, v = r.KEEP_CONTENT !== !1, x = r.IN_PLACE || !1, We = ti(r.ALLOWED_URI_REGEXP) ? r.ALLOWED_URI_REGEXP : ga, kt = typeof r.NAMESPACE == "string" ? r.NAMESPACE : Ye, fn = de(r, "MATHML_TEXT_INTEGRATION_POINTS") && r.MATHML_TEXT_INTEGRATION_POINTS && typeof r.MATHML_TEXT_INTEGRATION_POINTS == "object" ? Te(r.MATHML_TEXT_INTEGRATION_POINTS) : q({}, ["mi", "mo", "mn", "ms", "mtext"]), gn = de(r, "HTML_INTEGRATION_POINTS") && r.HTML_INTEGRATION_POINTS && typeof r.HTML_INTEGRATION_POINTS == "object" ? Te(r.HTML_INTEGRATION_POINTS) : q({}, ["annotation-xml"]);
1294
+ Za.indexOf(r.PARSER_MEDIA_TYPE) === -1 ? Qa : r.PARSER_MEDIA_TYPE, fe = Ot === "application/xhtml+xml" ? xn : jt, Z = de(r, "ALLOWED_TAGS") && _e(r.ALLOWED_TAGS) ? q({}, r.ALLOWED_TAGS, fe) : at, ie = de(r, "ALLOWED_ATTR") && _e(r.ALLOWED_ATTR) ? q({}, r.ALLOWED_ATTR, fe) : st, pn = de(r, "ALLOWED_NAMESPACES") && _e(r.ALLOWED_NAMESPACES) ? q({}, r.ALLOWED_NAMESPACES, xn) : Ya, dn = de(r, "ADD_URI_SAFE_ATTR") && _e(r.ADD_URI_SAFE_ATTR) ? q(Te(Bn), r.ADD_URI_SAFE_ATTR, fe) : Bn, Ke = de(r, "ADD_DATA_URI_TAGS") && _e(r.ADD_DATA_URI_TAGS) ? q(Te(yt), r.ADD_DATA_URI_TAGS, fe) : yt, B = de(r, "FORBID_CONTENTS") && _e(r.FORBID_CONTENTS) ? q({}, r.FORBID_CONTENTS, fe) : ae, qe = de(r, "FORBID_TAGS") && _e(r.FORBID_TAGS) ? q({}, r.FORBID_TAGS, fe) : Te({}), m = de(r, "FORBID_ATTR") && _e(r.FORBID_ATTR) ? q({}, r.FORBID_ATTR, fe) : Te({}), W = de(r, "USE_PROFILES") ? r.USE_PROFILES && typeof r.USE_PROFILES == "object" ? Te(r.USE_PROFILES) : r.USE_PROFILES : !1, o = r.ALLOW_ARIA_ATTR !== !1, R = r.ALLOW_DATA_ATTR !== !1, $ = r.ALLOW_UNKNOWN_PROTOCOLS || !1, I = r.ALLOW_SELF_CLOSE_IN_ATTR !== !1, H = r.SAFE_FOR_TEMPLATES || !1, re = r.SAFE_FOR_XML !== !1, he = r.WHOLE_DOCUMENT || !1, we = r.RETURN_DOM || !1, Ie = r.RETURN_DOM_FRAGMENT || !1, Ee = r.RETURN_TRUSTED_TYPE || !1, pe = r.FORCE_BODY || !1, Ve = r.SANITIZE_DOM !== !1, Pe = r.SANITIZE_NAMED_PROPS || !1, v = r.KEEP_CONTENT !== !1, x = r.IN_PLACE || !1, We = ti(r.ALLOWED_URI_REGEXP) ? r.ALLOWED_URI_REGEXP : ga, kt = typeof r.NAMESPACE == "string" ? r.NAMESPACE : Ye, fn = de(r, "MATHML_TEXT_INTEGRATION_POINTS") && r.MATHML_TEXT_INTEGRATION_POINTS && typeof r.MATHML_TEXT_INTEGRATION_POINTS == "object" ? Te(r.MATHML_TEXT_INTEGRATION_POINTS) : q({}, ["mi", "mo", "mn", "ms", "mtext"]), gn = de(r, "HTML_INTEGRATION_POINTS") && r.HTML_INTEGRATION_POINTS && typeof r.HTML_INTEGRATION_POINTS == "object" ? Te(r.HTML_INTEGRATION_POINTS) : q({}, ["annotation-xml"]);
1295
1295
  const g = de(r, "CUSTOM_ELEMENT_HANDLING") && r.CUSTOM_ELEMENT_HANDLING && typeof r.CUSTOM_ELEMENT_HANDLING == "object" ? Te(r.CUSTOM_ELEMENT_HANDLING) : Ct(null);
1296
- if (te = Ct(null), de(g, "tagNameCheck") && Un(g.tagNameCheck) && (te.tagNameCheck = g.tagNameCheck), de(g, "attributeNameCheck") && Un(g.attributeNameCheck) && (te.attributeNameCheck = g.attributeNameCheck), de(g, "allowCustomizedBuiltInElements") && typeof g.allowCustomizedBuiltInElements == "boolean" && (te.allowCustomizedBuiltInElements = g.allowCustomizedBuiltInElements), H && (R = !1), Ie && (we = !0), W && (Q = q({}, ha), ie = Ct(null), W.html === !0 && (q(Q, da), q(ie, pa)), W.svg === !0 && (q(Q, yn), q(ie, wn), q(ie, Qt)), W.svgFilters === !0 && (q(Q, kn), q(ie, wn), q(ie, Qt)), W.mathMl === !0 && (q(Q, bn), q(ie, fa), q(ie, Qt))), T.tagCheck = null, T.attributeCheck = null, de(r, "ADD_TAGS") && (typeof r.ADD_TAGS == "function" ? T.tagCheck = r.ADD_TAGS : _e(r.ADD_TAGS) && (Q === at && (Q = Te(Q)), q(Q, r.ADD_TAGS, fe))), de(r, "ADD_ATTR") && (typeof r.ADD_ATTR == "function" ? T.attributeCheck = r.ADD_ATTR : _e(r.ADD_ATTR) && (ie === st && (ie = Te(ie)), q(ie, r.ADD_ATTR, fe))), de(r, "ADD_URI_SAFE_ATTR") && _e(r.ADD_URI_SAFE_ATTR) && q(dn, r.ADD_URI_SAFE_ATTR, fe), de(r, "FORBID_CONTENTS") && _e(r.FORBID_CONTENTS) && (B === ae && (B = Te(B)), q(B, r.FORBID_CONTENTS, fe)), de(r, "ADD_FORBID_CONTENTS") && _e(r.ADD_FORBID_CONTENTS) && (B === ae && (B = Te(B)), q(B, r.ADD_FORBID_CONTENTS, fe)), v && (Q["#text"] = !0), he && q(Q, ["html", "head", "body"]), Q.table && (q(Q, ["tbody"]), delete qe.tbody), r.TRUSTED_TYPES_POLICY) {
1296
+ if (te = Ct(null), de(g, "tagNameCheck") && Un(g.tagNameCheck) && (te.tagNameCheck = g.tagNameCheck), de(g, "attributeNameCheck") && Un(g.attributeNameCheck) && (te.attributeNameCheck = g.attributeNameCheck), de(g, "allowCustomizedBuiltInElements") && typeof g.allowCustomizedBuiltInElements == "boolean" && (te.allowCustomizedBuiltInElements = g.allowCustomizedBuiltInElements), H && (R = !1), Ie && (we = !0), W && (Z = q({}, ha), ie = Ct(null), W.html === !0 && (q(Z, da), q(ie, pa)), W.svg === !0 && (q(Z, yn), q(ie, wn), q(ie, Qt)), W.svgFilters === !0 && (q(Z, kn), q(ie, wn), q(ie, Qt)), W.mathMl === !0 && (q(Z, bn), q(ie, fa), q(ie, Qt))), T.tagCheck = null, T.attributeCheck = null, de(r, "ADD_TAGS") && (typeof r.ADD_TAGS == "function" ? T.tagCheck = r.ADD_TAGS : _e(r.ADD_TAGS) && (Z === at && (Z = Te(Z)), q(Z, r.ADD_TAGS, fe))), de(r, "ADD_ATTR") && (typeof r.ADD_ATTR == "function" ? T.attributeCheck = r.ADD_ATTR : _e(r.ADD_ATTR) && (ie === st && (ie = Te(ie)), q(ie, r.ADD_ATTR, fe))), de(r, "ADD_URI_SAFE_ATTR") && _e(r.ADD_URI_SAFE_ATTR) && q(dn, r.ADD_URI_SAFE_ATTR, fe), de(r, "FORBID_CONTENTS") && _e(r.FORBID_CONTENTS) && (B === ae && (B = Te(B)), q(B, r.FORBID_CONTENTS, fe)), de(r, "ADD_FORBID_CONTENTS") && _e(r.ADD_FORBID_CONTENTS) && (B === ae && (B = Te(B)), q(B, r.ADD_FORBID_CONTENTS, fe)), v && (Z["#text"] = !0), he && q(Z, ["html", "head", "body"]), Z.table && (q(Z, ["tbody"]), delete qe.tbody), r.TRUSTED_TYPES_POLICY) {
1297
1297
  if (typeof r.TRUSTED_TYPES_POLICY.createHTML != "function")
1298
1298
  throw Ft('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
1299
1299
  if (typeof r.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -1301,7 +1301,7 @@ function Oa() {
1301
1301
  G = r.TRUSTED_TYPES_POLICY, Y = G.createHTML("");
1302
1302
  } else
1303
1303
  G === void 0 && (G = fi(A, i)), G !== null && typeof Y == "string" && (Y = G.createHTML(""));
1304
- (oe.uponSanitizeElement.length > 0 || oe.uponSanitizeAttribute.length > 0) && Q === at && (Q = Te(Q)), oe.uponSanitizeAttribute.length > 0 && ie === st && (ie = Te(ie)), Re && Re(r), bt = r;
1304
+ (oe.uponSanitizeElement.length > 0 || oe.uponSanitizeAttribute.length > 0) && Z === at && (Z = Te(Z)), oe.uponSanitizeAttribute.length > 0 && ie === st && (ie = Te(ie)), Re && Re(r), bt = r;
1305
1305
  }, "_parseConfig"), Hn = q({}, [...yn, ...kn, ...ni]), jn = q({}, [...bn, ...ai]), es = /* @__PURE__ */ u(function(r) {
1306
1306
  let g = ee(r);
1307
1307
  (!g || !g.tagName) && (g = {
@@ -1446,10 +1446,10 @@ function Oa() {
1446
1446
  const C = fe(r.nodeName);
1447
1447
  if (et(oe.uponSanitizeElement, r, {
1448
1448
  tagName: C,
1449
- allowedTags: Q
1449
+ allowedTags: Z
1450
1450
  }), re && r.hasChildNodes() && !Xt(r.firstElementChild) && be(/<[/\w!]/g, r.innerHTML) && be(/<[/\w!]/g, r.textContent) || re && r.namespaceURI === Ye && C === "style" && Xt(r.firstElementChild) || r.nodeType === Ze.progressingInstruction || re && r.nodeType === Ze.comment && be(/<[/\w]/g, r.data))
1451
1451
  return Fe(r), !0;
1452
- if (qe[C] || !(T.tagCheck instanceof Function && T.tagCheck(C)) && !Q[C]) {
1452
+ if (qe[C] || !(T.tagCheck instanceof Function && T.tagCheck(C)) && !Z[C]) {
1453
1453
  if (!qe[C] && Yn(C) && (te.tagNameCheck instanceof RegExp && be(te.tagNameCheck, C) || te.tagNameCheck instanceof Function && te.tagNameCheck(C)))
1454
1454
  return !1;
1455
1455
  if (v && !B[C]) {
@@ -1602,7 +1602,7 @@ function Oa() {
1602
1602
  const Xe = U ? U(N) : N.nodeName;
1603
1603
  if (typeof Xe == "string") {
1604
1604
  const Be = fe(Xe);
1605
- if (!Q[Be] || qe[Be])
1605
+ if (!Z[Be] || qe[Be])
1606
1606
  throw Ft("root node is forbidden and cannot be sanitized in-place");
1607
1607
  }
1608
1608
  if (Yt(N))
@@ -1632,7 +1632,7 @@ function Oa() {
1632
1632
  return (ie.shadowroot || ie.shadowrootmode) && (X = tt.call(n, X, !0)), X;
1633
1633
  }
1634
1634
  let ze = he ? g.outerHTML : g.innerHTML;
1635
- return he && Q["!doctype"] && g.ownerDocument && g.ownerDocument.doctype && g.ownerDocument.doctype.name && be(di, g.ownerDocument.doctype.name) && (ze = "<!DOCTYPE " + g.ownerDocument.doctype.name + `>
1635
+ return he && Z["!doctype"] && g.ownerDocument && g.ownerDocument.doctype && g.ownerDocument.doctype.name && be(di, g.ownerDocument.doctype.name) && (ze = "<!DOCTYPE " + g.ownerDocument.doctype.name + `>
1636
1636
  ` + ze), H && Tt([nt, xe, je], (Xe) => {
1637
1637
  ze = At(ze, Xe, " ");
1638
1638
  }), G && Ee ? G.createHTML(ze) : ze;
@@ -1679,22 +1679,22 @@ function Et(s) {
1679
1679
  };
1680
1680
  }
1681
1681
  u(Et, "E");
1682
- function Z(s, t = "") {
1682
+ function Q(s, t = "") {
1683
1683
  let e = typeof s == "string" ? s : s.source, n = { replace: /* @__PURE__ */ u((i, a) => {
1684
1684
  let l = typeof a == "string" ? a : a.source;
1685
1685
  return l = l.replace(Se.caret, "$1"), e = e.replace(i, l), n;
1686
1686
  }, "replace"), getRegex: /* @__PURE__ */ u(() => new RegExp(e, t), "getRegex") };
1687
1687
  return n;
1688
1688
  }
1689
- u(Z, "d");
1689
+ u(Q, "d");
1690
1690
  var mi = ((s = "") => {
1691
1691
  try {
1692
1692
  return !!new RegExp("(?<=1)(?<!1)" + s);
1693
1693
  } catch {
1694
1694
  return !1;
1695
1695
  }
1696
- })(), Se = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: /* @__PURE__ */ u((s) => new RegExp(`^( {0,3}${s})((?:[ ][^\\n]*)?(?:\\n|$))`), "listItemRegex"), nextBulletRegex: Et((s) => new RegExp(`^ {0,${s}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)), hrRegex: Et((s) => new RegExp(`^ {0,${s}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)), fencesBeginRegex: Et((s) => new RegExp(`^ {0,${s}}(?:\`\`\`|~~~)`)), headingBeginRegex: Et((s) => new RegExp(`^ {0,${s}}#`)), htmlBeginRegex: Et((s) => new RegExp(`^ {0,${s}}<(?:[a-z].*>|!--)`, "i")), blockquoteBeginRegex: Et((s) => new RegExp(`^ {0,${s}}>`)) }, vi = /^(?:[ \t]*(?:\n|$))+/, xi = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, yi = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, qt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, ki = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Mn = / {0,3}(?:[*+-]|\d{1,9}[.)])/, Na = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Pa = Z(Na).replace(/bull/g, Mn).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), bi = Z(Na).replace(/bull/g, Mn).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), $n = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, wi = /^[^\n]+/, In = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Ti = Z(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", In).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Si = Z(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, Mn).getRegex(), cn = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Dn = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Ai = Z("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Dn).replace("tag", cn).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Fa = Z($n).replace("hr", qt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", cn).getRegex(), Ei = Z(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Fa).getRegex(), Ln = { blockquote: Ei, code: xi, def: Ti, fences: yi, heading: ki, hr: qt, html: Ai, lheading: Pa, list: Si, newline: vi, paragraph: Fa, table: pt, text: wi }, va = Z("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", qt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", cn).getRegex(), _i = { ...Ln, lheading: bi, table: va, paragraph: Z($n).replace("hr", qt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", va).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", cn).getRegex() }, Ri = { ...Ln, html: Z(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Dn).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: pt, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: Z($n).replace("hr", qt).replace("heading", ` *#{1,6} *[^
1697
- ]`).replace("lheading", Pa).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Ci = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Mi = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Ba = /^( {2,}|\\)\n(?!\s*$)/, $i = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Lt = /[\p{P}\p{S}]/u, un = /[\s\p{P}\p{S}]/u, On = /[^\s\p{P}\p{S}]/u, Ii = Z(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, un).getRegex(), Ua = /(?!~)[\p{P}\p{S}]/u, Di = /(?!~)[\s\p{P}\p{S}]/u, Li = /(?:[^\s\p{P}\p{S}]|~)/u, Oi = Z(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", mi ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), Ha = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, zi = Z(Ha, "u").replace(/punct/g, Lt).getRegex(), Ni = Z(Ha, "u").replace(/punct/g, Ua).getRegex(), ja = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Pi = Z(ja, "gu").replace(/notPunctSpace/g, On).replace(/punctSpace/g, un).replace(/punct/g, Lt).getRegex(), Fi = Z(ja, "gu").replace(/notPunctSpace/g, Li).replace(/punctSpace/g, Di).replace(/punct/g, Ua).getRegex(), Bi = Z("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, On).replace(/punctSpace/g, un).replace(/punct/g, Lt).getRegex(), Ui = Z(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, Lt).getRegex(), Hi = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", ji = Z(Hi, "gu").replace(/notPunctSpace/g, On).replace(/punctSpace/g, un).replace(/punct/g, Lt).getRegex(), Gi = Z(/\\(punct)/, "gu").replace(/punct/g, Lt).getRegex(), Wi = Z(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), qi = Z(Dn).replace("(?:-->|$)", "-->").getRegex(), Vi = Z("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", qi).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), sn = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, Ki = Z(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", sn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Ga = Z(/^!?\[(label)\]\[(ref)\]/).replace("label", sn).replace("ref", In).getRegex(), Wa = Z(/^!?\[(ref)\](?:\[\])?/).replace("ref", In).getRegex(), Yi = Z("reflink|nolink(?!\\()", "g").replace("reflink", Ga).replace("nolink", Wa).getRegex(), xa = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, zn = { _backpedal: pt, anyPunctuation: Gi, autolink: Wi, blockSkip: Oi, br: Ba, code: Mi, del: pt, delLDelim: pt, delRDelim: pt, emStrongLDelim: zi, emStrongRDelimAst: Pi, emStrongRDelimUnd: Bi, escape: Ci, link: Ki, nolink: Wa, punctuation: Ii, reflink: Ga, reflinkSearch: Yi, tag: Vi, text: $i, url: pt }, Xi = { ...zn, link: Z(/^!?\[(label)\]\((.*?)\)/).replace("label", sn).getRegex(), reflink: Z(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", sn).getRegex() }, _n = { ...zn, emStrongRDelimAst: Fi, emStrongLDelim: Ni, delLDelim: Ui, delRDelim: ji, url: Z(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", xa).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: Z(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", xa).getRegex() }, Zi = { ..._n, br: Z(Ba).replace("{2,}", "*").getRegex(), text: Z(_n.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, Jt = { normal: Ln, gfm: _i, pedantic: Ri }, Bt = { normal: zn, gfm: _n, breaks: Zi, pedantic: Xi }, Qi = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, ya = /* @__PURE__ */ u((s) => Qi[s], "ge");
1696
+ })(), Se = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: /* @__PURE__ */ u((s) => new RegExp(`^( {0,3}${s})((?:[ ][^\\n]*)?(?:\\n|$))`), "listItemRegex"), nextBulletRegex: Et((s) => new RegExp(`^ {0,${s}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)), hrRegex: Et((s) => new RegExp(`^ {0,${s}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)), fencesBeginRegex: Et((s) => new RegExp(`^ {0,${s}}(?:\`\`\`|~~~)`)), headingBeginRegex: Et((s) => new RegExp(`^ {0,${s}}#`)), htmlBeginRegex: Et((s) => new RegExp(`^ {0,${s}}<(?:[a-z].*>|!--)`, "i")), blockquoteBeginRegex: Et((s) => new RegExp(`^ {0,${s}}>`)) }, vi = /^(?:[ \t]*(?:\n|$))+/, xi = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, yi = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, qt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, ki = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Mn = / {0,3}(?:[*+-]|\d{1,9}[.)])/, Na = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Pa = Q(Na).replace(/bull/g, Mn).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), bi = Q(Na).replace(/bull/g, Mn).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), $n = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, wi = /^[^\n]+/, In = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Ti = Q(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", In).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Si = Q(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, Mn).getRegex(), cn = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Dn = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Ai = Q("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Dn).replace("tag", cn).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Fa = Q($n).replace("hr", qt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", cn).getRegex(), Ei = Q(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Fa).getRegex(), Ln = { blockquote: Ei, code: xi, def: Ti, fences: yi, heading: ki, hr: qt, html: Ai, lheading: Pa, list: Si, newline: vi, paragraph: Fa, table: pt, text: wi }, va = Q("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", qt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", cn).getRegex(), _i = { ...Ln, lheading: bi, table: va, paragraph: Q($n).replace("hr", qt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", va).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", cn).getRegex() }, Ri = { ...Ln, html: Q(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Dn).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: pt, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: Q($n).replace("hr", qt).replace("heading", ` *#{1,6} *[^
1697
+ ]`).replace("lheading", Pa).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Ci = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Mi = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Ba = /^( {2,}|\\)\n(?!\s*$)/, $i = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Lt = /[\p{P}\p{S}]/u, un = /[\s\p{P}\p{S}]/u, On = /[^\s\p{P}\p{S}]/u, Ii = Q(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, un).getRegex(), Ua = /(?!~)[\p{P}\p{S}]/u, Di = /(?!~)[\s\p{P}\p{S}]/u, Li = /(?:[^\s\p{P}\p{S}]|~)/u, Oi = Q(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", mi ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), Ha = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, zi = Q(Ha, "u").replace(/punct/g, Lt).getRegex(), Ni = Q(Ha, "u").replace(/punct/g, Ua).getRegex(), ja = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Pi = Q(ja, "gu").replace(/notPunctSpace/g, On).replace(/punctSpace/g, un).replace(/punct/g, Lt).getRegex(), Fi = Q(ja, "gu").replace(/notPunctSpace/g, Li).replace(/punctSpace/g, Di).replace(/punct/g, Ua).getRegex(), Bi = Q("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, On).replace(/punctSpace/g, un).replace(/punct/g, Lt).getRegex(), Ui = Q(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, Lt).getRegex(), Hi = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", ji = Q(Hi, "gu").replace(/notPunctSpace/g, On).replace(/punctSpace/g, un).replace(/punct/g, Lt).getRegex(), Gi = Q(/\\(punct)/, "gu").replace(/punct/g, Lt).getRegex(), Wi = Q(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), qi = Q(Dn).replace("(?:-->|$)", "-->").getRegex(), Vi = Q("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", qi).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), sn = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, Ki = Q(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", sn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Ga = Q(/^!?\[(label)\]\[(ref)\]/).replace("label", sn).replace("ref", In).getRegex(), Wa = Q(/^!?\[(ref)\](?:\[\])?/).replace("ref", In).getRegex(), Yi = Q("reflink|nolink(?!\\()", "g").replace("reflink", Ga).replace("nolink", Wa).getRegex(), xa = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, zn = { _backpedal: pt, anyPunctuation: Gi, autolink: Wi, blockSkip: Oi, br: Ba, code: Mi, del: pt, delLDelim: pt, delRDelim: pt, emStrongLDelim: zi, emStrongRDelimAst: Pi, emStrongRDelimUnd: Bi, escape: Ci, link: Ki, nolink: Wa, punctuation: Ii, reflink: Ga, reflinkSearch: Yi, tag: Vi, text: $i, url: pt }, Xi = { ...zn, link: Q(/^!?\[(label)\]\((.*?)\)/).replace("label", sn).getRegex(), reflink: Q(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", sn).getRegex() }, _n = { ...zn, emStrongRDelimAst: Fi, emStrongLDelim: Ni, delLDelim: Ui, delRDelim: ji, url: Q(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", xa).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: Q(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", xa).getRegex() }, Zi = { ..._n, br: Q(Ba).replace("{2,}", "*").getRegex(), text: Q(_n.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, Jt = { normal: Ln, gfm: _i, pedantic: Ri }, Bt = { normal: zn, gfm: _n, breaks: Zi, pedantic: Xi }, Qi = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, ya = /* @__PURE__ */ u((s) => Qi[s], "ge");
1698
1698
  function Je(s, t) {
1699
1699
  if (t) {
1700
1700
  if (Se.escapeTest.test(s)) return s.replace(Se.escapeReplace, ya);
@@ -3229,7 +3229,7 @@ const or = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
3229
3229
  return m === "decision" ? t.inverted ? "rgba(255, 255, 255, 0.26)" : "color-mix(in oklch, var(--color-primary-500) 32%, var(--color-theme-300))" : st.value;
3230
3230
  }
3231
3231
  u(Ge, "diagramNodeStroke");
3232
- const ke = S(() => t.inverted ? "rgba(255, 255, 255, 0.95)" : "var(--color-theme-900)"), We = S(() => t.inverted ? "rgba(255, 255, 255, 0.6)" : "var(--color-theme-500)"), Q = S(() => t.inverted ? "rgba(255, 255, 255, 0.45)" : "color-mix(in oklch, var(--color-theme-900) 42%, transparent)"), at = S(() => t.inverted ? "rgba(255, 255, 255, 0.1)" : "color-mix(in oklch, var(--color-theme-900) 8%, transparent)"), ie = S(() => t.inverted ? "rgba(255, 255, 255, 0.24)" : "color-mix(in oklch, var(--color-theme-900) 18%, transparent)"), st = S(() => t.inverted ? "rgba(255, 255, 255, 0.16)" : "color-mix(in oklch, var(--color-theme-300) 55%, transparent)"), te = S(() => t.inverted ? "rgba(255, 255, 255, 0.18)" : "color-mix(in oklch, var(--color-theme-900) 16%, transparent)"), qe = S(() => t.inverted ? "rgba(255, 255, 255, 0.12)" : "color-mix(in oklch, var(--color-theme-900) 9%, transparent)");
3232
+ const ke = S(() => t.inverted ? "rgba(255, 255, 255, 0.95)" : "var(--color-theme-900)"), We = S(() => t.inverted ? "rgba(255, 255, 255, 0.6)" : "var(--color-theme-500)"), Z = S(() => t.inverted ? "rgba(255, 255, 255, 0.45)" : "color-mix(in oklch, var(--color-theme-900) 42%, transparent)"), at = S(() => t.inverted ? "rgba(255, 255, 255, 0.1)" : "color-mix(in oklch, var(--color-theme-900) 8%, transparent)"), ie = S(() => t.inverted ? "rgba(255, 255, 255, 0.24)" : "color-mix(in oklch, var(--color-theme-900) 18%, transparent)"), st = S(() => t.inverted ? "rgba(255, 255, 255, 0.16)" : "color-mix(in oklch, var(--color-theme-300) 55%, transparent)"), te = S(() => t.inverted ? "rgba(255, 255, 255, 0.18)" : "color-mix(in oklch, var(--color-theme-900) 16%, transparent)"), qe = S(() => t.inverted ? "rgba(255, 255, 255, 0.12)" : "color-mix(in oklch, var(--color-theme-900) 9%, transparent)");
3233
3233
  return (m, T) => e.value ? (h(), f("section", {
3234
3234
  key: 0,
3235
3235
  "data-test": "chat-visual",
@@ -3308,7 +3308,7 @@ const or = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
3308
3308
  y: Y(o) + 3,
3309
3309
  "text-anchor": "end",
3310
3310
  "font-size": "9.5",
3311
- style: K({ fill: Q.value })
3311
+ style: K({ fill: Z.value })
3312
3312
  }, j(nn(lr)({ value: o, shared: z.value })), 13, gr))), 128))
3313
3313
  ]),
3314
3314
  p.value.chartType === "bar" ? (h(!0), f(se, { key: 0 }, ve(ce.value, (o) => (h(), f("rect", {
@@ -3376,7 +3376,7 @@ const or = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
3376
3376
  y: U.value.height - 6,
3377
3377
  "text-anchor": o.anchor,
3378
3378
  "font-size": "9.5",
3379
- style: K({ fill: Q.value })
3379
+ style: K({ fill: Z.value })
3380
3380
  }, j(o.label), 13, br))), 128))
3381
3381
  ], 12, pr)),
3382
3382
  tt.value.length > 1 || p.value.chartType !== "bar" ? (h(), f("div", wr, [
@@ -3516,7 +3516,7 @@ const or = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
3516
3516
  e.value.meta.footer ? (h(), f("footer", {
3517
3517
  key: 3,
3518
3518
  class: "mt-3 text-[11px] leading-snug",
3519
- style: K({ color: Q.value })
3519
+ style: K({ color: Z.value })
3520
3520
  }, j(e.value.meta.footer), 5)) : V("", !0)
3521
3521
  ], 12, or)) : V("", !0);
3522
3522
  }
@@ -3750,19 +3750,19 @@ const or = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
3750
3750
  }, El = ["src", "alt"], _l = { class: "max-w-20 truncate" }, Rl = ["onClick"], Cl = {
3751
3751
  key: 0,
3752
3752
  class: "shrink-0 flex items-center justify-center size-14"
3753
- }, Ml = ["disabled", "aria-label", "title"], $l = {
3753
+ }, Ml = ["data-composer-action"], $l = ["disabled", "aria-label", "title"], Il = {
3754
3754
  key: 0,
3755
3755
  class: "i-svg-spinners-ring-resize size-4"
3756
- }, Il = {
3756
+ }, Dl = {
3757
3757
  key: 1,
3758
3758
  class: "i-tabler-paperclip size-5"
3759
- }, Dl = { class: "sr-only" }, Ll = ["placeholder", "disabled"], Ol = { class: "font-mono text-sm tabular-nums" }, zl = ["aria-label", "title"], Nl = { class: "sr-only" }, Pl = ["data-composer-action", "disabled", "aria-label", "title"], Fl = {
3759
+ }, Ll = { class: "sr-only" }, Ol = ["placeholder", "disabled"], zl = { class: "font-mono text-sm tabular-nums" }, Nl = ["aria-label", "title"], Pl = { class: "sr-only" }, Fl = ["data-composer-action", "disabled", "aria-label", "title"], Bl = {
3760
3760
  key: 0,
3761
3761
  class: "i-tabler-player-stop-filled size-4"
3762
- }, Bl = {
3762
+ }, Ul = {
3763
3763
  key: 1,
3764
3764
  class: "i-tabler-arrow-up size-5"
3765
- }, Ul = { class: "sr-only" }, Jl = /* @__PURE__ */ De({
3765
+ }, Hl = { class: "sr-only" }, eo = /* @__PURE__ */ De({
3766
3766
  __name: "ElAgentChat",
3767
3767
  props: {
3768
3768
  chatController: {},
@@ -3874,7 +3874,7 @@ const or = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
3874
3874
  }), je = S({
3875
3875
  get: /* @__PURE__ */ u(() => xe.value.text, "get"),
3876
3876
  set: /* @__PURE__ */ u((_) => s.chatController?.setComposerText?.({ text: _ }), "set")
3877
- }), xt = S(() => xe.value.pendingAttachments), Ae = S(() => xe.value.isUploading), Le = S(() => s.chatController?.voiceRecorder), Ge = S(() => Le.value?.isBusy.value ?? !1), ke = S(() => s.chatController?.canAttachFile?.value ?? !1), We = S(() => s.chatController?.canRecordAudio?.value ?? !1), Q = S(() => s.chatController?.composerAction?.value ?? "idle"), at = S(() => Q.value !== "idle"), ie = S(() => Q.value === "stop" ? "Stop reply" : "Send message"), st = S(() => Q.value === "idle" && We.value && !Ge.value && !!Le.value?.canUseBrowserRecording), te = S(() => Le.value?.isActive.value ?? !1), qe = S(() => Le.value?.elapsedLabel.value ?? "0:00"), m = S(() => Le.value?.statusText.value ?? "Release to send"), T = S(() => Le.value?.state.value.phase === "sending" ? "Sending voice message" : te.value ? "Release to send voice message" : "Hold to record voice message"), o = S(() => s.variant === "light"), R = S(
3877
+ }), xt = S(() => xe.value.pendingAttachments), Ae = S(() => xe.value.isUploading), Le = S(() => s.chatController?.voiceRecorder), Ge = S(() => Le.value?.isBusy.value ?? !1), ke = S(() => s.chatController?.canAttachFile?.value ?? !1), We = S(() => s.chatController?.canRecordAudio?.value ?? !1), Z = S(() => s.chatController?.composerAction?.value ?? "idle"), at = S(() => Z.value !== "idle"), ie = S(() => Z.value === "stop" ? "Stop reply" : "Send message"), st = S(() => Z.value === "idle" && We.value && !Ge.value && !!Le.value?.canUseBrowserRecording), te = S(() => Le.value?.isActive.value ?? !1), qe = S(() => Le.value?.elapsedLabel.value ?? "0:00"), m = S(() => Le.value?.statusText.value ?? "Release to send"), T = S(() => Le.value?.state.value.phase === "sending" ? "Sending voice message" : te.value ? "Release to send voice message" : "Hold to record voice message"), o = S(() => s.variant === "light"), R = S(
3878
3878
  () => o.value ? "bg-gradient-to-r from-transparent via-black/5 to-transparent" : "bg-gradient-to-r from-transparent via-white/5 to-transparent"
3879
3879
  ), $ = S(() => o.value ? "text-theme-300" : "text-white/30");
3880
3880
  Wt(async () => {
@@ -3883,11 +3883,11 @@ const or = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
3883
3883
  s.chatController?.voiceRecorder?.teardown();
3884
3884
  });
3885
3885
  async function I() {
3886
- !s.chatController || Q.value !== "send" || (a.value && (a.value.style.height = "auto", a.value.focus()), i.value?.pin(), await s.chatController.sendComposerMessage());
3886
+ !s.chatController || Z.value !== "send" || (a.value && (a.value.style.height = "auto", a.value.focus()), i.value?.pin(), await s.chatController.sendComposerMessage());
3887
3887
  }
3888
3888
  u(I, "sendMessage");
3889
3889
  async function H() {
3890
- s.chatController && (Q.value === "send" && i.value?.pin(), await s.chatController.handleComposerAction());
3890
+ s.chatController && (Z.value === "send" && i.value?.pin(), await s.chatController.handleComposerAction());
3891
3891
  }
3892
3892
  u(H, "handleComposerAction");
3893
3893
  async function re(_) {
@@ -4341,6 +4341,8 @@ const or = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
4341
4341
  onChange: pe
4342
4342
  }, null, 544)) : V("", !0),
4343
4343
  k("div", {
4344
+ "data-test": "messaging-composer",
4345
+ "data-composer-action": Z.value,
4344
4346
  class: O(["flex items-end gap-1 w-full rounded-[24px] p-1.5 transition-colors duration-200", o.value ? n.value ? "bg-theme-50 ring-1 ring-theme-300" : "bg-theme-25 ring-1 ring-theme-200 hover:ring-theme-300" : n.value ? "bg-white/15 ring-1 ring-white/25" : "bg-white/10 ring-1 ring-transparent hover:ring-white/15"])
4345
4347
  }, [
4346
4348
  k("button", {
@@ -4354,16 +4356,16 @@ const or = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
4354
4356
  title: ke.value ? "Attach file" : "File attachments unavailable",
4355
4357
  onClick: v[5] || (v[5] = (x) => ke.value && ue())
4356
4358
  }, [
4357
- Ae.value ? (h(), f("i", $l)) : (h(), f("i", Il)),
4358
- k("span", Dl, j(ke.value ? "Attach file" : "File attachments unavailable"), 1)
4359
- ], 10, Ml),
4359
+ Ae.value ? (h(), f("i", Il)) : (h(), f("i", Dl)),
4360
+ k("span", Ll, j(ke.value ? "Attach file" : "File attachments unavailable"), 1)
4361
+ ], 10, $l),
4360
4362
  te.value ? (h(), f("div", {
4361
4363
  key: 1,
4362
4364
  "data-test": "messaging-recording-state",
4363
4365
  class: O(["flex min-w-0 flex-1 items-center gap-2 px-1 py-2", o.value ? "text-theme-700" : "text-white/80"])
4364
4366
  }, [
4365
4367
  v[28] || (v[28] = k("span", { class: "size-2.5 shrink-0 rounded-full bg-red-500" }, null, -1)),
4366
- k("span", Ol, j(qe.value), 1),
4368
+ k("span", zl, j(qe.value), 1),
4367
4369
  k("span", {
4368
4370
  class: O(["min-w-0 truncate text-sm", o.value ? "text-theme-400" : "text-white/45"])
4369
4371
  }, j(m.value), 3)
@@ -4382,7 +4384,7 @@ const or = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
4382
4384
  onKeydown: re,
4383
4385
  onFocus: v[7] || (v[7] = (x) => n.value = !0),
4384
4386
  onBlur: v[8] || (v[8] = (x) => n.value = !1)
4385
- }, null, 42, Ll)), [
4387
+ }, null, 42, Ol)), [
4386
4388
  [ls, je.value]
4387
4389
  ]),
4388
4390
  st.value || te.value ? (h(), f("button", {
@@ -4407,28 +4409,28 @@ const or = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
4407
4409
  k("i", {
4408
4410
  class: O([te.value ? "i-tabler-microphone-filled" : "i-tabler-microphone", "size-5"])
4409
4411
  }, null, 2),
4410
- k("span", Nl, j(T.value), 1)
4411
- ], 42, zl)) : (h(), f("button", {
4412
+ k("span", Pl, j(T.value), 1)
4413
+ ], 42, Nl)) : (h(), f("button", {
4412
4414
  key: 3,
4413
4415
  "data-test": "messaging-send-btn",
4414
- "data-composer-action": Q.value,
4416
+ "data-composer-action": Z.value,
4415
4417
  class: O(["shrink-0 flex items-center justify-center rounded-full transition-transform duration-200 mb-0.5 mr-0.5 size-9 @sm/chat:size-10", at.value ? o.value ? "bg-theme-900 text-theme-0 hover:scale-105 active:scale-95 cursor-pointer" : "bg-theme-0 text-theme-950 hover:scale-105 active:scale-95 cursor-pointer" : o.value ? "bg-black/5 text-black/20" : "bg-white/10 text-white/30"]),
4416
4418
  disabled: !at.value,
4417
4419
  "aria-label": ie.value,
4418
4420
  title: ie.value,
4419
4421
  onClick: v[17] || (v[17] = (x) => H())
4420
4422
  }, [
4421
- Q.value === "stop" ? (h(), f("i", Fl)) : (h(), f("i", Bl)),
4422
- k("span", Ul, j(ie.value), 1)
4423
- ], 10, Pl))
4424
- ], 2)
4423
+ Z.value === "stop" ? (h(), f("i", Bl)) : (h(), f("i", Ul)),
4424
+ k("span", Hl, j(ie.value), 1)
4425
+ ], 10, Fl))
4426
+ ], 10, Ml)
4425
4427
  ], 2)
4426
4428
  ]));
4427
4429
  }
4428
- }), Hl = { class: "agent-wrap" }, jl = {
4430
+ }), jl = { class: "agent-wrap" }, Gl = {
4429
4431
  key: 0,
4430
4432
  class: "flex items-center justify-center h-full"
4431
- }, eo = /* @__PURE__ */ De({
4433
+ }, to = /* @__PURE__ */ De({
4432
4434
  __name: "AgentWrap",
4433
4435
  props: {
4434
4436
  sdk: {},
@@ -4522,8 +4524,8 @@ const or = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
4522
4524
  }
4523
4525
  });
4524
4526
  }
4525
- }), (c, p) => (h(), f("div", Hl, [
4526
- i.value ? (h(), f("div", jl, [...p[0] || (p[0] = [
4527
+ }), (c, p) => (h(), f("div", jl, [
4528
+ i.value ? (h(), f("div", Gl, [...p[0] || (p[0] = [
4527
4529
  k("div", { class: "animate-spin rounded-full size-6 border-b-2 border-white" }, null, -1)
4528
4530
  ])])) : a.value ? on(c.$slots, "default", {
4529
4531
  key: 1,
@@ -4540,16 +4542,16 @@ const or = ["data-visual-type", "data-chart-type", "data-stacking", "data-diagra
4540
4542
  });
4541
4543
  export {
4542
4544
  ta as A,
4543
- eo as _,
4545
+ to as _,
4544
4546
  en as a,
4545
- Jl as b,
4546
- Zl as c,
4547
- Xl as d,
4548
- Ql as e,
4547
+ eo as b,
4548
+ Ql as c,
4549
+ Zl as d,
4550
+ Jl as e,
4549
4551
  ea as f,
4550
- Kl as g,
4552
+ Yl as g,
4551
4553
  $s as h,
4552
4554
  aa as i,
4553
- Yl as p
4555
+ Xl as p
4554
4556
  };
4555
4557
  //# sourceMappingURL=AgentWrap.vue_vue_type_script_setup_true_lang.js.map