@nside/wefa 0.3.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/README.md +46 -3
  2. package/dist/LegalConsent-9nOroDoA.cjs +1 -0
  3. package/dist/LegalConsent-CrPVZOxx.js +151 -0
  4. package/dist/LegalDocument-CVJiGmPJ.cjs +109 -0
  5. package/dist/{LegalDocument-BhoEpJ2O.js → LegalDocument-DwVhwjIf.js} +236 -215
  6. package/dist/{LoginView-kH440cCh.js → LoginView-DUPa_PsC.js} +3 -3
  7. package/dist/{LoginView-IIkXXw3R.cjs → LoginView-Dihs8n_X.cjs} +1 -1
  8. package/dist/{LogoutView-DGqh4bP7.js → LogoutView-DAh7MrFi.js} +3 -3
  9. package/dist/{LogoutView-B90MA-_Q.cjs → LogoutView-Fl3nfeJ0.cjs} +1 -1
  10. package/dist/{apiClient-DJdAL3tN.cjs → apiClient-BUS5ZclN.cjs} +1 -1
  11. package/dist/{apiClient-D-kcx_S1.js → apiClient-BbJl566D.js} +1 -1
  12. package/dist/axios-CZvsFspN.js +1887 -0
  13. package/dist/axios-DMqeKDaq.cjs +6 -0
  14. package/dist/containers.cjs +590 -5
  15. package/dist/containers.d.ts +39 -0
  16. package/dist/containers.js +3803 -977
  17. package/dist/{index-Coos428-.js → index--_rUTrqU.js} +308 -282
  18. package/dist/{index-B4vneBZh.cjs → index-B4oFnh1T.cjs} +6 -6
  19. package/dist/index-BHSxFTgZ.js +49 -0
  20. package/dist/{index-BSfhC_wu.cjs → index-BaA_oL1s.cjs} +1 -1
  21. package/dist/{index-CJmnkrIs.cjs → index-Becfy0pF.cjs} +1 -1
  22. package/dist/{index-Dj5oTSEE.js → index-C09d0pI4.js} +15 -15
  23. package/dist/{index-BXrnPbjr.cjs → index-CbQWytWd.cjs} +4 -4
  24. package/dist/{index-DmVIgb18.js → index-CgAb-gZi.js} +11 -11
  25. package/dist/{index-B53YL3vD.cjs → index-DFOQKDki.cjs} +2 -2
  26. package/dist/index-DFSkcsx-.cjs +943 -0
  27. package/dist/{index-CEz0St1t.js → index-DQFN7qxo.js} +7 -7
  28. package/dist/index-DRozw3P8.js +167 -0
  29. package/dist/index-DfCQoHSf.cjs +146 -0
  30. package/dist/index-DkuJMEY1.js +6731 -0
  31. package/dist/{index-bRjoenrr.js → index-Dv6jyKbT.js} +12 -12
  32. package/dist/{index-Bl3JVLei.cjs → index-EDm9-cRY.cjs} +1 -1
  33. package/dist/index-IGN7_cyg.cjs +2 -0
  34. package/dist/{index-DGvdYnh3.js → index-lFl6UsTa.js} +7 -7
  35. package/dist/index-lQmq7gxp.cjs +54 -0
  36. package/dist/{index-FS8xE7Mo.js → index-xUb0UC07.js} +5 -5
  37. package/dist/lib-C3DWunRS.js +26376 -0
  38. package/dist/lib-COvHzA2Y.cjs +2104 -0
  39. package/dist/lib.cjs +1 -1
  40. package/dist/lib.d.ts +160 -7
  41. package/dist/lib.js +33 -30
  42. package/dist/libRoutes-B-H3e9wZ.js +22 -0
  43. package/dist/libRoutes-Cl3TklhN.cjs +1 -0
  44. package/dist/network.cjs +1 -1
  45. package/dist/network.d.ts +19 -0
  46. package/dist/network.js +3 -3
  47. package/dist/router.cjs +1 -1
  48. package/dist/router.d.ts +26 -4
  49. package/dist/router.js +10 -10
  50. package/package.json +55 -48
  51. package/src/assets/main.css +2 -2
  52. package/src/components/AutoroutedBreadcrumb/AutoroutedBreadcrumb.mdx +8 -8
  53. package/src/components/AutoroutedBreadcrumb/AutoroutedBreadcrumb.spec.ts +86 -45
  54. package/src/components/AutoroutedBreadcrumb/AutoroutedBreadcrumb.vue +29 -21
  55. package/src/components/AvatarComponent/AvatarComponent.mdx +63 -0
  56. package/src/components/AvatarComponent/AvatarComponent.stories.ts +98 -0
  57. package/src/components/AvatarComponent/AvatarComponent.vue +115 -0
  58. package/src/components/GanttChartComponent/GanttChartComponent.mdx +143 -0
  59. package/src/components/GanttChartComponent/GanttChartComponent.spec.ts +257 -0
  60. package/src/components/GanttChartComponent/GanttChartComponent.stories.ts +253 -0
  61. package/src/components/GanttChartComponent/GanttChartComponent.vue +220 -0
  62. package/src/components/GanttChartComponent/GanttChartGrid.vue +66 -0
  63. package/src/components/GanttChartComponent/GanttChartHeaderGrid.vue +167 -0
  64. package/src/components/GanttChartComponent/GanttChartHeaderLabel.vue +23 -0
  65. package/src/components/GanttChartComponent/GanttChartLinksOverlay.vue +105 -0
  66. package/src/components/GanttChartComponent/GanttChartRowGrid.vue +288 -0
  67. package/src/components/GanttChartComponent/GanttChartRowLabel.vue +32 -0
  68. package/src/components/GanttChartComponent/composables/useGanttLinks.ts +212 -0
  69. package/src/components/GanttChartComponent/composables/useGanttSizing.ts +42 -0
  70. package/src/components/GanttChartComponent/ganttChartLayout.ts +211 -0
  71. package/src/components/GanttChartComponent/ganttChartTypes.ts +24 -0
  72. package/src/components/GanttChartComponent/index.ts +1 -0
  73. package/src/components/NetworkButton/ApiMutationButton.vue +7 -5
  74. package/src/components/NetworkButton/ApiQueryButton.vue +6 -4
  75. package/src/components/PlotlyComponent/PlotlyComponent.stories.ts +74 -45
  76. package/src/containers/BareContainer/BareContainer.mdx +1 -1
  77. package/src/containers/LayoutContainer/LayoutContainer.mdx +128 -0
  78. package/src/containers/LayoutContainer/LayoutContainer.spec.ts +151 -0
  79. package/src/containers/LayoutContainer/LayoutContainer.stories.ts +292 -0
  80. package/src/containers/LayoutContainer/LayoutContainer.vue +53 -0
  81. package/src/containers/LayoutContainer/MobileNavigationComponent/MobileNavigationComponent.spec.ts +139 -0
  82. package/src/containers/LayoutContainer/MobileNavigationComponent/MobileNavigationComponent.vue +63 -0
  83. package/src/containers/LayoutContainer/SideNavigationComponent/BottomComponent/BottomComponent.spec.ts +39 -0
  84. package/src/containers/LayoutContainer/SideNavigationComponent/BottomComponent/BottomComponent.vue +9 -0
  85. package/src/containers/LayoutContainer/SideNavigationComponent/MainComponent/MainComponent.spec.ts +175 -0
  86. package/src/containers/LayoutContainer/SideNavigationComponent/MainComponent/MainComponent.vue +163 -0
  87. package/src/containers/LayoutContainer/SideNavigationComponent/MainComponent/NavigationLinkComponent.spec.ts +105 -0
  88. package/src/containers/LayoutContainer/SideNavigationComponent/MainComponent/NavigationLinkComponent.vue +45 -0
  89. package/src/containers/LayoutContainer/SideNavigationComponent/SideNavigationComponent.spec.ts +78 -0
  90. package/src/containers/LayoutContainer/SideNavigationComponent/SideNavigationComponent.vue +29 -0
  91. package/src/containers/LayoutContainer/SideNavigationComponent/TopComponent/TopComponent.spec.ts +60 -0
  92. package/src/containers/LayoutContainer/SideNavigationComponent/TopComponent/TopComponent.vue +56 -0
  93. package/src/containers/LayoutContainer/UserMenuTriggerComponent/UserMenuTriggerComponent.spec.ts +96 -0
  94. package/src/containers/LayoutContainer/UserMenuTriggerComponent/UserMenuTriggerComponent.vue +80 -0
  95. package/src/containers/LayoutContainer/index.ts +1 -0
  96. package/src/containers/NavbarContainer/NavbarContainer.mdx +1 -1
  97. package/src/containers/RoutedTabsComponent/RoutedTabsComponent.mdx +3 -3
  98. package/src/containers/SideMenuContainer/SideMenuContainer.mdx +1 -1
  99. package/src/containers/helpers.ts +6 -3
  100. package/src/containers/index.ts +2 -0
  101. package/src/containers/storybook/PlaceholderView.vue +1 -1
  102. package/src/containers/storybook/PrimeComponents.stories.ts +17 -0
  103. package/src/containers/storybook/PrimeComponentsShowcase.vue +587 -0
  104. package/src/containers/storybook/overview.mdx +36 -36
  105. package/src/demo/App.vue +7 -0
  106. package/src/{demo.ts → demo/main.ts} +8 -9
  107. package/src/demo/router.ts +65 -19
  108. package/src/demo/views/PlaygroundView.vue +86 -0
  109. package/src/demo/views/ShowcaseView.vue +41 -0
  110. package/src/lib.ts +3 -1
  111. package/src/locales/Translation.mdx +2 -2
  112. package/src/locales/en/avatar.json +3 -0
  113. package/src/locales/en/gantt_chart.json +6 -0
  114. package/src/locales/en/navigation.json +3 -1
  115. package/src/locales/index.ts +0 -4
  116. package/src/plugins/legalConsent/views/__tests__/LegalConsent.test.ts +12 -7
  117. package/src/router/guards.ts +4 -4
  118. package/src/router/libRoutes.ts +6 -2
  119. package/src/router/router.mdx +107 -66
  120. package/src/router/types.ts +24 -3
  121. package/src/stores/__tests__/backend/jwt.test.ts +4 -4
  122. package/src/stores/__tests__/backend/oauth.test.ts +104 -0
  123. package/src/stores/__tests__/backend/token.test.ts +4 -4
  124. package/src/stores/authentication.mdx +138 -0
  125. package/src/stores/backend/common.ts +89 -0
  126. package/src/stores/backend/constants.ts +22 -0
  127. package/src/stores/backend/schemes/jwt.ts +208 -0
  128. package/src/stores/backend/schemes/oauth.ts +142 -0
  129. package/src/stores/backend/schemes/token.ts +122 -0
  130. package/src/stores/backend/types.ts +96 -0
  131. package/src/stores/backend.ts +21 -427
  132. package/src/stores/index.ts +6 -0
  133. package/src/theme/index.ts +2 -0
  134. package/src/theme/nside.ts +157 -0
  135. package/src/utils/color.spec.ts +24 -0
  136. package/src/utils/color.ts +100 -0
  137. package/src/utils/translations.ts +0 -4
  138. package/dist/LegalConsent-CEcXZml6.cjs +0 -1
  139. package/dist/LegalConsent-Dzq3fdnt.js +0 -277
  140. package/dist/LegalDocument-CS3MnOcV.cjs +0 -109
  141. package/dist/axios-ClRPr3Xn.js +0 -1777
  142. package/dist/axios-Dcidtc2l.cjs +0 -6
  143. package/dist/index-Bc699sOR.js +0 -4997
  144. package/dist/index-CL_OJMNr.cjs +0 -55
  145. package/dist/index-CTNsucOq.cjs +0 -147
  146. package/dist/index-CwLAV8WF.js +0 -210
  147. package/dist/index-FrfvunRp.cjs +0 -146
  148. package/dist/lib-BBJH9d11.cjs +0 -2792
  149. package/dist/lib-Y8FPgwH4.js +0 -20886
  150. package/dist/libRoutes-BsneoQ4G.js +0 -18
  151. package/dist/libRoutes-BzeZrIaK.cjs +0 -1
  152. package/src/demo/DemoApp.vue +0 -13
  153. package/src/demo/ShowcaseView.vue +0 -39
  154. package/src/demo/demo.css +0 -15
  155. /package/src/demo/{DemoContent.vue → views/DemoContent.vue} +0 -0
  156. /package/src/demo/{DemoView.vue → views/DemoView.vue} +0 -0
