dash-ant-design 0.1.2 → 0.1.3

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 (89) hide show
  1. package/dash_antd_components/async-audio-player.js +1 -1
  2. package/dash_antd_components/async-chart.js +1 -1
  3. package/dash_antd_components/async-data-entry.js +1 -1
  4. package/dash_antd_components/async-display.js +1 -1
  5. package/dash_antd_components/async-dnd.js +1 -1
  6. package/dash_antd_components/async-feedback.js +1 -1
  7. package/dash_antd_components/async-form-controls.js +1 -0
  8. package/dash_antd_components/async-form-upload.js +1 -1
  9. package/dash_antd_components/async-highlight.js +1 -1
  10. package/dash_antd_components/async-icon-outlined.js +1 -1
  11. package/dash_antd_components/async-infographic.js +1 -1
  12. package/dash_antd_components/async-locale-ar.js +1 -1
  13. package/dash_antd_components/async-locale-az.js +1 -1
  14. package/dash_antd_components/async-locale-bg.js +1 -1
  15. package/dash_antd_components/async-locale-bn.js +1 -1
  16. package/dash_antd_components/async-locale-by.js +1 -1
  17. package/dash_antd_components/async-locale-ca.js +1 -1
  18. package/dash_antd_components/async-locale-cs.js +1 -1
  19. package/dash_antd_components/async-locale-da.js +1 -1
  20. package/dash_antd_components/async-locale-de.js +1 -1
  21. package/dash_antd_components/async-locale-el.js +1 -1
  22. package/dash_antd_components/async-locale-en.js +1 -1
  23. package/dash_antd_components/async-locale-es.js +1 -1
  24. package/dash_antd_components/async-locale-et.js +1 -1
  25. package/dash_antd_components/async-locale-eu.js +1 -1
  26. package/dash_antd_components/async-locale-fa.js +1 -1
  27. package/dash_antd_components/async-locale-fi.js +1 -1
  28. package/dash_antd_components/async-locale-fr.js +1 -1
  29. package/dash_antd_components/async-locale-ga.js +1 -1
  30. package/dash_antd_components/async-locale-gl.js +1 -1
  31. package/dash_antd_components/async-locale-he.js +1 -1
  32. package/dash_antd_components/async-locale-hi.js +1 -1
  33. package/dash_antd_components/async-locale-hr.js +1 -1
  34. package/dash_antd_components/async-locale-hu.js +1 -1
  35. package/dash_antd_components/async-locale-hy.js +1 -1
  36. package/dash_antd_components/async-locale-id.js +1 -1
  37. package/dash_antd_components/async-locale-is.js +1 -1
  38. package/dash_antd_components/async-locale-it.js +1 -1
  39. package/dash_antd_components/async-locale-ja.js +1 -1
  40. package/dash_antd_components/async-locale-ka.js +1 -1
  41. package/dash_antd_components/async-locale-kk.js +1 -1
  42. package/dash_antd_components/async-locale-km.js +1 -1
  43. package/dash_antd_components/async-locale-kmr.js +1 -1
  44. package/dash_antd_components/async-locale-kn.js +1 -1
  45. package/dash_antd_components/async-locale-ko.js +1 -1
  46. package/dash_antd_components/async-locale-ku.js +1 -1
  47. package/dash_antd_components/async-locale-lt.js +1 -1
  48. package/dash_antd_components/async-locale-lv.js +1 -1
  49. package/dash_antd_components/async-locale-mk.js +1 -1
  50. package/dash_antd_components/async-locale-ml.js +1 -1
  51. package/dash_antd_components/async-locale-mn.js +1 -1
  52. package/dash_antd_components/async-locale-mr.js +1 -1
  53. package/dash_antd_components/async-locale-ms.js +1 -1
  54. package/dash_antd_components/async-locale-my.js +1 -1
  55. package/dash_antd_components/async-locale-nb.js +1 -1
  56. package/dash_antd_components/async-locale-ne.js +1 -1
  57. package/dash_antd_components/async-locale-nl.js +1 -1
  58. package/dash_antd_components/async-locale-pl.js +1 -1
  59. package/dash_antd_components/async-locale-pt.js +1 -1
  60. package/dash_antd_components/async-locale-ro.js +1 -1
  61. package/dash_antd_components/async-locale-ru.js +1 -1
  62. package/dash_antd_components/async-locale-si.js +1 -1
  63. package/dash_antd_components/async-locale-sk.js +1 -1
  64. package/dash_antd_components/async-locale-sl.js +1 -1
  65. package/dash_antd_components/async-locale-sq.js +1 -1
  66. package/dash_antd_components/async-locale-sr.js +1 -1
  67. package/dash_antd_components/async-locale-sv.js +1 -1
  68. package/dash_antd_components/async-locale-ta.js +1 -1
  69. package/dash_antd_components/async-locale-th.js +1 -1
  70. package/dash_antd_components/async-locale-tk.js +1 -1
  71. package/dash_antd_components/async-locale-tr.js +1 -1
  72. package/dash_antd_components/async-locale-uk.js +1 -1
  73. package/dash_antd_components/async-locale-ur.js +1 -1
  74. package/dash_antd_components/async-locale-uz.js +1 -1
  75. package/dash_antd_components/async-locale-vi.js +1 -1
  76. package/dash_antd_components/async-locale-zh.js +1 -1
  77. package/dash_antd_components/async-markdown.js +1 -1
  78. package/dash_antd_components/async-media-shared.js +1 -1
  79. package/dash_antd_components/async-media.js +1 -1
  80. package/dash_antd_components/async-navigation.js +1 -1
  81. package/dash_antd_components/async-picker.js +1 -1
  82. package/dash_antd_components/async-select.js +1 -1
  83. package/dash_antd_components/async-sheet.js +1 -1
  84. package/dash_antd_components/async-table.js +1 -1
  85. package/dash_antd_components/async-tree.js +1 -1
  86. package/dash_antd_components/async-video-player.js +1 -1
  87. package/dash_antd_components/async-viz-shared.js +1 -1
  88. package/dash_antd_components/dash_antd_components.js +1 -1
  89. package/package.json +2 -2
