@mojawork/ui-docs 2.3.0

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 (263) hide show
  1. package/README.md +22 -0
  2. package/bin/serve.mjs +73 -0
  3. package/catalog/atoms/background.md +130 -0
  4. package/catalog/atoms/barcode.md +285 -0
  5. package/catalog/atoms/buzzer.md +210 -0
  6. package/catalog/atoms/card.md +174 -0
  7. package/catalog/atoms/chart.md +236 -0
  8. package/catalog/atoms/clock.md +252 -0
  9. package/catalog/atoms/copy-value.md +203 -0
  10. package/catalog/atoms/image-grid.md +208 -0
  11. package/catalog/atoms/image-slider.md +216 -0
  12. package/catalog/atoms/lang-selector.md +237 -0
  13. package/catalog/atoms/mosaic.md +366 -0
  14. package/catalog/atoms/placeholder.md +157 -0
  15. package/catalog/atoms/qr-code.md +334 -0
  16. package/catalog/atoms/rating.md +176 -0
  17. package/catalog/atoms/reader-doc.md +404 -0
  18. package/catalog/atoms/text-animate.md +122 -0
  19. package/catalog/atoms/thumb.md +153 -0
  20. package/catalog/atoms/timer.md +111 -0
  21. package/catalog/atoms/typewriter.md +132 -0
  22. package/catalog/cdk/splitter.md +63 -0
  23. package/catalog/cdk/table.md +188 -0
  24. package/catalog/forms/autocomplete.md +304 -0
  25. package/catalog/forms/checkbox.md +218 -0
  26. package/catalog/forms/input.md +193 -0
  27. package/catalog/forms/slider.md +142 -0
  28. package/catalog/forms/switch.md +188 -0
  29. package/catalog/guide.json +1209 -0
  30. package/catalog/layout/header.md +167 -0
  31. package/catalog/layout/main.md +158 -0
  32. package/catalog/layout/media-screen.md +163 -0
  33. package/catalog/layout/nav.md +181 -0
  34. package/catalog/layout/overlay.md +256 -0
  35. package/catalog/layout/spinner.md +94 -0
  36. package/catalog/layout/splitter.md +331 -0
  37. package/catalog/layout/tabs.md +144 -0
  38. package/catalog/layout/top-scroll-bottom.md +98 -0
  39. package/catalog/manifest.json +482 -0
  40. package/catalog/mcp.json +44 -0
  41. package/catalog/molecules/image-editor.md +285 -0
  42. package/catalog/usage.md +137 -0
  43. package/catalog/version.json +4 -0
  44. package/package.json +10 -0
  45. package/storybook/1183.da25800b.iframe.bundle.js +1 -0
  46. package/storybook/1255.2abec879.iframe.bundle.js +2 -0
  47. package/storybook/1255.2abec879.iframe.bundle.js.LICENSE.txt +5 -0
  48. package/storybook/1516.52d2dae7.iframe.bundle.js +2 -0
  49. package/storybook/1516.52d2dae7.iframe.bundle.js.LICENSE.txt +5 -0
  50. package/storybook/2033.c705a7ce.iframe.bundle.js +1 -0
  51. package/storybook/2089.32694489.iframe.bundle.js +1 -0
  52. package/storybook/2096.431fc8f5.iframe.bundle.js +1 -0
  53. package/storybook/2127.29f153d2.iframe.bundle.js +2 -0
  54. package/storybook/2127.29f153d2.iframe.bundle.js.LICENSE.txt +7 -0
  55. package/storybook/2228.77650ef1.iframe.bundle.js +2 -0
  56. package/storybook/2228.77650ef1.iframe.bundle.js.LICENSE.txt +1 -0
  57. package/storybook/2249.6e6782ab.iframe.bundle.js +1 -0
  58. package/storybook/2639.29baa8af.iframe.bundle.js +1 -0
  59. package/storybook/2844.c9f47654.iframe.bundle.js +1 -0
  60. package/storybook/2971.edb202b4.iframe.bundle.js +1 -0
  61. package/storybook/3899.55560628.iframe.bundle.js +2 -0
  62. package/storybook/3899.55560628.iframe.bundle.js.LICENSE.txt +5 -0
  63. package/storybook/3968.69b812e4.iframe.bundle.js +1 -0
  64. package/storybook/4255.eeeaf087.iframe.bundle.js +111 -0
  65. package/storybook/4255.eeeaf087.iframe.bundle.js.LICENSE.txt +49 -0
  66. package/storybook/4255.eeeaf087.iframe.bundle.js.map +1 -0
  67. package/storybook/4425.368129b3.iframe.bundle.js +2 -0
  68. package/storybook/4425.368129b3.iframe.bundle.js.LICENSE.txt +5 -0
  69. package/storybook/4476.f8e4115f.iframe.bundle.js +1 -0
  70. package/storybook/4495.d1c8cc8d.iframe.bundle.js +1 -0
  71. package/storybook/4555.066c242d.iframe.bundle.js +1 -0
  72. package/storybook/4755.e4656207.iframe.bundle.js +23 -0
  73. package/storybook/4755.e4656207.iframe.bundle.js.LICENSE.txt +14 -0
  74. package/storybook/4755.e4656207.iframe.bundle.js.map +1 -0
  75. package/storybook/4935.8959522b.iframe.bundle.js +1 -0
  76. package/storybook/5568.c6172f92.iframe.bundle.js +1 -0
  77. package/storybook/5944.810cb147.iframe.bundle.js +1 -0
  78. package/storybook/6115.7f1470ef.iframe.bundle.js +1 -0
  79. package/storybook/6169.eaeed989.iframe.bundle.js +2 -0
  80. package/storybook/6169.eaeed989.iframe.bundle.js.LICENSE.txt +5 -0
  81. package/storybook/6202.b8ca0e90.iframe.bundle.js +2 -0
  82. package/storybook/6202.b8ca0e90.iframe.bundle.js.LICENSE.txt +5 -0
  83. package/storybook/660.18f0458e.iframe.bundle.js +1 -0
  84. package/storybook/6824.f5eb8bb7.iframe.bundle.js +1 -0
  85. package/storybook/7316.5b024e94.iframe.bundle.js +1 -0
  86. package/storybook/7749.2a853795.iframe.bundle.js +1 -0
  87. package/storybook/8051.719eb790.iframe.bundle.js +1 -0
  88. package/storybook/813.805c1e5f.iframe.bundle.js +1 -0
  89. package/storybook/8448.1baeb046.iframe.bundle.js +1 -0
  90. package/storybook/871.428deceb.iframe.bundle.js +1 -0
  91. package/storybook/8819.220ca21d.iframe.bundle.js +1 -0
  92. package/storybook/9045.a50616e9.iframe.bundle.js +2 -0
  93. package/storybook/9045.a50616e9.iframe.bundle.js.LICENSE.txt +5 -0
  94. package/storybook/9560.668052f3.iframe.bundle.js +7 -0
  95. package/storybook/9560.668052f3.iframe.bundle.js.map +1 -0
  96. package/storybook/973.67f44bb0.iframe.bundle.js +1 -0
  97. package/storybook/9850.28367747.iframe.bundle.js +1 -0
  98. package/storybook/9946.36014b4e.iframe.bundle.js +1 -0
  99. package/storybook/MaterialIcons-Regular.woff2 +0 -0
  100. package/storybook/MaterialIconsOutlined-Regular.woff2 +0 -0
  101. package/storybook/PetMe64.ttf +0 -0
  102. package/storybook/_external-mwork-banner-docs-mdx.0d5549a0.iframe.bundle.js +1 -0
  103. package/storybook/_external-mwork-banner-mwork-banner-stories.d44f6917.iframe.bundle.js +1 -0
  104. package/storybook/_external-mwork-basic-interpreter-docs-mdx.03c6205c.iframe.bundle.js +1 -0
  105. package/storybook/_external-mwork-basic-interpreter-mwork-basic-interpreter-stories.3252a9b8.iframe.bundle.js +1 -0
  106. package/storybook/_external-mwork-music-player-docs-mdx.6f943768.iframe.bundle.js +1 -0
  107. package/storybook/_external-mwork-music-player-mwork-music-player-stories.08fbf651.iframe.bundle.js +1 -0
  108. package/storybook/assets/fonts/PETME64-LICENSE.txt +20 -0
  109. package/storybook/assets/fonts/PetMe64.ttf +0 -0
  110. package/storybook/assets/fonts/icons/MaterialIcons-Regular.woff2 +0 -0
  111. package/storybook/assets/fonts/icons/MaterialIconsOutlined-Regular.woff2 +0 -0
  112. package/storybook/assets/ui/documents/demo.pdf +42 -0
  113. package/storybook/assets/ui/i18n/de-DE.json +1 -0
  114. package/storybook/assets/ui/i18n/en-EN.json +2 -0
  115. package/storybook/assets/ui/i18n/ui/de-DE.json +95 -0
  116. package/storybook/assets/ui/i18n/ui/en-EN.json +95 -0
  117. package/storybook/assets/ui/images/600x600.png +0 -0
  118. package/storybook/assets/ui/images/600x800.png +0 -0
  119. package/storybook/assets/ui/images/800x600.png +0 -0
  120. package/storybook/assets/ui/images/unknown.gif +0 -0
  121. package/storybook/atoms-_electrons-form-error-message-docs-mdx.5b9e78fe.iframe.bundle.js +1 -0
  122. package/storybook/atoms-_electrons-form-error-message-form-error-message-component-stories.7f749acc.iframe.bundle.js +1 -0
  123. package/storybook/atoms-background-background-component-stories.b6b50c0c.iframe.bundle.js +1 -0
  124. package/storybook/atoms-background-docs-mdx.4f102c17.iframe.bundle.js +1 -0
  125. package/storybook/atoms-barcode-barcode-component-stories.dc462559.iframe.bundle.js +1 -0
  126. package/storybook/atoms-barcode-docs-mdx.b74c501b.iframe.bundle.js +1 -0
  127. package/storybook/atoms-buzzer-buzzer-component-stories.13ee130d.iframe.bundle.js +1 -0
  128. package/storybook/atoms-buzzer-docs-mdx.23eb1913.iframe.bundle.js +1 -0
  129. package/storybook/atoms-card-card-component-stories.065b34e9.iframe.bundle.js +1 -0
  130. package/storybook/atoms-card-docs-mdx.7d276114.iframe.bundle.js +1 -0
  131. package/storybook/atoms-chart-chart-component-stories.5247b7cb.iframe.bundle.js +1 -0
  132. package/storybook/atoms-chart-docs-mdx.204609d4.iframe.bundle.js +1 -0
  133. package/storybook/atoms-clock-clock-component-stories.d1464731.iframe.bundle.js +1 -0
  134. package/storybook/atoms-clock-docs-mdx.501e6780.iframe.bundle.js +1 -0
  135. package/storybook/atoms-copy-value-copy-value-component-stories.58d3956a.iframe.bundle.js +1 -0
  136. package/storybook/atoms-copy-value-docs-mdx.f404dcd2.iframe.bundle.js +1 -0
  137. package/storybook/atoms-image-grid-docs-mdx.18b4df2a.iframe.bundle.js +1 -0
  138. package/storybook/atoms-image-grid-image-grid-component-stories.a0a92d9e.iframe.bundle.js +1 -0
  139. package/storybook/atoms-image-slider-docs-mdx.c616bb37.iframe.bundle.js +1 -0
  140. package/storybook/atoms-image-slider-image-slider-component-stories.484b9c41.iframe.bundle.js +1 -0
  141. package/storybook/atoms-lang-selector-docs-mdx.a327a27f.iframe.bundle.js +2 -0
  142. package/storybook/atoms-lang-selector-docs-mdx.a327a27f.iframe.bundle.js.LICENSE.txt +5 -0
  143. package/storybook/atoms-lang-selector-lang-selector-component-stories.41d7efd1.iframe.bundle.js +2 -0
  144. package/storybook/atoms-lang-selector-lang-selector-component-stories.41d7efd1.iframe.bundle.js.LICENSE.txt +5 -0
  145. package/storybook/atoms-mosaic-docs-mdx.1aebfbdf.iframe.bundle.js +1 -0
  146. package/storybook/atoms-mosaic-mosaic-component-stories.0a6bc043.iframe.bundle.js +1 -0
  147. package/storybook/atoms-placeholder-docs-mdx.cd2f3976.iframe.bundle.js +1 -0
  148. package/storybook/atoms-placeholder-placeholder-component-stories.bc221534.iframe.bundle.js +1 -0
  149. package/storybook/atoms-qr-code-docs-mdx.4202568d.iframe.bundle.js +1 -0
  150. package/storybook/atoms-qr-code-qr-code-component-stories.5018e2b0.iframe.bundle.js +1 -0
  151. package/storybook/atoms-rating-docs-mdx.32fa4104.iframe.bundle.js +1 -0
  152. package/storybook/atoms-rating-rating-component-stories.982db47d.iframe.bundle.js +1 -0
  153. package/storybook/atoms-reader-doc-docs-mdx.0688c3b9.iframe.bundle.js +1 -0
  154. package/storybook/atoms-reader-doc-reader-doc-component-stories.a6fec57d.iframe.bundle.js +1 -0
  155. package/storybook/atoms-text-animate-docs-mdx.05e1baf4.iframe.bundle.js +1 -0
  156. package/storybook/atoms-text-animate-text-animate-component-stories.8041c0f1.iframe.bundle.js +1 -0
  157. package/storybook/atoms-thumb-docs-mdx.2143ad01.iframe.bundle.js +1 -0
  158. package/storybook/atoms-thumb-thumb-component-stories.06f51d03.iframe.bundle.js +1 -0
  159. package/storybook/atoms-timer-docs-mdx.6f724cc8.iframe.bundle.js +1 -0
  160. package/storybook/atoms-timer-timer-component-stories.9bee1037.iframe.bundle.js +1 -0
  161. package/storybook/atoms-typewriter-docs-mdx.3b1088c0.iframe.bundle.js +1 -0
  162. package/storybook/atoms-typewriter-typewriter-component-stories.4fefc019.iframe.bundle.js +1 -0
  163. package/storybook/cdk-components-drag-and-drop-splitter-docs-mdx.f12088fd.iframe.bundle.js +1 -0
  164. package/storybook/cdk-components-drag-and-drop-splitter-splitter-component-stories.286b5171.iframe.bundle.js +1 -0
  165. package/storybook/cdk-components-table-docs-mdx.cc2c11e7.iframe.bundle.js +1 -0
  166. package/storybook/cdk-components-table-table-component-stories.db9212fd.iframe.bundle.js +1 -0
  167. package/storybook/examples-burger-menu-stories.0a083a75.iframe.bundle.js +1 -0
  168. package/storybook/examples-docs-mdx.3111f2c6.iframe.bundle.js +1 -0
  169. package/storybook/examples-image-grid-slider-docs-mdx.9e38157e.iframe.bundle.js +1 -0
  170. package/storybook/examples-image-grid-slider-image-grid-slider-stories.028c8c2b.iframe.bundle.js +1 -0
  171. package/storybook/examples-layout-docs-mdx.bbacdfd2.iframe.bundle.js +1 -0
  172. package/storybook/examples-layout-layout-stories.05cd891f.iframe.bundle.js +1 -0
  173. package/storybook/examples-table-edit-focus-docs-mdx.3c0d1611.iframe.bundle.js +1 -0
  174. package/storybook/examples-table-edit-focus-table-edit-focus-stories.c79e214a.iframe.bundle.js +1 -0
  175. package/storybook/examples-transloco-docs-mdx.97df7022.iframe.bundle.js +2 -0
  176. package/storybook/examples-transloco-docs-mdx.97df7022.iframe.bundle.js.LICENSE.txt +5 -0
  177. package/storybook/examples-transloco-transloco-component-stories.5baea2e2.iframe.bundle.js +2 -0
  178. package/storybook/examples-transloco-transloco-component-stories.5baea2e2.iframe.bundle.js.LICENSE.txt +5 -0
  179. package/storybook/favicon-wrapper.svg +46 -0
  180. package/storybook/favicon.svg +1 -0
  181. package/storybook/forms-autocomplete-autocomplete-component-stories.443544e0.iframe.bundle.js +2 -0
  182. package/storybook/forms-autocomplete-autocomplete-component-stories.443544e0.iframe.bundle.js.LICENSE.txt +5 -0
  183. package/storybook/forms-autocomplete-docs-mdx.09beba1b.iframe.bundle.js +2 -0
  184. package/storybook/forms-autocomplete-docs-mdx.09beba1b.iframe.bundle.js.LICENSE.txt +5 -0
  185. package/storybook/forms-autofocus-autofocus-stories.2e94d887.iframe.bundle.js +1 -0
  186. package/storybook/forms-autofocus-docs-mdx.39611362.iframe.bundle.js +1 -0
  187. package/storybook/forms-checkbox-checkbox-component-stories.d45b4f0d.iframe.bundle.js +1 -0
  188. package/storybook/forms-checkbox-docs-mdx.74036eb7.iframe.bundle.js +1 -0
  189. package/storybook/forms-input-docs-mdx.72d0e99a.iframe.bundle.js +1 -0
  190. package/storybook/forms-input-input-component-stories.609db3f0.iframe.bundle.js +1 -0
  191. package/storybook/forms-slider-docs-mdx.120cefc6.iframe.bundle.js +1 -0
  192. package/storybook/forms-slider-slider-component-stories.058fb9b1.iframe.bundle.js +1 -0
  193. package/storybook/forms-switch-docs-mdx.9d58a341.iframe.bundle.js +1 -0
  194. package/storybook/forms-switch-switch-component-stories.bf67d7c9.iframe.bundle.js +1 -0
  195. package/storybook/forms-validators-docs-mdx.ebb47a43.iframe.bundle.js +1 -0
  196. package/storybook/forms-validators-validators-component-stories.9525f97b.iframe.bundle.js +1 -0
  197. package/storybook/home-guide-mdx.1a176b15.iframe.bundle.js +1 -0
  198. package/storybook/home-overview-mdx.d0cf448a.iframe.bundle.js +1 -0
  199. package/storybook/home-tips-mdx.26df81d8.iframe.bundle.js +1 -0
  200. package/storybook/home-usage-mdx.7ba89dd0.iframe.bundle.js +1 -0
  201. package/storybook/iframe.html +558 -0
  202. package/storybook/index.html +155 -0
  203. package/storybook/index.json +1 -0
  204. package/storybook/layout-main-docs-mdx.4c9208c5.iframe.bundle.js +1 -0
  205. package/storybook/layout-main-main-component-stories.788c0c54.iframe.bundle.js +1 -0
  206. package/storybook/layout-media-screen-docs-mdx.b0ca9a06.iframe.bundle.js +2 -0
  207. package/storybook/layout-media-screen-docs-mdx.b0ca9a06.iframe.bundle.js.LICENSE.txt +5 -0
  208. package/storybook/layout-media-screen-media-screen-component-stories.7941c064.iframe.bundle.js +2 -0
  209. package/storybook/layout-media-screen-media-screen-component-stories.7941c064.iframe.bundle.js.LICENSE.txt +5 -0
  210. package/storybook/layout-nav-docs-mdx.cc919f94.iframe.bundle.js +1 -0
  211. package/storybook/layout-nav-nav-component-stories.766738fc.iframe.bundle.js +1 -0
  212. package/storybook/layout-overlay-docs-mdx.823351e0.iframe.bundle.js +1 -0
  213. package/storybook/layout-overlay-header-docs-mdx.394033ca.iframe.bundle.js +1 -0
  214. package/storybook/layout-overlay-header-header-component-stories.5eaef192.iframe.bundle.js +1 -0
  215. package/storybook/layout-overlay-overlay-component-stories.01f6cd84.iframe.bundle.js +1 -0
  216. package/storybook/layout-spinner-docs-mdx.4be572c0.iframe.bundle.js +1 -0
  217. package/storybook/layout-spinner-spinner-component-stories.ab8245c6.iframe.bundle.js +1 -0
  218. package/storybook/layout-splitter-docs-mdx.bf161b39.iframe.bundle.js +1 -0
  219. package/storybook/layout-splitter-splitter-component-stories.46b8b112.iframe.bundle.js +1 -0
  220. package/storybook/layout-tabs-docs-mdx.89d83606.iframe.bundle.js +1 -0
  221. package/storybook/layout-tabs-tabs-component-stories.8602cefa.iframe.bundle.js +1 -0
  222. package/storybook/layout-top-scroll-bottom-docs-mdx.ddc061f8.iframe.bundle.js +1 -0
  223. package/storybook/layout-top-scroll-bottom-top-scroll-bottom-component-stories.9ee7055f.iframe.bundle.js +1 -0
  224. package/storybook/main.2d116a57.iframe.bundle.js +1 -0
  225. package/storybook/main.a402659c6a0734088d14.css +2101 -0
  226. package/storybook/mocker-runtime-injected.js +1 -0
  227. package/storybook/molecules-image-editor-docs-mdx.119ea12a.iframe.bundle.js +1 -0
  228. package/storybook/molecules-image-editor-image-editor-component-stories.56467f17.iframe.bundle.js +1 -0
  229. package/storybook/nunito-sans-bold-italic.woff2 +0 -0
  230. package/storybook/nunito-sans-bold.woff2 +0 -0
  231. package/storybook/nunito-sans-italic.woff2 +0 -0
  232. package/storybook/nunito-sans-regular.woff2 +0 -0
  233. package/storybook/project.json +1 -0
  234. package/storybook/runtime~main.a9b8ab83.iframe.bundle.js +1 -0
  235. package/storybook/sb-addons/docs-1/manager-bundle.js +3 -0
  236. package/storybook/sb-addons/libs-ui-storybook-2/manager-bundle.js +3 -0
  237. package/storybook/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +630 -0
  238. package/storybook/sb-common-assets/favicon-wrapper.svg +46 -0
  239. package/storybook/sb-common-assets/favicon.svg +1 -0
  240. package/storybook/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  241. package/storybook/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  242. package/storybook/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  243. package/storybook/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  244. package/storybook/sb-manager/globals-runtime.js +76714 -0
  245. package/storybook/sb-manager/globals.js +24 -0
  246. package/storybook/sb-manager/manager-stores.js +23 -0
  247. package/storybook/sb-manager/runtime.js +27451 -0
  248. package/storybook/sb-preview/globals.js +20 -0
  249. package/storybook/sb-preview/runtime.js +35491 -0
  250. package/storybook/styling-colors-colors-component-stories.58031f40.iframe.bundle.js +1 -0
  251. package/storybook/styling-colors-docs-mdx.95c504e4.iframe.bundle.js +1 -0
  252. package/storybook/styling-css-variables-docs-mdx.48afb4f3.iframe.bundle.js +1 -0
  253. package/storybook/styling-forms-docs-mdx.943e72f2.iframe.bundle.js +1 -0
  254. package/storybook/styling-forms-forms-component-stories.8af76278.iframe.bundle.js +1 -0
  255. package/storybook/styling-icons-docs-mdx.e1001dfd.iframe.bundle.js +1 -0
  256. package/storybook/styling-icons-icons-component-stories.2dd8c6f8.iframe.bundle.js +1 -0
  257. package/storybook/styling-layers-docs-mdx.5039dc45.iframe.bundle.js +1 -0
  258. package/storybook/styling-tags-docs-mdx.23ab2316.iframe.bundle.js +1 -0
  259. package/storybook/styling-tags-tags-component-stories.7a64bd20.iframe.bundle.js +1 -0
  260. package/storybook/styling-ui-tags-docs-mdx.8f75631d.iframe.bundle.js +1 -0
  261. package/storybook/styling-ui-tags-ui-tags-component-stories.2ec3109b.iframe.bundle.js +1 -0
  262. package/storybook/version.json +4 -0
  263. package/version.json +4 -0