package/README.md CHANGED
@@ -106,6 +106,21 @@ Types live under the `@nside/wefa/types` export:
106
106
  import type { WefaButtonProps } from '@nside/wefa/types';
107
107
  ```
108
108
 
109
+ ### Theme preset
110
+
111
+ To apply the NSIDE Prime theme preset in your app:
112
+
113
+ ```ts
114
+ import PrimeVue from 'primevue/config'
115
+ import { createNsideTheme } from '@nside/wefa'
116
+
117
+ app.use(PrimeVue, {
118
+ theme: {
119
+ preset: createNsideTheme('green'),
120
+ },
121
+ })
122
+ ```
123
+
109
124
  ### Icons and the registry helper
110
125
 
111
126
  WeFa uses [Iconify](https://iconify.design/) under the hood. Bundled icon collections are registered automatically by calling `setupDefaultIcons()` inside `src/iconRegistry.ts`. If you need extra icons offline:
@@ -169,9 +184,37 @@ We welcome pull requests! Start with [`CONTRIBUTE`](CONTRIBUTE.md) for the full
169
184
 
170
185
  ## Release process
171
186
 
172
- Versioning currently follows SemVer. To test a release locally:
187
+ Versioning for this repository is managed from the monorepo root so `vue`, `django`, and `bff` stay aligned:
173
188
 
174
189
  ```bash
175
- npm version <major|minor|patch>
190
+ cd ..
191
+ python3 scripts/wefa_version.py bump <major|minor|patch>
192
+ # or:
193
+ python3 scripts/wefa_version.py set <x.y.z[-prerelease]>
194
+ cd vue
176
195
  npm publish --access public
