@nside/wefa 0.4.4 → 0.4.6

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 (231) hide show
  1. package/README.md +3 -1
  2. package/dist/LegalConsent-BxOWAO0s.js +126 -0
  3. package/dist/LegalConsent-ChW-GYBv.cjs +1 -0
  4. package/dist/LegalDocument-BM4HLw9A.js +1580 -0
  5. package/dist/LegalDocument-hhYW9BBO.cjs +114 -0
  6. package/dist/LoginView-BpDNpbMQ.cjs +1 -0
  7. package/dist/LoginView-bUKvV6JV.js +17 -0
  8. package/dist/LogoutView-BrAt0b2J.js +16 -0
  9. package/dist/LogoutView-D7D3LcfL.cjs +1 -0
  10. package/dist/angledown-DgMf_Vjv.cjs +2 -0
  11. package/dist/angledown-igq2UW-u.js +46 -0
  12. package/dist/badge-2r_VjcsG.js +102 -0
  13. package/dist/badge-DPwocFJ8.cjs +76 -0
  14. package/dist/basecomponent-CGerMr_k.cjs +146 -0
  15. package/dist/basecomponent-CRTLSsqZ.js +1278 -0
  16. package/dist/baseeditableholder-BEn83TQE.js +126 -0
  17. package/dist/baseeditableholder-Q1_XheNU.cjs +1 -0
  18. package/dist/baseicon-Ct8wtBEp.cjs +34 -0
  19. package/dist/baseicon-DdvhP0UT.js +90 -0
  20. package/dist/baseinput-B6KUYtrd.js +37 -0
  21. package/dist/baseinput-D8710HSg.cjs +1 -0
  22. package/dist/bff/openapi.yaml +7 -0
  23. package/dist/button-M3QREAcT.cjs +651 -0
  24. package/dist/button-xI3Wu15Z.js +311 -0
  25. package/dist/calendar-B8nJAQne.js +2891 -0
  26. package/dist/calendar-CW9WbT3C.cjs +477 -0
  27. package/dist/card-BXosepCe.js +57 -0
  28. package/dist/card-Db30JagR.cjs +32 -0
  29. package/dist/check-BYTdkWQh.js +46 -0
  30. package/dist/check-D4kxzECF.cjs +2 -0
  31. package/dist/checkbox-BIDoCr_X.cjs +142 -0
  32. package/dist/checkbox-TAWN7HJG.js +323 -0
  33. package/dist/chevrondown-DLIH6sRy.cjs +2 -0
  34. package/dist/chevrondown-v3qKRLEG.js +46 -0
  35. package/dist/chevronleft-DMbyAEgw.cjs +2 -0
  36. package/dist/chevronleft-dQlHS1Vs.js +46 -0
  37. package/dist/chevronright-B3qtGWZb.js +46 -0
  38. package/dist/chevronright-BisalZVe.cjs +2 -0
  39. package/dist/chip-CBoKYRL5.js +107 -0
  40. package/dist/chip-CLwNi1p_.cjs +54 -0
  41. package/dist/chunk-BK-Lzi7j.cjs +1 -0
  42. package/dist/chunk-DgQ9yJBH.js +17 -0
  43. package/dist/classnames-4RuV7Ryo.js +19 -0
  44. package/dist/classnames-DqVQ5xbt.cjs +1 -0
  45. package/dist/containers.cjs +23 -26
  46. package/dist/containers.d.ts +1 -136
  47. package/dist/containers.js +4476 -5541
  48. package/dist/focustrap-BhHF6zvb.js +558 -0
  49. package/dist/focustrap-C_v0dFmU.cjs +152 -0
  50. package/dist/inputnumber-CvuB8fHc.cjs +195 -0
  51. package/dist/inputnumber-UfGZdwk2.js +983 -0
  52. package/dist/inputtext-B-iUN1cV.js +108 -0
  53. package/dist/inputtext-D2Ay4aYr.cjs +79 -0
  54. package/dist/legalConsent-B3erdrHX.cjs +1 -0
  55. package/dist/legalConsent-kc_KWyR6.js +66 -0
  56. package/dist/lib.cjs +1331 -1
  57. package/dist/lib.d.ts +2 -748
  58. package/dist/lib.js +22977 -35
  59. package/dist/locales-4eL4-K7f.js +3168 -0
  60. package/dist/locales-DzyBr_JU.cjs +5 -0
  61. package/dist/markdown-Cb6J3R4j.js +28 -0
  62. package/dist/markdown-Dxqg6Ggd.cjs +1 -0
  63. package/dist/network-DD_yGfK6.js +2404 -0
  64. package/dist/network-uPe9-HeS.cjs +9 -0
  65. package/dist/network.cjs +1 -1
  66. package/dist/network.d.ts +3 -123
  67. package/dist/network.js +2 -48
  68. package/dist/portal-BbZw4bN9.js +265 -0
  69. package/dist/portal-pIcEXWz1.cjs +2 -0
  70. package/dist/{index-EDm9-cRY.cjs → progressbar-BPR5tRX7.cjs} +2 -2
  71. package/dist/progressbar-CzckKCUr.js +96 -0
  72. package/dist/rating-DsIxcJXU.js +332 -0
  73. package/dist/rating-HfRWRXuI.cjs +61 -0
  74. package/dist/ripple-CoTE8rF8.js +501 -0
  75. package/dist/ripple-UYfqtU0m.cjs +24 -0
  76. package/dist/router-CR-sxf1q.js +34 -0
  77. package/dist/router-qXH6kffG.cjs +1 -0
  78. package/dist/router.cjs +1 -1
  79. package/dist/router.d.ts +1 -74
  80. package/dist/router.js +2 -16
  81. package/dist/select-C05BBcmi.js +2357 -0
  82. package/dist/select-CZouTpLB.cjs +360 -0
  83. package/dist/src/components/AutoroutedBreadcrumb/AutoroutedBreadcrumb.vue.d.ts +9 -0
  84. package/dist/src/components/AutoroutedBreadcrumb/index.d.ts +1 -0
  85. package/dist/src/components/ControlBarComponent/ConfiguredControlBarComponent.vue.d.ts +30 -0
  86. package/dist/src/components/ControlBarComponent/ControlBarComponent.vue.d.ts +17 -0
  87. package/dist/src/components/ControlBarComponent/ControlBarItemComponent.vue.d.ts +20 -0
  88. package/dist/src/components/ControlBarComponent/index.d.ts +3 -0
  89. package/dist/src/components/DashboardComponent/DashboardComponent.vue.d.ts +21 -0
  90. package/dist/src/components/DashboardComponent/DashboardGroupComponent.vue.d.ts +25 -0
  91. package/dist/src/components/DashboardComponent/DashboardPanelComponent.vue.d.ts +26 -0
  92. package/dist/src/components/DashboardComponent/index.d.ts +3 -0
  93. package/dist/src/components/FormComponent/FormComponent.vue.d.ts +32 -0
  94. package/dist/src/components/FormComponent/index.d.ts +1 -0
  95. package/dist/src/components/GanttChartComponent/GanttChartComponent.vue.d.ts +26 -0
  96. package/dist/src/components/GanttChartComponent/GanttChartGrid.vue.d.ts +34 -0
  97. package/dist/src/components/GanttChartComponent/GanttChartHeaderGrid.vue.d.ts +7 -0
  98. package/dist/src/components/GanttChartComponent/GanttChartHeaderLabel.vue.d.ts +6 -0
  99. package/dist/src/components/GanttChartComponent/GanttChartLinksOverlay.vue.d.ts +12 -0
  100. package/dist/src/components/GanttChartComponent/GanttChartRowGrid.vue.d.ts +55 -0
  101. package/dist/src/components/GanttChartComponent/GanttChartRowLabel.vue.d.ts +7 -0
  102. package/dist/src/components/GanttChartComponent/composables/useGanttLinks.d.ts +37 -0
  103. package/dist/src/components/GanttChartComponent/composables/useGanttSizing.d.ts +9 -0
  104. package/dist/src/components/GanttChartComponent/ganttChartLayout.d.ts +42 -0
  105. package/dist/src/components/GanttChartComponent/ganttChartTypes.d.ts +22 -0
  106. package/dist/src/components/GanttChartComponent/index.d.ts +1 -0
  107. package/dist/src/components/NetworkButton/ApiMutationButton.vue.d.ts +3 -0
  108. package/dist/src/components/NetworkButton/ApiQueryButton.vue.d.ts +3 -0
  109. package/dist/src/components/NetworkButton/index.d.ts +3 -0
  110. package/dist/src/components/NetworkButton/types.d.ts +39 -0
  111. package/dist/src/components/NotFound/NotFound.vue.d.ts +26 -0
  112. package/dist/src/components/NotFound/index.d.ts +1 -0
  113. package/dist/src/components/PageComponent/PageComponent.vue.d.ts +22 -0
  114. package/dist/src/components/PageComponent/index.d.ts +1 -0
  115. package/dist/src/components/PlotlyComponent/PlotlyComponent.vue.d.ts +14 -0
  116. package/dist/src/components/PlotlyComponent/PlotlyFromTableComponent.vue.d.ts +16 -0
  117. package/dist/src/components/PlotlyComponent/index.d.ts +2 -0
  118. package/dist/src/components/TableComponent/TableComponent.vue.d.ts +29 -0
  119. package/dist/src/components/TableComponent/index.d.ts +1 -0
  120. package/dist/src/composables/useComponentResolver.d.ts +9 -0
  121. package/dist/src/composables/useValidatorResolver.d.ts +9 -0
  122. package/dist/src/containers/BareContainer/BareContainer.vue.d.ts +8 -0
  123. package/dist/src/containers/BareContainer/index.d.ts +2 -0
  124. package/dist/src/containers/LayoutContainer/LayoutContainer.vue.d.ts +13 -0
  125. package/dist/src/containers/LayoutContainer/MobileNavigationComponent/MobileNavigationComponent.vue.d.ts +7 -0
  126. package/dist/src/containers/LayoutContainer/SideNavigationComponent/MainComponent/MainComponent.vue.d.ts +6 -0
  127. package/dist/src/containers/LayoutContainer/SideNavigationComponent/MainComponent/NavigationLinkComponent.vue.d.ts +11 -0
  128. package/dist/src/containers/LayoutContainer/SideNavigationComponent/SideNavigationComponent.vue.d.ts +7 -0
  129. package/dist/src/containers/LayoutContainer/SideNavigationComponent/TopComponent/TopComponent.vue.d.ts +7 -0
  130. package/dist/src/containers/LayoutContainer/index.d.ts +1 -0
  131. package/dist/src/containers/NavbarContainer/NavbarContainer.vue.d.ts +6 -0
  132. package/dist/src/containers/NavbarContainer/index.d.ts +2 -0
  133. package/dist/src/containers/RoutedTabsComponent/RoutedTabsComponent.vue.d.ts +12 -0
  134. package/dist/src/containers/RoutedTabsComponent/index.d.ts +1 -0
  135. package/dist/src/containers/SideMenuContainer/SideMenuContainer.vue.d.ts +7 -0
  136. package/dist/src/containers/SideMenuContainer/index.d.ts +2 -0
  137. package/dist/src/containers/helpers.d.ts +47 -0
  138. package/dist/src/containers/index.d.ts +6 -0
  139. package/dist/src/lib.d.ts +24 -0
  140. package/dist/src/locales/index.d.ts +30 -0
  141. package/dist/src/network/apiClient.d.ts +32 -0
  142. package/dist/src/network/axios.d.ts +4 -0
  143. package/dist/src/network/index.d.ts +3 -0
  144. package/dist/src/network/typedApiClient.d.ts +58 -0
  145. package/dist/src/plugins/cookies/index.d.ts +51 -0
  146. package/dist/src/plugins/cookies/views/CookieBar.vue.d.ts +2 -0
  147. package/dist/src/plugins/cookies/views/CookiesConsent.vue.d.ts +2 -0
  148. package/dist/src/plugins/index.d.ts +1 -0
  149. package/dist/src/plugins/legalConsent/index.d.ts +89 -0
  150. package/dist/src/plugins/legalConsent/views/LegalConsent.vue.d.ts +2 -0
  151. package/dist/src/plugins/legalConsent/views/LegalDocument.vue.d.ts +8 -0
  152. package/dist/src/router/guards.d.ts +28 -0
  153. package/dist/src/router/index.d.ts +3 -0
  154. package/dist/src/router/libRoutes.d.ts +2 -0
  155. package/dist/src/router/types.d.ts +31 -0
  156. package/dist/src/stores/backend/common.d.ts +17 -0
  157. package/dist/src/stores/backend/constants.d.ts +19 -0
  158. package/dist/src/stores/backend/schemes/jwt.d.ts +22 -0
  159. package/dist/src/stores/backend/schemes/oauth.d.ts +14 -0
  160. package/dist/src/stores/backend/schemes/token.d.ts +20 -0
  161. package/dist/src/stores/backend/types.d.ts +88 -0
  162. package/dist/src/stores/backend.d.ts +5 -0
  163. package/dist/src/stores/darkMode.d.ts +29 -0
  164. package/dist/src/stores/index.d.ts +2 -0
  165. package/dist/src/theme/index.d.ts +2 -0
  166. package/dist/src/theme/nside.d.ts +2 -0
  167. package/dist/src/utils/color.d.ts +33 -0
  168. package/dist/src/utils/componentRegistry.d.ts +15 -0
  169. package/dist/src/utils/markdown.d.ts +24 -0
  170. package/dist/src/utils/translations.d.ts +8 -0
  171. package/dist/src/utils/validatorRegistry.d.ts +8 -0
  172. package/dist/src/views/LoginView.vue.d.ts +5 -0
  173. package/dist/src/views/LogoutView.vue.d.ts +2 -0
  174. package/dist/stores-BAbCgIKW.cjs +1 -0
  175. package/dist/stores-C5CUNzM_.js +203 -0
  176. package/dist/textarea-DUmMHVXf.cjs +84 -0
  177. package/dist/textarea-f6-j7m1N.js +131 -0
  178. package/dist/times--t6-zeg6.js +46 -0
  179. package/dist/times-GcOHYs3E.cjs +2 -0
  180. package/dist/timescircle-CHGzPrwL.cjs +2 -0
  181. package/dist/timescircle-_NJIsGD1.js +48 -0
  182. package/dist/wefa.css +2 -1
  183. package/package.json +42 -35
  184. package/scripts/verify-package-types.mjs +103 -0
  185. package/src/components/DashboardComponent/DashboardGroupComponent.vue +1 -1
  186. package/src/components/NetworkButton/__tests__/ApiMutationButton.test.ts +12 -3
  187. package/src/components/NetworkButton/__tests__/ApiQueryButton.test.ts +12 -3
  188. package/src/containers/LayoutContainer/SideNavigationComponent/MainComponent/NavigationLinkComponent.vue +1 -1
  189. package/src/containers/SideMenuContainer/SideMenuContainer.vue +14 -3
  190. package/src/containers/helpers.ts +1 -1
  191. package/src/router/guards.ts +2 -2
  192. package/src/stores/__tests__/backend/jwt.test.ts +6 -6
  193. package/src/stores/__tests__/backend/oauth.test.ts +1 -1
  194. package/src/stores/__tests__/backend/token.test.ts +5 -5
  195. package/src/stores/backend/schemes/jwt.ts +3 -3
  196. package/src/stores/backend/schemes/token.ts +6 -7
  197. package/dist/LegalConsent-DQ7fkgVc.cjs +0 -1
  198. package/dist/LegalConsent-OLyvuzRY.js +0 -151
  199. package/dist/LegalDocument-B-nntRW7.cjs +0 -109
  200. package/dist/LegalDocument-BKebNzIK.js +0 -1330
  201. package/dist/LoginView-DUPa_PsC.js +0 -24
  202. package/dist/LoginView-Dihs8n_X.cjs +0 -1
  203. package/dist/LogoutView-DAh7MrFi.js +0 -19
  204. package/dist/LogoutView-Fl3nfeJ0.cjs +0 -1
  205. package/dist/apiClient-BHDjT0dU.js +0 -928
  206. package/dist/apiClient-Cr0IvG5Z.cjs +0 -1
  207. package/dist/axios-CZvsFspN.js +0 -1887
  208. package/dist/axios-DMqeKDaq.cjs +0 -6
  209. package/dist/index--_rUTrqU.js +0 -1414
  210. package/dist/index-05ASaj7N.cjs +0 -477
  211. package/dist/index-B7hJ2pku.cjs +0 -61
  212. package/dist/index-BHSxFTgZ.js +0 -49
  213. package/dist/index-BaA_oL1s.cjs +0 -32
  214. package/dist/index-Be5h48vc.js +0 -3530
  215. package/dist/index-Becfy0pF.cjs +0 -2
  216. package/dist/index-CPv4agmV.js +0 -400
  217. package/dist/index-CgAb-gZi.js +0 -89
  218. package/dist/index-DFSkcsx-.cjs +0 -943
  219. package/dist/index-DGUVQqZw.js +0 -208
  220. package/dist/index-DRozw3P8.js +0 -167
  221. package/dist/index-DfCQoHSf.cjs +0 -146
  222. package/dist/index-DkuJMEY1.js +0 -6731
  223. package/dist/index-Dv6jyKbT.js +0 -47
  224. package/dist/index-IGN7_cyg.cjs +0 -2
  225. package/dist/index-lFl6UsTa.js +0 -212
  226. package/dist/index-lQmq7gxp.cjs +0 -54
  227. package/dist/index-t0sdL3f2.cjs +0 -84
  228. package/dist/lib-DZzubLGt.js +0 -26376
  229. package/dist/lib-lTzD7ltX.cjs +0 -2104
  230. package/dist/libRoutes-B-H3e9wZ.js +0 -22
  231. package/dist/libRoutes-Cl3TklhN.cjs +0 -1