@@ -0,0 +1,285 @@
1
+ # Image Editor
2
+
3
+ An editor for a single image. The user can delete the current image or
4
+ upload a new one (PNG, GIF or JPEG), crop it (freely or locked to an aspect
5
+ ratio) and the result is converted to a **JPEG entirely in the browser** via a
6
+ `<canvas>` (`toBlob('image/jpeg', quality)`). The finished blob is emitted through
7
+ the `save` output — the component itself never talks to a backend, so it is
8
+ reusable across apps.
9
+
10
+ Client-side conversion means the server only has to store a small, finished
11
+ JPEG: no server-side image library is required.
12
+
13
+ ---
14
+
15
+ ## What it does, and what it does not
16
+
17
+ Edits one image in the browser: upload (PNG, GIF, JPEG), crop freely or to an
18
+ aspect ratio, delete, and emit the result as a JPEG blob through `save`. It
19
+ never talks to a backend and keeps no image beyond the one it is shown. It comes
20
+ `embedded` in the flow or as an `overlay` — the same editor, not two. It is the
21
+ library's only molecule: it composes the overlay, the overlay header, the crop
22
+ box and the slider.
23
+
24
+ ---
25
+
26
+ > **Guide:** recommendations for `ui-image-editor` — use for, not for, instead, shown in — are served by `get_guide` (name: `ui-image-editor`). The section above is the truth; the guide is the offer.
27
+
28
+ ---
29
+
30
+ ## Variants
31
+
32
+ The same content comes in two presentations, selected by the `variant` input:
33
+
34
+ - **`embedded`** (default): the editor stands in the document flow like any
35
+ other element — no frame, no backdrop, no focus trap, no Escape semantics.
36
+ It fills the width it is given; the **maximum width is set by the consumer**
37
+ via styles on the host or a wrapping element, the minimum emerges from the
38
+ footer button row (`flex-wrap` as a safety net for very narrow screens).
39
+ Delete, Save and Cancel-with-nothing-to-discard return the editor to a clean
40
+ view mode instead of closing anything; `active` and `activeOutput` are not
41
+ used.
42
+ - **`overlay`**: wraps the editor in the ui overlay as before — backdrop,
43
+ focus trap, Escape and the `active` / `activeOutput` pair.
44
+
45
+ ### [Open story](?path=/story/molecules-image-editor--with-image)
46
+
47
+ ```html
48
+ <ui-image-editor
49
+ [imageUrl]="currentCover()"
50
+ [aspectRatio]="2 / 3"
51
+ (save)="onCoverSaved($event)"
52
+ (deleteImage)="onCoverDeleted()"
53
+ ></ui-image-editor>
54
+ ```
55
+
56
+ ---
57
+
58
+ ## Usage (overlay)
59
+
60
+ ### [Open story](?path=/story/molecules-image-editor--overlay)
61
+
62
+ ```html
63
+ <ui-image-editor
64
+ variant="overlay"
65
+ [active]="editorActive()"
66
+ [imageUrl]="currentCover()"
67
+ [aspectRatio]="2 / 3"
68
+ (save)="onCoverSaved($event)"
69
+ (deleteImage)="onCoverDeleted()"
70
+ (activeOutput)="editorActive.set($event)"
71
+ ></ui-image-editor>
72
+ ```
73
+
74
+ ---
75
+
76
+ ## With an existing image
77
+
78
+ ### [Open story](?path=/story/molecules-image-editor--with-image)
79
+
80
+ Opening with an image shows it in view mode. The footer offers **Delete**,
81
+ **Upload** (pick a new file), **Crop** (edit the current image without
82
+ re-uploading), **Cancel** and **Save**. Both **Upload** and **Crop** switch to
83
+ the crop stage; **Save** is enabled there.
84
+
85
+ The crop box works by pointer and by keyboard alike: it is a tab stop, the
86
+ arrow keys pan it, Shift with an arrow resizes it from the south-east corner
87
+ — a locked ratio holds exactly as it does for a pointer on that corner. The
88
+ hint under the box says so in the reader's language.
89
+
90
+ ---
91
+
92
+ ## Locked aspect ratio
93
+
94
+ ### [Open story](?path=/story/molecules-image-editor--poster-ratio)
95
+
96
+ Passing `aspectRatio` (e.g. `2 / 3` for a poster) constrains the crop box while
97
+ resizing; the height follows the width automatically. Only the corner handles
98
+ are shown in this mode.
99
+
100
+ ---
101
+
102
+ ## Empty state
103
+
104
+ ### [Open story](?path=/story/molecules-image-editor--empty)
105
+
106
+ Without an `imageUrl` the editor shows an empty placeholder and only the upload
107
+ action.
108
+
109
+ ---
110
+
111
+ ## Footer buttons
112
+
113
+ Five icon buttons on one row (grey surface, tinted icons where it helps). Each
114
+ carries a `title`/`aria-label` tooltip. Disabled buttons keep the same grey
115
+ background — only their icon is dimmed, in its normal colour, so it stays
116
+ readable against that surface. The [empty state](?path=/story/molecules-image-editor--empty)
117
+ shows this: with no image, Crop, Delete and Save are all disabled.
118
+
119
+ <table class="ui">
120
+ <thead>
121
+ <tr>
122
+ <th>Button</th>
123
+ <th>Icon</th>
124
+ <th>Enabled when</th>
125
+ <th>Action</th>
126
+ </tr>
127
+ </thead>
128
+ <tbody>
129
+ <tr>
130
+ <td>Upload</td>
131
+ <td>add_a_photo</td>
132
+ <td>always</td>
133
+ <td>Opens the file picker; a chosen PNG/GIF/JPEG enters the crop stage.</td>
134
+ </tr>
135
+ <tr>
136
+ <td>Crop</td>
137
+ <td>crop</td>
138
+ <td>an image exists and view mode (not already cropping)</td>
139
+ <td>Loads the current image into the crop stage.</td>
140
+ </tr>
141
+ <tr>
142
+ <td>Cancel</td>
143
+ <td>close</td>
144
+ <td>always</td>
145
+ <td>In the crop stage with a current image: discards and returns to view. Otherwise closes the overlay (embedded: resets to view).</td>
146
+ </tr>
147
+ <tr>
148
+ <td>Delete (red icon)</td>
149
+ <td>delete</td>
150
+ <td>an image exists</td>
151
+ <td>Emits <code>deleteImage</code> and closes the overlay (embedded: resets to view).</td>
152
+ </tr>
153
+ <tr>
154
+ <td>Save (green icon when active)</td>
155
+ <td>save</td>
156
+ <td>crop stage and not converting</td>
157
+ <td>Converts the crop to a JPEG, emits <code>save</code>, closes the overlay (embedded: resets to view).</td>
158
+ </tr>
159
+ </tbody>
160
+ </table>
161
+
162
+ Rejecting a file (wrong type or over the size limit) shows an inline error and
163
+ stays in the current stage.
164
+
165
+ ---
166
+
167
+ ## Inputs
168
+
169
+ <table class="ui">
170
+ <thead>
171
+ <tr>
172
+ <th>Name</th>
173
+ <th>Type</th>
174
+ <th>Default</th>
175
+ <th>Description</th>
176
+ </tr>
177
+ </thead>
178
+ <tbody>
179
+ <tr>
180
+ <td>variant</td>
181
+ <td>'embedded' | 'overlay'</td>
182
+ <td>'embedded'</td>
183
+ <td>In-flow presentation or the ui overlay.</td>
184
+ </tr>
185
+ <tr>
186
+ <td>active</td>
187
+ <td>boolean</td>
188
+ <td>false</td>
189
+ <td>Opens/closes the overlay (overlay variant only).</td>
190
+ </tr>
191
+ <tr>
192
+ <td>imageUrl</td>
193
+ <td>string | null</td>
194
+ <td>null</td>
195
+ <td>The current image shown when the editor opens.</td>
196
+ </tr>
197
+ <tr>
198
+ <td>aspectRatio</td>
199
+ <td>number | null</td>
200
+ <td>null</td>
201
+ <td>Locks the crop to this width/height ratio; null allows free cropping.</td>
202
+ </tr>
203
+ <tr>
204
+ <td>maxWidth</td>
205
+ <td>number</td>
206
+ <td>1200</td>
207
+ <td>Maximum output width in pixels; height follows the crop ratio.</td>
208
+ </tr>
209
+ <tr>
210
+ <td>quality</td>
211
+ <td>number</td>
212
+ <td>0.75</td>
213
+ <td>JPEG quality (0..1) of the converted output.</td>
214
+ </tr>
215
+ <tr>
216
+ <td>maxFileSizeMb</td>
217
+ <td>number</td>
218
+ <td>10</td>
219
+ <td>Rejects source files larger than this (megabytes).</td>
220
+ </tr>
221
+ <tr>
222
+ <td>headline</td>
223
+ <td>string | null</td>
224
+ <td>null</td>
225
+ <td>Optional overlay title; falls back to the imageEditor.title key.</td>
226
+ </tr>
227
+ <tr>
228
+ <td>overlayDirection</td>
229
+ <td>'center' | 'top' | 'bottom' | 'left' | 'right' | null</td>
230
+ <td>null</td>
231
+ <td>
232
+ Side the overlay slides in from (overlay variant only); null keeps the
233
+ overlay's own centre default. Use 'left'/'right' to make the editor a
234
+ drawer that matches an app's navigation panel.
235
+ </td>
236
+ </tr>
237
+ <tr>
238
+ <td>overlayFitContent</td>
239
+ <td>boolean</td>
240
+ <td>false</td>
241
+ <td>
242
+ Sizes the overlay to its content instead of the available height
243
+ (overlay variant only) — see the overlay's own fitContent. Keeps a sheet
244
+ holding a small image from standing there as a tall, empty column.
245
+ </td>
246
+ </tr>
247
+ </tbody>
248
+ </table>
249
+
250
+ The overlay variant always runs with the overlay's `viewportHeight`: a sheet
251
+ belongs to the browser window, not to the document. Without it the percentage
252
+ heights resolve against a transformed ancestor's box, and inside a long page
253
+ that stretches the sheet to the full document height — header and footer end up
254
+ far outside the visible area.
255
+
256
+ ---
257
+
258
+ ## Outputs
259
+
260
+ <table class="ui">
261
+ <thead>
262
+ <tr>
263
+ <th>Name</th>
264
+ <th>Payload</th>
265
+ <th>Description</th>
266
+ </tr>
267
+ </thead>
268
+ <tbody>
269
+ <tr>
270
+ <td>save</td>
271
+ <td>Blob</td>
272
+ <td>The converted JPEG when the user saves.</td>
273
+ </tr>
274
+ <tr>
275
+ <td>deleteImage</td>
276
+ <td>void</td>
277
+ <td>Emitted when the user deletes the current image.</td>
278
+ </tr>
279
+ <tr>
280
+ <td>activeOutput</td>
281
+ <td>boolean</td>
282
+ <td>Forwards the overlay close event (emits false; overlay variant only).</td>
283
+ </tr>
284
+ </tbody>
285
+ </table>
@@ -0,0 +1,137 @@
1
+ # Using @mojawork/ui
2
+
3
+ The usage contract of the library: the rules that hold for every application
4
+ consuming `@mojawork/ui`, inside or outside the workspace it is built in.
5
+ This file is the single source for these rules — the catalog serves it to
6
+ agents as the house rules of `get_guide`, and the workspace's shared agent
7
+ rules point here instead of restating it. The component pages remain the
8
+ truth about each component; this file holds what is true across all of them.
9
+
10
+ ## Signals and zoneless change detection
11
+
12
+ - Use Angular Signals (`signal()`, `computed()`, `effect()`) for state and
13
+ reactive logic instead of manual state or plain observables.
14
+ - The library and its reference applications run **zoneless**
15
+ (`provideZonelessChangeDetection()`, no `zone.js` polyfill). Any
16
+ template-bound state that is updated from an async source
17
+ (`setTimeout`/`setInterval`, RxJS `subscribe`, `Promise`,
18
+ `requestAnimationFrame`) MUST be a signal (or use the `async` pipe /
19
+ `toSignal()`); a plain field written from such a callback will not trigger
20
+ change detection. Imperative DOM writes (e.g. `element.setAttribute`, CSS
21
+ custom properties) do not need this.
22
+
23
+ ## Forms
24
+
25
+ Form inputs follow one fixed format:
26
+
27
+ ```html
28
+ <ui-input [label]="'Label'">
29
+ <input ui-tag [(ngModel)]="model" ... />
30
+ </ui-input>
31
+ ```
32
+
33
+ ## Styling and tokens
34
+
35
+ - Components are styled with plain CSS on the design tokens
36
+ (`var(--ui-spacer)`, `var(--ui-border-radius)`, the `--ui-c-*` colours).
37
+ No CSS framework is required, and no Sass.
38
+ - Host geometry is a named hook with a fallback, never a pinned value —
39
+ e.g. `width: var(--ui-background-width, 100%)`. A consumer without
40
+ Tailwind sets the variable; one with Tailwind puts a utility on the tag,
41
+ and the cascade layers below make it win. Each component documents its
42
+ hooks in its story.
43
+ - The package itself is Tailwind-free; its templates carry no utility
44
+ classes. Tailwind is optional at the consumer: the package ships a
45
+ ready-made Tailwind v4 theme that maps the utilities onto the tokens,
46
+ including light/dark switching and the `ms1:`–`ms6:` breakpoint ladder.
47
+
48
+ ## Cascade layers — the library sits below the utilities
49
+
50
+ A utility you write on a ui tag must win against the component's own
51
+ default. Tailwind v4 puts everything in cascade layers, and **unlayered CSS
52
+ beats layered CSS regardless of specificity** — the order of layers, not
53
+ specificity, decides who wins.
54
+
55
+ The library's styles live in the `ui` layer, declared before Tailwind's:
56
+
57
+ ```css
58
+ @layer theme, base, cdk-resets, ui, components, utilities;
59
+ @import 'tailwindcss';
60
+ ```
61
+
62
+ **Every consumer with its own Tailwind entry declares the same line before
63
+ its import.** A layer nobody names is appended behind all named ones and
64
+ would beat the whole library. `cdk-resets` is part of the line so the
65
+ Angular CDK's drag-preview reset sits below the library instead of
66
+ stripping every preview of its surface.
67
+
68
+ What this means in practice: a Tailwind utility on a ui tag wins over the
69
+ component's default, and unlayered consumer CSS wins over both. A `!` on a
70
+ utility against a ui tag is a symptom, not a fix — it means the layer line
71
+ is missing somewhere.
72
+
73
+ ## Disabled controls and the keyboard
74
+
75
+ `disabled` is not only a visual state — it changes where the focus can live,
76
+ and it does so retroactively. Two failure modes come out of that, and both
77
+ have already cost real debugging time.
78
+
79
+ **A control that disables itself throws the focus away.** The moment an
80
+ element becomes `disabled`, the browser removes the focus from it and drops it
81
+ on `<body>`. So a button whose own activation makes it inert — a reset that
82
+ has nothing left to undo, a save that dies once everything is saved, a "load
83
+ more" at the end of a list — leaves a keyboard user with no place at all. The
84
+ row they were working in is gone from under them, and the next Tab starts over
85
+ at the top of the document.
86
+
87
+ No navigation logic can repair this. It happens **after** the activation, so
88
+ by the time anything notices, the previous position no longer exists.
89
+
90
+ **Custom keyboard navigation and the browser disagree about who counts.** The
91
+ browser skips disabled controls in the tab order; hand-written navigation that
92
+ collects controls with a plain `'input, select, textarea, button, a'` counts
93
+ them. The two sets drift apart: a remembered position points into a different
94
+ list than the one the focus actually walks, and `focus()` on a disabled
95
+ element does nothing at all — the focus stays put and the next key press picks
96
+ the very same dead target again. The navigation jams, silently, with no error
97
+ anywhere.
98
+
99
+ **Preferred pattern: do not disable at all.** Keep the control **enabled** and
100
+ let its action be a no-op when there is nothing to do. Express unavailability
101
+ through styling plus `aria-disabled="true"` — that keeps the control
102
+ focusable and reachable while screen readers still announce it as
103
+ unavailable. A dimmed control without `aria-disabled` is, to anyone who only
104
+ listens, an ordinary control: the look carries the message, and nobody hears a
105
+ look.
106
+
107
+ **If a control genuinely must be disabled**, move the focus somewhere
108
+ deliberate **before** disabling it — the neighbouring control, the container,
109
+ the element that replaces it. Never leave that decision to the browser.
110
+
111
+ **And when you write navigation yourself**, derive the control list from the
112
+ DOM on every key press and filter it to what can actually take focus
113
+ (`:not(:disabled):not([hidden]):not([tabindex="-1"])`), so it can never
114
+ disagree with the native tab order. Never cache the list and never store
115
+ positions as constants: a cell may hold a different number of stations from
116
+ one moment to the next.
117
+
118
+ ## Where the documentation lives
119
+
120
+ The component page is the truth — the fixed section "What it does, and what
121
+ it does not" on every page. The guide is the offer next to it: use for, not
122
+ for, instead, with proof. Where the two disagree, the page wins.
123
+
124
+ - **Storybook** — `https://moja.work/storybook`: every component, every
125
+ story, the guide entries next to the truth sections. It describes the
126
+ current line (behaviour can change within 2.x) — pin an exact version of
127
+ the package rather than a `^` range.
128
+ - **MCP catalog for agents** — `https://moja.work/ui/mcp`: the tools
129
+ `list_components` (the shelf), `get_component_doc` (one page, verbatim)
130
+ and `get_guide` (the recommendations plus these rules). If you know a
131
+ component's selector, ask for it directly instead of fetching the whole
132
+ guide and filtering it yourself.
133
+ - **`llms.txt`** — `https://moja.work/llms.txt`: the catalog for crawlers
134
+ and plain-text readers.
135
+ - **API reference** — the `.d.ts` files in the installed package are the
136
+ version-true API; the hosted Compodoc at `https://moja.work/compodoc/ui`
137
+ describes the line.
@@ -0,0 +1,4 @@
1
+ {
2
+ "commit": "0d00b07f",
3
+ "uiVersion": "2.3.0"
4
+ }
package/package.json ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "@mojawork/ui-docs",
3
+ "version": "2.3.0",
4
+ "description": "The documentation of @mojawork/ui, version-true: the built Storybook plus the cooked catalog (truth pages, guide, usage contract, tool definitions). npx-startable.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "bin": {
8
+ "ui-docs": "bin/serve.mjs"
9
+ }
10
+ }
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[1183],{"./node_modules/css-loader/dist/runtime/api.js"(module){module.exports=function(cssWithMappingToString){var list=[];return list.toString=function toString(){return this.map(function(item){var content="",needLayer=void 0!==item[5];return item[4]&&(content+="@supports (".concat(item[4],") {")),item[2]&&(content+="@media ".concat(item[2]," {")),needLayer&&(content+="@layer".concat(item[5].length>0?" ".concat(item[5]):""," {")),content+=cssWithMappingToString(item),needLayer&&(content+="}"),item[2]&&(content+="}"),item[4]&&(content+="}"),content}).join("")},list.i=function i(modules,media,dedupe,supports,layer){"string"==typeof modules&&(modules=[[null,modules,void 0]]);var alreadyImportedModules={};if(dedupe)for(var k=0;k<this.length;k++){var id=this[k][0];null!=id&&(alreadyImportedModules[id]=!0)}for(var _k=0;_k<modules.length;_k++){var item=[].concat(modules[_k]);dedupe&&alreadyImportedModules[item[0]]||(void 0!==layer&&(void 0===item[5]||(item[1]="@layer".concat(item[5].length>0?" ".concat(item[5]):""," {").concat(item[1],"}")),item[5]=layer),media&&(item[2]?(item[1]="@media ".concat(item[2]," {").concat(item[1],"}"),item[2]=media):item[2]=media),supports&&(item[4]?(item[1]="@supports (".concat(item[4],") {").concat(item[1],"}"),item[4]=supports):item[4]="".concat(supports)),list.push(item))}},list}},"./node_modules/css-loader/dist/runtime/noSourceMaps.js"(module){module.exports=function(i){return i[1]}},"./node_modules/marked/lib/marked.esm.js"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{A4:()=>P,Dz:()=>Z});var _Users_moja_projects_mojawork_mono_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");function C(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var R={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function j(l){R=l}var z={exec:()=>null};function A(l){let e=[];return t=>{let n=Math.max(0,Math.min(3,t-1)),s=e[n];return s||(s=l(n),e[n]=s),s}}function k(l,e=""){let t="string"==typeof l?l:l.source,n={replace:(s,r)=>{let i="string"==typeof r?r:r.source;return i=i.replace(m.caret,"$1"),t=t.replace(s,i),n},getRegex:()=>new RegExp(t,e)};return n}var Te=((l="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+l)}catch{return!1}})(),m={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:l=>new RegExp(`^( {0,3}${l})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:A(l=>new RegExp(`^ {0,${l}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`)),hrRegex:A(l=>new RegExp(`^ {0,${l}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:A(l=>new RegExp(`^ {0,${l}}(?:\`\`\`|~~~)`)),headingBeginRegex:A(l=>new RegExp(`^ {0,${l}}#`)),htmlBeginRegex:A(l=>new RegExp(`^ {0,${l}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:A(l=>new RegExp(`^ {0,${l}}>`))},q=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,U=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,oe=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ae=k(oe).replace(/bull/g,U).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Se=k(oe).replace(/bull/g,U).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),K=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,W=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,$e=k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",W).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Le=k(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,U).getRegex(),Q="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",X=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Me=k("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",X).replace("tag",Q).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),le=l=>k(K).replace("hr",q).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list",l).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Q).getRegex(),ze=le(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Ee=le(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),J={blockquote:k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ee).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:$e,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:q,html:Me,lheading:ae,list:Le,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:ze,table:z,text:/^[^\n]+/},se=k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",q).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Q).getRegex(),Ae={...J,lheading:Se,table:se,paragraph:k(K).replace("hr",q).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",se).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Q).getRegex()},Ie={...J,html:k("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",X).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:z,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:k(K).replace("hr",q).replace("heading"," *#{1,6} *[^\n]").replace("lheading",ae).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},pe=/^( {2,}|\\)\n(?!\s*$)/,_=/[\p{P}\p{S}]/u,I=/[\s\p{P}\p{S}]/u,v=/[^\s\p{P}\p{S}]/u,ve=k(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,I).getRegex(),ue=/(?!~)[\p{P}\p{S}]/u,Qe=k(/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(),ce=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Ne=k(ce,"u").replace(/punct/g,_).getRegex(),je=k(ce,"u").replace(/punct/g,ue).getRegex(),Ue=k(/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,"u").replace(/openQuote/g,/[\p{Pi}\p{Ps}"']/u).replace(/punct/g,_).getRegex(),he="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Ke=k(he,"gu").replace(/notPunctSpace/g,v).replace(/punctSpace/g,I).replace(/punct/g,_).getRegex(),We=k(he,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,ue).getRegex(),Je=k("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,v).replace(/punctSpace/g,I).replace(/punct/g,_).getRegex(),Ve=k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,v).replace(/punctSpace/g,I).replace(/punct/g,_).getRegex(),et=k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,v).replace(/punctSpace/g,I).replace(/punct/g,_).getRegex(),tt=k(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,_).getRegex(),rt=k("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,v).replace(/punctSpace/g,I).replace(/punct/g,_).getRegex(),st=k(/\\(punct)/,"gu").replace(/punct/g,_).getRegex(),it=k(/^<(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(),ot=k(X).replace("(?:--\x3e|$)","--\x3e").getRegex(),at=k("^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",ot).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),G=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,lt=k(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",G).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),de=k(/^!?\[(label)\]\[(ref)\]/).replace("label",G).replace("ref",W).getRegex(),ke=k(/^!?\[(ref)\](?:\[\])?/).replace("ref",W).getRegex(),ie=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,V={_backpedal:z,anyPunctuation:st,autolink:it,blockSkip:Qe,br:pe,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:z,delLDelim:z,delRDelim:z,emStrongLDelim:Ne,emStrongRDelimAst:Ke,emStrongRDelimUnd:Ve,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:lt,nolink:ke,punctuation:ve,reflink:de,reflinkSearch:k("reflink|nolink(?!\\()","g").replace("reflink",de).replace("nolink",ke).getRegex(),tag:at,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:z},ut={...V,emStrongLDelim:Ue,emStrongRDelimAst:Je,emStrongRDelimUnd:et,link:k(/^!?\[(label)\]\((.*?)\)/).replace("label",G).getRegex(),reflink:k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",G).getRegex()},F={...V,emStrongRDelimAst:We,emStrongLDelim:je,delLDelim:tt,delRDelim:rt,url:k(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ie).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:k(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",ie).getRegex()},ct={...F,br:k(pe).replace("{2,}","*").getRegex(),text:k(F.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},H={normal:J,gfm:Ae,pedantic:Ie},B={normal:V,gfm:F,breaks:ct,pedantic:ut},ht={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ge=l=>ht[l];function O(l,e){if(e){if(m.escapeTest.test(l))return l.replace(m.escapeReplace,ge)}else if(m.escapeTestNoEncode.test(l))return l.replace(m.escapeReplaceNoEncode,ge);return l}function Y(l){try{l=encodeURI(l).replace(m.percentDecode,"%")}catch{return null}return l}function ee(l,e){let n=l.replace(m.findPipe,(r,i,o)=>{let p=!1,a=i;for(;--a>=0&&"\\"===o[a];)p=!p;return p?"|":" |"}).split(m.splitPipe),s=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;s<n.length;s++)n[s]=n[s].trim().replace(m.slashPipe,"|");return n}function $(l,e,t){let n=l.length;if(0===n)return"";let s=0;for(;s<n;){let r=l.charAt(n-s-1);if(r!==e||t){if(r===e||!t)break;s++}else s++}return l.slice(0,n-s)}function te(l){let e=l.split("\n"),t=e.length-1;for(;t>=0&&m.blankLine.test(e[t]);)t--;return e.length-t<=2?l:e.slice(0,t+1).join("\n")}function me(l,e=0){let t=e,n="";for(let s of l)if("\t"===s){let r=4-t%4;n+=" ".repeat(r),t+=r}else n+=s,t++;return n}function xe(l,e,t,n,s){let r=e.href,i=e.title||null,o=l[1].replace(s.other.outputLinkReplace,"$1");n.state.inLink=!0;let p={type:"!"===l[0].charAt(0)?"image":"link",raw:t,href:r,title:i,text:o,tokens:n.inlineTokens(o)};return n.state.inLink=!1,p}var y=class{options;rules;lexer;constructor(e){this.options=e||R}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=this.options.pedantic?t[0]:te(t[0]),s=n.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n,codeBlockStyle:"indented",text:s}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],s=function dt(l,e,t){let n=l.match(t.other.indentCodeCompensation);if(null===n)return e;let s=n[1];return e.split("\n").map(r=>{let i=r.match(t.other.beginningSpace);if(null===i)return r;let[o]=i;return o.length>=s.length?r.slice(s.length):r}).join("\n")}(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:s}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let s=$(n,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(n=s.trim())}return{type:"heading",raw:$(t[0],"\n"),depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:$(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=$(t[0],"\n").split("\n"),s="",r="",i=[];for(;n.length>0;){let a,o=!1,p=[];for(a=0;a<n.length;a++)if(this.rules.other.blockquoteStart.test(n[a]))p.push(n[a]),o=!0;else{if(o)break;p.push(n[a])}n=n.slice(a);let u=p.join("\n"),c=u.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}\n${u}`:u,r=r?`${r}\n${c}`:c;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=h,0===n.length)break;let d=i.at(-1);if("code"===d?.type)break;if("blockquote"===d?.type){let T=d,g=n.join("\n"),w=T.raw+"\n"+g.replace(this.rules.other.blockquoteSetextReplace2,""),M=this.blockquote(w);i[i.length-1]=M,s=`${s}\n${g}`,r=r.substring(0,r.length-T.text.length)+M.text;break}if("list"===d?.type){let T=d,g=T.raw+"\n"+n.join("\n"),w=this.list(g);i[i.length-1]=w,s=s.substring(0,s.length-d.raw.length)+w.raw,r=r.substring(0,r.length-T.raw.length)+w.raw,n=g.substring(i.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:s,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),s=n.length>1,r={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),o=!1;for(;e;){let a=!1,u="",c="";if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;u=t[0],e=e.substring(u.length);let h=me(t[2].split("\n",1)[0],t[1].length),d=e.split("\n",1)[0],T=!h.trim(),g=0;if(this.options.pedantic?(g=2,c=h.trimStart()):T?g=t[1].length+1:(g=h.search(this.rules.other.nonSpaceChar),g=g>4?1:g,c=h.slice(g),g+=t[1].length),T&&this.rules.other.blankLine.test(d)&&(u+=d+"\n",e=e.substring(d.length+1),a=!0),!a){let w=this.rules.other.nextBulletRegex(g),M=this.rules.other.hrRegex(g),ne=this.rules.other.fencesBeginRegex(g),re=this.rules.other.headingBeginRegex(g),be=this.rules.other.htmlBeginRegex(g),Re=this.rules.other.blockquoteBeginRegex(g);for(;e;){let D,N=e.split("\n",1)[0];if(d=N,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),D=d):D=d.replace(this.rules.other.tabCharGlobal," "),ne.test(d)||re.test(d)||be.test(d)||Re.test(d)||w.test(d)||M.test(d))break;if(D.search(this.rules.other.nonSpaceChar)>=g||!d.trim())c+="\n"+D.slice(g);else{if(T||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||ne.test(h)||re.test(h)||M.test(h))break;c+="\n"+d}T=!d.trim(),u+=N+"\n",e=e.substring(N.length+1),h=D.slice(g)}}r.loose||(o?r.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(o=!0)),r.items.push({type:"list_item",raw:u,task:!!this.options.gfm&&this.rules.other.listIsTask.test(c),loose:!1,text:c,tokens:[]}),r.raw+=u}let p=r.items.at(-1);if(!p)return;p.raw=p.raw.trimEnd(),p.text=p.text.trimEnd(),r.raw=r.raw.trimEnd();for(let a of r.items){this.lexer.state.top=!1,a.tokens=this.lexer.blockTokens(a.text,[]);let u=a.tokens[0];if(!a.task||"text"!==u?.type&&"paragraph"!==u?.type)a.task&&(a.task=!1);else{a.text=a.text.replace(this.rules.other.listReplaceTask,""),u.raw=u.raw.replace(this.rules.other.listReplaceTask,""),u.text=u.text.replace(this.rules.other.listReplaceTask,"");for(let h=this.lexer.inlineQueue.length-1;h>=0;h--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[h].src)){this.lexer.inlineQueue[h].src=this.lexer.inlineQueue[h].src.replace(this.rules.other.listReplaceTask,"");break}let c=this.rules.other.listTaskCheckbox.exec(a.raw);if(c){let h={type:"checkbox",raw:c[0]+" ",checked:"[ ]"!==c[0]};a.checked=h.checked,r.loose?a.tokens[0]&&["paragraph","text"].includes(a.tokens[0].type)&&"tokens"in a.tokens[0]&&a.tokens[0].tokens?(a.tokens[0].raw=h.raw+a.tokens[0].raw,a.tokens[0].text=h.raw+a.tokens[0].text,a.tokens[0].tokens.unshift(h)):a.tokens.unshift({type:"paragraph",raw:h.raw,text:h.raw,tokens:[h]}):a.tokens.unshift(h)}}if(!r.loose){let c=a.tokens.filter(d=>"space"===d.type),h=c.length>0&&c.some(d=>this.rules.other.anyLine.test(d.raw));r.loose=h}}if(r.loose)for(let a of r.items){a.loose=!0;for(let u of a.tokens)"text"===u.type&&(u.type="paragraph")}return r}}html(e){let t=this.rules.block.html.exec(e);if(t){let n=te(t[0]);return{type:"html",block:!0,raw:n,pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:n}}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:$(t[0],"\n"),href:s,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=ee(t[1]),s=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],i={type:"table",raw:$(t[0],"\n"),header:[],align:[],rows:[]};if(n.length===s.length){for(let o of s)this.rules.other.tableAlignRight.test(o)?i.align.push("right"):this.rules.other.tableAlignCenter.test(o)?i.align.push("center"):this.rules.other.tableAlignLeft.test(o)?i.align.push("left"):i.align.push(null);for(let o=0;o<n.length;o++)i.header.push({text:n[o],tokens:this.lexer.inline(n[o]),header:!0,align:i.align[o]});for(let o of r)i.rows.push(ee(o,i.header.length).map((p,a)=>({text:p,tokens:this.lexer.inline(p),header:!1,align:i.align[a]})));return i}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let n=t[1].trim();return{type:"heading",raw:$(t[0],"\n"),depth:"="===t[2].charAt(0)?1:2,text:n,tokens:this.lexer.inline(n)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let i=$(n.slice(0,-1),"\\");if((n.length-i.length)%2==0)return}else{let i=function fe(l,e){if(-1===l.indexOf(e[1]))return-1;let t=0;for(let n=0;n<l.length;n++)if("\\"===l[n])n++;else if(l[n]===e[0])t++;else if(l[n]===e[1]&&(t--,t<0))return n;return t>0?-2:-1}(t[2],"()");if(-2===i)return;if(i>-1){let p=(0===t[0].indexOf("!")?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,p).trim(),t[3]=""}}let s=t[2],r="";if(this.options.pedantic){let i=this.rules.other.pedanticHrefTitle.exec(s);i&&(s=i[1],r=i[3])}else r=t[3]?t[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(s=this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?s.slice(1):s.slice(1,-1)),xe(t,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!r){let i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return xe(n,r,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let s=this.rules.inline.emStrongLDelim.exec(e);if(s&&(s[1]||s[2]||s[3]||s[4])&&(!s[4]||!n.match(this.rules.other.unicodeAlphaNumeric))&&(!s[1]&&!s[3]||!n||this.rules.inline.punctuation.exec(n))){let o,p,i=[...s[0]].length-1,a=i,u=0,c=s[0][0],h=n===c,d="*"===c?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+i);null!==(s=d.exec(t));){if(o=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!o)continue;if(p=[...o].length,s[3]||s[4]){a+=p;continue}if(s[5]||s[6]){if(i%3&&!((i+p)%3)){u+=p;continue}if(h)break}if(a-=p,a>0)continue;p=Math.min(p,p+a+u);let T=[...s[0]][0].length,g=e.slice(0,i+s.index+T+p);if(Math.min(i,p)%2){let M=g.slice(1,-1);return{type:"em",raw:g,text:M,tokens:this.lexer.inlineTokens(M)}}let w=g.slice(2,-2);return{type:"strong",raw:g,text:w,tokens:this.lexer.inlineTokens(w)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(n),r=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return s&&r&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let s=this.rules.inline.delLDelim.exec(e);if(s&&(!s[1]||!n||this.rules.inline.punctuation.exec(n))){let o,p,i=[...s[0]].length-1,a=i,u=this.rules.inline.delRDelim;for(u.lastIndex=0,t=t.slice(-1*e.length+i);null!==(s=u.exec(t));){if(o=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!o||(p=[...o].length,p!==i))continue;if(s[3]||s[4]){a+=p;continue}if(a-=p,a>0)continue;p=Math.min(p,p+a);let c=[...s[0]][0].length,h=e.slice(0,i+s.index+c+p),d=h.slice(i,-i);return{type:"del",raw:h,text:d,tokens:this.lexer.inlineTokens(d)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,s;return"@"===t[2]?(n=t[1],s="mailto:"+n):(n=t[1],s=n),{type:"link",raw:t[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let n,s;if("@"===t[2])n=t[0],s="mailto:"+n;else{let r;do{r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(r!==t[0]);n=t[0],s="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},x=class l{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||R,this.options.tokenizer=this.options.tokenizer||new y,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:m,block:H.normal,inline:B.normal};this.options.pedantic?(t.block=H.pedantic,t.inline=B.pedantic):this.options.gfm&&(t.block=H.gfm,this.options.breaks?t.inline=B.breaks:t.inline=B.gfm),this.tokenizer.rules=t}static get rules(){return{block:H,inline:B}}static lex(e,t){return new l(t).lex(e)}static lexInline(e,t){return new l(t).inlineTokens(e)}lex(e){e=e.replace(m.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let n=this.inlineQueue[t];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(m.tabCharGlobal," ").replace(m.spaceLine,""));let s=1/0;for(;e;){if(!(e.length<s)){this.infiniteLoopError(e.charCodeAt(0));break}let r;if(s=e.length,this.options.extensions?.block?.some(o=>!!(r=o.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let o=t.at(-1);1===r.raw.length&&void 0!==o?o.raw+="\n":t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let o=t.at(-1);"paragraph"===o?.type||"text"===o?.type?(o.raw+=(o.raw.endsWith("\n")?"":"\n")+r.raw,o.text+="\n"+r.text,this.inlineQueue.at(-1).src=o.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let o=t.at(-1);"paragraph"===o?.type||"text"===o?.type?(o.raw+=(o.raw.endsWith("\n")?"":"\n")+r.raw,o.text+="\n"+r.raw,this.inlineQueue.at(-1).src=o.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let a,o=1/0,p=e.slice(1);this.options.extensions.startBlock.forEach(u=>{a=u.call({lexer:this},p),"number"==typeof a&&a>=0&&(o=Math.min(o,a))}),o<1/0&&o>=0&&(i=e.substring(0,o+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let o=t.at(-1);n&&"paragraph"===o?.type?(o.raw+=(o.raw.endsWith("\n")?"":"\n")+r.raw,o.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let o=t.at(-1);"text"===o?.type?(o.raw+=(o.raw.endsWith("\n")?"":"\n")+r.raw,o.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):t.push(r);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=e;if(this.tokens.links){let o=Object.keys(this.tokens.links);o.length>0&&(n=n.replace(this.tokenizer.rules.inline.reflinkSearch,p=>o.includes(p.slice(p.lastIndexOf("[")+1,-1))?"["+"a".repeat(p.length-2)+"]":p))}n=n.replace(this.tokenizer.rules.inline.anyPunctuation,"++"),n=n.replace(this.tokenizer.rules.inline.blockSkip,(o,p,a)=>{let u=a?a.length:0;return o.slice(0,u)+"["+"a".repeat(o.length-u-2)+"]"}),n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let s=!1,r="",i=1/0;for(;e;){if(!(e.length<i)){this.infiniteLoopError(e.charCodeAt(0));break}let o;if(i=e.length,s||(r=""),s=!1,this.options.extensions?.inline?.some(a=>!!(o=a.call({lexer:this},e,t))&&(e=e.substring(o.raw.length),t.push(o),!0)))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let a=t.at(-1);"text"===o.type&&"text"===a?.type?(a.raw+=o.raw,a.text+=o.text):t.push(o);continue}if(o=this.tokenizer.emStrong(e,n,r)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.del(e,n,r)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),t.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),t.push(o);continue}let p=e;if(this.options.extensions?.startInline){let c,a=1/0,u=e.slice(1);this.options.extensions.startInline.forEach(h=>{c=h.call({lexer:this},u),"number"==typeof c&&c>=0&&(a=Math.min(a,c))}),a<1/0&&a>=0&&(p=e.substring(0,a+1))}if(o=this.tokenizer.inlineText(p)){e=e.substring(o.raw.length),"_"!==o.raw.slice(-1)&&(r=o.raw.slice(-1)),s=!0;let a=t.at(-1);"text"===a?.type?(a.raw+=o.raw,a.text+=o.text):t.push(o);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t="Infinite loop on byte: "+e;if(!this.options.silent)throw new Error(t);console.error(t)}},P=class{options;parser;constructor(e){this.options=e||R}space(e){return""}code({text:e,lang:t,escaped:n}){let s=(t||"").match(m.notSpaceStart)?.[0],r=e.replace(m.endingNewline,"")+"\n";return s?'<pre><code class="language-'+O(s)+'">'+(n?r:O(r,!0))+"</code></pre>\n":"<pre><code>"+(n?r:O(r,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){let t=e.ordered,n=e.start,s="";for(let o=0;o<e.items.length;o++){let p=e.items[o];s+=this.listitem(p)}let r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+s+"</"+r+">\n"}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",n="";for(let r=0;r<e.header.length;r++)n+=this.tablecell(e.header[r]);t+=this.tablerow({text:n});let s="";for(let r=0;r<e.rows.length;r++){let i=e.rows[r];n="";for(let o=0;o<i.length;o++)n+=this.tablecell(i[o]);s+=this.tablerow({text:n})}return s&&(s=`<tbody>${s}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+s+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${O(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let s=this.parser.parseInline(n),r=Y(e);if(null===r)return s;let i='<a href="'+(e=r)+'"';return t&&(i+=' title="'+O(t)+'"'),i+=">"+s+"</a>",i}image({href:e,title:t,text:n,tokens:s}){s&&(n=this.parser.parseInline(s,this.parser.textRenderer));let r=Y(e);if(null===r)return O(n);let i=`<img src="${e=r}" alt="${O(n)}"`;return t&&(i+=` title="${O(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:O(e.text)}},L=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},b=class l{options;renderer;textRenderer;constructor(e){this.options=e||R,this.options.renderer=this.options.renderer||new P,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new L}static parse(e,t){return new l(t).parse(e)}static parseInline(e,t){return new l(t).parseInline(e)}parse(e){this.renderer.parser=this;let t="";for(let n=0;n<e.length;n++){let s=e[n];if(this.options.extensions?.renderers?.[s.type]){let i=s,o=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==o||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(i.type)){t+=o||"";continue}}let r=s;switch(r.type){case"space":t+=this.renderer.space(r);break;case"hr":t+=this.renderer.hr(r);break;case"heading":t+=this.renderer.heading(r);break;case"code":t+=this.renderer.code(r);break;case"table":t+=this.renderer.table(r);break;case"blockquote":t+=this.renderer.blockquote(r);break;case"list":t+=this.renderer.list(r);break;case"checkbox":t+=this.renderer.checkbox(r);break;case"html":t+=this.renderer.html(r);break;case"def":t+=this.renderer.def(r);break;case"paragraph":t+=this.renderer.paragraph(r);break;case"text":t+=this.renderer.text(r);break;default:{let i='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(i),"";throw new Error(i)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n="";for(let s=0;s<e.length;s++){let r=e[s];if(this.options.extensions?.renderers?.[r.type]){let o=this.options.extensions.renderers[r.type].call({parser:this},r);if(!1!==o||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(r.type)){n+=o||"";continue}}let i=r;switch(i.type){case"escape":case"text":n+=t.text(i);break;case"html":n+=t.html(i);break;case"link":n+=t.link(i);break;case"image":n+=t.image(i);break;case"checkbox":n+=t.checkbox(i);break;case"strong":n+=t.strong(i);break;case"em":n+=t.em(i);break;case"codespan":n+=t.codespan(i);break;case"br":n+=t.br(i);break;case"del":n+=t.del(i);break;default:{let o='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return n}},S=class{options;block;constructor(e){this.options=e||R}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?x.lex:x.lexInline}provideParser(e=this.block){return e?b.parse:b.parseInline}},Z=class{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=b;Renderer=P;TextRenderer=L;Lexer=x;Tokenizer=y;Hooks=S;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let s of e)switch(n=n.concat(t.call(this,s)),s.type){case"table":{let r=s;for(let i of r.header)n=n.concat(this.walkTokens(i.tokens,t));for(let i of r.rows)for(let o of i)n=n.concat(this.walkTokens(o.tokens,t));break}case"list":{let r=s;n=n.concat(this.walkTokens(r.items,t));break}default:{let r=s;this.defaults.extensions?.childTokens?.[r.type]?this.defaults.extensions.childTokens[r.type].forEach(i=>{let o=r[i].flat(1/0);n=n.concat(this.walkTokens(o,t))}):r.tokens&&(n=n.concat(this.walkTokens(r.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let s={...n};if(s.async=this.defaults.async||s.async||!1,n.extensions&&(n.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){let i=t.renderers[r.name];t.renderers[r.name]=i?function(...o){let p=r.renderer.apply(this,o);return!1===p&&(p=i.apply(this,o)),p}:r.renderer}if("tokenizer"in r){if(!r.level||"block"!==r.level&&"inline"!==r.level)throw new Error("extension level must be 'block' or 'inline'");let i=t[r.level];i?i.unshift(r.tokenizer):t[r.level]=[r.tokenizer],r.start&&("block"===r.level?t.startBlock?t.startBlock.push(r.start):t.startBlock=[r.start]:"inline"===r.level&&(t.startInline?t.startInline.push(r.start):t.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(t.childTokens[r.name]=r.childTokens)}),s.extensions=t),n.renderer){let r=this.defaults.renderer||new P(this.defaults);for(let i in n.renderer){if(!(i in r))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let o=i,p=n.renderer[o],a=r[o];r[o]=(...u)=>{let c=p.apply(r,u);return!1===c&&(c=a.apply(r,u)),c||""}}s.renderer=r}if(n.tokenizer){let r=this.defaults.tokenizer||new y(this.defaults);for(let i in n.tokenizer){if(!(i in r))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let o=i,p=n.tokenizer[o],a=r[o];r[o]=(...u)=>{let c=p.apply(r,u);return!1===c&&(c=a.apply(r,u)),c}}s.tokenizer=r}if(n.hooks){let r=this.defaults.hooks||new S;for(let i in n.hooks){if(!(i in r))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let o=i,p=n.hooks[o],a=r[o];S.passThroughHooks.has(i)?r[o]=u=>{if(this.defaults.async&&S.passThroughHooksRespectAsync.has(i))return(0,_Users_moja_projects_mojawork_mono_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__.A)(function*(){let h=yield p.call(r,u);return a.call(r,h)})();let c=p.call(r,u);return a.call(r,c)}:r[o]=(...u)=>{if(this.defaults.async)return(0,_Users_moja_projects_mojawork_mono_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__.A)(function*(){let h=yield p.apply(r,u);return!1===h&&(h=yield a.apply(r,u)),h})();let c=p.apply(r,u);return!1===c&&(c=a.apply(r,u)),c}}s.hooks=r}if(n.walkTokens){let r=this.defaults.walkTokens,i=n.walkTokens;s.walkTokens=function(o){let p=[];return p.push(i.call(this,o)),r&&(p=p.concat(r.call(this,o))),p}}this.defaults={...this.defaults,...s}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return x.lex(e,t??this.defaults)}parser(e,t){return b.parse(e,t??this.defaults)}parseMarkdown(e){var _this=this;return(n,s)=>{let r={...s},i={...this.defaults,...r},o=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===r.async)return o(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 n>"u"||null===n)return o(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof n)return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(0,_Users_moja_projects_mojawork_mono_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__.A)(function*(){let p=i.hooks?yield i.hooks.preprocess(n):n,u=yield(i.hooks?yield i.hooks.provideLexer(e):e?x.lex:x.lexInline)(p,i),c=i.hooks?yield i.hooks.processAllTokens(u):u;i.walkTokens&&(yield Promise.all(_this.walkTokens(c,i.walkTokens)));let d=yield(i.hooks?yield i.hooks.provideParser(e):e?b.parse:b.parseInline)(c,i);return i.hooks?yield i.hooks.postprocess(d):d})().catch(o);try{i.hooks&&(n=i.hooks.preprocess(n));let a=(i.hooks?i.hooks.provideLexer(e):e?x.lex:x.lexInline)(n,i);i.hooks&&(a=i.hooks.processAllTokens(a)),i.walkTokens&&this.walkTokens(a,i.walkTokens);let c=(i.hooks?i.hooks.provideParser(e):e?b.parse:b.parseInline)(a,i);return i.hooks&&(c=i.hooks.postprocess(c)),c}catch(p){return o(p)}}}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let s="<p>An error occurred:</p><pre>"+O(n.message+"",!0)+"</pre>";return t?Promise.resolve(s):s}if(t)return Promise.reject(n);throw n}}},E=new Z;function f(l,e){return E.parse(l,e)}f.options=f.setOptions=function(l){return E.setOptions(l),f.defaults=E.defaults,j(f.defaults),f},f.getDefaults=C,f.defaults=R,f.use=function kt(...l){return E.use(...l),f.defaults=E.defaults,j(f.defaults),f},f.walkTokens=function(l,e){return E.walkTokens(l,e)},f.parseInline=E.parseInline,f.Parser=b,f.parser=b.parse,f.Renderer=P,f.TextRenderer=L,f.Lexer=x,f.lexer=x.lex,f.Tokenizer=y,f.Hooks=S,f.parse=f;f.options,f.setOptions,f.walkTokens,f.parseInline,b.parse,x.lex}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 1255.2abec879.iframe.bundle.js.LICENSE.txt */
2
+ (self.webpackChunkmoja_work=self.webpackChunkmoja_work||[]).push([[1255],{"./node_modules/@angular/core/fesm2022/rxjs-interop.mjs"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{br:()=>toObservable,ot:()=>toSignal,pQ:()=>takeUntilDestroyed});var rxjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/Observable.js"),rxjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/ReplaySubject.js"),rxjs_operators__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/operators/takeUntil.js"),_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_resource_chunk_mjs__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@angular/core/fesm2022/_resource-chunk.mjs");function takeUntilDestroyed(destroyRef){destroyRef||(ngDevMode&&(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.Af3)(takeUntilDestroyed),destroyRef=(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.WQX)(_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.abz));const destroyed$=new rxjs__WEBPACK_IMPORTED_MODULE_0__.c(subscriber=>{if(destroyRef.destroyed)return void subscriber.next();return destroyRef.onDestroy(subscriber.next.bind(subscriber))});return source=>source.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_2__.Q)(destroyed$))}function toObservable(source,options){ngDevMode&&!options?.injector&&(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.Af3)(toObservable);const injector=options?.injector??(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.WQX)(_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.zZn),subject=new rxjs__WEBPACK_IMPORTED_MODULE_1__.m(1),watcher=(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.QZP)(()=>{let value;try{value=source()}catch(err){return void(0,_resource_chunk_mjs__WEBPACK_IMPORTED_MODULE_4__.O8)(()=>subject.error(err))}(0,_resource_chunk_mjs__WEBPACK_IMPORTED_MODULE_4__.O8)(()=>subject.next(value))},{injector,manualCleanup:!0});return injector.get(_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.abz).onDestroy(()=>{watcher.destroy(),subject.complete()}),subject.asObservable()}function toSignal(source,options){"undefined"!=typeof ngDevMode&&ngDevMode&&(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.tdH)(toSignal,"Invoking `toSignal` causes new subscriptions every time. Consider moving `toSignal` outside of the reactive context and read the signal value where needed.");const requiresCleanup=!options?.manualCleanup;ngDevMode&&requiresCleanup&&!options?.injector&&(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.Af3)(toSignal);const cleanupRef=requiresCleanup?options?.injector?.get(_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.abz)??(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.WQX)(_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.abz):null,equal=function makeToSignalEqual(userEquality=Object.is){return(a,b)=>1===a.kind&&1===b.kind&&userEquality(a.value,b.value)}(options?.equal);let state,destroyUnregisterFn;state=options?.requireSync?(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.vPA)({kind:0},{equal,...ngDevMode?createDebugNameObject(options?.debugName,"state"):void 0}):(0,_effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.vPA)({kind:1,value:options?.initialValue},{equal,...ngDevMode?createDebugNameObject(options?.debugName,"state"):void 0});const sub=source.subscribe({next:value=>state.set({kind:1,value}),error:error=>{state.set({kind:2,error}),destroyUnregisterFn?.()},complete:()=>{destroyUnregisterFn?.()}});if(options?.requireSync&&0===state().kind)throw new _effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.buA(601,("undefined"==typeof ngDevMode||ngDevMode)&&"`toSignal()` called with `requireSync` but `Observable` did not emit synchronously.");return destroyUnregisterFn=cleanupRef?.onDestroy(sub.unsubscribe.bind(sub)),(0,_resource_chunk_mjs__WEBPACK_IMPORTED_MODULE_4__.EW)(()=>{const current=state();switch(current.kind){case 1:return current.value;case 2:throw current.error;case 0:throw new _effect_chunk2_mjs__WEBPACK_IMPORTED_MODULE_3__.buA(601,("undefined"==typeof ngDevMode||ngDevMode)&&"`toSignal()` called with `requireSync` but `Observable` did not emit synchronously.")}},{equal:options?.equal,...ngDevMode?createDebugNameObject(options?.debugName,"source"):void 0})}function createDebugNameObject(toSignalDebugName,internalSignalDebugName){return{debugName:`toSignal${toSignalDebugName?"#"+toSignalDebugName:""}.${internalSignalDebugName}`}}},"./libs/ui/src/lib/layout/nav/nav.component.ts"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{L:()=>UiLayoutNavComponent});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs");var nav_componentngResource=__webpack_require__("./libs/ui/src/lib/layout/nav/nav.component.css?ngResource"),nav_componentngResource_default=__webpack_require__.n(nav_componentngResource),core=__webpack_require__("./node_modules/@angular/core/fesm2022/core.mjs"),_effect_chunk2=__webpack_require__("./node_modules/@angular/core/fesm2022/_effect-chunk2.mjs"),_debug_node_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_debug_node-chunk.mjs"),_resource_chunk=__webpack_require__("./node_modules/@angular/core/fesm2022/_resource-chunk.mjs"),rxjs_interop=__webpack_require__("./node_modules/@angular/core/fesm2022/rxjs-interop.mjs"),_router_chunk=__webpack_require__("./node_modules/@angular/router/fesm2022/_router-chunk.mjs"),filter=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/operators/filter.js"),map=__webpack_require__("./node_modules/rxjs/dist/esm5/internal/operators/map.js");var nav_item_componentngResource=__webpack_require__("./libs/ui/src/lib/atoms/_electrons/nav-item/nav-item.component.css?ngResource"),nav_item_componentngResource_default=__webpack_require__.n(nav_item_componentngResource),_router_module_chunk=__webpack_require__("./node_modules/@angular/router/fesm2022/_router_module-chunk.mjs");let UiElectronNavItemComponent=class UiElectronNavItemComponent{link=(0,core.input)(!1);subNav=(0,core.input)(null);item=(0,core.input)(null);icon=(0,core.input)(!1);route(route){const subNav=this.subNav();return subNav?route?`${subNav}/${route}`:subNav:route}static propDecorators={link:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"link",required:!1,transform:void 0}]}],subNav:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"subNav",required:!1,transform:void 0}]}],item:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"item",required:!1,transform:void 0}]}],icon:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"icon",required:!1,transform:void 0}]}]}};UiElectronNavItemComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-electron-nav-item",template:'@if (item(); as item) {\n @if (!link()) {\n <span class="ui-nav-item" [class._-active]="item.active">\n <span [title]="item.title">{{ item.label }}</span>\n </span>\n }\n @if (link()) {\n <a\n [routerLink]="route(item.route)"\n [fragment]="item.fragment"\n [title]="item.title"\n class="ui-nav-item"\n [class._-active]="item.active"\n >\n <span>{{ item.label }}</span>\n @if (icon() && item.icon) {\n <div\n class="_icon"\n [style.background-image]="\'url(\' + item.icon + \')\'"\n ></div>\n }\n </a>\n }\n}\n',encapsulation:_debug_node_chunk.gXe.None,imports:[_router_module_chunk.Wk],styles:[nav_item_componentngResource_default()]})],UiElectronNavItemComponent);let UiLayoutNavService=class UiLayoutNavService{data=(0,_effect_chunk2.vPA)(null);theme=(0,_effect_chunk2.vPA)(null);homeButton=(0,_effect_chunk2.vPA)(null);existSecondLevel=(0,_effect_chunk2.vPA)(null);setData(data){this.data.set(data)}getData(){return(0,rxjs_interop.br)(this.data)}getDataSignal(){return this.data.asReadonly()}setTheme(theme){this.theme.set(theme)}getTheme(){return(0,rxjs_interop.br)(this.theme)}getThemeSignal(){return this.theme.asReadonly()}setHomeButton(homeButton){this.homeButton.set(homeButton)}getHomeButton(){return(0,rxjs_interop.br)(this.homeButton)}getHomeButtonSignal(){return this.homeButton.asReadonly()}activeFragment=(0,_effect_chunk2.vPA)(null);setActiveFragment(fragment){this.activeFragment.set(fragment)}getActiveFragmentSignal(){return this.activeFragment.asReadonly()}setSecondLevelExist(activeSecondLevel){this.existSecondLevel.set(activeSecondLevel)}getSecondLevelExist(){return(0,rxjs_interop.br)(this.existSecondLevel)}getSecondLevelExistSignal(){return this.existSecondLevel.asReadonly()}};UiLayoutNavService=(0,tslib_es6.Cg)([(0,_debug_node_chunk._qm)({providedIn:"root"})],UiLayoutNavService);let UiLayoutNavComponent=class UiLayoutNavComponent{debug=(0,core.input)(!1);homeButton=(0,core.input)(!1);theme=(0,core.input)("tab");navList=(0,core.input)(null);defaultRoute=(0,core.input)(null);navListSignal;homeButtonSignal;routerEvents;debugValue=(0,_effect_chunk2.vPA)(!1);homeButtonValue=!1;themeValue=(0,_effect_chunk2.vPA)("tab");navListValue=(0,_effect_chunk2.vPA)(null);activeRoutes=null;activeMain=(0,_effect_chunk2.vPA)(!1);activeSecondLevel=(0,_effect_chunk2.vPA)(!1);router=(0,_effect_chunk2.WQX)(_router_chunk.Ix);element=(0,_effect_chunk2.WQX)(_debug_node_chunk.aKT);service=(0,_effect_chunk2.WQX)(UiLayoutNavService);constructor(){this.navListSignal=this.service.getDataSignal(),this.homeButtonSignal=this.service.getHomeButtonSignal(),this.routerEvents=(0,rxjs_interop.ot)(this.router.events.pipe((0,filter.p)(event=>event instanceof _router_chunk.wF),(0,map.T)(event=>{const[path,fragment]=event.url.split("#"),segments=path.split("?")[0].split("/");return{firstLevel:segments[1]??null,secondLevel:segments[2]??null,fragment:fragment??null}}))),(0,_effect_chunk2.QZP)(()=>{const debug=this.debug(),homeButton=this.homeButton(),navList=this.navList();this.debugValue.set(debug),debug&&(this.homeButtonValue=homeButton,this.navListValue.set(navList))}),(0,_effect_chunk2.QZP)(()=>{const theme=this.theme();this.themeValue.set(theme),this.setTheme()}),(0,_effect_chunk2.QZP)(()=>{const debug=this.debug(),navList=this.navListSignal();debug||(this.navListValue.set(navList),this.existSecondLevel(),this.handleLevel())}),(0,_effect_chunk2.QZP)(()=>{const debug=this.debug(),homeButton=this.homeButtonSignal();debug||(this.homeButtonValue=homeButton??!0,this.activeApp(!0))}),(0,_effect_chunk2.QZP)(()=>{const debug=this.debug(),routes=this.routerEvents();!debug&&routes&&(this.activeRoutes=routes,this.existSecondLevel(),this.handleLevel())}),(0,_effect_chunk2.QZP)(()=>{const debug=this.debug(),fragment=this.service.getActiveFragmentSignal()();!debug&&this.activeRoutes&&(this.activeRoutes={...this.activeRoutes,fragment},this.activeApp(!1))})}ngOnInit(){this.debugValue.set(this.debug()),this.homeButtonValue=this.homeButton(),this.themeValue.set(this.theme()),this.navListValue.set(this.navList()),this.setTheme()}setTheme(){const bodyElement=document.body,containerElement=this.element.nativeElement.querySelector("#uiNavMain")||document.querySelector("#uiNavMain"),homeElement=this.element.nativeElement.querySelector("#uiNavHome")||document.querySelector("#uiNavHome");"app"===this.theme()&&(bodyElement.append(containerElement),containerElement?.setAttribute("style",`height:${bodyElement.offsetHeight}px`),bodyElement.append(homeElement)),"tab"===this.theme()&&(containerElement?.removeAttribute("style"),this.element.nativeElement?.append(containerElement))}handleLevel(){this.activeRoutes&&""===this.activeRoutes.firstLevel&&(this.activeRoutes.firstLevel=this.defaultRoute()),this.existSecondLevel(),this.activeApp(!1),this.service.setSecondLevelExist(Boolean(this.activeRoutes?.secondLevel))}existSecondLevel(){(0,_resource_chunk.O8)(()=>this.navListValue())?.filter(item=>{item.route===this.activeRoutes?.firstLevel&&!this.activeRoutes?.secondLevel&&item.subNav&&(this.activeRoutes={firstLevel:this.activeRoutes?.firstLevel,secondLevel:this.activeRoutes?.secondLevel,fragment:this.activeRoutes?.fragment??null})})}activeAppByEvent(clickItem,level){"first"===level&&(this.activeRoutes={firstLevel:clickItem.route,secondLevel:clickItem.subNav?clickItem.route:null},clickItem.subNav||this.activeMain.set(!1),this.service.setSecondLevelExist(Boolean(clickItem.subNav)),this.activeApp(!0)),this.activeRoutes&&"second"===level&&(this.activeRoutes={...this.activeRoutes,secondLevel:clickItem.route,fragment:clickItem.fragment??null},this.activeMain.set(!1),this.activeSecondLevel.set(!1))}activeApp(secondLevel){if(this.activeRoutes){secondLevel&&this.activeSecondLevel.set(Boolean(this.activeRoutes.secondLevel));const list=(0,_resource_chunk.O8)(()=>this.navListValue());list?.forEach(item=>{item.active=item.route===this.activeRoutes?.firstLevel,item.subNav?.forEach(subItem=>{subItem.active=subItem.fragment?item.active&&subItem.fragment===this.activeRoutes?.fragment:subItem.route===this.activeRoutes?.secondLevel})}),list&&this.navListValue.set([...list])}}setActiveSecondLevel(value){this.activeSecondLevel.set(value),this.service.setSecondLevelExist(value)}unsetApp(){if(this.activeRoutes){const list=(0,_resource_chunk.O8)(()=>this.navListValue());list?.forEach(item=>{item.active=!1,item.subNav?.forEach(subItem=>{subItem.active=!1})}),list&&this.navListValue.set([...list])}}home(){this.activeMain()||this.activeApp(!0),this.activeMain.set(!this.activeMain())}ngOnDestroy(){const containerElement=document.querySelector("#uiNavMain"),homeElement=document.querySelector("#uiNavHome");containerElement&&containerElement.remove(),homeElement&&homeElement.remove()}static ctorParameters=()=>[];static propDecorators={debug:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"debug",required:!1,transform:void 0}]}],homeButton:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"homeButton",required:!1,transform:void 0}]}],theme:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"theme",required:!1,transform:void 0}]}],navList:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"navList",required:!1,transform:void 0}]}],defaultRoute:[{type:_debug_node_chunk.pde,args:[{isSignal:!0,alias:"defaultRoute",required:!1,transform:void 0}]}]}};UiLayoutNavComponent=(0,tslib_es6.Cg)([(0,_debug_node_chunk.uAl)({selector:"ui-layout-nav",template:'@if (theme() === \'app\') {\n}\n<button\n (click)="home()"\n class="ui-nav-home"\n id="uiNavHome"\n [class]="\'_\' + themeValue()"\n [class._-hide]="!(debug() ? homeButton() : (homeButtonSignal() ?? true))"\n >\n <span class="ui-icon x2 ui-cb-focus ui-ct-action">menu</span>\n <span class="_label">menu</span>\n</button>\n\n<div\n class="ui-nav-main"\n id="uiNavMain"\n [class]="\'_\' + themeValue()"\n [class._-active]="activeMain()"\n >\n @if (navListValue()) {\n <nav\n class="ui-nav"\n [class]="\'_\' + themeValue()"\n [class._-active]="activeMain()"\n >\n \x3c!--- app theme ---\x3e\n @if (themeValue() === \'app\') {\n @if (activeMain() && activeSecondLevel()) {\n <div\n class="_action"\n (click)="activeSecondLevel.set(false)"\n ></div>\n }\n <div class="_first-level">\n @for (item of navListValue(); track item; let i = $index) {\n <div class="_container">\n <ui-electron-nav-item\n [link]="!debugValue()"\n [item]="item"\n [icon]="!item.subNav"\n (click)="activeAppByEvent(item, \'first\')"\n ></ui-electron-nav-item>\n @if (item.subNav) {\n <div\n class="_second-level"\n [class._-active]="activeMain() && activeSecondLevel() && item.active"\n >\n <ui-electron-nav-item\n [link]="!debugValue()"\n [item]="item"\n [icon]="true"\n (click)="activeAppByEvent(item, \'second\')"\n ></ui-electron-nav-item>\n @for (subItem of item.subNav; track subItem; let i = $index) {\n <ui-electron-nav-item\n [link]="!debugValue()"\n (click)="activeAppByEvent(subItem, \'second\')"\n [subNav]="item.route"\n [item]="subItem"\n [icon]="true"\n >\n </ui-electron-nav-item>\n }\n </div>\n }\n </div>\n }\n </div>\n }\n \x3c!--- app theme ---\x3e\n \x3c!--- tab theme ---\x3e\n @if (themeValue() === \'tab\') {\n <ul class="_first-level">\n @for (item of navListValue(); track item; let i = $index) {\n <li>\n <ui-electron-nav-item\n [link]="!debugValue()"\n (click)="activeAppByEvent(item, \'first\')"\n [item]="item"\n >\n </ui-electron-nav-item>\n </li>\n @if (item.subNav) {\n <ul class="_second-level" [class._-active]="item.active">\n @for (subItem of item.subNav; track subItem; let i = $index) {\n <li>\n <ui-electron-nav-item\n [link]="!debugValue()"\n (click)="activeAppByEvent(subItem, \'second\')"\n [subNav]="item.route"\n [item]="subItem"\n >\n </ui-electron-nav-item>\n </li>\n }\n </ul>\n }\n }\n </ul>\n }\n \x3c!--- tab theme ---\x3e\n </nav>\n }\n</div>\n',encapsulation:_debug_node_chunk.gXe.None,imports:[UiElectronNavItemComponent],styles:[nav_componentngResource_default()]}),(0,tslib_es6.Sn)("design:paramtypes",[])],UiLayoutNavComponent)},"./libs/ui/src/lib/atoms/_electrons/nav-item/nav-item.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"@layer ui.base, ui.components;\n@layer ui.components {\n.ui-nav-item {\n cursor: pointer;\n\n ._icon,\n ._no-item {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n }\n\n ._icon {\n background-size: contain;\n background-repeat: no-repeat;\n filter: invert(50%);\n }\n\n ._no-item {\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()},"./libs/ui/src/lib/layout/nav/nav.component.css?ngResource"(module,__unused_webpack_exports,__webpack_require__){var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/noSourceMaps.js"),___CSS_LOADER_EXPORT___=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js")(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);___CSS_LOADER_EXPORT___.push([module.id,"@layer ui.base, ui.components;\n@layer ui.components {\n/* --- app theme (was utils/theme-app.scss) --- */\n@keyframes ui-nav-show-in {\n 0% {\n opacity: 0;\n scale: 0.1;\n transform-origin: 0 0;\n }\n 90% {\n opacity: 1;\n scale: 1.2;\n transform-origin: 0 0;\n }\n 100% {\n opacity: 1;\n scale: 1;\n transform-origin: 0 0;\n }\n}\n\n.ui-nav-home._app {\n position: fixed;\n left: 50%;\n transform: translateX(-50%);\n bottom: calc(var(--ui-spacer) * 1.8);\n display: flex;\n width: 6.8rem;\n height: 6.8rem;\n z-index: 104;\n justify-content: center;\n align-items: center;\n &._-hide {\n display: none;\n }\n\n ._label {\n position: absolute;\n bottom: 0;\n left: 50%;\n transform: translateX(-50%) translateY(calc(var(--ui-spacer) * 1));\n }\n}\n\n.ui-nav-main._app {\n display: flex;\n top: -100%;\n width: 100%;\n position: fixed;\n /* The overlay is moved to <body>; on iOS position:fixed opens its own\n stacking context, so the children's z-indexes never reach the outside.\n The container itself must carry the layer: above any app content,\n below the home button (104). */\n z-index: 102;\n\n ._-active {\n top: 0;\n }\n}\n\n.ui-nav._app {\n position: fixed;\n top: -100%;\n left: 0;\n display: flex;\n width: 100%;\n height: 100%;\n flex-flow: column;\n background-color: var(--ui-c-primary);\n transition: calc(var(--ui-time) * 0.4) linear;\n opacity: 0;\n\n &._-active {\n top: 0;\n opacity: 1;\n }\n\n ._action {\n position: fixed;\n top: 0;\n left: 0;\n display: flex;\n width: 100%;\n height: 100%;\n background-color: rgba(var(--ui-c-background-value), 0.6);\n z-index: 103;\n }\n\n li {\n list-style-type: none;\n display: flex;\n }\n\n ._first-level {\n display: flex;\n flex-flow: row wrap;\n margin: calc(var(--ui-spacer) * 1.25);\n justify-content: center;\n\n > ._container {\n position: relative;\n display: flex;\n margin: calc(var(--ui-spacer) * 0.25);\n margin-bottom: calc(var(--ui-spacer) * 1);\n background-color: rgba(var(--ui-c-background-value), 0.6);\n width: 6.8rem;\n height: 6.8rem;\n box-shadow: 0 0 1px 0 var(--ui-c-fourthly);\n border-radius: calc(var(--ui-border-radius) * 4);\n\n > ui-electron-nav-item {\n > .ui-nav-item {\n position: relative;\n display: flex;\n justify-content: center;\n width: 6.8rem;\n height: 6.8rem;\n border-radius: calc(var(--ui-border-radius) * 4);\n z-index: 102;\n\n &._-active > span {\n color: var(--ui-c-focus);\n }\n }\n\n > .ui-nav-item > span {\n position: absolute;\n bottom: calc(var(--ui-spacer) * -0.75);\n }\n }\n }\n }\n\n ._second-level {\n position: absolute;\n top: calc(var(--ui-spacer) * 0.24);\n left: calc(var(--ui-spacer) * 0.24);\n display: grid;\n grid-template-columns: 1fr 1fr 1fr;\n grid-template-rows: 1fr 1fr 1fr;\n grid-gap: calc(var(--ui-spacer) * 0.18);\n width: calc(6.8rem - var(--ui-spacer) * 0.48);\n height: calc(6.8rem - var(--ui-spacer) * 0.48);\n > ui-electron-nav-item {\n display: flex;\n justify-content: center;\n align-items: center;\n }\n\n .ui-nav-item {\n position: relative;\n display: flex;\n width: 100%;\n height: 100%;\n max-width: calc(6.8rem * 0.75);\n max-height: calc(6.8rem * 0.75);\n justify-content: center;\n align-items: center;\n background-color: var(--ui-c-fourthly);\n border-radius: calc(var(--ui-border-radius) * 1.2);\n overflow: hidden;\n\n > span {\n position: absolute;\n transform: translateY(-100%);\n }\n }\n\n &._-active {\n position: fixed;\n top: 40%;\n left: 50%;\n transform: translate(-50%, -50%);\n grid-gap: calc(var(--ui-spacer) * 0.46);\n grid-row-gap: calc(var(--ui-spacer) * 0.86);\n width: calc(6.8rem * 3.8);\n height: calc(6.8rem * 4.2);\n padding: calc(var(--ui-spacer) * 0.5);\n padding-bottom: var(--ui-spacer);\n background-color: var(--ui-c-background);\n box-shadow: 0 0 2px 0 var(--ui-c-fourthly);\n border-radius: calc(var(--ui-border-radius) * 4);\n z-index: 103;\n animation-name: ui-nav-show-in;\n animation-duration: calc(var(--ui-time) * 0.25);\n animation-fill-mode: revert;\n animation-timing-function: linear;\n\n .ui-nav-item {\n overflow: initial;\n width: 6.8rem;\n height: 6.8rem;\n\n &._-active > span {\n color: var(--ui-c-focus);\n }\n }\n\n .ui-nav-item > span {\n position: absolute;\n display: inline-block;\n width: 140%;\n left: -20%;\n bottom: 0;\n text-align: center;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n transform: translateY(calc(var(--ui-spacer) * 0.64));\n }\n }\n }\n}\n\n/* --- tab theme (was utils/theme-tab.scss) --- */\n.ui-nav-home._tab {\n display: none;\n}\n\n.ui-nav._tab {\n display: flex;\n width: 100%;\n flex-flow: column;\n\n *:focus {\n outline: none;\n color: var(--ui-c-focus) !important;\n }\n\n ul {\n position: relative;\n left: 0;\n display: flex;\n margin: 0;\n padding: 0;\n width: 100%;\n height: 4rem;\n }\n\n li {\n list-style-type: none;\n display: flex;\n margin: 0;\n padding: 0;\n }\n\n ._first-level {\n border-bottom: var(--ui-border-width) solid var(--ui-c-fourthly);\n\n > li > ui-electron-nav-item {\n .ui-nav-item {\n display: flex;\n padding: calc(var(--ui-spacer) * 0.2);\n padding-bottom: calc(var(--ui-spacer) * 0.1);\n margin: 0 calc(var(--ui-border-width) * 4) 0 0;\n border: var(--ui-border-width) solid rgba(255, 255, 255, 0);\n border-bottom: 0;\n border-top-left-radius: calc(var(--ui-border-width) * 4);\n border-top-right-radius: calc(var(--ui-border-width) * 4);\n text-decoration: none;\n transition:\n transform calc(var(--ui-time) * 0.4),\n backgroundColor calc(var(--ui-time) * 0.8) linear;\n\n &:first-of-type {\n margin-left: calc(var(--ui-spacer) * 0.25);\n }\n\n &._-active {\n border-color: var(--ui-c-fourthly);\n background-color: var(--ui-c-background);\n position: relative;\n\n z-index: 3;\n transform: translateY(\n calc(var(--ui-spacer) * 0.1 - var(--ui-border-width))\n );\n font-weight: bold;\n color: var(--ui-c-focus);\n }\n ._icon {\n display: none;\n }\n }\n }\n }\n\n ._second-level {\n position: absolute;\n height: 0;\n overflow: hidden;\n top: calc(4rem + var(--ui-border-width));\n background-color: var(--ui-c-background);\n border: var(--ui-border-width) solid rgba(255, 255, 255, 0);\n border-left: 0;\n border-top: 0;\n border-right: 0;\n transition:\n border-color calc(var(--ui-time) * 0.4) linear,\n height calc(var(--ui-time) * 0.4) linear;\n z-index: 1;\n\n li {\n .ui-nav-item {\n display: flex;\n transition: calc(var(--ui-time) * 0.2) linear;\n color: transparent;\n text-decoration: none;\n margin: calc(var(--ui-spacer) * 0.125);\n margin-top: calc(var(--ui-spacer) * 0.25);\n padding-left: calc(var(--ui-spacer) * 0.25);\n border-left: 1px solid var(--ui-c-fourthly);\n }\n }\n\n li:first-of-type {\n .ui-nav-item {\n border-left: 0;\n }\n }\n\n &._-active {\n height: 4rem;\n\n border-color: var(--ui-c-fourthly);\n z-index: 2;\n\n .ui-nav-item {\n color: var(--ui-c-default);\n\n &._-active {\n color: var(--ui-c-focus);\n }\n }\n }\n\n icon {\n display: none;\n }\n\n > ui-electron-nav-item > li {\n /* todo: styling; */\n }\n }\n}\n}\n",""]),module.exports=___CSS_LOADER_EXPORT___.toString()}}]);
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @license Angular v21.2.17
3
+ * (c) 2010-2026 Google LLC. https://angular.dev/
4
+ * License: MIT
5
+ */