@sakura-ui/sakura-ui 0.5.3 → 0.5.5

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.
Files changed (40) hide show
  1. package/package.json +4 -4
  2. package/packages/core/package.json +1 -1
  3. package/packages/core/src/components/Link.tsx +17 -0
  4. package/packages/core/tests/Link.test.tsx +41 -0
  5. package/packages/forms/.turbo/turbo-build.log +2 -2
  6. package/packages/helper/.turbo/turbo-build.log +2 -2
  7. package/packages/markdown/.turbo/turbo-build.log +5 -5
  8. package/packages/markdown/README.md +17 -1
  9. package/packages/markdown/dist/index.cjs.js +22 -22
  10. package/packages/markdown/dist/index.es.js +369 -335
  11. package/packages/markdown/dist/types/components/Markdown.d.ts.map +1 -1
  12. package/packages/markdown/dist/types/decorate.d.ts +2 -5
  13. package/packages/markdown/dist/types/decorate.d.ts.map +1 -1
  14. package/packages/markdown/dist/types/marked/attributes.d.ts +4 -7
  15. package/packages/markdown/dist/types/marked/attributes.d.ts.map +1 -1
  16. package/packages/markdown/dist/types/marked/directives/image.d.ts +3 -0
  17. package/packages/markdown/dist/types/marked/directives/image.d.ts.map +1 -0
  18. package/packages/markdown/dist/types/marked/directives/index.d.ts.map +1 -1
  19. package/packages/markdown/dist/types/marked/html.d.ts.map +1 -1
  20. package/packages/markdown/dist/types/marked/registry.d.ts.map +1 -1
  21. package/packages/markdown/dist/types/marked/renderer.d.ts +4 -6
  22. package/packages/markdown/dist/types/marked/renderer.d.ts.map +1 -1
  23. package/packages/markdown/dist/types/marked/tokenizer.d.ts.map +1 -1
  24. package/packages/markdown/dist/types/sanitize.d.ts.map +1 -1
  25. package/packages/markdown/package.json +1 -1
  26. package/packages/markdown/src/components/Markdown.tsx +12 -6
  27. package/packages/markdown/src/decorate.ts +23 -16
  28. package/packages/markdown/src/marked/attributes.ts +4 -7
  29. package/packages/markdown/src/marked/directives/card.ts +2 -2
  30. package/packages/markdown/src/marked/directives/image.ts +29 -0
  31. package/packages/markdown/src/marked/directives/index.ts +2 -0
  32. package/packages/markdown/src/marked/html.ts +17 -4
  33. package/packages/markdown/src/marked/registry.ts +3 -5
  34. package/packages/markdown/src/marked/renderer.ts +7 -9
  35. package/packages/markdown/src/marked/tokenizer.ts +5 -7
  36. package/packages/markdown/src/sanitize.ts +9 -2
  37. package/packages/markdown/tests/__snapshots__/Markdown.test.tsx.snap +61 -61
  38. package/packages/markdown/tests/image.test.ts +64 -0
  39. package/packages/markdown/tests/sanitize.test.ts +17 -0
  40. package/packages/tailwind-theme-plugin/.turbo/turbo-build.log +2 -2
@@ -1,6 +1,6 @@
1
1
  import { styles as E, Ul as Er, Link as ss } from "@sakura-ui/core";
2
- import St from "react";
3
- var _t = { exports: {} }, et = {};
2
+ import Rt from "react";
3
+ var yt = { exports: {} }, et = {};
4
4
  var Zn;
5
5
  function is() {
6
6
  if (Zn) return et;
@@ -117,7 +117,7 @@ function us() {
117
117
  }
118
118
  function o(f, C) {
119
119
  function S() {
120
- ft || (ft = !0, console.error(
120
+ ht || (ht = !0, console.error(
121
121
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
122
122
  C
123
123
  ));
@@ -129,7 +129,7 @@ function us() {
129
129
  }
130
130
  function c() {
131
131
  var f = t(this.type);
132
- return ht[f] || (ht[f] = !0, console.error(
132
+ return dt[f] || (dt[f] = !0, console.error(
133
133
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
134
134
  )), f = this.props.ref, f !== void 0 ? f : null;
135
135
  }
@@ -170,7 +170,7 @@ function us() {
170
170
  var $ = C.children;
171
171
  if ($ !== void 0)
172
172
  if (b)
173
- if (pt($)) {
173
+ if (ft($)) {
174
174
  for (b = 0; b < $.length; b++)
175
175
  m($[b]);
176
176
  Object.freeze && Object.freeze($);
@@ -181,8 +181,8 @@ function us() {
181
181
  else m($);
182
182
  if (de.call(C, "key")) {
183
183
  $ = t(f);
184
- var De = Object.keys(C).filter(function(It) {
185
- return It !== "key";
184
+ var De = Object.keys(C).filter(function(Pt) {
185
+ return Pt !== "key";
186
186
  });
187
187
  b = 0 < De.length ? "{key: someKey, " + De.join(": ..., ") + ": ...}" : "{key: someKey}", Ze[$ + b] || (De = 0 < De.length ? "{" + De.join(": ..., ") + ": ...}" : "{}", console.error(
188
188
  `A props object containing a "key" prop is being spread into JSX:
@@ -220,18 +220,18 @@ React keys must be passed directly to JSX without using spread:
220
220
  function k(f) {
221
221
  return typeof f == "object" && f !== null && f.$$typeof === T;
222
222
  }
223
- var O = St, T = /* @__PURE__ */ Symbol.for("react.transitional.element"), G = /* @__PURE__ */ Symbol.for("react.portal"), U = /* @__PURE__ */ Symbol.for("react.fragment"), te = /* @__PURE__ */ Symbol.for("react.strict_mode"), be = /* @__PURE__ */ Symbol.for("react.profiler"), ke = /* @__PURE__ */ Symbol.for("react.consumer"), ne = /* @__PURE__ */ Symbol.for("react.context"), Q = /* @__PURE__ */ Symbol.for("react.forward_ref"), K = /* @__PURE__ */ Symbol.for("react.suspense"), Ce = /* @__PURE__ */ Symbol.for("react.suspense_list"), We = /* @__PURE__ */ Symbol.for("react.memo"), M = /* @__PURE__ */ Symbol.for("react.lazy"), fe = /* @__PURE__ */ Symbol.for("react.activity"), Ye = /* @__PURE__ */ Symbol.for("react.client.reference"), Oe = O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, de = Object.prototype.hasOwnProperty, pt = Array.isArray, ue = console.createTask ? console.createTask : function() {
223
+ var L = Rt, T = /* @__PURE__ */ Symbol.for("react.transitional.element"), G = /* @__PURE__ */ Symbol.for("react.portal"), U = /* @__PURE__ */ Symbol.for("react.fragment"), te = /* @__PURE__ */ Symbol.for("react.strict_mode"), be = /* @__PURE__ */ Symbol.for("react.profiler"), ke = /* @__PURE__ */ Symbol.for("react.consumer"), ne = /* @__PURE__ */ Symbol.for("react.context"), Q = /* @__PURE__ */ Symbol.for("react.forward_ref"), K = /* @__PURE__ */ Symbol.for("react.suspense"), Ce = /* @__PURE__ */ Symbol.for("react.suspense_list"), We = /* @__PURE__ */ Symbol.for("react.memo"), M = /* @__PURE__ */ Symbol.for("react.lazy"), fe = /* @__PURE__ */ Symbol.for("react.activity"), Ye = /* @__PURE__ */ Symbol.for("react.client.reference"), Oe = L.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, de = Object.prototype.hasOwnProperty, ft = Array.isArray, oe = console.createTask ? console.createTask : function() {
224
224
  return null;
225
225
  };
226
- O = {
226
+ L = {
227
227
  react_stack_bottom_frame: function(f) {
228
228
  return f();
229
229
  }
230
230
  };
231
- var ft, ht = {}, xe = O.react_stack_bottom_frame.bind(
232
- O,
231
+ var ht, dt = {}, xe = L.react_stack_bottom_frame.bind(
232
+ L,
233
233
  u
234
- )(), Le = ue(r(u)), Ze = {};
234
+ )(), Le = oe(r(u)), Ze = {};
235
235
  tt.Fragment = U, tt.jsx = function(f, C, S) {
236
236
  var b = 1e4 > Oe.recentlyCreatedOwnerStacks++;
237
237
  return g(
@@ -240,7 +240,7 @@ React keys must be passed directly to JSX without using spread:
240
240
  S,
241
241
  !1,
242
242
  b ? Error("react-stack-top-frame") : xe,
243
- b ? ue(r(f)) : Le
243
+ b ? oe(r(f)) : Le
244
244
  );
245
245
  }, tt.jsxs = function(f, C, S) {
246
246
  var b = 1e4 > Oe.recentlyCreatedOwnerStacks++;
@@ -250,14 +250,14 @@ React keys must be passed directly to JSX without using spread:
250
250
  S,
251
251
  !0,
252
252
  b ? Error("react-stack-top-frame") : xe,
253
- b ? ue(r(f)) : Le
253
+ b ? oe(r(f)) : Le
254
254
  );
255
255
  };
256
256
  })()), tt;
257
257
  }
258
258
  var Vn;
259
259
  function os() {
260
- return Vn || (Vn = 1, process.env.NODE_ENV === "production" ? _t.exports = is() : _t.exports = us()), _t.exports;
260
+ return Vn || (Vn = 1, process.env.NODE_ENV === "production" ? yt.exports = is() : yt.exports = us()), yt.exports;
261
261
  }
262
262
  var ee = os();
263
263
  function pn() {
@@ -288,9 +288,9 @@ var ls = ((t = "") => {
288
288
  } catch {
289
289
  return !1;
290
290
  }
291
- })(), H = { 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: (t) => new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: je((t) => new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)), hrRegex: je((t) => new RegExp(`^ {0,${t}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)), fencesBeginRegex: je((t) => new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)), headingBeginRegex: je((t) => new RegExp(`^ {0,${t}}#`)), htmlBeginRegex: je((t) => new RegExp(`^ {0,${t}}<(?:[a-z].*>|!--)`, "i")), blockquoteBeginRegex: je((t) => new RegExp(`^ {0,${t}}>`)) }, as = /^(?:[ \t]*(?:\n|$))+/, cs = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, ps = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, at = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, fs = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, fn = / {0,3}(?:[*+-]|\d{1,9}[.)])/, kr = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Cr = x(kr).replace(/bull/g, fn).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}(?:\s|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), hs = x(kr).replace(/bull/g, fn).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}(?:\s|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), hn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/, ds = /^[^\n]+/, dn = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Ds = x(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", dn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), gs = x(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, fn).getRegex(), $t = "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]*?(?:-->|$))/, ms = x("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\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", $t).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), xr = (t) => x(hn).replace("hr", at).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list", t).replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", $t).getRegex(), Fs = xr(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), As = xr(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/), Es = x(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", As).getRegex(), gn = { blockquote: Es, code: cs, def: Ds, fences: ps, heading: fs, hr: at, html: ms, lheading: Cr, list: gs, newline: as, paragraph: Fs, table: Re, text: ds }, Qn = x("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", at).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", $t).getRegex(), bs = { ...gn, lheading: hs, table: Qn, paragraph: x(hn).replace("hr", at).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Qn).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", $t).getRegex() }, ks = { ...gn, html: x(`^ *(?: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: Re, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: x(hn).replace("hr", at).replace("heading", ` *#{1,6} *[^
292
- ]`).replace("lheading", Cr).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Cs = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, xs = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Tr = /^( {2,}|\\)\n(?!\s*$)/, Ts = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, he = /[\p{P}\p{S}]/u, Ge = /[\s\p{P}\p{S}]/u, ct = /[^\s\p{P}\p{S}]/u, _s = x(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Ge).getRegex(), ys = /[\p{Pi}\p{Ps}"']/u, _r = /(?!~)[\p{P}\p{S}]/u, ws = /(?!~)[\s\p{P}\p{S}]/u, Ss = /(?:[^\s\p{P}\p{S}]|~)/u, Rs = x(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", ls ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), yr = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, Bs = x(yr, "u").replace(/punct/g, he).getRegex(), vs = x(yr, "u").replace(/punct/g, _r).getRegex(), Os = /^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/, Ls = x(Os, "u").replace(/openQuote/g, ys).replace(/punct/g, he).getRegex(), wr = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", $s = x(wr, "gu").replace(/notPunctSpace/g, ct).replace(/punctSpace/g, Ge).replace(/punct/g, he).getRegex(), Is = x(wr, "gu").replace(/notPunctSpace/g, Ss).replace(/punctSpace/g, ws).replace(/punct/g, _r).getRegex(), Ps = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)", Ns = x(Ps, "gu").replace(/notPunctSpace/g, ct).replace(/punctSpace/g, Ge).replace(/punct/g, he).getRegex(), Ms = x("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ct).replace(/punctSpace/g, Ge).replace(/punct/g, he).getRegex(), zs = "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)", Us = x(zs, "gu").replace(/notPunctSpace/g, ct).replace(/punctSpace/g, Ge).replace(/punct/g, he).getRegex(), js = x(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, he).getRegex(), Hs = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", qs = x(Hs, "gu").replace(/notPunctSpace/g, ct).replace(/punctSpace/g, Ge).replace(/punct/g, he).getRegex(), Gs = x(/\\(punct)/, "gu").replace(/punct/g, he).getRegex(), Ws = x(/^<(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(), Ys = x(Dn).replace("(?:-->|$)", "-->").getRegex(), Zs = x("^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", Ys).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Rt = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, Xs = x(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", Rt).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Sr = x(/^!?\[(label)\]\[(ref)\]/).replace("label", Rt).replace("ref", dn).getRegex(), Rr = x(/^!?\[(ref)\](?:\[\])?/).replace("ref", dn).getRegex(), Vs = x("reflink|nolink(?!\\()", "g").replace("reflink", Sr).replace("nolink", Rr).getRegex(), Kn = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, mn = { _backpedal: Re, anyPunctuation: Gs, autolink: Ws, blockSkip: Rs, br: Tr, code: xs, del: Re, delLDelim: Re, delRDelim: Re, emStrongLDelim: Bs, emStrongRDelimAst: $s, emStrongRDelimUnd: Ms, escape: Cs, link: Xs, nolink: Rr, punctuation: _s, reflink: Sr, reflinkSearch: Vs, tag: Zs, text: Ts, url: Re }, Qs = { ...mn, emStrongLDelim: Ls, emStrongRDelimAst: Ns, emStrongRDelimUnd: Us, link: x(/^!?\[(label)\]\((.*?)\)/).replace("label", Rt).getRegex(), reflink: x(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Rt).getRegex() }, un = { ...mn, emStrongRDelimAst: Is, emStrongLDelim: vs, delLDelim: js, delRDelim: qs, url: x(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Kn).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: x(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Kn).getRegex() }, Ks = { ...un, br: x(Tr).replace("{2,}", "*").getRegex(), text: x(un.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, yt = { normal: gn, gfm: bs, pedantic: ks }, nt = { normal: mn, gfm: un, breaks: Ks, pedantic: Qs }, Js = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, Jn = (t) => Js[t];
293
- function ce(t, e) {
291
+ })(), H = { 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: (t) => new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: je((t) => new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)), hrRegex: je((t) => new RegExp(`^ {0,${t}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)), fencesBeginRegex: je((t) => new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)), headingBeginRegex: je((t) => new RegExp(`^ {0,${t}}#`)), htmlBeginRegex: je((t) => new RegExp(`^ {0,${t}}<(?:[a-z].*>|!--)`, "i")), blockquoteBeginRegex: je((t) => new RegExp(`^ {0,${t}}>`)) }, as = /^(?:[ \t]*(?:\n|$))+/, cs = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, ps = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, ct = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, fs = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, fn = / {0,3}(?:[*+-]|\d{1,9}[.)])/, kr = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Cr = x(kr).replace(/bull/g, fn).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}(?:\s|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), hs = x(kr).replace(/bull/g, fn).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}(?:\s|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), hn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/, ds = /^[^\n]+/, dn = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Ds = x(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", dn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), gs = x(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, fn).getRegex(), $t = "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]*?(?:-->|$))/, ms = x("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\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", $t).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), xr = (t) => x(hn).replace("hr", ct).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list", t).replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", $t).getRegex(), Fs = xr(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), As = xr(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/), Es = x(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", As).getRegex(), gn = { blockquote: Es, code: cs, def: Ds, fences: ps, heading: fs, hr: ct, html: ms, lheading: Cr, list: gs, newline: as, paragraph: Fs, table: Re, text: ds }, Qn = x("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", ct).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", $t).getRegex(), bs = { ...gn, lheading: hs, table: Qn, paragraph: x(hn).replace("hr", ct).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Qn).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", $t).getRegex() }, ks = { ...gn, html: x(`^ *(?: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: Re, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: x(hn).replace("hr", ct).replace("heading", ` *#{1,6} *[^
292
+ ]`).replace("lheading", Cr).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Cs = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, xs = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Tr = /^( {2,}|\\)\n(?!\s*$)/, Ts = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, he = /[\p{P}\p{S}]/u, Ge = /[\s\p{P}\p{S}]/u, pt = /[^\s\p{P}\p{S}]/u, _s = x(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Ge).getRegex(), ys = /[\p{Pi}\p{Ps}"']/u, _r = /(?!~)[\p{P}\p{S}]/u, ws = /(?!~)[\s\p{P}\p{S}]/u, Ss = /(?:[^\s\p{P}\p{S}]|~)/u, Rs = x(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", ls ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), yr = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, Bs = x(yr, "u").replace(/punct/g, he).getRegex(), vs = x(yr, "u").replace(/punct/g, _r).getRegex(), Os = /^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/, Ls = x(Os, "u").replace(/openQuote/g, ys).replace(/punct/g, he).getRegex(), wr = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", $s = x(wr, "gu").replace(/notPunctSpace/g, pt).replace(/punctSpace/g, Ge).replace(/punct/g, he).getRegex(), Ps = x(wr, "gu").replace(/notPunctSpace/g, Ss).replace(/punctSpace/g, ws).replace(/punct/g, _r).getRegex(), Is = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)", Ns = x(Is, "gu").replace(/notPunctSpace/g, pt).replace(/punctSpace/g, Ge).replace(/punct/g, he).getRegex(), Ms = x("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, pt).replace(/punctSpace/g, Ge).replace(/punct/g, he).getRegex(), zs = "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)", Us = x(zs, "gu").replace(/notPunctSpace/g, pt).replace(/punctSpace/g, Ge).replace(/punct/g, he).getRegex(), js = x(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, he).getRegex(), Hs = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", qs = x(Hs, "gu").replace(/notPunctSpace/g, pt).replace(/punctSpace/g, Ge).replace(/punct/g, he).getRegex(), Gs = x(/\\(punct)/, "gu").replace(/punct/g, he).getRegex(), Ws = x(/^<(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(), Ys = x(Dn).replace("(?:-->|$)", "-->").getRegex(), Zs = x("^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", Ys).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Bt = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, Xs = x(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", Bt).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Sr = x(/^!?\[(label)\]\[(ref)\]/).replace("label", Bt).replace("ref", dn).getRegex(), Rr = x(/^!?\[(ref)\](?:\[\])?/).replace("ref", dn).getRegex(), Vs = x("reflink|nolink(?!\\()", "g").replace("reflink", Sr).replace("nolink", Rr).getRegex(), Kn = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, mn = { _backpedal: Re, anyPunctuation: Gs, autolink: Ws, blockSkip: Rs, br: Tr, code: xs, del: Re, delLDelim: Re, delRDelim: Re, emStrongLDelim: Bs, emStrongRDelimAst: $s, emStrongRDelimUnd: Ms, escape: Cs, link: Xs, nolink: Rr, punctuation: _s, reflink: Sr, reflinkSearch: Vs, tag: Zs, text: Ts, url: Re }, Qs = { ...mn, emStrongLDelim: Ls, emStrongRDelimAst: Ns, emStrongRDelimUnd: Us, link: x(/^!?\[(label)\]\((.*?)\)/).replace("label", Bt).getRegex(), reflink: x(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Bt).getRegex() }, un = { ...mn, emStrongRDelimAst: Ps, emStrongLDelim: vs, delLDelim: js, delRDelim: qs, url: x(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Kn).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: x(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Kn).getRegex() }, Ks = { ...un, br: x(Tr).replace("{2,}", "*").getRegex(), text: x(un.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, wt = { normal: gn, gfm: bs, pedantic: ks }, nt = { normal: mn, gfm: un, breaks: Ks, pedantic: Qs }, Js = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, Jn = (t) => Js[t];
293
+ function pe(t, e) {
294
294
  if (e) {
295
295
  if (H.escapeTest.test(t)) return t.replace(H.escapeReplace, Jn);
296
296
  } else if (H.escapeTestNoEncode.test(t)) return t.replace(H.escapeReplaceNoEncode, Jn);
@@ -365,7 +365,7 @@ function ni(t, e, n) {
365
365
  }).join(`