@@ -1 +1 @@
1
- (self.webpackChunkdash_antd_components=self.webpackChunkdash_antd_components||[]).push([["async-markdown"],{"./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/cjs.js!./node_modules/.pnpm/@ant-design+x-markdown@2.10.0_@types+react@18.3.31_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@ant-design/x-markdown/es/XMarkdown/DebugPanel/DebugPanel.css"(e,t,n){"use strict";var r=n("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/runtime/noSourceMaps.js"),o=n.n(r),i=n("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/runtime/api.js"),a=n.n(i)()(o());a.push([e.id,'.x-markdown-debug-panel {\n position: fixed;\n z-index: 9999;\n right: 0;\n background: rgba(0, 0, 0, 0.85);\n border-radius: 8px;\n padding: 12px;\n font-family:\n "SF Mono", "Monaco", "Inconsolata", "Fira Mono", "Droid Sans Mono", "Source Code Pro", monospace;\n font-size: 12px;\n color: #fff;\n width: 180px;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n backdrop-filter: blur(8px);\n user-select: none;\n transition: box-shadow 0.2s;\n}\n\n.x-markdown-debug-panel:hover {\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);\n}\n\n.x-markdown-debug-row {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 8px;\n}\n\n.x-markdown-debug-row:last-child {\n margin-bottom: 0;\n}\n\n.x-markdown-debug-label {\n color: rgba(255, 255, 255, 0.65);\n font-weight: 500;\n min-width: 60px;\n}\n\n.x-markdown-debug-value {\n font-weight: 600;\n min-width: 50px;\n text-align: right;\n}\n\n.x-markdown-debug-chart {\n margin-left: auto;\n}\n\n/* Actions */\n.x-markdown-debug-actions {\n display: flex;\n gap: 8px;\n margin-top: 12px;\n padding-top: 12px;\n border-top: 1px solid rgba(255, 255, 255, 0.1);\n}\n\n.x-markdown-debug-action {\n flex: 1;\n padding: 6px 12px;\n background: rgba(255, 255, 255, 0.1);\n border: 1px solid rgba(255, 255, 255, 0.2);\n border-radius: 4px;\n color: #fff;\n font-size: 11px;\n font-family: inherit;\n cursor: pointer;\n transition: all 0.2s;\n font-weight: 500;\n}\n\n.x-markdown-debug-action:hover {\n background: rgba(255, 255, 255, 0.15);\n border-color: rgba(255, 255, 255, 0.3);\n}\n\n.x-markdown-debug-action:active {\n transform: scale(0.98);\n}\n\n/* Record Button */\n.x-markdown-debug-record-btn.recording {\n background: rgba(255, 77, 79, 0.2);\n border-color: #ff4d4f;\n animation: recording-pulse 1.5s ease-in-out infinite;\n}\n\n@keyframes recording-pulse {\n 0%,\n 100% {\n box-shadow: 0 0 0 0 rgba(255, 77, 79, 0.4);\n }\n 50% {\n box-shadow: 0 0 0 8px rgba(255, 77, 79, 0);\n }\n}\n\n/* Modal Overlay */\n.x-markdown-debug-modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0.75);\n backdrop-filter: blur(4px);\n z-index: 10000;\n display: flex;\n align-items: center;\n justify-content: center;\n animation: fadeIn 0.2s ease-out;\n}\n\n@keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n\n/* Modal */\n.x-markdown-debug-modal {\n background: rgba(30, 30, 30, 0.95);\n border-radius: 12px;\n box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);\n max-width: 90vw;\n max-height: 90vh;\n overflow: auto;\n animation: slideIn 0.3s ease-out;\n border: 1px solid rgba(255, 255, 255, 0.1);\n}\n\n@keyframes slideIn {\n from {\n transform: translateY(-20px);\n opacity: 0;\n }\n to {\n transform: translateY(0);\n opacity: 1;\n }\n}\n\n/* Modal Header */\n.x-markdown-debug-modal-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 20px 24px;\n border-bottom: 1px solid rgba(255, 255, 255, 0.1);\n}\n\n.x-markdown-debug-close-btn {\n width: 32px;\n height: 32px;\n border-radius: 6px;\n background: rgba(255, 255, 255, 0.1);\n border: none;\n color: #fff;\n font-size: 18px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s;\n}\n\n.x-markdown-debug-close-btn:hover {\n background: rgba(255, 77, 79, 0.3);\n}\n\n/* Modal Content */\n.x-markdown-debug-modal-content {\n padding: 24px;\n}\n\n/* Stats Summary */\n.x-markdown-debug-stats-summary {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n gap: 16px;\n margin-bottom: 24px;\n}\n\n.x-markdown-debug-stat-item {\n background: rgba(255, 255, 255, 0.05);\n border-radius: 8px;\n padding: 16px;\n border: 1px solid rgba(255, 255, 255, 0.1);\n}\n\n.x-markdown-debug-stat-label {\n font-size: 11px;\n color: rgba(255, 255, 255, 0.6);\n margin-bottom: 8px;\n text-transform: uppercase;\n letter-spacing: 0.5px;\n}\n\n.x-markdown-debug-stat-value {\n font-size: 20px;\n font-weight: 700;\n color: #fff;\n}\n\n/* Chart */\n.x-markdown-debug-chart-full {\n background: rgba(255, 255, 255, 0.02);\n border-radius: 8px;\n border: 1px solid rgba(255, 255, 255, 0.1);\n}\n\n.x-markdown-debug-chart-full .fps-line,\n.x-markdown-debug-chart-full .memory-line {\n filter: drop-shadow(0 0 4px currentColor);\n}\n\n/* Legend */\n.x-markdown-debug-legend {\n display: flex;\n gap: 24px;\n justify-content: center;\n margin-top: 16px;\n}\n\n.x-markdown-debug-legend-item {\n display: flex;\n align-items: center;\n gap: 8px;\n font-size: 13px;\n color: rgba(255, 255, 255, 0.8);\n}\n\n.x-markdown-debug-legend-color {\n width: 12px;\n height: 12px;\n border-radius: 2px;\n}\n\n/* Responsive */\n@media (max-width: 768px) {\n .x-markdown-debug-stats-summary {\n grid-template-columns: repeat(2, 1fr);\n }\n}\n',""]);n.d(t,["A",0,a])},"./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/cjs.js!./node_modules/.pnpm/@ant-design+x-markdown@2.10.0_@types+react@18.3.31_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@ant-design/x-markdown/es/XMarkdown/index.css"(e,t,n){"use strict";var r=n("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/runtime/noSourceMaps.js"),o=n.n(r),i=n("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/runtime/api.js"),a=n.n(i)()(o());a.push([e.id,"/* ==========================================\n XMarkdown – default css\n ========================================== */\n\n/*\n * Default tag styles are gated behind `:not(.x-md-disable-all):not(.x-md-disable-<tag>)`\n * so consumers can opt out via the `disableDefaultStyles` prop. This prevents the\n * descendant-selector defaults (e.g. `ul`/`li`/`code`) from polluting elements\n * rendered by custom components (such as antd `Collapse`) inside the container.\n */\n\n@keyframes x-markdown-fade-in {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}\n\n.x-markdown {\n --text-color: inherit;\n --font-size: inherit;\n --margin-block: 0 0 1em 0;\n --td-th-padding: 0.85em 1em;\n --pre-th-td-padding: 2px 0;\n --border-font-weight: 600;\n --padding-ul-ol: 0 0 0 1em;\n --margin-ul-ol: 0 0 1em 1.8em;\n --margin-li: 0.25em 0;\n --margin-pre: 1em 0;\n --padding-code-inline: 0.2em 0.4em;\n --margin-code-inline: 0 0.2em;\n --code-inline-text: 0.85em;\n --small-border-radius: 2px;\n --image-margin: 0.5em 0;\n --hr-margin: 1.5em 0;\n --table-margin: 1em 0;\n\n font-size: var(--font-size);\n line-height: 1.5714285714285714;\n width: 100%;\n color: var(--text-color);\n}\n\n/* xmd-tail: default styling for streaming tail indicator */\nxmd-tail {\n display: inline;\n}\n\n.xmd-tail {\n color: inherit;\n font-size: inherit;\n line-height: inherit;\n}\n\n.x-markdown p,\n.x-markdown div,\n.x-markdown span,\n.x-markdown li {\n word-break: break-word;\n overflow-wrap: break-word;\n}\n\n.x-markdown pre,\n.x-markdown code {\n word-break: break-word;\n overflow-wrap: break-word;\n white-space: pre-wrap;\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-th) th,\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-td) td {\n padding: var(--td-th-padding);\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-th) th {\n font-weight: var(--border-font-weight);\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-table) pre table {\n box-shadow: none;\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-td) pre td,\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-th) pre th {\n padding: var(--pre-th-td-padding);\n border: none;\n text-align: left;\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-p) p {\n margin: var(--margin-block);\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-p) p:first-child {\n margin-top: 0;\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-p) p:last-child {\n margin-bottom: 0;\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-ul) ul,\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-ol) ol {\n margin: var(--margin-ul-ol);\n padding: var(--padding-ul-ol);\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-ul) ul:first-child,\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-ol) ol:first-child {\n margin-top: 0;\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-ul) ul:last-child,\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-ol) ol:last-child {\n margin-bottom: 0;\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-ol):not(.x-md-disable-li) ol > li {\n list-style: decimal;\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-ul):not(.x-md-disable-li) ul > li {\n list-style: disc;\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-li) li {\n margin: var(--margin-li);\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-li) li:first-child {\n margin-top: 0;\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-li) li:last-child {\n margin-bottom: 0;\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-pre) pre {\n margin: var(--margin-pre);\n overflow-x: auto;\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-pre) pre:first-child {\n margin-top: 0;\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-pre) pre:last-child {\n margin-bottom: 0;\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-code) code {\n padding: var(--padding-code-inline);\n margin: var(--margin-code-inline);\n font-size: var(--code-inline-text);\n border-radius: var(--small-border-radius);\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-code) pre code {\n padding: 0;\n margin: 0;\n font-size: inherit;\n border-radius: 0;\n line-height: 2;\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-img) img {\n max-width: 100%;\n height: auto;\n margin: var(--image-margin);\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-hr) hr {\n margin: var(--hr-margin);\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-table) table:not(pre) {\n margin: var(--table-margin);\n border-collapse: collapse;\n display: block;\n width: max-content;\n max-width: 100%;\n overflow: auto;\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-table) table:not(pre):first-child {\n margin-top: 0;\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-table) table:not(pre):last-child {\n margin-bottom: 0;\n}\n\n.x-markdown .inline-katex .katex-display {\n display: inline-block;\n margin: 0;\n text-align: initial;\n vertical-align: middle;\n}\n\n.x-markdown .inline-katex .katex-display > .katex {\n display: inline-block;\n text-align: initial;\n white-space: normal;\n}\n\n.x-markdown .inline-katex .katex-display > .katex > .katex-html {\n display: inline-block;\n position: static;\n}\n\n.x-markdown .inline-katex .katex-display > .katex > .katex-html > .tag {\n position: static;\n}\n\n.x-markdown .block-katex {\n display: block;\n margin: 1em 0;\n}\n",""]);n.d(t,["A",0,a])},"./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/cjs.js!./node_modules/.pnpm/@ant-design+x-markdown@2.10.0_@types+react@18.3.31_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@ant-design/x-markdown/themes/dark.css"(e,t,n){"use strict";var r=n("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/runtime/noSourceMaps.js"),o=n.n(r),i=n("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/runtime/api.js"),a=n.n(i)()(o());a.push([e.id,'.x-markdown-dark {\n --font-size: 14px;\n --primary-color: #1677ff;\n --primary-color-hover: #4096ff;\n --heading-color: #ffffff;\n --text-color: rgba(255, 255, 255, 0.85);\n --border-color: rgba(48, 48, 48, 1);\n --line-color: rgba(253, 253, 253, 0.12);\n --dark-bg: rgba(255, 255, 255, 0.1);\n --table-head-bg: rgba(29, 29, 29, 1);\n --table-body-bg: rgba(20, 20, 20, 1);\n --cite-bg: rgba(255, 255, 255, 0.1);\n --cite-hover-bg: rgba(255, 255, 255, 0.2);\n --border-radius-middle: 6px;\n --border-radius-small: 4px;\n --td-th-padding: 10px 12px;\n --border-font-weight: 600;\n --margin-block: 0 0 16px 0;\n --padding-ul-ol: 0 0 0 16px;\n --margin-ul-ol: 0 0 16px 28px;\n --margin-li: 0 0 14px 0;\n --hr-margin: 24px 0;\n --table-margin: 0 0 24px 0;\n --padding-code: 16px;\n --xmd-tail-color: var(--text-color);\n}\n\n.x-markdown-dark h1,\n.x-markdown-dark h2,\n.x-markdown-dark h3,\n.x-markdown-dark h4 {\n color: var(--heading-color);\n font-weight: var(--border-font-weight);\n margin: var(--margin-block);\n}\n\n.x-markdown-dark h1 {\n font-size: 24px;\n line-height: 36px;\n}\n\n.x-markdown-dark h2 {\n font-size: 20px;\n line-height: 32px;\n}\n\n.x-markdown-dark h3 {\n font-size: 18px;\n /* 18px */\n line-height: 30px;\n}\n\n.x-markdown-dark h4 {\n font-size: 16px;\n}\n\n.x-markdown-dark p,\n.x-markdown-dark li {\n color: var(--text-color);\n margin: var(--margin-block);\n}\n\n/* 列表项通用样式 */\n.x-markdown-dark li {\n position: relative;\n}\n\n.x-markdown-dark li::marker {\n font-size: 16px;\n font-weight: 400;\n line-height: 28px;\n color: var(--heading-color);\n}\n\n.x-markdown-dark ul > li ul > li,\n.x-markdown-dark ul > li ol > li {\n list-style: circle;\n}\n\n.x-markdown-dark ul > li ul > li ul > li,\n.x-markdown-dark ul > li ul > li ol > li,\n.x-markdown-dark ul > li ol > li ul > li,\n.x-markdown-dark ul > li ol > li ol > li {\n list-style: square;\n}\n\n.x-markdown-dark ol > li ol > li,\n.x-markdown-dark ol > li ul > li {\n list-style: lower-alpha;\n}\n\n.x-markdown-dark ol > li ol > li ol > li,\n.x-markdown-dark ol > li ol > li ul > li,\n.x-markdown-dark ol > li ul > li ol > li,\n.x-markdown-dark ol > li ul > li ul > li {\n list-style: lower-roman;\n}\n\n.x-markdown-dark hr {\n border: 0;\n border-top: 1px solid var(--line-color);\n}\n\n.x-markdown-dark table {\n border-collapse: collapse;\n overflow: hidden;\n box-shadow: 0 1px 3px rgba(255, 255, 255, 0.05);\n}\n\n.x-markdown-dark thead {\n background-color: var(--table-head-bg);\n}\n\n.x-markdown-dark tbody {\n background-color: var(--table-body-bg);\n}\n\n.x-markdown-dark tbody tr {\n background-color: var(--table-body-bg);\n transition: background-color 200ms linear;\n\n &:hover {\n background-color: var(--table-head-bg);\n }\n}\n\n.x-markdown-dark th,\n.x-markdown-dark td {\n padding: var(--td-th-padding);\n border: 1px solid var(--border-color);\n}\n\n.x-markdown-dark th {\n color: var(--heading-color);\n}\n\n.x-markdown-dark td {\n color: var(--text-color);\n}\n\n.x-markdown-dark blockquote {\n border-left: 4px solid var(--border-color);\n padding: 4px 12px;\n margin: 16px 0;\n background-color: var(--cite-bg);\n border-radius: 0 var(--border-radius-middle) var(--border-radius-middle) 0;\n transition: background-color 0.2s ease;\n}\n\n.x-markdown-dark blockquote:hover {\n background-color: var(--cite-hover-bg);\n}\n\n.x-markdown-dark pre code:not([class$="-codeHighlighter-code"] pre code) {\n display: block;\n background: var(--dark-bg) !important;\n padding: var(--padding-code);\n color: var(--text-color) !important;\n line-height: 1.3;\n font-size: var(--font-size);\n border-radius: var(--border-radius-middle);\n margin: var(--margin-pre);\n}\n\n.x-markdown-dark code:not([class$="-codeHighlighter-code"] code):not(pre code) {\n background-color: var(--dark-bg) !important;\n color: var(--text-color) !important;\n border-radius: var(--border-radius-small);\n padding: 2px 6px;\n margin-inline: 3px;\n font-size: var(--font-size);\n border: 1px solid var(--border-color);\n}\n\n.x-markdown-dark img {\n max-width: 100%;\n}\n\n.x-markdown-dark a {\n color: var(--primary-color);\n text-decoration: none;\n transition: color 0.2s ease;\n position: relative;\n}\n\n.x-markdown-dark a:hover {\n color: var(--primary-color-hover);\n text-decoration: underline;\n}\n\n.x-markdown-dark a::after {\n content: "↗";\n margin-left: 4px;\n vertical-align: super;\n opacity: 0.7;\n}\n',""]);n.d(t,["A",0,a])},"./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/cjs.js!./node_modules/.pnpm/@ant-design+x-markdown@2.10.0_@types+react@18.3.31_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@ant-design/x-markdown/themes/light.css"(e,t,n){"use strict";var r=n("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/runtime/noSourceMaps.js"),o=n.n(r),i=n("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/runtime/api.js"),a=n.n(i)()(o());a.push([e.id,'.x-markdown-light {\n --font-size: 14px;\n --primary-color: #1677ff;\n --primary-color-hover: #4096ff;\n --heading-color: #000000;\n --text-color: rgba(0, 0, 0, 0.85);\n --border-color: rgba(240, 240, 240, 1);\n --line-color: rgba(5, 5, 5, 0.06);\n --light-bg: rgba(0, 0, 0, 0.04);\n --table-head-bg: rgba(250, 250, 250, 1);\n --table-body-bg: rgba(255, 255, 255, 1);\n --cite-bg: rgba(0, 0, 0, 0.1);\n --cite-hover-bg: rgba(0, 0, 0, 0.2);\n --border-radius-middle: 6px;\n --border-radius-small: 4px;\n --td-th-padding: 10px 12px;\n --border-font-weight: 600;\n --margin-block: 0 0 16px 0;\n --padding-ul-ol: 0 0 0 16px;\n --margin-ul-ol: 0 0 16px 28px;\n --margin-li: 0 0 14px 0;\n --hr-margin: 24px 0;\n --table-margin: 0 0 24px 0;\n --margin-pre: 0 0 16px 0;\n --padding-code: 16px;\n --xmd-tail-color: var(--text-color);\n}\n\n.x-markdown-light h1,\n.x-markdown-light h2,\n.x-markdown-light h3,\n.x-markdown-light h4 {\n color: var(--heading-color);\n font-weight: var(--border-font-weight);\n margin: var(--margin-block);\n}\n\n.x-markdown-light h1 {\n font-size: 24px;\n line-height: 36px;\n}\n\n.x-markdown-light h2 {\n font-size: 20px;\n line-height: 32px;\n}\n\n.x-markdown-light h3 {\n font-size: 18px;\n /* 18px */\n line-height: 30px;\n}\n\n.x-markdown-light h4 {\n font-size: 16px;\n}\n\n.x-markdown-light p,\n.x-markdown-light li {\n color: var(--text-color);\n margin: var(--margin-block);\n}\n\n/* 列表项通用样式 */\n.x-markdown-light li {\n position: relative;\n}\n\n.x-markdown-light li::marker {\n font-size: 16px;\n font-weight: 400;\n line-height: 28px;\n color: var(--heading-color);\n}\n\n.x-markdown-light ul > li ul > li,\n.x-markdown-light ul > li ol > li {\n list-style: circle;\n}\n\n.x-markdown-light ul > li ul > li ul > li,\n.x-markdown-light ul > li ul > li ol > li,\n.x-markdown-light ul > li ol > li ul > li,\n.x-markdown-light ul > li ol > li ol > li {\n list-style: square;\n}\n\n.x-markdown-light ol > li ol > li,\n.x-markdown-light ol > li ul > li {\n list-style: lower-alpha;\n}\n\n.x-markdown-light ol > li ol > li ol > li,\n.x-markdown-light ol > li ol > li ul > li,\n.x-markdown-light ol > li ul > li ol > li,\n.x-markdown-light ol > li ul > li ul > li {\n list-style: lower-roman;\n}\n\n.x-markdown-light hr {\n border: 0;\n border-top: 1px solid var(--line-color);\n margin: var(--hr-margin);\n}\n\n.x-markdown-light table {\n border-collapse: collapse;\n overflow: hidden;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);\n margin: var(--table-margin);\n}\n\n.x-markdown-light thead {\n background-color: var(--table-head-bg);\n}\n\n.x-markdown-light tbody {\n background-color: var(--table-body-bg);\n}\n\n.x-markdown-light tbody tr {\n background-color: var(--table-body-bg);\n transition: background-color 200ms linear;\n\n &:hover {\n background-color: var(--table-head-bg);\n }\n}\n\n.x-markdown-light th,\n.x-markdown-light td {\n padding: var(--td-th-padding);\n border: 1px solid var(--border-color);\n}\n\n.x-markdown-light th {\n color: var(--heading-color);\n}\n\n.x-markdown-light td {\n color: var(--text-color);\n}\n\n.x-markdown-light blockquote {\n border-left: 4px solid var(--border-color);\n padding: 4px 12px;\n margin: 16px 0;\n background-color: var(--cite-bg);\n border-radius: 0 var(--border-radius-middle) var(--border-radius-middle) 0;\n transition: background-color 0.2s ease;\n}\n\n.x-markdown-light blockquote:hover {\n background-color: var(--cite-hover-bg);\n}\n\n.x-markdown-light pre code:not([class$="-highlightCode-code"] pre code) {\n display: block;\n background: var(--light-bg) !important;\n padding: var(--padding-code);\n color: var(--text-color) !important;\n line-height: 1.3;\n font-size: var(--font-size);\n border-radius: var(--border-radius-middle);\n margin: var(--margin-pre);\n}\n\n.x-markdown-light code:not([class$="-highlightCode-code"] code):not(pre code) {\n background-color: var(--light-bg) !important;\n color: var(--text-color) !important;\n border-radius: var(--border-radius-small);\n padding: 2px 6px;\n margin-inline: 3px;\n font-size: var(--font-size);\n border: 1px solid var(--border-color);\n}\n\n.x-markdown-light img {\n max-width: 100%;\n}\n\n.x-markdown-light a {\n color: var(--primary-color);\n text-decoration: none;\n transition: color 0.2s ease;\n position: relative;\n}\n\n.x-markdown-light a:hover {\n color: var(--primary-color-hover);\n text-decoration: underline;\n}\n\n.x-markdown-light a::after {\n content: "↗";\n margin-left: 4px;\n vertical-align: super;\n opacity: 0.7;\n}\n',""]);n.d(t,["A",0,a])},"./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/cjs.js!./src/components/fragments/Markdown.css"(e,t,n){"use strict";var r=n("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/runtime/noSourceMaps.js"),o=n.n(r),i=n("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/runtime/api.js"),a=n.n(i)()(o());a.push([e.id,".x-markdown pre > code.dac-markdown-code {\n display: block;\n margin: 0 !important;\n padding: 12px 16px !important;\n border-radius: 6px;\n}\n",""]);n.d(t,["A",0,a])},"./node_modules/.pnpm/domelementtype@2.3.0/node_modules/domelementtype/lib/index.js"(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},"./node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/index.js"(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n("./node_modules/.pnpm/domelementtype@2.3.0/node_modules/domelementtype/lib/index.js"),a=n("./node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/node.js");o(n("./node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/node.js"),t);var l={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=l),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:l,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=new a.Element(e,t,void 0,this.options.xmlMode?i.ElementType.Tag:void 0);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=s,t.default=s},"./node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/node.js"(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var a=n("./node_modules/.pnpm/domelementtype@2.3.0/node_modules/domelementtype/lib/index.js"),l=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),v(this,e)},e}();t.Node=l;var s=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return o(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(l);t.DataNode=s;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Text,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(s);t.Text=c;var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Comment,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(s);t.Comment=d;var u=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=a.ElementType.Directive,r}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(s);t.ProcessingInstruction=u;var p=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return o(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=p;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=m;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=h;var f=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var i=e.call(this,r)||this;return i.name=t,i.attribs=n,i.type=o,i}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map(function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}})},enumerable:!1,configurable:!0}),t}(p);function g(e){return(0,a.isTag)(e)}function b(e){return e.type===a.ElementType.CDATA}function x(e){return e.type===a.ElementType.Text}function k(e){return e.type===a.ElementType.Comment}function y(e){return e.type===a.ElementType.Directive}function w(e){return e.type===a.ElementType.Root}function v(e,t){var n;if(void 0===t&&(t=!1),x(e))n=new c(e.data);else if(k(e))n=new d(e.data);else if(g(e)){var r=t?_(e.children):[],o=new f(e.name,i({},e.attribs),r);r.forEach(function(e){return e.parent=o}),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=o}else if(b(e)){r=t?_(e.children):[];var a=new m(r);r.forEach(function(e){return e.parent=a}),n=a}else if(w(e)){r=t?_(e.children):[];var l=new h(r);r.forEach(function(e){return e.parent=l}),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),n=l}else{if(!y(e))throw new Error("Not implemented yet: ".concat(e.type));var s=new u(e.name,e.data);null!=e["x-name"]&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),n=s}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function _(e){for(var t=e.map(function(e){return v(e,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=f,t.isTag=g,t.isCDATA=b,t.isText=x,t.isComment=k,t.isDirective=y,t.isDocument=w,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=v},"./node_modules/.pnpm/html-dom-parser@5.1.8/node_modules/html-dom-parser/lib/client/constants.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=t.CARRIAGE_RETURN_PLACEHOLDER=t.CARRIAGE_RETURN_REGEX=t.CARRIAGE_RETURN=t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,t){return e[t.toLowerCase()]=t,e},{}),t.CARRIAGE_RETURN="\r",t.CARRIAGE_RETURN_REGEX=new RegExp(t.CARRIAGE_RETURN,"g"),t.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now().toString(),"__"),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(t.CARRIAGE_RETURN_PLACEHOLDER,"g")},"./node_modules/.pnpm/html-dom-parser@5.1.8/node_modules/html-dom-parser/lib/client/domparser.js"(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,d,u,p,h;e=(0,r.escapeSpecialCharacters)(e);var g=l.exec(e),b=null===(t=null==g?void 0:g[1])||void 0===t?void 0:t.toLowerCase();switch(b){case o:var x=c(e);if(!(0,r.hasOpenTag)(e,i))null===(n=null==(y=x.querySelector(i))?void 0:y.parentNode)||void 0===n||n.removeChild(y);if(!(0,r.hasOpenTag)(e,a))null===(d=null==(y=x.querySelector(a))?void 0:y.parentNode)||void 0===d||d.removeChild(y);return x.querySelectorAll(o);case i:case a:var k=s(e).querySelectorAll(b);return(0,r.hasOpenTag)(e,a)&&(0,r.hasOpenTag)(e,i)?null!==(p=null===(u=k[0].parentNode)||void 0===u?void 0:u.childNodes)&&void 0!==p?p:f():k;default:return m?m(e):null!==(h=null==(y=s(e,a).querySelector(a))?void 0:y.childNodes)&&void 0!==h?h:f();var y}};var r=n("./node_modules/.pnpm/html-dom-parser@5.1.8/node_modules/html-dom-parser/lib/client/utilities.js"),o="html",i="head",a="body",l=/<([a-zA-Z]+[0-9]?)/,s=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},c=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},d="object"==typeof window&&window.DOMParser;if("function"==typeof d){var u=new d;s=c=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),u.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var p=document.implementation.createHTMLDocument();s=function(e,t){if(t){var n=p.documentElement.querySelector(t);return n&&(n.innerHTML=e),p}return p.documentElement.innerHTML=e,p}}var m,h="object"==typeof document&&document.createElement("template");h&&h.content&&(m=function(e){return h.innerHTML=e,h.content.childNodes});var f=function(){return document.createDocumentFragment().childNodes}},"./node_modules/.pnpm/html-dom-parser@5.1.8/node_modules/html-dom-parser/lib/client/html-to-dom.js"(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=a.exec(e),n=t?t[1]:void 0;return(0,i.formatDOM)((0,o.default)(e),null,n)};var o=r(n("./node_modules/.pnpm/html-dom-parser@5.1.8/node_modules/html-dom-parser/lib/client/domparser.js")),i=n("./node_modules/.pnpm/html-dom-parser@5.1.8/node_modules/html-dom-parser/lib/client/utilities.js"),a=/<(![a-zA-Z\s]+)>/},"./node_modules/.pnpm/html-dom-parser@5.1.8/node_modules/html-dom-parser/lib/client/utilities.js"(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAttributes=i,t.hasOpenTag=function(e,t){var n="<"+t,r=e.toLowerCase().indexOf(n);if(-1===r)return!1;var o=e[r+n.length];return">"===o||" "===o||"\t"===o||"\n"===o||"\r"===o||"/"===o},t.escapeSpecialCharacters=function(e){return e.replace(o.CARRIAGE_RETURN_REGEX,o.CARRIAGE_RETURN_PLACEHOLDER)},t.revertEscapedCharacters=l,t.formatDOM=function e(t,n,o){var s,c,d,u;void 0===n&&(n=null);for(var p,m=[],h=0,f=t.length;h<f;h++){var g=t[h];switch(g.nodeType){case 1:var b=a(g.nodeName);(p=new r.Element(b,i(g.attributes))).children=e("template"===b?g.content.childNodes:g.childNodes,p);break;case 3:p=new r.Text(l(null!==(s=g.nodeValue)&&void 0!==s?s:""));break;case 8:p=new r.Comment(null!==(c=g.nodeValue)&&void 0!==c?c:"");break;default:continue}var x=null!==(d=m[h-1])&&void 0!==d?d:null;x&&(x.next=p),p.parent=n,p.prev=x,p.next=null,m.push(p)}o&&((p=new r.ProcessingInstruction(o.substring(0,o.indexOf(" ")).toLowerCase(),o)).next=null!==(u=m[0])&&void 0!==u?u:null,p.parent=n,m.unshift(p),m[1]&&(m[1].prev=m[0]));return m};var r=n("./node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/index.js"),o=n("./node_modules/.pnpm/html-dom-parser@5.1.8/node_modules/html-dom-parser/lib/client/constants.js");function i(e){for(var t={},n=0,r=e.length;n<r;n++){var o=e[n];t[o.name]=o.value}return t}function a(e){var t=function(e){return o.CASE_SENSITIVE_TAG_NAMES_MAP[e]}(e=e.toLowerCase());return t||e}function l(e){return e.replace(o.CARRIAGE_RETURN_PLACEHOLDER_REGEX,o.CARRIAGE_RETURN)}},"./node_modules/.pnpm/html-react-parser@5.2.17_@types+react@18.3.31_react@18.3.1/node_modules/html-react-parser/lib/attributes-to-props.js"(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){void 0===e&&(e={});var n={},c=Boolean(e.type&&l[e.type]);for(var d in e){var u=e[d];if((0,r.isCustomAttribute)(d))n[d]=u;else{var p=d.toLowerCase(),m=s(p);if(m){var h=(0,r.getPropertyInfo)(m);switch(i.includes(m)&&a.includes(t)&&!c&&(m=s("default"+p)),n[m]=u,null==h?void 0:h.type){case r.BOOLEAN:n[m]=!0;break;case r.OVERLOADED_BOOLEAN:""===u&&(n[m]=!0)}}else o.PRESERVE_CUSTOM_ATTRIBUTES&&(n[d]=u)}}return(0,o.setStyleProp)(e.style,n),n};var r=n("./node_modules/.pnpm/react-property@2.0.2/node_modules/react-property/lib/index.js"),o=n("./node_modules/.pnpm/html-react-parser@5.2.17_@types+react@18.3.31_react@18.3.1/node_modules/html-react-parser/lib/utilities.js"),i=["checked","value"],a=["input","select","textarea"],l={reset:!0,submit:!0};function s(e){return r.possibleStandardNames[e]}},"./node_modules/.pnpm/html-react-parser@5.2.17_@types+react@18.3.31_react@18.3.1/node_modules/html-react-parser/lib/dom-to-react.js"(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){var r,o,c,d,u;void 0===n&&(n={});for(var p=[],m="function"==typeof n.replace,h=null!==(r=n.transform)&&void 0!==r?r:a.returnFirstArg,f=null!==(o=n.library)&&void 0!==o?o:l,g=f.cloneElement,b=f.createElement,x=f.isValidElement,k=t.length,y=0;y<k;y++){var w=t[y];if(m){var v=null===(c=n.replace)||void 0===c?void 0:c.call(n,w,y);if(x(v)){k>1&&(v=g(v,{key:null!==(d=v.key)&&void 0!==d?d:y})),p.push(h(v,w,y));continue}}if("text"!==w.type){var _=w,T={};s(_)?((0,a.setStyleProp)(_.attribs.style,_.attribs),T=_.attribs):_.attribs&&(T=(0,i.default)(_.attribs,_.name));var E=void 0;switch(w.type){case"script":case"style":w.children[0]&&(T.dangerouslySetInnerHTML={__html:w.children[0].data});break;case"tag":"textarea"===w.name&&w.children[0]?T.defaultValue=w.children[0].data:(null===(u=w.children)||void 0===u?void 0:u.length)&&(E=e(w.children,n));break;default:continue}k>1&&(T.key=y),p.push(h(b(w.name,T,E),w,y))}else{var S=!w.data.trim().length;if(S&&w.parent&&!(0,a.canTextBeChildOfNode)(w.parent))continue;if(n.trim&&S)continue;p.push(h(w.data,w,y))}}return 1===p.length?p[0]:p};var o=n("react"),i=r(n("./node_modules/.pnpm/html-react-parser@5.2.17_@types+react@18.3.31_react@18.3.1/node_modules/html-react-parser/lib/attributes-to-props.js")),a=n("./node_modules/.pnpm/html-react-parser@5.2.17_@types+react@18.3.31_react@18.3.1/node_modules/html-react-parser/lib/utilities.js"),l={cloneElement:o.cloneElement,createElement:o.createElement,isValidElement:o.isValidElement};function s(e){return a.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,a.isCustomComponent)(e.name,e.attribs)}},"./node_modules/.pnpm/html-react-parser@5.2.17_@types+react@18.3.31_react@18.3.1/node_modules/html-react-parser/lib/index.js"(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0,t.default=function(e,t){var n;if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];return(0,a.default)((0,o.default)(e,null!==(n=null==t?void 0:t.htmlparser2)&&void 0!==n?n:s),t)};var o=r(n("./node_modules/.pnpm/html-dom-parser@5.1.8/node_modules/html-dom-parser/lib/client/html-to-dom.js"));t.htmlToDOM=o.default;var i=r(n("./node_modules/.pnpm/html-react-parser@5.2.17_@types+react@18.3.31_react@18.3.1/node_modules/html-react-parser/lib/attributes-to-props.js"));t.attributesToProps=i.default;var a=r(n("./node_modules/.pnpm/html-react-parser@5.2.17_@types+react@18.3.31_react@18.3.1/node_modules/html-react-parser/lib/dom-to-react.js"));t.domToReact=a.default;var l=n("./node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/index.js");Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return l.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return l.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return l.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return l.Text}});var s={lowerCaseAttributeNames:!1}},"./node_modules/.pnpm/html-react-parser@5.2.17_@types+react@18.3.31_react@18.3.1/node_modules/html-react-parser/lib/utilities.js"(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=function(e,t){if(!e.includes("-"))return Boolean(t&&"string"==typeof t.is);if(a.has(e))return!1;return!0},t.setStyleProp=function(e,t){if("string"!=typeof e)return;if(!e.trim())return void(t.style={});try{t.style=(0,i.default)(e,l)}catch(e){t.style={}}};var o=n("react"),i=r(n("./node_modules/.pnpm/style-to-js@1.1.21/node_modules/style-to-js/cjs/index.js")),a=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);var l={reactCompat:!0};t.PRESERVE_CUSTOM_ATTRIBUTES=Number(o.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)};t.returnFirstArg=function(e){return e}},"./node_modules/.pnpm/inline-style-parser@0.2.7/node_modules/inline-style-parser/cjs/index.js"(e){"use strict";var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,s=/^\s+|\s+$/g,c="";function d(e){return e?e.replace(s,c):c}e.exports=function(e,s){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];s=s||{};var u=1,p=1;function m(e){var t=e.match(n);t&&(u+=t.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function h(){var e={line:u,column:p};return function(t){return t.position=new f(e),x(),t}}function f(e){this.start=e,this.end={line:u,column:p},this.source=s.source}function g(t){var n=new Error(s.source+":"+u+":"+p+": "+t);if(n.reason=t,n.filename=s.source,n.line=u,n.column=p,n.source=e,!s.silent)throw n}function b(t){var n=t.exec(e);if(n){var r=n[0];return m(r),e=e.slice(r.length),n}}function x(){b(r)}function k(e){var t;for(e=e||[];t=y();)!1!==t&&e.push(t);return e}function y(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(c===e.charAt((n+=2)-1))return g("End of comment missing");var r=e.slice(2,n-2);return p+=2,m(r),e=e.slice(n),p+=2,t({type:"comment",comment:r})}}function w(){var e=h(),n=b(o);if(n){if(y(),!b(i))return g("property missing ':'");var r=b(a),s=e({type:"declaration",property:d(n[0].replace(t,c)),value:r?d(r[0].replace(t,c)):c});return b(l),s}}return f.prototype.content=e,x(),function(){var e,t=[];for(k(t);e=w();)!1!==e&&(t.push(e),k(t));return t}()}},"./node_modules/.pnpm/react-property@2.0.2/node_modules/react-property/lib/index.js"(e,t,n){"use strict";function r(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}const o={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(e=>{o[e]=new r(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{o[e]=new r(e,1,!1,t,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(e=>{o[e]=new r(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{o[e]=new r(e,2,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(e=>{o[e]=new r(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(e=>{o[e]=new r(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(e=>{o[e]=new r(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(e=>{o[e]=new r(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(e=>{o[e]=new r(e,5,!1,e.toLowerCase(),null,!1,!1)});const i=/[\-\:]([a-z])/g,a=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(e=>{const t=e.replace(i,a);o[t]=new r(t,1,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e=>{const t=e.replace(i,a);o[t]=new r(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(e=>{const t=e.replace(i,a);o[t]=new r(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!1,!1)});o.xlinkHref=new r("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!0,!0)});const{CAMELCASE:l,SAME:s,possibleStandardNames:c}=n("./node_modules/.pnpm/react-property@2.0.2/node_modules/react-property/lib/possibleStandardNamesOptimized.js"),d=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),u=Object.keys(c).reduce((e,t)=>{const n=c[t];return n===s?e[t]=t:n===l?e[t.toLowerCase()]=t:e[t]=n,e},{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return o.hasOwnProperty(e)?o[e]:null},t.isCustomAttribute=d,t.possibleStandardNames=u},"./node_modules/.pnpm/react-property@2.0.2/node_modules/react-property/lib/possibleStandardNamesOptimized.js"(e,t){t.SAME=0;t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},"./node_modules/.pnpm/style-to-js@1.1.21/node_modules/style-to-js/cjs/index.js"(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n("./node_modules/.pnpm/style-to-object@1.0.14/node_modules/style-to-object/cjs/index.js")),o=n("./node_modules/.pnpm/style-to-js@1.1.21/node_modules/style-to-js/cjs/utilities.js");function i(e,t){var n={};return e&&"string"==typeof e?((0,r.default)(e,function(e,r){e&&r&&(n[(0,o.camelCase)(e,t)]=r)}),n):n}i.default=i,e.exports=i},"./node_modules/.pnpm/style-to-js@1.1.21/node_modules/style-to-js/cjs/utilities.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,o=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,l=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||n.test(e)}(e)?e:(e=(e=e.toLowerCase()).replace(t.reactCompat?a:i,s)).replace(r,l)}},"./node_modules/.pnpm/style-to-object@1.0.14/node_modules/style-to-object/cjs/index.js"(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;const r=(0,o.default)(e),i="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;const{property:r,value:o}=e;i?t(r,o,e):o&&(n=n||{},n[r]=o)}),n};const o=r(n("./node_modules/.pnpm/inline-style-parser@0.2.7/node_modules/inline-style-parser/cjs/index.js"))},"./src/components/fragments/Markdown.tsx"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>Br});var r=n("./node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs"),o=n("react"),i=n.n(o);function a(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var l={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function s(e){l=e}var c={exec:()=>null};function d(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let o="string"==typeof t?t:t.source;return o=o.replace(p.caret,"$1"),n=n.replace(e,o),r},getRegex:()=>new RegExp(n,t)};return r}var u=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),p={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,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ 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,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},m=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,h=/(?:[*+-]|\d{1,9}[.)])/,f=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,g=d(f).replace(/bull/g,h).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),b=d(f).replace(/bull/g,h).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),x=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,k=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,y=d(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",k).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),w=d(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,h).getRegex(),v="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",_=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,T=d("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",_).replace("tag",v).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),E=d(x).replace("hr",m).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",v).getRegex(),S={blockquote:d(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",E).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:y,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:m,html:T,lheading:g,list:w,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:E,table:c,text:/^[^\n]+/},A=d("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",m).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",v).getRegex(),C={...S,lheading:b,table:A,paragraph:d(x).replace("hr",m).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",A).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",v).getRegex()},R={...S,html:d("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",_).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:c,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:d(x).replace("hr",m).replace("heading"," *#{1,6} *[^\n]").replace("lheading",g).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},N=/^( {2,}|\\)\n(?!\s*$)/,I=/[\p{P}\p{S}]/u,O=/[\s\p{P}\p{S}]/u,L=/[^\s\p{P}\p{S}]/u,M=d(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,O).getRegex(),D=/(?!~)[\p{P}\p{S}]/u,P=d(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",u?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),z=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,j=d(z,"u").replace(/punct/g,I).getRegex(),$=d(z,"u").replace(/punct/g,D).getRegex(),F="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",B=d(F,"gu").replace(/notPunctSpace/g,L).replace(/punctSpace/g,O).replace(/punct/g,I).getRegex(),H=d(F,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,D).getRegex(),U=d("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,L).replace(/punctSpace/g,O).replace(/punct/g,I).getRegex(),G=d(/\\(punct)/,"gu").replace(/punct/g,I).getRegex(),W=d(/^<(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(),q=d(_).replace("(?:--\x3e|$)","--\x3e").getRegex(),X=d("^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",q).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),V=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Y=d(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",V).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Z=d(/^!?\[(label)\]\[(ref)\]/).replace("label",V).replace("ref",k).getRegex(),Q=d(/^!?\[(ref)\](?:\[\])?/).replace("ref",k).getRegex(),K=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,J={_backpedal:c,anyPunctuation:G,autolink:W,blockSkip:P,br:N,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:c,emStrongLDelim:j,emStrongRDelimAst:B,emStrongRDelimUnd:U,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:Y,nolink:Q,punctuation:M,reflink:Z,reflinkSearch:d("reflink|nolink(?!\\()","g").replace("reflink",Z).replace("nolink",Q).getRegex(),tag:X,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:c},ee={...J,link:d(/^!?\[(label)\]\((.*?)\)/).replace("label",V).getRegex(),reflink:d(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",V).getRegex()},te={...J,emStrongRDelimAst:H,emStrongLDelim:$,url:d(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",K).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:d(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",K).getRegex()},ne={...te,br:d(N).replace("{2,}","*").getRegex(),text:d(te.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},re={normal:S,gfm:C,pedantic:R},oe={normal:J,gfm:te,breaks:ne,pedantic:ee},ie={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ae=e=>ie[e];function le(e,t){if(t){if(p.escapeTest.test(e))return e.replace(p.escapeReplace,ae)}else if(p.escapeTestNoEncode.test(e))return e.replace(p.escapeReplaceNoEncode,ae);return e}function se(e){try{e=encodeURI(e).replace(p.percentDecode,"%")}catch{return null}return e}function ce(e,t){let n=e.replace(p.findPipe,(e,t,n)=>{let r=!1,o=t;for(;--o>=0&&"\\"===n[o];)r=!r;return r?"|":" |"}).split(p.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(p.slashPipe,"|");return n}function de(e,t,n){let r=e.length;if(0===r)return"";let o=0;for(;o<r;){let i=e.charAt(r-o-1);if(i!==t||n){if(i===t||!n)break;o++}else o++}return e.slice(0,r-o)}function ue(e,t,n,r,o){let i=t.href,a=t.title||null,l=e[1].replace(o.other.outputLinkReplace,"$1");r.state.inLink=!0;let s={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:i,title:a,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,s}var pe=class{options;rules;lexer;constructor(e){this.options=e||l}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:de(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let o=r[1];return t.split("\n").map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=o.length?e.slice(o.length):e}).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=de(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:de(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=de(t[0],"\n").split("\n"),n="",r="",o=[];for(;e.length>0;){let t,i=!1,a=[];for(t=0;t<e.length;t++)if(this.rules.other.blockquoteStart.test(e[t]))a.push(e[t]),i=!0;else{if(i)break;a.push(e[t])}e=e.slice(t);let l=a.join("\n"),s=l.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}\n${l}`:l,r=r?`${r}\n${s}`:s;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(s,o,!0),this.lexer.state.top=c,0===e.length)break;let d=o.at(-1);if("code"===d?.type)break;if("blockquote"===d?.type){let t=d,i=t.raw+"\n"+e.join("\n"),a=this.blockquote(i);o[o.length-1]=a,n=n.substring(0,n.length-t.raw.length)+a.raw,r=r.substring(0,r.length-t.text.length)+a.text;break}if("list"===d?.type){let t=d,i=t.raw+"\n"+e.join("\n"),a=this.list(i);o[o.length-1]=a,n=n.substring(0,n.length-d.raw.length)+a.raw,r=r.substring(0,r.length-t.raw.length)+a.raw,e=i.substring(o.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:n,tokens:o,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,o={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let i=this.rules.other.listItemRegex(n),a=!1;for(;e;){let n=!1,r="",l="";if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let s=t[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),c=e.split("\n",1)[0],d=!s.trim(),u=0;if(this.options.pedantic?(u=2,l=s.trimStart()):d?u=t[1].length+1:(u=t[2].search(this.rules.other.nonSpaceChar),u=u>4?1:u,l=s.slice(u),u+=t[1].length),d&&this.rules.other.blankLine.test(c)&&(r+=c+"\n",e=e.substring(c.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(u),n=this.rules.other.hrRegex(u),o=this.rules.other.fencesBeginRegex(u),i=this.rules.other.headingBeginRegex(u),a=this.rules.other.htmlBeginRegex(u);for(;e;){let p,m=e.split("\n",1)[0];if(c=m,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),p=c):p=c.replace(this.rules.other.tabCharGlobal," "),o.test(c)||i.test(c)||a.test(c)||t.test(c)||n.test(c))break;if(p.search(this.rules.other.nonSpaceChar)>=u||!c.trim())l+="\n"+p.slice(u);else{if(d||s.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||o.test(s)||i.test(s)||n.test(s))break;l+="\n"+c}!d&&!c.trim()&&(d=!0),r+=m+"\n",e=e.substring(m.length+1),s=p.slice(u)}}o.loose||(a?o.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(a=!0));let p,m=null;this.options.gfm&&(m=this.rules.other.listIsTask.exec(l),m&&(p="[ ] "!==m[0],l=l.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:r,task:!!m,checked:p,loose:!1,text:l,tokens:[]}),o.raw+=r}let l=o.items.at(-1);if(!l)return;l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd(),o.raw=o.raw.trimEnd();for(let e=0;e<o.items.length;e++)if(this.lexer.state.top=!1,o.items[e].tokens=this.lexer.blockTokens(o.items[e].text,[]),!o.loose){let t=o.items[e].tokens.filter(e=>"space"===e.type),n=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));o.loose=n}if(o.loose)for(let e=0;e<o.items.length;e++)o.items[e].loose=!0;return o}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=ce(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?i.align.push("right"):this.rules.other.tableAlignCenter.test(e)?i.align.push("center"):this.rules.other.tableAlignLeft.test(e)?i.align.push("left"):i.align.push(null);for(let e=0;e<n.length;e++)i.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:i.align[e]});for(let e of o)i.rows.push(ce(e,i.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:i.align[t]})));return i}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=de(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let n=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),ue(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return ue(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!r[1]&&!r[2]||!n||this.rules.inline.punctuation.exec(n))){let n,o,i=[...r[0]].length-1,a=i,l=0,s="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(s.lastIndex=0,t=t.slice(-1*e.length+i);null!=(r=s.exec(t));){if(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!n)continue;if(o=[...n].length,r[3]||r[4]){a+=o;continue}if((r[5]||r[6])&&i%3&&!((i+o)%3)){l+=o;continue}if(a-=o,a>0)continue;o=Math.min(o,o+a+l);let t=[...r[0]][0].length,s=e.slice(0,i+r.index+t+o);if(Math.min(i,o)%2){let e=s.slice(1,-1);return{type:"em",raw:s,text:e,tokens:this.lexer.inlineTokens(e)}}let c=s.slice(2,-2);return{type:"strong",raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=t[1],n="mailto:"+e):(e=t[1],n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])e=t[0],n="mailto:"+e;else{let r;do{r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(r!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){return{type:"text",raw:t[0],text:t[0],escaped:this.lexer.state.inRawBlock}}}},me=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||l,this.options.tokenizer=this.options.tokenizer||new pe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:p,block:re.normal,inline:oe.normal};this.options.pedantic?(t.block=re.pedantic,t.inline=oe.pedantic):this.options.gfm&&(t.block=re.gfm,t.inline=this.options.breaks?oe.breaks:oe.gfm),this.tokenizer.rules=t}static get rules(){return{block:re,inline:oe}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(p.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(p.tabCharGlobal," ").replace(p.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);1===r.raw.length&&void 0!==n?n.raw+="\n":t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}let o=e;if(this.options.extensions?.startBlock){let t,n=1/0,r=e.slice(1);this.options.extensions.startBlock.forEach(e=>{t=e.call({lexer:this},r),"number"==typeof t&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(o=e.substring(0,n+1))}if(this.state.top&&(r=this.tokenizer.paragraph(o))){let i=t.at(-1);n&&"paragraph"===i?.type?(i.raw+=(i.raw.endsWith("\n")?"":"\n")+r.raw,i.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):t.push(r),n=o.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,r=e,o=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(r));)e.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.anyPunctuation.exec(r));)r=r.slice(0,o.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(r));)n=o[2]?o[2].length:0,r=r.slice(0,o.index+n)+"["+"a".repeat(o[0].length-n-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let i=!1,a="";for(;e;){let n;if(i||(a=""),i=!1,this.options.extensions?.inline?.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))continue;if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length);let r=t.at(-1);"text"===n.type&&"text"===r?.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,r,a)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}let o=e;if(this.options.extensions?.startInline){let t,n=1/0,r=e.slice(1);this.options.extensions.startInline.forEach(e=>{t=e.call({lexer:this},r),"number"==typeof t&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(o=e.substring(0,n+1))}if(n=this.tokenizer.inlineText(o)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(a=n.raw.slice(-1)),i=!0;let r=t.at(-1);"text"===r?.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return t}},he=class{options;parser;constructor(e){this.options=e||l}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(p.notSpaceStart)?.[0],o=e.replace(p.endingNewline,"")+"\n";return r?'<pre><code class="language-'+le(r)+'">'+(n?o:le(o,!0))+"</code></pre>\n":"<pre><code>"+(n?o:le(o,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t<e.items.length;t++){r+=this.listitem(e.items[t])}let o=t?"ol":"ul";return"<"+o+(t&&1!==n?' start="'+n+'"':"")+">\n"+r+"</"+o+">\n"}listitem(e){let t="";if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?"paragraph"===e.tokens[0]?.type?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=n+" "+le(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let o=e.rows[t];n="";for(let e=0;e<o.length;e++)n+=this.tablecell(o[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+r+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${le(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),o=se(e);if(null===o)return r;let i='<a href="'+(e=o)+'"';return t&&(i+=' title="'+le(t)+'"'),i+=">"+r+"</a>",i}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let o=se(e);if(null===o)return le(n);let i=`<img src="${e=o}" alt="${n}"`;return t&&(i+=` title="${le(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:le(e.text)}},fe=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},ge=class e{options;renderer;textRenderer;constructor(e){this.options=e||l,this.options.renderer=this.options.renderer||new he,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new fe}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n="";for(let r=0;r<e.length;r++){let o=e[r];if(this.options.extensions?.renderers?.[o.type]){let e=o,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(e.type)){n+=t||"";continue}}let i=o;switch(i.type){case"space":n+=this.renderer.space(i);continue;case"hr":n+=this.renderer.hr(i);continue;case"heading":n+=this.renderer.heading(i);continue;case"code":n+=this.renderer.code(i);continue;case"table":n+=this.renderer.table(i);continue;case"blockquote":n+=this.renderer.blockquote(i);continue;case"list":n+=this.renderer.list(i);continue;case"html":n+=this.renderer.html(i);continue;case"def":n+=this.renderer.def(i);continue;case"paragraph":n+=this.renderer.paragraph(i);continue;case"text":{let o=i,a=this.renderer.text(o);for(;r+1<e.length&&"text"===e[r+1].type;)o=e[++r],a+="\n"+this.renderer.text(o);n+=t?this.renderer.paragraph({type:"paragraph",raw:a,text:a,tokens:[{type:"text",raw:a,text:a,escaped:!0}]}):a;continue}default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}parseInline(e,t=this.renderer){let n="";for(let r=0;r<e.length;r++){let o=e[r];if(this.options.extensions?.renderers?.[o.type]){let e=this.options.extensions.renderers[o.type].call({parser:this},o);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){n+=e||"";continue}}let i=o;switch(i.type){case"escape":case"text":n+=t.text(i);break;case"html":n+=t.html(i);break;case"link":n+=t.link(i);break;case"image":n+=t.image(i);break;case"strong":n+=t.strong(i);break;case"em":n+=t.em(i);break;case"codespan":n+=t.codespan(i);break;case"br":n+=t.br(i);break;case"del":n+=t.del(i);break;default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}},be=class{options;block;constructor(e){this.options=e||l}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?me.lex:me.lexInline}provideParser(){return this.block?ge.parse:ge.parseInline}},xe=class{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ge;Renderer=he;TextRenderer=fe;Lexer=me;Tokenizer=pe;Hooks=be;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case"list":n=n.concat(this.walkTokens(r.items,t));break;default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let o=e[r].flat(1/0);n=n.concat(this.walkTokens(o,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new he(this.defaults);for(let n in e.renderer){if(!(n in t))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=e.renderer[n],o=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=o.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new pe(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=e.tokenizer[n],o=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=o.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new be;for(let n in e.hooks){if(!(n in t))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=n,o=e.hooks[r],i=t[r];t[r]=be.passThroughHooks.has(n)?e=>{if(this.defaults.async&&be.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await o.call(t,e);return i.call(t,n)})();let r=o.call(t,e);return i.call(t,r)}:(...e)=>{if(this.defaults.async)return(async()=>{let n=await o.apply(t,e);return!1===n&&(n=await i.apply(t,e)),n})();let n=o.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return me.lex(e,t??this.defaults)}parser(e,t){return ge.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},o={...this.defaults,...r},i=this.onError(!!o.silent,!!o.async);if(!0===this.defaults.async&&!1===r.async)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return i(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=e),o.async)return(async()=>{let n=o.hooks?await o.hooks.preprocess(t):t,r=await(o.hooks?await o.hooks.provideLexer():e?me.lex:me.lexInline)(n,o),i=o.hooks?await o.hooks.processAllTokens(r):r;o.walkTokens&&await Promise.all(this.walkTokens(i,o.walkTokens));let a=await(o.hooks?await o.hooks.provideParser():e?ge.parse:ge.parseInline)(i,o);return o.hooks?await o.hooks.postprocess(a):a})().catch(i);try{o.hooks&&(t=o.hooks.preprocess(t));let n=(o.hooks?o.hooks.provideLexer():e?me.lex:me.lexInline)(t,o);o.hooks&&(n=o.hooks.processAllTokens(n)),o.walkTokens&&this.walkTokens(n,o.walkTokens);let r=(o.hooks?o.hooks.provideParser():e?ge.parse:ge.parseInline)(n,o);return o.hooks&&(r=o.hooks.postprocess(r)),r}catch(e){return i(e)}}}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+le(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},ke=new xe;function ye(e,t){return ke.parse(e,t)}ye.options=ye.setOptions=function(e){return ke.setOptions(e),s(ye.defaults=ke.defaults),ye},ye.getDefaults=a,ye.defaults=l,ye.use=function(...e){return ke.use(...e),s(ye.defaults=ke.defaults),ye},ye.walkTokens=function(e,t){return ke.walkTokens(e,t)},ye.parseInline=ke.parseInline,ye.Parser=ge,ye.parser=ge.parse,ye.Renderer=he,ye.TextRenderer=fe,ye.Lexer=me,ye.lexer=me.lex,ye.Tokenizer=pe,ye.Hooks=be,ye.parse=ye;const we={escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeTest:/[&<>"'/]/,notSpaceStart:/^\S*/,endingNewline:/\n$/,escapeReplace:/[&<>"'/]/g,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,completeFencedCode:/^ {0,3}(`{3,}|~{3,})([\s\S]*?)\n {0,3}\1[ \n\t]*$/},ve={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},_e=e=>ve[e];function Te(e,t){if(t){if(we.escapeTest.test(e))return e.replace(we.escapeReplace,_e)}else if(we.escapeTestNoEncode.test(e))return e.replace(we.escapeReplaceNoEncode,_e);return e}const Ee=Symbol("tailMarker"),Se=/\uE000X_MD_NL_\d+\uE001/g;const Ae=class{options;markdownInstance;injectTail=!1;constructor(e={}){this.options=e,this.markdownInstance=new xe,this.configureLinkRenderer(),this.configureParagraphRenderer(),this.configureCodeRenderer(),this.configureHtmlEscapeRenderer(),this.configureTailInjection(),this.markdownInstance.use(e.markedConfig||{})}configureHtmlEscapeRenderer(){this.options.escapeRawHtml&&this.markdownInstance.use({renderer:{html(e){const{raw:t="",text:n=""}=e;return Te(t||n,!0)}}})}configureLinkRenderer(){this.options.openLinksInNewTab&&this.markdownInstance.use({renderer:{link({href:e,title:t,tokens:n}){return`<a href="${e}"${t?` title="${t}"`:""} target="_blank" rel="noopener noreferrer">${this.parser.parseInline(n)}</a>`}}})}configureParagraphRenderer(){const{paragraphTag:e}=this.options;e&&this.markdownInstance.use({renderer:{paragraph({tokens:t}){return`<${e}>${this.parser.parseInline(t)}</${e}>\n`}}})}configureCodeRenderer(){this.markdownInstance.use({renderer:{code({text:e,raw:t,lang:n,escaped:r,codeBlockStyle:o}){const i=(n||"").trim(),a=i.match(we.notSpaceStart)?.[0],l=`${e.replace(we.endingNewline,"")}\n`,s="indented"===o||we.completeFencedCode.test(t)?"done":"loading",c=r?l:Te(l,!0),d=a?` class="language-${Te(a)}"`:"";return`<pre><code${` data-block="true" data-state="${s}"`+(i?` data-lang="${Te(i)}"`:"")}${d}>${c}</code></pre>\n`}}})}configureTailInjection(){const e=this;this.markdownInstance.use({hooks:{processAllTokens(t){if(!e.injectTail)return t;const n=e.findLastTextToken(t);return n&&(n[Ee]=!0),t}},renderer:{text(e){const t="tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"text"in e?e.text:"";return e[Ee]?`${t}<xmd-tail></xmd-tail>`:t}}})}protectCustomTags(e,t){const n=new Map,r=Object.keys(this.options.components||{});if(0===r.length)return{protected:e,placeholders:n};let o=0;const i=e=>e.replace(/\n/g,()=>{const e=`X_MD_NL_${o++}`;return n.set(e,"\n"),e}),a=r.map(e=>e.toLowerCase().replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),l=new RegExp(`<(${a})(?:\\s[^>]*)?>`,"gi"),s=new RegExp(`</(${a})>`,"gi"),c=[];let d=l.exec(e);for(;null!==d;)c.push({index:d.index,type:"open",tagName:d[1].toLowerCase(),match:d[0]}),d=l.exec(e);for(s.lastIndex=0,d=s.exec(e);null!==d;)c.push({index:d.index,type:"close",tagName:d[1].toLowerCase(),match:d[0]}),d=s.exec(e);c.sort((e,t)=>e.index-t.index);const u=[],p=[];let m=0;for(const n of c)if("open"===n.type)n.match.endsWith("/>")||u.push({tagName:n.tagName,start:n.index,openTag:n.match});else if("close"===n.type&&u.length>0&&u[u.length-1].tagName===n.tagName){const r=u.pop();if(0===u.length){const o=r.start,a=n.index+n.match.length,l=r.openTag,s=n.match,c=e.slice(o+l.length,n.index);if(m<o&&p.push(e.slice(m,o)),t&&c.includes("\n")){const e=i(c);p.push(l+e+s)}else if(c.includes("\n\n")){const e=c.replace(/\n{2,}/g,e=>i(e));p.push(l+e+s)}else p.push(l+c+s);m=a}}return m<e.length&&p.push(e.slice(m)),{protected:p.join(""),placeholders:n}}restorePlaceholders(e,t){return 0===t.size?e:e.replace(Se,e=>t.get(e)??e)}findLastNonEmptyToken(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if("list"===n.type&&"items"in n&&Array.isArray(n.items))for(let e=n.items.length-1;e>=0;e--){const t=n.items[e];if("tokens"in t&&t.tokens&&t.tokens.length>0){const e=this.findLastNonEmptyToken(t.tokens);if(e)return e}}if("tokens"in n&&n.tokens&&n.tokens.length>0){const e=this.findLastNonEmptyToken(n.tokens);if(e)return e}if("text"===n.type){if(("text"in n?n.text:"").trim())return n}else if("html"===n.type||"tag"===n.type)return n}return null}findLastTextToken(e){const t=this.findLastNonEmptyToken(e);return"text"!==t?.type?null:t}parse(e,t){if(this.injectTail=t?.injectTail??!1,this.options.protectCustomTagNewlines||this.options.disableCustomTagBlockMarkdown){const{protected:t,placeholders:n}=this.protectCustomTags(e,!!this.options.disableCustomTagBlockMarkdown),r=this.markdownInstance.parse(t);return this.restorePlaceholders(r,n)}return this.markdownInstance.parse(e)}};function Ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Re(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ce(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ce(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const Ne=Object.entries,Ie=Object.setPrototypeOf,Oe=Object.isFrozen,Le=Object.getPrototypeOf,Me=Object.getOwnPropertyDescriptor;let De=Object.freeze,Pe=Object.seal,ze=Object.create,je="undefined"!=typeof Reflect&&Reflect,$e=je.apply,Fe=je.construct;De||(De=function(e){return e}),Pe||(Pe=function(e){return e}),$e||($e=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)}),Fe||(Fe=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const Be=st(Array.prototype.forEach),He=st(Array.prototype.lastIndexOf),Ue=st(Array.prototype.pop),Ge=st(Array.prototype.push),We=st(Array.prototype.splice),qe=Array.isArray,Xe=st(String.prototype.toLowerCase),Ve=st(String.prototype.toString),Ye=st(String.prototype.match),Ze=st(String.prototype.replace),Qe=st(String.prototype.indexOf),Ke=st(String.prototype.trim),Je=st(Number.prototype.toString),et=st(Boolean.prototype.toString),tt="undefined"==typeof BigInt?null:st(BigInt.prototype.toString),nt="undefined"==typeof Symbol?null:st(Symbol.prototype.toString),rt=st(Object.prototype.hasOwnProperty),ot=st(Object.prototype.toString),it=st(RegExp.prototype.test),at=(lt=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Fe(lt,t)});var lt;function st(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return $e(e,t,r)}}function ct(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Xe;if(Ie&&Ie(e,null),!qe(t))return e;let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(Oe(t)||(t[r]=e),o=e)}e[o]=!0}return e}function dt(e){for(let t=0;t<e.length;t++){rt(e,t)||(e[t]=null)}return e}function ut(e){const t=ze(null);for(const r of Ne(e)){var n=Re(r,2);const o=n[0],i=n[1];rt(e,o)&&(t[o]=qe(i)?dt(i):i&&"object"==typeof i&&i.constructor===Object?ut(i):i)}return t}function pt(e,t){for(;null!==e;){const n=Me(e,t);if(n){if(n.get)return st(n.get);if("function"==typeof n.value)return st(n.value)}e=Le(e)}return function(){return null}}const mt=De(["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"]),ht=De(["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"]),ft=De(["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"]),gt=De(["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"]),bt=De(["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"]),xt=De(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),kt=De(["#text"]),yt=De(["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"]),wt=De(["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","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","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"]),vt=De(["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"]),_t=De(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Tt=Pe(/{{[\w\W]*|^[\w\W]*}}/g),Et=Pe(/<%[\w\W]*|^[\w\W]*%>/g),St=Pe(/\${[\w\W]*/g),At=Pe(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ct=Pe(/^aria-[\-\w]+$/),Rt=Pe(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Nt=Pe(/^(?:\w+script|data):/i),It=Pe(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ot=Pe(/^html$/i),Lt=Pe(/^[a-z][.\w]*(-[.\w]+)+$/i),Mt=Pe(/<[/\w!]/g),Dt=Pe(/<[/\w]/g),Pt=Pe(/<\/no(script|embed|frames)/i),zt=Pe(/\/>/i),jt=1,$t=3,Ft=7,Bt=8,Ht=9,Ut=11,Gt=function(){return"undefined"==typeof window?null:window},Wt=function(e,t,n,r){return rt(e,t)&&qe(e[t])?ct(r.base?ut(r.base):{},e[t],r.transform):n};var qt=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gt();const n=t=>e(t);if(n.version="3.4.13",n.removed=[],!t||!t.document||t.document.nodeType!==Ht||!t.Element)return n.isSupported=!1,n;let r=t.document;const o=r,i=o.currentScript,a=t.HTMLTemplateElement,l=t.Node,s=t.NodeFilter,c=t.DOMParser,d=t.trustedTypes,u=t.Element.prototype,p=pt(u,"cloneNode"),m=pt(u,"remove"),h=pt(u,"nextSibling"),f=pt(u,"childNodes"),g=pt(u,"parentNode"),b=pt(u,"shadowRoot"),x=pt(u,"attributes"),k=l&&l.prototype?pt(l.prototype,"nodeType"):null,y=l&&l.prototype?pt(l.prototype,"nodeName"):null,w=l&&l.prototype?pt(l.prototype,"ownerDocument"):null;if("function"==typeof a){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let v,_,T="",E=!1,S=0;const A=function(){if(S>0)throw at('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.')},C=function(e){A(),S++;try{return v.createHTML(e)}finally{S--}},R=function(){return E||(_=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(d,i),E=!0),_},N=r.implementation,I=r.createNodeIterator,O=r.createDocumentFragment,L=r.getElementsByTagName,M=o.importNode;let D={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof Ne&&"function"==typeof g&&N&&void 0!==N.createHTMLDocument;const P=Tt,z=Et,j=St,$=At,F=Ct,B=Nt,H=It,U=Lt;let G=Rt,W=null;const q=ct({},[...mt,...ht,...ft,...bt,...kt]);let X=null;const V=ct({},[...yt,...wt,...vt,..._t]);let Y=Object.seal(ze(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Z=null,Q=null;const K=Object.seal(ze(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let J=!0,ee=!0,te=!1,ne=!0,re=!1,oe=!0,ie=!1,ae=!1,le=null,se=null,ce=!1,de=!1,ue=!1,pe=!1,me=!0,he=!1;const fe="user-content-";let ge=!0,be=!1,xe={},ke=null;const ye=ct({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let we=null;const ve=ct({},["audio","video","img","source","image","track"]);let _e=null;const Te=ct({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ee="http://www.w3.org/1998/Math/MathML",Se="http://www.w3.org/2000/svg",Ae="http://www.w3.org/1999/xhtml";let Ce=Ae,Re=!1,Ie=null;const Oe=ct({},[Ee,Se,Ae],Ve),Le=De(["mi","mo","mn","ms","mtext"]);let Me=ct({},Le);const je=De(["annotation-xml"]);let $e=ct({},je);const Fe=ct({},["title","style","font","a","script"]);let lt=null;const st=["application/xhtml+xml","text/html"];let dt=null,qt=null;const Xt=r.createElement("form"),Vt=function(e){return e instanceof RegExp||e instanceof Function},Yt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(qt&&qt===e)return;e&&"object"==typeof e||(e={}),e=ut(e),lt=-1===st.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,dt="application/xhtml+xml"===lt?Ve:Xe,W=Wt(e,"ALLOWED_TAGS",q,{transform:dt}),X=Wt(e,"ALLOWED_ATTR",V,{transform:dt}),Ie=Wt(e,"ALLOWED_NAMESPACES",Oe,{transform:Ve}),_e=Wt(e,"ADD_URI_SAFE_ATTR",Te,{transform:dt,base:Te}),we=Wt(e,"ADD_DATA_URI_TAGS",ve,{transform:dt,base:ve}),ke=Wt(e,"FORBID_CONTENTS",ye,{transform:dt}),Z=Wt(e,"FORBID_TAGS",ut({}),{transform:dt}),Q=Wt(e,"FORBID_ATTR",ut({}),{transform:dt}),xe=!!rt(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?ut(e.USE_PROFILES):e.USE_PROFILES),J=!1!==e.ALLOW_ARIA_ATTR,ee=!1!==e.ALLOW_DATA_ATTR,te=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ne=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,re=e.SAFE_FOR_TEMPLATES||!1,oe=!1!==e.SAFE_FOR_XML,ie=e.WHOLE_DOCUMENT||!1,de=e.RETURN_DOM||!1,ue=e.RETURN_DOM_FRAGMENT||!1,pe=e.RETURN_TRUSTED_TYPE||!1,ce=e.FORCE_BODY||!1,me=!1!==e.SANITIZE_DOM,he=e.SANITIZE_NAMED_PROPS||!1,ge=!1!==e.KEEP_CONTENT,be=e.IN_PLACE||!1,G=function(e){try{return it(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Rt,Ce="string"==typeof e.NAMESPACE?e.NAMESPACE:Ae,Me=rt(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?ut(e.MATHML_TEXT_INTEGRATION_POINTS):ct({},Le),$e=rt(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?ut(e.HTML_INTEGRATION_POINTS):ct({},je);const t=rt(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?ut(e.CUSTOM_ELEMENT_HANDLING):ze(null);if(Y=ze(null),rt(t,"tagNameCheck")&&Vt(t.tagNameCheck)&&(Y.tagNameCheck=t.tagNameCheck),rt(t,"attributeNameCheck")&&Vt(t.attributeNameCheck)&&(Y.attributeNameCheck=t.attributeNameCheck),rt(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(Y.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),Pe(Y),re&&(ee=!1),ue&&(de=!0),xe&&(W=ct({},kt),X=ze(null),!0===xe.html&&(ct(W,mt),ct(X,yt)),!0===xe.svg&&(ct(W,ht),ct(X,wt),ct(X,_t)),!0===xe.svgFilters&&(ct(W,ft),ct(X,wt),ct(X,_t)),!0===xe.mathMl&&(ct(W,bt),ct(X,vt),ct(X,_t))),K.tagCheck=null,K.attributeCheck=null,rt(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?K.tagCheck=e.ADD_TAGS:qe(e.ADD_TAGS)&&(W===q&&(W=ut(W)),ct(W,e.ADD_TAGS,dt))),rt(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?K.attributeCheck=e.ADD_ATTR:qe(e.ADD_ATTR)&&(X===V&&(X=ut(X)),ct(X,e.ADD_ATTR,dt))),rt(e,"ADD_URI_SAFE_ATTR")&&qe(e.ADD_URI_SAFE_ATTR)&&ct(_e,e.ADD_URI_SAFE_ATTR,dt),rt(e,"FORBID_CONTENTS")&&qe(e.FORBID_CONTENTS)&&(ke===ye&&(ke=ut(ke)),ct(ke,e.FORBID_CONTENTS,dt)),rt(e,"ADD_FORBID_CONTENTS")&&qe(e.ADD_FORBID_CONTENTS)&&(ke===ye&&(ke=ut(ke)),ct(ke,e.ADD_FORBID_CONTENTS,dt)),ge&&(W["#text"]=!0),ie&&ct(W,["html","head","body"]),W.table&&(ct(W,["tbody"]),delete Z.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw at('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw at('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=v;v=e.TRUSTED_TYPES_POLICY;try{T=C("")}catch(e){throw v=t,e}}else null===e.TRUSTED_TYPES_POLICY?(v=void 0,T=""):(void 0===v&&(v=R()),v&&"string"==typeof T&&(T=C("")));De&&De(e),qt=e},Zt=ct({},[...ht,...ft,...gt]),Qt=ct({},[...bt,...xt]),Kt=function(e){let t=g(e);t&&t.tagName||(t={namespaceURI:Ce,tagName:"template"});const n=Xe(e.tagName),r=Xe(t.tagName);return!!Ie[e.namespaceURI]&&(e.namespaceURI===Se?function(e,t,n){return t.namespaceURI===Ae?"svg"===e:t.namespaceURI===Ee?"svg"===e&&("annotation-xml"===n||Me[n]):Boolean(Zt[e])}(n,t,r):e.namespaceURI===Ee?function(e,t,n){return t.namespaceURI===Ae?"math"===e:t.namespaceURI===Se?"math"===e&&$e[n]:Boolean(Qt[e])}(n,t,r):e.namespaceURI===Ae?function(e,t,n){return!(t.namespaceURI===Se&&!$e[n])&&!(t.namespaceURI===Ee&&!Me[n])&&!Qt[e]&&(Fe[e]||!Zt[e])}(n,t,r):!("application/xhtml+xml"!==lt||!Ie[e.namespaceURI]))},Jt=function(e){Ge(n.removed,{element:e});try{g(e).removeChild(e)}catch(t){if(m(e),!g(e))throw at("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},en=function(e){rn(e);const t=f(e);if(t){const e=[];Be(t,t=>{Ge(e,t)}),Be(e,e=>{try{m(e)}catch(e){}})}const n=x(e);if(n)for(let t=n.length-1;t>=0;--t){const r=n[t],o=r&&r.name;if("string"==typeof o)try{e.removeAttribute(o)}catch(e){}}},tn=function(e,t){try{Ge(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Ge(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(de||ue)try{Jt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},nn=function(e){const t=x(e);if(t)for(let n=t.length-1;n>=0;--n){const r=t[n],o=r&&r.name;if("string"==typeof o&&!X[dt(o)])try{e.removeAttribute(o)}catch(e){}}},rn=function(e){const t=[e];for(;t.length>0;){const e=t.pop();(k?k(e):e.nodeType)===jt&&nn(e);const n=f(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},on=function(e){let t=null,n=null;if(ce)e="<remove></remove>"+e;else{const t=Ye(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===lt&&Ce===Ae&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=v?C(e):e;if(Ce===Ae)try{t=(new c).parseFromString(o,lt)}catch(e){}if(!t||!t.documentElement){t=N.createDocument(Ce,"template",null);try{t.documentElement.innerHTML=Re?T:o}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),Ce===Ae?L.call(t,ie?"html":"body")[0]:ie?t.documentElement:i},an=function(e){const t=w?w(e):e.ownerDocument;return I.call(t||e,e,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT|s.SHOW_PROCESSING_INSTRUCTION|s.SHOW_CDATA_SECTION,null)},ln=function(e){return e=Ze(e,P," "),e=Ze(e,z," "),e=Ze(e,j," ")},sn=function(e){var t;e.normalize();const n=w?w(e):e.ownerDocument,r=I.call(n||e,e,s.SHOW_TEXT|s.SHOW_COMMENT|s.SHOW_CDATA_SECTION|s.SHOW_PROCESSING_INSTRUCTION,null);let o=r.nextNode();for(;o;)o.data=ln(o.data),o=r.nextNode();const i=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");i&&Be(i,e=>{dn(e.content)&&sn(e.content)})},cn=function(e){const t=y?y(e):null;return"string"==typeof t&&("form"===dt(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==x(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==k(e)||e.childNodes!==f(e)))},dn=function(e){if(!k||"object"!=typeof e||null===e)return!1;try{return k(e)===Ut}catch(e){return!1}},un=function(e){if(!k||"object"!=typeof e||null===e)return!1;try{return"number"==typeof k(e)}catch(e){return!1}};function pn(e,t,r){0!==e.length&&Be(e,e=>{e.call(n,t,r,qt)})}const mn=function(e,t,n,r){return 0===e.length?t:t===n||t===r?ut(t):t},hn=function(e,t){if(pn(D.beforeSanitizeElements,e,null),e!==t&&null===g(e))return be&&rn(e),!0;if(cn(e))return Jt(e),!0;const r=dt(y?y(e):e.nodeName);if(W=mn(D.uponSanitizeElement,W,q,le),pn(D.uponSanitizeElement,e,{tagName:r,allowedTags:W}),e!==t&&null===g(e))return be&&rn(e),!0;if(function(e,t){return!!(oe&&e.hasChildNodes()&&!un(e.firstElementChild)&&it(Mt,e.textContent)&&it(Mt,e.innerHTML))||!(!oe||e.namespaceURI!==Ae||"style"!==t||!un(e.firstElementChild))||e.nodeType===Ft||!(!oe||e.nodeType!==Bt||!it(Dt,e.data))}(e,r))return Jt(e),!0;if(Z[r]||!(K.tagCheck instanceof Function&&K.tagCheck(r))&&!W[r]){const n=function(e,t,n){if(!Z[t]&&bn(t)){if(Y.tagNameCheck instanceof RegExp&&it(Y.tagNameCheck,t))return!1;if(Y.tagNameCheck instanceof Function&&Y.tagNameCheck(t))return!1}if(ge&&!ke[t]){const t=g(e),r=f(e);if(r&&t)for(let o=r.length-1;o>=0;--o){const i=e===n?p(r[o],!0):r[o];t.insertBefore(i,h(e))}}return Jt(e),!0}(e,r,t);return!1===n&&pn(D.afterSanitizeElements,e,null),n}if((k?k(e):e.nodeType)===jt&&!Kt(e))return Jt(e),!0;if(("noscript"===r||"noembed"===r||"noframes"===r)&&it(Pt,e.innerHTML))return Jt(e),!0;if(re&&e.nodeType===$t){const t=ln(e.textContent);e.textContent!==t&&(Ge(n.removed,{element:e.cloneNode()}),e.textContent=t)}return pn(D.afterSanitizeElements,e,null),!1},fn=function(e,t,n){if(Q[t])return!1;if(oe&&"patchsrc"===t)return!1;if(oe&&"for"===t&&"label"!==e&&"output"!==e)return!1;if(me&&("id"===t||"name"===t)&&(n in r||n in Xt))return!1;const o=X[t]||K.attributeCheck instanceof Function&&K.attributeCheck(t,e);if(ee&&it($,t));else if(J&&it(F,t));else if(o)if(_e[t]);else if(it(G,Ze(n,H,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Qe(n,"data:")||!we[e]){if(te&&!it(B,Ze(n,H,"")));else if(n)return!1}else;else if(!(bn(e)&&(Y.tagNameCheck instanceof RegExp&&it(Y.tagNameCheck,e)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(e))&&(Y.attributeNameCheck instanceof RegExp&&it(Y.attributeNameCheck,t)||Y.attributeNameCheck instanceof Function&&Y.attributeNameCheck(t,e))||"is"===t&&Y.allowCustomizedBuiltInElements&&(Y.tagNameCheck instanceof RegExp&&it(Y.tagNameCheck,n)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(n))))return!1;return!0},gn=ct({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),bn=function(e){return!gn[Xe(e)]&&it(U,e)},xn=function(e,t,n,r){if(v&&"object"==typeof d&&"function"==typeof d.getAttributeType&&!n)switch(d.getAttributeType(e,t)){case"TrustedHTML":return C(r);case"TrustedScriptURL":return function(e){A(),S++;try{return v.createScriptURL(e)}finally{S--}}(r)}return r},kn=function(e,t,r,o){try{r?e.setAttributeNS(r,t,o):e.setAttribute(t,o),cn(e)?Jt(e):Ue(n.removed)}catch(n){tn(t,e)}},yn=function(e){pn(D.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||cn(e))return;X=mn(D.uponSanitizeAttribute,X,V,se);const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:X,forceKeepAttr:void 0};let r=t.length;const o=dt(e.nodeName);for(;r--;){const i=t[r],a=i.name,l=i.namespaceURI,s=i.value,c=dt(a),d=s;let u="value"===a?d:Ke(d);n.attrName=c,n.attrValue=u,n.keepAttr=!0,n.forceKeepAttr=void 0,pn(D.uponSanitizeAttribute,e,n),u=n.attrValue,!he||"id"!==c&&"name"!==c||0===Qe(u,fe)||(tn(a,e),u=fe+u),oe&&it(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)?tn(a,e):"attributename"===c&&Ye(u,"href")?tn(a,e):n.forceKeepAttr||(n.keepAttr&&(ne||!it(zt,u))?(re&&(u=ln(u)),fn(o,c,u)?(u=xn(o,c,l,u),u!==d&&kn(e,a,l,u)):tn(a,e)):tn(a,e))}pn(D.afterSanitizeAttributes,e,null)},wn=function(e){let t=null;const n=an(e);for(pn(D.beforeSanitizeShadowDOM,e,null);t=n.nextNode();){pn(D.uponSanitizeShadowNode,t,null),hn(t,e),yn(t),dn(t.content)&&wn(t.content);if((k?k(t):t.nodeType)===jt){const e=b(t);dn(e)&&(vn(e),wn(e))}}pn(D.afterSanitizeShadowDOM,e,null)},vn=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const e=t.pop();if(e.shadow){wn(e.shadow);continue}const n=e.node,r=(k?k(n):n.nodeType)===jt,o=f(n);if(o)for(let e=o.length-1;e>=0;--e)t.push({node:o[e],shadow:null});if(r){const e=y?y(n):null;if("string"==typeof e&&"template"===dt(e)){const e=n.content;dn(e)&&t.push({node:e,shadow:null})}}if(r){const e=b(n);dn(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,a=null,l=null;if(Re=!e,Re&&(e="\x3c!--\x3e"),"string"!=typeof e&&!un(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return Je(e);case"boolean":return et(e);case"bigint":return tt?tt(e):"0";case"symbol":return nt?nt(e):"Symbol()";case"undefined":default:return ot(e);case"function":case"object":{if(null===e)return ot(e);const t=e,n=pt(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:ot(e)}return ot(e)}}}(e)))throw at("dirty is not a string, aborting");if(!n.isSupported)return e;ae?(W=le,X=se):Yt(t),(D.uponSanitizeElement.length>0||D.uponSanitizeAttribute.length>0)&&(W=ut(W)),D.uponSanitizeAttribute.length>0&&(X=ut(X)),n.removed=[];const s=be&&"string"!=typeof e&&un(e);if(s){!function(e){if(!oe)return;const t=[e];for(;t.length>0;){const e=t.pop(),n=k?k(e):e.nodeType;if(n===Ft||n===Bt&&it(Dt,e.data)){try{m(e)}catch(e){}continue}if(n===jt){const t=e,n=dt(y?y(e):e.nodeName);try{t.hasAttribute&&t.hasAttribute("patchsrc")&&t.removeAttribute("patchsrc"),t.hasAttribute&&t.hasAttribute("for")&&"label"!==n&&"output"!==n&&t.removeAttribute("for")}catch(e){}}const r=f(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}}(e);const t=y?y(e):e.nodeName;if("string"==typeof t){const n=dt(t);if(!W[n]||Z[n])throw en(e),at("root node is forbidden and cannot be sanitized in-place")}if(cn(e))throw en(e),at("root node is clobbered and cannot be sanitized in-place");try{vn(e)}catch(t){throw en(e),t}}else if(un(e))r=on("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),i.nodeType===jt&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i),vn(i);else{if(!de&&!re&&!ie&&-1===e.indexOf("<"))return v&&pe?C(e):e;if(r=on(e),!r)return de?null:pe?T:""}r&&ce&&Jt(r.firstChild);const c=s?e:r;try{const e=an(c);for(;a=e.nextNode();)hn(a,c),yn(a),dn(a.content)&&wn(a.content)}catch(t){throw s&&(en(e),Be(n.removed,e=>{e.element&&rn(e.element)})),t}if(s)return Be(n.removed,e=>{e.element&&rn(e.element)}),re&&sn(e),e;if(de){if(re&&sn(r),ue)for(l=O.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(X.shadowroot||X.shadowrootmode)&&(l=M.call(o,l,!0)),l}let d=ie?r.outerHTML:r.innerHTML;return ie&&W["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&it(Ot,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),re&&(d=ln(d)),v&&pe?C(d):d},n.setConfig=function(){Yt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),ae=!0,le=W,se=X},n.clearConfig=function(){qt=null,ae=!1,le=null,se=null,v=_,T=""},n.isValidAttribute=function(e,t,n){qt||Yt({});const r=dt(e),o=dt(t);return fn(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&rt(D,e)&&Ge(D[e],t)},n.removeHook=function(e,t){if(rt(D,e)){if(void 0!==t){const n=He(D[e],t);return-1===n?void 0:We(D[e],n,1)[0]}return Ue(D[e])}},n.removeHooks=function(e){rt(D,e)&&(D[e]=[])},n.removeAllHooks=function(){D={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),Xt=n("./node_modules/.pnpm/html-react-parser@5.2.17_@types+react@18.3.31_react@18.3.1/node_modules/html-react-parser/lib/index.js");const Vt=Xt.default||Xt,Yt=["。","!","?",".","!","?","\n"],Zt=120,Qt=i().memo(e=>{const{text:t,animationConfig:n}=e,{fadeDuration:r=200,easing:a="ease-in-out",splitBy:l="chunk",delimiters:s=Yt,maxSentenceChars:c=Zt}=n||{},d=(0,o.useRef)(""),u=(0,o.useRef)([]),p=d.current;let m;if(t===p)m=u.current;else if(p&&t.startsWith(p)){const e=t.slice(p.length);m="sentence"===l?((e,t,n,r)=>{const o=e.slice();let i=t;const a=o[o.length-1];if(o.length>0&&!((e,t)=>e.length>0&&t.includes(e[e.length-1]))(a,n)&&a.length<r){let e=-1;for(let t=0;t<i.length;t++)if(n.includes(i[t])){e=t+1;break}if(-1===e)return o[o.length-1]+=i,o;o[o.length-1]+=i.slice(0,e),i=i.slice(e)}let l=0;for(let e=0;e<i.length;e++)n.includes(i[e])&&(o.push(i.slice(l,e+1)),l=e+1);return l<i.length&&o.push(i.slice(l)),o})(u.current,e,s,c):[...u.current,e]}else m=[t];(0,o.useEffect)(()=>{d.current=t,u.current=m},[t,m]);const h=(0,o.useMemo)(()=>({animation:`x-markdown-fade-in ${r}ms ${a} forwards`,color:"inherit"}),[r,a]);return i().createElement(i().Fragment,null,m.map((e,t)=>i().createElement("span",{style:h,key:`animation-text-${t}`},e)))}),Kt=/\s/,Jt=/[a-zA-Z0-9-]/,en=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),tn="\x3c!--",nn="<![CDATA[",rn=(e,t)=>`${e}-${t}`,on=(e,t)=>{if(!e.startsWith(tn,t))return t;const n=e.indexOf("--\x3e",t+4);return-1===n?e.length:n+3},an=(e,t)=>{if(!e.startsWith(nn,t))return t;const n=e.indexOf("]]>",t+9);return-1===n?e.length:n+3},ln=(e,t)=>{if("/"!==e[t+1])return null;let n=t+2,r="";for(;n<e.length&&Kt.test(e[n]);)n++;for(;n<e.length&&Jt.test(e[n]);)r+=e[n],n++;for(;n<e.length&&Kt.test(e[n]);)n++;return r&&">"===e[n]?{tagName:r.toLowerCase(),endPos:n+1}:null},sn=(e,t)=>{let n=t+1,r="";for(;n<e.length&&Jt.test(e[n]);)r+=e[n],n++;if(!r)return null;let o=!1,i=!1;for(;n<e.length;){if(">"===e[n]){o=!0,i="/"===e[n-1];break}if('"'===e[n]||"'"===e[n]){const t=e[n];for(n++;n<e.length;)if("\\"===e[n]&&n+1<e.length)n+=2;else{if(e[n]===t){n++;break}n++}continue}n++}return{tagName:r.toLowerCase(),endPos:o?n+1:e.length,foundEnd:o,isSelfClosing:i}};function cn(e,t){const n=new Set(Array.from(t,e=>e.toLowerCase()));if(0===n.size||0===e.length)return new Set;const r=new Set,o={},i={};let a=0;for(;a<e.length;){const t=on(e,a);if(t!==a){a=t;continue}const s=an(e,a);if(s!==a){a=s;continue}if("<"!==e[a]){a++;continue}const c=ln(e,a);if(c){const e=i[c.tagName];n.has(c.tagName)&&e?.length&&e.pop(),a=c.endPos;continue}const d=sn(e,a);if(!d||!n.has(d.tagName)){a++;continue}o[d.tagName]=(o[d.tagName]??0)+1;const u=o[d.tagName];if(d.foundEnd){if(!d.isSelfClosing&&!en.has(d.tagName)){var l;i[l=d.tagName]??(i[l]=[]),i[d.tagName].push(u)}}else r.add(rn(d.tagName,u));a=d.endPos}for(const[e,t]of Object.entries(i))t.forEach(t=>{r.add(rn(e,t))});return r}let dn=null;class un{options;static NON_WHITESPACE_REGEX=/[^\r\n\s]+/;constructor(e){this.options=e}detectUnclosedTags(e){return cn(e,Object.keys(this.options.components??{}))}configureDOMPurify(){const e=Object.keys(this.options.components||{}),t=this.options.dompurifyConfig||{},n=Array.isArray(t.ADD_TAGS)?t.ADD_TAGS:[],r=Array.isArray(t.ADD_ATTR)?t.ADD_ATTR:[];return{...t,ADD_TAGS:Array.from(new Set([...e,...n])),ADD_ATTR:Array.from(new Set(["target","rel",...r]))}}createReplaceElement(e,t){const{enableAnimation:n,animationConfig:r}=this.options.streaming||{};return o=>{const a="name"in o&&"xmd-tail"===o.name?"x-markdown-tail":"x-markdown-component-"+t.current++,l="text"===o.type&&o.data&&un.NON_WHITESPACE_REGEX.test(o.data),s=o.parent?.name;if(n&&l&&!(s&&this.options.components?.[s]))return i().createElement(Qt,{text:o.data,key:a,animationConfig:r});if(!("name"in o))return;const{name:c,attribs:d,children:u}=o,p=this.options.components?.[c];if(p){t.tagIndexes[c]=(t.tagIndexes[c]??0)+1;const n=e?.has(rn(c,t.tagIndexes[c]))?"loading":"done",r={...d,...void 0!==d.disabled&&{disabled:!0},...void 0!==d.checked&&{checked:!0},...this.options.componentsProps?.[c],domNode:o,streamStatus:n,key:a},l=[r.className,r.classname,r.class].filter(Boolean).join(" ").trim();if(r.className=l||"","code"===c){const{"data-block":e="false","data-state":t="done"}=d||{};r.block="true"===e,r.streamStatus="loading"===t?"loading":"done";const n=d?.["data-lang"],o=d?.class?.match(/(?:^|\s)language-([^\s]+)/)?.[1]??d?.class?.match(/(?:^|\s)lang-([^\s]+)/)?.[1],i=n||o;i?r.lang=i:delete r.lang}return u&&(r.children=this.processChildren(u,e,t)),i().createElement(p,r)}}}processChildren(e,t,n){return(0,Xt.domToReact)(e,{replace:this.createReplaceElement(t,n)})}processHtml(e){if("function"!=typeof qt.sanitize)return null;const t=this.detectUnclosedTags(e),n=function(){if(dn)return dn;if("undefined"!=typeof window&&"undefined"!=typeof Node)try{const e=document.createElement("template");e.innerHTML="<test-detect></test-detect>";const t=e.content.firstChild;if(t){const n=Object.getOwnPropertyDescriptor(Node.prototype,"nodeName")?.get,r=Object.getOwnPropertyDescriptor(Node.prototype,"nodeValue")?.get,o=n&&t.nodeName&&!n.call(t);if(o){const e=n;Object.defineProperty(Node.prototype,"nodeName",{get:function(){const t=e.call(this);if(t)return t;if(1===this.nodeType&&"tagName"in this)return this.tagName;switch(this.nodeType){case 3:return"#text";case 4:return"#cdata-section";case 7:return"#processing-instruction";case 8:return"#comment";case 9:return"#document";case 11:return"#document-fragment"}return t},configurable:!0,enumerable:!0})}const i=r&&(()=>{e.innerHTML="<div>test</div>";const t=e.content.firstChild?.firstChild;if(!t)return!1;const n=r.call(t);return null!=t.nodeValue&&null==n})();if(i){const e=r;Object.defineProperty(Node.prototype,"nodeValue",{get:function(){const t=e.call(this);return null!=t||3!==this.nodeType&&4!==this.nodeType&&8!==this.nodeType||!("data"in this)?t:this.data},configurable:!0,enumerable:!0})}if(o||i)return dn=qt(window),dn}}catch{}return dn=qt,dn}(),r=this.configureDOMPurify(),o=n.sanitize(e,r);return Vt(o,{replace:this.createReplaceElement(t,{current:0,tagIndexes:{}})})}render(e){return this.processHtml(e)}}const pn=un;var mn=n("./node_modules/.pnpm/style-loader@3.3.4_webpack@5.108.4/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),hn=n.n(mn),fn=n("./node_modules/.pnpm/style-loader@3.3.4_webpack@5.108.4/node_modules/style-loader/dist/runtime/styleDomAPI.js"),gn=n.n(fn),bn=n("./node_modules/.pnpm/style-loader@3.3.4_webpack@5.108.4/node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),xn=n.n(bn),kn=n("./node_modules/.pnpm/style-loader@3.3.4_webpack@5.108.4/node_modules/style-loader/dist/runtime/insertStyleElement.js"),yn=n.n(kn),wn=n("./node_modules/.pnpm/style-loader@3.3.4_webpack@5.108.4/node_modules/style-loader/dist/runtime/styleTagTransform.js"),vn=n.n(wn),_n=n("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/cjs.js!./node_modules/.pnpm/@ant-design+x-markdown@2.10.0_@types+react@18.3.31_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@ant-design/x-markdown/es/XMarkdown/DebugPanel/DebugPanel.css"),Tn={};Tn.styleTagTransform=vn(),Tn.setAttributes=xn(),Tn.insert=function(e){const t=document.querySelector("head"),n=window._lastElementInsertedByStyleLoader;n?n.nextSibling?t.insertBefore(e,n.nextSibling):t.appendChild(e):t.insertBefore(e,t.firstChild),window._lastElementInsertedByStyleLoader=e},Tn.domAPI=gn(),Tn.insertStyleElement=yn();hn()(_n.A,Tn);const En={GOOD:55,WARNING:40},Sn={GOOD:"#52c41a",WARNING:"#faad14",DANGER:"#ff4d4f"},An={WIDTH:750,HEIGHT:400,PADDING:80},Cn=()=>{const[e,t]=(0,o.useState)(0),[n,r]=(0,o.useState)(0),[a,l]=(0,o.useState)(!1),[s,c]=(0,o.useState)(!1),[d,u]=(0,o.useState)([]),[p,m]=(0,o.useState)("undefined"==typeof window?{x:12,y:12}:{x:window.innerWidth-220,y:window.innerHeight/2-100}),[h,f]=(0,o.useState)(!1),g=(0,o.useRef)([]),b=(0,o.useRef)([]),x=(0,o.useRef)(0),k=(0,o.useRef)(0),y=(0,o.useRef)(void 0),w=(0,o.useRef)({isDragging:!1,startX:0,startY:0,initialX:0,initialY:0});(0,o.useEffect)(()=>{if("undefined"==typeof window)return;h||(f(!0),x.current=performance.now());const e=()=>{const n=performance.now(),o=n-x.current;if(b.current.push(o),b.current.length>60&&b.current.shift(),k.current++,o>=1e3){const e=Math.round(1e3*k.current/o),i=v();t(e),r(i),a&&g.current.push({timestamp:Date.now(),fps:e,memory:i}),k.current=0,x.current=n}y.current=requestAnimationFrame(e)};return y.current=requestAnimationFrame(e),()=>{void 0!==y.current&&cancelAnimationFrame(y.current)}},[a,h]);const v=()=>{const e=performance;return e.memory?Math.round(e.memory.usedJSHeapSize/1024/1024):0},_=e=>e<1?`${Math.round(1024*e)} KB`:e>=1024?`${(e/1024).toFixed(2)} GB`:`${e.toFixed(2)} MB`,T=e=>e>=En.GOOD?Sn.GOOD:e>=En.WARNING?Sn.WARNING:Sn.DANGER,E=(0,o.useCallback)(()=>{a?(l(!1),u([...g.current]),c(!0)):(g.current=[],l(!0))},[a]),S=(0,o.useCallback)(e=>{e.target.closest(".x-markdown-debug-action")||(w.current={isDragging:!0,startX:e.clientX,startY:e.clientY,initialX:p.x,initialY:p.y})},[p]),A=(0,o.useCallback)(e=>{if(!w.current.isDragging)return;m({x:w.current.initialX+(e.clientX-w.current.startX),y:w.current.initialY+(e.clientY-w.current.startY)})},[]),C=(0,o.useCallback)(()=>{w.current.isDragging=!1},[]);(0,o.useEffect)(()=>{if("undefined"!=typeof window)return document.addEventListener("mousemove",A),document.addEventListener("mouseup",C),()=>{document.removeEventListener("mousemove",A),document.removeEventListener("mouseup",C)}},[A,C]);const R=()=>{if(!d.length)return null;const{WIDTH:e,HEIGHT:t,PADDING:n}=An,r=e-2*n,o=t-2*n,a=d[0]?.timestamp??0,l=(d[d.length-1]?.timestamp??0)-a||1,s=Math.max(...d.map(e=>e.fps),60),c=1.1*Math.max(...d.map(e=>e.memory),0),u=d.length>0?d.reduce((e,t)=>e+t.fps,0)/d.length:0,p=d.length>0?d.reduce((e,t)=>e+t.memory,0)/d.length:0,m=d.length>0?Math.min(...d.map(e=>e.fps)):0,h=d.length>0?Math.max(...d.map(e=>e.fps)):0,f=(e,t)=>d.map(i=>`${n+(i.timestamp-a)/l*r},${n+o-i[e]/t*o}`).join(" ");return i().createElement("div",{className:"x-markdown-debug-modal-content"},i().createElement("div",{className:"x-markdown-debug-stats-summary"},i().createElement("div",{className:"x-markdown-debug-stat-item"},i().createElement("div",{className:"x-markdown-debug-stat-label"},"Duration"),i().createElement("div",{className:"x-markdown-debug-stat-value"},(l/1e3).toFixed(2),"s")),i().createElement("div",{className:"x-markdown-debug-stat-item"},i().createElement("div",{className:"x-markdown-debug-stat-label"},"FPS Avg"),i().createElement("div",{className:"x-markdown-debug-stat-value",style:{color:T(u)}},u.toFixed(1))),i().createElement("div",{className:"x-markdown-debug-stat-item"},i().createElement("div",{className:"x-markdown-debug-stat-label"},"FPS Range"),i().createElement("div",{className:"x-markdown-debug-stat-value"},m," - ",h)),i().createElement("div",{className:"x-markdown-debug-stat-item"},i().createElement("div",{className:"x-markdown-debug-stat-label"},"Memory Avg"),i().createElement("div",{className:"x-markdown-debug-stat-value"},_(p)))),i().createElement("svg",{width:e,height:t,className:"x-markdown-debug-chart-full",role:"img","aria-label":"Performance chart showing FPS and memory usage over time"},i().createElement("title",null,"Performance Chart"),[0,.25,.5,.75,1].map(a=>i().createElement("g",{key:a},i().createElement("line",{x1:n,y1:n+o*a,x2:e-n,y2:n+o*a,stroke:"rgba(255,255,255,0.1)",strokeWidth:"1"}),i().createElement("line",{x1:n+r*a,y1:n,x2:n+r*a,y2:t-n,stroke:"rgba(255,255,255,0.1)",strokeWidth:"1"}))),i().createElement("polyline",{points:f("fps",s),fill:"none",stroke:Sn.GOOD,strokeWidth:"2",className:"fps-line"}),i().createElement("polyline",{points:f("memory",c),fill:"none",stroke:"#1890ff",strokeWidth:"2",className:"memory-line"}),i().createElement("text",{x:n-10,y:n,fill:Sn.GOOD,fontSize:"12",textAnchor:"end"},s.toFixed(0)),i().createElement("text",{x:n-10,y:t-n,fill:Sn.GOOD,fontSize:"12",textAnchor:"end"},"0"),i().createElement("text",{x:n-10,y:n-15,fill:Sn.GOOD,fontSize:"14",fontWeight:"bold",textAnchor:"end"},"FPS"),i().createElement("text",{x:e-n+10,y:n+20,fill:"#1890ff",fontSize:"12",textAnchor:"start"},_(c)),i().createElement("text",{x:e-n+10,y:t-n,fill:"#1890ff",fontSize:"12",textAnchor:"start"},_(0)),i().createElement("text",{x:e-n+10,y:n+5,fill:"#1890ff",fontSize:"14",fontWeight:"bold",textAnchor:"start"},"Memory"),i().createElement("text",{x:n,y:t-n+20,fill:"rgba(255,255,255,0.6)",fontSize:"12",textAnchor:"middle"},"0s"),i().createElement("text",{x:e-n,y:t-n+20,fill:"rgba(255,255,255,0.6)",fontSize:"12",textAnchor:"middle"},(l/1e3).toFixed(1),"s")),i().createElement("div",{className:"x-markdown-debug-legend"},i().createElement("div",{className:"x-markdown-debug-legend-item"},i().createElement("span",{className:"x-markdown-debug-legend-color",style:{backgroundColor:Sn.GOOD}}),i().createElement("span",null,"FPS")),i().createElement("div",{className:"x-markdown-debug-legend-item"},i().createElement("span",{className:"x-markdown-debug-legend-color",style:{backgroundColor:"#1890ff"}}),i().createElement("span",null,"Memory"))))};return i().createElement(i().Fragment,null,i().createElement("div",{className:"x-markdown-debug-panel",style:{left:p.x,top:p.y,cursor:w.current.isDragging?"grabbing":"grab"},onMouseDown:S},i().createElement("div",{className:"x-markdown-debug-row"},i().createElement("span",{className:"x-markdown-debug-label"},"FPS"),i().createElement("span",{className:"x-markdown-debug-value",style:{color:T(e)}},e)),i().createElement("div",{className:"x-markdown-debug-row"},i().createElement("span",{className:"x-markdown-debug-label"},"Memory"),i().createElement("span",{className:"x-markdown-debug-value"},_(n))),i().createElement("div",{className:"x-markdown-debug-actions"},i().createElement("button",{type:"button",className:"x-markdown-debug-action x-markdown-debug-record-btn "+(a?"recording":""),onClick:E},a?"⏹ Stop":"⏺ Record"),d.length>0&&!a&&i().createElement("button",{type:"button",className:"x-markdown-debug-action",onClick:()=>c(!0)},"📊 View"))),s&&d.length>0?i().createElement("div",{className:"x-markdown-debug-modal-overlay",onClick:()=>c(!1)},i().createElement("div",{className:"x-markdown-debug-modal",onClick:e=>e.stopPropagation()},i().createElement("div",{className:"x-markdown-debug-modal-header"},i().createElement("span",{style:{color:"#fff",fontSize:18,fontWeight:"600"}},"Performance Recording"),i().createElement("button",{type:"button",className:"x-markdown-debug-close-btn",onClick:()=>c(!1)},"✕")),i().createElement(R,null))):null)},Rn=["。","!","?",".","!","?","\n"],Nn=(e,t,n)=>e<t?t:e>n?n:e,In=(e,t)=>{const n=e.charCodeAt(t);return n>=55296&&n<=56319},On=(e,t)=>t>0&&t<e.length&&In(e,t-1)?t+1:t,Ln=e=>65038===e||65039===e,Mn=e=>e>=127995&&e<=127999,Dn=e=>e>=768&&e<=879||e>=6832&&e<=6911||e>=8400&&e<=8447,Pn=e=>e>=127462&&e<=127487,zn=e=>e>=917536&&e<=917631,jn=(e,t)=>{const n=e.codePointAt(t);return[n,t+(n>65535?2:1)]},$n=(e,t)=>{const n=t>=2&&In(e,t-2)?t-2:t-1;return[e.codePointAt(n),n]};let Fn;const Bn=(e,t)=>{if(t<=0||t>=e.length)return t;const n=(()=>{if(void 0===Fn){const e="undefined"!=typeof Intl?Intl.Segmenter:void 0;Fn="function"==typeof e?new e(void 0,{granularity:"grapheme"}):null}return Fn})();if(!n)return((e,t)=>{let n=On(e,t),r=0;for(let t=n;t>0;){const[n,o]=$n(e,t);if(!Pn(n))break;r+=1,t=o}for(;;){if(n>=e.length)return e.length;const[t]=$n(e,n),[o,i]=jn(e,n);if(8205===o||8205===t||Ln(o)||Mn(o)||Dn(o)||8419===o||zn(o))n=i;else{if(!Pn(o)||!Pn(t)||r%2!=1)return n;n=i,r+=1}}})(e,t);const r=Math.max(0,On(e,t-32)),o=Math.min(e.length,On(e,t+32));for(const{index:i,segment:a}of n.segment(e.slice(r,o))){const e=r+i,n=e+a.length;if(e>=t)return e;if(n>=t)return n}return o},Hn=(e,t,n)=>{for(let r=e.scanned;r<t.length;r++){const o=t[r];if("\n"!==o){if(e.atLineStart){if(!("`"!==o&&"~"!==o||0!==e.lineFenceLen&&e.lineFenceChar!==o)){e.lineFenceChar=o,e.lineFenceLen+=1;continue}e.atLineStart=!1,"`"===e.lineFenceChar&&e.lineFenceLen<3&&(e.inInlineCode=e.lineFenceLen%2==1)}e.inFence||("`"!==o?!e.inInlineCode&&n.has(o)&&e.boundaries.push(r+1):e.inInlineCode=!e.inInlineCode)}else e.lineFenceLen>=3&&(e.inFence?e.lineFenceChar===e.fenceChar&&e.lineFenceLen>=e.fenceLen&&(e.inFence=!1):(e.inFence=!0,e.fenceChar=e.lineFenceChar,e.fenceLen=e.lineFenceLen)),e.lineFenceChar="",e.lineFenceLen=0,e.atLineStart=!0,e.inInlineCode=!1,e.boundaries.push(r+1)}e.scanned=t.length},Un=(e,t)=>{let n=0,r=e.length-1,o=0;for(;n<=r;){const i=n+r>>1;e[i]<=t?(o=e[i],n=i+1):r=i-1}return o},Gn=(e,t,n)=>{const r=!!t&&n&&"undefined"!=typeof window&&"function"==typeof window.requestAnimationFrame,{unit:i,delimiters:a,minCps:l,maxCps:s,pauseMs:c,maxSentenceChars:d}=(e=>{const t="object"==typeof e?e:{};return{unit:t.unit??"char",delimiters:t.delimiters??Rn,minCps:t.minCps??24,maxCps:t.maxCps??3e3,pauseMs:t.pauseMs??0,maxSentenceChars:t.maxSentenceChars??120}})(t),u=(0,o.useMemo)(()=>new Set(a),[a]),[p,m]=(0,o.useState)(e.length),h=(0,o.useRef)(p),f=(0,o.useRef)(e),g=(0,o.useRef)(r),b=(0,o.useRef)(e.length),x=(0,o.useRef)(null),k=(0,o.useRef)(140),y=(0,o.useRef)(null),w=(0,o.useRef)(null),v=(0,o.useRef)(0),_=(0,o.useRef)({scanned:0,boundaries:[],inFence:!1,fenceChar:"",fenceLen:0,atLineStart:!0,lineFenceChar:"",lineFenceLen:0,inInlineCode:!1}),T=(0,o.useRef)(r);f.current=e,g.current=r;const E=(0,o.useCallback)(()=>{null!=y.current&&(window.cancelAnimationFrame(y.current),y.current=null),w.current=null},[]),S=(0,o.useCallback)(e=>{e!==h.current&&(h.current=e,m(e))},[]),A=(0,o.useCallback)(e=>{y.current=null;const t=f.current,n=t.length;if(!g.current||h.current>=n)return void E();const r=Math.max(8,e-(w.current??e));if(w.current=e,e>=v.current){const o=n-b.current,a=Nn(k.current,80,260),p=Nn(o/a*1e3,l,s);let m;if(b.current=Math.min(n,b.current+p*r/1e3),"sentence"===i){Hn(_.current,t,u);const{boundaries:e}=_.current,r=h.current,o=Math.floor(b.current),i=Un(e,o);m=o>=n?n:i>r?i:o-Un(e,r)>d?Math.min(n,Bn(t,Math.max(r+1,o))):r}else if(m=Math.max(h.current+1,Math.floor(b.current)),m=Math.min(n,Bn(t,m)),c>0&&m>h.current){Hn(_.current,t,u);const n=Un(_.current.boundaries,m);n>h.current&&(m=n,b.current=n,v.current=e+c)}S(m)}h.current<f.current.length?y.current=window.requestAnimationFrame(A):E()},[S,u,s,d,l,c,E,i]),C=(0,o.useCallback)(()=>{null==y.current&&g.current&&(h.current>=f.current.length||(w.current=null,y.current=window.requestAnimationFrame(A)))},[A]),R=(0,o.useRef)(e);return(0,o.useEffect)(()=>{const t=R.current;if(R.current=e,!r)return E(),void(T.current=!1);if(!T.current)return T.current=!0,_.current={scanned:0,boundaries:[],inFence:!1,fenceChar:"",fenceLen:0,atLineStart:!0,lineFenceChar:"",lineFenceLen:0,inInlineCode:!1},b.current=e.length,S(e.length),x.current=null,void(k.current=140);if(!e.startsWith(t.slice(0,h.current)))return E(),_.current={scanned:0,boundaries:[],inFence:!1,fenceChar:"",fenceLen:0,atLineStart:!0,lineFenceChar:"",lineFenceLen:0,inInlineCode:!1},b.current=e.length,S(e.length),x.current=null,void(k.current=140);if(e.startsWith(t)||(_.current={scanned:0,boundaries:[],inFence:!1,fenceChar:"",fenceLen:0,atLineStart:!0,lineFenceChar:"",lineFenceLen:0,inInlineCode:!1},b.current=Math.min(b.current,e.length)),e.length>t.length){const e=performance.now(),t=x.current;if(null!=t){const n=Nn(e-t,30,500);k.current=Nn(.72*k.current+.28*n,80,260)}x.current=e}C()},[e,r,S,C,E]),(0,o.useEffect)(()=>E,[E]),(0,o.useMemo)(()=>r?p>=e.length?e:e.slice(0,p):e,[r,e,p])};let Wn=function(e){return e.Text="text",e.Link="link",e.Image="image",e.Html="html",e.Emphasis="emphasis",e.List="list",e.Table="table",e.InlineCode="inline-code",e}({});const qn={incremental:!0,incompleteMarkdown:"complete",typewriter:!0},Xn=Object.freeze({...qn,hasNextChunk:!0}),Vn=Object.freeze({...qn,hasNextChunk:!1}),Yn=e=>!0===e?Xn:!1===e?Vn:e,Zn=/^#{1,6}(?:[ \t]|$)/,Qn={image:[/^!\[[^\]\r\n]{0,1000}$/,/^!\[[^\r\n]{0,1000}\]\(*[^)\r\n]{0,1000}$/],link:[/^\[[^\]\r\n]{0,1000}$/,/^\[[^\r\n]{0,1000}\]\(*[^)\r\n]{0,1000}$/],html:[/^<\/$/,/^<\/?[a-zA-Z][a-zA-Z0-9-]{0,100}[^>\r\n]{0,1000}$/],commonEmphasis:[/^(\*{1,3}|_{1,3})(?!\s)(?!.*\1$)[^\r\n]{0,1000}$/],list:[/^[-+*]\s{0,3}$/,/^[-+*]\s{1,3}(\*{1,3}|_{1,3})(?!\s)(?!.*\1$)[^\r\n]{0,1000}$/],"inline-code":[/^`[^`\r\n]{0,300}$/]},Kn=(e,t)=>{const n=e.trim();if(!/^\|.*\|$/.test(n))return!1;const r=t.trim().split("|").map(e=>e.trim()).filter(Boolean),o=/^:?-+:?$/;return r.every((e,t)=>t===r.length-1&&":"===e||o.test(e))},Jn={[Wn.Link]:{tokenType:Wn.Link,isStartOfToken:e=>e.startsWith("["),isStreamingValid:e=>Qn.link.some(t=>t.test(e))},[Wn.Image]:{tokenType:Wn.Image,isStartOfToken:e=>e.startsWith("!"),isStreamingValid:e=>Qn.image.some(t=>t.test(e))},[Wn.Html]:{tokenType:Wn.Html,isStartOfToken:e=>e.startsWith("<"),isStreamingValid:e=>Qn.html.some(t=>t.test(e))},[Wn.Emphasis]:{tokenType:Wn.Emphasis,isStartOfToken:e=>e.startsWith("*")||e.startsWith("_"),isStreamingValid:e=>Qn.commonEmphasis.some(t=>t.test(e))},[Wn.List]:{tokenType:Wn.List,isStartOfToken:e=>/^[-+*]/.test(e),isStreamingValid:e=>Qn.list.some(t=>t.test(e)),getCommitPrefix:e=>{const t=e.match(/^([-+*]\s{0,3})/)?.[1],n=t?e.slice(t.length):"";return t&&n.startsWith("`")?t:null}},[Wn.Table]:{tokenType:Wn.Table,isStartOfToken:e=>e.startsWith("|"),isStreamingValid:(e,t)=>{return!(n=t.table).hasBlankLine&&(0===n.newlines||(null!==n.shape?n.shape:Kn(n.firstLine,n.secondLine)));var n}},[Wn.InlineCode]:{tokenType:Wn.InlineCode,isStartOfToken:e=>e.startsWith("`"),isStreamingValid:e=>Qn["inline-code"].some(t=>t.test(e))}},er=Object.values(Jn).map(e=>({tokenType:e.tokenType,recognize:t=>((e,t)=>{const n=Jn[t];if(!n)return;const{token:r,pending:o}=e;if(r===Wn.Text&&n.isStartOfToken(o))e.token=t;else if(r===t&&!n.isStreamingValid(o,e)){const t=n.getCommitPrefix?.(o);if(t)return e.completeMarkdown+=t,e.pending=o.slice(t.length),rr(e.table,e.pending),void(e.token=Wn.Text);mr(e)}})(t,e.tokenType)})),tr=e=>{e.newlines=0,e.lastWasNewline=!1,e.hasBlankLine=!1,e.firstLine="",e.secondLine="",e.shape=null},nr=(e,t)=>{if("\n"===t)return e.lastWasNewline&&(e.hasBlankLine=!0),e.lastWasNewline=!0,e.newlines+=1,void(2===e.newlines&&(e.shape=Kn(e.firstLine,e.secondLine)));e.lastWasNewline=!1,0===e.newlines?e.firstLine+=t:1===e.newlines&&(e.secondLine+=t)},rr=(e,t)=>{tr(e);for(const n of t)nr(e,n)},or=()=>({pending:"",token:Wn.Text,processedLength:0,completeMarkdown:"",fence:{inFenced:!1,fenceChar:"",fenceLen:0,lineIndent:0,lineFenceChar:"",lineFenceLen:0,lineFenceRunEnded:!1,lineTailBlank:!0},table:{newlines:0,lastWasNewline:!1,hasBlankLine:!1,firstLine:"",secondLine:"",shape:null},sections:{offsets:[],lineStart:0,inHtmlBlock:!1,noSplit:!1,rawBlock:null}}),ir=/^ {0,3}\[[^\]]*\]:/,ar=/^ {0,3}<(pre|script|style|textarea)(?=[\s>]|$)/i,lr=/^ {0,3}<!--/,sr=/^(\${1,2})\s*$/,cr=/^\\\[/,dr=/^ {0,3}<(?:[a-zA-Z]|\/[a-zA-Z]|!|\?)/,ur=(e,t,n,r,o)=>{const i=e.sections,a=i.lineStart,l=t.slice(a,n),s=""===l.trim();if(i.lineStart=n+1,i.noSplit)return;if(i.rawBlock)return void(((e,t)=>t.exact?e.trim()===t.close:e.toLowerCase().includes(t.close))(l,i.rawBlock)&&(i.rawBlock=null));if(i.inHtmlBlock)return void(s&&(i.inHtmlBlock=!1));if(e.fence.inFenced)return;const c=(e=>{const t=e.match(ar);if(t){const n=`</${t[1].toLowerCase()}`;return e.toLowerCase().includes(n)?null:{close:n,exact:!1}}if(lr.test(e))return e.includes("--\x3e")?null:{close:"--\x3e",exact:!1};const n=e.match(sr);return n?{close:n[1],exact:!0}:cr.test(e)?e.includes("\\]")?null:{close:"\\]",exact:!1}:null})(l);if(c)return void(i.rawBlock=c);if(dr.test(l))return void(i.inHtmlBlock=!0);if(ir.test(l))return i.noSplit=!0,void(i.offsets=[]);if(!Zn.test(l))return;const d=i.offsets.length?i.offsets[i.offsets.length-1]:0;a<=d||a-d<o||r.length>0&&cn(t.slice(d,a),r).size>0||i.offsets.push(a)},pr=(e,t,n)=>{const{offsets:r}=e.sections;if(e.sections.noSplit||0===r.length)return null;const o=[];let i=0;for(const e of r){if(e>n)break;o.push(t.slice(i,e)),i=e}return 0===o.length?null:(o.push(t.slice(i)),o)},mr=e=>{e.pending&&(e.completeMarkdown+=e.pending,e.pending=""),tr(e.table),e.token=Wn.Text},hr=(e,t)=>{if("\n"===t)return e.lineFenceLen>=3&&(e.inFenced?e.lineFenceChar===e.fenceChar&&e.lineFenceLen>=e.fenceLen&&e.lineTailBlank&&(e.inFenced=!1,e.fenceChar="",e.fenceLen=0):(e.inFenced=!0,e.fenceChar=e.lineFenceChar,e.fenceLen=e.lineFenceLen)),e.lineIndent=0,e.lineFenceChar="",e.lineFenceLen=0,e.lineFenceRunEnded=!1,void(e.lineTailBlank=!0);e.lineFenceRunEnded?e.lineTailBlank=e.lineTailBlank&&/\s/.test(t):0===e.lineFenceLen&&" "===t&&e.lineIndent<3?e.lineIndent+=1:0!==e.lineFenceLen||"`"!==t&&"~"!==t?e.lineFenceLen>0&&t===e.lineFenceChar?e.lineFenceLen+=1:(e.lineFenceRunEnded=!0,e.lineTailBlank=e.lineTailBlank&&/\s/.test(t)):(e.lineFenceChar=t,e.lineFenceLen=1)},fr=e=>e.inFenced||e.lineFenceLen>=3,gr=/^(\*{1,3}|_{1,3})/,br=/^`+/,xr=/^([-+*]\s{0,3})([\s\S]*)$/,kr=/\s+$/,yr=e=>{const t=e.match(gr)?.[0]??"",n=e.slice(t.length),r=n.replace(kr,"");if(r)return`${t}${r}${t}${n.slice(r.length)}`},wr={output:"",sections:null},vr={},_r=(e,t)=>{const{streaming:n,components:r=vr}=t||{},{hasNextChunk:i=!1,incompleteMarkdownComponentMap:a,incompleteMarkdown:l="placeholder",incremental:s}=Yn(n)||{},c=(e=>"object"==typeof e&&"number"==typeof e.minSectionChars?e.minSectionChars:200)(s),d=(e=>"object"!=typeof e||!1!==e.keepSectionsOnEnd)(s),u=!!s,p=(0,o.useRef)(or()),m=Object.keys(r).join("\0"),h=(0,o.useMemo)(()=>m?m.split("\0"):[],[m]),f=(0,o.useCallback)(e=>{const{token:t,pending:n}=e;if(t===Wn.Text)return;if(t===Wn.Image&&"!"===n)return;if(t===Wn.Table&&e.table.newlines>1)return n;const o=a||{};if("complete"===l&&!o[t])return((e,t)=>{switch(e){case Wn.Emphasis:return yr(t);case Wn.InlineCode:{const e=t.match(br)?.[0]??"";return t.length>e.length?`${t}${e}`:void 0}case Wn.Link:{const e=t.indexOf("]");return(-1===e?t.slice(1):t.slice(1,e))||void 0}case Wn.List:{const e=t.match(xr);if(!e)return;const[,n,r]=e;if(!r)return;const o=gr.test(r)?yr(r):r;return o?`${n}${o}`:void 0}default:return}})(t,n);const i=o[t]||`incomplete-${t}`,s=(e=>{try{return encodeURIComponent(e)}catch(t){return t instanceof URIError?encodeURIComponent((e=>{let t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);r>=55296&&r<=56319?n+1<e.length&&e.charCodeAt(n+1)>=56320&&e.charCodeAt(n+1)<=57343&&(t+=e[n]+e[n+1],n++):(r<56320||r>57343)&&(t+=e[n])}return t})(e)):""}})(n);return r?.[i]?`<${i} data-raw="${s}" />`:void 0},[a,l,r]),g=(0,o.useCallback)(e=>{if(!e)return p.current=or(),"";e.startsWith(p.current.completeMarkdown+p.current.pending)||(p.current=or());const t=p.current,n=e.slice(t.processedLength);let r=t.processedLength;t.processedLength+=n.length;for(const o of n)if(t.pending+=o,hr(t.fence,o),nr(t.table,o),u&&"\n"===o&&ur(t,e,r,h,c),r+=o.length,fr(t.fence))mr(t);else{if(t.token===Wn.Text)for(const e of er)e.recognize(t);else{const e=er.find(e=>e.tokenType===t.token);e?.recognize(t);if(t.token===Wn.Text)for(const e of er)e.recognize(t)}t.token===Wn.Text&&mr(t)}const o=f(t);return t.completeMarkdown+(o||"")},[f,u,h,c]),b="string"==typeof e;return(0,o.useEffect)(()=>{b||console.error(`X-Markdown: input must be string, not ${typeof e}.`)},[e,b]),(0,o.useMemo)(()=>{if(!b)return wr;if(!i){const t=p.current;return u&&d&&t.processedLength>0&&e.startsWith(t.completeMarkdown+t.pending)?(g(e),{output:e,sections:pr(t,e,e.length)}):(p.current=or(),{output:e,sections:null})}const t=g(e),n=p.current;return{output:t,sections:u?pr(n,t,n.completeMarkdown.length):null}},[e,b,i,u,d,g])},Tr=i().memo(({content:e,parser:t,renderer:n,injectTail:r})=>{const a=(0,o.useMemo)(()=>t.parse(e,{injectTail:r}),[e,t,r]),l=(0,o.useMemo)(()=>n.render(a),[a,n]);return i().createElement(i().Fragment,null,l)});const Er=Tr;var Sr=n("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/cjs.js!./node_modules/.pnpm/@ant-design+x-markdown@2.10.0_@types+react@18.3.31_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@ant-design/x-markdown/es/XMarkdown/index.css"),Ar={};Ar.styleTagTransform=vn(),Ar.setAttributes=xn(),Ar.insert=function(e){const t=document.querySelector("head"),n=window._lastElementInsertedByStyleLoader;n?n.nextSibling?t.insertBefore(e,n.nextSibling):t.appendChild(e):t.insertBefore(e,t.firstChild),window._lastElementInsertedByStyleLoader=e},Ar.domAPI=gn(),Ar.insertStyleElement=yn();hn()(Sr.A,Ar);const Cr=i().memo(e=>{const{streaming:t,config:n,components:a,componentsProps:l,paragraphTag:s,content:c,children:d,rootClassName:u,className:p,style:m,openLinksInNewTab:h,dompurifyConfig:f,protectCustomTagNewlines:g,disableCustomTagBlockMarkdown:b,escapeRawHtml:x,debug:k,disableDefaultStyles:y}=e,w=Yn(t),v=(0,o.useMemo)(()=>{return e=w?.tail,e?"boolean"==typeof e?"▋":e.content||"▋":null;var e},[w?.tail]),_="object"==typeof w?.tail?w.tail.component:void 0,T=!!w?.hasNextChunk&&v,E=(0,o.useMemo)(()=>!0===y?"x-md-disable-all":Array.isArray(y)?y.map(e=>`x-md-disable-${e}`):void 0,[y]),S=(0,r.$)("x-markdown",E,u,p),A=Gn(c||d||"",w?.typewriter,!!w?.hasNextChunk),{output:C,sections:R}=_r(A,{streaming:w,components:a}),N=(0,o.useMemo)(()=>{if(!T)return a;const e=_?i().createElement(_,{content:v}):i().createElement("span",{className:"xmd-tail"},v);return{...a,"xmd-tail":()=>e}},[T,a,_,v]),I=(0,o.useMemo)(()=>new Ae({markedConfig:n,paragraphTag:s,openLinksInNewTab:h,components:N,protectCustomTagNewlines:g,disableCustomTagBlockMarkdown:b,escapeRawHtml:x}),[n,s,h,N,g,b,x]),O=w?.enableAnimation,L=w?.animationConfig,M=(0,o.useMemo)(()=>new pn({components:N,componentsProps:l,dompurifyConfig:f,streaming:{enableAnimation:O,animationConfig:L}}),[N,l,f,O,L]),D=(0,o.useMemo)(()=>!C||R?"":I.parse(C,{injectTail:!!T}),[C,R,I,T]),P=(0,o.useMemo)(()=>D?M.render(D):null,[D,M]);if(!C)return null;const z=R?R.map((e,t)=>i().createElement(Er,{key:t,content:e,parser:I,renderer:M,injectTail:!!T&&t===R.length-1})):null;return i().createElement(i().Fragment,null,i().createElement("div",{className:S,style:m},z??P),k?i().createElement(Cn,null):null)});var Rr=n("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/cjs.js!./node_modules/.pnpm/@ant-design+x-markdown@2.10.0_@types+react@18.3.31_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@ant-design/x-markdown/themes/light.css"),Nr={};Nr.styleTagTransform=vn(),Nr.setAttributes=xn(),Nr.insert=function(e){const t=document.querySelector("head"),n=window._lastElementInsertedByStyleLoader;n?n.nextSibling?t.insertBefore(e,n.nextSibling):t.appendChild(e):t.insertBefore(e,t.firstChild),window._lastElementInsertedByStyleLoader=e},Nr.domAPI=gn(),Nr.insertStyleElement=yn();hn()(Rr.A,Nr);var Ir=n("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/cjs.js!./node_modules/.pnpm/@ant-design+x-markdown@2.10.0_@types+react@18.3.31_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@ant-design/x-markdown/themes/dark.css"),Or={};Or.styleTagTransform=vn(),Or.setAttributes=xn(),Or.insert=function(e){const t=document.querySelector("head"),n=window._lastElementInsertedByStyleLoader;n?n.nextSibling?t.insertBefore(e,n.nextSibling):t.appendChild(e):t.insertBefore(e,t.firstChild),window._lastElementInsertedByStyleLoader=e},Or.domAPI=gn(),Or.insertStyleElement=yn();hn()(Ir.A,Or);var Lr=n("./node_modules/.pnpm/antd@6.6.8_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/es/theme/index.js"),Mr=n("./src/utils/dash3.ts"),Dr=n("./src/utils/funcs.ts"),Pr=n("./src/utils/highlight.tsx"),zr=n("./src/utils/theme.ts"),jr=(n("./src/components/fragments/Highlight.css"),n("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/cjs.js!./src/components/fragments/Markdown.css")),$r={};$r.styleTagTransform=vn(),$r.setAttributes=xn(),$r.insert=function(e){const t=document.querySelector("head"),n=window._lastElementInsertedByStyleLoader;n?n.nextSibling?t.insertBefore(e,n.nextSibling):t.appendChild(e):t.insertBefore(e,t.firstChild),window._lastElementInsertedByStyleLoader=e},$r.domAPI=gn(),$r.insertStyleElement=yn();hn()(jr.A,$r);const Fr=e=>{const{block:t,children:n,className:r,lang:o}=e,{token:a}=Lr.A.useToken();if(!t)return i().createElement("code",{className:r},n);const l=i().Children.toArray(n).join("").replace(/\n$/,""),s=o||r?.match(/(?:^|\s)language-([^\s]+)/)?.[1],c=(0,Pr._r)(s),d=(0,Pr.g_)("system",a);return i().createElement(Pr.df,{className:"dac-highlight dac-markdown-code",code:l,language:c,style:(0,Pr.al)(a,d.theme,!0),theme:d.theme})},Br=e=>{const{token:t}=Lr.A.useToken(),{ariaLabel:n,children:r,components:a,config:l,content:s,dir:c,hidden:d,id:u,key:p,lang:m,loading_state:h,role:f,streaming:g,tabIndex:b,...x}=e,{attributes:k,markdownProps:y}=(e=>{const t={},n={};return Object.entries(e).forEach(([e,r])=>{e.startsWith("aria-")||e.startsWith("data-")?t[e]=r:n[e]=r}),{attributes:t,markdownProps:n}})(x),w=(0,o.useMemo)(()=>({props:e}),[e]),v=(0,o.useMemo)(()=>(0,Dr.qF)(a,w),[a,w]),_=(0,o.useMemo)(()=>({code:Fr,...v}),[v]),T=(0,o.useMemo)(()=>(0,Dr.qF)(l,w),[l,w]),E=(0,o.useMemo)(()=>(0,Dr.qF)(g,w),[g,w]),S=String(y.className||""),A=S.split(/\s+/).includes("x-markdown-auto-theme"),C=(0,zr.c)(t.colorBgBase),R=/\bx-markdown-(?:light|dark)\b/.test(S),N=A||!R,I=(A?S.replace(/\bx-markdown-(?:auto-theme|light|dark)\b/g,""):S).replace(/\s+/g," ").trim(),O=N?`${I} ${C?"x-markdown-dark":"x-markdown-light"}`.trim():I,L=(0,o.useMemo)(()=>({...N?{"--font-size":`${t.fontSize}px`,"--primary-color":t.colorLink,"--primary-color-hover":t.colorLinkHover,"--heading-color":t.colorTextHeading,"--text-color":t.colorText,"--border-color":t.colorBorderSecondary,"--line-color":t.colorSplit,"--light-bg":t.colorFillTertiary,"--dark-bg":t.colorFillTertiary,"--table-head-bg":t.colorFillAlter,"--table-body-bg":t.colorBgContainer,"--cite-bg":t.colorFillSecondary,"--cite-hover-bg":t.colorFill,"--border-radius-middle":`${t.borderRadius}px`,"--border-radius-small":`${t.borderRadiusSM}px`,"--xmd-tail-color":t.colorText}:{},...y.style||{}}),[N,y.style,t]);return i().createElement("div",{...k,id:u,"aria-label":n,"data-dash-is-loading":(0,Mr.A_)(h)||void 0,dir:c,hidden:d,lang:m,role:f,tabIndex:b},i().createElement(Cr,{...y,components:_,className:O||void 0,config:T,content:s,style:L,streaming:E},r))}},"./src/utils/theme.ts"(e,t,n){"use strict";n.d(t,["c",0,e=>{const t=e.trim(),n=/^#([\da-f])([\da-f])([\da-f])$/i.exec(t),r=/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(t),o=/^rgba?\(\s*(\d+(?:\.\d+)?)\s*[, ]\s*(\d+(?:\.\d+)?)\s*[, ]\s*(\d+(?:\.\d+)?)/i.exec(t),i=n?n.slice(1).map(e=>parseInt(e+e,16)):r?r.slice(1).map(e=>parseInt(e,16)):o?o.slice(1).map(Number):null;return!!i&&.2126*i[0]+.7152*i[1]+.0722*i[2]<128}])}}]);
1
+ (self.webpackChunkdash_antd_components=self.webpackChunkdash_antd_components||[]).push([["async-markdown"],{"./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/cjs.js!./node_modules/.pnpm/@ant-design+x-markdown@2.10.0_@types+react@18.3.31_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@ant-design/x-markdown/es/XMarkdown/DebugPanel/DebugPanel.css"(e,t,n){"use strict";var r=n("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/runtime/noSourceMaps.js"),o=n.n(r),i=n("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/runtime/api.js"),a=n.n(i)()(o());a.push([e.id,'.x-markdown-debug-panel {\n position: fixed;\n z-index: 9999;\n right: 0;\n background: rgba(0, 0, 0, 0.85);\n border-radius: 8px;\n padding: 12px;\n font-family:\n "SF Mono", "Monaco", "Inconsolata", "Fira Mono", "Droid Sans Mono", "Source Code Pro", monospace;\n font-size: 12px;\n color: #fff;\n width: 180px;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n backdrop-filter: blur(8px);\n user-select: none;\n transition: box-shadow 0.2s;\n}\n\n.x-markdown-debug-panel:hover {\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);\n}\n\n.x-markdown-debug-row {\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 8px;\n}\n\n.x-markdown-debug-row:last-child {\n margin-bottom: 0;\n}\n\n.x-markdown-debug-label {\n color: rgba(255, 255, 255, 0.65);\n font-weight: 500;\n min-width: 60px;\n}\n\n.x-markdown-debug-value {\n font-weight: 600;\n min-width: 50px;\n text-align: right;\n}\n\n.x-markdown-debug-chart {\n margin-left: auto;\n}\n\n/* Actions */\n.x-markdown-debug-actions {\n display: flex;\n gap: 8px;\n margin-top: 12px;\n padding-top: 12px;\n border-top: 1px solid rgba(255, 255, 255, 0.1);\n}\n\n.x-markdown-debug-action {\n flex: 1;\n padding: 6px 12px;\n background: rgba(255, 255, 255, 0.1);\n border: 1px solid rgba(255, 255, 255, 0.2);\n border-radius: 4px;\n color: #fff;\n font-size: 11px;\n font-family: inherit;\n cursor: pointer;\n transition: all 0.2s;\n font-weight: 500;\n}\n\n.x-markdown-debug-action:hover {\n background: rgba(255, 255, 255, 0.15);\n border-color: rgba(255, 255, 255, 0.3);\n}\n\n.x-markdown-debug-action:active {\n transform: scale(0.98);\n}\n\n/* Record Button */\n.x-markdown-debug-record-btn.recording {\n background: rgba(255, 77, 79, 0.2);\n border-color: #ff4d4f;\n animation: recording-pulse 1.5s ease-in-out infinite;\n}\n\n@keyframes recording-pulse {\n 0%,\n 100% {\n box-shadow: 0 0 0 0 rgba(255, 77, 79, 0.4);\n }\n 50% {\n box-shadow: 0 0 0 8px rgba(255, 77, 79, 0);\n }\n}\n\n/* Modal Overlay */\n.x-markdown-debug-modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0.75);\n backdrop-filter: blur(4px);\n z-index: 10000;\n display: flex;\n align-items: center;\n justify-content: center;\n animation: fadeIn 0.2s ease-out;\n}\n\n@keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n\n/* Modal */\n.x-markdown-debug-modal {\n background: rgba(30, 30, 30, 0.95);\n border-radius: 12px;\n box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);\n max-width: 90vw;\n max-height: 90vh;\n overflow: auto;\n animation: slideIn 0.3s ease-out;\n border: 1px solid rgba(255, 255, 255, 0.1);\n}\n\n@keyframes slideIn {\n from {\n transform: translateY(-20px);\n opacity: 0;\n }\n to {\n transform: translateY(0);\n opacity: 1;\n }\n}\n\n/* Modal Header */\n.x-markdown-debug-modal-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 20px 24px;\n border-bottom: 1px solid rgba(255, 255, 255, 0.1);\n}\n\n.x-markdown-debug-close-btn {\n width: 32px;\n height: 32px;\n border-radius: 6px;\n background: rgba(255, 255, 255, 0.1);\n border: none;\n color: #fff;\n font-size: 18px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s;\n}\n\n.x-markdown-debug-close-btn:hover {\n background: rgba(255, 77, 79, 0.3);\n}\n\n/* Modal Content */\n.x-markdown-debug-modal-content {\n padding: 24px;\n}\n\n/* Stats Summary */\n.x-markdown-debug-stats-summary {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n gap: 16px;\n margin-bottom: 24px;\n}\n\n.x-markdown-debug-stat-item {\n background: rgba(255, 255, 255, 0.05);\n border-radius: 8px;\n padding: 16px;\n border: 1px solid rgba(255, 255, 255, 0.1);\n}\n\n.x-markdown-debug-stat-label {\n font-size: 11px;\n color: rgba(255, 255, 255, 0.6);\n margin-bottom: 8px;\n text-transform: uppercase;\n letter-spacing: 0.5px;\n}\n\n.x-markdown-debug-stat-value {\n font-size: 20px;\n font-weight: 700;\n color: #fff;\n}\n\n/* Chart */\n.x-markdown-debug-chart-full {\n background: rgba(255, 255, 255, 0.02);\n border-radius: 8px;\n border: 1px solid rgba(255, 255, 255, 0.1);\n}\n\n.x-markdown-debug-chart-full .fps-line,\n.x-markdown-debug-chart-full .memory-line {\n filter: drop-shadow(0 0 4px currentColor);\n}\n\n/* Legend */\n.x-markdown-debug-legend {\n display: flex;\n gap: 24px;\n justify-content: center;\n margin-top: 16px;\n}\n\n.x-markdown-debug-legend-item {\n display: flex;\n align-items: center;\n gap: 8px;\n font-size: 13px;\n color: rgba(255, 255, 255, 0.8);\n}\n\n.x-markdown-debug-legend-color {\n width: 12px;\n height: 12px;\n border-radius: 2px;\n}\n\n/* Responsive */\n@media (max-width: 768px) {\n .x-markdown-debug-stats-summary {\n grid-template-columns: repeat(2, 1fr);\n }\n}\n',""]);n.d(t,["A",0,a])},"./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/cjs.js!./node_modules/.pnpm/@ant-design+x-markdown@2.10.0_@types+react@18.3.31_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@ant-design/x-markdown/es/XMarkdown/index.css"(e,t,n){"use strict";var r=n("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/runtime/noSourceMaps.js"),o=n.n(r),i=n("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/runtime/api.js"),a=n.n(i)()(o());a.push([e.id,"/* ==========================================\n XMarkdown – default css\n ========================================== */\n\n/*\n * Default tag styles are gated behind `:not(.x-md-disable-all):not(.x-md-disable-<tag>)`\n * so consumers can opt out via the `disableDefaultStyles` prop. This prevents the\n * descendant-selector defaults (e.g. `ul`/`li`/`code`) from polluting elements\n * rendered by custom components (such as antd `Collapse`) inside the container.\n */\n\n@keyframes x-markdown-fade-in {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}\n\n.x-markdown {\n --text-color: inherit;\n --font-size: inherit;\n --margin-block: 0 0 1em 0;\n --td-th-padding: 0.85em 1em;\n --pre-th-td-padding: 2px 0;\n --border-font-weight: 600;\n --padding-ul-ol: 0 0 0 1em;\n --margin-ul-ol: 0 0 1em 1.8em;\n --margin-li: 0.25em 0;\n --margin-pre: 1em 0;\n --padding-code-inline: 0.2em 0.4em;\n --margin-code-inline: 0 0.2em;\n --code-inline-text: 0.85em;\n --small-border-radius: 2px;\n --image-margin: 0.5em 0;\n --hr-margin: 1.5em 0;\n --table-margin: 1em 0;\n\n font-size: var(--font-size);\n line-height: 1.5714285714285714;\n width: 100%;\n color: var(--text-color);\n}\n\n/* xmd-tail: default styling for streaming tail indicator */\nxmd-tail {\n display: inline;\n}\n\n.xmd-tail {\n color: inherit;\n font-size: inherit;\n line-height: inherit;\n}\n\n.x-markdown p,\n.x-markdown div,\n.x-markdown span,\n.x-markdown li {\n word-break: break-word;\n overflow-wrap: break-word;\n}\n\n.x-markdown pre,\n.x-markdown code {\n word-break: break-word;\n overflow-wrap: break-word;\n white-space: pre-wrap;\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-th) th,\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-td) td {\n padding: var(--td-th-padding);\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-th) th {\n font-weight: var(--border-font-weight);\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-table) pre table {\n box-shadow: none;\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-td) pre td,\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-th) pre th {\n padding: var(--pre-th-td-padding);\n border: none;\n text-align: left;\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-p) p {\n margin: var(--margin-block);\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-p) p:first-child {\n margin-top: 0;\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-p) p:last-child {\n margin-bottom: 0;\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-ul) ul,\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-ol) ol {\n margin: var(--margin-ul-ol);\n padding: var(--padding-ul-ol);\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-ul) ul:first-child,\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-ol) ol:first-child {\n margin-top: 0;\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-ul) ul:last-child,\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-ol) ol:last-child {\n margin-bottom: 0;\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-ol):not(.x-md-disable-li) ol > li {\n list-style: decimal;\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-ul):not(.x-md-disable-li) ul > li {\n list-style: disc;\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-li) li {\n margin: var(--margin-li);\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-li) li:first-child {\n margin-top: 0;\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-li) li:last-child {\n margin-bottom: 0;\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-pre) pre {\n margin: var(--margin-pre);\n overflow-x: auto;\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-pre) pre:first-child {\n margin-top: 0;\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-pre) pre:last-child {\n margin-bottom: 0;\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-code) code {\n padding: var(--padding-code-inline);\n margin: var(--margin-code-inline);\n font-size: var(--code-inline-text);\n border-radius: var(--small-border-radius);\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-code) pre code {\n padding: 0;\n margin: 0;\n font-size: inherit;\n border-radius: 0;\n line-height: 2;\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-img) img {\n max-width: 100%;\n height: auto;\n margin: var(--image-margin);\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-hr) hr {\n margin: var(--hr-margin);\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-table) table:not(pre) {\n margin: var(--table-margin);\n border-collapse: collapse;\n display: block;\n width: max-content;\n max-width: 100%;\n overflow: auto;\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-table) table:not(pre):first-child {\n margin-top: 0;\n}\n\n.x-markdown:not(.x-md-disable-all):not(.x-md-disable-table) table:not(pre):last-child {\n margin-bottom: 0;\n}\n\n.x-markdown .inline-katex .katex-display {\n display: inline-block;\n margin: 0;\n text-align: initial;\n vertical-align: middle;\n}\n\n.x-markdown .inline-katex .katex-display > .katex {\n display: inline-block;\n text-align: initial;\n white-space: normal;\n}\n\n.x-markdown .inline-katex .katex-display > .katex > .katex-html {\n display: inline-block;\n position: static;\n}\n\n.x-markdown .inline-katex .katex-display > .katex > .katex-html > .tag {\n position: static;\n}\n\n.x-markdown .block-katex {\n display: block;\n margin: 1em 0;\n}\n",""]);n.d(t,["A",0,a])},"./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/cjs.js!./node_modules/.pnpm/@ant-design+x-markdown@2.10.0_@types+react@18.3.31_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@ant-design/x-markdown/themes/dark.css"(e,t,n){"use strict";var r=n("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/runtime/noSourceMaps.js"),o=n.n(r),i=n("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/runtime/api.js"),a=n.n(i)()(o());a.push([e.id,'.x-markdown-dark {\n --font-size: 14px;\n --primary-color: #1677ff;\n --primary-color-hover: #4096ff;\n --heading-color: #ffffff;\n --text-color: rgba(255, 255, 255, 0.85);\n --border-color: rgba(48, 48, 48, 1);\n --line-color: rgba(253, 253, 253, 0.12);\n --dark-bg: rgba(255, 255, 255, 0.1);\n --table-head-bg: rgba(29, 29, 29, 1);\n --table-body-bg: rgba(20, 20, 20, 1);\n --cite-bg: rgba(255, 255, 255, 0.1);\n --cite-hover-bg: rgba(255, 255, 255, 0.2);\n --border-radius-middle: 6px;\n --border-radius-small: 4px;\n --td-th-padding: 10px 12px;\n --border-font-weight: 600;\n --margin-block: 0 0 16px 0;\n --padding-ul-ol: 0 0 0 16px;\n --margin-ul-ol: 0 0 16px 28px;\n --margin-li: 0 0 14px 0;\n --hr-margin: 24px 0;\n --table-margin: 0 0 24px 0;\n --padding-code: 16px;\n --xmd-tail-color: var(--text-color);\n}\n\n.x-markdown-dark h1,\n.x-markdown-dark h2,\n.x-markdown-dark h3,\n.x-markdown-dark h4 {\n color: var(--heading-color);\n font-weight: var(--border-font-weight);\n margin: var(--margin-block);\n}\n\n.x-markdown-dark h1 {\n font-size: 24px;\n line-height: 36px;\n}\n\n.x-markdown-dark h2 {\n font-size: 20px;\n line-height: 32px;\n}\n\n.x-markdown-dark h3 {\n font-size: 18px;\n /* 18px */\n line-height: 30px;\n}\n\n.x-markdown-dark h4 {\n font-size: 16px;\n}\n\n.x-markdown-dark p,\n.x-markdown-dark li {\n color: var(--text-color);\n margin: var(--margin-block);\n}\n\n/* 列表项通用样式 */\n.x-markdown-dark li {\n position: relative;\n}\n\n.x-markdown-dark li::marker {\n font-size: 16px;\n font-weight: 400;\n line-height: 28px;\n color: var(--heading-color);\n}\n\n.x-markdown-dark ul > li ul > li,\n.x-markdown-dark ul > li ol > li {\n list-style: circle;\n}\n\n.x-markdown-dark ul > li ul > li ul > li,\n.x-markdown-dark ul > li ul > li ol > li,\n.x-markdown-dark ul > li ol > li ul > li,\n.x-markdown-dark ul > li ol > li ol > li {\n list-style: square;\n}\n\n.x-markdown-dark ol > li ol > li,\n.x-markdown-dark ol > li ul > li {\n list-style: lower-alpha;\n}\n\n.x-markdown-dark ol > li ol > li ol > li,\n.x-markdown-dark ol > li ol > li ul > li,\n.x-markdown-dark ol > li ul > li ol > li,\n.x-markdown-dark ol > li ul > li ul > li {\n list-style: lower-roman;\n}\n\n.x-markdown-dark hr {\n border: 0;\n border-top: 1px solid var(--line-color);\n}\n\n.x-markdown-dark table {\n border-collapse: collapse;\n overflow: hidden;\n box-shadow: 0 1px 3px rgba(255, 255, 255, 0.05);\n}\n\n.x-markdown-dark thead {\n background-color: var(--table-head-bg);\n}\n\n.x-markdown-dark tbody {\n background-color: var(--table-body-bg);\n}\n\n.x-markdown-dark tbody tr {\n background-color: var(--table-body-bg);\n transition: background-color 200ms linear;\n\n &:hover {\n background-color: var(--table-head-bg);\n }\n}\n\n.x-markdown-dark th,\n.x-markdown-dark td {\n padding: var(--td-th-padding);\n border: 1px solid var(--border-color);\n}\n\n.x-markdown-dark th {\n color: var(--heading-color);\n}\n\n.x-markdown-dark td {\n color: var(--text-color);\n}\n\n.x-markdown-dark blockquote {\n border-left: 4px solid var(--border-color);\n padding: 4px 12px;\n margin: 16px 0;\n background-color: var(--cite-bg);\n border-radius: 0 var(--border-radius-middle) var(--border-radius-middle) 0;\n transition: background-color 0.2s ease;\n}\n\n.x-markdown-dark blockquote:hover {\n background-color: var(--cite-hover-bg);\n}\n\n.x-markdown-dark pre code:not([class$="-codeHighlighter-code"] pre code) {\n display: block;\n background: var(--dark-bg) !important;\n padding: var(--padding-code);\n color: var(--text-color) !important;\n line-height: 1.3;\n font-size: var(--font-size);\n border-radius: var(--border-radius-middle);\n margin: var(--margin-pre);\n}\n\n.x-markdown-dark code:not([class$="-codeHighlighter-code"] code):not(pre code) {\n background-color: var(--dark-bg) !important;\n color: var(--text-color) !important;\n border-radius: var(--border-radius-small);\n padding: 2px 6px;\n margin-inline: 3px;\n font-size: var(--font-size);\n border: 1px solid var(--border-color);\n}\n\n.x-markdown-dark img {\n max-width: 100%;\n}\n\n.x-markdown-dark a {\n color: var(--primary-color);\n text-decoration: none;\n transition: color 0.2s ease;\n position: relative;\n}\n\n.x-markdown-dark a:hover {\n color: var(--primary-color-hover);\n text-decoration: underline;\n}\n\n.x-markdown-dark a::after {\n content: "↗";\n margin-left: 4px;\n vertical-align: super;\n opacity: 0.7;\n}\n',""]);n.d(t,["A",0,a])},"./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/cjs.js!./node_modules/.pnpm/@ant-design+x-markdown@2.10.0_@types+react@18.3.31_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@ant-design/x-markdown/themes/light.css"(e,t,n){"use strict";var r=n("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/runtime/noSourceMaps.js"),o=n.n(r),i=n("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/runtime/api.js"),a=n.n(i)()(o());a.push([e.id,'.x-markdown-light {\n --font-size: 14px;\n --primary-color: #1677ff;\n --primary-color-hover: #4096ff;\n --heading-color: #000000;\n --text-color: rgba(0, 0, 0, 0.85);\n --border-color: rgba(240, 240, 240, 1);\n --line-color: rgba(5, 5, 5, 0.06);\n --light-bg: rgba(0, 0, 0, 0.04);\n --table-head-bg: rgba(250, 250, 250, 1);\n --table-body-bg: rgba(255, 255, 255, 1);\n --cite-bg: rgba(0, 0, 0, 0.1);\n --cite-hover-bg: rgba(0, 0, 0, 0.2);\n --border-radius-middle: 6px;\n --border-radius-small: 4px;\n --td-th-padding: 10px 12px;\n --border-font-weight: 600;\n --margin-block: 0 0 16px 0;\n --padding-ul-ol: 0 0 0 16px;\n --margin-ul-ol: 0 0 16px 28px;\n --margin-li: 0 0 14px 0;\n --hr-margin: 24px 0;\n --table-margin: 0 0 24px 0;\n --margin-pre: 0 0 16px 0;\n --padding-code: 16px;\n --xmd-tail-color: var(--text-color);\n}\n\n.x-markdown-light h1,\n.x-markdown-light h2,\n.x-markdown-light h3,\n.x-markdown-light h4 {\n color: var(--heading-color);\n font-weight: var(--border-font-weight);\n margin: var(--margin-block);\n}\n\n.x-markdown-light h1 {\n font-size: 24px;\n line-height: 36px;\n}\n\n.x-markdown-light h2 {\n font-size: 20px;\n line-height: 32px;\n}\n\n.x-markdown-light h3 {\n font-size: 18px;\n /* 18px */\n line-height: 30px;\n}\n\n.x-markdown-light h4 {\n font-size: 16px;\n}\n\n.x-markdown-light p,\n.x-markdown-light li {\n color: var(--text-color);\n margin: var(--margin-block);\n}\n\n/* 列表项通用样式 */\n.x-markdown-light li {\n position: relative;\n}\n\n.x-markdown-light li::marker {\n font-size: 16px;\n font-weight: 400;\n line-height: 28px;\n color: var(--heading-color);\n}\n\n.x-markdown-light ul > li ul > li,\n.x-markdown-light ul > li ol > li {\n list-style: circle;\n}\n\n.x-markdown-light ul > li ul > li ul > li,\n.x-markdown-light ul > li ul > li ol > li,\n.x-markdown-light ul > li ol > li ul > li,\n.x-markdown-light ul > li ol > li ol > li {\n list-style: square;\n}\n\n.x-markdown-light ol > li ol > li,\n.x-markdown-light ol > li ul > li {\n list-style: lower-alpha;\n}\n\n.x-markdown-light ol > li ol > li ol > li,\n.x-markdown-light ol > li ol > li ul > li,\n.x-markdown-light ol > li ul > li ol > li,\n.x-markdown-light ol > li ul > li ul > li {\n list-style: lower-roman;\n}\n\n.x-markdown-light hr {\n border: 0;\n border-top: 1px solid var(--line-color);\n margin: var(--hr-margin);\n}\n\n.x-markdown-light table {\n border-collapse: collapse;\n overflow: hidden;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);\n margin: var(--table-margin);\n}\n\n.x-markdown-light thead {\n background-color: var(--table-head-bg);\n}\n\n.x-markdown-light tbody {\n background-color: var(--table-body-bg);\n}\n\n.x-markdown-light tbody tr {\n background-color: var(--table-body-bg);\n transition: background-color 200ms linear;\n\n &:hover {\n background-color: var(--table-head-bg);\n }\n}\n\n.x-markdown-light th,\n.x-markdown-light td {\n padding: var(--td-th-padding);\n border: 1px solid var(--border-color);\n}\n\n.x-markdown-light th {\n color: var(--heading-color);\n}\n\n.x-markdown-light td {\n color: var(--text-color);\n}\n\n.x-markdown-light blockquote {\n border-left: 4px solid var(--border-color);\n padding: 4px 12px;\n margin: 16px 0;\n background-color: var(--cite-bg);\n border-radius: 0 var(--border-radius-middle) var(--border-radius-middle) 0;\n transition: background-color 0.2s ease;\n}\n\n.x-markdown-light blockquote:hover {\n background-color: var(--cite-hover-bg);\n}\n\n.x-markdown-light pre code:not([class$="-highlightCode-code"] pre code) {\n display: block;\n background: var(--light-bg) !important;\n padding: var(--padding-code);\n color: var(--text-color) !important;\n line-height: 1.3;\n font-size: var(--font-size);\n border-radius: var(--border-radius-middle);\n margin: var(--margin-pre);\n}\n\n.x-markdown-light code:not([class$="-highlightCode-code"] code):not(pre code) {\n background-color: var(--light-bg) !important;\n color: var(--text-color) !important;\n border-radius: var(--border-radius-small);\n padding: 2px 6px;\n margin-inline: 3px;\n font-size: var(--font-size);\n border: 1px solid var(--border-color);\n}\n\n.x-markdown-light img {\n max-width: 100%;\n}\n\n.x-markdown-light a {\n color: var(--primary-color);\n text-decoration: none;\n transition: color 0.2s ease;\n position: relative;\n}\n\n.x-markdown-light a:hover {\n color: var(--primary-color-hover);\n text-decoration: underline;\n}\n\n.x-markdown-light a::after {\n content: "↗";\n margin-left: 4px;\n vertical-align: super;\n opacity: 0.7;\n}\n',""]);n.d(t,["A",0,a])},"./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/cjs.js!./src/components/fragments/Markdown.css"(e,t,n){"use strict";var r=n("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/runtime/noSourceMaps.js"),o=n.n(r),i=n("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/runtime/api.js"),a=n.n(i)()(o());a.push([e.id,".x-markdown pre > code.dac-markdown-code {\n display: block;\n margin: 0 !important;\n padding: 12px 16px !important;\n border-radius: 6px;\n}\n",""]);n.d(t,["A",0,a])},"./node_modules/.pnpm/domelementtype@2.3.0/node_modules/domelementtype/lib/index.js"(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},"./node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/index.js"(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n("./node_modules/.pnpm/domelementtype@2.3.0/node_modules/domelementtype/lib/index.js"),a=n("./node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/node.js");o(n("./node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/node.js"),t);var l={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=l),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:l,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=new a.Element(e,t,void 0,this.options.xmlMode?i.ElementType.Tag:void 0);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=s,t.default=s},"./node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/node.js"(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var a=n("./node_modules/.pnpm/domelementtype@2.3.0/node_modules/domelementtype/lib/index.js"),l=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),v(this,e)},e}();t.Node=l;var s=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return o(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(l);t.DataNode=s;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Text,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(s);t.Text=c;var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Comment,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(s);t.Comment=d;var u=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=a.ElementType.Directive,r}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(s);t.ProcessingInstruction=u;var p=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return o(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=p;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=m;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=h;var f=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var i=e.call(this,r)||this;return i.name=t,i.attribs=n,i.type=o,i}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map(function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}})},enumerable:!1,configurable:!0}),t}(p);function g(e){return(0,a.isTag)(e)}function b(e){return e.type===a.ElementType.CDATA}function x(e){return e.type===a.ElementType.Text}function k(e){return e.type===a.ElementType.Comment}function y(e){return e.type===a.ElementType.Directive}function w(e){return e.type===a.ElementType.Root}function v(e,t){var n;if(void 0===t&&(t=!1),x(e))n=new c(e.data);else if(k(e))n=new d(e.data);else if(g(e)){var r=t?_(e.children):[],o=new f(e.name,i({},e.attribs),r);r.forEach(function(e){return e.parent=o}),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=o}else if(b(e)){r=t?_(e.children):[];var a=new m(r);r.forEach(function(e){return e.parent=a}),n=a}else if(w(e)){r=t?_(e.children):[];var l=new h(r);r.forEach(function(e){return e.parent=l}),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),n=l}else{if(!y(e))throw new Error("Not implemented yet: ".concat(e.type));var s=new u(e.name,e.data);null!=e["x-name"]&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),n=s}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function _(e){for(var t=e.map(function(e){return v(e,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=f,t.isTag=g,t.isCDATA=b,t.isText=x,t.isComment=k,t.isDirective=y,t.isDocument=w,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=v},"./node_modules/.pnpm/html-dom-parser@5.1.8/node_modules/html-dom-parser/lib/client/constants.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=t.CARRIAGE_RETURN_PLACEHOLDER=t.CARRIAGE_RETURN_REGEX=t.CARRIAGE_RETURN=t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,t){return e[t.toLowerCase()]=t,e},{}),t.CARRIAGE_RETURN="\r",t.CARRIAGE_RETURN_REGEX=new RegExp(t.CARRIAGE_RETURN,"g"),t.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now().toString(),"__"),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(t.CARRIAGE_RETURN_PLACEHOLDER,"g")},"./node_modules/.pnpm/html-dom-parser@5.1.8/node_modules/html-dom-parser/lib/client/domparser.js"(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,d,u,p,h;e=(0,r.escapeSpecialCharacters)(e);var g=l.exec(e),b=null===(t=null==g?void 0:g[1])||void 0===t?void 0:t.toLowerCase();switch(b){case o:var x=c(e);if(!(0,r.hasOpenTag)(e,i))null===(n=null==(y=x.querySelector(i))?void 0:y.parentNode)||void 0===n||n.removeChild(y);if(!(0,r.hasOpenTag)(e,a))null===(d=null==(y=x.querySelector(a))?void 0:y.parentNode)||void 0===d||d.removeChild(y);return x.querySelectorAll(o);case i:case a:var k=s(e).querySelectorAll(b);return(0,r.hasOpenTag)(e,a)&&(0,r.hasOpenTag)(e,i)?null!==(p=null===(u=k[0].parentNode)||void 0===u?void 0:u.childNodes)&&void 0!==p?p:f():k;default:return m?m(e):null!==(h=null==(y=s(e,a).querySelector(a))?void 0:y.childNodes)&&void 0!==h?h:f();var y}};var r=n("./node_modules/.pnpm/html-dom-parser@5.1.8/node_modules/html-dom-parser/lib/client/utilities.js"),o="html",i="head",a="body",l=/<([a-zA-Z]+[0-9]?)/,s=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},c=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},d="object"==typeof window&&window.DOMParser;if("function"==typeof d){var u=new d;s=c=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),u.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var p=document.implementation.createHTMLDocument();s=function(e,t){if(t){var n=p.documentElement.querySelector(t);return n&&(n.innerHTML=e),p}return p.documentElement.innerHTML=e,p}}var m,h="object"==typeof document&&document.createElement("template");h&&h.content&&(m=function(e){return h.innerHTML=e,h.content.childNodes});var f=function(){return document.createDocumentFragment().childNodes}},"./node_modules/.pnpm/html-dom-parser@5.1.8/node_modules/html-dom-parser/lib/client/html-to-dom.js"(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=a.exec(e),n=t?t[1]:void 0;return(0,i.formatDOM)((0,o.default)(e),null,n)};var o=r(n("./node_modules/.pnpm/html-dom-parser@5.1.8/node_modules/html-dom-parser/lib/client/domparser.js")),i=n("./node_modules/.pnpm/html-dom-parser@5.1.8/node_modules/html-dom-parser/lib/client/utilities.js"),a=/<(![a-zA-Z\s]+)>/},"./node_modules/.pnpm/html-dom-parser@5.1.8/node_modules/html-dom-parser/lib/client/utilities.js"(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAttributes=i,t.hasOpenTag=function(e,t){var n="<"+t,r=e.toLowerCase().indexOf(n);if(-1===r)return!1;var o=e[r+n.length];return">"===o||" "===o||"\t"===o||"\n"===o||"\r"===o||"/"===o},t.escapeSpecialCharacters=function(e){return e.replace(o.CARRIAGE_RETURN_REGEX,o.CARRIAGE_RETURN_PLACEHOLDER)},t.revertEscapedCharacters=l,t.formatDOM=function e(t,n,o){var s,c,d,u;void 0===n&&(n=null);for(var p,m=[],h=0,f=t.length;h<f;h++){var g=t[h];switch(g.nodeType){case 1:var b=a(g.nodeName);(p=new r.Element(b,i(g.attributes))).children=e("template"===b?g.content.childNodes:g.childNodes,p);break;case 3:p=new r.Text(l(null!==(s=g.nodeValue)&&void 0!==s?s:""));break;case 8:p=new r.Comment(null!==(c=g.nodeValue)&&void 0!==c?c:"");break;default:continue}var x=null!==(d=m[h-1])&&void 0!==d?d:null;x&&(x.next=p),p.parent=n,p.prev=x,p.next=null,m.push(p)}o&&((p=new r.ProcessingInstruction(o.substring(0,o.indexOf(" ")).toLowerCase(),o)).next=null!==(u=m[0])&&void 0!==u?u:null,p.parent=n,m.unshift(p),m[1]&&(m[1].prev=m[0]));return m};var r=n("./node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/index.js"),o=n("./node_modules/.pnpm/html-dom-parser@5.1.8/node_modules/html-dom-parser/lib/client/constants.js");function i(e){for(var t={},n=0,r=e.length;n<r;n++){var o=e[n];t[o.name]=o.value}return t}function a(e){var t=function(e){return o.CASE_SENSITIVE_TAG_NAMES_MAP[e]}(e=e.toLowerCase());return t||e}function l(e){return e.replace(o.CARRIAGE_RETURN_PLACEHOLDER_REGEX,o.CARRIAGE_RETURN)}},"./node_modules/.pnpm/html-react-parser@5.2.17_@types+react@18.3.31_react@18.3.1/node_modules/html-react-parser/lib/attributes-to-props.js"(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){void 0===e&&(e={});var n={},c=Boolean(e.type&&l[e.type]);for(var d in e){var u=e[d];if((0,r.isCustomAttribute)(d))n[d]=u;else{var p=d.toLowerCase(),m=s(p);if(m){var h=(0,r.getPropertyInfo)(m);switch(i.includes(m)&&a.includes(t)&&!c&&(m=s("default"+p)),n[m]=u,null==h?void 0:h.type){case r.BOOLEAN:n[m]=!0;break;case r.OVERLOADED_BOOLEAN:""===u&&(n[m]=!0)}}else o.PRESERVE_CUSTOM_ATTRIBUTES&&(n[d]=u)}}return(0,o.setStyleProp)(e.style,n),n};var r=n("./node_modules/.pnpm/react-property@2.0.2/node_modules/react-property/lib/index.js"),o=n("./node_modules/.pnpm/html-react-parser@5.2.17_@types+react@18.3.31_react@18.3.1/node_modules/html-react-parser/lib/utilities.js"),i=["checked","value"],a=["input","select","textarea"],l={reset:!0,submit:!0};function s(e){return r.possibleStandardNames[e]}},"./node_modules/.pnpm/html-react-parser@5.2.17_@types+react@18.3.31_react@18.3.1/node_modules/html-react-parser/lib/dom-to-react.js"(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){var r,o,c,d,u;void 0===n&&(n={});for(var p=[],m="function"==typeof n.replace,h=null!==(r=n.transform)&&void 0!==r?r:a.returnFirstArg,f=null!==(o=n.library)&&void 0!==o?o:l,g=f.cloneElement,b=f.createElement,x=f.isValidElement,k=t.length,y=0;y<k;y++){var w=t[y];if(m){var v=null===(c=n.replace)||void 0===c?void 0:c.call(n,w,y);if(x(v)){k>1&&(v=g(v,{key:null!==(d=v.key)&&void 0!==d?d:y})),p.push(h(v,w,y));continue}}if("text"!==w.type){var _=w,T={};s(_)?((0,a.setStyleProp)(_.attribs.style,_.attribs),T=_.attribs):_.attribs&&(T=(0,i.default)(_.attribs,_.name));var E=void 0;switch(w.type){case"script":case"style":w.children[0]&&(T.dangerouslySetInnerHTML={__html:w.children[0].data});break;case"tag":"textarea"===w.name&&w.children[0]?T.defaultValue=w.children[0].data:(null===(u=w.children)||void 0===u?void 0:u.length)&&(E=e(w.children,n));break;default:continue}k>1&&(T.key=y),p.push(h(b(w.name,T,E),w,y))}else{var S=!w.data.trim().length;if(S&&w.parent&&!(0,a.canTextBeChildOfNode)(w.parent))continue;if(n.trim&&S)continue;p.push(h(w.data,w,y))}}return 1===p.length?p[0]:p};var o=n("react"),i=r(n("./node_modules/.pnpm/html-react-parser@5.2.17_@types+react@18.3.31_react@18.3.1/node_modules/html-react-parser/lib/attributes-to-props.js")),a=n("./node_modules/.pnpm/html-react-parser@5.2.17_@types+react@18.3.31_react@18.3.1/node_modules/html-react-parser/lib/utilities.js"),l={cloneElement:o.cloneElement,createElement:o.createElement,isValidElement:o.isValidElement};function s(e){return a.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,a.isCustomComponent)(e.name,e.attribs)}},"./node_modules/.pnpm/html-react-parser@5.2.17_@types+react@18.3.31_react@18.3.1/node_modules/html-react-parser/lib/index.js"(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0,t.default=function(e,t){var n;if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];return(0,a.default)((0,o.default)(e,null!==(n=null==t?void 0:t.htmlparser2)&&void 0!==n?n:s),t)};var o=r(n("./node_modules/.pnpm/html-dom-parser@5.1.8/node_modules/html-dom-parser/lib/client/html-to-dom.js"));t.htmlToDOM=o.default;var i=r(n("./node_modules/.pnpm/html-react-parser@5.2.17_@types+react@18.3.31_react@18.3.1/node_modules/html-react-parser/lib/attributes-to-props.js"));t.attributesToProps=i.default;var a=r(n("./node_modules/.pnpm/html-react-parser@5.2.17_@types+react@18.3.31_react@18.3.1/node_modules/html-react-parser/lib/dom-to-react.js"));t.domToReact=a.default;var l=n("./node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/index.js");Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return l.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return l.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return l.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return l.Text}});var s={lowerCaseAttributeNames:!1}},"./node_modules/.pnpm/html-react-parser@5.2.17_@types+react@18.3.31_react@18.3.1/node_modules/html-react-parser/lib/utilities.js"(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=function(e,t){if(!e.includes("-"))return Boolean(t&&"string"==typeof t.is);if(a.has(e))return!1;return!0},t.setStyleProp=function(e,t){if("string"!=typeof e)return;if(!e.trim())return void(t.style={});try{t.style=(0,i.default)(e,l)}catch(e){t.style={}}};var o=n("react"),i=r(n("./node_modules/.pnpm/style-to-js@1.1.21/node_modules/style-to-js/cjs/index.js")),a=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);var l={reactCompat:!0};t.PRESERVE_CUSTOM_ATTRIBUTES=Number(o.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)};t.returnFirstArg=function(e){return e}},"./node_modules/.pnpm/inline-style-parser@0.2.7/node_modules/inline-style-parser/cjs/index.js"(e){"use strict";var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,s=/^\s+|\s+$/g,c="";function d(e){return e?e.replace(s,c):c}e.exports=function(e,s){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];s=s||{};var u=1,p=1;function m(e){var t=e.match(n);t&&(u+=t.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function h(){var e={line:u,column:p};return function(t){return t.position=new f(e),x(),t}}function f(e){this.start=e,this.end={line:u,column:p},this.source=s.source}function g(t){var n=new Error(s.source+":"+u+":"+p+": "+t);if(n.reason=t,n.filename=s.source,n.line=u,n.column=p,n.source=e,!s.silent)throw n}function b(t){var n=t.exec(e);if(n){var r=n[0];return m(r),e=e.slice(r.length),n}}function x(){b(r)}function k(e){var t;for(e=e||[];t=y();)!1!==t&&e.push(t);return e}function y(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(c===e.charAt((n+=2)-1))return g("End of comment missing");var r=e.slice(2,n-2);return p+=2,m(r),e=e.slice(n),p+=2,t({type:"comment",comment:r})}}function w(){var e=h(),n=b(o);if(n){if(y(),!b(i))return g("property missing ':'");var r=b(a),s=e({type:"declaration",property:d(n[0].replace(t,c)),value:r?d(r[0].replace(t,c)):c});return b(l),s}}return f.prototype.content=e,x(),function(){var e,t=[];for(k(t);e=w();)!1!==e&&(t.push(e),k(t));return t}()}},"./node_modules/.pnpm/react-property@2.0.2/node_modules/react-property/lib/index.js"(e,t,n){"use strict";function r(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}const o={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(e=>{o[e]=new r(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{o[e]=new r(e,1,!1,t,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(e=>{o[e]=new r(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{o[e]=new r(e,2,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(e=>{o[e]=new r(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(e=>{o[e]=new r(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(e=>{o[e]=new r(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(e=>{o[e]=new r(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(e=>{o[e]=new r(e,5,!1,e.toLowerCase(),null,!1,!1)});const i=/[\-\:]([a-z])/g,a=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(e=>{const t=e.replace(i,a);o[t]=new r(t,1,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e=>{const t=e.replace(i,a);o[t]=new r(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(e=>{const t=e.replace(i,a);o[t]=new r(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!1,!1)});o.xlinkHref=new r("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!0,!0)});const{CAMELCASE:l,SAME:s,possibleStandardNames:c}=n("./node_modules/.pnpm/react-property@2.0.2/node_modules/react-property/lib/possibleStandardNamesOptimized.js"),d=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),u=Object.keys(c).reduce((e,t)=>{const n=c[t];return n===s?e[t]=t:n===l?e[t.toLowerCase()]=t:e[t]=n,e},{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return o.hasOwnProperty(e)?o[e]:null},t.isCustomAttribute=d,t.possibleStandardNames=u},"./node_modules/.pnpm/react-property@2.0.2/node_modules/react-property/lib/possibleStandardNamesOptimized.js"(e,t){t.SAME=0;t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},"./node_modules/.pnpm/style-to-js@1.1.21/node_modules/style-to-js/cjs/index.js"(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n("./node_modules/.pnpm/style-to-object@1.0.14/node_modules/style-to-object/cjs/index.js")),o=n("./node_modules/.pnpm/style-to-js@1.1.21/node_modules/style-to-js/cjs/utilities.js");function i(e,t){var n={};return e&&"string"==typeof e?((0,r.default)(e,function(e,r){e&&r&&(n[(0,o.camelCase)(e,t)]=r)}),n):n}i.default=i,e.exports=i},"./node_modules/.pnpm/style-to-js@1.1.21/node_modules/style-to-js/cjs/utilities.js"(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,o=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,l=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||n.test(e)}(e)?e:(e=(e=e.toLowerCase()).replace(t.reactCompat?a:i,s)).replace(r,l)}},"./node_modules/.pnpm/style-to-object@1.0.14/node_modules/style-to-object/cjs/index.js"(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;const r=(0,o.default)(e),i="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;const{property:r,value:o}=e;i?t(r,o,e):o&&(n=n||{},n[r]=o)}),n};const o=r(n("./node_modules/.pnpm/inline-style-parser@0.2.7/node_modules/inline-style-parser/cjs/index.js"))},"./src/components/fragments/Markdown.tsx"(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>Br});var r=n("./node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs"),o=n("react"),i=n.n(o);function a(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var l={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function s(e){l=e}var c={exec:()=>null};function d(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let o="string"==typeof t?t:t.source;return o=o.replace(p.caret,"$1"),n=n.replace(e,o),r},getRegex:()=>new RegExp(n,t)};return r}var u=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),p={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,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ 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,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},m=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,h=/(?:[*+-]|\d{1,9}[.)])/,f=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,g=d(f).replace(/bull/g,h).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),b=d(f).replace(/bull/g,h).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),x=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,k=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,y=d(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",k).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),w=d(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,h).getRegex(),v="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",_=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,T=d("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",_).replace("tag",v).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),E=d(x).replace("hr",m).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",v).getRegex(),S={blockquote:d(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",E).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:y,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:m,html:T,lheading:g,list:w,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:E,table:c,text:/^[^\n]+/},A=d("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",m).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",v).getRegex(),C={...S,lheading:b,table:A,paragraph:d(x).replace("hr",m).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",A).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",v).getRegex()},R={...S,html:d("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",_).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:c,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:d(x).replace("hr",m).replace("heading"," *#{1,6} *[^\n]").replace("lheading",g).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},N=/^( {2,}|\\)\n(?!\s*$)/,I=/[\p{P}\p{S}]/u,O=/[\s\p{P}\p{S}]/u,L=/[^\s\p{P}\p{S}]/u,M=d(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,O).getRegex(),D=/(?!~)[\p{P}\p{S}]/u,P=d(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",u?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),z=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,j=d(z,"u").replace(/punct/g,I).getRegex(),$=d(z,"u").replace(/punct/g,D).getRegex(),F="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",B=d(F,"gu").replace(/notPunctSpace/g,L).replace(/punctSpace/g,O).replace(/punct/g,I).getRegex(),H=d(F,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,D).getRegex(),U=d("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,L).replace(/punctSpace/g,O).replace(/punct/g,I).getRegex(),G=d(/\\(punct)/,"gu").replace(/punct/g,I).getRegex(),W=d(/^<(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(),q=d(_).replace("(?:--\x3e|$)","--\x3e").getRegex(),X=d("^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",q).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),V=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Y=d(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",V).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Z=d(/^!?\[(label)\]\[(ref)\]/).replace("label",V).replace("ref",k).getRegex(),Q=d(/^!?\[(ref)\](?:\[\])?/).replace("ref",k).getRegex(),K=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,J={_backpedal:c,anyPunctuation:G,autolink:W,blockSkip:P,br:N,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:c,emStrongLDelim:j,emStrongRDelimAst:B,emStrongRDelimUnd:U,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:Y,nolink:Q,punctuation:M,reflink:Z,reflinkSearch:d("reflink|nolink(?!\\()","g").replace("reflink",Z).replace("nolink",Q).getRegex(),tag:X,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:c},ee={...J,link:d(/^!?\[(label)\]\((.*?)\)/).replace("label",V).getRegex(),reflink:d(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",V).getRegex()},te={...J,emStrongRDelimAst:H,emStrongLDelim:$,url:d(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",K).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:d(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",K).getRegex()},ne={...te,br:d(N).replace("{2,}","*").getRegex(),text:d(te.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},re={normal:S,gfm:C,pedantic:R},oe={normal:J,gfm:te,breaks:ne,pedantic:ee},ie={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ae=e=>ie[e];function le(e,t){if(t){if(p.escapeTest.test(e))return e.replace(p.escapeReplace,ae)}else if(p.escapeTestNoEncode.test(e))return e.replace(p.escapeReplaceNoEncode,ae);return e}function se(e){try{e=encodeURI(e).replace(p.percentDecode,"%")}catch{return null}return e}function ce(e,t){let n=e.replace(p.findPipe,(e,t,n)=>{let r=!1,o=t;for(;--o>=0&&"\\"===n[o];)r=!r;return r?"|":" |"}).split(p.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(p.slashPipe,"|");return n}function de(e,t,n){let r=e.length;if(0===r)return"";let o=0;for(;o<r;){let i=e.charAt(r-o-1);if(i!==t||n){if(i===t||!n)break;o++}else o++}return e.slice(0,r-o)}function ue(e,t,n,r,o){let i=t.href,a=t.title||null,l=e[1].replace(o.other.outputLinkReplace,"$1");r.state.inLink=!0;let s={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:i,title:a,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,s}var pe=class{options;rules;lexer;constructor(e){this.options=e||l}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:de(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let o=r[1];return t.split("\n").map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=o.length?e.slice(o.length):e}).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=de(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:de(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=de(t[0],"\n").split("\n"),n="",r="",o=[];for(;e.length>0;){let t,i=!1,a=[];for(t=0;t<e.length;t++)if(this.rules.other.blockquoteStart.test(e[t]))a.push(e[t]),i=!0;else{if(i)break;a.push(e[t])}e=e.slice(t);let l=a.join("\n"),s=l.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}\n${l}`:l,r=r?`${r}\n${s}`:s;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(s,o,!0),this.lexer.state.top=c,0===e.length)break;let d=o.at(-1);if("code"===d?.type)break;if("blockquote"===d?.type){let t=d,i=t.raw+"\n"+e.join("\n"),a=this.blockquote(i);o[o.length-1]=a,n=n.substring(0,n.length-t.raw.length)+a.raw,r=r.substring(0,r.length-t.text.length)+a.text;break}if("list"===d?.type){let t=d,i=t.raw+"\n"+e.join("\n"),a=this.list(i);o[o.length-1]=a,n=n.substring(0,n.length-d.raw.length)+a.raw,r=r.substring(0,r.length-t.raw.length)+a.raw,e=i.substring(o.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:n,tokens:o,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,o={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let i=this.rules.other.listItemRegex(n),a=!1;for(;e;){let n=!1,r="",l="";if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let s=t[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),c=e.split("\n",1)[0],d=!s.trim(),u=0;if(this.options.pedantic?(u=2,l=s.trimStart()):d?u=t[1].length+1:(u=t[2].search(this.rules.other.nonSpaceChar),u=u>4?1:u,l=s.slice(u),u+=t[1].length),d&&this.rules.other.blankLine.test(c)&&(r+=c+"\n",e=e.substring(c.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(u),n=this.rules.other.hrRegex(u),o=this.rules.other.fencesBeginRegex(u),i=this.rules.other.headingBeginRegex(u),a=this.rules.other.htmlBeginRegex(u);for(;e;){let p,m=e.split("\n",1)[0];if(c=m,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),p=c):p=c.replace(this.rules.other.tabCharGlobal," "),o.test(c)||i.test(c)||a.test(c)||t.test(c)||n.test(c))break;if(p.search(this.rules.other.nonSpaceChar)>=u||!c.trim())l+="\n"+p.slice(u);else{if(d||s.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||o.test(s)||i.test(s)||n.test(s))break;l+="\n"+c}!d&&!c.trim()&&(d=!0),r+=m+"\n",e=e.substring(m.length+1),s=p.slice(u)}}o.loose||(a?o.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(a=!0));let p,m=null;this.options.gfm&&(m=this.rules.other.listIsTask.exec(l),m&&(p="[ ] "!==m[0],l=l.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:r,task:!!m,checked:p,loose:!1,text:l,tokens:[]}),o.raw+=r}let l=o.items.at(-1);if(!l)return;l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd(),o.raw=o.raw.trimEnd();for(let e=0;e<o.items.length;e++)if(this.lexer.state.top=!1,o.items[e].tokens=this.lexer.blockTokens(o.items[e].text,[]),!o.loose){let t=o.items[e].tokens.filter(e=>"space"===e.type),n=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));o.loose=n}if(o.loose)for(let e=0;e<o.items.length;e++)o.items[e].loose=!0;return o}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=ce(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?i.align.push("right"):this.rules.other.tableAlignCenter.test(e)?i.align.push("center"):this.rules.other.tableAlignLeft.test(e)?i.align.push("left"):i.align.push(null);for(let e=0;e<n.length;e++)i.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:i.align[e]});for(let e of o)i.rows.push(ce(e,i.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:i.align[t]})));return i}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=de(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let n=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),ue(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return ue(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!r[1]&&!r[2]||!n||this.rules.inline.punctuation.exec(n))){let n,o,i=[...r[0]].length-1,a=i,l=0,s="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(s.lastIndex=0,t=t.slice(-1*e.length+i);null!=(r=s.exec(t));){if(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!n)continue;if(o=[...n].length,r[3]||r[4]){a+=o;continue}if((r[5]||r[6])&&i%3&&!((i+o)%3)){l+=o;continue}if(a-=o,a>0)continue;o=Math.min(o,o+a+l);let t=[...r[0]][0].length,s=e.slice(0,i+r.index+t+o);if(Math.min(i,o)%2){let e=s.slice(1,-1);return{type:"em",raw:s,text:e,tokens:this.lexer.inlineTokens(e)}}let c=s.slice(2,-2);return{type:"strong",raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=t[1],n="mailto:"+e):(e=t[1],n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])e=t[0],n="mailto:"+e;else{let r;do{r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(r!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){return{type:"text",raw:t[0],text:t[0],escaped:this.lexer.state.inRawBlock}}}},me=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||l,this.options.tokenizer=this.options.tokenizer||new pe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:p,block:re.normal,inline:oe.normal};this.options.pedantic?(t.block=re.pedantic,t.inline=oe.pedantic):this.options.gfm&&(t.block=re.gfm,t.inline=this.options.breaks?oe.breaks:oe.gfm),this.tokenizer.rules=t}static get rules(){return{block:re,inline:oe}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(p.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(p.tabCharGlobal," ").replace(p.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);1===r.raw.length&&void 0!==n?n.raw+="\n":t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}let o=e;if(this.options.extensions?.startBlock){let t,n=1/0,r=e.slice(1);this.options.extensions.startBlock.forEach(e=>{t=e.call({lexer:this},r),"number"==typeof t&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(o=e.substring(0,n+1))}if(this.state.top&&(r=this.tokenizer.paragraph(o))){let i=t.at(-1);n&&"paragraph"===i?.type?(i.raw+=(i.raw.endsWith("\n")?"":"\n")+r.raw,i.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):t.push(r),n=o.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,r=e,o=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(r));)e.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.anyPunctuation.exec(r));)r=r.slice(0,o.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(r));)n=o[2]?o[2].length:0,r=r.slice(0,o.index+n)+"["+"a".repeat(o[0].length-n-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let i=!1,a="";for(;e;){let n;if(i||(a=""),i=!1,this.options.extensions?.inline?.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))continue;if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length);let r=t.at(-1);"text"===n.type&&"text"===r?.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,r,a)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}let o=e;if(this.options.extensions?.startInline){let t,n=1/0,r=e.slice(1);this.options.extensions.startInline.forEach(e=>{t=e.call({lexer:this},r),"number"==typeof t&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(o=e.substring(0,n+1))}if(n=this.tokenizer.inlineText(o)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(a=n.raw.slice(-1)),i=!0;let r=t.at(-1);"text"===r?.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return t}},he=class{options;parser;constructor(e){this.options=e||l}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(p.notSpaceStart)?.[0],o=e.replace(p.endingNewline,"")+"\n";return r?'<pre><code class="language-'+le(r)+'">'+(n?o:le(o,!0))+"</code></pre>\n":"<pre><code>"+(n?o:le(o,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t<e.items.length;t++){r+=this.listitem(e.items[t])}let o=t?"ol":"ul";return"<"+o+(t&&1!==n?' start="'+n+'"':"")+">\n"+r+"</"+o+">\n"}listitem(e){let t="";if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?"paragraph"===e.tokens[0]?.type?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=n+" "+le(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let o=e.rows[t];n="";for(let e=0;e<o.length;e++)n+=this.tablecell(o[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+r+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${le(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),o=se(e);if(null===o)return r;let i='<a href="'+(e=o)+'"';return t&&(i+=' title="'+le(t)+'"'),i+=">"+r+"</a>",i}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let o=se(e);if(null===o)return le(n);let i=`<img src="${e=o}" alt="${n}"`;return t&&(i+=` title="${le(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:le(e.text)}},fe=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},ge=class e{options;renderer;textRenderer;constructor(e){this.options=e||l,this.options.renderer=this.options.renderer||new he,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new fe}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n="";for(let r=0;r<e.length;r++){let o=e[r];if(this.options.extensions?.renderers?.[o.type]){let e=o,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(e.type)){n+=t||"";continue}}let i=o;switch(i.type){case"space":n+=this.renderer.space(i);continue;case"hr":n+=this.renderer.hr(i);continue;case"heading":n+=this.renderer.heading(i);continue;case"code":n+=this.renderer.code(i);continue;case"table":n+=this.renderer.table(i);continue;case"blockquote":n+=this.renderer.blockquote(i);continue;case"list":n+=this.renderer.list(i);continue;case"html":n+=this.renderer.html(i);continue;case"def":n+=this.renderer.def(i);continue;case"paragraph":n+=this.renderer.paragraph(i);continue;case"text":{let o=i,a=this.renderer.text(o);for(;r+1<e.length&&"text"===e[r+1].type;)o=e[++r],a+="\n"+this.renderer.text(o);n+=t?this.renderer.paragraph({type:"paragraph",raw:a,text:a,tokens:[{type:"text",raw:a,text:a,escaped:!0}]}):a;continue}default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}parseInline(e,t=this.renderer){let n="";for(let r=0;r<e.length;r++){let o=e[r];if(this.options.extensions?.renderers?.[o.type]){let e=this.options.extensions.renderers[o.type].call({parser:this},o);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){n+=e||"";continue}}let i=o;switch(i.type){case"escape":case"text":n+=t.text(i);break;case"html":n+=t.html(i);break;case"link":n+=t.link(i);break;case"image":n+=t.image(i);break;case"strong":n+=t.strong(i);break;case"em":n+=t.em(i);break;case"codespan":n+=t.codespan(i);break;case"br":n+=t.br(i);break;case"del":n+=t.del(i);break;default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}},be=class{options;block;constructor(e){this.options=e||l}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?me.lex:me.lexInline}provideParser(){return this.block?ge.parse:ge.parseInline}},xe=class{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ge;Renderer=he;TextRenderer=fe;Lexer=me;Tokenizer=pe;Hooks=be;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case"list":n=n.concat(this.walkTokens(r.items,t));break;default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let o=e[r].flat(1/0);n=n.concat(this.walkTokens(o,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new he(this.defaults);for(let n in e.renderer){if(!(n in t))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=e.renderer[n],o=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=o.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new pe(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=e.tokenizer[n],o=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=o.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new be;for(let n in e.hooks){if(!(n in t))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=n,o=e.hooks[r],i=t[r];t[r]=be.passThroughHooks.has(n)?e=>{if(this.defaults.async&&be.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await o.call(t,e);return i.call(t,n)})();let r=o.call(t,e);return i.call(t,r)}:(...e)=>{if(this.defaults.async)return(async()=>{let n=await o.apply(t,e);return!1===n&&(n=await i.apply(t,e)),n})();let n=o.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return me.lex(e,t??this.defaults)}parser(e,t){return ge.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},o={...this.defaults,...r},i=this.onError(!!o.silent,!!o.async);if(!0===this.defaults.async&&!1===r.async)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return i(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=e),o.async)return(async()=>{let n=o.hooks?await o.hooks.preprocess(t):t,r=await(o.hooks?await o.hooks.provideLexer():e?me.lex:me.lexInline)(n,o),i=o.hooks?await o.hooks.processAllTokens(r):r;o.walkTokens&&await Promise.all(this.walkTokens(i,o.walkTokens));let a=await(o.hooks?await o.hooks.provideParser():e?ge.parse:ge.parseInline)(i,o);return o.hooks?await o.hooks.postprocess(a):a})().catch(i);try{o.hooks&&(t=o.hooks.preprocess(t));let n=(o.hooks?o.hooks.provideLexer():e?me.lex:me.lexInline)(t,o);o.hooks&&(n=o.hooks.processAllTokens(n)),o.walkTokens&&this.walkTokens(n,o.walkTokens);let r=(o.hooks?o.hooks.provideParser():e?ge.parse:ge.parseInline)(n,o);return o.hooks&&(r=o.hooks.postprocess(r)),r}catch(e){return i(e)}}}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+le(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},ke=new xe;function ye(e,t){return ke.parse(e,t)}ye.options=ye.setOptions=function(e){return ke.setOptions(e),s(ye.defaults=ke.defaults),ye},ye.getDefaults=a,ye.defaults=l,ye.use=function(...e){return ke.use(...e),s(ye.defaults=ke.defaults),ye},ye.walkTokens=function(e,t){return ke.walkTokens(e,t)},ye.parseInline=ke.parseInline,ye.Parser=ge,ye.parser=ge.parse,ye.Renderer=he,ye.TextRenderer=fe,ye.Lexer=me,ye.lexer=me.lex,ye.Tokenizer=pe,ye.Hooks=be,ye.parse=ye;const we={escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeTest:/[&<>"'/]/,notSpaceStart:/^\S*/,endingNewline:/\n$/,escapeReplace:/[&<>"'/]/g,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,completeFencedCode:/^ {0,3}(`{3,}|~{3,})([\s\S]*?)\n {0,3}\1[ \n\t]*$/},ve={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},_e=e=>ve[e];function Te(e,t){if(t){if(we.escapeTest.test(e))return e.replace(we.escapeReplace,_e)}else if(we.escapeTestNoEncode.test(e))return e.replace(we.escapeReplaceNoEncode,_e);return e}const Ee=Symbol("tailMarker"),Se=/\uE000X_MD_NL_\d+\uE001/g;const Ae=class{options;markdownInstance;injectTail=!1;constructor(e={}){this.options=e,this.markdownInstance=new xe,this.configureLinkRenderer(),this.configureParagraphRenderer(),this.configureCodeRenderer(),this.configureHtmlEscapeRenderer(),this.configureTailInjection(),this.markdownInstance.use(e.markedConfig||{})}configureHtmlEscapeRenderer(){this.options.escapeRawHtml&&this.markdownInstance.use({renderer:{html(e){const{raw:t="",text:n=""}=e;return Te(t||n,!0)}}})}configureLinkRenderer(){this.options.openLinksInNewTab&&this.markdownInstance.use({renderer:{link({href:e,title:t,tokens:n}){return`<a href="${e}"${t?` title="${t}"`:""} target="_blank" rel="noopener noreferrer">${this.parser.parseInline(n)}</a>`}}})}configureParagraphRenderer(){const{paragraphTag:e}=this.options;e&&this.markdownInstance.use({renderer:{paragraph({tokens:t}){return`<${e}>${this.parser.parseInline(t)}</${e}>\n`}}})}configureCodeRenderer(){this.markdownInstance.use({renderer:{code({text:e,raw:t,lang:n,escaped:r,codeBlockStyle:o}){const i=(n||"").trim(),a=i.match(we.notSpaceStart)?.[0],l=`${e.replace(we.endingNewline,"")}\n`,s="indented"===o||we.completeFencedCode.test(t)?"done":"loading",c=r?l:Te(l,!0),d=a?` class="language-${Te(a)}"`:"";return`<pre><code${` data-block="true" data-state="${s}"`+(i?` data-lang="${Te(i)}"`:"")}${d}>${c}</code></pre>\n`}}})}configureTailInjection(){const e=this;this.markdownInstance.use({hooks:{processAllTokens(t){if(!e.injectTail)return t;const n=e.findLastTextToken(t);return n&&(n[Ee]=!0),t}},renderer:{text(e){const t="tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"text"in e?e.text:"";return e[Ee]?`${t}<xmd-tail></xmd-tail>`:t}}})}protectCustomTags(e,t){const n=new Map,r=Object.keys(this.options.components||{});if(0===r.length)return{protected:e,placeholders:n};let o=0;const i=e=>e.replace(/\n/g,()=>{const e=`X_MD_NL_${o++}`;return n.set(e,"\n"),e}),a=r.map(e=>e.toLowerCase().replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),l=new RegExp(`<(${a})(?:\\s[^>]*)?>`,"gi"),s=new RegExp(`</(${a})>`,"gi"),c=[];let d=l.exec(e);for(;null!==d;)c.push({index:d.index,type:"open",tagName:d[1].toLowerCase(),match:d[0]}),d=l.exec(e);for(s.lastIndex=0,d=s.exec(e);null!==d;)c.push({index:d.index,type:"close",tagName:d[1].toLowerCase(),match:d[0]}),d=s.exec(e);c.sort((e,t)=>e.index-t.index);const u=[],p=[];let m=0;for(const n of c)if("open"===n.type)n.match.endsWith("/>")||u.push({tagName:n.tagName,start:n.index,openTag:n.match});else if("close"===n.type&&u.length>0&&u[u.length-1].tagName===n.tagName){const r=u.pop();if(0===u.length){const o=r.start,a=n.index+n.match.length,l=r.openTag,s=n.match,c=e.slice(o+l.length,n.index);if(m<o&&p.push(e.slice(m,o)),t&&c.includes("\n")){const e=i(c);p.push(l+e+s)}else if(c.includes("\n\n")){const e=c.replace(/\n{2,}/g,e=>i(e));p.push(l+e+s)}else p.push(l+c+s);m=a}}return m<e.length&&p.push(e.slice(m)),{protected:p.join(""),placeholders:n}}restorePlaceholders(e,t){return 0===t.size?e:e.replace(Se,e=>t.get(e)??e)}findLastNonEmptyToken(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if("list"===n.type&&"items"in n&&Array.isArray(n.items))for(let e=n.items.length-1;e>=0;e--){const t=n.items[e];if("tokens"in t&&t.tokens&&t.tokens.length>0){const e=this.findLastNonEmptyToken(t.tokens);if(e)return e}}if("tokens"in n&&n.tokens&&n.tokens.length>0){const e=this.findLastNonEmptyToken(n.tokens);if(e)return e}if("text"===n.type){if(("text"in n?n.text:"").trim())return n}else if("html"===n.type||"tag"===n.type)return n}return null}findLastTextToken(e){const t=this.findLastNonEmptyToken(e);return"text"!==t?.type?null:t}parse(e,t){if(this.injectTail=t?.injectTail??!1,this.options.protectCustomTagNewlines||this.options.disableCustomTagBlockMarkdown){const{protected:t,placeholders:n}=this.protectCustomTags(e,!!this.options.disableCustomTagBlockMarkdown),r=this.markdownInstance.parse(t);return this.restorePlaceholders(r,n)}return this.markdownInstance.parse(e)}};function Ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Re(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ce(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ce(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const Ne=Object.entries,Ie=Object.setPrototypeOf,Oe=Object.isFrozen,Le=Object.getPrototypeOf,Me=Object.getOwnPropertyDescriptor;let De=Object.freeze,Pe=Object.seal,ze=Object.create,je="undefined"!=typeof Reflect&&Reflect,$e=je.apply,Fe=je.construct;De||(De=function(e){return e}),Pe||(Pe=function(e){return e}),$e||($e=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)}),Fe||(Fe=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const Be=st(Array.prototype.forEach),He=st(Array.prototype.lastIndexOf),Ue=st(Array.prototype.pop),Ge=st(Array.prototype.push),We=st(Array.prototype.splice),qe=Array.isArray,Xe=st(String.prototype.toLowerCase),Ve=st(String.prototype.toString),Ye=st(String.prototype.match),Ze=st(String.prototype.replace),Qe=st(String.prototype.indexOf),Ke=st(String.prototype.trim),Je=st(Number.prototype.toString),et=st(Boolean.prototype.toString),tt="undefined"==typeof BigInt?null:st(BigInt.prototype.toString),nt="undefined"==typeof Symbol?null:st(Symbol.prototype.toString),rt=st(Object.prototype.hasOwnProperty),ot=st(Object.prototype.toString),it=st(RegExp.prototype.test),at=(lt=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Fe(lt,t)});var lt;function st(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return $e(e,t,r)}}function ct(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Xe;if(Ie&&Ie(e,null),!qe(t))return e;let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(Oe(t)||(t[r]=e),o=e)}e[o]=!0}return e}function dt(e){for(let t=0;t<e.length;t++){rt(e,t)||(e[t]=null)}return e}function ut(e){const t=ze(null);for(const r of Ne(e)){var n=Re(r,2);const o=n[0],i=n[1];rt(e,o)&&(t[o]=qe(i)?dt(i):i&&"object"==typeof i&&i.constructor===Object?ut(i):i)}return t}function pt(e,t){for(;null!==e;){const n=Me(e,t);if(n){if(n.get)return st(n.get);if("function"==typeof n.value)return st(n.value)}e=Le(e)}return function(){return null}}const mt=De(["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"]),ht=De(["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"]),ft=De(["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"]),gt=De(["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"]),bt=De(["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"]),xt=De(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),kt=De(["#text"]),yt=De(["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"]),wt=De(["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","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","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"]),vt=De(["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"]),_t=De(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Tt=Pe(/{{[\w\W]*|^[\w\W]*}}/g),Et=Pe(/<%[\w\W]*|^[\w\W]*%>/g),St=Pe(/\${[\w\W]*/g),At=Pe(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ct=Pe(/^aria-[\-\w]+$/),Rt=Pe(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Nt=Pe(/^(?:\w+script|data):/i),It=Pe(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ot=Pe(/^html$/i),Lt=Pe(/^[a-z][.\w]*(-[.\w]+)+$/i),Mt=Pe(/<[/\w!]/g),Dt=Pe(/<[/\w]/g),Pt=Pe(/<\/no(script|embed|frames)/i),zt=Pe(/\/>/i),jt=1,$t=3,Ft=7,Bt=8,Ht=9,Ut=11,Gt=function(){return"undefined"==typeof window?null:window},Wt=function(e,t,n,r){return rt(e,t)&&qe(e[t])?ct(r.base?ut(r.base):{},e[t],r.transform):n};var qt=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gt();const n=t=>e(t);if(n.version="3.4.13",n.removed=[],!t||!t.document||t.document.nodeType!==Ht||!t.Element)return n.isSupported=!1,n;let r=t.document;const o=r,i=o.currentScript,a=t.HTMLTemplateElement,l=t.Node,s=t.NodeFilter,c=t.DOMParser,d=t.trustedTypes,u=t.Element.prototype,p=pt(u,"cloneNode"),m=pt(u,"remove"),h=pt(u,"nextSibling"),f=pt(u,"childNodes"),g=pt(u,"parentNode"),b=pt(u,"shadowRoot"),x=pt(u,"attributes"),k=l&&l.prototype?pt(l.prototype,"nodeType"):null,y=l&&l.prototype?pt(l.prototype,"nodeName"):null,w=l&&l.prototype?pt(l.prototype,"ownerDocument"):null;if("function"==typeof a){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let v,_,T="",E=!1,S=0;const A=function(){if(S>0)throw at('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.')},C=function(e){A(),S++;try{return v.createHTML(e)}finally{S--}},R=function(){return E||(_=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(d,i),E=!0),_},N=r.implementation,I=r.createNodeIterator,O=r.createDocumentFragment,L=r.getElementsByTagName,M=o.importNode;let D={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof Ne&&"function"==typeof g&&N&&void 0!==N.createHTMLDocument;const P=Tt,z=Et,j=St,$=At,F=Ct,B=Nt,H=It,U=Lt;let G=Rt,W=null;const q=ct({},[...mt,...ht,...ft,...bt,...kt]);let X=null;const V=ct({},[...yt,...wt,...vt,..._t]);let Y=Object.seal(ze(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Z=null,Q=null;const K=Object.seal(ze(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let J=!0,ee=!0,te=!1,ne=!0,re=!1,oe=!0,ie=!1,ae=!1,le=null,se=null,ce=!1,de=!1,ue=!1,pe=!1,me=!0,he=!1;const fe="user-content-";let ge=!0,be=!1,xe={},ke=null;const ye=ct({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let we=null;const ve=ct({},["audio","video","img","source","image","track"]);let _e=null;const Te=ct({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ee="http://www.w3.org/1998/Math/MathML",Se="http://www.w3.org/2000/svg",Ae="http://www.w3.org/1999/xhtml";let Ce=Ae,Re=!1,Ie=null;const Oe=ct({},[Ee,Se,Ae],Ve),Le=De(["mi","mo","mn","ms","mtext"]);let Me=ct({},Le);const je=De(["annotation-xml"]);let $e=ct({},je);const Fe=ct({},["title","style","font","a","script"]);let lt=null;const st=["application/xhtml+xml","text/html"];let dt=null,qt=null;const Xt=r.createElement("form"),Vt=function(e){return e instanceof RegExp||e instanceof Function},Yt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(qt&&qt===e)return;e&&"object"==typeof e||(e={}),e=ut(e),lt=-1===st.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,dt="application/xhtml+xml"===lt?Ve:Xe,W=Wt(e,"ALLOWED_TAGS",q,{transform:dt}),X=Wt(e,"ALLOWED_ATTR",V,{transform:dt}),Ie=Wt(e,"ALLOWED_NAMESPACES",Oe,{transform:Ve}),_e=Wt(e,"ADD_URI_SAFE_ATTR",Te,{transform:dt,base:Te}),we=Wt(e,"ADD_DATA_URI_TAGS",ve,{transform:dt,base:ve}),ke=Wt(e,"FORBID_CONTENTS",ye,{transform:dt}),Z=Wt(e,"FORBID_TAGS",ut({}),{transform:dt}),Q=Wt(e,"FORBID_ATTR",ut({}),{transform:dt}),xe=!!rt(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?ut(e.USE_PROFILES):e.USE_PROFILES),J=!1!==e.ALLOW_ARIA_ATTR,ee=!1!==e.ALLOW_DATA_ATTR,te=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ne=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,re=e.SAFE_FOR_TEMPLATES||!1,oe=!1!==e.SAFE_FOR_XML,ie=e.WHOLE_DOCUMENT||!1,de=e.RETURN_DOM||!1,ue=e.RETURN_DOM_FRAGMENT||!1,pe=e.RETURN_TRUSTED_TYPE||!1,ce=e.FORCE_BODY||!1,me=!1!==e.SANITIZE_DOM,he=e.SANITIZE_NAMED_PROPS||!1,ge=!1!==e.KEEP_CONTENT,be=e.IN_PLACE||!1,G=function(e){try{return it(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Rt,Ce="string"==typeof e.NAMESPACE?e.NAMESPACE:Ae,Me=rt(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?ut(e.MATHML_TEXT_INTEGRATION_POINTS):ct({},Le),$e=rt(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?ut(e.HTML_INTEGRATION_POINTS):ct({},je);const t=rt(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?ut(e.CUSTOM_ELEMENT_HANDLING):ze(null);if(Y=ze(null),rt(t,"tagNameCheck")&&Vt(t.tagNameCheck)&&(Y.tagNameCheck=t.tagNameCheck),rt(t,"attributeNameCheck")&&Vt(t.attributeNameCheck)&&(Y.attributeNameCheck=t.attributeNameCheck),rt(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(Y.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),Pe(Y),re&&(ee=!1),ue&&(de=!0),xe&&(W=ct({},kt),X=ze(null),!0===xe.html&&(ct(W,mt),ct(X,yt)),!0===xe.svg&&(ct(W,ht),ct(X,wt),ct(X,_t)),!0===xe.svgFilters&&(ct(W,ft),ct(X,wt),ct(X,_t)),!0===xe.mathMl&&(ct(W,bt),ct(X,vt),ct(X,_t))),K.tagCheck=null,K.attributeCheck=null,rt(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?K.tagCheck=e.ADD_TAGS:qe(e.ADD_TAGS)&&(W===q&&(W=ut(W)),ct(W,e.ADD_TAGS,dt))),rt(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?K.attributeCheck=e.ADD_ATTR:qe(e.ADD_ATTR)&&(X===V&&(X=ut(X)),ct(X,e.ADD_ATTR,dt))),rt(e,"ADD_URI_SAFE_ATTR")&&qe(e.ADD_URI_SAFE_ATTR)&&ct(_e,e.ADD_URI_SAFE_ATTR,dt),rt(e,"FORBID_CONTENTS")&&qe(e.FORBID_CONTENTS)&&(ke===ye&&(ke=ut(ke)),ct(ke,e.FORBID_CONTENTS,dt)),rt(e,"ADD_FORBID_CONTENTS")&&qe(e.ADD_FORBID_CONTENTS)&&(ke===ye&&(ke=ut(ke)),ct(ke,e.ADD_FORBID_CONTENTS,dt)),ge&&(W["#text"]=!0),ie&&ct(W,["html","head","body"]),W.table&&(ct(W,["tbody"]),delete Z.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw at('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw at('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=v;v=e.TRUSTED_TYPES_POLICY;try{T=C("")}catch(e){throw v=t,e}}else null===e.TRUSTED_TYPES_POLICY?(v=void 0,T=""):(void 0===v&&(v=R()),v&&"string"==typeof T&&(T=C("")));De&&De(e),qt=e},Zt=ct({},[...ht,...ft,...gt]),Qt=ct({},[...bt,...xt]),Kt=function(e){let t=g(e);t&&t.tagName||(t={namespaceURI:Ce,tagName:"template"});const n=Xe(e.tagName),r=Xe(t.tagName);return!!Ie[e.namespaceURI]&&(e.namespaceURI===Se?function(e,t,n){return t.namespaceURI===Ae?"svg"===e:t.namespaceURI===Ee?"svg"===e&&("annotation-xml"===n||Me[n]):Boolean(Zt[e])}(n,t,r):e.namespaceURI===Ee?function(e,t,n){return t.namespaceURI===Ae?"math"===e:t.namespaceURI===Se?"math"===e&&$e[n]:Boolean(Qt[e])}(n,t,r):e.namespaceURI===Ae?function(e,t,n){return!(t.namespaceURI===Se&&!$e[n])&&!(t.namespaceURI===Ee&&!Me[n])&&!Qt[e]&&(Fe[e]||!Zt[e])}(n,t,r):!("application/xhtml+xml"!==lt||!Ie[e.namespaceURI]))},Jt=function(e){Ge(n.removed,{element:e});try{g(e).removeChild(e)}catch(t){if(m(e),!g(e))throw at("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},en=function(e){rn(e);const t=f(e);if(t){const e=[];Be(t,t=>{Ge(e,t)}),Be(e,e=>{try{m(e)}catch(e){}})}const n=x(e);if(n)for(let t=n.length-1;t>=0;--t){const r=n[t],o=r&&r.name;if("string"==typeof o)try{e.removeAttribute(o)}catch(e){}}},tn=function(e,t){try{Ge(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Ge(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(de||ue)try{Jt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},nn=function(e){const t=x(e);if(t)for(let n=t.length-1;n>=0;--n){const r=t[n],o=r&&r.name;if("string"==typeof o&&!X[dt(o)])try{e.removeAttribute(o)}catch(e){}}},rn=function(e){const t=[e];for(;t.length>0;){const e=t.pop();(k?k(e):e.nodeType)===jt&&nn(e);const n=f(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},on=function(e){let t=null,n=null;if(ce)e="<remove></remove>"+e;else{const t=Ye(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===lt&&Ce===Ae&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=v?C(e):e;if(Ce===Ae)try{t=(new c).parseFromString(o,lt)}catch(e){}if(!t||!t.documentElement){t=N.createDocument(Ce,"template",null);try{t.documentElement.innerHTML=Re?T:o}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),Ce===Ae?L.call(t,ie?"html":"body")[0]:ie?t.documentElement:i},an=function(e){const t=w?w(e):e.ownerDocument;return I.call(t||e,e,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT|s.SHOW_PROCESSING_INSTRUCTION|s.SHOW_CDATA_SECTION,null)},ln=function(e){return e=Ze(e,P," "),e=Ze(e,z," "),e=Ze(e,j," ")},sn=function(e){var t;e.normalize();const n=w?w(e):e.ownerDocument,r=I.call(n||e,e,s.SHOW_TEXT|s.SHOW_COMMENT|s.SHOW_CDATA_SECTION|s.SHOW_PROCESSING_INSTRUCTION,null);let o=r.nextNode();for(;o;)o.data=ln(o.data),o=r.nextNode();const i=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");i&&Be(i,e=>{dn(e.content)&&sn(e.content)})},cn=function(e){const t=y?y(e):null;return"string"==typeof t&&("form"===dt(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==x(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==k(e)||e.childNodes!==f(e)))},dn=function(e){if(!k||"object"!=typeof e||null===e)return!1;try{return k(e)===Ut}catch(e){return!1}},un=function(e){if(!k||"object"!=typeof e||null===e)return!1;try{return"number"==typeof k(e)}catch(e){return!1}};function pn(e,t,r){0!==e.length&&Be(e,e=>{e.call(n,t,r,qt)})}const mn=function(e,t,n,r){return 0===e.length?t:t===n||t===r?ut(t):t},hn=function(e,t){if(pn(D.beforeSanitizeElements,e,null),e!==t&&null===g(e))return be&&rn(e),!0;if(cn(e))return Jt(e),!0;const r=dt(y?y(e):e.nodeName);if(W=mn(D.uponSanitizeElement,W,q,le),pn(D.uponSanitizeElement,e,{tagName:r,allowedTags:W}),e!==t&&null===g(e))return be&&rn(e),!0;if(function(e,t){return!!(oe&&e.hasChildNodes()&&!un(e.firstElementChild)&&it(Mt,e.textContent)&&it(Mt,e.innerHTML))||!(!oe||e.namespaceURI!==Ae||"style"!==t||!un(e.firstElementChild))||e.nodeType===Ft||!(!oe||e.nodeType!==Bt||!it(Dt,e.data))}(e,r))return Jt(e),!0;if(Z[r]||!(K.tagCheck instanceof Function&&K.tagCheck(r))&&!W[r]){const n=function(e,t,n){if(!Z[t]&&bn(t)){if(Y.tagNameCheck instanceof RegExp&&it(Y.tagNameCheck,t))return!1;if(Y.tagNameCheck instanceof Function&&Y.tagNameCheck(t))return!1}if(ge&&!ke[t]){const t=g(e),r=f(e);if(r&&t)for(let o=r.length-1;o>=0;--o){const i=e===n?p(r[o],!0):r[o];t.insertBefore(i,h(e))}}return Jt(e),!0}(e,r,t);return!1===n&&pn(D.afterSanitizeElements,e,null),n}if((k?k(e):e.nodeType)===jt&&!Kt(e))return Jt(e),!0;if(("noscript"===r||"noembed"===r||"noframes"===r)&&it(Pt,e.innerHTML))return Jt(e),!0;if(re&&e.nodeType===$t){const t=ln(e.textContent);e.textContent!==t&&(Ge(n.removed,{element:e.cloneNode()}),e.textContent=t)}return pn(D.afterSanitizeElements,e,null),!1},fn=function(e,t,n){if(Q[t])return!1;if(oe&&"patchsrc"===t)return!1;if(oe&&"for"===t&&"label"!==e&&"output"!==e)return!1;if(me&&("id"===t||"name"===t)&&(n in r||n in Xt))return!1;const o=X[t]||K.attributeCheck instanceof Function&&K.attributeCheck(t,e);if(ee&&it($,t));else if(J&&it(F,t));else if(o)if(_e[t]);else if(it(G,Ze(n,H,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Qe(n,"data:")||!we[e]){if(te&&!it(B,Ze(n,H,"")));else if(n)return!1}else;else if(!(bn(e)&&(Y.tagNameCheck instanceof RegExp&&it(Y.tagNameCheck,e)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(e))&&(Y.attributeNameCheck instanceof RegExp&&it(Y.attributeNameCheck,t)||Y.attributeNameCheck instanceof Function&&Y.attributeNameCheck(t,e))||"is"===t&&Y.allowCustomizedBuiltInElements&&(Y.tagNameCheck instanceof RegExp&&it(Y.tagNameCheck,n)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(n))))return!1;return!0},gn=ct({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),bn=function(e){return!gn[Xe(e)]&&it(U,e)},xn=function(e,t,n,r){if(v&&"object"==typeof d&&"function"==typeof d.getAttributeType&&!n)switch(d.getAttributeType(e,t)){case"TrustedHTML":return C(r);case"TrustedScriptURL":return function(e){A(),S++;try{return v.createScriptURL(e)}finally{S--}}(r)}return r},kn=function(e,t,r,o){try{r?e.setAttributeNS(r,t,o):e.setAttribute(t,o),cn(e)?Jt(e):Ue(n.removed)}catch(n){tn(t,e)}},yn=function(e){pn(D.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||cn(e))return;X=mn(D.uponSanitizeAttribute,X,V,se);const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:X,forceKeepAttr:void 0};let r=t.length;const o=dt(e.nodeName);for(;r--;){const i=t[r],a=i.name,l=i.namespaceURI,s=i.value,c=dt(a),d=s;let u="value"===a?d:Ke(d);n.attrName=c,n.attrValue=u,n.keepAttr=!0,n.forceKeepAttr=void 0,pn(D.uponSanitizeAttribute,e,n),u=n.attrValue,!he||"id"!==c&&"name"!==c||0===Qe(u,fe)||(tn(a,e),u=fe+u),oe&&it(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)?tn(a,e):"attributename"===c&&Ye(u,"href")?tn(a,e):n.forceKeepAttr||(n.keepAttr&&(ne||!it(zt,u))?(re&&(u=ln(u)),fn(o,c,u)?(u=xn(o,c,l,u),u!==d&&kn(e,a,l,u)):tn(a,e)):tn(a,e))}pn(D.afterSanitizeAttributes,e,null)},wn=function(e){let t=null;const n=an(e);for(pn(D.beforeSanitizeShadowDOM,e,null);t=n.nextNode();){pn(D.uponSanitizeShadowNode,t,null),hn(t,e),yn(t),dn(t.content)&&wn(t.content);if((k?k(t):t.nodeType)===jt){const e=b(t);dn(e)&&(vn(e),wn(e))}}pn(D.afterSanitizeShadowDOM,e,null)},vn=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const e=t.pop();if(e.shadow){wn(e.shadow);continue}const n=e.node,r=(k?k(n):n.nodeType)===jt,o=f(n);if(o)for(let e=o.length-1;e>=0;--e)t.push({node:o[e],shadow:null});if(r){const e=y?y(n):null;if("string"==typeof e&&"template"===dt(e)){const e=n.content;dn(e)&&t.push({node:e,shadow:null})}}if(r){const e=b(n);dn(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,a=null,l=null;if(Re=!e,Re&&(e="\x3c!--\x3e"),"string"!=typeof e&&!un(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return Je(e);case"boolean":return et(e);case"bigint":return tt?tt(e):"0";case"symbol":return nt?nt(e):"Symbol()";case"undefined":default:return ot(e);case"function":case"object":{if(null===e)return ot(e);const t=e,n=pt(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:ot(e)}return ot(e)}}}(e)))throw at("dirty is not a string, aborting");if(!n.isSupported)return e;ae?(W=le,X=se):Yt(t),(D.uponSanitizeElement.length>0||D.uponSanitizeAttribute.length>0)&&(W=ut(W)),D.uponSanitizeAttribute.length>0&&(X=ut(X)),n.removed=[];const s=be&&"string"!=typeof e&&un(e);if(s){!function(e){if(!oe)return;const t=[e];for(;t.length>0;){const e=t.pop(),n=k?k(e):e.nodeType;if(n===Ft||n===Bt&&it(Dt,e.data)){try{m(e)}catch(e){}continue}if(n===jt){const t=e,n=dt(y?y(e):e.nodeName);try{t.hasAttribute&&t.hasAttribute("patchsrc")&&t.removeAttribute("patchsrc"),t.hasAttribute&&t.hasAttribute("for")&&"label"!==n&&"output"!==n&&t.removeAttribute("for")}catch(e){}}const r=f(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}}(e);const t=y?y(e):e.nodeName;if("string"==typeof t){const n=dt(t);if(!W[n]||Z[n])throw en(e),at("root node is forbidden and cannot be sanitized in-place")}if(cn(e))throw en(e),at("root node is clobbered and cannot be sanitized in-place");try{vn(e)}catch(t){throw en(e),t}}else if(un(e))r=on("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),i.nodeType===jt&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i),vn(i);else{if(!de&&!re&&!ie&&-1===e.indexOf("<"))return v&&pe?C(e):e;if(r=on(e),!r)return de?null:pe?T:""}r&&ce&&Jt(r.firstChild);const c=s?e:r;try{const e=an(c);for(;a=e.nextNode();)hn(a,c),yn(a),dn(a.content)&&wn(a.content)}catch(t){throw s&&(en(e),Be(n.removed,e=>{e.element&&rn(e.element)})),t}if(s)return Be(n.removed,e=>{e.element&&rn(e.element)}),re&&sn(e),e;if(de){if(re&&sn(r),ue)for(l=O.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(X.shadowroot||X.shadowrootmode)&&(l=M.call(o,l,!0)),l}let d=ie?r.outerHTML:r.innerHTML;return ie&&W["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&it(Ot,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),re&&(d=ln(d)),v&&pe?C(d):d},n.setConfig=function(){Yt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),ae=!0,le=W,se=X},n.clearConfig=function(){qt=null,ae=!1,le=null,se=null,v=_,T=""},n.isValidAttribute=function(e,t,n){qt||Yt({});const r=dt(e),o=dt(t);return fn(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&rt(D,e)&&Ge(D[e],t)},n.removeHook=function(e,t){if(rt(D,e)){if(void 0!==t){const n=He(D[e],t);return-1===n?void 0:We(D[e],n,1)[0]}return Ue(D[e])}},n.removeHooks=function(e){rt(D,e)&&(D[e]=[])},n.removeAllHooks=function(){D={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),Xt=n("./node_modules/.pnpm/html-react-parser@5.2.17_@types+react@18.3.31_react@18.3.1/node_modules/html-react-parser/lib/index.js");const Vt=Xt.default||Xt,Yt=["。","!","?",".","!","?","\n"],Zt=120,Qt=i().memo(e=>{const{text:t,animationConfig:n}=e,{fadeDuration:r=200,easing:a="ease-in-out",splitBy:l="chunk",delimiters:s=Yt,maxSentenceChars:c=Zt}=n||{},d=(0,o.useRef)(""),u=(0,o.useRef)([]),p=d.current;let m;if(t===p)m=u.current;else if(p&&t.startsWith(p)){const e=t.slice(p.length);m="sentence"===l?((e,t,n,r)=>{const o=e.slice();let i=t;const a=o[o.length-1];if(o.length>0&&!((e,t)=>e.length>0&&t.includes(e[e.length-1]))(a,n)&&a.length<r){let e=-1;for(let t=0;t<i.length;t++)if(n.includes(i[t])){e=t+1;break}if(-1===e)return o[o.length-1]+=i,o;o[o.length-1]+=i.slice(0,e),i=i.slice(e)}let l=0;for(let e=0;e<i.length;e++)n.includes(i[e])&&(o.push(i.slice(l,e+1)),l=e+1);return l<i.length&&o.push(i.slice(l)),o})(u.current,e,s,c):[...u.current,e]}else m=[t];(0,o.useEffect)(()=>{d.current=t,u.current=m},[t,m]);const h=(0,o.useMemo)(()=>({animation:`x-markdown-fade-in ${r}ms ${a} forwards`,color:"inherit"}),[r,a]);return i().createElement(i().Fragment,null,m.map((e,t)=>i().createElement("span",{style:h,key:`animation-text-${t}`},e)))}),Kt=/\s/,Jt=/[a-zA-Z0-9-]/,en=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),tn="\x3c!--",nn="<![CDATA[",rn=(e,t)=>`${e}-${t}`,on=(e,t)=>{if(!e.startsWith(tn,t))return t;const n=e.indexOf("--\x3e",t+4);return-1===n?e.length:n+3},an=(e,t)=>{if(!e.startsWith(nn,t))return t;const n=e.indexOf("]]>",t+9);return-1===n?e.length:n+3},ln=(e,t)=>{if("/"!==e[t+1])return null;let n=t+2,r="";for(;n<e.length&&Kt.test(e[n]);)n++;for(;n<e.length&&Jt.test(e[n]);)r+=e[n],n++;for(;n<e.length&&Kt.test(e[n]);)n++;return r&&">"===e[n]?{tagName:r.toLowerCase(),endPos:n+1}:null},sn=(e,t)=>{let n=t+1,r="";for(;n<e.length&&Jt.test(e[n]);)r+=e[n],n++;if(!r)return null;let o=!1,i=!1;for(;n<e.length;){if(">"===e[n]){o=!0,i="/"===e[n-1];break}if('"'===e[n]||"'"===e[n]){const t=e[n];for(n++;n<e.length;)if("\\"===e[n]&&n+1<e.length)n+=2;else{if(e[n]===t){n++;break}n++}continue}n++}return{tagName:r.toLowerCase(),endPos:o?n+1:e.length,foundEnd:o,isSelfClosing:i}};function cn(e,t){const n=new Set(Array.from(t,e=>e.toLowerCase()));if(0===n.size||0===e.length)return new Set;const r=new Set,o={},i={};let a=0;for(;a<e.length;){const t=on(e,a);if(t!==a){a=t;continue}const s=an(e,a);if(s!==a){a=s;continue}if("<"!==e[a]){a++;continue}const c=ln(e,a);if(c){const e=i[c.tagName];n.has(c.tagName)&&e?.length&&e.pop(),a=c.endPos;continue}const d=sn(e,a);if(!d||!n.has(d.tagName)){a++;continue}o[d.tagName]=(o[d.tagName]??0)+1;const u=o[d.tagName];if(d.foundEnd){if(!d.isSelfClosing&&!en.has(d.tagName)){var l;i[l=d.tagName]??(i[l]=[]),i[d.tagName].push(u)}}else r.add(rn(d.tagName,u));a=d.endPos}for(const[e,t]of Object.entries(i))t.forEach(t=>{r.add(rn(e,t))});return r}let dn=null;class un{options;static NON_WHITESPACE_REGEX=/[^\r\n\s]+/;constructor(e){this.options=e}detectUnclosedTags(e){return cn(e,Object.keys(this.options.components??{}))}configureDOMPurify(){const e=Object.keys(this.options.components||{}),t=this.options.dompurifyConfig||{},n=Array.isArray(t.ADD_TAGS)?t.ADD_TAGS:[],r=Array.isArray(t.ADD_ATTR)?t.ADD_ATTR:[];return{...t,ADD_TAGS:Array.from(new Set([...e,...n])),ADD_ATTR:Array.from(new Set(["target","rel",...r]))}}createReplaceElement(e,t){const{enableAnimation:n,animationConfig:r}=this.options.streaming||{};return o=>{const a="name"in o&&"xmd-tail"===o.name?"x-markdown-tail":"x-markdown-component-"+t.current++,l="text"===o.type&&o.data&&un.NON_WHITESPACE_REGEX.test(o.data),s=o.parent?.name;if(n&&l&&!(s&&this.options.components?.[s]))return i().createElement(Qt,{text:o.data,key:a,animationConfig:r});if(!("name"in o))return;const{name:c,attribs:d,children:u}=o,p=this.options.components?.[c];if(p){t.tagIndexes[c]=(t.tagIndexes[c]??0)+1;const n=e?.has(rn(c,t.tagIndexes[c]))?"loading":"done",r={...d,...void 0!==d.disabled&&{disabled:!0},...void 0!==d.checked&&{checked:!0},...this.options.componentsProps?.[c],domNode:o,streamStatus:n,key:a},l=[r.className,r.classname,r.class].filter(Boolean).join(" ").trim();if(r.className=l||"","code"===c){const{"data-block":e="false","data-state":t="done"}=d||{};r.block="true"===e,r.streamStatus="loading"===t?"loading":"done";const n=d?.["data-lang"],o=d?.class?.match(/(?:^|\s)language-([^\s]+)/)?.[1]??d?.class?.match(/(?:^|\s)lang-([^\s]+)/)?.[1],i=n||o;i?r.lang=i:delete r.lang}return u&&(r.children=this.processChildren(u,e,t)),i().createElement(p,r)}}}processChildren(e,t,n){return(0,Xt.domToReact)(e,{replace:this.createReplaceElement(t,n)})}processHtml(e){if("function"!=typeof qt.sanitize)return null;const t=this.detectUnclosedTags(e),n=function(){if(dn)return dn;if("undefined"!=typeof window&&"undefined"!=typeof Node)try{const e=document.createElement("template");e.innerHTML="<test-detect></test-detect>";const t=e.content.firstChild;if(t){const n=Object.getOwnPropertyDescriptor(Node.prototype,"nodeName")?.get,r=Object.getOwnPropertyDescriptor(Node.prototype,"nodeValue")?.get,o=n&&t.nodeName&&!n.call(t);if(o){const e=n;Object.defineProperty(Node.prototype,"nodeName",{get:function(){const t=e.call(this);if(t)return t;if(1===this.nodeType&&"tagName"in this)return this.tagName;switch(this.nodeType){case 3:return"#text";case 4:return"#cdata-section";case 7:return"#processing-instruction";case 8:return"#comment";case 9:return"#document";case 11:return"#document-fragment"}return t},configurable:!0,enumerable:!0})}const i=r&&(()=>{e.innerHTML="<div>test</div>";const t=e.content.firstChild?.firstChild;if(!t)return!1;const n=r.call(t);return null!=t.nodeValue&&null==n})();if(i){const e=r;Object.defineProperty(Node.prototype,"nodeValue",{get:function(){const t=e.call(this);return null!=t||3!==this.nodeType&&4!==this.nodeType&&8!==this.nodeType||!("data"in this)?t:this.data},configurable:!0,enumerable:!0})}if(o||i)return dn=qt(window),dn}}catch{}return dn=qt,dn}(),r=this.configureDOMPurify(),o=n.sanitize(e,r);return Vt(o,{replace:this.createReplaceElement(t,{current:0,tagIndexes:{}})})}render(e){return this.processHtml(e)}}const pn=un;var mn=n("./node_modules/.pnpm/style-loader@3.3.4_webpack@5.108.4/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),hn=n.n(mn),fn=n("./node_modules/.pnpm/style-loader@3.3.4_webpack@5.108.4/node_modules/style-loader/dist/runtime/styleDomAPI.js"),gn=n.n(fn),bn=n("./node_modules/.pnpm/style-loader@3.3.4_webpack@5.108.4/node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),xn=n.n(bn),kn=n("./node_modules/.pnpm/style-loader@3.3.4_webpack@5.108.4/node_modules/style-loader/dist/runtime/insertStyleElement.js"),yn=n.n(kn),wn=n("./node_modules/.pnpm/style-loader@3.3.4_webpack@5.108.4/node_modules/style-loader/dist/runtime/styleTagTransform.js"),vn=n.n(wn),_n=n("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/cjs.js!./node_modules/.pnpm/@ant-design+x-markdown@2.10.0_@types+react@18.3.31_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@ant-design/x-markdown/es/XMarkdown/DebugPanel/DebugPanel.css"),Tn={};Tn.styleTagTransform=vn(),Tn.setAttributes=xn(),Tn.insert=function(e){const t=document.querySelector("head"),n=window._lastElementInsertedByStyleLoader;n?n.nextSibling?t.insertBefore(e,n.nextSibling):t.appendChild(e):t.insertBefore(e,t.firstChild),window._lastElementInsertedByStyleLoader=e},Tn.domAPI=gn(),Tn.insertStyleElement=yn();hn()(_n.A,Tn);const En={GOOD:55,WARNING:40},Sn={GOOD:"#52c41a",WARNING:"#faad14",DANGER:"#ff4d4f"},An={WIDTH:750,HEIGHT:400,PADDING:80},Cn=()=>{const[e,t]=(0,o.useState)(0),[n,r]=(0,o.useState)(0),[a,l]=(0,o.useState)(!1),[s,c]=(0,o.useState)(!1),[d,u]=(0,o.useState)([]),[p,m]=(0,o.useState)("undefined"==typeof window?{x:12,y:12}:{x:window.innerWidth-220,y:window.innerHeight/2-100}),[h,f]=(0,o.useState)(!1),g=(0,o.useRef)([]),b=(0,o.useRef)([]),x=(0,o.useRef)(0),k=(0,o.useRef)(0),y=(0,o.useRef)(void 0),w=(0,o.useRef)({isDragging:!1,startX:0,startY:0,initialX:0,initialY:0});(0,o.useEffect)(()=>{if("undefined"==typeof window)return;h||(f(!0),x.current=performance.now());const e=()=>{const n=performance.now(),o=n-x.current;if(b.current.push(o),b.current.length>60&&b.current.shift(),k.current++,o>=1e3){const e=Math.round(1e3*k.current/o),i=v();t(e),r(i),a&&g.current.push({timestamp:Date.now(),fps:e,memory:i}),k.current=0,x.current=n}y.current=requestAnimationFrame(e)};return y.current=requestAnimationFrame(e),()=>{void 0!==y.current&&cancelAnimationFrame(y.current)}},[a,h]);const v=()=>{const e=performance;return e.memory?Math.round(e.memory.usedJSHeapSize/1024/1024):0},_=e=>e<1?`${Math.round(1024*e)} KB`:e>=1024?`${(e/1024).toFixed(2)} GB`:`${e.toFixed(2)} MB`,T=e=>e>=En.GOOD?Sn.GOOD:e>=En.WARNING?Sn.WARNING:Sn.DANGER,E=(0,o.useCallback)(()=>{a?(l(!1),u([...g.current]),c(!0)):(g.current=[],l(!0))},[a]),S=(0,o.useCallback)(e=>{e.target.closest(".x-markdown-debug-action")||(w.current={isDragging:!0,startX:e.clientX,startY:e.clientY,initialX:p.x,initialY:p.y})},[p]),A=(0,o.useCallback)(e=>{if(!w.current.isDragging)return;m({x:w.current.initialX+(e.clientX-w.current.startX),y:w.current.initialY+(e.clientY-w.current.startY)})},[]),C=(0,o.useCallback)(()=>{w.current.isDragging=!1},[]);(0,o.useEffect)(()=>{if("undefined"!=typeof window)return document.addEventListener("mousemove",A),document.addEventListener("mouseup",C),()=>{document.removeEventListener("mousemove",A),document.removeEventListener("mouseup",C)}},[A,C]);const R=()=>{if(!d.length)return null;const{WIDTH:e,HEIGHT:t,PADDING:n}=An,r=e-2*n,o=t-2*n,a=d[0]?.timestamp??0,l=(d[d.length-1]?.timestamp??0)-a||1,s=Math.max(...d.map(e=>e.fps),60),c=1.1*Math.max(...d.map(e=>e.memory),0),u=d.length>0?d.reduce((e,t)=>e+t.fps,0)/d.length:0,p=d.length>0?d.reduce((e,t)=>e+t.memory,0)/d.length:0,m=d.length>0?Math.min(...d.map(e=>e.fps)):0,h=d.length>0?Math.max(...d.map(e=>e.fps)):0,f=(e,t)=>d.map(i=>`${n+(i.timestamp-a)/l*r},${n+o-i[e]/t*o}`).join(" ");return i().createElement("div",{className:"x-markdown-debug-modal-content"},i().createElement("div",{className:"x-markdown-debug-stats-summary"},i().createElement("div",{className:"x-markdown-debug-stat-item"},i().createElement("div",{className:"x-markdown-debug-stat-label"},"Duration"),i().createElement("div",{className:"x-markdown-debug-stat-value"},(l/1e3).toFixed(2),"s")),i().createElement("div",{className:"x-markdown-debug-stat-item"},i().createElement("div",{className:"x-markdown-debug-stat-label"},"FPS Avg"),i().createElement("div",{className:"x-markdown-debug-stat-value",style:{color:T(u)}},u.toFixed(1))),i().createElement("div",{className:"x-markdown-debug-stat-item"},i().createElement("div",{className:"x-markdown-debug-stat-label"},"FPS Range"),i().createElement("div",{className:"x-markdown-debug-stat-value"},m," - ",h)),i().createElement("div",{className:"x-markdown-debug-stat-item"},i().createElement("div",{className:"x-markdown-debug-stat-label"},"Memory Avg"),i().createElement("div",{className:"x-markdown-debug-stat-value"},_(p)))),i().createElement("svg",{width:e,height:t,className:"x-markdown-debug-chart-full",role:"img","aria-label":"Performance chart showing FPS and memory usage over time"},i().createElement("title",null,"Performance Chart"),[0,.25,.5,.75,1].map(a=>i().createElement("g",{key:a},i().createElement("line",{x1:n,y1:n+o*a,x2:e-n,y2:n+o*a,stroke:"rgba(255,255,255,0.1)",strokeWidth:"1"}),i().createElement("line",{x1:n+r*a,y1:n,x2:n+r*a,y2:t-n,stroke:"rgba(255,255,255,0.1)",strokeWidth:"1"}))),i().createElement("polyline",{points:f("fps",s),fill:"none",stroke:Sn.GOOD,strokeWidth:"2",className:"fps-line"}),i().createElement("polyline",{points:f("memory",c),fill:"none",stroke:"#1890ff",strokeWidth:"2",className:"memory-line"}),i().createElement("text",{x:n-10,y:n,fill:Sn.GOOD,fontSize:"12",textAnchor:"end"},s.toFixed(0)),i().createElement("text",{x:n-10,y:t-n,fill:Sn.GOOD,fontSize:"12",textAnchor:"end"},"0"),i().createElement("text",{x:n-10,y:n-15,fill:Sn.GOOD,fontSize:"14",fontWeight:"bold",textAnchor:"end"},"FPS"),i().createElement("text",{x:e-n+10,y:n+20,fill:"#1890ff",fontSize:"12",textAnchor:"start"},_(c)),i().createElement("text",{x:e-n+10,y:t-n,fill:"#1890ff",fontSize:"12",textAnchor:"start"},_(0)),i().createElement("text",{x:e-n+10,y:n+5,fill:"#1890ff",fontSize:"14",fontWeight:"bold",textAnchor:"start"},"Memory"),i().createElement("text",{x:n,y:t-n+20,fill:"rgba(255,255,255,0.6)",fontSize:"12",textAnchor:"middle"},"0s"),i().createElement("text",{x:e-n,y:t-n+20,fill:"rgba(255,255,255,0.6)",fontSize:"12",textAnchor:"middle"},(l/1e3).toFixed(1),"s")),i().createElement("div",{className:"x-markdown-debug-legend"},i().createElement("div",{className:"x-markdown-debug-legend-item"},i().createElement("span",{className:"x-markdown-debug-legend-color",style:{backgroundColor:Sn.GOOD}}),i().createElement("span",null,"FPS")),i().createElement("div",{className:"x-markdown-debug-legend-item"},i().createElement("span",{className:"x-markdown-debug-legend-color",style:{backgroundColor:"#1890ff"}}),i().createElement("span",null,"Memory"))))};return i().createElement(i().Fragment,null,i().createElement("div",{className:"x-markdown-debug-panel",style:{left:p.x,top:p.y,cursor:w.current.isDragging?"grabbing":"grab"},onMouseDown:S},i().createElement("div",{className:"x-markdown-debug-row"},i().createElement("span",{className:"x-markdown-debug-label"},"FPS"),i().createElement("span",{className:"x-markdown-debug-value",style:{color:T(e)}},e)),i().createElement("div",{className:"x-markdown-debug-row"},i().createElement("span",{className:"x-markdown-debug-label"},"Memory"),i().createElement("span",{className:"x-markdown-debug-value"},_(n))),i().createElement("div",{className:"x-markdown-debug-actions"},i().createElement("button",{type:"button",className:"x-markdown-debug-action x-markdown-debug-record-btn "+(a?"recording":""),onClick:E},a?"⏹ Stop":"⏺ Record"),d.length>0&&!a&&i().createElement("button",{type:"button",className:"x-markdown-debug-action",onClick:()=>c(!0)},"📊 View"))),s&&d.length>0?i().createElement("div",{className:"x-markdown-debug-modal-overlay",onClick:()=>c(!1)},i().createElement("div",{className:"x-markdown-debug-modal",onClick:e=>e.stopPropagation()},i().createElement("div",{className:"x-markdown-debug-modal-header"},i().createElement("span",{style:{color:"#fff",fontSize:18,fontWeight:"600"}},"Performance Recording"),i().createElement("button",{type:"button",className:"x-markdown-debug-close-btn",onClick:()=>c(!1)},"✕")),i().createElement(R,null))):null)},Rn=["。","!","?",".","!","?","\n"],Nn=(e,t,n)=>e<t?t:e>n?n:e,In=(e,t)=>{const n=e.charCodeAt(t);return n>=55296&&n<=56319},On=(e,t)=>t>0&&t<e.length&&In(e,t-1)?t+1:t,Ln=e=>65038===e||65039===e,Mn=e=>e>=127995&&e<=127999,Dn=e=>e>=768&&e<=879||e>=6832&&e<=6911||e>=8400&&e<=8447,Pn=e=>e>=127462&&e<=127487,zn=e=>e>=917536&&e<=917631,jn=(e,t)=>{const n=e.codePointAt(t);return[n,t+(n>65535?2:1)]},$n=(e,t)=>{const n=t>=2&&In(e,t-2)?t-2:t-1;return[e.codePointAt(n),n]};let Fn;const Bn=(e,t)=>{if(t<=0||t>=e.length)return t;const n=(()=>{if(void 0===Fn){const e="undefined"!=typeof Intl?Intl.Segmenter:void 0;Fn="function"==typeof e?new e(void 0,{granularity:"grapheme"}):null}return Fn})();if(!n)return((e,t)=>{let n=On(e,t),r=0;for(let t=n;t>0;){const[n,o]=$n(e,t);if(!Pn(n))break;r+=1,t=o}for(;;){if(n>=e.length)return e.length;const[t]=$n(e,n),[o,i]=jn(e,n);if(8205===o||8205===t||Ln(o)||Mn(o)||Dn(o)||8419===o||zn(o))n=i;else{if(!Pn(o)||!Pn(t)||r%2!=1)return n;n=i,r+=1}}})(e,t);const r=Math.max(0,On(e,t-32)),o=Math.min(e.length,On(e,t+32));for(const{index:i,segment:a}of n.segment(e.slice(r,o))){const e=r+i,n=e+a.length;if(e>=t)return e;if(n>=t)return n}return o},Hn=(e,t,n)=>{for(let r=e.scanned;r<t.length;r++){const o=t[r];if("\n"!==o){if(e.atLineStart){if(!("`"!==o&&"~"!==o||0!==e.lineFenceLen&&e.lineFenceChar!==o)){e.lineFenceChar=o,e.lineFenceLen+=1;continue}e.atLineStart=!1,"`"===e.lineFenceChar&&e.lineFenceLen<3&&(e.inInlineCode=e.lineFenceLen%2==1)}e.inFence||("`"!==o?!e.inInlineCode&&n.has(o)&&e.boundaries.push(r+1):e.inInlineCode=!e.inInlineCode)}else e.lineFenceLen>=3&&(e.inFence?e.lineFenceChar===e.fenceChar&&e.lineFenceLen>=e.fenceLen&&(e.inFence=!1):(e.inFence=!0,e.fenceChar=e.lineFenceChar,e.fenceLen=e.lineFenceLen)),e.lineFenceChar="",e.lineFenceLen=0,e.atLineStart=!0,e.inInlineCode=!1,e.boundaries.push(r+1)}e.scanned=t.length},Un=(e,t)=>{let n=0,r=e.length-1,o=0;for(;n<=r;){const i=n+r>>1;e[i]<=t?(o=e[i],n=i+1):r=i-1}return o},Gn=(e,t,n)=>{const r=!!t&&n&&"undefined"!=typeof window&&"function"==typeof window.requestAnimationFrame,{unit:i,delimiters:a,minCps:l,maxCps:s,pauseMs:c,maxSentenceChars:d}=(e=>{const t="object"==typeof e?e:{};return{unit:t.unit??"char",delimiters:t.delimiters??Rn,minCps:t.minCps??24,maxCps:t.maxCps??3e3,pauseMs:t.pauseMs??0,maxSentenceChars:t.maxSentenceChars??120}})(t),u=(0,o.useMemo)(()=>new Set(a),[a]),[p,m]=(0,o.useState)(e.length),h=(0,o.useRef)(p),f=(0,o.useRef)(e),g=(0,o.useRef)(r),b=(0,o.useRef)(e.length),x=(0,o.useRef)(null),k=(0,o.useRef)(140),y=(0,o.useRef)(null),w=(0,o.useRef)(null),v=(0,o.useRef)(0),_=(0,o.useRef)({scanned:0,boundaries:[],inFence:!1,fenceChar:"",fenceLen:0,atLineStart:!0,lineFenceChar:"",lineFenceLen:0,inInlineCode:!1}),T=(0,o.useRef)(r);f.current=e,g.current=r;const E=(0,o.useCallback)(()=>{null!=y.current&&(window.cancelAnimationFrame(y.current),y.current=null),w.current=null},[]),S=(0,o.useCallback)(e=>{e!==h.current&&(h.current=e,m(e))},[]),A=(0,o.useCallback)(e=>{y.current=null;const t=f.current,n=t.length;if(!g.current||h.current>=n)return void E();const r=Math.max(8,e-(w.current??e));if(w.current=e,e>=v.current){const o=n-b.current,a=Nn(k.current,80,260),p=Nn(o/a*1e3,l,s);let m;if(b.current=Math.min(n,b.current+p*r/1e3),"sentence"===i){Hn(_.current,t,u);const{boundaries:e}=_.current,r=h.current,o=Math.floor(b.current),i=Un(e,o);m=o>=n?n:i>r?i:o-Un(e,r)>d?Math.min(n,Bn(t,Math.max(r+1,o))):r}else if(m=Math.max(h.current+1,Math.floor(b.current)),m=Math.min(n,Bn(t,m)),c>0&&m>h.current){Hn(_.current,t,u);const n=Un(_.current.boundaries,m);n>h.current&&(m=n,b.current=n,v.current=e+c)}S(m)}h.current<f.current.length?y.current=window.requestAnimationFrame(A):E()},[S,u,s,d,l,c,E,i]),C=(0,o.useCallback)(()=>{null==y.current&&g.current&&(h.current>=f.current.length||(w.current=null,y.current=window.requestAnimationFrame(A)))},[A]),R=(0,o.useRef)(e);return(0,o.useEffect)(()=>{const t=R.current;if(R.current=e,!r)return E(),void(T.current=!1);if(!T.current)return T.current=!0,_.current={scanned:0,boundaries:[],inFence:!1,fenceChar:"",fenceLen:0,atLineStart:!0,lineFenceChar:"",lineFenceLen:0,inInlineCode:!1},b.current=e.length,S(e.length),x.current=null,void(k.current=140);if(!e.startsWith(t.slice(0,h.current)))return E(),_.current={scanned:0,boundaries:[],inFence:!1,fenceChar:"",fenceLen:0,atLineStart:!0,lineFenceChar:"",lineFenceLen:0,inInlineCode:!1},b.current=e.length,S(e.length),x.current=null,void(k.current=140);if(e.startsWith(t)||(_.current={scanned:0,boundaries:[],inFence:!1,fenceChar:"",fenceLen:0,atLineStart:!0,lineFenceChar:"",lineFenceLen:0,inInlineCode:!1},b.current=Math.min(b.current,e.length)),e.length>t.length){const e=performance.now(),t=x.current;if(null!=t){const n=Nn(e-t,30,500);k.current=Nn(.72*k.current+.28*n,80,260)}x.current=e}C()},[e,r,S,C,E]),(0,o.useEffect)(()=>E,[E]),(0,o.useMemo)(()=>r?p>=e.length?e:e.slice(0,p):e,[r,e,p])};let Wn=function(e){return e.Text="text",e.Link="link",e.Image="image",e.Html="html",e.Emphasis="emphasis",e.List="list",e.Table="table",e.InlineCode="inline-code",e}({});const qn={incremental:!0,incompleteMarkdown:"complete",typewriter:!0},Xn=Object.freeze({...qn,hasNextChunk:!0}),Vn=Object.freeze({...qn,hasNextChunk:!1}),Yn=e=>!0===e?Xn:!1===e?Vn:e,Zn=/^#{1,6}(?:[ \t]|$)/,Qn={image:[/^!\[[^\]\r\n]{0,1000}$/,/^!\[[^\r\n]{0,1000}\]\(*[^)\r\n]{0,1000}$/],link:[/^\[[^\]\r\n]{0,1000}$/,/^\[[^\r\n]{0,1000}\]\(*[^)\r\n]{0,1000}$/],html:[/^<\/$/,/^<\/?[a-zA-Z][a-zA-Z0-9-]{0,100}[^>\r\n]{0,1000}$/],commonEmphasis:[/^(\*{1,3}|_{1,3})(?!\s)(?!.*\1$)[^\r\n]{0,1000}$/],list:[/^[-+*]\s{0,3}$/,/^[-+*]\s{1,3}(\*{1,3}|_{1,3})(?!\s)(?!.*\1$)[^\r\n]{0,1000}$/],"inline-code":[/^`[^`\r\n]{0,300}$/]},Kn=(e,t)=>{const n=e.trim();if(!/^\|.*\|$/.test(n))return!1;const r=t.trim().split("|").map(e=>e.trim()).filter(Boolean),o=/^:?-+:?$/;return r.every((e,t)=>t===r.length-1&&":"===e||o.test(e))},Jn={[Wn.Link]:{tokenType:Wn.Link,isStartOfToken:e=>e.startsWith("["),isStreamingValid:e=>Qn.link.some(t=>t.test(e))},[Wn.Image]:{tokenType:Wn.Image,isStartOfToken:e=>e.startsWith("!"),isStreamingValid:e=>Qn.image.some(t=>t.test(e))},[Wn.Html]:{tokenType:Wn.Html,isStartOfToken:e=>e.startsWith("<"),isStreamingValid:e=>Qn.html.some(t=>t.test(e))},[Wn.Emphasis]:{tokenType:Wn.Emphasis,isStartOfToken:e=>e.startsWith("*")||e.startsWith("_"),isStreamingValid:e=>Qn.commonEmphasis.some(t=>t.test(e))},[Wn.List]:{tokenType:Wn.List,isStartOfToken:e=>/^[-+*]/.test(e),isStreamingValid:e=>Qn.list.some(t=>t.test(e)),getCommitPrefix:e=>{const t=e.match(/^([-+*]\s{0,3})/)?.[1],n=t?e.slice(t.length):"";return t&&n.startsWith("`")?t:null}},[Wn.Table]:{tokenType:Wn.Table,isStartOfToken:e=>e.startsWith("|"),isStreamingValid:(e,t)=>{return!(n=t.table).hasBlankLine&&(0===n.newlines||(null!==n.shape?n.shape:Kn(n.firstLine,n.secondLine)));var n}},[Wn.InlineCode]:{tokenType:Wn.InlineCode,isStartOfToken:e=>e.startsWith("`"),isStreamingValid:e=>Qn["inline-code"].some(t=>t.test(e))}},er=Object.values(Jn).map(e=>({tokenType:e.tokenType,recognize:t=>((e,t)=>{const n=Jn[t];if(!n)return;const{token:r,pending:o}=e;if(r===Wn.Text&&n.isStartOfToken(o))e.token=t;else if(r===t&&!n.isStreamingValid(o,e)){const t=n.getCommitPrefix?.(o);if(t)return e.completeMarkdown+=t,e.pending=o.slice(t.length),rr(e.table,e.pending),void(e.token=Wn.Text);mr(e)}})(t,e.tokenType)})),tr=e=>{e.newlines=0,e.lastWasNewline=!1,e.hasBlankLine=!1,e.firstLine="",e.secondLine="",e.shape=null},nr=(e,t)=>{if("\n"===t)return e.lastWasNewline&&(e.hasBlankLine=!0),e.lastWasNewline=!0,e.newlines+=1,void(2===e.newlines&&(e.shape=Kn(e.firstLine,e.secondLine)));e.lastWasNewline=!1,0===e.newlines?e.firstLine+=t:1===e.newlines&&(e.secondLine+=t)},rr=(e,t)=>{tr(e);for(const n of t)nr(e,n)},or=()=>({pending:"",token:Wn.Text,processedLength:0,completeMarkdown:"",fence:{inFenced:!1,fenceChar:"",fenceLen:0,lineIndent:0,lineFenceChar:"",lineFenceLen:0,lineFenceRunEnded:!1,lineTailBlank:!0},table:{newlines:0,lastWasNewline:!1,hasBlankLine:!1,firstLine:"",secondLine:"",shape:null},sections:{offsets:[],lineStart:0,inHtmlBlock:!1,noSplit:!1,rawBlock:null}}),ir=/^ {0,3}\[[^\]]*\]:/,ar=/^ {0,3}<(pre|script|style|textarea)(?=[\s>]|$)/i,lr=/^ {0,3}<!--/,sr=/^(\${1,2})\s*$/,cr=/^\\\[/,dr=/^ {0,3}<(?:[a-zA-Z]|\/[a-zA-Z]|!|\?)/,ur=(e,t,n,r,o)=>{const i=e.sections,a=i.lineStart,l=t.slice(a,n),s=""===l.trim();if(i.lineStart=n+1,i.noSplit)return;if(i.rawBlock)return void(((e,t)=>t.exact?e.trim()===t.close:e.toLowerCase().includes(t.close))(l,i.rawBlock)&&(i.rawBlock=null));if(i.inHtmlBlock)return void(s&&(i.inHtmlBlock=!1));if(e.fence.inFenced)return;const c=(e=>{const t=e.match(ar);if(t){const n=`</${t[1].toLowerCase()}`;return e.toLowerCase().includes(n)?null:{close:n,exact:!1}}if(lr.test(e))return e.includes("--\x3e")?null:{close:"--\x3e",exact:!1};const n=e.match(sr);return n?{close:n[1],exact:!0}:cr.test(e)?e.includes("\\]")?null:{close:"\\]",exact:!1}:null})(l);if(c)return void(i.rawBlock=c);if(dr.test(l))return void(i.inHtmlBlock=!0);if(ir.test(l))return i.noSplit=!0,void(i.offsets=[]);if(!Zn.test(l))return;const d=i.offsets.length?i.offsets[i.offsets.length-1]:0;a<=d||a-d<o||r.length>0&&cn(t.slice(d,a),r).size>0||i.offsets.push(a)},pr=(e,t,n)=>{const{offsets:r}=e.sections;if(e.sections.noSplit||0===r.length)return null;const o=[];let i=0;for(const e of r){if(e>n)break;o.push(t.slice(i,e)),i=e}return 0===o.length?null:(o.push(t.slice(i)),o)},mr=e=>{e.pending&&(e.completeMarkdown+=e.pending,e.pending=""),tr(e.table),e.token=Wn.Text},hr=(e,t)=>{if("\n"===t)return e.lineFenceLen>=3&&(e.inFenced?e.lineFenceChar===e.fenceChar&&e.lineFenceLen>=e.fenceLen&&e.lineTailBlank&&(e.inFenced=!1,e.fenceChar="",e.fenceLen=0):(e.inFenced=!0,e.fenceChar=e.lineFenceChar,e.fenceLen=e.lineFenceLen)),e.lineIndent=0,e.lineFenceChar="",e.lineFenceLen=0,e.lineFenceRunEnded=!1,void(e.lineTailBlank=!0);e.lineFenceRunEnded?e.lineTailBlank=e.lineTailBlank&&/\s/.test(t):0===e.lineFenceLen&&" "===t&&e.lineIndent<3?e.lineIndent+=1:0!==e.lineFenceLen||"`"!==t&&"~"!==t?e.lineFenceLen>0&&t===e.lineFenceChar?e.lineFenceLen+=1:(e.lineFenceRunEnded=!0,e.lineTailBlank=e.lineTailBlank&&/\s/.test(t)):(e.lineFenceChar=t,e.lineFenceLen=1)},fr=e=>e.inFenced||e.lineFenceLen>=3,gr=/^(\*{1,3}|_{1,3})/,br=/^`+/,xr=/^([-+*]\s{0,3})([\s\S]*)$/,kr=/\s+$/,yr=e=>{const t=e.match(gr)?.[0]??"",n=e.slice(t.length),r=n.replace(kr,"");if(r)return`${t}${r}${t}${n.slice(r.length)}`},wr={output:"",sections:null},vr={},_r=(e,t)=>{const{streaming:n,components:r=vr}=t||{},{hasNextChunk:i=!1,incompleteMarkdownComponentMap:a,incompleteMarkdown:l="placeholder",incremental:s}=Yn(n)||{},c=(e=>"object"==typeof e&&"number"==typeof e.minSectionChars?e.minSectionChars:200)(s),d=(e=>"object"!=typeof e||!1!==e.keepSectionsOnEnd)(s),u=!!s,p=(0,o.useRef)(or()),m=Object.keys(r).join("\0"),h=(0,o.useMemo)(()=>m?m.split("\0"):[],[m]),f=(0,o.useCallback)(e=>{const{token:t,pending:n}=e;if(t===Wn.Text)return;if(t===Wn.Image&&"!"===n)return;if(t===Wn.Table&&e.table.newlines>1)return n;const o=a||{};if("complete"===l&&!o[t])return((e,t)=>{switch(e){case Wn.Emphasis:return yr(t);case Wn.InlineCode:{const e=t.match(br)?.[0]??"";return t.length>e.length?`${t}${e}`:void 0}case Wn.Link:{const e=t.indexOf("]");return(-1===e?t.slice(1):t.slice(1,e))||void 0}case Wn.List:{const e=t.match(xr);if(!e)return;const[,n,r]=e;if(!r)return;const o=gr.test(r)?yr(r):r;return o?`${n}${o}`:void 0}default:return}})(t,n);const i=o[t]||`incomplete-${t}`,s=(e=>{try{return encodeURIComponent(e)}catch(t){return t instanceof URIError?encodeURIComponent((e=>{let t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);r>=55296&&r<=56319?n+1<e.length&&e.charCodeAt(n+1)>=56320&&e.charCodeAt(n+1)<=57343&&(t+=e[n]+e[n+1],n++):(r<56320||r>57343)&&(t+=e[n])}return t})(e)):""}})(n);return r?.[i]?`<${i} data-raw="${s}" />`:void 0},[a,l,r]),g=(0,o.useCallback)(e=>{if(!e)return p.current=or(),"";e.startsWith(p.current.completeMarkdown+p.current.pending)||(p.current=or());const t=p.current,n=e.slice(t.processedLength);let r=t.processedLength;t.processedLength+=n.length;for(const o of n)if(t.pending+=o,hr(t.fence,o),nr(t.table,o),u&&"\n"===o&&ur(t,e,r,h,c),r+=o.length,fr(t.fence))mr(t);else{if(t.token===Wn.Text)for(const e of er)e.recognize(t);else{const e=er.find(e=>e.tokenType===t.token);e?.recognize(t);if(t.token===Wn.Text)for(const e of er)e.recognize(t)}t.token===Wn.Text&&mr(t)}const o=f(t);return t.completeMarkdown+(o||"")},[f,u,h,c]),b="string"==typeof e;return(0,o.useEffect)(()=>{b||console.error(`X-Markdown: input must be string, not ${typeof e}.`)},[e,b]),(0,o.useMemo)(()=>{if(!b)return wr;if(!i){const t=p.current;return u&&d&&t.processedLength>0&&e.startsWith(t.completeMarkdown+t.pending)?(g(e),{output:e,sections:pr(t,e,e.length)}):(p.current=or(),{output:e,sections:null})}const t=g(e),n=p.current;return{output:t,sections:u?pr(n,t,n.completeMarkdown.length):null}},[e,b,i,u,d,g])},Tr=i().memo(({content:e,parser:t,renderer:n,injectTail:r})=>{const a=(0,o.useMemo)(()=>t.parse(e,{injectTail:r}),[e,t,r]),l=(0,o.useMemo)(()=>n.render(a),[a,n]);return i().createElement(i().Fragment,null,l)});const Er=Tr;var Sr=n("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/cjs.js!./node_modules/.pnpm/@ant-design+x-markdown@2.10.0_@types+react@18.3.31_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@ant-design/x-markdown/es/XMarkdown/index.css"),Ar={};Ar.styleTagTransform=vn(),Ar.setAttributes=xn(),Ar.insert=function(e){const t=document.querySelector("head"),n=window._lastElementInsertedByStyleLoader;n?n.nextSibling?t.insertBefore(e,n.nextSibling):t.appendChild(e):t.insertBefore(e,t.firstChild),window._lastElementInsertedByStyleLoader=e},Ar.domAPI=gn(),Ar.insertStyleElement=yn();hn()(Sr.A,Ar);const Cr=i().memo(e=>{const{streaming:t,config:n,components:a,componentsProps:l,paragraphTag:s,content:c,children:d,rootClassName:u,className:p,style:m,openLinksInNewTab:h,dompurifyConfig:f,protectCustomTagNewlines:g,disableCustomTagBlockMarkdown:b,escapeRawHtml:x,debug:k,disableDefaultStyles:y}=e,w=Yn(t),v=(0,o.useMemo)(()=>{return e=w?.tail,e?"boolean"==typeof e?"▋":e.content||"▋":null;var e},[w?.tail]),_="object"==typeof w?.tail?w.tail.component:void 0,T=!!w?.hasNextChunk&&v,E=(0,o.useMemo)(()=>!0===y?"x-md-disable-all":Array.isArray(y)?y.map(e=>`x-md-disable-${e}`):void 0,[y]),S=(0,r.$)("x-markdown",E,u,p),A=Gn(c||d||"",w?.typewriter,!!w?.hasNextChunk),{output:C,sections:R}=_r(A,{streaming:w,components:a}),N=(0,o.useMemo)(()=>{if(!T)return a;const e=_?i().createElement(_,{content:v}):i().createElement("span",{className:"xmd-tail"},v);return{...a,"xmd-tail":()=>e}},[T,a,_,v]),I=(0,o.useMemo)(()=>new Ae({markedConfig:n,paragraphTag:s,openLinksInNewTab:h,components:N,protectCustomTagNewlines:g,disableCustomTagBlockMarkdown:b,escapeRawHtml:x}),[n,s,h,N,g,b,x]),O=w?.enableAnimation,L=w?.animationConfig,M=(0,o.useMemo)(()=>new pn({components:N,componentsProps:l,dompurifyConfig:f,streaming:{enableAnimation:O,animationConfig:L}}),[N,l,f,O,L]),D=(0,o.useMemo)(()=>!C||R?"":I.parse(C,{injectTail:!!T}),[C,R,I,T]),P=(0,o.useMemo)(()=>D?M.render(D):null,[D,M]);if(!C)return null;const z=R?R.map((e,t)=>i().createElement(Er,{key:t,content:e,parser:I,renderer:M,injectTail:!!T&&t===R.length-1})):null;return i().createElement(i().Fragment,null,i().createElement("div",{className:S,style:m},z??P),k?i().createElement(Cn,null):null)});var Rr=n("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/cjs.js!./node_modules/.pnpm/@ant-design+x-markdown@2.10.0_@types+react@18.3.31_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@ant-design/x-markdown/themes/light.css"),Nr={};Nr.styleTagTransform=vn(),Nr.setAttributes=xn(),Nr.insert=function(e){const t=document.querySelector("head"),n=window._lastElementInsertedByStyleLoader;n?n.nextSibling?t.insertBefore(e,n.nextSibling):t.appendChild(e):t.insertBefore(e,t.firstChild),window._lastElementInsertedByStyleLoader=e},Nr.domAPI=gn(),Nr.insertStyleElement=yn();hn()(Rr.A,Nr);var Ir=n("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/cjs.js!./node_modules/.pnpm/@ant-design+x-markdown@2.10.0_@types+react@18.3.31_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@ant-design/x-markdown/themes/dark.css"),Or={};Or.styleTagTransform=vn(),Or.setAttributes=xn(),Or.insert=function(e){const t=document.querySelector("head"),n=window._lastElementInsertedByStyleLoader;n?n.nextSibling?t.insertBefore(e,n.nextSibling):t.appendChild(e):t.insertBefore(e,t.firstChild),window._lastElementInsertedByStyleLoader=e},Or.domAPI=gn(),Or.insertStyleElement=yn();hn()(Ir.A,Or);var Lr=n("./node_modules/.pnpm/antd@6.7.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/es/theme/index.js"),Mr=n("./src/utils/dash3.ts"),Dr=n("./src/utils/funcs.ts"),Pr=n("./src/utils/highlight.tsx"),zr=n("./src/utils/theme.ts"),jr=(n("./src/components/fragments/Highlight.css"),n("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/cjs.js!./src/components/fragments/Markdown.css")),$r={};$r.styleTagTransform=vn(),$r.setAttributes=xn(),$r.insert=function(e){const t=document.querySelector("head"),n=window._lastElementInsertedByStyleLoader;n?n.nextSibling?t.insertBefore(e,n.nextSibling):t.appendChild(e):t.insertBefore(e,t.firstChild),window._lastElementInsertedByStyleLoader=e},$r.domAPI=gn(),$r.insertStyleElement=yn();hn()(jr.A,$r);const Fr=e=>{const{block:t,children:n,className:r,lang:o}=e,{token:a}=Lr.A.useToken();if(!t)return i().createElement("code",{className:r},n);const l=i().Children.toArray(n).join("").replace(/\n$/,""),s=o||r?.match(/(?:^|\s)language-([^\s]+)/)?.[1],c=(0,Pr._r)(s),d=(0,Pr.g_)("system",a);return i().createElement(Pr.df,{className:"dac-highlight dac-markdown-code",code:l,language:c,style:(0,Pr.al)(a,d.theme,!0),theme:d.theme})},Br=e=>{const{token:t}=Lr.A.useToken(),{ariaLabel:n,children:r,components:a,config:l,content:s,dir:c,hidden:d,id:u,key:p,lang:m,loading_state:h,role:f,streaming:g,tabIndex:b,...x}=e,{attributes:k,markdownProps:y}=(e=>{const t={},n={};return Object.entries(e).forEach(([e,r])=>{e.startsWith("aria-")||e.startsWith("data-")?t[e]=r:n[e]=r}),{attributes:t,markdownProps:n}})(x),w=(0,o.useMemo)(()=>({props:e}),[e]),v=(0,o.useMemo)(()=>(0,Dr.qF)(a,w),[a,w]),_=(0,o.useMemo)(()=>({code:Fr,...v}),[v]),T=(0,o.useMemo)(()=>(0,Dr.qF)(l,w),[l,w]),E=(0,o.useMemo)(()=>(0,Dr.qF)(g,w),[g,w]),S=String(y.className||""),A=S.split(/\s+/).includes("x-markdown-auto-theme"),C=(0,zr.c)(t.colorBgBase),R=/\bx-markdown-(?:light|dark)\b/.test(S),N=A||!R,I=(A?S.replace(/\bx-markdown-(?:auto-theme|light|dark)\b/g,""):S).replace(/\s+/g," ").trim(),O=N?`${I} ${C?"x-markdown-dark":"x-markdown-light"}`.trim():I,L=(0,o.useMemo)(()=>({...N?{"--font-size":`${t.fontSize}px`,"--primary-color":t.colorLink,"--primary-color-hover":t.colorLinkHover,"--heading-color":t.colorTextHeading,"--text-color":t.colorText,"--border-color":t.colorBorderSecondary,"--line-color":t.colorSplit,"--light-bg":t.colorFillTertiary,"--dark-bg":t.colorFillTertiary,"--table-head-bg":t.colorFillAlter,"--table-body-bg":t.colorBgContainer,"--cite-bg":t.colorFillSecondary,"--cite-hover-bg":t.colorFill,"--border-radius-middle":`${t.borderRadius}px`,"--border-radius-small":`${t.borderRadiusSM}px`,"--xmd-tail-color":t.colorText}:{},...y.style||{}}),[N,y.style,t]);return i().createElement("div",{...k,id:u,"aria-label":n,"data-dash-is-loading":(0,Mr.A_)(h)||void 0,dir:c,hidden:d,lang:m,role:f,tabIndex:b},i().createElement(Cr,{...y,components:_,className:O||void 0,config:T,content:s,style:L,streaming:E},r))}},"./src/utils/theme.ts"(e,t,n){"use strict";n.d(t,["c",0,e=>{const t=e.trim(),n=/^#([\da-f])([\da-f])([\da-f])$/i.exec(t),r=/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(t),o=/^rgba?\(\s*(\d+(?:\.\d+)?)\s*[, ]\s*(\d+(?:\.\d+)?)\s*[, ]\s*(\d+(?:\.\d+)?)/i.exec(t),i=n?n.slice(1).map(e=>parseInt(e+e,16)):r?r.slice(1).map(e=>parseInt(e,16)):o?o.slice(1).map(Number):null;return!!i&&.2126*i[0]+.7152*i[1]+.0722*i[2]<128}])}}]);