177
- ```
196
+ ```
197
+
198
+ The version script expects SemVer for user input and tags. For prereleases, use
199
+ `alpha.<N>`, `beta.<N>`, or `rc.<N>`; Python package files are automatically normalized to PEP 440
200
+ (`a`, `b`, `rc`) during updates.
201
+
202
+ ## Testing the library locally
203
+
204
+ If you want to test the library locally on a project using WeFa, you can do it with the following steps:
205
+
206
+ ### In the WeFa Folder
207
+
208
+ ```bash
209
+ # Build the project
210
+ npm run build
211
+ # Generate a pack (this will output a .tgz file)
212
+ npm pack
213
+ ```
214
+
215
+ ### In the project folder that uses WeFa
216
+
217
+ ```bash
218
+ # Install the packed dependency
219
+ npm i /ABSOLUTE_PATH_TO_THE_PACK/nside-wefa-0.3.0.tgz
220
+ ```
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),y=require("vue-router"),c=require("./lib-COvHzA2Y.cjs"),b=require("./index-BaA_oL1s.cjs"),l=require("./index-DFSkcsx-.cjs"),x=require("pinia");var v=Symbol();function h(){var r=e.inject(v);if(!r)throw new Error("No PrimeVue Toast provided!");return r}var V=Symbol();function k(){var r=e.inject(V);if(!r)throw new Error("No PrimeVue Confirmation provided!");return r}const N=x.createPinia(),C=c.useBackendStore({authenticationType:"TOKEN"},N),S={class:"text-center"},E={class:"text-2xl font-bold text-gray-900 dark:text-gray-100 mb-2"},w={class:"space-y-4"},T={class:"text-gray-700 dark:text-gray-300 text-center"},P={class:"text-center space-y-2"},q={class:"flex items-center gap-3 p-3 border border-gray-200 dark:border-gray-700 rounded-lg"},j={for:"consent-checkbox",class:"text-sm text-gray-700 dark:text-gray-300 cursor-pointer"},D={class:"flex gap-3 pt-4"},L=e.defineComponent({__name:"LegalConsent",setup(r){const s=y.useRouter(),i=s.currentRoute.value.redirectedFrom,m=c.useLegalStore(),o=h(),_=k(),a=e.ref(!1),{t}=l.useI18nLib(),p=async()=>{try{await m.acceptLegalConsent();const n=i?{path:i.path}:"/";s.push(n).then(()=>{o.add({severity:"success",summary:t("legal_consent.toast_accept_summary"),detail:t("legal_consent.toast_accept_detail"),life:5e3})})}catch(n){console.error("Failed to accept legal consent:",n),o.add({severity:"error",summary:t("legal_consent.error_summary"),detail:t("legal_consent.error_detail"),life:5e3})}},g=()=>{_.require({message:t("legal_consent.confirm_message"),header:t("legal_consent.confirm_header"),icon:"pi pi-exclamation-triangle",rejectProps:{label:t("legal_consent.reject_label"),severity:"secondary",outlined:!0},acceptProps:{label:t("legal_consent.accept_label"),severity:"danger"},accept:()=>{o.add({severity:"warn",summary:t("legal_consent.disconnected_summary"),detail:t("legal_consent.disconnected_detail"),life:5e3}),C.logout()}})};return(n,d)=>{const u=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",null,[e.createVNode(e.unref(b.script),{class:"w-full max-w-md"},{title:e.withCtx(()=>[e.createElementVNode("div",S,[e.createElementVNode("h1",E,e.toDisplayString(e.unref(t)("legal_consent.title")),1)])]),content:e.withCtx(()=>[e.createElementVNode("div",w,[e.createElementVNode("p",T,e.toDisplayString(e.unref(t)("legal_consent.intro")),1),e.createElementVNode("div",P,[e.createElementVNode("div",null,[e.createVNode(u,{to:"/terms-of-use",class:"text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 underline",target:"_blank"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("legal_consent.terms_of_use")),1)]),_:1})]),e.createElementVNode("div",null,[e.createVNode(u,{to:"/privacy-notice",class:"text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 underline",target:"_blank"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("legal_consent.privacy_notice")),1)]),_:1})])]),e.createElementVNode("div",q,[e.createVNode(e.unref(c.script),{modelValue:a.value,"onUpdate:modelValue":d[0]||(d[0]=f=>a.value=f),"input-id":"consent-checkbox",binary:!0},null,8,["modelValue"]),e.createElementVNode("label",j,e.toDisplayString(e.unref(t)("legal_consent.checkbox_label")),1)]),e.createElementVNode("div",D,[e.createVNode(e.unref(l.script$1),{label:e.unref(t)("legal_consent.accept"),icon:"pi pi-check",disabled:!a.value,class:"flex-1",severity:"success",onClick:p},null,8,["label","disabled"]),e.createVNode(e.unref(l.script$1),{label:e.unref(t)("legal_consent.cancel"),icon:"pi pi-times",severity:"secondary",outlined:"",class:"flex-1",onClick:g},null,8,["label"])])])]),_:1})])}}});exports.default=L;
@@ -0,0 +1,151 @@
1
+ import { inject as b, defineComponent as k, ref as C, resolveComponent as V, openBlock as w, createElementBlock as P, createVNode as a, unref as t, withCtx as s, createElementVNode as o, toDisplayString as n, createTextVNode as p } from "vue";
2
+ import { useRouter as S } from "vue-router";
3
+ import { b as T, u as N, s as E } from "./lib-C3DWunRS.js";
4
+ import { s as L } from "./index-CgAb-gZi.js";
5
+ import { u as j, b as g } from "./index-DkuJMEY1.js";
6
+ import { createPinia as B } from "pinia";
7
+ var F = /* @__PURE__ */ Symbol();
8
+ function R() {
9
+ var r = b(F);
10
+ if (!r)
11
+ throw new Error("No PrimeVue Toast provided!");
12
+ return r;
13
+ }
14
+ var $ = /* @__PURE__ */ Symbol();
15
+ function q() {
16
+ var r = b($);
17
+ if (!r)
18
+ throw new Error("No PrimeVue Confirmation provided!");
19
+ return r;
20
+ }
21
+ const A = B(), D = T(
22
+ {
23
+ authenticationType: "TOKEN"
24
+ },
25
+ A
26
+ ), I = { class: "text-center" }, K = { class: "text-2xl font-bold text-gray-900 dark:text-gray-100 mb-2" }, O = { class: "space-y-4" }, U = { class: "text-gray-700 dark:text-gray-300 text-center" }, z = { class: "text-center space-y-2" }, G = { class: "flex items-center gap-3 p-3 border border-gray-200 dark:border-gray-700 rounded-lg" }, H = {
27
+ for: "consent-checkbox",
28
+ class: "text-sm text-gray-700 dark:text-gray-300 cursor-pointer"
29
+ }, J = { class: "flex gap-3 pt-4" }, ee = /* @__PURE__ */ k({
30
+ __name: "LegalConsent",
31
+ setup(r) {
32
+ const d = S(), u = d.currentRoute.value.redirectedFrom, f = N(), c = R(), y = q(), i = C(!1), { t: e } = j(), x = async () => {
33
+ try {
34
+ await f.acceptLegalConsent();
35
+ const l = u ? { path: u.path } : "/";
36
+ d.push(l).then(() => {
37
+ c.add({
38
+ severity: "success",
39
+ summary: e("legal_consent.toast_accept_summary"),
40
+ detail: e("legal_consent.toast_accept_detail"),
41
+ life: 5e3
42
+ });
43
+ });
44
+ } catch (l) {
45
+ console.error("Failed to accept legal consent:", l), c.add({
46
+ severity: "error",
47
+ summary: e("legal_consent.error_summary"),
48
+ detail: e("legal_consent.error_detail"),
49
+ life: 5e3
50
+ });
51
+ }
52
+ }, v = () => {
53
+ y.require({
54
+ message: e("legal_consent.confirm_message"),
55
+ header: e("legal_consent.confirm_header"),
56
+ icon: "pi pi-exclamation-triangle",
57
+ rejectProps: {
58
+ label: e("legal_consent.reject_label"),
59
+ severity: "secondary",
60
+ outlined: !0
61
+ },
62
+ acceptProps: {
63
+ label: e("legal_consent.accept_label"),
64
+ severity: "danger"
65
+ },
66
+ accept: () => {
67
+ c.add({
68
+ severity: "warn",
69
+ summary: e("legal_consent.disconnected_summary"),
70
+ detail: e("legal_consent.disconnected_detail"),
71
+ life: 5e3
72
+ }), D.logout();
73
+ }
74
+ });
75
+ };
76
+ return (l, m) => {
77
+ const _ = V("router-link");
78
+ return w(), P("section", null, [
79
+ a(t(L), { class: "w-full max-w-md" }, {
80
+ title: s(() => [
81
+ o("div", I, [
82
+ o("h1", K, n(t(e)("legal_consent.title")), 1)
83
+ ])
84
+ ]),
85
+ content: s(() => [
86
+ o("div", O, [
87
+ o("p", U, n(t(e)("legal_consent.intro")), 1),
88
+ o("div", z, [
89
+ o("div", null, [
90
+ a(_, {
91
+ to: "/terms-of-use",
92
+ class: "text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 underline",
93
+ target: "_blank"
94
+ }, {
95
+ default: s(() => [
96
+ p(n(t(e)("legal_consent.terms_of_use")), 1)
97
+ ]),
98
+ _: 1
99
+ })
100
+ ]),
101
+ o("div", null, [
102
+ a(_, {
103
+ to: "/privacy-notice",
104
+ class: "text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 underline",
105
+ target: "_blank"
106
+ }, {
107
+ default: s(() => [
108
+ p(n(t(e)("legal_consent.privacy_notice")), 1)
109
+ ]),
110
+ _: 1
111
+ })
112
+ ])
113
+ ]),
114
+ o("div", G, [
115
+ a(t(E), {
116
+ modelValue: i.value,
117
+ "onUpdate:modelValue": m[0] || (m[0] = (h) => i.value = h),
118
+ "input-id": "consent-checkbox",
119
+ binary: !0
120
+ }, null, 8, ["modelValue"]),
121
+ o("label", H, n(t(e)("legal_consent.checkbox_label")), 1)
122
+ ]),
123
+ o("div", J, [
124
+ a(t(g), {
125
+ label: t(e)("legal_consent.accept"),
126
+ icon: "pi pi-check",
127
+ disabled: !i.value,
128
+ class: "flex-1",
129
+ severity: "success",
130
+ onClick: x
131
+ }, null, 8, ["label", "disabled"]),
132
+ a(t(g), {
133
+ label: t(e)("legal_consent.cancel"),
134
+ icon: "pi pi-times",
135
+ severity: "secondary",
136
+ outlined: "",
137
+ class: "flex-1",
138
+ onClick: v
139
+ }, null, 8, ["label"])
140
+ ])
141
+ ])
142
+ ]),
143
+ _: 1
144
+ })
145
+ ]);
146
+ };
147
+ }
148
+ });
149
+ export {
150
+ ee as default
151
+ };
@@ -0,0 +1,109 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("vue");require("./axios-DMqeKDaq.cjs");const $e=require("./apiClient-BUS5ZclN.cjs"),ee=require("./lib-COvHzA2Y.cjs"),ae=require("./index-DfCQoHSf.cjs"),Re=require("./index-DFSkcsx-.cjs");function N(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var T=N();function oe(r){T=r}var $={exec:()=>null};function p(r,e=""){let n=typeof r=="string"?r:r.source,s={replace:(t,i)=>{let l=typeof i=="string"?i:i.source;return l=l.replace(b.caret,"$1"),n=n.replace(t,l),s},getRegex:()=>new RegExp(n,e)};return s}var Te=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),b={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:r=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}#`),htmlBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}>`)},ze=/^(?:[ \t]*(?:\n|$))+/,Ae=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ve=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,I=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Pe=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,O=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ce=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,he=p(ce).replace(/bull/g,O).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(),_e=p(ce).replace(/bull/g,O).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(),H=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ie=/^[^\n]+/,X=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Be=p(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",X).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Le=p(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,O).getRegex(),E="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",G=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ce=p("^ {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",G).replace("tag",E).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),pe=p(H).replace("hr",I).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",E).getRegex(),qe=p(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",pe).getRegex(),W={blockquote:qe,code:Ae,def:Be,fences:ve,heading:Pe,hr:I,html:Ce,lheading:he,list:Le,newline:ze,paragraph:pe,table:$,text:Ie},te=p("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",I).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",E).getRegex(),Ee={...W,lheading:_e,table:te,paragraph:p(H).replace("hr",I).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",te).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",E).getRegex()},Ze={...W,html:p(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",G).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:$,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:p(H).replace("hr",I).replace("heading",` *#{1,6} *[^
2
+ ]`).replace("lheading",he).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},De=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Me=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ue=/^( {2,}|\\)\n(?!\s*$)/,Qe=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Z=/[\p{P}\p{S}]/u,F=/[\s\p{P}\p{S}]/u,ge=/[^\s\p{P}\p{S}]/u,je=p(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,F).getRegex(),ke=/(?!~)[\p{P}\p{S}]/u,Ne=/(?!~)[\s\p{P}\p{S}]/u,Oe=/(?:[^\s\p{P}\p{S}]|~)/u,de=/(?![*_])[\p{P}\p{S}]/u,He=/(?![*_])[\s\p{P}\p{S}]/u,Xe=/(?:[^\s\p{P}\p{S}]|[*_])/u,Ge=p(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Te?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),fe=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,We=p(fe,"u").replace(/punct/g,Z).getRegex(),Fe=p(fe,"u").replace(/punct/g,ke).getRegex(),xe="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Ue=p(xe,"gu").replace(/notPunctSpace/g,ge).replace(/punctSpace/g,F).replace(/punct/g,Z).getRegex(),Ve=p(xe,"gu").replace(/notPunctSpace/g,Oe).replace(/punctSpace/g,Ne).replace(/punct/g,ke).getRegex(),Ke=p("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ge).replace(/punctSpace/g,F).replace(/punct/g,Z).getRegex(),Je=p(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,de).getRegex(),Ye="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",et=p(Ye,"gu").replace(/notPunctSpace/g,Xe).replace(/punctSpace/g,He).replace(/punct/g,de).getRegex(),tt=p(/\\(punct)/,"gu").replace(/punct/g,Z).getRegex(),nt=p(/^<(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(),rt=p(G).replace("(?:-->|$)","-->").getRegex(),st=p("^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",rt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),L=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,lt=p(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",L).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),be=p(/^!?\[(label)\]\[(ref)\]/).replace("label",L).replace("ref",X).getRegex(),me=p(/^!?\[(ref)\](?:\[\])?/).replace("ref",X).getRegex(),it=p("reflink|nolink(?!\\()","g").replace("reflink",be).replace("nolink",me).getRegex(),ne=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,U={_backpedal:$,anyPunctuation:tt,autolink:nt,blockSkip:Ge,br:ue,code:Me,del:$,delLDelim:$,delRDelim:$,emStrongLDelim:We,emStrongRDelimAst:Ue,emStrongRDelimUnd:Ke,escape:De,link:lt,nolink:me,punctuation:je,reflink:be,reflinkSearch:it,tag:st,text:Qe,url:$},at={...U,link:p(/^!?\[(label)\]\((.*?)\)/).replace("label",L).getRegex(),reflink:p(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",L).getRegex()},M={...U,emStrongRDelimAst:Ve,emStrongLDelim:Fe,delLDelim:Je,delRDelim:et,url:p(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ne).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:p(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",ne).getRegex()},ot={...M,br:p(ue).replace("{2,}","*").getRegex(),text:p(M.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},B={normal:W,gfm:Ee,pedantic:Ze},A={normal:U,gfm:M,breaks:ot,pedantic:at},ct={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},re=r=>ct[r];function y(r,e){if(e){if(b.escapeTest.test(r))return r.replace(b.escapeReplace,re)}else if(b.escapeTestNoEncode.test(r))return r.replace(b.escapeReplaceNoEncode,re);return r}function se(r){try{r=encodeURI(r).replace(b.percentDecode,"%")}catch{return null}return r}function le(r,e){let n=r.replace(b.findPipe,(i,l,o)=>{let a=!1,h=l;for(;--h>=0&&o[h]==="\\";)a=!a;return a?"|":" |"}),s=n.split(b.splitPipe),t=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),e)if(s.length>e)s.splice(e);else for(;s.length<e;)s.push("");for(;t<s.length;t++)s[t]=s[t].trim().replace(b.slashPipe,"|");return s}function v(r,e,n){let s=r.length;if(s===0)return"";let t=0;for(;t<s&&r.charAt(s-t-1)===e;)t++;return r.slice(0,s-t)}function ht(r,e){if(r.indexOf(e[1])===-1)return-1;let n=0;for(let s=0;s<r.length;s++)if(r[s]==="\\")s++;else if(r[s]===e[0])n++;else if(r[s]===e[1]&&(n--,n<0))return s;return n>0?-2:-1}function pt(r,e=0){let n=e,s="";for(let t of r)if(t===" "){let i=4-n%4;s+=" ".repeat(i),n+=i}else s+=t,n++;return s}function ie(r,e,n,s,t){let i=e.href,l=e.title||null,o=r[1].replace(t.other.outputLinkReplace,"$1");s.state.inLink=!0;let a={type:r[0].charAt(0)==="!"?"image":"link",raw:n,href:i,title:l,text:o,tokens:s.inlineTokens(o)};return s.state.inLink=!1,a}function ut(r,e,n){let s=r.match(n.other.indentCodeCompensation);if(s===null)return e;let t=s[1];return e.split(`
3
+ `).map(i=>{let l=i.match(n.other.beginningSpace);if(l===null)return i;let[o]=l;return o.length>=t.length?i.slice(t.length):i}).join(`
4
+ `)}var C=class{options;rules;lexer;constructor(r){this.options=r||T}space(r){let e=this.rules.block.newline.exec(r);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(r){let e=this.rules.block.code.exec(r);if(e){let n=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:v(n,`
5
+ `)}}}fences(r){let e=this.rules.block.fences.exec(r);if(e){let n=e[0],s=ut(n,e[3]||"",this.rules);return{type:"code",raw:n,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:s}}}heading(r){let e=this.rules.block.heading.exec(r);if(e){let n=e[2].trim();if(this.rules.other.endingHash.test(n)){let s=v(n,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(n=s.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(r){let e=this.rules.block.hr.exec(r);if(e)return{type:"hr",raw:v(e[0],`
6
+ `)}}blockquote(r){let e=this.rules.block.blockquote.exec(r);if(e){let n=v(e[0],`
7
+ `).split(`
8
+ `),s="",t="",i=[];for(;n.length>0;){let l=!1,o=[],a;for(a=0;a<n.length;a++)if(this.rules.other.blockquoteStart.test(n[a]))o.push(n[a]),l=!0;else if(!l)o.push(n[a]);else break;n=n.slice(a);let h=o.join(`
9
+ `),c=h.replace(this.rules.other.blockquoteSetextReplace,`
10
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
11
+ ${h}`:h,t=t?`${t}
12
+ ${c}`:c;let g=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=g,n.length===0)break;let u=i.at(-1);if(u?.type==="code")break;if(u?.type==="blockquote"){let x=u,d=x.raw+`
13
+ `+n.join(`
14
+ `),S=this.blockquote(d);i[i.length-1]=S,s=s.substring(0,s.length-x.raw.length)+S.raw,t=t.substring(0,t.length-x.text.length)+S.text;break}else if(u?.type==="list"){let x=u,d=x.raw+`
15
+ `+n.join(`
16
+ `),S=this.list(d);i[i.length-1]=S,s=s.substring(0,s.length-u.raw.length)+S.raw,t=t.substring(0,t.length-x.raw.length)+S.raw,n=d.substring(i.at(-1).raw.length).split(`
17
+ `);continue}}return{type:"blockquote",raw:s,tokens:i,text:t}}}list(r){let e=this.rules.block.list.exec(r);if(e){let n=e[1].trim(),s=n.length>1,t={type:"list",raw:"",ordered:s,start:s?+n.slice(0,-1):"",loose:!1,items:[]};n=s?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=s?n:"[*+-]");let i=this.rules.other.listItemRegex(n),l=!1;for(;r;){let a=!1,h="",c="";if(!(e=i.exec(r))||this.rules.block.hr.test(r))break;h=e[0],r=r.substring(h.length);let g=pt(e[2].split(`
18
+ `,1)[0],e[1].length),u=r.split(`
19
+ `,1)[0],x=!g.trim(),d=0;if(this.options.pedantic?(d=2,c=g.trimStart()):x?d=e[1].length+1:(d=g.search(this.rules.other.nonSpaceChar),d=d>4?1:d,c=g.slice(d),d+=e[1].length),x&&this.rules.other.blankLine.test(u)&&(h+=u+`
20
+ `,r=r.substring(u.length+1),a=!0),!a){let S=this.rules.other.nextBulletRegex(d),K=this.rules.other.hrRegex(d),J=this.rules.other.fencesBeginRegex(d),Y=this.rules.other.headingBeginRegex(d),ye=this.rules.other.htmlBeginRegex(d),Se=this.rules.other.blockquoteBeginRegex(d);for(;r;){let D=r.split(`
21
+ `,1)[0],z;if(u=D,this.options.pedantic?(u=u.replace(this.rules.other.listReplaceNesting," "),z=u):z=u.replace(this.rules.other.tabCharGlobal," "),J.test(u)||Y.test(u)||ye.test(u)||Se.test(u)||S.test(u)||K.test(u))break;if(z.search(this.rules.other.nonSpaceChar)>=d||!u.trim())c+=`
22
+ `+z.slice(d);else{if(x||g.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||J.test(g)||Y.test(g)||K.test(g))break;c+=`
23
+ `+u}x=!u.trim(),h+=D+`
24
+ `,r=r.substring(D.length+1),g=z.slice(d)}}t.loose||(l?t.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(l=!0)),t.items.push({type:"list_item",raw:h,task:!!this.options.gfm&&this.rules.other.listIsTask.test(c),loose:!1,text:c,tokens:[]}),t.raw+=h}let o=t.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;t.raw=t.raw.trimEnd();for(let a of t.items){if(this.lexer.state.top=!1,a.tokens=this.lexer.blockTokens(a.text,[]),a.task){if(a.text=a.text.replace(this.rules.other.listReplaceTask,""),a.tokens[0]?.type==="text"||a.tokens[0]?.type==="paragraph"){a.tokens[0].raw=a.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),a.tokens[0].text=a.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let c=this.lexer.inlineQueue.length-1;c>=0;c--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[c].src)){this.lexer.inlineQueue[c].src=this.lexer.inlineQueue[c].src.replace(this.rules.other.listReplaceTask,"");break}}let h=this.rules.other.listTaskCheckbox.exec(a.raw);if(h){let c={type:"checkbox",raw:h[0]+" ",checked:h[0]!=="[ ]"};a.checked=c.checked,t.loose?a.tokens[0]&&["paragraph","text"].includes(a.tokens[0].type)&&"tokens"in a.tokens[0]&&a.tokens[0].tokens?(a.tokens[0].raw=c.raw+a.tokens[0].raw,a.tokens[0].text=c.raw+a.tokens[0].text,a.tokens[0].tokens.unshift(c)):a.tokens.unshift({type:"paragraph",raw:c.raw,text:c.raw,tokens:[c]}):a.tokens.unshift(c)}}if(!t.loose){let h=a.tokens.filter(g=>g.type==="space"),c=h.length>0&&h.some(g=>this.rules.other.anyLine.test(g.raw));t.loose=c}}if(t.loose)for(let a of t.items){a.loose=!0;for(let h of a.tokens)h.type==="text"&&(h.type="paragraph")}return t}}html(r){let e=this.rules.block.html.exec(r);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(r){let e=this.rules.block.def.exec(r);if(e){let n=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",t=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:n,raw:e[0],href:s,title:t}}}table(r){let e=this.rules.block.table.exec(r);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let n=le(e[1]),s=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),t=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
25
+ `):[],i={type:"table",raw:e[0],header:[],align:[],rows:[]};if(n.length===s.length){for(let l of s)this.rules.other.tableAlignRight.test(l)?i.align.push("right"):this.rules.other.tableAlignCenter.test(l)?i.align.push("center"):this.rules.other.tableAlignLeft.test(l)?i.align.push("left"):i.align.push(null);for(let l=0;l<n.length;l++)i.header.push({text:n[l],tokens:this.lexer.inline(n[l]),header:!0,align:i.align[l]});for(let l of t)i.rows.push(le(l,i.header.length).map((o,a)=>({text:o,tokens:this.lexer.inline(o),header:!1,align:i.align[a]})));return i}}lheading(r){let e=this.rules.block.lheading.exec(r);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(r){let e=this.rules.block.paragraph.exec(r);if(e){let n=e[1].charAt(e[1].length-1)===`
26
+ `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:n,tokens:this.lexer.inline(n)}}}text(r){let e=this.rules.block.text.exec(r);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(r){let e=this.rules.inline.escape.exec(r);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(r){let e=this.rules.inline.tag.exec(r);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(r){let e=this.rules.inline.link.exec(r);if(e){let n=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let i=v(n.slice(0,-1),"\\");if((n.length-i.length)%2===0)return}else{let i=ht(e[2],"()");if(i===-2)return;if(i>-1){let l=(e[0].indexOf("!")===0?5:4)+e[1].length+i;e[2]=e[2].substring(0,i),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let s=e[2],t="";if(this.options.pedantic){let i=this.rules.other.pedanticHrefTitle.exec(s);i&&(s=i[1],t=i[3])}else t=e[3]?e[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?s=s.slice(1):s=s.slice(1,-1)),ie(e,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:t&&t.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(r,e){let n;if((n=this.rules.inline.reflink.exec(r))||(n=this.rules.inline.nolink.exec(r))){let s=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),t=e[s.toLowerCase()];if(!t){let i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return ie(n,t,n[0],this.lexer,this.rules)}}emStrong(r,e,n=""){let s=this.rules.inline.emStrongLDelim.exec(r);if(!(!s||s[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!n||this.rules.inline.punctuation.exec(n))){let t=[...s[0]].length-1,i,l,o=t,a=0,h=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,e=e.slice(-1*r.length+t);(s=h.exec(e))!=null;){if(i=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!i)continue;if(l=[...i].length,s[3]||s[4]){o+=l;continue}else if((s[5]||s[6])&&t%3&&!((t+l)%3)){a+=l;continue}if(o-=l,o>0)continue;l=Math.min(l,l+o+a);let c=[...s[0]][0].length,g=r.slice(0,t+s.index+c+l);if(Math.min(t,l)%2){let x=g.slice(1,-1);return{type:"em",raw:g,text:x,tokens:this.lexer.inlineTokens(x)}}let u=g.slice(2,-2);return{type:"strong",raw:g,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(r){let e=this.rules.inline.code.exec(r);if(e){let n=e[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(n),t=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return s&&t&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:e[0],text:n}}}br(r){let e=this.rules.inline.br.exec(r);if(e)return{type:"br",raw:e[0]}}del(r,e,n=""){let s=this.rules.inline.delLDelim.exec(r);if(s&&(!s[1]||!n||this.rules.inline.punctuation.exec(n))){let t=[...s[0]].length-1,i,l,o=t,a=this.rules.inline.delRDelim;for(a.lastIndex=0,e=e.slice(-1*r.length+t);(s=a.exec(e))!=null;){if(i=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!i||(l=[...i].length,l!==t))continue;if(s[3]||s[4]){o+=l;continue}if(o-=l,o>0)continue;l=Math.min(l,l+o);let h=[...s[0]][0].length,c=r.slice(0,t+s.index+h+l),g=c.slice(t,-t);return{type:"del",raw:c,text:g,tokens:this.lexer.inlineTokens(g)}}}}autolink(r){let e=this.rules.inline.autolink.exec(r);if(e){let n,s;return e[2]==="@"?(n=e[1],s="mailto:"+n):(n=e[1],s=n),{type:"link",raw:e[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}url(r){let e;if(e=this.rules.inline.url.exec(r)){let n,s;if(e[2]==="@")n=e[0],s="mailto:"+n;else{let t;do t=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(t!==e[0]);n=e[0],e[1]==="www."?s="http://"+e[0]:s=e[0]}return{type:"link",raw:e[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(r){let e=this.rules.inline.text.exec(r);if(e){let n=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:n}}}},m=class Q{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||T,this.options.tokenizer=this.options.tokenizer||new C,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 n={other:b,block:B.normal,inline:A.normal};this.options.pedantic?(n.block=B.pedantic,n.inline=A.pedantic):this.options.gfm&&(n.block=B.gfm,this.options.breaks?n.inline=A.breaks:n.inline=A.gfm),this.tokenizer.rules=n}static get rules(){return{block:B,inline:A}}static lex(e,n){return new Q(n).lex(e)}static lexInline(e,n){return new Q(n).inlineTokens(e)}lex(e){e=e.replace(b.carriageReturn,`
27
+ `),this.blockTokens(e,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let s=this.inlineQueue[n];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,n=[],s=!1){for(this.options.pedantic&&(e=e.replace(b.tabCharGlobal," ").replace(b.spaceLine,""));e;){let t;if(this.options.extensions?.block?.some(l=>(t=l.call({lexer:this},e,n))?(e=e.substring(t.raw.length),n.push(t),!0):!1))continue;if(t=this.tokenizer.space(e)){e=e.substring(t.raw.length);let l=n.at(-1);t.raw.length===1&&l!==void 0?l.raw+=`
28
+ `:n.push(t);continue}if(t=this.tokenizer.code(e)){e=e.substring(t.raw.length);let l=n.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=(l.raw.endsWith(`
29
+ `)?"":`
30
+ `)+t.raw,l.text+=`
31
+ `+t.text,this.inlineQueue.at(-1).src=l.text):n.push(t);continue}if(t=this.tokenizer.fences(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.heading(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.hr(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.blockquote(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.list(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.html(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.def(e)){e=e.substring(t.raw.length);let l=n.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=(l.raw.endsWith(`
32
+ `)?"":`
33
+ `)+t.raw,l.text+=`
34
+ `+t.raw,this.inlineQueue.at(-1).src=l.text):this.tokens.links[t.tag]||(this.tokens.links[t.tag]={href:t.href,title:t.title},n.push(t));continue}if(t=this.tokenizer.table(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.lheading(e)){e=e.substring(t.raw.length),n.push(t);continue}let i=e;if(this.options.extensions?.startBlock){let l=1/0,o=e.slice(1),a;this.options.extensions.startBlock.forEach(h=>{a=h.call({lexer:this},o),typeof a=="number"&&a>=0&&(l=Math.min(l,a))}),l<1/0&&l>=0&&(i=e.substring(0,l+1))}if(this.state.top&&(t=this.tokenizer.paragraph(i))){let l=n.at(-1);s&&l?.type==="paragraph"?(l.raw+=(l.raw.endsWith(`
35
+ `)?"":`
36
+ `)+t.raw,l.text+=`
37
+ `+t.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):n.push(t),s=i.length!==e.length,e=e.substring(t.raw.length);continue}if(t=this.tokenizer.text(e)){e=e.substring(t.raw.length);let l=n.at(-1);l?.type==="text"?(l.raw+=(l.raw.endsWith(`
38
+ `)?"":`
39
+ `)+t.raw,l.text+=`
40
+ `+t.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):n.push(t);continue}if(e){let l="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){let s=e,t=null;if(this.tokens.links){let a=Object.keys(this.tokens.links);if(a.length>0)for(;(t=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)a.includes(t[0].slice(t[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,t.index)+"["+"a".repeat(t[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(t=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,t.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(t=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)i=t[2]?t[2].length:0,s=s.slice(0,t.index+i)+"["+"a".repeat(t[0].length-i-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=this.options.hooks?.emStrongMask?.call({lexer:this},s)??s;let l=!1,o="";for(;e;){l||(o=""),l=!1;let a;if(this.options.extensions?.inline?.some(c=>(a=c.call({lexer:this},e,n))?(e=e.substring(a.raw.length),n.push(a),!0):!1))continue;if(a=this.tokenizer.escape(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.tag(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.link(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(a.raw.length);let c=n.at(-1);a.type==="text"&&c?.type==="text"?(c.raw+=a.raw,c.text+=a.text):n.push(a);continue}if(a=this.tokenizer.emStrong(e,s,o)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.codespan(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.br(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.del(e,s,o)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.autolink(e)){e=e.substring(a.raw.length),n.push(a);continue}if(!this.state.inLink&&(a=this.tokenizer.url(e))){e=e.substring(a.raw.length),n.push(a);continue}let h=e;if(this.options.extensions?.startInline){let c=1/0,g=e.slice(1),u;this.options.extensions.startInline.forEach(x=>{u=x.call({lexer:this},g),typeof u=="number"&&u>=0&&(c=Math.min(c,u))}),c<1/0&&c>=0&&(h=e.substring(0,c+1))}if(a=this.tokenizer.inlineText(h)){e=e.substring(a.raw.length),a.raw.slice(-1)!=="_"&&(o=a.raw.slice(-1)),l=!0;let c=n.at(-1);c?.type==="text"?(c.raw+=a.raw,c.text+=a.text):n.push(a);continue}if(e){let c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return n}},q=class{options;parser;constructor(r){this.options=r||T}space(r){return""}code({text:r,lang:e,escaped:n}){let s=(e||"").match(b.notSpaceStart)?.[0],t=r.replace(b.endingNewline,"")+`
41
+ `;return s?'<pre><code class="language-'+y(s)+'">'+(n?t:y(t,!0))+`</code></pre>
42
+ `:"<pre><code>"+(n?t:y(t,!0))+`</code></pre>
43
+ `}blockquote({tokens:r}){return`<blockquote>
44
+ ${this.parser.parse(r)}</blockquote>
45
+ `}html({text:r}){return r}def(r){return""}heading({tokens:r,depth:e}){return`<h${e}>${this.parser.parseInline(r)}</h${e}>
46
+ `}hr(r){return`<hr>
47
+ `}list(r){let e=r.ordered,n=r.start,s="";for(let l=0;l<r.items.length;l++){let o=r.items[l];s+=this.listitem(o)}let t=e?"ol":"ul",i=e&&n!==1?' start="'+n+'"':"";return"<"+t+i+`>
48
+ `+s+"</"+t+`>
49
+ `}listitem(r){return`<li>${this.parser.parse(r.tokens)}</li>
50
+ `}checkbox({checked:r}){return"<input "+(r?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:r}){return`<p>${this.parser.parseInline(r)}</p>
51
+ `}table(r){let e="",n="";for(let t=0;t<r.header.length;t++)n+=this.tablecell(r.header[t]);e+=this.tablerow({text:n});let s="";for(let t=0;t<r.rows.length;t++){let i=r.rows[t];n="";for(let l=0;l<i.length;l++)n+=this.tablecell(i[l]);s+=this.tablerow({text:n})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
52
+ <thead>
53
+ `+e+`</thead>
54
+ `+s+`</table>
55
+ `}tablerow({text:r}){return`<tr>
56
+ ${r}</tr>
57
+ `}tablecell(r){let e=this.parser.parseInline(r.tokens),n=r.header?"th":"td";return(r.align?`<${n} align="${r.align}">`:`<${n}>`)+e+`</${n}>
58
+ `}strong({tokens:r}){return`<strong>${this.parser.parseInline(r)}</strong>`}em({tokens:r}){return`<em>${this.parser.parseInline(r)}</em>`}codespan({text:r}){return`<code>${y(r,!0)}</code>`}br(r){return"<br>"}del({tokens:r}){return`<del>${this.parser.parseInline(r)}</del>`}link({href:r,title:e,tokens:n}){let s=this.parser.parseInline(n),t=se(r);if(t===null)return s;r=t;let i='<a href="'+r+'"';return e&&(i+=' title="'+y(e)+'"'),i+=">"+s+"</a>",i}image({href:r,title:e,text:n,tokens:s}){s&&(n=this.parser.parseInline(s,this.parser.textRenderer));let t=se(r);if(t===null)return y(n);r=t;let i=`<img src="${r}" alt="${y(n)}"`;return e&&(i+=` title="${y(e)}"`),i+=">",i}text(r){return"tokens"in r&&r.tokens?this.parser.parseInline(r.tokens):"escaped"in r&&r.escaped?r.text:y(r.text)}},V=class{strong({text:r}){return r}em({text:r}){return r}codespan({text:r}){return r}del({text:r}){return r}html({text:r}){return r}text({text:r}){return r}link({text:r}){return""+r}image({text:r}){return""+r}br(){return""}checkbox({raw:r}){return r}},w=class j{options;renderer;textRenderer;constructor(e){this.options=e||T,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 V}static parse(e,n){return new j(n).parse(e)}static parseInline(e,n){return new j(n).parseInline(e)}parse(e){let n="";for(let s=0;s<e.length;s++){let t=e[s];if(this.options.extensions?.renderers?.[t.type]){let l=t,o=this.options.extensions.renderers[l.type].call({parser:this},l);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){n+=o||"";continue}}let i=t;switch(i.type){case"space":{n+=this.renderer.space(i);break}case"hr":{n+=this.renderer.hr(i);break}case"heading":{n+=this.renderer.heading(i);break}case"code":{n+=this.renderer.code(i);break}case"table":{n+=this.renderer.table(i);break}case"blockquote":{n+=this.renderer.blockquote(i);break}case"list":{n+=this.renderer.list(i);break}case"checkbox":{n+=this.renderer.checkbox(i);break}case"html":{n+=this.renderer.html(i);break}case"def":{n+=this.renderer.def(i);break}case"paragraph":{n+=this.renderer.paragraph(i);break}case"text":{n+=this.renderer.text(i);break}default:{let l='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return n}parseInline(e,n=this.renderer){let s="";for(let t=0;t<e.length;t++){let i=e[t];if(this.options.extensions?.renderers?.[i.type]){let o=this.options.extensions.renderers[i.type].call({parser:this},i);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){s+=o||"";continue}}let l=i;switch(l.type){case"escape":{s+=n.text(l);break}case"html":{s+=n.html(l);break}case"link":{s+=n.link(l);break}case"image":{s+=n.image(l);break}case"checkbox":{s+=n.checkbox(l);break}case"strong":{s+=n.strong(l);break}case"em":{s+=n.em(l);break}case"codespan":{s+=n.codespan(l);break}case"br":{s+=n.br(l);break}case"del":{s+=n.del(l);break}case"text":{s+=n.text(l);break}default:{let o='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return s}},P=class{options;block;constructor(r){this.options=r||T}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(r){return r}postprocess(r){return r}processAllTokens(r){return r}emStrongMask(r){return r}provideLexer(){return this.block?m.lex:m.lexInline}provideParser(){return this.block?w.parse:w.parseInline}},gt=class{defaults=N();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=w;Renderer=q;TextRenderer=V;Lexer=m;Tokenizer=C;Hooks=P;constructor(...r){this.use(...r)}walkTokens(r,e){let n=[];for(let s of r)switch(n=n.concat(e.call(this,s)),s.type){case"table":{let t=s;for(let i of t.header)n=n.concat(this.walkTokens(i.tokens,e));for(let i of t.rows)for(let l of i)n=n.concat(this.walkTokens(l.tokens,e));break}case"list":{let t=s;n=n.concat(this.walkTokens(t.items,e));break}default:{let t=s;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(i=>{let l=t[i].flat(1/0);n=n.concat(this.walkTokens(l,e))}):t.tokens&&(n=n.concat(this.walkTokens(t.tokens,e)))}}return n}use(...r){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return r.forEach(n=>{let s={...n};if(s.async=this.defaults.async||s.async||!1,n.extensions&&(n.extensions.forEach(t=>{if(!t.name)throw new Error("extension name required");if("renderer"in t){let i=e.renderers[t.name];i?e.renderers[t.name]=function(...l){let o=t.renderer.apply(this,l);return o===!1&&(o=i.apply(this,l)),o}:e.renderers[t.name]=t.renderer}if("tokenizer"in t){if(!t.level||t.level!=="block"&&t.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let i=e[t.level];i?i.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&(t.level==="block"?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:t.level==="inline"&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)}),s.extensions=e),n.renderer){let t=this.defaults.renderer||new q(this.defaults);for(let i in n.renderer){if(!(i in t))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let l=i,o=n.renderer[l],a=t[l];t[l]=(...h)=>{let c=o.apply(t,h);return c===!1&&(c=a.apply(t,h)),c||""}}s.renderer=t}if(n.tokenizer){let t=this.defaults.tokenizer||new C(this.defaults);for(let i in n.tokenizer){if(!(i in t))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let l=i,o=n.tokenizer[l],a=t[l];t[l]=(...h)=>{let c=o.apply(t,h);return c===!1&&(c=a.apply(t,h)),c}}s.tokenizer=t}if(n.hooks){let t=this.defaults.hooks||new P;for(let i in n.hooks){if(!(i in t))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let l=i,o=n.hooks[l],a=t[l];P.passThroughHooks.has(i)?t[l]=h=>{if(this.defaults.async&&P.passThroughHooksRespectAsync.has(i))return(async()=>{let g=await o.call(t,h);return a.call(t,g)})();let c=o.call(t,h);return a.call(t,c)}:t[l]=(...h)=>{if(this.defaults.async)return(async()=>{let g=await o.apply(t,h);return g===!1&&(g=await a.apply(t,h)),g})();let c=o.apply(t,h);return c===!1&&(c=a.apply(t,h)),c}}s.hooks=t}if(n.walkTokens){let t=this.defaults.walkTokens,i=n.walkTokens;s.walkTokens=function(l){let o=[];return o.push(i.call(this,l)),t&&(o=o.concat(t.call(this,l))),o}}this.defaults={...this.defaults,...s}}),this}setOptions(r){return this.defaults={...this.defaults,...r},this}lexer(r,e){return m.lex(r,e??this.defaults)}parser(r,e){return w.parse(r,e??this.defaults)}parseMarkdown(r){return(e,n)=>{let s={...n},t={...this.defaults,...s},i=this.onError(!!t.silent,!!t.async);if(this.defaults.async===!0&&s.async===!1)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 e>"u"||e===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(t.hooks&&(t.hooks.options=t,t.hooks.block=r),t.async)return(async()=>{let l=t.hooks?await t.hooks.preprocess(e):e,o=await(t.hooks?await t.hooks.provideLexer():r?m.lex:m.lexInline)(l,t),a=t.hooks?await t.hooks.processAllTokens(o):o;t.walkTokens&&await Promise.all(this.walkTokens(a,t.walkTokens));let h=await(t.hooks?await t.hooks.provideParser():r?w.parse:w.parseInline)(a,t);return t.hooks?await t.hooks.postprocess(h):h})().catch(i);try{t.hooks&&(e=t.hooks.preprocess(e));let l=(t.hooks?t.hooks.provideLexer():r?m.lex:m.lexInline)(e,t);t.hooks&&(l=t.hooks.processAllTokens(l)),t.walkTokens&&this.walkTokens(l,t.walkTokens);let o=(t.hooks?t.hooks.provideParser():r?w.parse:w.parseInline)(l,t);return t.hooks&&(o=t.hooks.postprocess(o)),o}catch(l){return i(l)}}}onError(r,e){return n=>{if(n.message+=`
59
+ Please report this to https://github.com/markedjs/marked.`,r){let s="<p>An error occurred:</p><pre>"+y(n.message+"",!0)+"</pre>";return e?Promise.resolve(s):s}if(e)return Promise.reject(n);throw n}}},R=new gt;function k(r,e){return R.parse(r,e)}k.options=k.setOptions=function(r){return R.setOptions(r),k.defaults=R.defaults,oe(k.defaults),k};k.getDefaults=N;k.defaults=T;k.use=function(...r){return R.use(...r),k.defaults=R.defaults,oe(k.defaults),k};k.walkTokens=function(r,e){return R.walkTokens(r,e)};k.parseInline=R.parseInline;k.Parser=w;k.parser=w.parse;k.Renderer=q;k.TextRenderer=V;k.Lexer=m;k.lexer=m.lex;k.Tokenizer=C;k.Hooks=P;k.parse=k;k.options;k.setOptions;k.use;k.walkTokens;k.parseInline;w.parse;m.lex;var kt=`
60
+ .p-skeleton {
61
+ display: block;
62
+ overflow: hidden;
63
+ background: dt('skeleton.background');
64
+ border-radius: dt('skeleton.border.radius');
65
+ }
66
+
67
+ .p-skeleton::after {
68
+ content: '';
69
+ animation: p-skeleton-animation 1.2s infinite;
70
+ height: 100%;
71
+ left: 0;
72
+ position: absolute;
73
+ right: 0;
74
+ top: 0;
75
+ transform: translateX(-100%);
76
+ z-index: 1;
77
+ background: linear-gradient(90deg, rgba(255, 255, 255, 0), dt('skeleton.animation.background'), rgba(255, 255, 255, 0));
78
+ }
79
+
80
+ [dir='rtl'] .p-skeleton::after {
81
+ animation-name: p-skeleton-animation-rtl;
82
+ }
83
+
84
+ .p-skeleton-circle {
85
+ border-radius: 50%;
86
+ }
87
+
88
+ .p-skeleton-animation-none::after {
89
+ animation: none;
90
+ }
91
+
92
+ @keyframes p-skeleton-animation {
93
+ from {
94
+ transform: translateX(-100%);
95
+ }
96
+ to {
97
+ transform: translateX(100%);
98
+ }
99
+ }
100
+
101
+ @keyframes p-skeleton-animation-rtl {
102
+ from {
103
+ transform: translateX(100%);
104
+ }
105
+ to {
106
+ transform: translateX(-100%);
107
+ }
108
+ }
109
+ `,dt={root:{position:"relative"}},ft={root:function(e){var n=e.props;return["p-skeleton p-component",{"p-skeleton-circle":n.shape==="circle","p-skeleton-animation-none":n.animation==="none"}]}},xt=ae.BaseStyle.extend({name:"skeleton",style:kt,classes:ft,inlineStyles:dt}),bt={name:"BaseSkeleton",extends:ae.script,props:{shape:{type:String,default:"rectangle"},size:{type:String,default:null},width:{type:String,default:"100%"},height:{type:String,default:"1rem"},borderRadius:{type:String,default:null},animation:{type:String,default:"wave"}},style:xt,provide:function(){return{$pcSkeleton:this,$parentInstance:this}}};function _(r){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(r)}function mt(r,e,n){return(e=wt(e))in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}function wt(r){var e=yt(r,"string");return _(e)=="symbol"?e:e+""}function yt(r,e){if(_(r)!="object"||!r)return r;var n=r[Symbol.toPrimitive];if(n!==void 0){var s=n.call(r,e);if(_(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var we={name:"Skeleton",extends:bt,inheritAttrs:!1,computed:{containerStyle:function(){return this.size?{width:this.size,height:this.size,borderRadius:this.borderRadius}:{width:this.width,height:this.height,borderRadius:this.borderRadius}},dataP:function(){return Re.f(mt({},this.shape,this.shape))}}},St=["data-p"];function $t(r,e,n,s,t,i){return f.openBlock(),f.createElementBlock("div",f.mergeProps({class:r.cx("root"),style:[r.sx("root"),i.containerStyle],"aria-hidden":"true"},r.ptmi("root"),{"data-p":i.dataP}),null,16,St)}we.render=$t;const Rt=f.defineComponent({__name:"LegalDocument",props:{classes:{default:""},documentEndpoint:{}},setup(r){const e=ee.useLegalStore(),n=f.useTemplateRef("legal-document"),{data:s,isLoading:t}=$e.apiClient.query(f.ref(`${e.legalEndpoint}/${r.documentEndpoint}`));f.watch(s,()=>{i(s)}),f.onMounted(()=>{i(s)});function i(l){l.value&&(n.value.innerHTML=k.parse(l.value),ee.applyMarkdownClasses(n.value))}return(l,o)=>(f.openBlock(),f.createElementBlock("section",null,[f.unref(t)?(f.openBlock(),f.createBlock(f.unref(we),{key:0,width:"100%",height:"10rem"})):f.createCommentVNode("",!0),f.createElementVNode("div",{id:"legal-document",ref:"legal-document",class:f.normalizeClass(["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",r.classes])},null,2)]))}});exports.default=Rt;