366
366
  `);
367
367
  }
368
- var Bt = class {
368
+ var vt = class {
369
369
  options;
370
370
  rules;
371
371
  lexer;
@@ -430,17 +430,17 @@ ${g}` : g;
430
430
  let k = u.at(-1);
431
431
  if (k?.type === "code") break;
432
432
  if (k?.type === "blockquote") {
433
- let O = k, T = n.join(`
434
- `), G = O.raw + `
433
+ let L = k, T = n.join(`
434
+ `), G = L.raw + `
435
435
  ` + T.replace(this.rules.other.blockquoteSetextReplace2, ""), U = this.blockquote(G);
436
436
  u[u.length - 1] = U, r = `${r}
437
- ${T}`, s = s.substring(0, s.length - O.text.length) + U.text;
437
+ ${T}`, s = s.substring(0, s.length - L.text.length) + U.text;
438
438
  break;
439
439
  } else if (k?.type === "list") {
440
- let O = k, T = O.raw + `
440
+ let L = k, T = L.raw + `
441
441
  ` + n.join(`
442
442
  `), G = this.list(T);
443
- u[u.length - 1] = G, r = r.substring(0, r.length - k.raw.length) + G.raw, s = s.substring(0, s.length - O.raw.length) + G.raw, n = T.substring(u.at(-1).raw.length).split(`
443
+ u[u.length - 1] = G, r = r.substring(0, r.length - k.raw.length) + G.raw, s = s.substring(0, s.length - L.raw.length) + G.raw, n = T.substring(u.at(-1).raw.length).split(`
444
444
  `);
445
445
  continue;
446
446
  }
@@ -460,8 +460,8 @@ ${T}`, s = s.substring(0, s.length - O.text.length) + U.text;
460
460
  h = e[0], t = t.substring(h.length);
461
461
  let m = ti(e[2].split(`
462
462
  `, 1)[0], e[1].length), k = t.split(`
463
- `, 1)[0], O = !m.trim(), T = 0;
464
- if (this.options.pedantic ? (T = 2, g = m.trimStart()) : O ? T = e[1].length + 1 : (T = m.search(this.rules.other.nonSpaceChar), T = T > 4 ? 1 : T, g = m.slice(T), T += e[1].length), O && this.rules.other.blankLine.test(k) && (h += k + `
463
+ `, 1)[0], L = !m.trim(), T = 0;
464
+ if (this.options.pedantic ? (T = 2, g = m.trimStart()) : L ? T = e[1].length + 1 : (T = m.search(this.rules.other.nonSpaceChar), T = T > 4 ? 1 : T, g = m.slice(T), T += e[1].length), L && this.rules.other.blankLine.test(k) && (h += k + `
465
465
  `, t = t.substring(k.length + 1), c = !0), !c) {
466
466
  let G = this.rules.other.nextBulletRegex(T), U = this.rules.other.hrRegex(T), te = this.rules.other.fencesBeginRegex(T), be = this.rules.other.headingBeginRegex(T), ke = this.rules.other.htmlBeginRegex(T), ne = this.rules.other.blockquoteBeginRegex(T);
467
467
  for (; t; ) {
@@ -471,11 +471,11 @@ ${T}`, s = s.substring(0, s.length - O.text.length) + U.text;
471
471
  if (K.search(this.rules.other.nonSpaceChar) >= T || !k.trim()) g += `
472
472
  ` + K.slice(T);
473
473
  else {
474
- if (O || m.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || te.test(m) || be.test(m) || U.test(m)) break;
474
+ if (L || m.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || te.test(m) || be.test(m) || U.test(m)) break;
475
475
  g += `
476
476
  ` + k;
477
477
  }
478
- O = !k.trim(), h += Q + `
478
+ L = !k.trim(), h += Q + `
479
479
  `, t = t.substring(Q.length + 1), m = K.slice(T);
480
480
  }
481
481
  }
@@ -620,13 +620,13 @@ ${T}`, s = s.substring(0, s.length - O.text.length) + U.text;
620
620
  }
621
621
  if (o -= l, o > 0) continue;
622
622
  l = Math.min(l, l + o + c);
623
- let k = [...r[0]][0].length, O = t.slice(0, s + r.index + k + l);
623
+ let k = [...r[0]][0].length, L = t.slice(0, s + r.index + k + l);
624
624
  if (Math.min(s, l) % 2) {
625
- let G = O.slice(1, -1);
626
- return { type: "em", raw: O, text: G, tokens: this.lexer.inlineTokens(G) };
625
+ let G = L.slice(1, -1);
626
+ return { type: "em", raw: L, text: G, tokens: this.lexer.inlineTokens(G) };
627
627
  }
628
- let T = O.slice(2, -2);
629
- return { type: "strong", raw: O, text: T, tokens: this.lexer.inlineTokens(T) };
628
+ let T = L.slice(2, -2);
629
+ return { type: "strong", raw: L, text: T, tokens: this.lexer.inlineTokens(T) };
630
630
  }
631
631
  }
632
632
  }
@@ -687,19 +687,19 @@ ${T}`, s = s.substring(0, s.length - O.text.length) + U.text;
687
687
  return { type: "text", raw: e[0], text: e[0], escaped: n };
688
688
  }
689
689
  }
690
- }, se = class on {
690
+ }, ie = class on {
691
691
  tokens;
692
692
  options;
693
693
  state;
694
694
  inlineQueue;
695
695
  tokenizer;
696
696
  constructor(e) {
697
- this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || ve, this.options.tokenizer = this.options.tokenizer || new Bt(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: !1, inRawBlock: !1, top: !0 };
698
- let n = { other: H, block: yt.normal, inline: nt.normal };
699
- this.options.pedantic ? (n.block = yt.pedantic, n.inline = nt.pedantic) : this.options.gfm && (n.block = yt.gfm, this.options.breaks ? n.inline = nt.breaks : n.inline = nt.gfm), this.tokenizer.rules = n;
697
+ this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || ve, this.options.tokenizer = this.options.tokenizer || new vt(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: !1, inRawBlock: !1, top: !0 };
698
+ let n = { other: H, block: wt.normal, inline: nt.normal };
699
+ this.options.pedantic ? (n.block = wt.pedantic, n.inline = nt.pedantic) : this.options.gfm && (n.block = wt.gfm, this.options.breaks ? n.inline = nt.breaks : n.inline = nt.gfm), this.tokenizer.rules = n;
700
700
  }
701
701
  static get rules() {
702
- return { block: yt, inline: nt };
702
+ return { block: wt, inline: nt };
703
703
  }
704
704
  static lex(e, n) {
705
705
  return new on(n).lex(e);
@@ -906,7 +906,7 @@ ${T}`, s = s.substring(0, s.length - O.text.length) + U.text;
906
906
  if (this.options.silent) console.error(n);
907
907
  else throw new Error(n);
908
908
  }