@@ -0,0 +1,1580 @@
1
+ import { t as e } from "./classnames-4RuV7Ryo.js";
2
+ import { r as t, t as n } from "./basecomponent-CRTLSsqZ.js";
3
+ import { n as r } from "./network-DD_yGfK6.js";
4
+ import { a as i } from "./legalConsent-kc_KWyR6.js";
5
+ import { t as a } from "./markdown-Cb6J3R4j.js";
6
+ import { createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, defineComponent as u, mergeProps as d, normalizeClass as ee, onMounted as f, openBlock as p, ref as te, unref as ne, useTemplateRef as re, watch as ie } from "vue";
7
+ //#region node_modules/marked/lib/marked.esm.js
8
+ function m() {
9
+ return {
10
+ async: !1,
11
+ breaks: !1,
12
+ extensions: null,
13
+ gfm: !0,
14
+ hooks: null,
15
+ pedantic: !1,
16
+ renderer: null,
17
+ silent: !1,
18
+ tokenizer: null,
19
+ walkTokens: null
20
+ };
21
+ }
22
+ var h = m();
23
+ function ae(e) {
24
+ h = e;
25
+ }
26
+ var g = { exec: () => null };
27
+ function _(e, t = "") {
28
+ let n = typeof e == "string" ? e : e.source, r = {
29
+ replace: (e, t) => {
30
+ let i = typeof t == "string" ? t : t.source;
31
+ return i = i.replace(v.caret, "$1"), n = n.replace(e, i), r;
32
+ },
33
+ getRegex: () => new RegExp(n, t)
34
+ };
35
+ return r;
36
+ }
37
+ var oe = (() => {
38
+ try {
39
+ return !0;
40
+ } catch {
41
+ return !1;
42
+ }
43
+ })(), v = {
44
+ codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
45
+ outputLinkReplace: /\\([\[\]])/g,
46
+ indentCodeCompensation: /^(\s+)(?:```)/,
47
+ beginningSpace: /^\s+/,
48
+ endingHash: /#$/,
49
+ startingSpaceChar: /^ /,
50
+ endingSpaceChar: / $/,
51
+ nonSpaceChar: /[^ ]/,
52
+ newLineCharGlobal: /\n/g,
53
+ tabCharGlobal: /\t/g,
54
+ multipleSpaceGlobal: /\s+/g,
55
+ blankLine: /^[ \t]*$/,
56
+ doubleBlankLine: /\n[ \t]*\n[ \t]*$/,
57
+ blockquoteStart: /^ {0,3}>/,
58
+ blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g,
59
+ blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm,
60
+ listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g,
61
+ listIsTask: /^\[[ xX]\] +\S/,
62
+ listReplaceTask: /^\[[ xX]\] +/,
63
+ listTaskCheckbox: /\[[ xX]\]/,
64
+ anyLine: /\n.*\n/,
65
+ hrefBrackets: /^<(.*)>$/,
66
+ tableDelimiter: /[:|]/,
67
+ tableAlignChars: /^\||\| *$/g,
68
+ tableRowBlankLine: /\n[ \t]*$/,
69
+ tableAlignRight: /^ *-+: *$/,
70
+ tableAlignCenter: /^ *:-+: *$/,
71
+ tableAlignLeft: /^ *:-+ *$/,
72
+ startATag: /^<a /i,
73
+ endATag: /^<\/a>/i,
74
+ startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i,
75
+ endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i,
76
+ startAngleBracket: /^</,
77
+ endAngleBracket: />$/,
78
+ pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/,
79
+ unicodeAlphaNumeric: /[\p{L}\p{N}]/u,
80
+ escapeTest: /[&<>"']/,
81
+ escapeReplace: /[&<>"']/g,
82
+ escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,
83
+ escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,
84
+ caret: /(^|[^\[])\^/g,
85
+ percentDecode: /%25/g,
86
+ findPipe: /\|/g,
87
+ splitPipe: / \|/,
88
+ slashPipe: /\\\|/g,
89
+ carriageReturn: /\r\n|\r/g,
90
+ spaceLine: /^ +$/gm,
91
+ notSpaceStart: /^\S*/,
92
+ endingNewline: /\n$/,
93
+ listItemRegex: (e) => RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),
94
+ nextBulletRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),
95
+ hrRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),
96
+ fencesBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}(?:\`\`\`|~~~)`),
97
+ headingBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}#`),
98
+ htmlBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i"),
99
+ blockquoteBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}>`)
100
+ }, se = /^(?:[ \t]*(?:\n|$))+/, ce = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, le = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, y = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, ue = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, b = / {0,3}(?:[*+-]|\d{1,9}[.)])/, x = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, S = _(x).replace(/bull/g, b).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(), de = _(x).replace(/bull/g, b).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(), C = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, fe = /^[^\n]+/, w = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, pe = _(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", w).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), me = _(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, b).getRegex(), T = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", E = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, he = _("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", E).replace("tag", T).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), D = _(C).replace("hr", y).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", T).getRegex(), O = {
101
+ blockquote: _(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", D).getRegex(),
102
+ code: ce,
103
+ def: pe,
104
+ fences: le,
105
+ heading: ue,
106
+ hr: y,
107
+ html: he,
108
+ lheading: S,
109
+ list: me,
110
+ newline: se,
111
+ paragraph: D,
112
+ table: g,
113
+ text: fe
114
+ }, k = _("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", y).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", T).getRegex(), ge = {
115
+ ...O,
116
+ lheading: de,
117
+ table: k,
118
+ paragraph: _(C).replace("hr", y).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", k).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", T).getRegex()
119
+ }, _e = {
120
+ ...O,
121
+ html: _("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", E).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(),
122
+ def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
123
+ heading: /^(#{1,6})(.*)(?:\n+|$)/,
124
+ fences: g,
125
+ lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
126
+ paragraph: _(C).replace("hr", y).replace("heading", " *#{1,6} *[^\n]").replace("lheading", S).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
127
+ }, ve = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ye = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, A = /^( {2,}|\\)\n(?!\s*$)/, be = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, j = /[\p{P}\p{S}]/u, M = /[\s\p{P}\p{S}]/u, N = /[^\s\p{P}\p{S}]/u, xe = _(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, M).getRegex(), Se = /(?!~)[\p{P}\p{S}]/u, Ce = /(?!~)[\s\p{P}\p{S}]/u, we = /(?:[^\s\p{P}\p{S}]|~)/u, Te = _(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", oe ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), Ee = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, De = _(Ee, "u").replace(/punct/g, j).getRegex(), Oe = _(Ee, "u").replace(/punct/g, Se).getRegex(), ke = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Ae = _(ke, "gu").replace(/notPunctSpace/g, N).replace(/punctSpace/g, M).replace(/punct/g, j).getRegex(), je = _(ke, "gu").replace(/notPunctSpace/g, we).replace(/punctSpace/g, Ce).replace(/punct/g, Se).getRegex(), Me = _("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, N).replace(/punctSpace/g, M).replace(/punct/g, j).getRegex(), Ne = _(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, j).getRegex(), Pe = _("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, N).replace(/punctSpace/g, M).replace(/punct/g, j).getRegex(), Fe = _(/\\(punct)/, "gu").replace(/punct/g, j).getRegex(), Ie = _(/^<(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(), Le = _(E).replace("(?:-->|$)", "-->").getRegex(), Re = _("^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", Le).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), P = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, ze = _(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", P).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), F = _(/^!?\[(label)\]\[(ref)\]/).replace("label", P).replace("ref", w).getRegex(), I = _(/^!?\[(ref)\](?:\[\])?/).replace("ref", w).getRegex(), Be = _("reflink|nolink(?!\\()", "g").replace("reflink", F).replace("nolink", I).getRegex(), L = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, R = {
128
+ _backpedal: g,
129
+ anyPunctuation: Fe,
130
+ autolink: Ie,
131
+ blockSkip: Te,
132
+ br: A,
133
+ code: ye,
134
+ del: g,
135
+ delLDelim: g,
136
+ delRDelim: g,
137
+ emStrongLDelim: De,
138
+ emStrongRDelimAst: Ae,
139
+ emStrongRDelimUnd: Me,
140
+ escape: ve,
141
+ link: ze,
142
+ nolink: I,
143
+ punctuation: xe,
144
+ reflink: F,
145
+ reflinkSearch: Be,
146
+ tag: Re,
147
+ text: be,
148
+ url: g
149
+ }, Ve = {
150
+ ...R,
151
+ link: _(/^!?\[(label)\]\((.*?)\)/).replace("label", P).getRegex(),
152
+ reflink: _(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", P).getRegex()
153
+ }, z = {
154
+ ...R,
155
+ emStrongRDelimAst: je,
156
+ emStrongLDelim: Oe,
157
+ delLDelim: Ne,
158
+ delRDelim: Pe,
159
+ url: _(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", L).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
160
+ _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
161
+ del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
162
+ text: _(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", L).getRegex()
163
+ }, He = {
164
+ ...z,
165
+ br: _(A).replace("{2,}", "*").getRegex(),
166
+ text: _(z.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
167
+ }, B = {
168
+ normal: O,
169
+ gfm: ge,
170
+ pedantic: _e
171
+ }, V = {
172
+ normal: R,
173
+ gfm: z,
174
+ breaks: He,
175
+ pedantic: Ve
176
+ }, Ue = {
177
+ "&": "&amp;",
178
+ "<": "&lt;",
179
+ ">": "&gt;",
180
+ "\"": "&quot;",
181
+ "'": "&#39;"
182
+ }, We = (e) => Ue[e];
183
+ function H(e, t) {
184
+ if (t) {
185
+ if (v.escapeTest.test(e)) return e.replace(v.escapeReplace, We);
186
+ } else if (v.escapeTestNoEncode.test(e)) return e.replace(v.escapeReplaceNoEncode, We);
187
+ return e;
188
+ }
189
+ function Ge(e) {
190
+ try {
191
+ e = encodeURI(e).replace(v.percentDecode, "%");
192
+ } catch {
193
+ return null;
194
+ }
195
+ return e;
196
+ }
197
+ function U(e, t) {
198
+ let n = e.replace(v.findPipe, (e, t, n) => {
199
+ let r = !1, i = t;
200
+ for (; --i >= 0 && n[i] === "\\";) r = !r;
201
+ return r ? "|" : " |";
202
+ }).split(v.splitPipe), r = 0;
203
+ if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) if (n.length > t) n.splice(t);
204
+ else for (; n.length < t;) n.push("");
205
+ for (; r < n.length; r++) n[r] = n[r].trim().replace(v.slashPipe, "|");
206
+ return n;
207
+ }
208
+ function W(e, t, n) {
209
+ let r = e.length;
210
+ if (r === 0) return "";
211
+ let i = 0;
212
+ for (; i < r;) {
213
+ let a = e.charAt(r - i - 1);
214
+ if (a === t && !n) i++;
215
+ else if (a !== t && n) i++;
216
+ else break;
217
+ }
218
+ return e.slice(0, r - i);
219
+ }
220
+ function Ke(e) {
221
+ let t = e.split("\n"), n = t.length - 1;
222
+ for (; n >= 0 && !t[n].trim();) n--;
223
+ return t.length - n <= 2 ? e : t.slice(0, n + 1).join("\n");
224
+ }
225
+ function qe(e, t) {
226
+ if (e.indexOf(t[1]) === -1) return -1;
227
+ let n = 0;
228
+ for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
229
+ else if (e[r] === t[0]) n++;
230
+ else if (e[r] === t[1] && (n--, n < 0)) return r;
231
+ return n > 0 ? -2 : -1;
232
+ }
233
+ function Je(e, t = 0) {
234
+ let n = t, r = "";
235
+ for (let t of e) if (t === " ") {
236
+ let e = 4 - n % 4;
237
+ r += " ".repeat(e), n += e;
238
+ } else r += t, n++;
239
+ return r;
240
+ }
241
+ function Ye(e, t, n, r, i) {
242
+ let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
243
+ r.state.inLink = !0;
244
+ let c = {
245
+ type: e[0].charAt(0) === "!" ? "image" : "link",
246
+ raw: n,
247
+ href: a,
248
+ title: o,
249
+ text: s,
250
+ tokens: r.inlineTokens(s)
251
+ };
252
+ return r.state.inLink = !1, c;
253
+ }
254
+ function Xe(e, t, n) {
255
+ let r = e.match(n.other.indentCodeCompensation);
256
+ if (r === null) return t;
257
+ let i = r[1];
258
+ return t.split("\n").map((e) => {
259
+ let t = e.match(n.other.beginningSpace);
260
+ if (t === null) return e;
261
+ let [r] = t;
262
+ return r.length >= i.length ? e.slice(i.length) : e;
263
+ }).join("\n");
264
+ }
265
+ var G = class {
266
+ options;
267
+ rules;
268
+ lexer;
269
+ constructor(e) {
270
+ this.options = e || h;
271
+ }
272
+ space(e) {
273
+ let t = this.rules.block.newline.exec(e);
274
+ if (t && t[0].length > 0) return {
275
+ type: "space",
276
+ raw: t[0]
277
+ };
278
+ }
279
+ code(e) {
280
+ let t = this.rules.block.code.exec(e);
281
+ if (t) {
282
+ let e = this.options.pedantic ? t[0] : Ke(t[0]);
283
+ return {
284
+ type: "code",
285
+ raw: e,
286
+ codeBlockStyle: "indented",
287
+ text: e.replace(this.rules.other.codeRemoveIndent, "")
288
+ };
289
+ }
290
+ }
291
+ fences(e) {
292
+ let t = this.rules.block.fences.exec(e);
293
+ if (t) {
294
+ let e = t[0], n = Xe(e, t[3] || "", this.rules);
295
+ return {
296
+ type: "code",
297
+ raw: e,
298
+ lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2],
299
+ text: n
300
+ };
301
+ }
302
+ }
303
+ heading(e) {
304
+ let t = this.rules.block.heading.exec(e);
305
+ if (t) {
306
+ let e = t[2].trim();
307
+ if (this.rules.other.endingHash.test(e)) {
308
+ let t = W(e, "#");
309
+ (this.options.pedantic || !t || this.rules.other.endingSpaceChar.test(t)) && (e = t.trim());
310
+ }
311
+ return {
312
+ type: "heading",
313
+ raw: W(t[0], "\n"),
314
+ depth: t[1].length,
315
+ text: e,
316
+ tokens: this.lexer.inline(e)
317
+ };
318
+ }
319
+ }
320
+ hr(e) {
321
+ let t = this.rules.block.hr.exec(e);
322
+ if (t) return {
323
+ type: "hr",
324
+ raw: W(t[0], "\n")
325
+ };
326
+ }
327
+ blockquote(e) {
328
+ let t = this.rules.block.blockquote.exec(e);
329
+ if (t) {
330
+ let e = W(t[0], "\n").split("\n"), n = "", r = "", i = [];
331
+ for (; e.length > 0;) {
332
+ let t = !1, a = [], o;
333
+ for (o = 0; o < e.length; o++) if (this.rules.other.blockquoteStart.test(e[o])) a.push(e[o]), t = !0;
334
+ else if (!t) a.push(e[o]);
335
+ else break;
336
+ e = e.slice(o);
337
+ let s = a.join("\n"), c = s.replace(this.rules.other.blockquoteSetextReplace, "\n $1").replace(this.rules.other.blockquoteSetextReplace2, "");
338
+ n = n ? `${n}
339
+ ${s}` : s, r = r ? `${r}
340
+ ${c}` : c;
341
+ let l = this.lexer.state.top;
342
+ if (this.lexer.state.top = !0, this.lexer.blockTokens(c, i, !0), this.lexer.state.top = l, e.length === 0) break;
343
+ let u = i.at(-1);
344
+ if (u?.type === "code") break;
345
+ if (u?.type === "blockquote") {
346
+ let t = u, a = t.raw + "\n" + e.join("\n"), o = this.blockquote(a);
347
+ i[i.length - 1] = o, n = n.substring(0, n.length - t.raw.length) + o.raw, r = r.substring(0, r.length - t.text.length) + o.text;
348
+ break;
349
+ } else if (u?.type === "list") {
350
+ let t = u, a = t.raw + "\n" + e.join("\n"), o = this.list(a);
351
+ i[i.length - 1] = o, n = n.substring(0, n.length - u.raw.length) + o.raw, r = r.substring(0, r.length - t.raw.length) + o.raw, e = a.substring(i.at(-1).raw.length).split("\n");
352
+ continue;
353
+ }
354
+ }
355
+ return {
356
+ type: "blockquote",
357
+ raw: n,
358
+ tokens: i,
359
+ text: r
360
+ };
361
+ }
362
+ }
363
+ list(e) {
364
+ let t = this.rules.block.list.exec(e);
365
+ if (t) {
366
+ let n = t[1].trim(), r = n.length > 1, i = {
367
+ type: "list",
368
+ raw: "",
369
+ ordered: r,
370
+ start: r ? +n.slice(0, -1) : "",
371
+ loose: !1,
372
+ items: []
373
+ };
374
+ n = r ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r ? n : "[*+-]");
375
+ let a = this.rules.other.listItemRegex(n), o = !1;
376
+ for (; e;) {
377
+ let n = !1, r = "", s = "";
378
+ if (!(t = a.exec(e)) || this.rules.block.hr.test(e)) break;
379
+ r = t[0], e = e.substring(r.length);
380
+ let c = Je(t[2].split("\n", 1)[0], t[1].length), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
381
+ if (this.options.pedantic ? (d = 2, s = c.trimStart()) : u ? d = t[1].length + 1 : (d = c.search(this.rules.other.nonSpaceChar), d = d > 4 ? 1 : d, s = c.slice(d), d += t[1].length), u && this.rules.other.blankLine.test(l) && (r += l + "\n", e = e.substring(l.length + 1), n = !0), !n) {
382
+ let t = this.rules.other.nextBulletRegex(d), n = this.rules.other.hrRegex(d), i = this.rules.other.fencesBeginRegex(d), a = this.rules.other.headingBeginRegex(d), o = this.rules.other.htmlBeginRegex(d), ee = this.rules.other.blockquoteBeginRegex(d);
383
+ for (; e;) {
384
+ let f = e.split("\n", 1)[0], p;
385
+ if (l = f, this.options.pedantic ? (l = l.replace(this.rules.other.listReplaceNesting, " "), p = l) : p = l.replace(this.rules.other.tabCharGlobal, " "), i.test(l) || a.test(l) || o.test(l) || ee.test(l) || t.test(l) || n.test(l)) break;
386
+ if (p.search(this.rules.other.nonSpaceChar) >= d || !l.trim()) s += "\n" + p.slice(d);
387
+ else {
388
+ if (u || c.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || i.test(c) || a.test(c) || n.test(c)) break;
389
+ s += "\n" + l;
390
+ }
391
+ u = !l.trim(), r += f + "\n", e = e.substring(f.length + 1), c = p.slice(d);
392
+ }
393
+ }
394
+ i.loose || (o ? i.loose = !0 : this.rules.other.doubleBlankLine.test(r) && (o = !0)), i.items.push({
395
+ type: "list_item",
396
+ raw: r,
397
+ task: !!this.options.gfm && this.rules.other.listIsTask.test(s),
398
+ loose: !1,
399
+ text: s,
400
+ tokens: []
401
+ }), i.raw += r;
402
+ }
403
+ let s = i.items.at(-1);
404
+ if (s) s.raw = s.raw.trimEnd(), s.text = s.text.trimEnd();
405
+ else return;
406
+ i.raw = i.raw.trimEnd();
407
+ for (let e of i.items) {
408
+ if (this.lexer.state.top = !1, e.tokens = this.lexer.blockTokens(e.text, []), e.task) {
409
+ if (e.text = e.text.replace(this.rules.other.listReplaceTask, ""), e.tokens[0]?.type === "text" || e.tokens[0]?.type === "paragraph") {
410
+ e.tokens[0].raw = e.tokens[0].raw.replace(this.rules.other.listReplaceTask, ""), e.tokens[0].text = e.tokens[0].text.replace(this.rules.other.listReplaceTask, "");
411
+ for (let e = this.lexer.inlineQueue.length - 1; e >= 0; e--) if (this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)) {
412
+ this.lexer.inlineQueue[e].src = this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask, "");
413
+ break;
414
+ }
415
+ }
416
+ let t = this.rules.other.listTaskCheckbox.exec(e.raw);
417
+ if (t) {
418
+ let n = {
419
+ type: "checkbox",
420
+ raw: t[0] + " ",
421
+ checked: t[0] !== "[ ]"
422
+ };
423
+ e.checked = n.checked, i.loose ? e.tokens[0] && ["paragraph", "text"].includes(e.tokens[0].type) && "tokens" in e.tokens[0] && e.tokens[0].tokens ? (e.tokens[0].raw = n.raw + e.tokens[0].raw, e.tokens[0].text = n.raw + e.tokens[0].text, e.tokens[0].tokens.unshift(n)) : e.tokens.unshift({
424
+ type: "paragraph",
425
+ raw: n.raw,
426
+ text: n.raw,
427
+ tokens: [n]
428
+ }) : e.tokens.unshift(n);
429
+ }
430
+ }
431
+ if (!i.loose) {
432
+ let t = e.tokens.filter((e) => e.type === "space");
433
+ i.loose = t.length > 0 && t.some((e) => this.rules.other.anyLine.test(e.raw));
434
+ }
435
+ }
436
+ if (i.loose) for (let e of i.items) {
437
+ e.loose = !0;
438
+ for (let t of e.tokens) t.type === "text" && (t.type = "paragraph");
439
+ }
440
+ return i;
441
+ }
442
+ }
443
+ html(e) {
444
+ let t = this.rules.block.html.exec(e);
445
+ if (t) {
446
+ let e = Ke(t[0]);
447
+ return {
448
+ type: "html",
449
+ block: !0,
450
+ raw: e,
451
+ pre: t[1] === "pre" || t[1] === "script" || t[1] === "style",
452
+ text: e
453
+ };
454
+ }
455
+ }
456
+ def(e) {
457
+ let t = this.rules.block.def.exec(e);
458
+ if (t) {
459
+ 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];
460
+ return {
461
+ type: "def",
462
+ tag: e,
463
+ raw: W(t[0], "\n"),
464
+ href: n,
465
+ title: r
466
+ };
467
+ }
468
+ }
469
+ table(e) {
470
+ let t = this.rules.block.table.exec(e);
471
+ if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
472
+ let n = U(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
473
+ type: "table",
474
+ raw: W(t[0], "\n"),
475
+ header: [],
476
+ align: [],
477
+ rows: []
478
+ };
479
+ if (n.length === r.length) {
480
+ for (let e of r) this.rules.other.tableAlignRight.test(e) ? a.align.push("right") : this.rules.other.tableAlignCenter.test(e) ? a.align.push("center") : this.rules.other.tableAlignLeft.test(e) ? a.align.push("left") : a.align.push(null);
481
+ for (let e = 0; e < n.length; e++) a.header.push({
482
+ text: n[e],
483
+ tokens: this.lexer.inline(n[e]),
484
+ header: !0,
485
+ align: a.align[e]
486
+ });
487
+ for (let e of i) a.rows.push(U(e, a.header.length).map((e, t) => ({
488
+ text: e,
489
+ tokens: this.lexer.inline(e),
490
+ header: !1,
491
+ align: a.align[t]
492
+ })));
493
+ return a;
494
+ }
495
+ }
496
+ lheading(e) {
497
+ let t = this.rules.block.lheading.exec(e);
498
+ if (t) {
499
+ let e = t[1].trim();
500
+ return {
501
+ type: "heading",
502
+ raw: W(t[0], "\n"),
503
+ depth: t[2].charAt(0) === "=" ? 1 : 2,
504
+ text: e,
505
+ tokens: this.lexer.inline(e)
506
+ };
507
+ }
508
+ }
509
+ paragraph(e) {
510
+ let t = this.rules.block.paragraph.exec(e);
511
+ if (t) {
512
+ let e = t[1].charAt(t[1].length - 1) === "\n" ? t[1].slice(0, -1) : t[1];
513
+ return {
514
+ type: "paragraph",
515
+ raw: t[0],
516
+ text: e,
517
+ tokens: this.lexer.inline(e)
518
+ };
519
+ }
520
+ }
521
+ text(e) {
522
+ let t = this.rules.block.text.exec(e);
523
+ if (t) return {
524
+ type: "text",
525
+ raw: t[0],
526
+ text: t[0],
527
+ tokens: this.lexer.inline(t[0])
528
+ };
529
+ }
530
+ escape(e) {
531
+ let t = this.rules.inline.escape.exec(e);
532
+ if (t) return {
533
+ type: "escape",
534
+ raw: t[0],
535
+ text: t[1]
536
+ };
537
+ }
538
+ tag(e) {
539
+ let t = this.rules.inline.tag.exec(e);
540
+ 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), {
541
+ type: "html",
542
+ raw: t[0],
543
+ inLink: this.lexer.state.inLink,
544
+ inRawBlock: this.lexer.state.inRawBlock,
545
+ block: !1,
546
+ text: t[0]
547
+ };
548
+ }
549
+ link(e) {
550
+ let t = this.rules.inline.link.exec(e);
551
+ if (t) {
552
+ let e = t[2].trim();
553
+ if (!this.options.pedantic && this.rules.other.startAngleBracket.test(e)) {
554
+ if (!this.rules.other.endAngleBracket.test(e)) return;
555
+ let t = W(e.slice(0, -1), "\\");
556
+ if ((e.length - t.length) % 2 == 0) return;
557
+ } else {
558
+ let e = qe(t[2], "()");
559
+ if (e === -2) return;
560
+ if (e > -1) {
561
+ let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
562
+ t[2] = t[2].substring(0, e), t[0] = t[0].substring(0, n).trim(), t[3] = "";
563
+ }
564
+ }
565
+ let n = t[2], r = "";
566
+ if (this.options.pedantic) {
567
+ let e = this.rules.other.pedanticHrefTitle.exec(n);
568
+ e && (n = e[1], r = e[3]);
569
+ } else r = t[3] ? t[3].slice(1, -1) : "";
570
+ 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)), Ye(t, {
571
+ href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
572
+ title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
573
+ }, t[0], this.lexer, this.rules);
574
+ }
575
+ }
576
+ reflink(e, t) {
577
+ let n;
578
+ if ((n = this.rules.inline.reflink.exec(e)) || (n = this.rules.inline.nolink.exec(e))) {
579
+ let e = t[(n[2] || n[1]).replace(this.rules.other.multipleSpaceGlobal, " ").toLowerCase()];
580
+ if (!e) {
581
+ let e = n[0].charAt(0);
582
+ return {
583
+ type: "text",
584
+ raw: e,
585
+ text: e
586
+ };
587
+ }
588
+ return Ye(n, e, n[0], this.lexer, this.rules);
589
+ }
590
+ }
591
+ emStrong(e, t, n = "") {
592
+ let r = this.rules.inline.emStrongLDelim.exec(e);
593
+ if (!(!r || !r[1] && !r[2] && !r[3] && !r[4] || r[4] && n.match(this.rules.other.unicodeAlphaNumeric)) && (!(r[1] || r[3]) || !n || this.rules.inline.punctuation.exec(n))) {
594
+ let n = [...r[0]].length - 1, i, a, o = n, s = 0, c = r[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
595
+ for (c.lastIndex = 0, t = t.slice(-1 * e.length + n); (r = c.exec(t)) !== null;) {
596
+ if (i = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !i) continue;
597
+ if (a = [...i].length, r[3] || r[4]) {
598
+ o += a;
599
+ continue;
600
+ } else if ((r[5] || r[6]) && n % 3 && !((n + a) % 3)) {
601
+ s += a;
602
+ continue;
603
+ }
604
+ if (o -= a, o > 0) continue;
605
+ a = Math.min(a, a + o + s);
606
+ let t = [...r[0]][0].length, c = e.slice(0, n + r.index + t + a);
607
+ if (Math.min(n, a) % 2) {
608
+ let e = c.slice(1, -1);
609
+ return {
610
+ type: "em",
611
+ raw: c,
612
+ text: e,
613
+ tokens: this.lexer.inlineTokens(e)
614
+ };
615
+ }
616
+ let l = c.slice(2, -2);
617
+ return {
618
+ type: "strong",
619
+ raw: c,
620
+ text: l,
621
+ tokens: this.lexer.inlineTokens(l)
622
+ };
623
+ }
624
+ }
625
+ }
626
+ codespan(e) {
627
+ let t = this.rules.inline.code.exec(e);
628
+ if (t) {
629
+ 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);
630
+ return n && r && (e = e.substring(1, e.length - 1)), {
631
+ type: "codespan",
632
+ raw: t[0],
633
+ text: e
634
+ };
635
+ }
636
+ }
637
+ br(e) {
638
+ let t = this.rules.inline.br.exec(e);
639
+ if (t) return {
640
+ type: "br",
641
+ raw: t[0]
642
+ };
643
+ }
644
+ del(e, t, n = "") {
645
+ let r = this.rules.inline.delLDelim.exec(e);
646
+ if (r && (!r[1] || !n || this.rules.inline.punctuation.exec(n))) {
647
+ let n = [...r[0]].length - 1, i, a, o = n, s = this.rules.inline.delRDelim;
648
+ for (s.lastIndex = 0, t = t.slice(-1 * e.length + n); (r = s.exec(t)) !== null;) {
649
+ if (i = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !i || (a = [...i].length, a !== n)) continue;
650
+ if (r[3] || r[4]) {
651
+ o += a;
652
+ continue;
653
+ }
654
+ if (o -= a, o > 0) continue;
655
+ a = Math.min(a, a + o);
656
+ let t = [...r[0]][0].length, s = e.slice(0, n + r.index + t + a), c = s.slice(n, -n);
657
+ return {
658
+ type: "del",
659
+ raw: s,
660
+ text: c,
661
+ tokens: this.lexer.inlineTokens(c)
662
+ };
663
+ }
664
+ }
665
+ }
666
+ autolink(e) {
667
+ let t = this.rules.inline.autolink.exec(e);
668
+ if (t) {
669
+ let e, n;
670
+ return t[2] === "@" ? (e = t[1], n = "mailto:" + e) : (e = t[1], n = e), {
671
+ type: "link",
672
+ raw: t[0],
673
+ text: e,
674
+ href: n,
675
+ tokens: [{
676
+ type: "text",
677
+ raw: e,
678
+ text: e
679
+ }]
680
+ };
681
+ }
682
+ }
683
+ url(e) {
684
+ let t;
685
+ if (t = this.rules.inline.url.exec(e)) {
686
+ let e, n;
687
+ if (t[2] === "@") e = t[0], n = "mailto:" + e;
688
+ else {
689
+ let r;
690
+ do
691
+ r = t[0], t[0] = this.rules.inline._backpedal.exec(t[0])?.[0] ?? "";
692
+ while (r !== t[0]);
693
+ e = t[0], n = t[1] === "www." ? "http://" + t[0] : t[0];
694
+ }
695
+ return {
696
+ type: "link",
697
+ raw: t[0],
698
+ text: e,
699
+ href: n,
700
+ tokens: [{
701
+ type: "text",
702
+ raw: e,
703
+ text: e
704
+ }]
705
+ };
706
+ }
707
+ }
708
+ inlineText(e) {
709
+ let t = this.rules.inline.text.exec(e);
710
+ if (t) {
711
+ let e = this.lexer.state.inRawBlock;
712
+ return {
713
+ type: "text",
714
+ raw: t[0],
715
+ text: t[0],
716
+ escaped: e
717
+ };
718
+ }
719
+ }
720
+ }, K = class e {
721
+ tokens;
722
+ options;
723
+ state;
724
+ inlineQueue;
725
+ tokenizer;
726
+ constructor(e) {
727
+ this.tokens = [], this.tokens.links = Object.create(null), this.options = e || h, this.options.tokenizer = this.options.tokenizer || new G(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
728
+ inLink: !1,
729
+ inRawBlock: !1,
730
+ top: !0
731
+ };
732
+ let t = {
733
+ other: v,
734
+ block: B.normal,
735
+ inline: V.normal
736
+ };
737
+ this.options.pedantic ? (t.block = B.pedantic, t.inline = V.pedantic) : this.options.gfm && (t.block = B.gfm, this.options.breaks ? t.inline = V.breaks : t.inline = V.gfm), this.tokenizer.rules = t;
738
+ }
739
+ static get rules() {
740
+ return {
741
+ block: B,
742
+ inline: V
743
+ };
744
+ }
745
+ static lex(t, n) {
746
+ return new e(n).lex(t);
747
+ }
748
+ static lexInline(t, n) {
749
+ return new e(n).inlineTokens(t);
750
+ }
751
+ lex(e) {
752
+ e = e.replace(v.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
753
+ for (let e = 0; e < this.inlineQueue.length; e++) {
754
+ let t = this.inlineQueue[e];
755
+ this.inlineTokens(t.src, t.tokens);
756
+ }
757
+ return this.inlineQueue = [], this.tokens;
758
+ }
759
+ blockTokens(e, t = [], n = !1) {
760
+ for (this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(v.tabCharGlobal, " ").replace(v.spaceLine, "")); e;) {
761
+ let r;
762
+ if (this.options.extensions?.block?.some((n) => (r = n.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), !0) : !1)) continue;
763
+ if (r = this.tokenizer.space(e)) {
764
+ e = e.substring(r.raw.length);
765
+ let n = t.at(-1);
766
+ r.raw.length === 1 && n !== void 0 ? n.raw += "\n" : t.push(r);
767
+ continue;
768
+ }
769
+ if (r = this.tokenizer.code(e)) {
770
+ e = e.substring(r.raw.length);
771
+ let n = t.at(-1);
772
+ n?.type === "paragraph" || n?.type === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + r.raw, n.text += "\n" + r.text, this.inlineQueue.at(-1).src = n.text) : t.push(r);
773
+ continue;
774
+ }
775
+ if (r = this.tokenizer.fences(e)) {
776
+ e = e.substring(r.raw.length), t.push(r);
777
+ continue;
778
+ }
779
+ if (r = this.tokenizer.heading(e)) {
780
+ e = e.substring(r.raw.length), t.push(r);
781
+ continue;
782
+ }
783
+ if (r = this.tokenizer.hr(e)) {
784
+ e = e.substring(r.raw.length), t.push(r);
785
+ continue;
786
+ }
787
+ if (r = this.tokenizer.blockquote(e)) {
788
+ e = e.substring(r.raw.length), t.push(r);
789
+ continue;
790
+ }
791
+ if (r = this.tokenizer.list(e)) {
792
+ e = e.substring(r.raw.length), t.push(r);
793
+ continue;
794
+ }
795
+ if (r = this.tokenizer.html(e)) {
796
+ e = e.substring(r.raw.length), t.push(r);
797
+ continue;
798
+ }
799
+ if (r = this.tokenizer.def(e)) {
800
+ e = e.substring(r.raw.length);
801
+ let n = t.at(-1);
802
+ n?.type === "paragraph" || n?.type === "text" ? (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] = {
803
+ href: r.href,
804
+ title: r.title
805
+ }, t.push(r));
806
+ continue;
807
+ }
808
+ if (r = this.tokenizer.table(e)) {
809
+ e = e.substring(r.raw.length), t.push(r);
810
+ continue;
811
+ }
812
+ if (r = this.tokenizer.lheading(e)) {
813
+ e = e.substring(r.raw.length), t.push(r);
814
+ continue;
815
+ }
816
+ let i = e;
817
+ if (this.options.extensions?.startBlock) {
818
+ let t = Infinity, n = e.slice(1), r;
819
+ this.options.extensions.startBlock.forEach((e) => {
820
+ r = e.call({ lexer: this }, n), typeof r == "number" && r >= 0 && (t = Math.min(t, r));
821
+ }), t < Infinity && t >= 0 && (i = e.substring(0, t + 1));
822
+ }
823
+ if (this.state.top && (r = this.tokenizer.paragraph(i))) {
824
+ let a = t.at(-1);
825
+ n && a?.type === "paragraph" ? (a.raw += (a.raw.endsWith("\n") ? "" : "\n") + r.raw, a.text += "\n" + r.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = a.text) : t.push(r), n = i.length !== e.length, e = e.substring(r.raw.length);
826
+ continue;
827
+ }
828
+ if (r = this.tokenizer.text(e)) {
829
+ e = e.substring(r.raw.length);
830
+ let n = t.at(-1);
831
+ n?.type === "text" ? (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);
832
+ continue;
833
+ }
834
+ if (e) {
835
+ let t = "Infinite loop on byte: " + e.charCodeAt(0);
836
+ if (this.options.silent) {
837
+ console.error(t);
838
+ break;
839
+ } else throw Error(t);
840
+ }
841
+ }
842
+ return this.state.top = !0, t;
843
+ }
844
+ inline(e, t = []) {
845
+ return this.inlineQueue.push({
846
+ src: e,
847
+ tokens: t
848
+ }), t;
849
+ }
850
+ inlineTokens(e, t = []) {
851
+ this.tokenizer.lexer = this;
852
+ let n = e, r = null;
853
+ if (this.tokens.links) {
854
+ let e = Object.keys(this.tokens.links);
855
+ if (e.length > 0) for (; (r = this.tokenizer.rules.inline.reflinkSearch.exec(n)) !== null;) e.includes(r[0].slice(r[0].lastIndexOf("[") + 1, -1)) && (n = n.slice(0, r.index) + "[" + "a".repeat(r[0].length - 2) + "]" + n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
856
+ }
857
+ for (; (r = this.tokenizer.rules.inline.anyPunctuation.exec(n)) !== null;) n = n.slice(0, r.index) + "++" + n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
858
+ let i;
859
+ for (; (r = this.tokenizer.rules.inline.blockSkip.exec(n)) !== null;) i = r[2] ? r[2].length : 0, n = n.slice(0, r.index + i) + "[" + "a".repeat(r[0].length - i - 2) + "]" + n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
860
+ n = this.options.hooks?.emStrongMask?.call({ lexer: this }, n) ?? n;
861
+ let a = !1, o = "";
862
+ for (; e;) {
863
+ a || (o = ""), a = !1;
864
+ let r;
865
+ if (this.options.extensions?.inline?.some((n) => (r = n.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), !0) : !1)) continue;
866
+ if (r = this.tokenizer.escape(e)) {
867
+ e = e.substring(r.raw.length), t.push(r);
868
+ continue;
869
+ }
870
+ if (r = this.tokenizer.tag(e)) {
871
+ e = e.substring(r.raw.length), t.push(r);
872
+ continue;
873
+ }
874
+ if (r = this.tokenizer.link(e)) {
875
+ e = e.substring(r.raw.length), t.push(r);
876
+ continue;
877
+ }
878
+ if (r = this.tokenizer.reflink(e, this.tokens.links)) {
879
+ e = e.substring(r.raw.length);
880
+ let n = t.at(-1);
881
+ r.type === "text" && n?.type === "text" ? (n.raw += r.raw, n.text += r.text) : t.push(r);
882
+ continue;
883
+ }
884
+ if (r = this.tokenizer.emStrong(e, n, o)) {
885
+ e = e.substring(r.raw.length), t.push(r);
886
+ continue;
887
+ }
888
+ if (r = this.tokenizer.codespan(e)) {
889
+ e = e.substring(r.raw.length), t.push(r);
890
+ continue;
891
+ }
892
+ if (r = this.tokenizer.br(e)) {
893
+ e = e.substring(r.raw.length), t.push(r);
894
+ continue;
895
+ }
896
+ if (r = this.tokenizer.del(e, n, o)) {
897
+ e = e.substring(r.raw.length), t.push(r);
898
+ continue;
899
+ }
900
+ if (r = this.tokenizer.autolink(e)) {
901
+ e = e.substring(r.raw.length), t.push(r);
902
+ continue;
903
+ }
904
+ if (!this.state.inLink && (r = this.tokenizer.url(e))) {
905
+ e = e.substring(r.raw.length), t.push(r);
906
+ continue;
907
+ }
908
+ let i = e;
909
+ if (this.options.extensions?.startInline) {
910
+ let t = Infinity, n = e.slice(1), r;
911
+ this.options.extensions.startInline.forEach((e) => {
912
+ r = e.call({ lexer: this }, n), typeof r == "number" && r >= 0 && (t = Math.min(t, r));
913
+ }), t < Infinity && t >= 0 && (i = e.substring(0, t + 1));
914
+ }
915
+ if (r = this.tokenizer.inlineText(i)) {
916
+ e = e.substring(r.raw.length), r.raw.slice(-1) !== "_" && (o = r.raw.slice(-1)), a = !0;
917
+ let n = t.at(-1);
918
+ n?.type === "text" ? (n.raw += r.raw, n.text += r.text) : t.push(r);
919
+ continue;
920
+ }
921
+ if (e) {
922
+ let t = "Infinite loop on byte: " + e.charCodeAt(0);
923
+ if (this.options.silent) {
924
+ console.error(t);
925
+ break;
926
+ } else throw Error(t);
927
+ }
928
+ }
929
+ return t;
930
+ }
931
+ }, q = class {
932
+ options;
933
+ parser;
934
+ constructor(e) {
935
+ this.options = e || h;
936
+ }
937
+ space(e) {
938
+ return "";
939
+ }
940
+ code({ text: e, lang: t, escaped: n }) {
941
+ let r = (t || "").match(v.notSpaceStart)?.[0], i = e.replace(v.endingNewline, "") + "\n";
942
+ return r ? "<pre><code class=\"language-" + H(r) + "\">" + (n ? i : H(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : H(i, !0)) + "</code></pre>\n";
943
+ }
944
+ blockquote({ tokens: e }) {
945
+ return `<blockquote>
946
+ ${this.parser.parse(e)}</blockquote>
947
+ `;
948
+ }
949
+ html({ text: e }) {
950
+ return e;
951
+ }
952
+ def(e) {
953
+ return "";
954
+ }
955
+ heading({ tokens: e, depth: t }) {
956
+ return `<h${t}>${this.parser.parseInline(e)}</h${t}>
957
+ `;
958
+ }
959
+ hr(e) {
960
+ return "<hr>\n";
961
+ }
962
+ list(e) {
963
+ let t = e.ordered, n = e.start, r = "";
964
+ for (let t = 0; t < e.items.length; t++) {
965
+ let n = e.items[t];
966
+ r += this.listitem(n);
967
+ }
968
+ let i = t ? "ol" : "ul", a = t && n !== 1 ? " start=\"" + n + "\"" : "";
969
+ return "<" + i + a + ">\n" + r + "</" + i + ">\n";
970
+ }
971
+ listitem(e) {
972
+ return `<li>${this.parser.parse(e.tokens)}</li>
973
+ `;
974
+ }
975
+ checkbox({ checked: e }) {
976
+ return "<input " + (e ? "checked=\"\" " : "") + "disabled=\"\" type=\"checkbox\"> ";
977
+ }
978
+ paragraph({ tokens: e }) {
979
+ return `<p>${this.parser.parseInline(e)}</p>
980
+ `;
981
+ }
982
+ table(e) {
983
+ let t = "", n = "";
984
+ for (let t = 0; t < e.header.length; t++) n += this.tablecell(e.header[t]);
985
+ t += this.tablerow({ text: n });
986
+ let r = "";
987
+ for (let t = 0; t < e.rows.length; t++) {
988
+ let i = e.rows[t];
989
+ n = "";
990
+ for (let e = 0; e < i.length; e++) n += this.tablecell(i[e]);
991
+ r += this.tablerow({ text: n });
992
+ }
993
+ return r &&= `<tbody>${r}</tbody>`, "<table>\n<thead>\n" + t + "</thead>\n" + r + "</table>\n";
994
+ }
995
+ tablerow({ text: e }) {
996
+ return `<tr>
997
+ ${e}</tr>
998
+ `;
999
+ }
1000
+ tablecell(e) {
1001
+ let t = this.parser.parseInline(e.tokens), n = e.header ? "th" : "td";
1002
+ return (e.align ? `<${n} align="${e.align}">` : `<${n}>`) + t + `</${n}>
1003
+ `;
1004
+ }
1005
+ strong({ tokens: e }) {
1006
+ return `<strong>${this.parser.parseInline(e)}</strong>`;
1007
+ }
1008
+ em({ tokens: e }) {
1009
+ return `<em>${this.parser.parseInline(e)}</em>`;
1010
+ }
1011
+ codespan({ text: e }) {
1012
+ return `<code>${H(e, !0)}</code>`;
1013
+ }
1014
+ br(e) {
1015
+ return "<br>";
1016
+ }
1017
+ del({ tokens: e }) {
1018
+ return `<del>${this.parser.parseInline(e)}</del>`;
1019
+ }
1020
+ link({ href: e, title: t, tokens: n }) {
1021
+ let r = this.parser.parseInline(n), i = Ge(e);
1022
+ if (i === null) return r;
1023
+ e = i;
1024
+ let a = "<a href=\"" + e + "\"";
1025
+ return t && (a += " title=\"" + H(t) + "\""), a += ">" + r + "</a>", a;
1026
+ }
1027
+ image({ href: e, title: t, text: n, tokens: r }) {
1028
+ r && (n = this.parser.parseInline(r, this.parser.textRenderer));
1029
+ let i = Ge(e);
1030
+ if (i === null) return H(n);
1031
+ e = i;
1032
+ let a = `<img src="${e}" alt="${H(n)}"`;
1033
+ return t && (a += ` title="${H(t)}"`), a += ">", a;
1034
+ }
1035
+ text(e) {
1036
+ return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : H(e.text);
1037
+ }
1038
+ }, J = class {
1039
+ strong({ text: e }) {
1040
+ return e;
1041
+ }
1042
+ em({ text: e }) {
1043
+ return e;
1044
+ }
1045
+ codespan({ text: e }) {
1046
+ return e;
1047
+ }
1048
+ del({ text: e }) {
1049
+ return e;
1050
+ }
1051
+ html({ text: e }) {
1052
+ return e;
1053
+ }
1054
+ text({ text: e }) {
1055
+ return e;
1056
+ }
1057
+ link({ text: e }) {
1058
+ return "" + e;
1059
+ }
1060
+ image({ text: e }) {
1061
+ return "" + e;
1062
+ }
1063
+ br() {
1064
+ return "";
1065
+ }
1066
+ checkbox({ raw: e }) {
1067
+ return e;
1068
+ }
1069
+ }, Y = class e {
1070
+ options;
1071
+ renderer;
1072
+ textRenderer;
1073
+ constructor(e) {
1074
+ this.options = e || h, this.options.renderer = this.options.renderer || new q(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new J();
1075
+ }
1076
+ static parse(t, n) {
1077
+ return new e(n).parse(t);
1078
+ }
1079
+ static parseInline(t, n) {
1080
+ return new e(n).parseInline(t);
1081
+ }
1082
+ parse(e) {
1083
+ this.renderer.parser = this;
1084
+ let t = "";
1085
+ for (let n = 0; n < e.length; n++) {
1086
+ let r = e[n];
1087
+ if (this.options.extensions?.renderers?.[r.type]) {
1088
+ let e = r, n = this.options.extensions.renderers[e.type].call({ parser: this }, e);
1089
+ if (n !== !1 || ![
1090
+ "space",
1091
+ "hr",
1092
+ "heading",
1093
+ "code",
1094
+ "table",
1095
+ "blockquote",
1096
+ "list",
1097
+ "html",
1098
+ "def",
1099
+ "paragraph",
1100
+ "text"
1101
+ ].includes(e.type)) {
1102
+ t += n || "";
1103
+ continue;
1104
+ }
1105
+ }
1106
+ let i = r;
1107
+ switch (i.type) {
1108
+ case "space":
1109
+ t += this.renderer.space(i);
1110
+ break;
1111
+ case "hr":
1112
+ t += this.renderer.hr(i);
1113
+ break;
1114
+ case "heading":
1115
+ t += this.renderer.heading(i);
1116
+ break;
1117
+ case "code":
1118
+ t += this.renderer.code(i);
1119
+ break;
1120
+ case "table":
1121
+ t += this.renderer.table(i);
1122
+ break;
1123
+ case "blockquote":
1124
+ t += this.renderer.blockquote(i);
1125
+ break;
1126
+ case "list":
1127
+ t += this.renderer.list(i);
1128
+ break;
1129
+ case "checkbox":
1130
+ t += this.renderer.checkbox(i);
1131
+ break;
1132
+ case "html":
1133
+ t += this.renderer.html(i);
1134
+ break;
1135
+ case "def":
1136
+ t += this.renderer.def(i);
1137
+ break;
1138
+ case "paragraph":
1139
+ t += this.renderer.paragraph(i);
1140
+ break;
1141
+ case "text":
1142
+ t += this.renderer.text(i);
1143
+ break;
1144
+ default: {
1145
+ let e = "Token with \"" + i.type + "\" type was not found.";
1146
+ if (this.options.silent) return console.error(e), "";
1147
+ throw Error(e);
1148
+ }
1149
+ }
1150
+ }
1151
+ return t;
1152
+ }
1153
+ parseInline(e, t = this.renderer) {
1154
+ this.renderer.parser = this;
1155
+ let n = "";
1156
+ for (let r = 0; r < e.length; r++) {
1157
+ let i = e[r];
1158
+ if (this.options.extensions?.renderers?.[i.type]) {
1159
+ let e = this.options.extensions.renderers[i.type].call({ parser: this }, i);
1160
+ if (e !== !1 || ![
1161
+ "escape",
1162
+ "html",
1163
+ "link",
1164
+ "image",
1165
+ "strong",
1166
+ "em",
1167
+ "codespan",
1168
+ "br",
1169
+ "del",
1170
+ "text"
1171
+ ].includes(i.type)) {
1172
+ n += e || "";
1173
+ continue;
1174
+ }
1175
+ }
1176
+ let a = i;
1177
+ switch (a.type) {
1178
+ case "escape":
1179
+ n += t.text(a);
1180
+ break;
1181
+ case "html":
1182
+ n += t.html(a);
1183
+ break;
1184
+ case "link":
1185
+ n += t.link(a);
1186
+ break;
1187
+ case "image":
1188
+ n += t.image(a);
1189
+ break;
1190
+ case "checkbox":
1191
+ n += t.checkbox(a);
1192
+ break;
1193
+ case "strong":
1194
+ n += t.strong(a);
1195
+ break;
1196
+ case "em":
1197
+ n += t.em(a);
1198
+ break;
1199
+ case "codespan":
1200
+ n += t.codespan(a);
1201
+ break;
1202
+ case "br":
1203
+ n += t.br(a);
1204
+ break;
1205
+ case "del":
1206
+ n += t.del(a);
1207
+ break;
1208
+ case "text":
1209
+ n += t.text(a);
1210
+ break;
1211
+ default: {
1212
+ let e = "Token with \"" + a.type + "\" type was not found.";
1213
+ if (this.options.silent) return console.error(e), "";
1214
+ throw Error(e);
1215
+ }
1216
+ }
1217
+ }
1218
+ return n;
1219
+ }
1220
+ }, X = class {
1221
+ options;
1222
+ block;
1223
+ constructor(e) {
1224
+ this.options = e || h;
1225
+ }
1226
+ static passThroughHooks = new Set([
1227
+ "preprocess",
1228
+ "postprocess",
1229
+ "processAllTokens",
1230
+ "emStrongMask"
1231
+ ]);
1232
+ static passThroughHooksRespectAsync = new Set([
1233
+ "preprocess",
1234
+ "postprocess",
1235
+ "processAllTokens"
1236
+ ]);
1237
+ preprocess(e) {
1238
+ return e;
1239
+ }
1240
+ postprocess(e) {
1241
+ return e;
1242
+ }
1243
+ processAllTokens(e) {
1244
+ return e;
1245
+ }
1246
+ emStrongMask(e) {
1247
+ return e;
1248
+ }
1249
+ provideLexer(e = this.block) {
1250
+ return e ? K.lex : K.lexInline;
1251
+ }
1252
+ provideParser(e = this.block) {
1253
+ return e ? Y.parse : Y.parseInline;
1254
+ }
1255
+ }, Z = new class {
1256
+ defaults = m();
1257
+ options = this.setOptions;
1258
+ parse = this.parseMarkdown(!0);
1259
+ parseInline = this.parseMarkdown(!1);
1260
+ Parser = Y;
1261
+ Renderer = q;
1262
+ TextRenderer = J;
1263
+ Lexer = K;
1264
+ Tokenizer = G;
1265
+ Hooks = X;
1266
+ constructor(...e) {
1267
+ this.use(...e);
1268
+ }
1269
+ walkTokens(e, t) {
1270
+ let n = [];
1271
+ for (let r of e) switch (n = n.concat(t.call(this, r)), r.type) {
1272
+ case "table": {
1273
+ let e = r;
1274
+ for (let r of e.header) n = n.concat(this.walkTokens(r.tokens, t));
1275
+ for (let r of e.rows) for (let e of r) n = n.concat(this.walkTokens(e.tokens, t));
1276
+ break;
1277
+ }
1278
+ case "list": {
1279
+ let e = r;
1280
+ n = n.concat(this.walkTokens(e.items, t));
1281
+ break;
1282
+ }
1283
+ default: {
1284
+ let e = r;
1285
+ this.defaults.extensions?.childTokens?.[e.type] ? this.defaults.extensions.childTokens[e.type].forEach((r) => {
1286
+ let i = e[r].flat(Infinity);
1287
+ n = n.concat(this.walkTokens(i, t));
1288
+ }) : e.tokens && (n = n.concat(this.walkTokens(e.tokens, t)));
1289
+ }
1290
+ }
1291
+ return n;
1292
+ }
1293
+ use(...e) {
1294
+ let t = this.defaults.extensions || {
1295
+ renderers: {},
1296
+ childTokens: {}
1297
+ };
1298
+ return e.forEach((e) => {
1299
+ let n = { ...e };
1300
+ if (n.async = this.defaults.async || n.async || !1, e.extensions && (e.extensions.forEach((e) => {
1301
+ if (!e.name) throw Error("extension name required");
1302
+ if ("renderer" in e) {
1303
+ let n = t.renderers[e.name];
1304
+ n ? t.renderers[e.name] = function(...t) {
1305
+ let r = e.renderer.apply(this, t);
1306
+ return r === !1 && (r = n.apply(this, t)), r;
1307
+ } : t.renderers[e.name] = e.renderer;
1308
+ }
1309
+ if ("tokenizer" in e) {
1310
+ if (!e.level || e.level !== "block" && e.level !== "inline") throw Error("extension level must be 'block' or 'inline'");
1311
+ let n = t[e.level];
1312
+ n ? n.unshift(e.tokenizer) : t[e.level] = [e.tokenizer], e.start && (e.level === "block" ? t.startBlock ? t.startBlock.push(e.start) : t.startBlock = [e.start] : e.level === "inline" && (t.startInline ? t.startInline.push(e.start) : t.startInline = [e.start]));
1313
+ }
1314
+ "childTokens" in e && e.childTokens && (t.childTokens[e.name] = e.childTokens);
1315
+ }), n.extensions = t), e.renderer) {
1316
+ let t = this.defaults.renderer || new q(this.defaults);
1317
+ for (let n in e.renderer) {
1318
+ if (!(n in t)) throw Error(`renderer '${n}' does not exist`);
1319
+ if (["options", "parser"].includes(n)) continue;
1320
+ let r = n, i = e.renderer[r], a = t[r];
1321
+ t[r] = (...e) => {
1322
+ let n = i.apply(t, e);
1323
+ return n === !1 && (n = a.apply(t, e)), n || "";
1324
+ };
1325
+ }
1326
+ n.renderer = t;
1327
+ }
1328
+ if (e.tokenizer) {
1329
+ let t = this.defaults.tokenizer || new G(this.defaults);
1330
+ for (let n in e.tokenizer) {
1331
+ if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
1332
+ if ([
1333
+ "options",
1334
+ "rules",
1335
+ "lexer"
1336
+ ].includes(n)) continue;
1337
+ let r = n, i = e.tokenizer[r], a = t[r];
1338
+ t[r] = (...e) => {
1339
+ let n = i.apply(t, e);
1340
+ return n === !1 && (n = a.apply(t, e)), n;
1341
+ };
1342
+ }
1343
+ n.tokenizer = t;
1344
+ }
1345
+ if (e.hooks) {
1346
+ let t = this.defaults.hooks || new X();
1347
+ for (let n in e.hooks) {
1348
+ if (!(n in t)) throw Error(`hook '${n}' does not exist`);
1349
+ if (["options", "block"].includes(n)) continue;
1350
+ let r = n, i = e.hooks[r], a = t[r];
1351
+ X.passThroughHooks.has(n) ? t[r] = (e) => {
1352
+ if (this.defaults.async && X.passThroughHooksRespectAsync.has(n)) return (async () => {
1353
+ let n = await i.call(t, e);
1354
+ return a.call(t, n);
1355
+ })();
1356
+ let r = i.call(t, e);
1357
+ return a.call(t, r);
1358
+ } : t[r] = (...e) => {
1359
+ if (this.defaults.async) return (async () => {
1360
+ let n = await i.apply(t, e);
1361
+ return n === !1 && (n = await a.apply(t, e)), n;
1362
+ })();
1363
+ let n = i.apply(t, e);
1364
+ return n === !1 && (n = a.apply(t, e)), n;
1365
+ };
1366
+ }
1367
+ n.hooks = t;
1368
+ }
1369
+ if (e.walkTokens) {
1370
+ let t = this.defaults.walkTokens, r = e.walkTokens;
1371
+ n.walkTokens = function(e) {
1372
+ let n = [];
1373
+ return n.push(r.call(this, e)), t && (n = n.concat(t.call(this, e))), n;
1374
+ };
1375
+ }
1376
+ this.defaults = {
1377
+ ...this.defaults,
1378
+ ...n
1379
+ };
1380
+ }), this;
1381
+ }
1382
+ setOptions(e) {
1383
+ return this.defaults = {
1384
+ ...this.defaults,
1385
+ ...e
1386
+ }, this;
1387
+ }
1388
+ lexer(e, t) {
1389
+ return K.lex(e, t ?? this.defaults);
1390
+ }
1391
+ parser(e, t) {
1392
+ return Y.parse(e, t ?? this.defaults);
1393
+ }
1394
+ parseMarkdown(e) {
1395
+ return (t, n) => {
1396
+ let r = { ...n }, i = {
1397
+ ...this.defaults,
1398
+ ...r
1399
+ }, a = this.onError(!!i.silent, !!i.async);
1400
+ if (this.defaults.async === !0 && r.async === !1) return a(/* @__PURE__ */ Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
1401
+ if (typeof t > "u" || t === null) return a(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
1402
+ if (typeof t != "string") return a(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
1403
+ if (i.hooks && (i.hooks.options = i, i.hooks.block = e), i.async) return (async () => {
1404
+ let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer(e) : e ? K.lex : K.lexInline)(n, i), a = i.hooks ? await i.hooks.processAllTokens(r) : r;
1405
+ i.walkTokens && await Promise.all(this.walkTokens(a, i.walkTokens));
1406
+ let o = await (i.hooks ? await i.hooks.provideParser(e) : e ? Y.parse : Y.parseInline)(a, i);
1407
+ return i.hooks ? await i.hooks.postprocess(o) : o;
1408
+ })().catch(a);
1409
+ try {
1410
+ i.hooks && (t = i.hooks.preprocess(t));
1411
+ let n = (i.hooks ? i.hooks.provideLexer(e) : e ? K.lex : K.lexInline)(t, i);
1412
+ i.hooks && (n = i.hooks.processAllTokens(n)), i.walkTokens && this.walkTokens(n, i.walkTokens);
1413
+ let r = (i.hooks ? i.hooks.provideParser(e) : e ? Y.parse : Y.parseInline)(n, i);
1414
+ return i.hooks && (r = i.hooks.postprocess(r)), r;
1415
+ } catch (e) {
1416
+ return a(e);
1417
+ }
1418
+ };
1419
+ }
1420
+ onError(e, t) {
1421
+ return (n) => {
1422
+ if (n.message += "\nPlease report this to https://github.com/markedjs/marked.", e) {
1423
+ let e = "<p>An error occurred:</p><pre>" + H(n.message + "", !0) + "</pre>";
1424
+ return t ? Promise.resolve(e) : e;
1425
+ }
1426
+ if (t) return Promise.reject(n);
1427
+ throw n;
1428
+ };
1429
+ }
1430
+ }();
1431
+ function Q(e, t) {
1432
+ return Z.parse(e, t);
1433
+ }
1434
+ Q.options = Q.setOptions = function(e) {
1435
+ return Z.setOptions(e), Q.defaults = Z.defaults, ae(Q.defaults), Q;
1436
+ }, Q.getDefaults = m, Q.defaults = h, Q.use = function(...e) {
1437
+ return Z.use(...e), Q.defaults = Z.defaults, ae(Q.defaults), Q;
1438
+ }, Q.walkTokens = function(e, t) {
1439
+ return Z.walkTokens(e, t);
1440
+ }, Q.parseInline = Z.parseInline, Q.Parser = Y, Q.parser = Y.parse, Q.Renderer = q, Q.TextRenderer = J, Q.Lexer = K, Q.lexer = K.lex, Q.Tokenizer = G, Q.Hooks = X, Q.parse = Q, Q.options, Q.setOptions, Q.use, Q.walkTokens, Q.parseInline, Y.parse, K.lex;
1441
+ //#endregion
1442
+ //#region node_modules/primevue/skeleton/style/index.mjs
1443
+ var Ze = t.extend({
1444
+ name: "skeleton",
1445
+ style: "\n .p-skeleton {\n display: block;\n overflow: hidden;\n background: dt('skeleton.background');\n border-radius: dt('skeleton.border.radius');\n }\n\n .p-skeleton::after {\n content: '';\n animation: p-skeleton-animation 1.2s infinite;\n height: 100%;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n transform: translateX(-100%);\n z-index: 1;\n background: linear-gradient(90deg, rgba(255, 255, 255, 0), dt('skeleton.animation.background'), rgba(255, 255, 255, 0));\n }\n\n [dir='rtl'] .p-skeleton::after {\n animation-name: p-skeleton-animation-rtl;\n }\n\n .p-skeleton-circle {\n border-radius: 50%;\n }\n\n .p-skeleton-animation-none::after {\n animation: none;\n }\n\n @keyframes p-skeleton-animation {\n from {\n transform: translateX(-100%);\n }\n to {\n transform: translateX(100%);\n }\n }\n\n @keyframes p-skeleton-animation-rtl {\n from {\n transform: translateX(100%);\n }\n to {\n transform: translateX(-100%);\n }\n }\n",
1446
+ classes: { root: function(e) {
1447
+ var t = e.props;
1448
+ return ["p-skeleton p-component", {
1449
+ "p-skeleton-circle": t.shape === "circle",
1450
+ "p-skeleton-animation-none": t.animation === "none"
1451
+ }];
1452
+ } },
1453
+ inlineStyles: { root: { position: "relative" } }
1454
+ }), Qe = {
1455
+ name: "BaseSkeleton",
1456
+ extends: n,
1457
+ props: {
1458
+ shape: {
1459
+ type: String,
1460
+ default: "rectangle"
1461
+ },
1462
+ size: {
1463
+ type: String,
1464
+ default: null
1465
+ },
1466
+ width: {
1467
+ type: String,
1468
+ default: "100%"
1469
+ },
1470
+ height: {
1471
+ type: String,
1472
+ default: "1rem"
1473
+ },
1474
+ borderRadius: {
1475
+ type: String,
1476
+ default: null
1477
+ },
1478
+ animation: {
1479
+ type: String,
1480
+ default: "wave"
1481
+ }
1482
+ },
1483
+ style: Ze,
1484
+ provide: function() {
1485
+ return {
1486
+ $pcSkeleton: this,
1487
+ $parentInstance: this
1488
+ };
1489
+ }
1490
+ };
1491
+ function $(e) {
1492
+ "@babel/helpers - typeof";
1493
+ return $ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1494
+ return typeof e;
1495
+ } : function(e) {
1496
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1497
+ }, $(e);
1498
+ }
1499
+ function $e(e, t, n) {
1500
+ return (t = et(t)) in e ? Object.defineProperty(e, t, {
1501
+ value: n,
1502
+ enumerable: !0,
1503
+ configurable: !0,
1504
+ writable: !0
1505
+ }) : e[t] = n, e;
1506
+ }
1507
+ function et(e) {
1508
+ var t = tt(e, "string");
1509
+ return $(t) == "symbol" ? t : t + "";
1510
+ }
1511
+ function tt(e, t) {
1512
+ if ($(e) != "object" || !e) return e;
1513
+ var n = e[Symbol.toPrimitive];
1514
+ if (n !== void 0) {
1515
+ var r = n.call(e, t);
1516
+ if ($(r) != "object") return r;
1517
+ throw TypeError("@@toPrimitive must return a primitive value.");
1518
+ }
1519
+ return (t === "string" ? String : Number)(e);
1520
+ }
1521
+ var nt = {
1522
+ name: "Skeleton",
1523
+ extends: Qe,
1524
+ inheritAttrs: !1,
1525
+ computed: {
1526
+ containerStyle: function() {
1527
+ return this.size ? {
1528
+ width: this.size,
1529
+ height: this.size,
1530
+ borderRadius: this.borderRadius
1531
+ } : {
1532
+ width: this.width,
1533
+ height: this.height,
1534
+ borderRadius: this.borderRadius
1535
+ };
1536
+ },
1537
+ dataP: function() {
1538
+ return e($e({}, this.shape, this.shape));
1539
+ }
1540
+ }
1541
+ }, rt = ["data-p"];
1542
+ function it(e, t, n, r, i, a) {
1543
+ return p(), c("div", d({
1544
+ class: e.cx("root"),
1545
+ style: [e.sx("root"), a.containerStyle],
1546
+ "aria-hidden": "true"
1547
+ }, e.ptmi("root"), { "data-p": a.dataP }), null, 16, rt);
1548
+ }
1549
+ nt.render = it;
1550
+ //#endregion
1551
+ //#region src/plugins/legalConsent/views/LegalDocument.vue
1552
+ var at = /* @__PURE__ */ u({
1553
+ __name: "LegalDocument",
1554
+ props: {
1555
+ classes: { default: "" },
1556
+ documentEndpoint: {}
1557
+ },
1558
+ setup(e) {
1559
+ let t = i(), n = re("legal-document"), { data: u, isLoading: d } = r.query(te(`${t.legalEndpoint}/${e.documentEndpoint}`));
1560
+ ie(u, () => {
1561
+ m(u);
1562
+ }), f(() => {
1563
+ m(u);
1564
+ });
1565
+ function m(e) {
1566
+ e.value && (n.value.innerHTML = Q.parse(e.value), a(n.value));
1567
+ }
1568
+ return (t, n) => (p(), c("section", null, [ne(d) ? (p(), o(ne(nt), {
1569
+ key: 0,
1570
+ width: "100%",
1571
+ height: "10rem"
1572
+ })) : s("", !0), l("div", {
1573
+ id: "legal-document",
1574
+ ref: "legal-document",
1575
+ class: ee(["m-1 items-center gap-x-4 rounded-xl bg-white dark:bg-gray-900 p-6 shadow-lg outline outline-black/5 dark:outline-white/10", e.classes])
1576
+ }, null, 2)]));
1577
+ }
1578
+ });
1579
+ //#endregion
1580
+ export { at as default };