909
- }, vt = class {
909
+ }, Ot = class {
910
910
  options;
911
911
  parser;
912
912
  constructor(t) {
@@ -918,8 +918,8 @@ ${T}`, s = s.substring(0, s.length - O.text.length) + U.text;
918
918
  code({ text: t, lang: e, escaped: n }) {
919
919
  let r = (e || "").match(H.notSpaceStart)?.[0], s = t.replace(H.endingNewline, "") + `
920
920
  `;
921
- return r ? '<pre><code class="language-' + ce(r) + '">' + (n ? s : ce(s, !0)) + `</code></pre>
922
- ` : "<pre><code>" + (n ? s : ce(s, !0)) + `</code></pre>
921
+ return r ? '<pre><code class="language-' + pe(r) + '">' + (n ? s : pe(s, !0)) + `</code></pre>
922
+ ` : "<pre><code>" + (n ? s : pe(s, !0)) + `</code></pre>
923
923
  `;
924
924
  }
925
925
  blockquote({ tokens: t }) {
@@ -997,7 +997,7 @@ ${t}</tr>
997
997
  return `<em>${this.parser.parseInline(t)}</em>`;
998
998
  }
999
999
  codespan({ text: t }) {
1000
- return `<code>${ce(t, !0)}</code>`;
1000
+ return `<code>${pe(t, !0)}</code>`;
1001
1001
  }
1002
1002
  br(t) {
1003
1003
  return "<br>";
@@ -1010,18 +1010,18 @@ ${t}</tr>
1010
1010
  if (s === null) return r;
1011
1011
  t = s;
1012
1012
  let u = '<a href="' + t + '"';
1013
- return e && (u += ' title="' + ce(e) + '"'), u += ">" + r + "</a>", u;
1013
+ return e && (u += ' title="' + pe(e) + '"'), u += ">" + r + "</a>", u;
1014
1014
  }
1015
1015
  image({ href: t, title: e, text: n, tokens: r }) {
1016
1016
  r && (n = this.parser.parseInline(r, this.parser.textRenderer));
1017
1017
  let s = er(t);
1018
- if (s === null) return ce(n);
1018
+ if (s === null) return pe(n);
1019
1019
  t = s;
1020
- let u = `<img src="${t}" alt="${ce(n)}"`;
1021
- return e && (u += ` title="${ce(e)}"`), u += ">", u;
1020
+ let u = `<img src="${t}" alt="${pe(n)}"`;
1021
+ return e && (u += ` title="${pe(e)}"`), u += ">", u;
1022
1022
  }
1023
1023
  text(t) {
1024
- return "tokens" in t && t.tokens ? this.parser.parseInline(t.tokens) : "escaped" in t && t.escaped ? t.text : ce(t.text);
1024
+ return "tokens" in t && t.tokens ? this.parser.parseInline(t.tokens) : "escaped" in t && t.escaped ? t.text : pe(t.text);
1025
1025
  }
1026
1026
  }, Fn = class {
1027
1027
  strong({ text: t }) {
@@ -1054,12 +1054,12 @@ ${t}</tr>
1054
1054
  checkbox({ raw: t }) {
1055
1055
  return t;
1056
1056
  }
1057
- }, ie = class ln {
1057
+ }, ue = class ln {
1058
1058
  options;
1059
1059
  renderer;
1060
1060
  textRenderer;
1061
1061
  constructor(e) {
1062
- this.options = e || ve, this.options.renderer = this.options.renderer || new vt(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Fn();
1062
+ this.options = e || ve, this.options.renderer = this.options.renderer || new Ot(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Fn();
1063
1063
  }
1064
1064
  static parse(e, n) {
1065
1065
  return new ln(n).parse(e);
@@ -1226,21 +1226,21 @@ ${t}</tr>
1226
1226
  return t;
1227
1227
  }
1228
1228
  provideLexer(t = this.block) {
1229
- return t ? se.lex : se.lexInline;
1229
+ return t ? ie.lex : ie.lexInline;
1230
1230
  }
1231
1231
  provideParser(t = this.block) {
1232
- return t ? ie.parse : ie.parseInline;
1232
+ return t ? ue.parse : ue.parseInline;
1233
1233
  }
1234
1234
  }, Br = class {
1235
1235
  defaults = pn();
1236
1236
  options = this.setOptions;
1237
1237
  parse = this.parseMarkdown(!0);
1238
1238
  parseInline = this.parseMarkdown(!1);
1239
- Parser = ie;
1240
- Renderer = vt;
1239
+ Parser = ue;
1240
+ Renderer = Ot;
1241
1241
  TextRenderer = Fn;
1242
- Lexer = se;
1243
- Tokenizer = Bt;
1242
+ Lexer = ie;
1243
+ Tokenizer = vt;
1244
1244
  Hooks = ot;
1245
1245
  constructor(...t) {
1246
1246
  this.use(...t);
@@ -1289,7 +1289,7 @@ ${t}</tr>
1289
1289
  }
1290
1290
  "childTokens" in s && s.childTokens && (e.childTokens[s.name] = s.childTokens);
1291
1291
  }), r.extensions = e), n.renderer) {
1292
- let s = this.defaults.renderer || new vt(this.defaults);
1292
+ let s = this.defaults.renderer || new Ot(this.defaults);
1293
1293
  for (let u in n.renderer) {
1294
1294
  if (!(u in s)) throw new Error(`renderer '${u}' does not exist`);
1295
1295
  if (["options", "parser"].includes(u)) continue;
@@ -1302,7 +1302,7 @@ ${t}</tr>
1302
1302
  r.renderer = s;
1303
1303
  }
1304
1304
  if (n.tokenizer) {
1305
- let s = this.defaults.tokenizer || new Bt(this.defaults);
1305
+ let s = this.defaults.tokenizer || new vt(this.defaults);
1306
1306
  for (let u in n.tokenizer) {
1307
1307
  if (!(u in s)) throw new Error(`tokenizer '${u}' does not exist`);
1308
1308
  if (["options", "rules", "lexer"].includes(u)) continue;
@@ -1352,10 +1352,10 @@ ${t}</tr>
1352
1352
  return this.defaults = { ...this.defaults, ...t }, this;
1353
1353
  }
1354
1354
  lexer(t, e) {
1355
- return se.lex(t, e ?? this.defaults);
1355
+ return ie.lex(t, e ?? this.defaults);
1356
1356
  }
1357
1357
  parser(t, e) {
1358
- return ie.parse(t, e ?? this.defaults);
1358
+ return ue.parse(t, e ?? this.defaults);
1359
1359
  }
1360
1360
  parseMarkdown(t) {
1361
1361
  return (e, n) => {
@@ -1364,16 +1364,16 @@ ${t}</tr>
1364
1364
  if (typeof e > "u" || e === null) return u(new Error("marked(): input parameter is undefined or null"));
1365
1365
  if (typeof e != "string") return u(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(e) + ", string expected"));
1366
1366
  if (s.hooks && (s.hooks.options = s, s.hooks.block = t), s.async) return (async () => {
1367
- let l = s.hooks ? await s.hooks.preprocess(e) : e, o = await (s.hooks ? await s.hooks.provideLexer(t) : t ? se.lex : se.lexInline)(l, s), c = s.hooks ? await s.hooks.processAllTokens(o) : o;
1367
+ let l = s.hooks ? await s.hooks.preprocess(e) : e, o = await (s.hooks ? await s.hooks.provideLexer(t) : t ? ie.lex : ie.lexInline)(l, s), c = s.hooks ? await s.hooks.processAllTokens(o) : o;
1368
1368
  s.walkTokens && await Promise.all(this.walkTokens(c, s.walkTokens));
1369
- let h = await (s.hooks ? await s.hooks.provideParser(t) : t ? ie.parse : ie.parseInline)(c, s);
1369
+ let h = await (s.hooks ? await s.hooks.provideParser(t) : t ? ue.parse : ue.parseInline)(c, s);
1370
1370
  return s.hooks ? await s.hooks.postprocess(h) : h;
1371
1371
  })().catch(u);
1372
1372
  try {
1373
1373
  s.hooks && (e = s.hooks.preprocess(e));
1374
- let l = (s.hooks ? s.hooks.provideLexer(t) : t ? se.lex : se.lexInline)(e, s);
1374
+ let l = (s.hooks ? s.hooks.provideLexer(t) : t ? ie.lex : ie.lexInline)(e, s);
1375
1375
  s.hooks && (l = s.hooks.processAllTokens(l)), s.walkTokens && this.walkTokens(l, s.walkTokens);
1376
- let o = (s.hooks ? s.hooks.provideParser(t) : t ? ie.parse : ie.parseInline)(l, s);
1376
+ let o = (s.hooks ? s.hooks.provideParser(t) : t ? ue.parse : ue.parseInline)(l, s);
1377
1377
  return s.hooks && (o = s.hooks.postprocess(o)), o;
1378
1378
  } catch (l) {
1379
1379
  return u(l);
@@ -1384,7 +1384,7 @@ ${t}</tr>
1384
1384
  return (n) => {
1385
1385
  if (n.message += `
1386
1386
  Please report this to https://github.com/markedjs/marked.`, t) {
1387
- let r = "<p>An error occurred:</p><pre>" + ce(n.message + "", !0) + "</pre>";
1387
+ let r = "<p>An error occurred:</p><pre>" + pe(n.message + "", !0) + "</pre>";
1388
1388
  return e ? Promise.resolve(r) : r;
1389
1389
  }
1390
1390
  if (e) return Promise.reject(n);
@@ -1408,21 +1408,21 @@ y.walkTokens = function(t, e) {
1408
1408
  return Be.walkTokens(t, e);
1409
1409
  };
1410
1410
  y.parseInline = Be.parseInline;
1411
- y.Parser = ie;
1412
- y.parser = ie.parse;
1413
- y.Renderer = vt;
1411
+ y.Parser = ue;
1412
+ y.parser = ue.parse;
1413
+ y.Renderer = Ot;
1414
1414
  y.TextRenderer = Fn;
1415
- y.Lexer = se;
1416
- y.lexer = se.lex;
1417
- y.Tokenizer = Bt;
1415
+ y.Lexer = ie;
1416
+ y.lexer = ie.lex;
1417
+ y.Tokenizer = vt;
1418
1418
  y.Hooks = ot;
1419
1419
  y.parse = y;
1420
1420
  y.options;
1421
1421
  y.setOptions;
1422
1422
  y.walkTokens;
1423
1423
  y.parseInline;
1424
- ie.parse;
1425
- se.lex;
1424
+ ue.parse;
1425
+ ie.lex;
1426
1426
  const si = /[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g, ii = Object.hasOwnProperty;
1427
1427
  class ui {
1428
1428
  /**
@@ -1474,12 +1474,14 @@ const li = {
1474
1474
  }, ai = (t) => String(t).replace(/[&<>"']/g, (e) => li[e] ?? e), ci = (t) => Array.from(t).filter((e) => {
1475
1475
  const n = e.codePointAt(0) ?? 0;
1476
1476
  return n > 31 && n !== 127;
1477
- }).join(""), Ot = (t) => {
1477
+ }).join(""), at = (t) => {
1478
1478
  if (t == null || t === "") return;
1479
1479
  const e = ci(String(t)).trim();
1480
1480
  if (!/^(?:javascript|vbscript|file):/i.test(e) && !/^data:/i.test(e))
1481
1481
  return e;
1482
- }, pi = (t) => Object.entries(t).filter(([, e]) => e != null && e !== !1 && e !== "").map(([e, n]) => n === !0 ? ` ${e}` : ` ${e}="${ai(n)}"`).join(""), L = (...t) => t.filter(Boolean).join(" ").split(/\s+/).filter(Boolean).join(" "), fi = {
1482
+ }, pi = /* @__PURE__ */ new Set(["alt"]), fi = (t) => Object.entries(t).filter(
1483
+ ([e, n]) => n != null && n !== !1 && (n !== "" || pi.has(e))
1484
+ ).map(([e, n]) => n === !0 ? ` ${e}` : ` ${e}="${ai(n)}"`).join(""), O = (...t) => t.filter(Boolean).join(" ").split(/\s+/).filter(Boolean).join(" "), hi = {
1483
1485
  h1: E.headingStyle.h1,
1484
1486
  h2: E.headingStyle.h2,
1485
1487
  h3: E.headingStyle.h3,
@@ -1492,30 +1494,36 @@ const li = {
1492
1494
  code: E.codeStyle,
1493
1495
  table: E.tableBorderStyle,
1494
1496
  caption: E.captionStyle,
1495
- th: L(E.thStyle, E.tableBorderStyle),
1497
+ th: O(E.thStyle, E.tableBorderStyle),
1496
1498
  tr: E.tableBorderStyle,
1497
- td: L(E.tdStyle, E.tableBorderStyle),
1499
+ td: O(E.tdStyle, E.tableBorderStyle),
1498
1500
  a: E.linkStyle
1499
- }, hi = (t) => t.hasAttribute("data-sakura"), di = (t, e) => {
1500
- const n = L(t.getAttribute("class") ?? "", e);
1501
+ }, di = (t) => t.hasAttribute("data-styled"), Di = (t) => Array.from(
1502
+ /* @__PURE__ */ new Set([
1503
+ "noopener",
1504
+ "noreferrer",
1505
+ ...(t ?? "").split(/\s+/).filter(Boolean)
1506
+ ])
1507
+ ).join(" "), gi = (t, e) => {
1508
+ const n = O(t.getAttribute("class") ?? "", e);
1501
1509
  n && t.setAttribute("class", n);
1502
- }, Di = /* @__PURE__ */ new Set(["h1", "h2", "h3", "h4", "h5", "h6"]), gi = (t, e) => {
1503
- if (t.querySelector("[data-sakura-new-tab]")) return;
1510
+ }, mi = /* @__PURE__ */ new Set(["h1", "h2", "h3", "h4", "h5", "h6"]), Fi = (t, e) => {
1511
+ if (t.querySelector("[data-new-tab]")) return;
1504
1512
  const n = e.createElement("span");
1505
- n.setAttribute("aria-hidden", "true"), n.setAttribute("data-sakura-new-tab", "true"), n.setAttribute(
1513
+ n.setAttribute("aria-hidden", "true"), n.setAttribute("data-new-tab", "true"), n.setAttribute(
1506
1514
  "class",
1507
- L(E.iconSizeStyle[16], E.iconStyle, "ml-0.5")
1515
+ O(E.iconSizeStyle[16], E.iconStyle, "ml-0.5")
1508
1516
  ), n.textContent = "open_in_new";
1509
1517
  const r = e.createElement("span");
1510
1518
  r.setAttribute("class", "sr-only"), r.textContent = "Opens in new tab", t.append(n, r);
1511
- }, mi = (t) => Math.min(6, Math.max(1, t)), Fi = (t, e, n) => {
1519
+ }, Ai = (t) => Math.min(6, Math.max(1, t)), Ei = (t, e, n) => {
1512
1520
  const { shiftHeading: r, tocMaxDepth: s } = n, u = new ui(), l = [];
1513
1521
  if (r !== 0)
1514
1522
  for (const o of Array.from(
1515
1523
  t.querySelectorAll("h1,h2,h3,h4,h5,h6")
1516
1524
  )) {
1517
1525
  const c = Number(o.tagName[1]), h = e.createElement(
1518
- `h${mi(c + r)}`
1526
+ `h${Ai(c + r)}`
1519
1527
  );
1520
1528
  for (const g of Array.from(o.attributes))
1521
1529
  h.setAttribute(g.name, g.value);
@@ -1523,26 +1531,26 @@ const li = {
1523
1531
  }
1524
1532
  for (const o of Array.from(t.querySelectorAll("*"))) {
1525
1533
  const c = o.tagName.toLowerCase();
1526
- if (Di.has(c)) {
1534
+ if (mi.has(c)) {
1527
1535
  const g = o.textContent ?? "", m = o.getAttribute("id");
1528
1536
  m && u.slug(m);
1529
1537
  const k = m || u.slug(g);
1530
1538
  o.setAttribute("id", k), l.push({ id: k, depth: Number(c[1]) - r, value: g });
1531
1539
  }
1532
- if (hi(o)) continue;
1533
- c === "a" && ((o.getAttribute("href") ?? "").startsWith("http") || o.getAttribute("target") === "_blank") && (o.setAttribute("target", "_blank"), o.setAttribute("rel", "noopener noreferrer"), gi(o, e));
1534
- const h = fi[c];
1535
- h && di(o, h);
1540
+ if (di(o)) continue;
1541
+ c === "a" && ((o.getAttribute("href") ?? "").startsWith("http") || o.getAttribute("target") === "_blank") && (o.setAttribute("target", "_blank"), o.setAttribute("rel", Di(o.getAttribute("rel"))), Fi(o, e));
1542
+ const h = hi[c];
1543
+ h && gi(o, h);
1536
1544
  }
1537
1545
  for (const o of Array.from(t.querySelectorAll("table"))) {
1538
- if (o.parentElement?.dataset?.sakuraTableContainer === "true") continue;
1546
+ if (o.parentElement?.dataset?.tableContainer === "true") continue;
1539
1547
  const h = e.createElement("div");
1540
- h.setAttribute("class", L(E.overflowContainerStyle)), h.dataset.sakuraTableContainer = "true", o.replaceWith(h), h.appendChild(o);
1548
+ h.setAttribute("class", O(E.overflowContainerStyle)), h.dataset.tableContainer = "true", o.replaceWith(h), h.appendChild(o);
1541
1549
  }
1542
1550
  return {
1543
1551
  headings: l.filter((o) => o.depth <= s)
1544
1552
  };
1545
- }, Kt = /([#.])?([A-Za-z_:][-A-Za-z0-9_.:]*)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'{}]+)))?/g, vr = "#id", Ai = (t) => {
1553
+ }, Kt = /([#.])?([A-Za-z_:][-A-Za-z0-9_.:]*)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'{}]+)))?/g, vr = "#id", bi = (t) => {
1546
1554
  const e = {};
1547
1555
  if (!t) return e;
1548
1556
  Kt.lastIndex = 0;
@@ -1575,26 +1583,27 @@ const li = {
1575
1583
  r && (n = r.value, e = r.end);
1576
1584
  let s = {};
1577
1585
  const u = sr(t, e, "{", "}");
1578
- return u && (s = Ai(u.value), e = u.end), { label: n, attrs: s, end: e };
1579
- }, J = "container", pe = "leaf", Lt = "text", Ei = {
1586
+ return u && (s = bi(u.value), e = u.end), { label: n, attrs: s, end: e };
1587
+ }, J = "container", se = "leaf", Lt = "text", ki = {
1580
1588
  card: [J],
1581
- "card-img": [pe],
1582
- "card-title": [pe, J],
1583
- "card-description": [pe, J],
1584
- "card-footer": [pe, J],
1589
+ "card-img": [se],
1590
+ "card-title": [se, J],
1591
+ "card-description": [se, J],
1592
+ "card-footer": [se, J],
1585
1593
  faq: [J],
1586
- "faq-q": [pe, J],
1587
- "faq-a": [pe, J],
1594
+ "faq-q": [se, J],
1595
+ "faq-a": [se, J],
1588
1596
  cell: [J],
1589
- "cell-img": [pe],
1590
- youtube: [pe, J],
1597
+ "cell-img": [se],
1598
+ img: [se],
1599
+ youtube: [se, J],
1591
1600
  "link-button": [Lt]
1592
- }, Lr = /^grid-cols-(?:1[0-2]|[1-9])$/, $r = (t, e) => Lr.test(t) ? e === J : (Ei[t] ?? []).includes(e), bi = L(E.cardImgStyle, "w-full aspect-[352/226]"), ki = (t, e) => `<span aria-hidden="true" class="${L(
1601
+ }, Lr = /^grid-cols-(?:1[0-2]|[1-9])$/, $r = (t, e) => Lr.test(t) ? e === J : (ki[t] ?? []).includes(e), Ci = O(E.cardImgStyle, "w-full aspect-[352/226]"), xi = (t, e) => `<span aria-hidden="true" class="${O(
1593
1602
  E.iconSizeStyle[16],
1594
1603
  E.iconStyle
1595
- )}">${t}</span><span class="sr-only">${e}</span>`, Ci = {
1604
+ )}">${t}</span><span class="sr-only">${e}</span>`, Ti = {
1596
1605
  card: ({ token: t, attrs: e, root: n, body: r, nl: s }) => {
1597
- const u = !!t.linked, l = L(
1606
+ const u = !!t.linked, l = O(
1598
1607
  E.cardStyle,
1599
1608
  u && E.linkCardPositionStyle,
1600
1609
  u && E.linkCardHoverStyle,
@@ -1604,52 +1613,62 @@ const li = {
1604
1613
  return t.listed ? `<li class="sm:grid">${o}</li>${s}` : `${o}${s}`;
1605
1614
  },
1606
1615
  "card-img": ({ attrs: t, root: e, nl: n }) => `<img${e({
1607
- class: L(bi, t.class),
1608
- src: Ot(t.src),
1616
+ class: O(Ci, t.class),
1617
+ src: at(t.src),
1609
1618
  alt: t.alt ?? ""
1610
1619
  })}>${n}`,
1611
1620
  "card-title": ({ token: t, attrs: e, root: n, own: r, body: s, nl: u, options: l }) => {
1612
- const o = l.cardHeadingLevel, c = t.inherited ? Ot(t.inherited.href) : void 0;
1621
+ const o = l.cardHeadingLevel, c = t.inherited ? at(t.inherited.href) : void 0;
1613
1622
  return c ? `<${o}${n({
1614
- class: L(E.cardHeaderStyle, E.linkCardHeadingStyle)
1623
+ class: O(E.cardHeaderStyle, E.linkCardHeadingStyle)
1615
1624
  })}><a${r({
1616
- class: L(E.linkCardOverlayStyle),
1625
+ class: O(E.linkCardOverlayStyle),
1617
1626
  href: c
1618
1627
  })}>${s()}</a></${o}>${u}` : `<${o}${n({
1619
- class: L(E.cardHeaderStyle, e.class)
1628
+ class: O(E.cardHeaderStyle, e.class)
1620
1629
  })}>${s()}</${o}>${u}`;
1621
1630
  },
1622
1631
  "card-description": ({ attrs: t, root: e, body: n, nl: r }) => `<div${e({
1623
- class: L(E.cardBodyStyle, t.class)
1632
+ class: O(E.cardBodyStyle, t.class)
1624
1633
  })}>${n()}</div>${r}`,
1625
1634
  "card-footer": ({ token: t, attrs: e, root: n, body: r, nl: s }) => {
1626
- const u = !!t.inherited, l = L(
1635
+ const u = !!t.inherited, l = O(
1627
1636
  E.cardFooterPositionStyle,
1628
1637
  E.cardBodyStyle,
1629
1638
  u && E.linkCardFooterStyle,
1630
1639
  e.class
1631
1640
  );
1632
1641
  if (u) {
1633
- const o = `<span class="${L(
1642
+ const o = `<span class="${O(
1634
1643
  E.linkCardArrowStyle,
1635
1644
  E.linkCardArrowHoverStyle
1636
- )}">${ki("arrow_forward", "")}</span>`;
1645
+ )}">${xi("arrow_forward", "")}</span>`;
1637
1646
  return `<div${n({ class: l })}><span>${r()}</span>${o}</div>${s}`;
1638
1647
  }
1639
1648
  return `<div${n({ class: l })}>${r()}</div>${s}`;
1640
1649
  }
1641
- }, xi = {
1642
- faq: ({ root: t, body: e, nl: n }) => `<dl${t({ class: L(E.faqStyle) })}>${e()}</dl>${n}`,
1650
+ }, _i = {
1651
+ faq: ({ root: t, body: e, nl: n }) => `<dl${t({ class: O(E.faqStyle) })}>${e()}</dl>${n}`,
1643
1652
  "faq-q": ({ root: t, body: e, nl: n }) => `<dt${t({
1644
- class: L(E.questionStyle, E.faqMarkerStyle)
1653
+ class: O(E.questionStyle, E.faqMarkerStyle)
1645
1654
  })}><span aria-hidden="true">Q</span><span>${e()}</span></dt>${n}`,
1646
1655
  "faq-a": ({ root: t, body: e, nl: n }) => `<dd${t({
1647
- class: L(E.answerStyle)
1648
- })}><span class="${L(
1656
+ class: O(E.answerStyle)
1657
+ })}><span class="${O(
1649
1658
  E.faqMarkerStyle,
1650
1659
  "!leading-none"
1651
1660
  )}" aria-hidden="true">A</span><span>${e()}</span></dd>${n}`
1652
- }, Ti = {
1661
+ }, yi = (t, e) => {
1662
+ const n = [];
1663
+ return t && n.push(`width:${t}px`), e && n.push(`height:${e}px`), t && n.push("max-width:100%"), n.length > 0 ? n.join(";") : void 0;
1664
+ }, wi = {
1665
+ img: ({ attrs: t, root: e, nl: n }) => `<img${e({
1666
+ class: O(t.class),
1667
+ src: at(t.src),
1668
+ alt: t.alt ?? "",
1669
+ style: yi(t.width, t.height)
1670
+ })}>${n}`
1671
+ }, Si = {
1653
1672
  1: "md:grid-cols-1",
1654
1673
  2: "md:grid-cols-2",
1655
1674
  3: "md:grid-cols-3",
@@ -1662,54 +1681,55 @@ const li = {
1662
1681
  10: "md:grid-cols-6",
1663
1682
  11: "md:grid-cols-6",
1664
1683
  12: "md:grid-cols-12"
1665
- }, _i = ({ token: t, root: e, body: n, nl: r }) => {
1666
- const s = Number(t.name.slice(10)), u = L(
1684
+ }, Ri = ({ token: t, root: e, body: n, nl: r }) => {
1685
+ const s = Number(t.name.slice(10)), u = O(
1667
1686
  "flex flex-col md:grid",
1668
- Ti[s],
1687
+ Si[s],
1669
1688
  "gap-8"
1670
1689
  ), l = t.listed ? "ul" : "div";
1671
1690
  return `<${l}${e({ class: u })}>${n()}</${l}>${r}`;
1672
- }, yi = {
1691
+ }, Bi = {
1673
1692
  cell: ({ attrs: t, root: e, body: n, nl: r }) => `<div${e({ class: t.class })}>${n()}</div>${r}`,
1674
1693
  "cell-img": ({ attrs: t, root: e, nl: n }) => `<img${e({
1675
- class: L("mb-4", t.class),
1676
- src: Ot(t.src),
1694
+ class: O("mb-4", t.class),
1695
+ src: at(t.src),
1677
1696
  alt: t.alt ?? ""
1678
1697
  })}>${n}`
1679
- }, wi = L(
1698
+ }, vi = O(
1680
1699
  E.buttonBaseStyle,
1681
1700
  E.getButtonVariantStyle("secondary"),
1682
1701
  E.getButtonSizeStyle("lg")
1683
- ), Si = {
1702
+ ), Oi = {
1684
1703
  "link-button": ({ attrs: t, root: e, body: n }) => `<a${e({
1685
- class: wi,
1686
- href: Ot(t.href)
1704
+ class: vi,
1705
+ href: at(t.href)
1687
1706
  })}>${n()}</a>`
1688
- }, Ri = "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture", Bi = "strict-origin-when-cross-origin", vi = /^[\w-]{11}$/, Oi = /(?:youtu\.be\/|[?&]v=|\/embed\/|\/shorts\/)([\w-]{11})/, Li = (t) => t ? vi.test(t) ? t : Oi.exec(t)?.[1] ?? t : "", $i = {
1707
+ }, Li = "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture", $i = "strict-origin-when-cross-origin", Pi = /^[\w-]{11}$/, Ii = /(?:youtu\.be\/|[?&]v=|\/embed\/|\/shorts\/)([\w-]{11})/, Ni = (t) => t ? Pi.test(t) ? t : Ii.exec(t)?.[1] ?? t : "", Mi = {
1689
1708
  youtube: ({ token: t, attrs: e, root: n, nl: r, parser: s }) => {
1690
1709
  const u = s.parseInline(t.tokens, s.textRenderer);
1691
1710
  return `<iframe${n({
1692
1711
  title: u,
1693
- src: `https://www.youtube-nocookie.com/embed/${encodeURIComponent(Li(e.video))}`,
1712
+ src: `https://www.youtube-nocookie.com/embed/${encodeURIComponent(Ni(e.video))}`,
1694
1713
  class: "aspect-video w-full max-w-[470px]",
1695
1714
  style: e.width ? `width:${e.width}px` : void 0,
1696
1715
  frameborder: "0",
1697
- allow: Ri,
1698
- referrerpolicy: Bi,
1716
+ allow: Li,
1717
+ referrerpolicy: $i,
1699
1718
  allowfullscreen: !0,
1700
1719
  loading: "lazy"
1701
1720
  })}></iframe>${r}`;
1702
1721
  }
1703
- }, Ii = {
1704
- ...Ci,
1705
- ...yi,
1706
- ...xi,
1707
- ...$i,
1708
- ...Si
1709
- }, Pi = (t) => Ii[t] ?? (Lr.test(t) ? _i : void 0);
1710
- function Ni(t, e) {
1722
+ }, zi = {
1723
+ ...Ti,
1724
+ ...Bi,
1725
+ ..._i,
1726
+ ...wi,
1727
+ ...Mi,
1728
+ ...Oi
1729
+ }, Ui = (t) => zi[t] ?? (Lr.test(t) ? Ri : void 0);
1730
+ function ji(t, e) {
1711
1731
  const { name: n, kind: r, attrs: s, tokens: u } = t, l = r === Lt ? "" : `
1712
- `, o = (g) => pi({ ...g, "data-sakura": n }), c = {
1732
+ `, o = (g) => fi({ ...g, "data-styled": n }), c = {
1713
1733
  token: t,
1714
1734
  attrs: s,
1715
1735
  nl: l,
@@ -1718,10 +1738,10 @@ function Ni(t, e) {
1718
1738
  body: () => r === J ? this.parser.parse(u) : this.parser.parseInline(u),
1719
1739
  parser: this.parser,
1720
1740
  options: e
1721
- }, h = Pi(n);
1741
+ }, h = Ui(n);
1722
1742
  return h ? h(c) : c.body() + l;
1723
1743
  }
1724
- const Mi = /^(:{2,})([A-Za-z][A-Za-z0-9_-]*)/, zi = /^:([A-Za-z][A-Za-z0-9_-]*)/, Ui = (t, e) => {
1744
+ const Hi = /^(:{2,})([A-Za-z][A-Za-z0-9_-]*)/, qi = /^:([A-Za-z][A-Za-z0-9_-]*)/, Gi = (t, e) => {
1725
1745
  const n = new RegExp(`^:{${e},}[ \\t]*$`);
1726
1746
  let r = 0;
1727
1747
  for (const s of t.split(`
@@ -1734,13 +1754,13 @@ const Mi = /^(:{2,})([A-Za-z][A-Za-z0-9_-]*)/, zi = /^:([A-Za-z][A-Za-z0-9_-]*)/
1734
1754
  r += s.length + 1;
1735
1755
  }
1736
1756
  return null;
1737
- }, ji = (t) => {
1757
+ }, Wi = (t) => {
1738
1758
  const e = /\n:{2,}[A-Za-z]/.exec(t);
1739
1759
  return e ? e.index : void 0;
1740
- }, Hi = (t) => {
1760
+ }, Yi = (t) => {
1741
1761
  const e = /:[A-Za-z][A-Za-z0-9_-]*\[/.exec(t);
1742
1762
  return e ? e.index : void 0;
1743
- }, qi = (t) => {
1763
+ }, Zi = (t) => {
1744
1764
  if (!/^grid-cols-\d+$/.test(t.name)) return;
1745
1765
  const e = t.tokens.filter((r) => r.type !== "space"), n = e.filter(
1746
1766
  (r) => r.type === "directive" && r.name === "card"
@@ -1749,7 +1769,7 @@ const Mi = /^(:{2,})([A-Za-z][A-Za-z0-9_-]*)/, zi = /^:([A-Za-z][A-Za-z0-9_-]*)/
1749
1769
  t.listed = !0;
1750
1770
  for (const r of n) r.listed = !0;
1751
1771
  }
1752
- }, Gi = (t) => {
1772
+ }, Xi = (t) => {
1753
1773
  if (t.name !== "card" || !t.attrs.href) return;
1754
1774
  const e = t.tokens;
1755
1775
  if (e.some(
@@ -1760,10 +1780,10 @@ const Mi = /^(:{2,})([A-Za-z][A-Za-z0-9_-]*)/, zi = /^:([A-Za-z][A-Za-z0-9_-]*)/
1760
1780
  r.type === "directive" && (r.name === "card-title" || r.name === "card-footer") && (r.inherited = { behavior: "link", href: t.attrs.href ?? "" });
1761
1781
  }
1762
1782
  };
1763
- function Wi(t) {
1764
- const e = Mi.exec(t);
1783
+ function Vi(t) {
1784
+ const e = Hi.exec(t);
1765
1785
  if (!e) return;
1766
- const [, n, r] = e, s = n.length >= 3 ? J : pe;
1786
+ const [, n, r] = e, s = n.length >= 3 ? J : se;
1767
1787
  if (!$r(r, s)) return;
1768
1788
  const u = Or(t, e[0].length), l = /^[ \t]*(?:\n|$)/.exec(t.slice(u.end));
1769
1789
  if (!l) return;
@@ -1775,15 +1795,15 @@ function Wi(t) {
1775
1795
  tokens: [],
1776
1796
  raw: t.slice(0, o)
1777
1797
  };
1778
- if (s === pe)
1798
+ if (s === se)
1779
1799
  return u.label && this.lexer.inline(u.label, c.tokens), c;
1780
- const h = t.slice(o), g = Ui(h, n.length);
1800
+ const h = t.slice(o), g = Gi(h, n.length);
1781
1801
  return c.raw = t.slice(0, o + (g ? g.rawEnd : h.length)), c.tokens = this.lexer.blockTokens(
1782
1802
  g ? h.slice(0, g.contentEnd) : h
1783
- ), Gi(c), qi(c), c;
1803
+ ), Xi(c), Zi(c), c;
1784
1804
  }
1785
- function Yi(t) {
1786
- const e = zi.exec(t);
1805
+ function Qi(t) {
1806
+ const e = qi.exec(t);
1787
1807
  if (!e) return;
1788
1808
  const [, n] = e;
1789
1809
  if (!$r(n, Lt)) return;
@@ -1798,21 +1818,21 @@ function Yi(t) {
1798
1818
  raw: t.slice(0, r.end)
1799
1819
  };
1800
1820
  }
1801
- const Zi = (t) => ({
1821
+ const Ki = (t) => ({
1802
1822
  extensions: [
1803
1823
  {
1804
1824
  name: "directive",
1805
1825
  level: "inline",
1806
- start: Hi,
1807
- tokenizer: Yi
1826
+ start: Yi,
1827
+ tokenizer: Qi
1808
1828
  },
1809
1829
  {
1810
1830
  name: "directive",
1811
1831
  level: "block",
1812
- start: ji,
1813
- tokenizer: Wi,
1832
+ start: Wi,
1833
+ tokenizer: Vi,
1814
1834
  renderer(e) {
1815
- return Ni.call(
1835
+ return ji.call(
1816
1836
  this,
1817
1837
  e,
1818
1838
  t
@@ -1826,10 +1846,10 @@ function ir(t, e) {
1826
1846
  for (var n = 0, r = Array(e); n < e; n++) r[n] = t[n];
1827
1847
  return r;
1828
1848
  }
1829
- function Xi(t) {
1849
+ function Ji(t) {
1830
1850
  if (Array.isArray(t)) return t;
1831
1851
  }
1832
- function Vi(t, e) {
1852
+ function eu(t, e) {
1833
1853
  var n = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
1834
1854
  if (n != null) {
1835
1855
  var r, s, u, l, o = [], c = !0, h = !1;
@@ -1847,22 +1867,22 @@ function Vi(t, e) {
1847
1867
  return o;
1848
1868
  }
1849
1869
  }
1850
- function Qi() {
1870
+ function tu() {
1851
1871
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1852
1872
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1853
1873
  }
1854
- function Ki(t, e) {
1855
- return Xi(t) || Vi(t, e) || Ji(t, e) || Qi();
1874
+ function nu(t, e) {
1875
+ return Ji(t) || eu(t, e) || ru(t, e) || tu();
1856
1876
  }
1857
- function Ji(t, e) {
1877
+ function ru(t, e) {
1858
1878
  if (t) {
1859
1879
  if (typeof t == "string") return ir(t, e);
1860
1880
  var n = {}.toString.call(t).slice(8, -1);
1861
1881
  return n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set" ? Array.from(t) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? ir(t, e) : void 0;
1862
1882
  }
1863
1883
  }
1864
- const Ir = Object.entries, ur = Object.setPrototypeOf, eu = Object.isFrozen, tu = Object.getPrototypeOf, nu = Object.getOwnPropertyDescriptor;
1865
- let N = Object.freeze, z = Object.seal, He = Object.create, Pr = typeof Reflect < "u" && Reflect, an = Pr.apply, cn = Pr.construct;
1884
+ const Pr = Object.entries, ur = Object.setPrototypeOf, su = Object.isFrozen, iu = Object.getPrototypeOf, uu = Object.getOwnPropertyDescriptor;
1885
+ let N = Object.freeze, z = Object.seal, He = Object.create, Ir = typeof Reflect < "u" && Reflect, an = Ir.apply, cn = Ir.construct;
1866
1886
  N || (N = function(e) {
1867
1887
  return e;
1868
1888
  });
@@ -1879,8 +1899,8 @@ cn || (cn = function(e) {
1879
1899
  r[s - 1] = arguments[s];
1880
1900
  return new e(...r);
1881
1901
  });
1882
- const Se = P(Array.prototype.forEach), ru = P(Array.prototype.lastIndexOf), or = P(Array.prototype.pop), rt = P(Array.prototype.push), su = P(Array.prototype.splice), qe = Array.isArray, lt = P(String.prototype.toLowerCase), Jt = P(String.prototype.toString), lr = P(String.prototype.match), st = P(String.prototype.replace), ar = P(String.prototype.indexOf), iu = P(String.prototype.trim), uu = P(Number.prototype.toString), ou = P(Boolean.prototype.toString), cr = typeof BigInt > "u" ? null : P(BigInt.prototype.toString), pr = typeof Symbol > "u" ? null : P(Symbol.prototype.toString), Z = P(Object.prototype.hasOwnProperty), it = P(Object.prototype.toString), j = P(RegExp.prototype.test), we = lu(TypeError);
1883
- function P(t) {
1902
+ const Se = I(Array.prototype.forEach), ou = I(Array.prototype.lastIndexOf), or = I(Array.prototype.pop), rt = I(Array.prototype.push), lu = I(Array.prototype.splice), qe = Array.isArray, lt = I(String.prototype.toLowerCase), Jt = I(String.prototype.toString), lr = I(String.prototype.match), st = I(String.prototype.replace), ar = I(String.prototype.indexOf), au = I(String.prototype.trim), cu = I(Number.prototype.toString), pu = I(Boolean.prototype.toString), cr = typeof BigInt > "u" ? null : I(BigInt.prototype.toString), pr = typeof Symbol > "u" ? null : I(Symbol.prototype.toString), Z = I(Object.prototype.hasOwnProperty), it = I(Object.prototype.toString), j = I(RegExp.prototype.test), we = fu(TypeError);
1903
+ function I(t) {
1884
1904
  return function(e) {
1885
1905
  e instanceof RegExp && (e.lastIndex = 0);
1886
1906
  for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), s = 1; s < n; s++)
@@ -1888,7 +1908,7 @@ function P(t) {
1888
1908
  return an(t, e, r);
1889
1909
  };
1890
1910
  }
1891
- function lu(t) {
1911
+ function fu(t) {
1892
1912
  return function() {
1893
1913
  for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++)
1894
1914
  n[r] = arguments[r];
@@ -1904,34 +1924,34 @@ function _(t, e) {
1904
1924
  let s = e[r];
1905
1925
  if (typeof s == "string") {
1906
1926
  const u = n(s);
1907
- u !== s && (eu(e) || (e[r] = u), s = u);
1927
+ u !== s && (su(e) || (e[r] = u), s = u);
1908
1928
  }
1909
1929
  t[s] = !0;
1910
1930
  }
1911
1931
  return t;
1912
1932
  }
1913
- function au(t) {
1933
+ function hu(t) {
1914
1934
  for (let e = 0; e < t.length; e++)
1915
1935
  Z(t, e) || (t[e] = null);
1916
1936
  return t;
1917
1937
  }
1918
1938
  function V(t) {
1919
1939
  const e = He(null);
1920
- for (const r of Ir(t)) {
1921
- var n = Ki(r, 2);
1940
+ for (const r of Pr(t)) {
1941
+ var n = nu(r, 2);
1922
1942
  const s = n[0], u = n[1];
1923
- Z(t, s) && (qe(u) ? e[s] = au(u) : u && typeof u == "object" && u.constructor === Object ? e[s] = V(u) : e[s] = u);
1943
+ Z(t, s) && (qe(u) ? e[s] = hu(u) : u && typeof u == "object" && u.constructor === Object ? e[s] = V(u) : e[s] = u);
1924
1944
  }
1925
1945
  return e;
1926
1946
  }
1927
- function cu(t) {
1947
+ function du(t) {
1928
1948
  switch (typeof t) {
1929
1949
  case "string":
1930
1950
  return t;
1931
1951
  case "number":
1932
- return uu(t);
1952
+ return cu(t);
1933
1953
  case "boolean":
1934
- return ou(t);
1954
+ return pu(t);
1935
1955
  case "bigint":
1936
1956
  return cr ? cr(t) : "0";
1937
1957
  case "symbol":
@@ -1955,34 +1975,34 @@ function cu(t) {
1955
1975
  }
1956
1976
  function re(t, e) {
1957
1977
  for (; t !== null; ) {
1958
- const r = nu(t, e);
1978
+ const r = uu(t, e);
1959
1979
  if (r) {
1960
1980
  if (r.get)
1961
- return P(r.get);
1981
+ return I(r.get);
1962
1982
  if (typeof r.value == "function")
1963
- return P(r.value);
1983
+ return I(r.value);
1964
1984
  }
1965
- t = tu(t);
1985
+ t = iu(t);
1966
1986
  }
1967
1987
  function n() {
1968
1988
  return null;
1969
1989
  }
1970
1990
  return n;
1971
1991
  }
1972
- function pu(t) {
1992
+ function Du(t) {
1973
1993
  try {
1974
1994
  return j(t, ""), !0;
1975
1995
  } catch {
1976
1996
  return !1;
1977
1997
  }
1978
1998
  }
1979
- const fr = N(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), en = N(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), tn = N(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), fu = N(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), nn = N(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), hu = N(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), hr = N(["#text"]), dr = N(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "command", "commandfor", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns"]), rn = N(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dominant-baseline", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "pointer-events", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-orientation", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "vector-effect", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Dr = N(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), wt = N(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), du = z(/{{[\w\W]*|^[\w\W]*}}/g), Du = z(/<%[\w\W]*|^[\w\W]*%>/g), gu = z(/\${[\w\W]*/g), mu = z(/^data-[\-\w.\u00B7-\uFFFF]+$/), Fu = z(/^aria-[\-\w]+$/), gr = z(
1999
+ const fr = N(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), en = N(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), tn = N(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), gu = N(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), nn = N(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), mu = N(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), hr = N(["#text"]), dr = N(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "command", "commandfor", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns"]), rn = N(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dominant-baseline", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "pointer-events", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-orientation", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "vector-effect", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Dr = N(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), St = N(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Fu = z(/{{[\w\W]*|^[\w\W]*}}/g), Au = z(/<%[\w\W]*|^[\w\W]*%>/g), Eu = z(/\${[\w\W]*/g), bu = z(/^data-[\-\w.\u00B7-\uFFFF]+$/), ku = z(/^aria-[\-\w]+$/), gr = z(
1980
2000
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
1981
2001
  // eslint-disable-line no-useless-escape
1982
- ), Au = z(/^(?:\w+script|data):/i), Eu = z(
2002
+ ), Cu = z(/^(?:\w+script|data):/i), xu = z(
1983
2003
  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
1984
2004
  // eslint-disable-line no-control-regex
1985
- ), bu = z(/^html$/i), ku = z(/^[a-z][.\w]*(-[.\w]+)+$/i), mr = z(/<[/\w!]/g), Fr = z(/<[/\w]/g), Cu = z(/<\/no(script|embed|frames)/i), xu = z(/\/>/i), X = {
2005
+ ), Tu = z(/^html$/i), _u = z(/^[a-z][.\w]*(-[.\w]+)+$/i), mr = z(/<[/\w!]/g), Fr = z(/<[/\w]/g), yu = z(/<\/no(script|embed|frames)/i), wu = z(/\/>/i), X = {
1986
2006
  element: 1,
1987
2007
  attribute: 2,
1988
2008
  text: 3,
@@ -1998,14 +2018,14 @@ const fr = N(["a", "abbr", "acronym", "address", "area", "article", "aside", "au
1998
2018
  documentFragment: 11,
1999
2019
  notation: 12
2000
2020
  // Deprecated
2001
- }, Nr = ["style", "script", "xmp", "iframe", "noembed", "noframes", "plaintext", "noscript"], Tu = N(_({}, Nr)), _u = (function() {
2021
+ }, Nr = ["style", "script", "xmp", "iframe", "noembed", "noframes", "plaintext", "noscript"], Su = N(_({}, Nr)), Ru = (function() {
2002
2022
  const t = {};
2003
2023
  return Se(Nr, (e) => {
2004
2024
  t[e] = z(new RegExp("</" + e + "(?=[\\t\\n\\f\\r />])", "i"));
2005
2025
  }), N(t);
2006
- })(), yu = function() {
2026
+ })(), Bu = function() {
2007
2027
  return typeof window > "u" ? null : window;
2008
- }, wu = function(e, n) {
2028
+ }, vu = function(e, n) {
2009
2029
  if (typeof e != "object" || typeof e.createPolicy != "function")
2010
2030
  return null;
2011
2031
  let r = null;
@@ -2043,7 +2063,7 @@ const fr = N(["a", "abbr", "acronym", "address", "area", "article", "aside", "au
2043
2063
  return s && typeof s == "object" ? V(s) : r();
2044
2064
  };
2045
2065
  function Mr() {
2046
- let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : yu();
2066
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Bu();
2047
2067
  const e = (d) => Mr(d);
2048
2068
  if (e.version = "3.4.14", e.removed = [], !t || !t.document || t.document.nodeType !== X.document || !t.Element)
2049
2069
  return e.isSupported = !1, e;
@@ -2052,7 +2072,7 @@ function Mr() {
2052
2072
  t.DocumentFragment;
2053
2073
  const u = t.HTMLTemplateElement, l = t.Node, o = t.Element, c = t.NodeFilter, h = t.NamedNodeMap;
2054
2074
  h === void 0 && (t.NamedNodeMap || t.MozNamedAttrMap), t.HTMLFormElement;
2055
- const g = t.DOMParser, m = t.trustedTypes, k = o.prototype, O = re(k, "cloneNode"), T = re(k, "remove"), G = re(k, "nextSibling"), U = re(k, "childNodes"), te = re(k, "parentNode"), be = re(k, "shadowRoot"), ke = re(k, "attributes"), ne = l && l.prototype ? re(l.prototype, "nodeType") : null, Q = l && l.prototype ? re(l.prototype, "nodeName") : null, K = l && l.prototype ? re(l.prototype, "ownerDocument") : null, Ce = function(i) {
2075
+ const g = t.DOMParser, m = t.trustedTypes, k = o.prototype, L = re(k, "cloneNode"), T = re(k, "remove"), G = re(k, "nextSibling"), U = re(k, "childNodes"), te = re(k, "parentNode"), be = re(k, "shadowRoot"), ke = re(k, "attributes"), ne = l && l.prototype ? re(l.prototype, "nodeType") : null, Q = l && l.prototype ? re(l.prototype, "nodeName") : null, K = l && l.prototype ? re(l.prototype, "ownerDocument") : null, Ce = function(i) {
2056
2076
  return ne ? ne(i) : i.nodeType;
2057
2077
  }, We = function(i) {
2058
2078
  return Q ? Q(i) : i.nodeName;
@@ -2062,34 +2082,34 @@ function Mr() {
2062
2082
  d.content && d.content.ownerDocument && (n = d.content.ownerDocument);
2063
2083
  }
2064
2084
  let M, fe = "", Ye, Oe = !1, de = 0;
2065
- const pt = function() {
2085
+ const ft = function() {
2066
2086
  if (de > 0)
2067
2087
  throw we('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.');
2068
- }, ue = function(i) {
2069
- pt(), de++;
2088
+ }, oe = function(i) {
2089
+ ft(), de++;
2070
2090
  try {
2071
2091
  return M.createHTML(i);
2072
2092
  } finally {
2073
2093
  de--;
2074
2094
  }
2075
- }, ft = function(i) {
2076
- pt(), de++;
2095
+ }, ht = function(i) {
2096
+ ft(), de++;
2077
2097
  try {
2078
2098
  return M.createScriptURL(i);
2079
2099
  } finally {
2080
2100
  de--;
2081
2101
  }
2082
- }, ht = function() {
2083
- return Oe || (Ye = wu(m, s), Oe = !0), Ye;
2102
+ }, dt = function() {
2103
+ return Oe || (Ye = vu(m, s), Oe = !0), Ye;
2084
2104
  }, xe = n, Le = xe.implementation, Ze = xe.createNodeIterator, f = xe.createDocumentFragment, C = xe.getElementsByTagName, S = r.importNode;
2085
2105
  let b = Ar();
2086
- e.isSupported = typeof Ir == "function" && typeof te == "function" && Le && Le.createHTMLDocument !== void 0;
2087
- const $e = du, Xe = Du, $ = gu, De = mu, Ve = Fu, It = Au, An = Eu, Ur = ku;
2106
+ e.isSupported = typeof Pr == "function" && typeof te == "function" && Le && Le.createHTMLDocument !== void 0;
2107
+ const $e = Fu, Xe = Au, $ = Eu, De = bu, Ve = ku, Pt = Cu, An = xu, Ur = _u;
2088
2108
  let En = gr, R = null;
2089
- const Pt = _({}, [...fr, ...en, ...tn, ...nn, ...hr]);
2109
+ const It = _({}, [...fr, ...en, ...tn, ...nn, ...hr]);
2090
2110
  let B = null;
2091
- const Nt = _({}, [...dr, ...rn, ...Dr, ...wt]);
2092
- let oe = Object.seal(He(null, {
2111
+ const Nt = _({}, [...dr, ...rn, ...Dr, ...St]);
2112
+ let le = Object.seal(He(null, {
2093
2113
  tagNameCheck: {
2094
2114
  writable: !0,
2095
2115
  configurable: !1,
@@ -2123,9 +2143,9 @@ function Mr() {
2123
2143
  value: null
2124
2144
  }
2125
2145
  }));
2126
- let kn = !0, Mt = !0, Cn = !1, xn = !0, me = !1, Te = !0, _e = !1, zt = !1, dt = null, Dt = null, Ut = !1, Ie = !1, gt = !1, mt = !1, Tn = !0, _n = !1;
2146
+ let kn = !0, Mt = !0, Cn = !1, xn = !0, me = !1, Te = !0, _e = !1, zt = !1, Dt = null, gt = null, Ut = !1, Pe = !1, mt = !1, Ft = !1, Tn = !0, _n = !1;
2127
2147
  const yn = "user-content-";
2128
- let jt = !0, Ht = !1, Pe = {}, Ne = null;
2148
+ let jt = !0, Ht = !1, Ie = {}, Ne = null;
2129
2149
  const wn = _({}, [
2130
2150
  "annotation-xml",
2131
2151
  "audio",
@@ -2166,16 +2186,16 @@ function Mr() {
2166
2186
  let Sn = null;
2167
2187
  const Rn = _({}, ["audio", "video", "img", "source", "image", "track"]);
2168
2188
  let Bn = null;
2169
- const vn = _({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Ft = "http://www.w3.org/1998/Math/MathML", At = "http://www.w3.org/2000/svg", le = "http://www.w3.org/1999/xhtml";
2170
- let Me = le, qt = !1, Gt = null;
2171
- const jr = _({}, [Ft, At, le], Jt), On = N(["mi", "mo", "mn", "ms", "mtext"]);
2189
+ const vn = _({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), At = "http://www.w3.org/1998/Math/MathML", Et = "http://www.w3.org/2000/svg", ae = "http://www.w3.org/1999/xhtml";
2190
+ let Me = ae, qt = !1, Gt = null;
2191
+ const jr = _({}, [At, Et, ae], Jt), On = N(["mi", "mo", "mn", "ms", "mtext"]);
2172
2192
  let Wt = _({}, On);
2173
2193
  const Ln = N(["annotation-xml"]);
2174
2194
  let Yt = _({}, Ln);
2175
2195
  const Hr = _({}, ["title", "style", "font", "a", "script"]);
2176
2196
  let Ke = null;
2177
2197
  const qr = ["application/xhtml+xml", "text/html"], Gr = "text/html";
2178
- let I = null, ze = null;
2198
+ let P = null, ze = null;
2179
2199
  const Wr = n.createElement("form"), $n = function(i) {
2180
2200
  return i instanceof RegExp || i instanceof Function;
2181
2201
  }, Zt = function() {
@@ -2183,25 +2203,25 @@ function Mr() {
2183
2203
  if (ze && ze === i)
2184
2204
  return;
2185
2205
  (!i || typeof i != "object") && (i = {}), i = V(i), Ke = // eslint-disable-next-line unicorn/prefer-includes
2186
- qr.indexOf(i.PARSER_MEDIA_TYPE) === -1 ? Gr : i.PARSER_MEDIA_TYPE, I = Ke === "application/xhtml+xml" ? Jt : lt, R = Ee(i, "ALLOWED_TAGS", Pt, {
2187
- transform: I
2206
+ qr.indexOf(i.PARSER_MEDIA_TYPE) === -1 ? Gr : i.PARSER_MEDIA_TYPE, P = Ke === "application/xhtml+xml" ? Jt : lt, R = Ee(i, "ALLOWED_TAGS", It, {
2207
+ transform: P
2188
2208
  }), B = Ee(i, "ALLOWED_ATTR", Nt, {
2189
- transform: I
2209
+ transform: P
2190
2210
  }), Gt = Ee(i, "ALLOWED_NAMESPACES", jr, {
2191
2211
  transform: Jt
2192
2212
  }), Bn = Ee(i, "ADD_URI_SAFE_ATTR", vn, {
2193
- transform: I,
2213
+ transform: P,
2194
2214
  base: vn
2195
2215
  }), Sn = Ee(i, "ADD_DATA_URI_TAGS", Rn, {
2196
- transform: I,
2216
+ transform: P,
2197
2217
  base: Rn
2198
2218
  }), Ne = Ee(i, "FORBID_CONTENTS", wn, {
2199
- transform: I
2219
+ transform: P
2200
2220
  }), Qe = Ee(i, "FORBID_TAGS", V({}), {
2201
- transform: I
2221
+ transform: P
2202
2222
  }), bn = Ee(i, "FORBID_ATTR", V({}), {
2203
- transform: I
2204
- }), Pe = Z(i, "USE_PROFILES") ? i.USE_PROFILES && typeof i.USE_PROFILES == "object" ? V(i.USE_PROFILES) : i.USE_PROFILES : !1, kn = i.ALLOW_ARIA_ATTR !== !1, Mt = i.ALLOW_DATA_ATTR !== !1, Cn = i.ALLOW_UNKNOWN_PROTOCOLS || !1, xn = i.ALLOW_SELF_CLOSE_IN_ATTR !== !1, me = i.SAFE_FOR_TEMPLATES || !1, Te = i.SAFE_FOR_XML !== !1, _e = i.WHOLE_DOCUMENT || !1, Ie = i.RETURN_DOM || !1, gt = i.RETURN_DOM_FRAGMENT || !1, mt = i.RETURN_TRUSTED_TYPE || !1, Ut = i.FORCE_BODY || !1, Tn = i.SANITIZE_DOM !== !1, _n = i.SANITIZE_NAMED_PROPS || !1, jt = i.KEEP_CONTENT !== !1, Ht = i.IN_PLACE || !1, En = pu(i.ALLOWED_URI_REGEXP) ? i.ALLOWED_URI_REGEXP : gr, Me = typeof i.NAMESPACE == "string" ? i.NAMESPACE : le, Wt = sn(
2223
+ transform: P
2224
+ }), Ie = Z(i, "USE_PROFILES") ? i.USE_PROFILES && typeof i.USE_PROFILES == "object" ? V(i.USE_PROFILES) : i.USE_PROFILES : !1, kn = i.ALLOW_ARIA_ATTR !== !1, Mt = i.ALLOW_DATA_ATTR !== !1, Cn = i.ALLOW_UNKNOWN_PROTOCOLS || !1, xn = i.ALLOW_SELF_CLOSE_IN_ATTR !== !1, me = i.SAFE_FOR_TEMPLATES || !1, Te = i.SAFE_FOR_XML !== !1, _e = i.WHOLE_DOCUMENT || !1, Pe = i.RETURN_DOM || !1, mt = i.RETURN_DOM_FRAGMENT || !1, Ft = i.RETURN_TRUSTED_TYPE || !1, Ut = i.FORCE_BODY || !1, Tn = i.SANITIZE_DOM !== !1, _n = i.SANITIZE_NAMED_PROPS || !1, jt = i.KEEP_CONTENT !== !1, Ht = i.IN_PLACE || !1, En = Du(i.ALLOWED_URI_REGEXP) ? i.ALLOWED_URI_REGEXP : gr, Me = typeof i.NAMESPACE == "string" ? i.NAMESPACE : ae, Wt = sn(
2205
2225
  i,
2206
2226
  "MATHML_TEXT_INTEGRATION_POINTS",
2207
2227
  () => _({}, On)
@@ -2213,7 +2233,7 @@ function Mr() {
2213
2233
  // Default built-in map
2214
2234
  );
2215
2235
  const a = sn(i, "CUSTOM_ELEMENT_HANDLING", () => He(null));
2216
- if (oe = He(null), Z(a, "tagNameCheck") && $n(a.tagNameCheck) && (oe.tagNameCheck = a.tagNameCheck), Z(a, "attributeNameCheck") && $n(a.attributeNameCheck) && (oe.attributeNameCheck = a.attributeNameCheck), Z(a, "allowCustomizedBuiltInElements") && typeof a.allowCustomizedBuiltInElements == "boolean" && (oe.allowCustomizedBuiltInElements = a.allowCustomizedBuiltInElements), z(oe), me && (Mt = !1), gt && (Ie = !0), Pe && (R = _({}, hr), B = He(null), Pe.html === !0 && (_(R, fr), _(B, dr)), Pe.svg === !0 && (_(R, en), _(B, rn), _(B, wt)), Pe.svgFilters === !0 && (_(R, tn), _(B, rn), _(B, wt)), Pe.mathMl === !0 && (_(R, nn), _(B, Dr), _(B, wt))), ge.tagCheck = null, ge.attributeCheck = null, Z(i, "ADD_TAGS") && (typeof i.ADD_TAGS == "function" ? ge.tagCheck = i.ADD_TAGS : qe(i.ADD_TAGS) && (R === Pt && (R = V(R)), _(R, i.ADD_TAGS, I))), Z(i, "ADD_ATTR") && (typeof i.ADD_ATTR == "function" ? ge.attributeCheck = i.ADD_ATTR : qe(i.ADD_ATTR) && (B === Nt && (B = V(B)), _(B, i.ADD_ATTR, I))), Z(i, "ADD_FORBID_CONTENTS") && qe(i.ADD_FORBID_CONTENTS) && (Ne === wn && (Ne = V(Ne)), _(Ne, i.ADD_FORBID_CONTENTS, I)), jt && (R["#text"] = !0), _e && _(R, ["html", "head", "body"]), R.table && (_(R, ["tbody"]), delete Qe.tbody), i.TRUSTED_TYPES_POLICY) {
2236
+ if (le = He(null), Z(a, "tagNameCheck") && $n(a.tagNameCheck) && (le.tagNameCheck = a.tagNameCheck), Z(a, "attributeNameCheck") && $n(a.attributeNameCheck) && (le.attributeNameCheck = a.attributeNameCheck), Z(a, "allowCustomizedBuiltInElements") && typeof a.allowCustomizedBuiltInElements == "boolean" && (le.allowCustomizedBuiltInElements = a.allowCustomizedBuiltInElements), z(le), me && (Mt = !1), mt && (Pe = !0), Ie && (R = _({}, hr), B = He(null), Ie.html === !0 && (_(R, fr), _(B, dr)), Ie.svg === !0 && (_(R, en), _(B, rn), _(B, St)), Ie.svgFilters === !0 && (_(R, tn), _(B, rn), _(B, St)), Ie.mathMl === !0 && (_(R, nn), _(B, Dr), _(B, St))), ge.tagCheck = null, ge.attributeCheck = null, Z(i, "ADD_TAGS") && (typeof i.ADD_TAGS == "function" ? ge.tagCheck = i.ADD_TAGS : qe(i.ADD_TAGS) && (R === It && (R = V(R)), _(R, i.ADD_TAGS, P))), Z(i, "ADD_ATTR") && (typeof i.ADD_ATTR == "function" ? ge.attributeCheck = i.ADD_ATTR : qe(i.ADD_ATTR) && (B === Nt && (B = V(B)), _(B, i.ADD_ATTR, P))), Z(i, "ADD_FORBID_CONTENTS") && qe(i.ADD_FORBID_CONTENTS) && (Ne === wn && (Ne = V(Ne)), _(Ne, i.ADD_FORBID_CONTENTS, P)), jt && (R["#text"] = !0), _e && _(R, ["html", "head", "body"]), R.table && (_(R, ["tbody"]), delete Qe.tbody), i.TRUSTED_TYPES_POLICY) {
2217
2237
  if (typeof i.TRUSTED_TYPES_POLICY.createHTML != "function")
2218
2238
  throw we('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
2219
2239
  if (typeof i.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -2221,18 +2241,18 @@ function Mr() {
2221
2241
  const p = M;
2222
2242
  M = i.TRUSTED_TYPES_POLICY;
2223
2243
  try {
2224
- fe = ue("");
2244
+ fe = oe("");
2225
2245
  } catch (D) {
2226
2246
  throw M = p, D;
2227
2247
  }
2228
- } else i.TRUSTED_TYPES_POLICY === null ? (M = void 0, fe = "") : (M === void 0 && (M = ht()), M && typeof fe == "string" && (fe = ue("")));
2248
+ } else i.TRUSTED_TYPES_POLICY === null ? (M = void 0, fe = "") : (M === void 0 && (M = dt()), M && typeof fe == "string" && (fe = oe("")));
2229
2249
  N && N(i), ze = i;
2230
- }, In = _({}, [...en, ...tn, ...fu]), Pn = _({}, [...nn, ...hu]), Yr = function(i, a, p) {
2231
- return a.namespaceURI === le ? i === "svg" : a.namespaceURI === Ft ? i === "svg" && (p === "annotation-xml" || Wt[p]) : !!In[i];
2250
+ }, Pn = _({}, [...en, ...tn, ...gu]), In = _({}, [...nn, ...mu]), Yr = function(i, a, p) {
2251
+ return a.namespaceURI === ae ? i === "svg" : a.namespaceURI === At ? i === "svg" && (p === "annotation-xml" || Wt[p]) : !!Pn[i];
2232
2252
  }, Zr = function(i, a, p) {
2233
- return a.namespaceURI === le ? i === "math" : a.namespaceURI === At ? i === "math" && Yt[p] : !!Pn[i];
2253
+ return a.namespaceURI === ae ? i === "math" : a.namespaceURI === Et ? i === "math" && Yt[p] : !!In[i];
2234
2254
  }, Xr = function(i, a, p) {
2235
- return a.namespaceURI === At && !Yt[p] || a.namespaceURI === Ft && !Wt[p] ? !1 : !Pn[i] && (Hr[i] || !In[i]);
2255
+ return a.namespaceURI === Et && !Yt[p] || a.namespaceURI === At && !Wt[p] ? !1 : !In[i] && (Hr[i] || !Pn[i]);
2236
2256
  }, Vr = function(i) {
2237
2257
  let a = te(i);
2238
2258
  (!a || !a.tagName) && (a = {
@@ -2240,7 +2260,7 @@ function Mr() {
2240
2260
  tagName: "template"
2241
2261
  });
2242
2262
  const p = lt(i.tagName), D = lt(a.tagName);
2243
- return Gt[i.namespaceURI] ? i.namespaceURI === At ? Yr(p, a, D) : i.namespaceURI === Ft ? Zr(p, a, D) : i.namespaceURI === le ? Xr(p, a, D) : !!(Ke === "application/xhtml+xml" && Gt[i.namespaceURI]) : !1;
2263
+ return Gt[i.namespaceURI] ? i.namespaceURI === Et ? Yr(p, a, D) : i.namespaceURI === At ? Zr(p, a, D) : i.namespaceURI === ae ? Xr(p, a, D) : !!(Ke === "application/xhtml+xml" && Gt[i.namespaceURI]) : !1;
2244
2264
  }, Fe = function(i) {
2245
2265
  rt(e.removed, {
2246
2266
  element: i
@@ -2260,8 +2280,8 @@ function Mr() {
2260
2280
  } catch {
2261
2281
  }
2262
2282
  }
2263
- }, Et = function(i) {
2264
- bt(i);
2283
+ }, bt = function(i) {
2284
+ kt(i);
2265
2285
  const a = U(i);
2266
2286
  if (a) {
2267
2287
  const D = [];
@@ -2300,7 +2320,7 @@ function Mr() {
2300
2320
  }
2301
2321
  }
2302
2322
  if (i === "is")
2303
- if (Ie || gt)
2323
+ if (Pe || mt)
2304
2324
  try {
2305
2325
  Fe(a);
2306
2326
  } catch {
@@ -2315,9 +2335,9 @@ function Mr() {
2315
2335
  if (a)
2316
2336
  for (let p = a.length - 1; p >= 0; --p) {
2317
2337
  const D = a[p], F = D && D.name;
2318
- typeof F != "string" || B[I(F)] || Nn(i, D, F);
2338
+ typeof F != "string" || B[P(F)] || Nn(i, D, F);
2319
2339
  }
2320
- }, bt = function(i) {
2340
+ }, kt = function(i) {
2321
2341
  const a = [i];
2322
2342
  for (; a.length > 0; ) {
2323
2343
  const p = a.pop();
@@ -2343,7 +2363,7 @@ function Mr() {
2343
2363
  continue;
2344
2364
  }
2345
2365
  if (D === X.element) {
2346
- const A = p, w = I(We(p));
2366
+ const A = p, w = P(We(p));
2347
2367
  try {
2348
2368
  A.hasAttribute && A.hasAttribute("patchsrc") && A.removeAttribute("patchsrc"), A.hasAttribute && A.hasAttribute("for") && Mn("for", w) && A.removeAttribute("for");
2349
2369
  } catch {
@@ -2362,9 +2382,9 @@ function Mr() {
2362
2382
  const A = lr(i, /^[\r\n\t ]+/);
2363
2383
  p = A && A[0];
2364
2384
  }
2365
- Ke === "application/xhtml+xml" && Me === le && (i = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + i + "</body></html>");
2366
- const D = M ? ue(i) : i;
2367
- if (Me === le)
2385
+ Ke === "application/xhtml+xml" && Me === ae && (i = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + i + "</body></html>");
2386
+ const D = M ? oe(i) : i;
2387
+ if (Me === ae)
2368
2388
  try {
2369
2389
  a = new g().parseFromString(D, Ke);
2370
2390
  } catch {
@@ -2377,7 +2397,7 @@ function Mr() {
2377
2397
  }
2378
2398
  }
2379
2399
  const F = a.body || a.documentElement;
2380
- return i && p && F.insertBefore(n.createTextNode(p), F.childNodes[0] || null), Me === le ? C.call(a, _e ? "html" : "body")[0] : _e ? a.documentElement : F;
2400
+ return i && p && F.insertBefore(n.createTextNode(p), F.childNodes[0] || null), Me === ae ? C.call(a, _e ? "html" : "body")[0] : _e ? a.documentElement : F;
2381
2401
  }, Un = function(i) {
2382
2402
  const a = K ? K(i) : i.ownerDocument;
2383
2403
  return Ze.call(
@@ -2387,7 +2407,7 @@ function Mr() {
2387
2407
  c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION,
2388
2408
  null
2389
2409
  );
2390
- }, kt = function(i) {
2410
+ }, Ct = function(i) {
2391
2411
  return i = st(i, $e, " "), i = st(i, Xe, " "), i = st(i, $, " "), i;
2392
2412
  }, Xt = function(i) {
2393
2413
  var a;
@@ -2401,14 +2421,14 @@ function Mr() {
2401
2421
  );
2402
2422
  let F = D.nextNode();
2403
2423
  for (; F; )
2404
- F.data = kt(F.data), F = D.nextNode();
2424
+ F.data = Ct(F.data), F = D.nextNode();
2405
2425
  const A = (a = i.querySelectorAll) === null || a === void 0 ? void 0 : a.call(i, "template");
2406
2426
  A && Se(A, (w) => {
2407
2427
  Ue(w.content) && Xt(w.content);
2408
2428
  });
2409
- }, Ct = function(i) {
2429
+ }, xt = function(i) {
2410
2430
  const a = Q ? Q(i) : null;
2411
- return typeof a != "string" || I(a) !== "form" ? !1 : typeof i.nodeName != "string" || typeof i.textContent != "string" || typeof i.removeChild != "function" || // Realm-safe NamedNodeMap detection: equality against the cached
2431
+ return typeof a != "string" || P(a) !== "form" ? !1 : typeof i.nodeName != "string" || typeof i.textContent != "string" || typeof i.removeChild != "function" || // Realm-safe NamedNodeMap detection: equality against the cached
2412
2432
  // prototype getter. Clobbered .attributes (e.g. <input name="attributes">)
2413
2433
  // makes the direct read diverge from the cached read; a clean form
2414
2434
  // (same-realm OR foreign-realm) has both reads pointing at the same
@@ -2449,14 +2469,14 @@ function Mr() {
2449
2469
  return !1;
2450
2470
  }
2451
2471
  };
2452
- function ae(d, i, a) {
2472
+ function ce(d, i, a) {
2453
2473
  d.length !== 0 && Se(d, (p) => {
2454
2474
  p.call(e, i, a, ze);
2455
2475
  });
2456
2476
  }
2457
2477
  const Jr = function(i, a) {
2458
- return !!(Te && i.hasChildNodes() && !Je(i.firstElementChild) && j(mr, i.textContent) && j(mr, i.innerHTML) || Te && i.namespaceURI === le && Tu[a] && (Je(i.firstElementChild) || typeof i.textContent == "string" && j(_u[a], i.textContent)) || i.nodeType === X.processingInstruction || Te && i.nodeType === X.comment && j(Fr, i.data));
2459
- }, xt = function(i, a) {
2478
+ return !!(Te && i.hasChildNodes() && !Je(i.firstElementChild) && j(mr, i.textContent) && j(mr, i.innerHTML) || Te && i.namespaceURI === ae && Su[a] && (Je(i.firstElementChild) || typeof i.textContent == "string" && j(Ru[a], i.textContent)) || i.nodeType === X.processingInstruction || Te && i.nodeType === X.comment && j(Fr, i.data));
2479
+ }, Tt = function(i, a) {
2460
2480
  if (i instanceof RegExp)
2461
2481
  return j(i, a);
2462
2482
  if (i instanceof Function) {
@@ -2466,14 +2486,14 @@ function Mr() {
2466
2486
  }
2467
2487
  return !1;
2468
2488
  }, es = function(i, a, p) {
2469
- if (!Qe[a] && Wn(a) && xt(oe.tagNameCheck, a))
2489
+ if (!Qe[a] && Wn(a) && Tt(le.tagNameCheck, a))
2470
2490
  return !1;
2471
2491
  if (jt && !Ne[a]) {
2472
2492
  const D = te(i), F = U(i);
2473
2493
  if (F && D) {
2474
2494
  const A = F.length;
2475
2495
  for (let w = A - 1; w >= 0; --w) {
2476
- const v = i === p ? O(F[w], !0) : F[w];
2496
+ const v = i === p ? L(F[w], !0) : F[w];
2477
2497
  D.insertBefore(v, G(i));
2478
2498
  }
2479
2499
  }
@@ -2482,14 +2502,14 @@ function Mr() {
2482
2502
  }, jn = function(i, a, p, D) {
2483
2503
  return i.length === 0 ? a : a === p || a === D ? V(a) : a;
2484
2504
  }, Hn = function(i, a) {
2485
- return i === a || te(i) !== null ? !1 : (Ht && bt(i), !0);
2505
+ return i === a || te(i) !== null ? !1 : (Ht && kt(i), !0);
2486
2506
  }, qn = function(i, a) {
2487
- if (ae(b.beforeSanitizeElements, i, null), Hn(i, a))
2507
+ if (ce(b.beforeSanitizeElements, i, null), Hn(i, a))
2488
2508
  return !0;
2489
- if (Ct(i))
2509
+ if (xt(i))
2490
2510
  return Fe(i), !0;
2491
- const p = I(We(i));
2492
- if (R = jn(b.uponSanitizeElement, R, Pt, dt), ae(b.uponSanitizeElement, i, {
2511
+ const p = P(We(i));
2512
+ if (R = jn(b.uponSanitizeElement, R, It, Dt), ce(b.uponSanitizeElement, i, {
2493
2513
  tagName: p,
2494
2514
  allowedTags: R
2495
2515
  }), Hn(i, a))
@@ -2498,29 +2518,29 @@ function Mr() {
2498
2518
  return Fe(i), !0;
2499
2519
  if (Qe[p] || !(ge.tagCheck instanceof Function && ge.tagCheck(p)) && !R[p]) {
2500
2520
  const F = es(i, p, a);
2501
- return F === !1 && ae(b.afterSanitizeElements, i, null), F;
2521
+ return F === !1 && ce(b.afterSanitizeElements, i, null), F;
2502
2522
  }
2503
- if (Ce(i) === X.element && !Vr(i) || (p === "noscript" || p === "noembed" || p === "noframes") && j(Cu, i.innerHTML))
2523
+ if (Ce(i) === X.element && !Vr(i) || (p === "noscript" || p === "noembed" || p === "noframes") && j(yu, i.innerHTML))
2504
2524
  return Fe(i), !0;
2505
2525
  if (me && i.nodeType === X.text) {
2506
- const F = kt(i.textContent);
2526
+ const F = Ct(i.textContent);
2507
2527
  i.textContent !== F && (rt(e.removed, {
2508
2528
  element: i.cloneNode()
2509
2529
  }), i.textContent = F);
2510
2530
  }
2511
- return ae(b.afterSanitizeElements, i, null), !1;
2531
+ return ce(b.afterSanitizeElements, i, null), !1;
2512
2532
  }, Gn = function(i, a, p) {
2513
2533
  if (bn[a] || Mn(a, i) || Tn && (a === "id" || a === "name") && (p in n || p in Wr))
2514
2534
  return !1;
2515
2535
  const D = B[a] || ge.attributeCheck instanceof Function && ge.attributeCheck(a, i);
2516
- return Mt && j(De, a) || kn && j(Ve, a) ? !0 : D ? Bn[a] || j(En, st(p, An, "")) || (a === "src" || a === "xlink:href" || a === "href") && i !== "script" && ar(p, "data:") === 0 && Sn[i] || Cn && !j(It, st(p, An, "")) ? !0 : !p : (
2536
+ return Mt && j(De, a) || kn && j(Ve, a) ? !0 : D ? Bn[a] || j(En, st(p, An, "")) || (a === "src" || a === "xlink:href" || a === "href") && i !== "script" && ar(p, "data:") === 0 && Sn[i] || Cn && !j(Pt, st(p, An, "")) ? !0 : !p : (
2517
2537
  // Condition a) covers a basically valid custom element tag name whose
2518
2538
  // tag passes the configured tagNameCheck and whose attribute name
2519
2539
  // passes the configured attributeNameCheck ...
2520
- Wn(i) && xt(oe.tagNameCheck, i) && xt(oe.attributeNameCheck, a, i) || // Condition b) covers an `is` attribute whose value passes the
2540
+ Wn(i) && Tt(le.tagNameCheck, i) && Tt(le.attributeNameCheck, a, i) || // Condition b) covers an `is` attribute whose value passes the
2521
2541
  // configured tagNameCheck while customized built-in elements are
2522
2542
  // allowed.
2523
- a === "is" && oe.allowCustomizedBuiltInElements && xt(oe.tagNameCheck, p)
2543
+ a === "is" && le.allowCustomizedBuiltInElements && Tt(le.tagNameCheck, p)
2524
2544
  );
2525
2545
  }, ts = _({}, ["annotation-xml", "color-profile", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "missing-glyph"]), Wn = function(i) {
2526
2546
  return !ts[lt(i)] && j(Ur, i);
@@ -2528,23 +2548,23 @@ function Mr() {
2528
2548
  if (M && typeof m == "object" && typeof m.getAttributeType == "function" && !p)
2529
2549
  switch (m.getAttributeType(i, a)) {
2530
2550
  case "TrustedHTML":
2531
- return ue(D);
2551
+ return oe(D);
2532
2552
  case "TrustedScriptURL":
2533
- return ft(D);
2553
+ return ht(D);
2534
2554
  }
2535
2555
  return D;
2536
2556
  }, rs = function(i, a, p, D) {
2537
2557
  try {
2538
- p ? i.setAttributeNS(p, a, D) : i.setAttribute(a, D), Ct(i) ? Fe(i) : or(e.removed);
2558
+ p ? i.setAttributeNS(p, a, D) : i.setAttribute(a, D), xt(i) ? Fe(i) : or(e.removed);
2539
2559
  } catch {
2540
2560
  ye(a, i);
2541
2561
  }
2542
2562
  }, Yn = function(i) {
2543
- ae(b.beforeSanitizeAttributes, i, null);
2563
+ ce(b.beforeSanitizeAttributes, i, null);
2544
2564
  const a = i.attributes;
2545
- if (!a || Ct(i))
2565
+ if (!a || xt(i))
2546
2566
  return;
2547
- B = jn(b.uponSanitizeAttribute, B, Nt, Dt);
2567
+ B = jn(b.uponSanitizeAttribute, B, Nt, gt);
2548
2568
  const p = {
2549
2569
  attrName: "",
2550
2570
  attrValue: "",
@@ -2553,11 +2573,11 @@ function Mr() {
2553
2573
  forceKeepAttr: void 0
2554
2574
  };
2555
2575
  let D = a.length;
2556
- const F = I(i.nodeName);
2576
+ const F = P(i.nodeName);
2557
2577
  for (; D--; ) {
2558
- const A = a[D], w = A.name, v = A.namespaceURI, W = A.value, Y = I(w), Qt = W;
2559
- let q = w === "value" ? Qt : iu(Qt);
2560
- if (p.attrName = Y, p.attrValue = q, p.keepAttr = !0, p.forceKeepAttr = void 0, ae(b.uponSanitizeAttribute, i, p), q = p.attrValue, _n && (Y === "id" || Y === "name") && ar(q, yn) !== 0 && (ye(w, i, A), q = yn + q), Te && j(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, q)) {
2578
+ const A = a[D], w = A.name, v = A.namespaceURI, W = A.value, Y = P(w), Qt = W;
2579
+ let q = w === "value" ? Qt : au(Qt);
2580
+ if (p.attrName = Y, p.attrValue = q, p.keepAttr = !0, p.forceKeepAttr = void 0, ce(b.uponSanitizeAttribute, i, p), q = p.attrValue, _n && (Y === "id" || Y === "name") && ar(q, yn) !== 0 && (ye(w, i, A), q = yn + q), Te && j(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, q)) {
2561
2581
  ye(w, i, A);
2562
2582
  continue;
2563
2583
  }
@@ -2570,27 +2590,27 @@ function Mr() {
2570
2590
  ye(w, i, A);
2571
2591
  continue;
2572
2592
  }
2573
- if (!xn && j(xu, q)) {
2593
+ if (!xn && j(wu, q)) {
2574
2594
  ye(w, i, A);
2575
2595
  continue;
2576
2596
  }
2577
- if (me && (q = kt(q)), !Gn(F, Y, q)) {
2597
+ if (me && (q = Ct(q)), !Gn(F, Y, q)) {
2578
2598
  ye(w, i, A);
2579
2599
  continue;
2580
2600
  }
2581
2601
  q = ns(F, Y, v, q), q !== Qt && rs(i, w, v, q);
2582
2602
  }
2583
2603
  }
2584
- ae(b.afterSanitizeAttributes, i, null);
2585
- }, Tt = function(i) {
2604
+ ce(b.afterSanitizeAttributes, i, null);
2605
+ }, _t = function(i) {
2586
2606
  let a = null;
2587
2607
  const p = Un(i);
2588
- for (ae(b.beforeSanitizeShadowDOM, i, null); a = p.nextNode(); )
2589
- if (ae(b.uponSanitizeShadowNode, a, null), qn(a, i), Yn(a), Ue(a.content) && Tt(a.content), Ce(a) === X.element) {
2608
+ for (ce(b.beforeSanitizeShadowDOM, i, null); a = p.nextNode(); )
2609
+ if (ce(b.uponSanitizeShadowNode, a, null), qn(a, i), Yn(a), Ue(a.content) && _t(a.content), Ce(a) === X.element) {
2590
2610
  const D = be(a);
2591
- Ue(D) && (Vt(D), Tt(D));
2611
+ Ue(D) && (Vt(D), _t(D));
2592
2612
  }
2593
- ae(b.afterSanitizeShadowDOM, i, null);
2613
+ ce(b.afterSanitizeShadowDOM, i, null);
2594
2614
  }, Vt = function(i) {
2595
2615
  const a = [{
2596
2616
  node: i,
@@ -2599,7 +2619,7 @@ function Mr() {
2599
2619
  for (; a.length > 0; ) {
2600
2620
  const p = a.pop();
2601
2621
  if (p.shadow) {
2602
- Tt(p.shadow);
2622
+ _t(p.shadow);
2603
2623
  continue;
2604
2624
  }
2605
2625
  const D = p.node, A = Ce(D) === X.element, w = U(D);
@@ -2611,7 +2631,7 @@ function Mr() {
2611
2631
  });
2612
2632
  if (A) {
2613
2633
  const v = Q ? Q(D) : null;
2614
- if (typeof v == "string" && I(v) === "template") {
2634
+ if (typeof v == "string" && P(v) === "template") {
2615
2635
  const W = D.content;
2616
2636
  Ue(W) && a.push({
2617
2637
  node: W,
@@ -2633,53 +2653,53 @@ function Mr() {
2633
2653
  };
2634
2654
  return e.sanitize = function(d) {
2635
2655
  let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = null, p = null, D = null, F = null;
2636
- if (qt = !d, qt && (d = "<!-->"), typeof d != "string" && !Je(d) && (d = cu(d), typeof d != "string"))
2656
+ if (qt = !d, qt && (d = "<!-->"), typeof d != "string" && !Je(d) && (d = du(d), typeof d != "string"))
2637
2657
  throw we("dirty is not a string, aborting");
2638
2658
  if (!e.isSupported)
2639
2659
  return d;
2640
- zt ? (R = dt, B = Dt) : Zt(i), (b.uponSanitizeElement.length > 0 || b.uponSanitizeAttribute.length > 0) && (R = V(R)), b.uponSanitizeAttribute.length > 0 && (B = V(B)), e.removed = [];
2660
+ zt ? (R = Dt, B = gt) : Zt(i), (b.uponSanitizeElement.length > 0 || b.uponSanitizeAttribute.length > 0) && (R = V(R)), b.uponSanitizeAttribute.length > 0 && (B = V(B)), e.removed = [];
2641
2661
  const A = Ht && typeof d != "string" && Je(d);
2642
2662
  if (A) {
2643
2663
  Kr(d);
2644
2664
  const W = We(d);
2645
2665
  if (typeof W == "string") {
2646
- const Y = I(W);
2666
+ const Y = P(W);
2647
2667
  if (!R[Y] || Qe[Y])
2648
- throw Et(d), we("root node is forbidden and cannot be sanitized in-place");
2668
+ throw bt(d), we("root node is forbidden and cannot be sanitized in-place");
2649
2669
  }
2650
- if (Ct(d))
2651
- throw Et(d), we("root node is clobbered and cannot be sanitized in-place");
2670
+ if (xt(d))
2671
+ throw bt(d), we("root node is clobbered and cannot be sanitized in-place");
2652
2672
  try {
2653
2673
  Vt(d);
2654
2674
  } catch (Y) {
2655
- throw Et(d), Y;
2675
+ throw bt(d), Y;
2656
2676
  }
2657
2677
  } else if (Je(d))
2658
2678
  a = zn("<!---->"), p = a.ownerDocument.importNode(d, !0), p.nodeType === X.element && p.nodeName === "BODY" || p.nodeName === "HTML" ? a = p : a.appendChild(p), Vt(p);
2659
2679
  else {
2660
- if (!Ie && !me && !_e && // eslint-disable-next-line unicorn/prefer-includes
2680
+ if (!Pe && !me && !_e && // eslint-disable-next-line unicorn/prefer-includes
2661
2681
  d.indexOf("<") === -1)
2662
- return M && mt ? ue(d) : d;
2682
+ return M && Ft ? oe(d) : d;
2663
2683
  if (a = zn(d), !a)
2664
- return Ie ? null : mt ? fe : "";
2684
+ return Pe ? null : Ft ? fe : "";
2665
2685
  }
2666
2686
  a && Ut && Fe(a.firstChild);
2667
2687
  const w = A ? d : a;
2668
2688
  try {
2669
2689
  const W = Un(w);
2670
2690
  for (; D = W.nextNode(); )
2671
- qn(D, w), Yn(D), Ue(D.content) && Tt(D.content);
2691
+ qn(D, w), Yn(D), Ue(D.content) && _t(D.content);
2672
2692
  } catch (W) {
2673
- throw A && (Et(d), Se(e.removed, (Y) => {
2674
- Y.element && bt(Y.element);
2693
+ throw A && (bt(d), Se(e.removed, (Y) => {
2694
+ Y.element && kt(Y.element);
2675
2695
  })), W;
2676
2696
  }
2677
2697
  if (A)
2678
2698
  return Se(e.removed, (W) => {
2679
- W.element && bt(W.element);
2699
+ W.element && kt(W.element);
2680
2700
  }), me && Xt(d), d;
2681
- if (Ie) {
2682
- if (me && Xt(a), gt)
2701
+ if (Pe) {
2702
+ if (me && Xt(a), mt)
2683
2703
  for (F = f.call(a.ownerDocument); a.firstChild; )
2684
2704
  F.appendChild(a.firstChild);
2685
2705
  else
@@ -2687,24 +2707,24 @@ function Mr() {
2687
2707
  return (B.shadowroot || B.shadowrootmode) && (F = S.call(r, F, !0)), F;
2688
2708
  }
2689
2709
  let v = _e ? a.outerHTML : a.innerHTML;
2690
- return _e && R["!doctype"] && a.ownerDocument && a.ownerDocument.doctype && a.ownerDocument.doctype.name && j(bu, a.ownerDocument.doctype.name) && (v = "<!DOCTYPE " + a.ownerDocument.doctype.name + `>
2691
- ` + v), me && (v = kt(v)), M && mt ? ue(v) : v;
2710
+ return _e && R["!doctype"] && a.ownerDocument && a.ownerDocument.doctype && a.ownerDocument.doctype.name && j(Tu, a.ownerDocument.doctype.name) && (v = "<!DOCTYPE " + a.ownerDocument.doctype.name + `>
2711
+ ` + v), me && (v = Ct(v)), M && Ft ? oe(v) : v;
2692
2712
  }, e.setConfig = function() {
2693
2713
  let d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2694
- Zt(d), zt = !0, dt = R, Dt = B;
2714
+ Zt(d), zt = !0, Dt = R, gt = B;
2695
2715
  }, e.clearConfig = function() {
2696
- ze = null, zt = !1, dt = null, Dt = null, M = Ye, fe = "";
2716
+ ze = null, zt = !1, Dt = null, gt = null, M = Ye, fe = "";
2697
2717
  }, e.isValidAttribute = function(d, i, a) {
2698
2718
  ze || Zt({});
2699
- const p = I(d), D = I(i);
2719
+ const p = P(d), D = P(i);
2700
2720
  return Gn(p, D, a);
2701
2721
  }, e.addHook = function(d, i) {
2702
2722
  typeof i == "function" && Z(b, d) && rt(b[d], i);
2703
2723
  }, e.removeHook = function(d, i) {
2704
2724
  if (Z(b, d)) {
2705
2725
  if (i !== void 0) {
2706
- const a = ru(b[d], i);
2707
- return a === -1 ? void 0 : su(b[d], a, 1)[0];
2726
+ const a = ou(b[d], i);
2727
+ return a === -1 ? void 0 : lu(b[d], a, 1)[0];
2708
2728
  }
2709
2729
  return or(b[d]);
2710
2730
  }
@@ -2714,8 +2734,8 @@ function Mr() {
2714
2734
  b = Ar();
2715
2735
  }, e;
2716
2736
  }
2717
- var Su = Mr();
2718
- const Ru = ["caption", "col", "colgroup", "small", "u", "iframe"], Bu = [
2737
+ var Ou = Mr();
2738
+ const Lu = ["caption", "col", "colgroup", "small", "u", "iframe"], $u = [
2719
2739
  "target",
2720
2740
  "role",
2721
2741
  "colspan",
@@ -2726,14 +2746,14 @@ const Ru = ["caption", "col", "colgroup", "small", "u", "iframe"], Bu = [
2726
2746
  "frameborder",
2727
2747
  "referrerpolicy",
2728
2748
  "loading"
2729
- ], vu = /* @__PURE__ */ new Set(["www.youtube-nocookie.com"]), Ou = (t) => {
2749
+ ], Pu = /* @__PURE__ */ new Set(["www.youtube-nocookie.com"]), Iu = (t) => {
2730
2750
  if (!t) return !1;
2731
2751
  try {
2732
- return vu.has(new URL(t).host);
2752
+ return Pu.has(new URL(t).host);
2733
2753
  } catch {
2734
2754
  return !1;
2735
2755
  }
2736
- }, Lu = /* @__PURE__ */ new Set([
2756
+ }, Nu = /* @__PURE__ */ new Set([
2737
2757
  "background-color",
2738
2758
  "border",
2739
2759
  "border-bottom",
@@ -2769,61 +2789,69 @@ const Ru = ["caption", "col", "colgroup", "small", "u", "iframe"], Bu = [
2769
2789
  "white-space",
2770
2790
  "width",
2771
2791
  "writing-mode"
2772
- ]), $u = {
2792
+ ]), Mu = {
2773
2793
  position: /* @__PURE__ */ new Set(["relative", "static"])
2774
- }, Iu = (t) => t.split(";").map((e) => e.trim()).filter(Boolean).filter((e) => {
2794
+ }, zu = (t) => t.split(";").map((e) => e.trim()).filter(Boolean).filter((e) => {
2775
2795
  const [n, ...r] = e.split(":"), s = n.trim().toLowerCase(), u = r.join(":").trim().toLowerCase();
2776
- return /url\(|expression\(|@import|behavior:/i.test(u) ? !1 : Lu.has(s) ? !0 : !!$u[s]?.has(u);
2777
- }).map((e) => `${e};`).join(" "), Pu = (t) => Array.from(t).filter((e) => (e.codePointAt(0) ?? 0) > 32).join("").toLowerCase();
2796
+ return /url\(|expression\(|@import|behavior:/i.test(u) ? !1 : Nu.has(s) ? !0 : !!Mu[s]?.has(u);
2797
+ }).map((e) => `${e};`).join(" "), Uu = (t) => Array.from(t).filter((e) => (e.codePointAt(0) ?? 0) > 32).join("").toLowerCase();
2778
2798
  let ut = null;
2779
- const Nu = () => ut || (ut = Su(window), ut.addHook("afterSanitizeAttributes", (t) => {
2799
+ const ju = () => ut || (ut = Ou(window), ut.addHook("afterSanitizeAttributes", (t) => {
2780
2800
  const e = t;
2781
2801
  if (!e.getAttribute) return;
2782
- if (e.tagName === "IFRAME" && !Ou(e.getAttribute("src"))) {
2802
+ if (e.tagName === "IFRAME" && !Iu(e.getAttribute("src"))) {
2783
2803
  e.remove();
2784
2804
  return;
2785
2805
  }
2786
2806
  for (const r of ["src", "href"]) {
2787
2807
  const s = e.getAttribute(r);
2788
- s && Pu(s).startsWith("data:") && e.removeAttribute(r);
2808
+ s && Uu(s).startsWith("data:") && e.removeAttribute(r);
2789
2809
  }
2790
2810
  const n = e.getAttribute("style");
2791
2811
  if (n) {
2792
- const r = Iu(n);
2812
+ const r = zu(n);
2793
2813
  r ? e.setAttribute("style", r) : e.removeAttribute("style");
2794
2814
  }
2795
- e.getAttribute("target") === "_blank" && e.setAttribute("rel", "noopener noreferrer");
2796
- }), ut), Mu = (t) => Nu().sanitize(t, {
2797
- ADD_TAGS: Ru,
2798
- ADD_ATTR: Bu,
2815
+ if (e.getAttribute("target") === "_blank") {
2816
+ const r = (e.getAttribute("rel") ?? "").split(/\s+/);
2817
+ e.setAttribute(
2818
+ "rel",
2819
+ Array.from(
2820
+ /* @__PURE__ */ new Set(["noopener", "noreferrer", ...r.filter(Boolean)])
2821
+ ).join(" ")
2822
+ );
2823
+ }
2824
+ }), ut), Hu = (t) => ju().sanitize(t, {
2825
+ ADD_TAGS: Lu,
2826
+ ADD_ATTR: $u,
2799
2827
  RETURN_DOM_FRAGMENT: !0,
2800
2828
  ALLOWED_URI_REGEXP: /^(?:(?:https?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.\-:]|$))/i
2801
- }), zu = (t) => Math.min(6, Math.max(1, t)), Uu = (t, e = {}) => {
2829
+ }), qu = (t) => Math.min(6, Math.max(1, t)), Gu = (t, e = {}) => {
2802
2830
  const { shiftHeading: n = 0, tocMaxDepth: r = 2 } = e, s = new Br(
2803
2831
  { gfm: !0, breaks: !0 },
2804
- Zi({
2832
+ Ki({
2805
2833
  // The card title is a heading too, and the shift has to reach it.
2806
- cardHeadingLevel: `h${zu(3 + n)}`
2834
+ cardHeadingLevel: `h${qu(3 + n)}`
2807
2835
  })
2808
- ), u = Mu(s.parse(t, { async: !1 })), { headings: l } = Fi(u, document, {
2836
+ ), u = Hu(s.parse(t, { async: !1 })), { headings: l } = Ei(u, document, {
2809
2837
  shiftHeading: n,
2810
2838
  tocMaxDepth: r
2811
2839
  }), o = document.createElement("div");
2812
2840
  return o.appendChild(u), { html: o.innerHTML, headings: l };
2813
- }, ju = { html: "", headings: [] }, zr = ({ items: t }) => /* @__PURE__ */ ee.jsx(ee.Fragment, { children: t.map((e) => /* @__PURE__ */ ee.jsxs("li", { children: [
2841
+ }, Wu = { html: "", headings: [] }, zr = ({ items: t }) => /* @__PURE__ */ ee.jsx(ee.Fragment, { children: t.map((e) => /* @__PURE__ */ ee.jsxs("li", { children: [
2814
2842
  /* @__PURE__ */ ee.jsx(ss, { href: `#${e.id}`, children: e.value }),
2815
2843
  e.children ? /* @__PURE__ */ ee.jsx(Er, { children: /* @__PURE__ */ ee.jsx(zr, { items: e.children }) }) : null
2816
- ] }, e.id)) }), Gu = ({
2844
+ ] }, e.id)) }), Xu = ({
2817
2845
  children: t,
2818
2846
  showToc: e,
2819
2847
  tocTitle: n = "目次",
2820
2848
  shiftHeading: r = 0,
2821
2849
  tocMaxDepth: s = 2
2822
2850
  }) => {
2823
- const [{ html: u, headings: l }, o] = St.useState(ju);
2824
- return St.useEffect(() => {
2825
- o(Uu(t, { shiftHeading: r, tocMaxDepth: s }));
2826
- }, [t, r, s]), St.useEffect(() => {
2851
+ const [{ html: u, headings: l }, o] = Rt.useState(Wu);
2852
+ return Rt.useEffect(() => {
2853
+ o(Gu(t, { shiftHeading: r, tocMaxDepth: s }));
2854
+ }, [t, r, s]), Rt.useEffect(() => {
2827
2855
  if (!u) return;
2828
2856
  const c = decodeURI(window.location.hash.slice(1));
2829
2857
  c && document.getElementById(c)?.scrollIntoView();
@@ -2832,11 +2860,17 @@ const Nu = () => ut || (ut = Su(window), ut.addHook("afterSanitizeAttributes", (
2832
2860
  /* @__PURE__ */ ee.jsx("h2", { className: "mb-4 font-bold text-h-xs-m sm:text-h-xs", children: n }),
2833
2861
  /* @__PURE__ */ ee.jsx(Er, { children: /* @__PURE__ */ ee.jsx(zr, { items: l }) })
2834
2862
  ] }),
2835
- /* @__PURE__ */ ee.jsx("div", { dangerouslySetInnerHTML: { __html: u } })
2863
+ /* @__PURE__ */ ee.jsx(
2864
+ "div",
2865
+ {
2866
+ className: "flex flex-col gap-8",
2867
+ dangerouslySetInnerHTML: { __html: u }
2868
+ }
2869
+ )
2836
2870
  ] });
2837
2871
  };
2838
2872
  export {
2839
- Gu as Markdown,
2873
+ Xu as Markdown,
2840
2874
  zr as TableOfContents,
2841
- Uu as render
2875
+ Gu as render
2842
2876
  };